ToolButton.setIconWidget

Sets icon as the widget used as icon on button. If icon_widget is null the icon is determined by the #GtkToolButton:stock-id property. If the #GtkToolButton:stock-id property is also null, button will not have an icon.

class ToolButton
void
setIconWidget

Parameters

iconWidget gtk.widget.Widget

the widget used as icon, or null