Virtual Method

GtkActioncreate_menu

deprecated: 3.10 since: 2.12

Declaration [src]

GtkWidget*
create_menu (
  GtkAction* action
)

Description [src]

If action provides a GtkMenu widget as a submenu for the menu item or the toolbar item it creates, this function returns an instance of that menu.

Available since: 2.12

Deprecated since: 3.10

Use GAction and GMenuModel instead, and create a GtkMenu with gtk_menu_new_from_model()

Return value

Type: GtkWidget

The menu item provided by the action, or NULL.

The returned data is owned by the instance.