From 8c52b58b76e0bb5e7e56859f3fd96077941d7ce2 Mon Sep 17 00:00:00 2001 From: nagai Date: Tue, 9 Nov 2004 18:35:52 +0000 Subject: * 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 --- ext/tk/lib/tkextlib/tile/style.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ext/tk/lib') 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() -- cgit