Ticket #1301: sugar-1301.patch

File sugar-1301.patch, 951 bytes (added by alsroot, 12 years ago)
  • src/sugar/graphics/palette.py

    From 1d2aef6a9b355c7ed4e0c0c990c1151e1eea5e32 Mon Sep 17 00:00:00 2001
    From: Aleksey Lim <alsroot@member.fsf.org>
    Date: Wed, 9 Sep 2009 20:05:31 +0000
    Subject: Popdown menu on palette popdown #1301
    
    ---
     src/sugar/graphics/palette.py |    3 ++-
     1 files changed, 2 insertions(+), 1 deletions(-)
    
    diff --git a/src/sugar/graphics/palette.py b/src/sugar/graphics/palette.py
    index f4b18c0..8d19e6f 100644
    a b class Palette(PaletteWindow): 
    200200
    201201    def popdown(self, immediate=False):
    202202        if immediate:
     203            self._secondary_anim.stop()
     204            self.menu.popdown()
    203205            # to suppress glitches while later re-opening
    204206            self.set_palette_state(self.PRIMARY)
    205207        PaletteWindow.popdown(self, immediate)
    206         self._secondary_anim.stop()
    207208
    208209    def on_enter(self, event):
    209210        PaletteWindow.on_enter(self, event)