diff options
author | Manuel Quiñones <manuq@laptop.org> | 2012-06-01 13:53:16 (GMT) |
---|---|---|
committer | Manuel Quiñones <manuq@laptop.org> | 2012-06-01 14:27:48 (GMT) |
commit | 7694bd513a8d158f02a17398378ef2f524f15f00 (patch) | |
tree | 39036e3ed5e492e0647520488941d16af33149aa /src | |
parent | f46220ee5c78540fc544bff5dcb2a208572456c1 (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>
Diffstat (limited to 'src')
-rw-r--r-- | src/sugar/graphics/toolbutton.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sugar/graphics/toolbutton.py b/src/sugar/graphics/toolbutton.py index 25833b6..3a40fb4 100644 --- a/src/sugar/graphics/toolbutton.py +++ b/src/sugar/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 |