Fix programmatical popdown

This commit is contained in:
Marco Pesenti Gritti 2006-10-18 14:26:07 +02:00
parent 18cbe0a68d
commit 7a06102b2e
2 changed files with 3 additions and 2 deletions

View File

@ -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')

View File

@ -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__))