Do not allow to close the journal

This commit is contained in:
Marco Pesenti Gritti 2007-06-28 12:03:12 +02:00
parent faed9162ab
commit 51c66de817
2 changed files with 6 additions and 4 deletions

View File

@ -216,6 +216,7 @@ class Activity(Window, gtk.Container):
self._shared_activity = None
self._share_id = None
self._join_id = None
self._can_close = True
shared_activity = handle.get_shared_activity()
if shared_activity:
@ -376,8 +377,11 @@ class Activity(Window, gtk.Container):
wm.set_activity_id(window.window, self._activity_id)
def _delete_event_cb(self, window, event):
self.close()
return False
if self._can_close:
self.close()
return False
else:
return True
def close(self):
if self._bus:

View File

@ -195,14 +195,12 @@ class Palette(gobject.GObject):
self._popdown_anim.start()
def invoker_mouse_enter(self):
print 'Invoker enter'
self.popup()
def invoker_mouse_leave(self):
self.popdown()
def _enter_notify_event_cb(self, widget, event):
print 'Enter notify'
if event.detail == gtk.gdk.NOTIFY_NONLINEAR:
self._popdown_anim.stop()