Ticket #1265: sugar-1265.patch

File sugar-1265.patch, 1.3 KB (added by alsroot, 12 years ago)
  • src/sugar/graphics/palette.py

    From 5256720882b874b8c6164f62fa14099151f3d1d4 Mon Sep 17 00:00:00 2001
    From: Aleksey Lim <alsroot@member.fsf.org>
    Date: Thu, 3 Sep 2009 15:35:54 +0000
    Subject: Hide all animators while deleting palettes #1265
    
    ---
     src/sugar/graphics/palette.py       |    2 ++
     src/sugar/graphics/palettewindow.py |    1 +
     2 files changed, 3 insertions(+), 0 deletions(-)
    
    diff --git a/src/sugar/graphics/palette.py b/src/sugar/graphics/palette.py
    index 5db0bd2..f58e7ac 100644
    a b class Palette(PaletteWindow): 
    154154        self._update_separators()
    155155
    156156    def __destroy_cb(self, palette):
     157        self._secondary_anim.stop()
     158        self.popdown(immediate=True)
    157159        # Break the reference cycle. It looks like the gc is not able to free
    158160        # it, possibly because gtk.Menu memory handling is very special.
    159161        self.menu = None
  • src/sugar/graphics/palettewindow.py

    diff --git a/src/sugar/graphics/palettewindow.py b/src/sugar/graphics/palettewindow.py
    index b3392af..57f1e00 100644
    a b class PaletteWindow(gtk.Window): 
    330330        if not immediate:
    331331            self._popdown_anim.start()
    332332        else:
     333            self._popdown_anim.stop()
    333334            self.hide()
    334335
    335336    def on_invoker_enter(self):