Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Schampijer <simon@laptop.org>2012-11-28 17:15:38 (GMT)
committer Simon Schampijer <simon@laptop.org>2012-11-28 17:57:37 (GMT)
commit06fab044e263ba76574dadbe9005a5e2c4fd1ef2 (patch)
tree7fe44ccaa1d8920f5432505d4043a86c960e6eac
parent7b8fa5e406d8ff5c66f05f8ab3961317f3744794 (diff)
RadioToolButton: make sure _hide_tooltip_on_click is initialized in time
If we pass the active property to the constructor do_clicked seem to get called. Before chaining up to the Gtk.RadioToolButton constructor we need to initialize the variable. This is a followup of 5a1b380dd6099d7455d67e00718388fa79b57e01 Signed-off-by: Simon Schampijer <simon@laptop.org> Tested-by: Gonzalo Odiard <gonzalo@laptop.org> Acked-by: Manuel QuiƱones <manuq@laptop.org>
-rw-r--r--src/sugar3/graphics/radiotoolbutton.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sugar3/graphics/radiotoolbutton.py b/src/sugar3/graphics/radiotoolbutton.py
index c04cdc8..fa910fd 100644
--- a/src/sugar3/graphics/radiotoolbutton.py
+++ b/src/sugar3/graphics/radiotoolbutton.py
@@ -37,12 +37,13 @@ class RadioToolButton(Gtk.RadioToolButton):
self._accelerator = None
self._tooltip = None
self._xo_color = None
+ self._hide_tooltip_on_click = True
+
self._palette_invoker = ToolInvoker()
GObject.GObject.__init__(self, **kwargs)
self._palette_invoker.attach_tool(self)
- self._hide_tooltip_on_click = True
if icon_name:
self.set_icon_name(icon_name)