fix button pressed issue

This commit is contained in:
Marcos Pinto 2007-08-08 01:21:39 +00:00
parent fc5b6e525a
commit 174ff4ee70
2 changed files with 3 additions and 3 deletions

View File

@ -127,7 +127,7 @@
<property name="label">gtk-close</property>
<property name="use_stock">True</property>
<property name="response_id">0</property>
<signal name="pressed" handler="on_close_pressed"/>
<signal name="clicked" handler="on_close_pressed"/>
</widget>
</child>
</widget>

View File

@ -141,8 +141,8 @@ class PreferencesDlg:
self.glade.get_widget('spin_port_min').set_sensitive(True)
self.glade.get_widget('spin_port_max').set_sensitive(True)
self.glade.get_widget("ok_button").connect("pressed", self.ok_pressed, interface)
self.glade.get_widget("cancel_button").connect("pressed", self.cancel_pressed)
self.glade.get_widget("ok_button").connect("clicked", self.ok_pressed, interface)
self.glade.get_widget("cancel_button").connect("clicked", self.cancel_pressed)
except KeyError:
pass