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.
This commit is contained in:
Matthias Clasen 2012-01-14 19:53:48 -05:00
parent 9ef2fdf956
commit b0936a12d9

View 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;