From b9b23f4f18801dc7242054cdf7270fb9bc4a2065 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 14 Jan 2012 20:29:38 -0500 Subject: [PATCH] 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. --- gtk/gtkrange.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkrange.c b/gtk/gtkrange.c index cb8b1c839..5397e8c1f 100644 --- a/gtk/gtkrange.c +++ b/gtk/gtkrange.c @@ -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) { -- 2.43.2