Ticket #3989: 0001-Network-view-Connect-to-pop-up-and-pop-down-events-w.patch

File 0001-Network-view-Connect-to-pop-up-and-pop-down-events-w.patch, 1.5 KB (added by manuq, 10 years ago)

Fixup for AP icons - connect to palette popup and popdown

  • src/jarabe/desktop/networkviews.py

    From d992c4c6e15e91966a23d5a355d21c8279039f30 Mon Sep 17 00:00:00 2001
    From: =?UTF-8?q?Manuel=20Qui=C3=B1ones?= <manuq@laptop.org>
    Date: Mon, 15 Oct 2012 18:26:51 -0300
    Subject: [PATCH shell] Network view: Connect to 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 icons in the
    neighborhood when the palette pops up (prelight state) and pops down
    (remove prelight).
    
    Signed-off-by: Manuel Quiñones <manuq@laptop.org>
    ---
     src/jarabe/desktop/networkviews.py | 4 ++++
     1 file changed, 4 insertions(+)
    
    diff --git a/src/jarabe/desktop/networkviews.py b/src/jarabe/desktop/networkviews.py
    index 3ee954b..64b4be3 100644
    a b class WirelessNetworkView(EventPulsingIcon): 
    132132                                        self._disconnect_activate_cb)
    133133        p.menu.append(self._disconnect_item)
    134134
     135        self.connect_to_palette_pop_events(p)
     136
    135137        return p
    136138
    137139    def __device_state_changed_cb(self, new_state, old_state, reason):
    class SugarAdhocView(EventPulsingIcon): 
    499501                                      self.__disconnect_activate_cb)
    500502        palette_.menu.append(self._disconnect_item)
    501503
     504        self.connect_to_palette_pop_events(palette)
     505
    502506        return palette_
    503507
    504508    def __button_release_event_cb(self, icon, event):