From 7a06102b2eff1d7e19cd1a9b153f328dba989704 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Wed, 18 Oct 2006 14:26:07 +0200 Subject: [PATCH] Fix programmatical popdown --- sugar/graphics/menuicon.py | 3 +++ tests/simulator/simulator | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/sugar/graphics/menuicon.py b/sugar/graphics/menuicon.py index 72f0288e..7ee6bce0 100644 --- a/sugar/graphics/menuicon.py +++ b/sugar/graphics/menuicon.py @@ -69,6 +69,9 @@ class MenuIcon(CanvasIcon): self._menu = None self._menu_shell.set_active(None) + def popdown(self): + self._timeline.play('popdown', 'popdown') + def _motion_notify_event_cb(self, item, event): if event.detail == hippo.MOTION_DETAIL_ENTER: self._timeline.play(None, 'popup') diff --git a/tests/simulator/simulator b/tests/simulator/simulator index be2d1788..d720d916 100755 --- a/tests/simulator/simulator +++ b/tests/simulator/simulator @@ -22,8 +22,6 @@ import gobject from sugar.presence import PresenceService -os.environ['SUGAR_PROFILE'] = 'simulator' - PresenceService.start() base_path = os.path.abspath(os.path.dirname(__file__))