[Sugar-devel] RFC: Kill the delayed menus for good

Bernie Innocenti bernie at codewiz.org
Mon Oct 12 22:36:12 EDT 2009


Hello,

Michael just passed by the Acetarium and, since the dinner was late, we
found the time to test and review his latest prototype^W patch.

I'm loving how the menus suddenly are now snappy and responsive. Please,
test it yourself and report back. If we like this change, I think we
should go on and also kill the code that this patch makes redundant.
(please, let's not add another configurable knob!)

>From 83ef08969ed7bee08f90c12bfa1eedcb7fb0500c Mon Sep 17 00:00:00 2001
From: Michael Stone <michael at laptop.org>
Date: Mon, 14 Sep 2009 22:33:12 -0400
Subject: Make various palette animations happen more quickly.

---
 src/sugar/graphics/palette.py       |    2 +-
 src/sugar/graphics/palettewindow.py |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/sugar/graphics/palette.py
b/src/sugar/graphics/palette.py
index bb2b605..466edef 100644
--- a/src/sugar/graphics/palette.py
+++ b/src/sugar/graphics/palette.py
@@ -103,7 +103,7 @@ class Palette(PaletteWindow):
 
         self._menu_content_separator = gtk.HSeparator()
 
-        self._secondary_anim = animator.Animator(2.0, 10)
+        self._secondary_anim = animator.Animator(0.0, 10)
         self._secondary_anim.add(_SecondaryAnimation(self))
 
         # we init after initializing all of our containers
diff --git a/src/sugar/graphics/palettewindow.py
b/src/sugar/graphics/palettewindow.py
index 3049f55..4bc07e2 100644
--- a/src/sugar/graphics/palettewindow.py
+++ b/src/sugar/graphics/palettewindow.py
@@ -148,10 +148,10 @@ class PaletteWindow(gtk.Window):
         self._up = False
         self._old_alloc = None
 
-        self._popup_anim = animator.Animator(.5, 10)
+        self._popup_anim = animator.Animator(0.0, 10)
         self._popup_anim.add(_PopupAnimation(self))
 
-        self._popdown_anim = animator.Animator(0.6, 10)
+        self._popdown_anim = animator.Animator(0.0, 10)
         self._popdown_anim.add(_PopdownAnimation(self))
 
         gobject.GObject.__init__(self, **kwargs)
-- 
1.5.6.5


-- 
   // Bernie Innocenti - http://codewiz.org/
 \X/  Sugar Labs       - http://sugarlabs.org/



More information about the Sugar-devel mailing list