diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2008-05-24 10:34:46 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2008-05-24 10:34:46 (GMT) |
commit | f4bda5eb226073b9aa61161750aca9203a3c2bd8 (patch) | |
tree | c84c6876f453b4e9616eed34a59f194695095f97 /src/sugar/graphics/radiotoolbutton.py | |
parent | 6dcc35bc17717008c7d90d3430f670cd03e1c18d (diff) |
Allow to attach the invoker to the widget after construction,
so that gproperties to constructor can be implemented correctly.
Diffstat (limited to 'src/sugar/graphics/radiotoolbutton.py')
-rw-r--r-- | src/sugar/graphics/radiotoolbutton.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sugar/graphics/radiotoolbutton.py b/src/sugar/graphics/radiotoolbutton.py index d6e8b69..1563e2a 100644 --- a/src/sugar/graphics/radiotoolbutton.py +++ b/src/sugar/graphics/radiotoolbutton.py @@ -30,10 +30,11 @@ class RadioToolButton(gtk.RadioToolButton): self._accelerator = None self._tooltip = None self._xo_color = xo_color + self._palette_invoker = ToolInvoker() gobject.GObject.__init__(self, **kwargs) - self._palette_invoker = ToolInvoker(self) + self._palette_invoker.attach_tool(self) if named_icon: self.set_named_icon(named_icon) |