Method

GtkMenuButtonset_align_widget

since: 3.6

Declaration [src]

void
gtk_menu_button_set_align_widget (
  GtkMenuButton* menu_button,
  GtkWidget* align_widget
)

Description [src]

Sets the GtkWidget to use to line the menu with when popped up. Note that the align_widget must contain the GtkMenuButton itself.

Setting it to NULL means that the menu will be aligned with the button itself.

Note that this property is only used with menus currently, and not for popovers.

Available since: 3.6

Parameters

align_widget

Type: GtkWidget

A GtkWidget.

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