From e4ef6b116b273362c521854cc517bb1c5b8b0cd7 Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Mon, 11 Apr 2011 15:36:56 +0000 Subject: h-client:modified the delete event function for the login window --- h-client/hclient.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/h-client/hclient.py b/h-client/hclient.py index 691e3be..64c59e3 100644 --- a/h-client/hclient.py +++ b/h-client/hclient.py @@ -353,6 +353,8 @@ class hclient: self.loginWindow.set_icon_from_file("img/icon.png") self.loginWindow.set_size_request(300, -1) + self.window.connect("delete_event", self.delete_event_login) + #self.prefWindow.set_size_request(300, -1) vbox = gtk.VBox(False, 0) @@ -504,7 +506,10 @@ class hclient: ##cell_renderer.set_property('pixbuf', img) #return - + def delete_event_login(self, widget, event, data=None): + self._submitFlag = False + return False + #another callback def delete_event(self, widget, event, data=None): gtk.main_quit() -- cgit v1.2.3