From 1beb8757c1a07ec78316c0778709472468d0549c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Qui=C3=B1ones?= Date: Fri, 1 Jun 2012 10:42:36 -0300 Subject: [PATCH] ToolButton: add 'icon_name' as a GObject property SL #3658 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sugar ToolButton inherits from Gtk.ToolButton but is not overwriting 'icon_name' property. So 'icon_name' can be passed to the constructor of Sugar ToolButton but the result is different than setting it via ToolButton.props.icon_name. Signed-off-by: Manuel QuiƱones Acked-by: Simon Schampijer --- src/sugar3/graphics/toolbutton.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sugar3/graphics/toolbutton.py b/src/sugar3/graphics/toolbutton.py index a1ab8e4a..1df7d4c1 100644 --- a/src/sugar3/graphics/toolbutton.py +++ b/src/sugar3/graphics/toolbutton.py @@ -120,6 +120,8 @@ class ToolButton(Gtk.ToolButton): self.set_icon_widget(icon) icon.show() + icon_name = GObject.property(type=str, setter=set_icon) + def create_palette(self): return None