Method
GtkMenuset_monitor
since: 2.4
Declaration [src]
void
gtk_menu_set_monitor (
GtkMenu* menu,
gint monitor_num
)
Description [src]
Informs GTK+ on which monitor a menu should be popped up. See gdk_monitor_get_geometry().
This function should be called from a GtkMenuPositionFunc
if the menu should not appear on the same monitor as the pointer.
This information can’t be reliably inferred from the coordinates
returned by a GtkMenuPositionFunc
, since, for very long menus,
these coordinates may extend beyond the monitor boundaries or even
the screen boundaries.
Available since: 2.4
Sets property | Gtk.Menu:monitor |