From 0e61068c2b2e307fda8541c154178f743d2eb84c Mon Sep 17 00:00:00 2001 From: nagai Date: Sun, 26 Apr 2009 00:45:17 +0000 Subject: [PATCH] * ext/tk/sample/tkcombobox.rb: fix conflict with autoload definition git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23284 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 e4d9592e7b..941f7cc4cb 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