summaryrefslogtreecommitdiffstats
path: root/ext/tk/lib/tkextlib
diff options
context:
space:
mode:
authornagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-11-09 18:35:52 +0000
committernagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-11-09 18:35:52 +0000
commit8c52b58b76e0bb5e7e56859f3fd96077941d7ce2 (patch)
treee8f29319f4b3bc3bb6b6dc28eff27c373ef2e149 /ext/tk/lib/tkextlib
parentef5fb50fbf945c7f23c2bd0fa2ccde0d0410265d (diff)
downloadruby-8c52b58b76e0bb5e7e56859f3fd96077941d7ce2.tar.gz
ruby-8c52b58b76e0bb5e7e56859f3fd96077941d7ce2.tar.xz
ruby-8c52b58b76e0bb5e7e56859f3fd96077941d7ce2.zip
* ext/tcltklib/tcltklib.c: fix SEGV when compiled with Tcl/Tk8.3.x or older
* ext/tk/lib/tkextlib/tile/style.rb: bug fix git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/lib/tkextlib')
-rw-r--r--ext/tk/lib/tkextlib/tile/style.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/tk/lib/tkextlib/tile/style.rb b/ext/tk/lib/tkextlib/tile/style.rb
index 1e399182d..3be8c1d58 100644
--- a/ext/tk/lib/tkextlib/tile/style.rb
+++ b/ext/tk/lib/tkextlib/tile/style.rb
@@ -58,6 +58,8 @@ class << Tk::Tile::Style
end
def theme_settings(name, cmd=nil, &b)
+ cmd = Proc.new(&b) if !cmd && b
+ tk_call('style', 'theme', 'settings', name, cmd)
end
def theme_names()