Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/rpms/sugar-toolkit/0023-RFC-Kill-the-delayed-menus-for-good.patch
blob: 3a07d8948d42315788d0c8e2cdd5229cd6057bdc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
From 04d97071f687b2dcbf0ef7f14652008a6f150e40 Mon Sep 17 00:00:00 2001
From: Bernie Innocenti <bernie@codewiz.org>
Date: Mon, 12 Oct 2009 22:36:12 -0400
Subject: [PATCH sugar-toolkit 23/31] RFC: Kill the delayed menus for good
Mail-Followup-To: <sugar-devel@lists.sugarlabs.org>

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@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 |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/sugar/graphics/palette.py b/src/sugar/graphics/palette.py
index 46f167b..8a2098e 100644
--- a/src/sugar/graphics/palette.py
+++ b/src/sugar/graphics/palette.py
@@ -101,7 +101,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 5281e54..b77cd9d 100644
--- a/src/sugar/graphics/palettewindow.py
+++ b/src/sugar/graphics/palettewindow.py
@@ -149,7 +149,7 @@ class PaletteWindow(gtk.Window):
         self._old_alloc = None
         self._palette_state = 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.6