Method

GtkMenuButtonset_popup

since: 3.6

Declaration [src]

void
gtk_menu_button_set_popup (
  GtkMenuButton* menu_button,
  GtkWidget* menu
)

Description [src]

Sets the GtkMenu that will be popped up when the menu_button is clicked, or NULL to dissociate any existing menu and disable the button.

If GtkMenuButton:menu-model or GtkMenuButton:popover are set, those objects are dissociated from the menu_button, and those properties are set to NULL.

Available since: 3.6

Sets propertyGtk.MenuButton:popup

Parameters

menu

Type: GtkWidget

A GtkMenu, or NULL to unset and disable the button.

The argument can be NULL.
The data is owned by the caller of the method.