diff options
author | Matthias Clasen <mclasen@redhat.com> | 2005-08-25 18:04:09 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-08-25 18:04:09 +0000 |
commit | 7f76b46139748d14d0bfdd180cd05ba7e4443e89 (patch) | |
tree | 3cac0d5504927ac4af5922a21a5a3180c0484f41 /gtk/gtkmenutoolbutton.c | |
parent | ac8431612d9404d12c44b66daaba28511e92dcf7 (diff) | |
download | gtk+-7f76b46139748d14d0bfdd180cd05ba7e4443e89.tar.gz |
Take widget y offset into account when positioning the popup. (#314470,
2005-08-25 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkmenutoolbutton.c (menu_position_func): Take widget
y offset into account when positioning the popup. (#314470,
Christian Persch)
Diffstat (limited to 'gtk/gtkmenutoolbutton.c')
-rw-r--r-- | gtk/gtkmenutoolbutton.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtkmenutoolbutton.c b/gtk/gtkmenutoolbutton.c index 12e1aec08f..856a4f15d2 100644 --- a/gtk/gtkmenutoolbutton.c +++ b/gtk/gtkmenutoolbutton.c @@ -307,6 +307,7 @@ menu_position_func (GtkMenu *menu, { gdk_window_get_origin (widget->window, x, y); *x += widget->allocation.x; + *y += widget->allocation.y; if (direction == GTK_TEXT_DIR_LTR) *x += MAX (widget->allocation.width - menu_req.width, 0); |