Ticket #1169: 0001-Reduction-in-the-time-taken-for-loading-of-the-menu-.patch

File 0001-Reduction-in-the-time-taken-for-loading-of-the-menu-.patch, 1.7 KB (added by seeta, 14 years ago)

Patch File for 50% reduction in the loading time of the menus

  • src/sugar/graphics/palettewindow.py

    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  
    44#
    55# This library is free software; you can redistribute it and/or
    66# modify it under the terms of the GNU Lesser General Public
    7 # License as published by the Free Software Foundation; either
    8 # version 2 of the License, or (at your option) any later version.
     7# License as published by the Free Software Foundation; either on.
    98#
    109# This library is distributed in the hope that it will be useful,
    1110# but WITHOUT ANY WARRANTY; without even the implied warranty of
    class PaletteWindow(gtk.Window): 
    148147        self._up = False
    149148        self._old_alloc = None
    150149
    151         self._popup_anim = animator.Animator(.5, 10)
     150        self._popup_anim = animator.Animator(0.0, 10)
    152151        self._popup_anim.add(_PopupAnimation(self))
    153152
    154         self._popdown_anim = animator.Animator(0.6, 10)
     153        self._popdown_anim = animator.Animator(0.0, 10)
    155154        self._popdown_anim.add(_PopdownAnimation(self))
    156155
    157156        gobject.GObject.__init__(self, **kwargs)