summaryrefslogtreecommitdiffstats
path: root/ext/tk/lib/tkextlib/bwidget/mainframe.rb
diff options
context:
space:
mode:
authornagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-08-09 06:16:29 +0000
committernagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-08-09 06:16:29 +0000
commitadde1e913d960dff1cfdc54b51a7a40322faddc9 (patch)
treea11ae6ff53618056ef3d4945f2b022a7d099946e /ext/tk/lib/tkextlib/bwidget/mainframe.rb
parent28f60a006d1b9025143758e9e391264f6a7f2747 (diff)
downloadruby-adde1e913d960dff1cfdc54b51a7a40322faddc9.tar.gz
ruby-adde1e913d960dff1cfdc54b51a7a40322faddc9.tar.xz
ruby-adde1e913d960dff1cfdc54b51a7a40322faddc9.zip
* ext/tk/tcltklib.c: remove dangerous 'rb_jump_tag's.
* ext/tk/lib/tk.rb: add __val2ruby_optkeys and __ruby2val_optkeys to help to convert option values between ruby and tcl. * ext/tk/lib/tk/itemconfig.rb: add __item_val2ruby_optkeys and __item_ruby2val_optkeys to help to convert option values between ruby and tcl. * ext/tk/lib/tk/radiobutton.rb: use __ruby2val_optkeys for 'variable' option (for the reason of backward compatibility). * ext/tk/lib/tk/composite.rb: clarify the arguments of super(). * ext/tk/lib/tk/spinbox.rb: ditto. * ext/tk/lib/tk/text.rb: ditto. * ext/tk/lib/tk/validation.rb: ditto. * ext/tk/lib/tkextlib/*: support to treat tkvariable-type configure options. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/lib/tkextlib/bwidget/mainframe.rb')
-rw-r--r--ext/tk/lib/tkextlib/bwidget/mainframe.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/tk/lib/tkextlib/bwidget/mainframe.rb b/ext/tk/lib/tkextlib/bwidget/mainframe.rb
index e52f4b2f4..7f8789458 100644
--- a/ext/tk/lib/tkextlib/bwidget/mainframe.rb
+++ b/ext/tk/lib/tkextlib/bwidget/mainframe.rb
@@ -20,6 +20,11 @@ class Tk::BWidget::MainFrame
WidgetClassName = 'MainFrame'.freeze
WidgetClassNames[WidgetClassName] = self
+ def __tkvariable_optkeys
+ super() << 'progressvar'
+ end
+ private :__tkvariable_optkeys
+
def add_indicator(keys={}, &b)
win = window(tk_send('addindicator', *hash_kv(keys)))
win.instance_eval(&b) if b