Method

GtkActioncreate_menu

Declaration [src]

GtkWidget*
gtk_action_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 data is owned by the instance.