]> Pileus Git - ~andy/gtk/blobdiff - gtk/gtkmenutoolbutton.c
Take widget y offset into account when positioning the popup. (#314470,
[~andy/gtk] / gtk / gtkmenutoolbutton.c
index 12e1aec08f2c297877a5e683dff51fc43a174d75..856a4f15d2fbf23c9e77e5ed45b0db7422384014 100644 (file)
@@ -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);