aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Gallo <tonicucoz@gmail.com>2011-04-11 15:36:56 +0000
committerAntonio Gallo <tonicucoz@gmail.com>2011-04-11 15:36:56 +0000
commite4ef6b116b273362c521854cc517bb1c5b8b0cd7 (patch)
tree31e08cc3788b22cf6dda468362cd7e6fa9f16063
parent8869eb5373b8033e7b7e5ab1d08fd828a5f90b66 (diff)
h-client:modified the delete event function for the login window
-rw-r--r--h-client/hclient.py7
1 files changed, 6 insertions, 1 deletions
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()