GtkRange: fix resize-grip overlap handling

We only want to shrink the scrollbar allocation by the actual
overlap, not always by the full size of the resize grip.
This commit is contained in:
Matthias Clasen 2012-01-14 20:29:38 -05:00
parent b0936a12d9
commit b9b23f4f18

View File

@ -1635,7 +1635,7 @@ modify_allocation_for_window_grip (GtkWidget *widget,
}
/* If the stepper button intersects the window resize grip.. */
if (gdk_rectangle_intersect (&grip_rect, &translated_rect, NULL))
if (gdk_rectangle_intersect (&grip_rect, &translated_rect, &grip_rect))
{
if (priv->orientation == GTK_ORIENTATION_HORIZONTAL)
{