From b0936a12d95088de0d5798d6adbe4cdca0feec4d Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 14 Jan 2012 19:53:48 -0500 Subject: [PATCH] GtkStatusbar: Fix resize-grip overlap calculation The allocation is relative to the window, so the way the statusbar was doing the overlap calculation was wrong. --- gtk/gtkstatusbar.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/gtk/gtkstatusbar.c b/gtk/gtkstatusbar.c index 8548ec2f1..0d4226ca6 100644 --- a/gtk/gtkstatusbar.c +++ b/gtk/gtkstatusbar.c @@ -666,12 +666,7 @@ gtk_statusbar_size_allocate (GtkWidget *widget, gtk_window_resize_grip_is_visible (GTK_WINDOW (window))) { gtk_window_get_resize_grip_area (GTK_WINDOW (window), &rect); - if (gtk_widget_translate_coordinates (gtk_widget_get_parent (widget), - window, - allocation->x, - allocation->y, - &x, - &y)) + if (gtk_widget_translate_coordinates (widget, window, 0, 0, &x, &y)) { translated_rect.x = x; translated_rect.y = y; -- 2.43.2