Virtual Method

GtkActioncreate_menu_item

Declaration [src]

GtkWidget*
create_menu_item (
  GtkAction* action
)

Description [src]

Creates a menu item widget that proxies for the given action.

Available since:2.4
Deprecated since:3.10

Use g_menu_item_new() and associate it with a GAction instead.

Return value

Type: GtkWidget

A menu item connected to the action.

The data is owned by the called function.