• Matthias Clasen's avatar
    Changes to improve menu positioning on Xinerama (#108328): · e71bcc84
    Matthias Clasen authored
    Wed Nov 12 21:40:10 2003  Matthias Clasen  <maclas@gmx.de>
    
    	Changes to improve menu positioning on Xinerama (#108328):
    
    	* gtk/gtkmenu.c (struct _GtkMenuPrivate): Add a menu_num field
    	to store the monitor on which the menu is to be positioned.
    
    	* gtk/gtkmenu.[hc] (gtk_menu_position): Store the monitor number
    	in the GtkMenuPrivate struct and fetch the monitor geometry after
    	calling the position_func, in case it has been changed.
    
    	* gtk/gtkmenu.c (gtk_menu_set_monitor): New function
    	to be used in GtkMenuPositionFunc implementations for setting
    	the monitor_num field in GtkMenuPrivate.
    
    	* gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Call
    	gtk_menu_set_monitor.
    e71bcc84
gtkmenu.h 7.12 KB