Make icon_name api consistent between the different toolbuttons
As discused in the mailing list [1] the api to set the icon in sugar ToolButton, RadioToolButton and ToggleToolButton is inconsistent, and with the port to GTK+ 3 the differences are visible (SL #3849). This patch changes the API of ToolButton, RadioToolButton and ToggleToolButton to override the icon-name property and add an Icon instance with the set_icon_widget method. Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org> [1] http://lists.sugarlabs.org/archive/sugar-devel/2012-September/039624.htmlmaster
parent
fe4667f0f5
commit
fe11a3aa23
Loading…
Reference in New Issue