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): |
37 | 37 | __gtype_name__ = 'SugarClipboardIcon' |
38 | 38 | |
39 | 39 | def __init__(self, cb_object, group): |
40 | | RadioToolButton.__init__(self, group=group) |
| 40 | RadioToolButton.__init__(self, group=group, active=False) |
41 | 41 | |
42 | 42 | self.props.palette_invoker = FrameWidgetInvoker(self) |
43 | 43 | self.palette_invoker.props.toggle_palette = True |
… |
… |
class ClipboardIcon(RadioToolButton): |
45 | 45 | self._cb_object = cb_object |
46 | 46 | self.owns_clipboard = False |
47 | 47 | self.props.sensitive = False |
48 | | self.props.active = False |
49 | 48 | self._notif_icon = None |
50 | 49 | self._current_percent = None |
51 | 50 | |