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 c1ff1c398c
commit ab9d570918

View File

@@ -1629,7 +1629,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)
{