[gtk+] Set the clip on range widgets



commit 7dd466ad7428c55c7b422f02c0aecbc0eea2505c
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Nov 8 12:55:03 2014 -0500

    Set the clip on range widgets
    
    This will allow better scrollbar theming.

 gtk/gtkrange.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkrange.c b/gtk/gtkrange.c
index 62801c5..51898ef 100644
--- a/gtk/gtkrange.c
+++ b/gtk/gtkrange.c
@@ -42,6 +42,7 @@
 #include "gtkscrollbar.h"
 #include "gtktypebuiltins.h"
 #include "gtkwindow.h"
+#include "gtkwidgetprivate.h"
 #include "a11y/gtkrangeaccessible.h"
 
 /**
@@ -1638,6 +1639,8 @@ gtk_range_size_allocate (GtkWidget     *widget,
     gdk_window_move_resize (priv->event_window,
                             allocation->x, allocation->y,
                             allocation->width, allocation->height);
+
+  _gtk_widget_set_simple_clip (widget, NULL);
 }
 
 static void


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