From faed9162abd2a7645944736dc37f82105f09c7bb Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Thu, 28 Jun 2007 09:54:12 +0000 Subject: Ooops do not start the popup animation on constructor. --- (limited to 'sugar') diff --git a/sugar/graphics/palette.py b/sugar/graphics/palette.py index 900b171..5b425d5 100644 --- a/sugar/graphics/palette.py +++ b/sugar/graphics/palette.py @@ -51,11 +51,9 @@ class Palette(gobject.GObject): self._popup_anim = animator.Animator(0.3, 10) self._popup_anim.add(_PopupAnimation(self)) - self._popup_anim.start() self._popdown_anim = animator.Animator(0.6, 10) self._popdown_anim.add(_PopdownAnimation(self)) - self._popdown_anim.start() self._menu = _sugarext.Menu() @@ -197,12 +195,14 @@ 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() -- cgit v0.9.1