From 174ff4ee709035f3e312a4507ec1c4b9d0e490c8 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Wed, 8 Aug 2007 01:21:39 +0000 Subject: [PATCH] fix button pressed issue --- glade/plugin_dialog.glade | 2 +- src/dialogs.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/glade/plugin_dialog.glade b/glade/plugin_dialog.glade index e4dd17aef..228057f2f 100644 --- a/glade/plugin_dialog.glade +++ b/glade/plugin_dialog.glade @@ -127,7 +127,7 @@ gtk-close True 0 - + diff --git a/src/dialogs.py b/src/dialogs.py index 3b7ddf5e0..8f90c7e48 100644 --- a/src/dialogs.py +++ b/src/dialogs.py @@ -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