diff options
Diffstat (limited to 'ext/tk/lib/tk/root.rb')
-rw-r--r-- | ext/tk/lib/tk/root.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/tk/lib/tk/root.rb b/ext/tk/lib/tk/root.rb index 0e5584c7c1..a66c9fe454 100644 --- a/ext/tk/lib/tk/root.rb +++ b/ext/tk/lib/tk/root.rb @@ -5,7 +5,7 @@ require 'tk' require 'tk/wm' require 'tk/menuspec' -class TkRoot<TkWindow +class Tk::Root<TkWindow include Wm include TkMenuSpec @@ -106,3 +106,5 @@ class TkRoot<TkWindow TkCore::INTERP._invoke('destroy', '.') end end + +TkRoot = Tk::Root unless Object.const_defined? :TkRoot |