summaryrefslogtreecommitdiff
path: root/ext/tk/lib/tk/toplevel.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/tk/lib/tk/toplevel.rb')
-rw-r--r--ext/tk/lib/tk/toplevel.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/tk/lib/tk/toplevel.rb b/ext/tk/lib/tk/toplevel.rb
index 87229aaba9..2d99eda44c 100644
--- a/ext/tk/lib/tk/toplevel.rb
+++ b/ext/tk/lib/tk/toplevel.rb
@@ -258,4 +258,5 @@ class Tk::Toplevel<TkWindow
end
end
-TkToplevel = Tk::Toplevel unless Object.const_defined? :TkToplevel
+#TkToplevel = Tk::Toplevel unless Object.const_defined? :TkToplevel
+Tk.__set_toplevel_aliases__(:Tk, Tk::Toplevel, :TkToplevel)