Method

GtkActionset_gicon

deprecated: 3.10 since: 2.16

Declaration [src]

void
gtk_action_set_gicon (
  GtkAction* action,
  GIcon* icon
)

Description [src]

Sets the icon of action.

Available since: 2.16

Deprecated since: 3.10

Use GAction instead, and g_menu_item_set_icon() to set an icon on a GMenuItem associated with a GAction, or gtk_container_add() to add a GtkImage to a GtkButton.

Sets propertyGtk.Action:gicon

Parameters

icon

Type: GIcon

The GIcon to set.

The data is owned by the caller of the method.