From 061444ec79973eb174bc2a31890d14125c2779ef Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Manuel=20Qui=C3=B1ones?= <manuq@laptop.org>
Date: Fri, 1 Jun 2012 10:42:36 -0300
Subject: [PATCH sugar-toolkit-gtk3] 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
Mail-Followup-To: <sugar-devel@lists.sugarlabs.org>
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>
---
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 a1ab8e4..1df7d4c 100644
a
|
b
|
class ToolButton(Gtk.ToolButton): |
120 | 120 | self.set_icon_widget(icon) |
121 | 121 | icon.show() |
122 | 122 | |
| 123 | icon_name = GObject.property(type=str, setter=set_icon) |
| 124 | |
123 | 125 | def create_palette(self): |
124 | 126 | return None |
125 | 127 | |