[gtk+] GtkRange: fix resize-grip overlap handling



commit b9b23f4f18801dc7242054cdf7270fb9bc4a2065
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Jan 14 20:29:38 2012 -0500

    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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkrange.c b/gtk/gtkrange.c
index cb8b1c8..5397e8c 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)
         {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]