From 55e66f6f7fbc0d1258bb9f12ade75f9cdee49da1 Mon Sep 17 00:00:00 2001 From: nagai Date: Sun, 26 Apr 2009 00:44:59 +0000 Subject: * ext/tk/sample/tkcombobox.rb: fix conflict with autoload definition git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/tk/sample/tkcombobox.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ext/tk/sample/tkcombobox.rb b/ext/tk/sample/tkcombobox.rb index 1840270951..cc51a2ffeb 100644 --- a/ext/tk/sample/tkcombobox.rb +++ b/ext/tk/sample/tkcombobox.rb @@ -219,6 +219,16 @@ EOD end end +################################################ + +# don't use Ttk widget +Object.instance_eval{remove_const :TkCombobox} if Object.autoload? :TkCombobox + +# if you want to use the 'default_widget_set' selector, +#class TkCombobox < TkEntry; end +#Tk.__set_toplevel_aliases__(:Tk, TkCombobox, :TkCombobox) + + ################################################ class TkCombobox < TkEntry -- cgit v1.2.3