Method

GtkMenupopup_at_pointer

since: 3.22

Declaration [src]

void
gtk_menu_popup_at_pointer (
  GtkMenu* menu,
  const GdkEvent* trigger_event
)

Description [src]

Displays menu and makes it available for selection.

See gtk_menu_popup_at_widget () to pop up a menu at a widget. gtk_menu_popup_at_rect () also allows you to position a menu at an arbitrary rectangle.

menu will be positioned at the pointer associated with trigger_event.

Properties that influence the behaviour of this function are GtkMenu:anchor-hints, GtkMenu:rect-anchor-dx, GtkMenu:rect-anchor-dy, and GtkMenu:menu-type-hint. Connect to the GtkMenu::popped-up signal to find out how it was actually positioned.

Available since: 3.22

Parameters

trigger_event

Type: GdkEvent

The GdkEvent that initiated this request or NULL if it’s the current event.

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