diff options
Diffstat (limited to 'ext/tk/lib/tkextlib/bwidget/labelentry.rb')
-rw-r--r-- | ext/tk/lib/tkextlib/bwidget/labelentry.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/tk/lib/tkextlib/bwidget/labelentry.rb b/ext/tk/lib/tkextlib/bwidget/labelentry.rb index 19e92d7ae4..dc1db06828 100644 --- a/ext/tk/lib/tkextlib/bwidget/labelentry.rb +++ b/ext/tk/lib/tkextlib/bwidget/labelentry.rb @@ -29,7 +29,7 @@ class Tk::BWidget::LabelEntry #end def entrybind(context, *args) # if args[0].kind_of?(Proc) || args[0].kind_of?(Method) - if TkComm._callback_entry?(args[0]) + if TkComm._callback_entry?(args[0]) || !block_given? cmd = args.shift else cmd = Proc.new @@ -44,7 +44,7 @@ class Tk::BWidget::LabelEntry #end def entrybind_append(context, *args) #if args[0].kind_of?(Proc) || args[0].kind_of?(Method) - if TkComm._callback_entry?(args[0]) + if TkComm._callback_entry?(args[0]) || !block_given? cmd = args.shift else cmd = Proc.new |