summaryrefslogtreecommitdiff
path: root/ext/tk
diff options
context:
space:
mode:
authornagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-04-26 00:45:17 +0000
committernagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-04-26 00:45:17 +0000
commit0e61068c2b2e307fda8541c154178f743d2eb84c (patch)
tree64c772bdd38571cfa24547734c82f45f2aace703 /ext/tk
parent1b67ef40c284b6b6943fdc6e1916276a5e3b59e9 (diff)
* 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
Diffstat (limited to 'ext/tk')
-rw-r--r--ext/tk/sample/tkcombobox.rb10
1 files changed, 10 insertions, 0 deletions
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
@@ -221,6 +221,16 @@ 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
include TkComposite