diff options
author | Matthias Clasen <mclasen@redhat.com> | 2012-01-14 19:53:48 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2012-01-14 20:35:19 -0500 |
commit | b0936a12d95088de0d5798d6adbe4cdca0feec4d (patch) | |
tree | d64179850c6c1f7f0fe3af7d38dd76856442f1b8 /gtk/gtkstatusbar.c | |
parent | 9ef2fdf956892b03d94b051642d909839dab7638 (diff) | |
download | gtk+-b0936a12d95088de0d5798d6adbe4cdca0feec4d.tar.gz |
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.
Diffstat (limited to 'gtk/gtkstatusbar.c')
-rw-r--r-- | gtk/gtkstatusbar.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/gtk/gtkstatusbar.c b/gtk/gtkstatusbar.c index 8548ec2f14..0d4226ca6f 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; |