Always show frame on the homepage even when activating from the frame.
This commit is contained in:
parent
ceff7d71a2
commit
705eb8119a
@ -183,6 +183,8 @@ class Frame(object):
|
|||||||
self._animator.connect('completed', self._hide_completed_cb)
|
self._animator.connect('completed', self._hide_completed_cb)
|
||||||
|
|
||||||
def show(self):
|
def show(self):
|
||||||
|
self.mode = MODE_FORCE
|
||||||
|
|
||||||
if self.visible:
|
if self.visible:
|
||||||
return
|
return
|
||||||
if self._animator:
|
if self._animator:
|
||||||
@ -195,7 +197,6 @@ class Frame(object):
|
|||||||
self._event_area.hide()
|
self._event_area.hide()
|
||||||
|
|
||||||
self.visible = True
|
self.visible = True
|
||||||
self.mode = MODE_FORCE
|
|
||||||
|
|
||||||
def get_popup_context(self):
|
def get_popup_context(self):
|
||||||
return self._popup_context
|
return self._popup_context
|
||||||
@ -315,6 +316,9 @@ class Frame(object):
|
|||||||
self._mouse_listener.mouse_leave()
|
self._mouse_listener.mouse_leave()
|
||||||
|
|
||||||
def _enter_notify_cb(self, window, event):
|
def _enter_notify_cb(self, window, event):
|
||||||
|
# FIXME clicks cause leave/notify, ignore
|
||||||
|
if event.state == gtk.gdk.BUTTON1_MASK:
|
||||||
|
return
|
||||||
if self._hover:
|
if self._hover:
|
||||||
return
|
return
|
||||||
|
|
||||||
@ -322,6 +326,9 @@ class Frame(object):
|
|||||||
self._mouse_listener.mouse_enter()
|
self._mouse_listener.mouse_enter()
|
||||||
|
|
||||||
def _leave_notify_cb(self, window, event):
|
def _leave_notify_cb(self, window, event):
|
||||||
|
# FIXME clicks cause leave/notify, ignore
|
||||||
|
if event.state == gtk.gdk.BUTTON1_MASK:
|
||||||
|
return
|
||||||
if not self._hover:
|
if not self._hover:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user