From 905e4ff06cb449ef28d9ef87a945acf9d38b5344 Mon Sep 17 00:00:00 2001
From: Manuel Kaufmann <humitos@gmail.com>
Date: Thu, 29 Nov 2012 11:01:44 -0300
Subject: [PATCH sugar-toolkit-gtk3] Set GObject property before calling
__init__ SL #4280
'self._hide_tooltip_on_click' is marked as a GObject property for
RadioToolButton and must be defined before calling
GObject.GObject.__init__ to be initialized properly.
Signed-off-by: Manuel Kaufmann <humitos@gmail.com>
---
src/sugar3/graphics/radiotoolbutton.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/sugar3/graphics/radiotoolbutton.py b/src/sugar3/graphics/radiotoolbutton.py
index c04cdc8..31458e8 100644
a
|
b
|
class RadioToolButton(Gtk.RadioToolButton): |
37 | 37 | self._accelerator = None |
38 | 38 | self._tooltip = None |
39 | 39 | self._xo_color = None |
| 40 | self._hide_tooltip_on_click = True |
40 | 41 | self._palette_invoker = ToolInvoker() |
41 | 42 | |
42 | 43 | GObject.GObject.__init__(self, **kwargs) |
43 | 44 | |
44 | 45 | self._palette_invoker.attach_tool(self) |
45 | | self._hide_tooltip_on_click = True |
46 | 46 | |
47 | 47 | if icon_name: |
48 | 48 | self.set_icon_name(icon_name) |