diff options
author | Manuel Quiñones <manuq@laptop.org> | 2012-06-01 13:42:36 (GMT) |
---|---|---|
committer | Manuel Quiñones <manuq@laptop.org> | 2012-06-01 14:12:52 (GMT) |
commit | 1beb8757c1a07ec78316c0778709472468d0549c (patch) | |
tree | 4b442d67588c3c6648b190d95fe98c6d82209e7d | |
parent | ab643a1076f4b8ec5d7b72df75bbdb42ef4027ee (diff) |
ToolButton: add 'icon_name' as a GObject property SL #3658
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 <manuq@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
-rw-r--r-- | src/sugar3/graphics/toolbutton.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sugar3/graphics/toolbutton.py b/src/sugar3/graphics/toolbutton.py index a1ab8e4..1df7d4c 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 |