diff options
Diffstat (limited to 'ext/tk/lib/tkextlib/iwidgets/finddialog.rb')
-rw-r--r-- | ext/tk/lib/tkextlib/iwidgets/finddialog.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ext/tk/lib/tkextlib/iwidgets/finddialog.rb b/ext/tk/lib/tkextlib/iwidgets/finddialog.rb index a161c3c2a4..75e219c37e 100644 --- a/ext/tk/lib/tkextlib/iwidgets/finddialog.rb +++ b/ext/tk/lib/tkextlib/iwidgets/finddialog.rb @@ -18,6 +18,19 @@ class Tk::Iwidgets::Finddialog WidgetClassName = 'Finddialog'.freeze WidgetClassNames[WidgetClassName] = self + def __strval_optkeys + super() + [ + 'patternbackground', 'patternforeground', + 'searchbackground', 'searchforeground' + ] + end + private :__strval_optkeys + + def __val2ruby_optkeys # { key=>proc, ... } + super().update('textwidget'=>proc{|v| window(v)}) + end + private :__val2ruby_optkeys + def clear tk_call(@path, 'clear') self |