Action.setGicon

void setGicon(gio.icon.Icon icon)

Sets the icon of action.

Parameters

iconthe #GIcon to set

Deprecated

Use #GAction instead, and [gio.menu_item.MenuItem.setIcon] to set an

icon on a #GMenuItem associated with a #GAction, or [gtk.container.Container.add] to add a #GtkImage to a #GtkButton