diff options
Diffstat (limited to 'ext/tk/lib/tkextlib/bwidget/spinbox.rb')
-rw-r--r-- | ext/tk/lib/tkextlib/bwidget/spinbox.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/tk/lib/tkextlib/bwidget/spinbox.rb b/ext/tk/lib/tkextlib/bwidget/spinbox.rb index 52dfa30abc..a5ddfafbf4 100644 --- a/ext/tk/lib/tkextlib/bwidget/spinbox.rb +++ b/ext/tk/lib/tkextlib/bwidget/spinbox.rb @@ -28,7 +28,7 @@ class Tk::BWidget::SpinBox #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 @@ -43,7 +43,7 @@ class Tk::BWidget::SpinBox #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 |