diff options
Diffstat (limited to 'ext/tk/lib/tk/menu.rb')
-rw-r--r-- | ext/tk/lib/tk/menu.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ext/tk/lib/tk/menu.rb b/ext/tk/lib/tk/menu.rb index a0b0a80b14..54b42705e5 100644 --- a/ext/tk/lib/tk/menu.rb +++ b/ext/tk/lib/tk/menu.rb @@ -402,9 +402,12 @@ class TkMenubutton<TkLabel WidgetClassNames[WidgetClassName] = self def create_self(keys) if keys and keys != None - tk_call_without_enc('menubutton', @path, *hash_kv(keys, true)) + # tk_call_without_enc('menubutton', @path, *hash_kv(keys, true)) + tk_call_without_enc(self.class::TkCommandNames[0], @path, + *hash_kv(keys, true)) else - tk_call_without_enc('menubutton', @path) + # tk_call_without_enc('menubutton', @path) + tk_call_without_enc(self.class::TkCommandNames[0], @path) end end private :create_self |