[gtk+/gtk-3-2] GtkRange: fix resize-grip overlap handling
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-2] GtkRange: fix resize-grip overlap handling
- Date: Mon, 12 Mar 2012 02:56:35 +0000 (UTC)
commit ab9d57091898d7d01fd36eb434aa09dbabcb4eb1
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 96e54c6..569b628 100644
--- a/gtk/gtkrange.c
+++ b/gtk/gtkrange.c
@@ -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)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]