Ticket #1291: sugar-1291.2.patch

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

    From d9660b53042a970d5cac29e63cb8a100398c64b9 Mon Sep 17 00:00:00 2001
    From: Aleksey Lim <alsroot@member.fsf.org>
    Date: Wed, 9 Sep 2009 15:08:09 +0000
    Subject: Hide palette group before immediate popup #1291
    
    ---
     src/sugar/graphics/palettegroup.py  |    3 +++
     src/sugar/graphics/palettewindow.py |    3 +++
     2 files changed, 6 insertions(+), 0 deletions(-)
    
    diff --git a/src/sugar/graphics/palettegroup.py b/src/sugar/graphics/palettegroup.py
    index 5f15bde..7e6ce46 100644
    a b class Group(gobject.GObject): 
    8383                palette.popdown(immediate=True)
    8484
    8585    def _palette_popup_cb(self, palette):
     86        for i in self._palettes:
     87            if i != palette:
     88                i.popdown(immediate=True)
    8689        if not self._up:
    8790            self.emit('popup')
    8891            self._up = True
  • src/sugar/graphics/palettewindow.py

    diff --git a/src/sugar/graphics/palettewindow.py b/src/sugar/graphics/palettewindow.py
    index 73c6ae7..48394d1 100644
    a b class PaletteWindow(gtk.Window): 
    373373            self.on_leave(event)
    374374
    375375    def __show_cb(self, widget):
     376        if self._invoker is None:
     377            return
     378
    376379        self._invoker.notify_popup()
    377380
    378381        self._up = True