diff options
author | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-08-01 03:53:38 +0000 |
---|---|---|
committer | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-08-01 03:53:38 +0000 |
commit | c49c8a942e632d8ead1f70cc49f6fb4783bb28ca (patch) | |
tree | c226213f4ec7f98322a49092467e26eabf4bae06 | |
parent | aa9ffb6c8066649edb0b367657c5334f0d106427 (diff) | |
download | ruby-c49c8a942e632d8ead1f70cc49f6fb4783bb28ca.tar.gz |
* bug fix : forget to eval given block to TkRoot.new method
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4256 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ext/tk/lib/tk.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/tk/lib/tk.rb b/ext/tk/lib/tk.rb index d22f7b43d7..a2c4a7d61f 100644 --- a/ext/tk/lib/tk.rb +++ b/ext/tk/lib/tk.rb @@ -3911,7 +3911,7 @@ class TkRoot<TkWindow Tk_WINDOWS["."] = new end =end - def TkRoot.new(keys=nil) + def TkRoot.new(keys=nil, &b) unless TkCore::INTERP.tk_windows['.'] TkCore::INTERP.tk_windows['.'] = super(:without_creating=>true, :widgetname=>'.') @@ -3926,7 +3926,8 @@ class TkRoot<TkWindow end } end - return root + root.instance_eval(&b) if block_given? + root end WidgetClassName = 'Tk'.freeze |