]> Pileus Git - ~andy/gtk/commitdiff
GtkRange: fix resize-grip overlap handling
authorMatthias Clasen <mclasen@redhat.com>
Sun, 15 Jan 2012 01:29:38 +0000 (20:29 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 15 Jan 2012 01:35:19 +0000 (20:35 -0500)
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

index cb8b1c839fd95b40e5d2afa0e471f953924afc48..5397e8c1f3071eecd9e261959b0dc28308a0309f 100644 (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)
         {