Method

GtkActioncreate_icon

deprecated: 3.10 since: 2.4

Declaration [src]

GtkWidget*
gtk_action_create_icon (
  GtkAction* action,
  GtkIconSize icon_size
)

Description [src]

This function is intended for use by action implementations to create icons displayed in the proxy widgets.

Available since: 2.4

Deprecated since: 3.10

Use g_menu_item_set_icon() to set an icon on a GMenuItem, or gtk_container_add() to add a GtkImage to a GtkButton.

Parameters

icon_size

Type: GtkIconSize

The size of the icon (GtkIconSize) that should be created.

Return value

Type: GtkWidget

A widget that displays the icon for this action.

The returned data is owned by the instance.