summaryrefslogtreecommitdiff
path: root/gtk/gtkmenu.h
diff options
context:
space:
mode:
authorMatthias Clasen <maclas@gmx.de>2003-11-12 20:53:03 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2003-11-12 20:53:03 +0000
commite71bcc8487b3e72504e657796dd2abbe7a2babc1 (patch)
tree1d8c391ef19ecd6a6e044cdee3ea03177f61103d /gtk/gtkmenu.h
parentf3c0fd5991287f15ef7a37ba347cb1286d16a3cf (diff)
downloadgtk+-e71bcc8487b3e72504e657796dd2abbe7a2babc1.tar.gz
Changes to improve menu positioning on Xinerama (#108328):
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.
Diffstat (limited to 'gtk/gtkmenu.h')
-rw-r--r--gtk/gtkmenu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkmenu.h b/gtk/gtkmenu.h
index b430254ba3..5701f5cc9a 100644
--- a/gtk/gtkmenu.h
+++ b/gtk/gtkmenu.h
@@ -196,6 +196,8 @@ void gtk_menu_attach (GtkMenu *menu,
guint top_attach,
guint bottom_attach);
+void gtk_menu_set_monitor (GtkMenu *menu,
+ gint monitor_num);
#ifndef GTK_DISABLE_DEPRECATED
#define gtk_menu_append(menu,child) gtk_menu_shell_append ((GtkMenuShell *)(menu),(child))