Fix programmatical popdown
This commit is contained in:
parent
18cbe0a68d
commit
7a06102b2e
@ -69,6 +69,9 @@ class MenuIcon(CanvasIcon):
|
|||||||
self._menu = None
|
self._menu = None
|
||||||
self._menu_shell.set_active(None)
|
self._menu_shell.set_active(None)
|
||||||
|
|
||||||
|
def popdown(self):
|
||||||
|
self._timeline.play('popdown', 'popdown')
|
||||||
|
|
||||||
def _motion_notify_event_cb(self, item, event):
|
def _motion_notify_event_cb(self, item, event):
|
||||||
if event.detail == hippo.MOTION_DETAIL_ENTER:
|
if event.detail == hippo.MOTION_DETAIL_ENTER:
|
||||||
self._timeline.play(None, 'popup')
|
self._timeline.play(None, 'popup')
|
||||||
|
@ -22,8 +22,6 @@ import gobject
|
|||||||
|
|
||||||
from sugar.presence import PresenceService
|
from sugar.presence import PresenceService
|
||||||
|
|
||||||
os.environ['SUGAR_PROFILE'] = 'simulator'
|
|
||||||
|
|
||||||
PresenceService.start()
|
PresenceService.start()
|
||||||
|
|
||||||
base_path = os.path.abspath(os.path.dirname(__file__))
|
base_path = os.path.abspath(os.path.dirname(__file__))
|
||||||
|
Loading…
Reference in New Issue
Block a user