[gtk+] toolitem: set clip on allocation



commit db372382e93c58f942180b858b1c271967f066d1
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed Sep 3 14:45:51 2014 -0700

    toolitem: set clip on allocation
    
    So that widgets that are children of tool items can render their shadows
    too.

 gtk/gtktoolitem.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtktoolitem.c b/gtk/gtktoolitem.c
index 774ecd0..78e3188 100644
--- a/gtk/gtktoolitem.c
+++ b/gtk/gtktoolitem.c
@@ -31,7 +31,7 @@
 #include "deprecated/gtkactivatable.h"
 #include "gtkintl.h"
 #include "gtkprivate.h"
-
+#include "gtkwidgetprivate.h"
 
 /**
  * SECTION:gtktoolitem
@@ -531,6 +531,8 @@ gtk_tool_item_size_allocate (GtkWidget     *widget,
       
       gtk_widget_size_allocate (child, &child_allocation);
     }
+
+  _gtk_widget_set_simple_clip (widget, NULL);
 }
 
 gboolean


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