candidate fix for LP #242852

This commit is contained in:
Chris Jones 2008-06-29 03:01:02 +01:00
parent 0240f588ea
commit d424fd24e1
1 changed files with 4 additions and 0 deletions

View File

@ -133,6 +133,7 @@ class Terminator:
self.window.connect ("delete_event", self.on_delete_event)
self.window.connect ("destroy", self.on_destroy_event)
self.window.connect ("window-state-event", self.on_window_state_changed)
self.window.connect ("focus", self.on_focus)
self.window.set_property ('allow-shrink', True)
@ -182,6 +183,9 @@ class Terminator:
return (False)
def on_focus (self, direction):
self.window.queue_draw ()
def on_delete_event (self, window, event, data=None):
if len (self.term_list) == 1:
return False