summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--ChangeLog.pre-2-106
-rw-r--r--gtk/gtkmenutoolbutton.c1
3 files changed, 13 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index b786eb087a..55eb8d14fc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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)
+
2005-08-25 Owen Taylor <otaylor@redhat.com>
* gdk/gdkscreen.c (gdk_screen_get_type): Use gdk_screen_init
diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10
index b786eb087a..55eb8d14fc 100644
--- a/ChangeLog.pre-2-10
+++ b/ChangeLog.pre-2-10
@@ -1,3 +1,9 @@
+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)
+
2005-08-25 Owen Taylor <otaylor@redhat.com>
* gdk/gdkscreen.c (gdk_screen_get_type): Use gdk_screen_init
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);