Package: gtk

Accessor gtk-menu-monitor

Lambda List

gtk-menu-monitor (object)

Syntax

(gtk-menu-monitor object) => num
(setf (gtk-menu-monitor object) num)

Arguments

object -- a gtk-menu widget
num -- an integer with the number of the monitor on which the menu should be popped up

Details

Accessor of the monitor slot of the gtk-menu class.

The gtk-menu-monitor slot access function retrieves the number of the monitor on which to show the menu. The (setf gtk-menu-monitor) slot access function sets the monitor.

This function should be called from a GtkMenuPositionFunc callback function if the menu should not appear on the same monitor as the pointer. This information cannot be reliably inferred from the coordinates returned by a GtkMenuPositionFunc callback function, since, for very long menus, these coordinates may extend beyond the monitor boundaries or even the screen boundaries.
 

See also

2021-11-14