Commit 36bfc2d6 authored by Lars Kruse's avatar Lars Kruse

use "value-changed" signal instead of "changed" for gtk.Adjustment

* otherwise the events are not triggered after manual input (e.g. for safety height)
parent 8f9a0ce5
...@@ -91,7 +91,7 @@ class InputNumber(InputBaseClass): ...@@ -91,7 +91,7 @@ class InputNumber(InputBaseClass):
step_incr=increment) step_incr=increment)
self.control = gtk.SpinButton(adjustment, digits=digits) self.control = gtk.SpinButton(adjustment, digits=digits)
self.control.set_value(start) self.control.set_value(start)
self.connect("changed", change_handler) self.connect("value-changed", change_handler)
@_output_conversion @_output_conversion
def get_value(self): def get_value(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment