[Sugar-devel] [PATCH v2] Reduction in the time taken for loading of the menu (SL#1169)

shanjit at seeta.in shanjit at seeta.in
Thu Oct 21 11:36:18 EDT 2010


From: Shanjit Singh Jajmann <shanjit at seeta.in>

Reduction in the lead time for loading the drop down menus. Changes made in the time delay for rendering of the secondary palette to improve human computer interaction and experience.

v1 -> v2 : Since the time 0.0, was too short for comfortable viewing, arguments have been modified suitably to bring in a smooth pop-up and pop-down feature. Suggestions taken from SL#2367.

Co-authored-by: Frederick Grose <fgrose at sugarlabs.org>
Reviewed-by: Bernie Innocenti <bernie at codewiz.org>
---
 src/sugar/graphics/palette.py       |    2 +-
 src/sugar/graphics/palettewindow.py |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/sugar/graphics/palette.py b/src/sugar/graphics/palette.py
index d4f844c..5be8304 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(1.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 f51c938..4f19e0d 100644
--- a/src/sugar/graphics/palettewindow.py
+++ b/src/sugar/graphics/palettewindow.py
@@ -148,7 +148,7 @@ 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)
-- 
1.7.2.2



More information about the Sugar-devel mailing list