Ticket #3989: 0002-Owner-icon-connect-to-palette-pop-up-and-pop-down-ev.patch

File 0002-Owner-icon-connect-to-palette-pop-up-and-pop-down-ev.patch, 1.2 KB (added by manuq, 10 years ago)

Fixup for owner icon - connect to palette popup and popdown

  • src/jarabe/desktop/favoritesview.py

    From 99a1af5c5492c3ec458fb6ad433dfd570b85598d Mon Sep 17 00:00:00 2001
    From: =?UTF-8?q?Manuel=20Qui=C3=B1ones?= <manuq@laptop.org>
    Date: Mon, 15 Oct 2012 18:37:48 -0300
    Subject: [PATCH shell 2/2] Owner icon: connect to palette pop-up and pop-down
     events when the palette is created - SL #3989
    MIME-Version: 1.0
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: 8bit
    Mail-Followup-To: <sugar-devel@lists.sugarlabs.org>
    
    Connecting to the events fixes the state of the owner icon in the home
    favorites view when the palette pops up (prelight state) and pops down
    (remove prelight).
    
    Signed-off-by: Manuel Quiñones <manuq@laptop.org>
    ---
     src/jarabe/desktop/favoritesview.py | 2 ++
     1 file changed, 2 insertions(+)
    
    diff --git a/src/jarabe/desktop/favoritesview.py b/src/jarabe/desktop/favoritesview.py
    index a6dc01f..9c7a76e 100644
    a b class OwnerIcon(BuddyIcon): 
    617617        palette.menu.append(self._register_menu)
    618618        self._register_menu.show()
    619619
     620        self.connect_to_palette_pop_events(palette)
     621
    620622        return palette
    621623
    622624    def __register_activate_cb(self, menuitem):