Commits

Steve Borho committed f06b528

hggtk: reestablish ctrl-Q as a global close keysequence

This is _ugly_, but PyGtk seems to require all these hacks
gtk.Window() ignores delete events submitted internally unless
you manually call gtk.main_quit()

Comments (0)

Files changed (3)

                 self._update_recent_messages(cur_msg)
             elif res != gtk.RESPONSE_NO:
                 live = True
+        if not live and self.main:
+            self._destroying(widget)
         return live
 
 
 
 
     def should_live(self, widget=None, event=None):
+        if self.main:
+            self._destroying(widget)
+        else:
+            self.destroy()
         return False
 
 
         self._diffpane_moved(self._diffpane)
         return False
 
-
-    def should_live(self, widget=None, event=None):
-        return False
-
     ### End of overrides ###
 
     def _do_reload_status(self):