[Dextrose] [PATCH] Secondary palette appears too soon on Neighborhood view buddy icons (SL#2367)

shanjit at seeta.in shanjit at seeta.in
Tue Oct 19 11:20:35 EDT 2010


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

Changes have been made to the arguments, as suggested in bug report. On hovering now, the name appears first. Being on the icon for a slighlty more time then shows the secondary palette.

Co-Authored-By: Bernie Innocenti <bernie at codewiz.org>
Co-Authored-By: Fredrick Grose <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