Do not allow to close the journal
This commit is contained in:
parent
faed9162ab
commit
51c66de817
@ -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:
|
||||
|
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user