]> Pileus Git - ~andy/gtk/commitdiff
GtkStatusbar: Fix resize-grip overlap calculation
authorMatthias Clasen <mclasen@redhat.com>
Sun, 15 Jan 2012 00:53:48 +0000 (19:53 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 15 Jan 2012 01:35:19 +0000 (20:35 -0500)
The allocation is relative to the window, so the way the statusbar
was doing the overlap calculation was wrong.

gtk/gtkstatusbar.c

index 8548ec2f143843945133583826afd043f035b7a8..0d4226ca6f12dcfb9ea3ce39e9f3f32111e4dd39 100644 (file)
@@ -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;