[Dextrose] [PATCH] Reduction in the time taken for loading of the menu (SL#1169)
shanjit at seeta.in
shanjit at seeta.in
Wed Oct 20 18:37:38 EDT 2010
From: Shanjit Singh Jajmann <shanjit at seeta.in>
The earlier menu which was slow in loading up, has now been made quicker to respond to hovering above it. Changes have been made to palette.py and palettewindow.py .
v1 -> v2 : Since the time 0.0, was too short for comfortable viewing, changes have been made, to allow sufficient pop up down. Suggestions taken from SL#2367.
Co-Authored by : Frederick <fgrose at sugarlabs.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 Dextrose
mailing list