Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/graphics
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@tomeuvizoso.net>2007-03-28 17:34:11 (GMT)
committer Tomeu Vizoso <tomeu@tomeuvizoso.net>2007-03-28 17:34:11 (GMT)
commita6c1ef608064a400d1fc3e7d9e5eba352d231ac6 (patch)
tree8024d2111927b9f17fe54ea15d07538c03ae2b13 /sugar/graphics
parent1d493919a2a5dd10022f8da0f9c1685ed9daf8c8 (diff)
Popup/popdown fixes.
Diffstat (limited to 'sugar/graphics')
-rw-r--r--sugar/graphics/canvasicon.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/sugar/graphics/canvasicon.py b/sugar/graphics/canvasicon.py
index 3d5438f..d50e9f9 100644
--- a/sugar/graphics/canvasicon.py
+++ b/sugar/graphics/canvasicon.py
@@ -418,9 +418,15 @@ class CanvasIcon(hippo.CanvasBox, hippo.CanvasItem):
self.prelight(enter=True)
def _leave(self):
- self._popup_anim = animator.Animator(0.2, 10)
- self._popup_anim.add(_PopdownAnimation(self))
- self._popup_anim.start()
+ # FIXME: This is a hack for taking out the popdown delay for tooltips and
+ # increasing the rest of rollovers. We need a better way for specifiying
+ # different behaviors for the different kinds of popups.
+ if type(self._popup) == Popup:
+ self.hide_popup()
+ else:
+ self._popup_anim = animator.Animator(0.5, 10)
+ self._popup_anim.add(_PopdownAnimation(self))
+ self._popup_anim.start()
self.prelight(enter=False)