From ffbefe33162dbc65222f1df2c8456cbfd57448a1 Mon Sep 17 00:00:00 2001
From: Shanjit Singh <shanjitsingh@gmail.com>
Date: Tue, 7 Sep 2010 23:33:44 +0530
Subject: [PATCH] Reduction in the time taken for loading of the menu (SL#1169)
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 .
---
src/sugar/graphics/palettewindow.py | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/sugar/graphics/palettewindow.py b/src/sugar/graphics/palettewindow.py
index 22131c2..9b13800 100644
a
|
b
|
|
4 | 4 | # |
5 | 5 | # This library is free software; you can redistribute it and/or |
6 | 6 | # modify it under the terms of the GNU Lesser General Public |
7 | 7 | # License as published by the Free Software Foundation; either |
8 | 8 | # version 2 of the License, or (at your option) any later version. |
9 | 9 | |
10 | 10 | # This library is distributed in the hope that it will be useful, |
11 | 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
… |
… |
class PaletteWindow(gtk.Window): |
148 | 147 | self._up = False |
149 | 148 | self._old_alloc = None |
150 | 149 | |
151 | | self._popup_anim = animator.Animator(.5, 10) |
| 150 | self._popup_anim = animator.Animator(0.0, 10) |
152 | 151 | self._popup_anim.add(_PopupAnimation(self)) |
153 | 152 | |
154 | | self._popdown_anim = animator.Animator(0.6, 10) |
| 153 | self._popdown_anim = animator.Animator(0.0, 10) |
155 | 154 | self._popdown_anim.add(_PopdownAnimation(self)) |
156 | 155 | |
157 | 156 | gobject.GObject.__init__(self, **kwargs) |