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 function retrieves the number of the monitor on which to show the menu. The (setf gtk:menu-monitor) function sets the monitor.

This function should be called from a gtk:menu-position-func 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 gtk:menu-position-func callback function, since, for very long menus, these coordinates may extend beyond the monitor boundaries or even the screen boundaries.
 

See also

#2023-3-21