Ticket #1299: sugar-1299.patch

File sugar-1299.patch, 837 bytes (added by alsroot, 12 years ago)
  • src/sugar/graphics/palettewindow.py

    From 6b992ee9fbcad4727d7ed27b0a771da2cadf1854 Mon Sep 17 00:00:00 2001
    From: Aleksey Lim <alsroot@member.fsf.org>
    Date: Tue, 8 Sep 2009 07:14:22 +0000
    Subject: Close previous palette on reseting palette property in invoker #1299
    
    ---
     src/sugar/graphics/palettewindow.py |    3 +++
     1 files changed, 3 insertions(+), 0 deletions(-)
    
    diff --git a/src/sugar/graphics/palettewindow.py b/src/sugar/graphics/palettewindow.py
    index eb7a55a..73c6ae7 100644
    a b class Invoker(gobject.GObject): 
    641641        return self._palette
    642642
    643643    def set_palette(self, palette):
     644        if self._palette is not None:
     645            self._palette.popdown(immediate=True)
     646
    644647        if self._palette:
    645648            self._palette.props.invoker = None
    646649