Ticket #1291: sugar-1291.patch

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

    From 03aeec91c25bd967274cddb58f259beb4aece5cb Mon Sep 17 00:00:00 2001
    From: Aleksey Lim <alsroot@member.fsf.org>
    Date: Sun, 6 Sep 2009 20:39:51 +0000
    Subject: Hide palette group before immediate popup #1291
    
    ---
     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 aa5b416..533dedc 100644
    a b class PaletteWindow(gtk.Window): 
    319319        if not immediate:
    320320            self._popup_anim.start()
    321321        else:
     322            group = palettegroup.get_group(self._group_id)
     323            if group is not None:
     324                group.popdown()
    322325            self.show()
    323326            # we have to invoke update_position() twice
    324327            # since WM could ignore first move() request