From d3a03c66f41ce4287070f695bcd0562fae0d0881 Mon Sep 17 00:00:00 2001 From: nagai Date: Wed, 4 Oct 2006 09:52:54 +0000 Subject: * ext/tk/lib/tkextlib/tile.rb, lib/tkextlib/tile/* : support Tile 0.7.6. * ext/tk/lib/tkextlib/SUPPORT_STATUS: [ruby-talk:211939] check links of extensions. * ext/tk/lib/tkextlib/blt/container.rb: define instance methods properly. * ext/tk/lib/tkextlib/tile/tcombobox.rb: bug fix [ruby-talk:213003]. * ext/tk/lib/tkextlib/tile/tnotebook.rb: ditto. * ext/tk/lib/tkextlib/tile/treeview.rb: ditto. * ext/tk/lib/tkextlib/tile/sizegrip.rb: [new] add 'ttk::sizegrip' widget. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11081 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/tk/lib/tkextlib/blt/container.rb | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'ext/tk/lib/tkextlib/blt') diff --git a/ext/tk/lib/tkextlib/blt/container.rb b/ext/tk/lib/tkextlib/blt/container.rb index 60ba1dec1..cdbec21f2 100644 --- a/ext/tk/lib/tkextlib/blt/container.rb +++ b/ext/tk/lib/tkextlib/blt/container.rb @@ -11,18 +11,18 @@ module Tk::BLT TkCommandNames = ['::blt::container'.freeze].freeze WidgetClassName = 'Container'.freeze WidgetClassNames[WidgetClassName] = self - end - def __strval_optkeys - super() << 'name' - end - private :__strval_optkeys + def __strval_optkeys + super() << 'name' + end + private :__strval_optkeys - def find_command(pat) - list(tk_send_without_enc(tk_call(self.path, 'find', '-command', pat))) - end + def find_command(pat) + Hash[*simplelist(tk_send_without_enc('find', '-command', pat))] + end - def find_name(pat) - list(tk_send_without_enc(tk_call(self.path, 'find', '-name', pat))) + def find_name(pat) + Hash[*simplelist(tk_send_without_enc('find', '-name', pat))] + end end end -- cgit