Ticket #4323: 0003-ClipboardIcon-set-active-property-via-the-parent-con.patch

File 0003-ClipboardIcon-set-active-property-via-the-parent-con.patch, 1.5 KB (added by manuq, 11 years ago)

Shell patch.

  • src/jarabe/frame/clipboardicon.py

    From 1bc33795569f9eef4c4411e467bde073ee3ca7d6 Mon Sep 17 00:00:00 2001
    From: =?UTF-8?q?Manuel=20Qui=C3=B1ones?= <manuq@laptop.org>
    Date: Wed, 19 Dec 2012 14:04:56 -0300
    Subject: [PATCH shell 3/3] ClipboardIcon: set active property via the parent
     constructor - SL #4323
    MIME-Version: 1.0
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: 8bit
    Mail-Followup-To: <sugar-devel@lists.sugarlabs.org>
    
    If we set it later the palette makes a popup because the 'clicked'
    signal is sent.
    
    Signed-off-by: Manuel Quiñones <manuq@laptop.org>
    ---
     src/jarabe/frame/clipboardicon.py | 3 +--
     1 file changed, 1 insertion(+), 2 deletions(-)
    
    diff --git a/src/jarabe/frame/clipboardicon.py b/src/jarabe/frame/clipboardicon.py
    index 26af595..bcf4c63 100644
    a b class ClipboardIcon(RadioToolButton): 
    3737    __gtype_name__ = 'SugarClipboardIcon'
    3838
    3939    def __init__(self, cb_object, group):
    40         RadioToolButton.__init__(self, group=group)
     40        RadioToolButton.__init__(self, group=group, active=False)
    4141
    4242        self.props.palette_invoker = FrameWidgetInvoker(self)
    4343        self.palette_invoker.props.toggle_palette = True
    class ClipboardIcon(RadioToolButton): 
    4545        self._cb_object = cb_object
    4646        self.owns_clipboard = False
    4747        self.props.sensitive = False
    48         self.props.active = False
    4948        self._notif_icon = None
    5049        self._current_percent = None
    5150