[gtk+/wip/baedert/drawing: 59/355] stackcombo: Set clip



commit ab6dfac77d677f5d5b4895cf7ee38127db0f6795
Author: Timm Bäder <mail baedert org>
Date:   Thu May 4 15:36:06 2017 +0200

    stackcombo: Set clip

 gtk/inspector/gtkstackcombo.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gtk/inspector/gtkstackcombo.c b/gtk/inspector/gtkstackcombo.c
index e834fba..c0d5798 100644
--- a/gtk/inspector/gtkstackcombo.c
+++ b/gtk/inspector/gtkstackcombo.c
@@ -253,10 +253,12 @@ gtk_stack_combo_size_allocate (GtkWidget     *widget,
                                GtkAllocation *allocation)
 {
   GtkStackCombo *self = GTK_STACK_COMBO (widget);
-
-  GTK_WIDGET_CLASS (gtk_stack_combo_parent_class)->size_allocate (widget, allocation);
+  GtkAllocation clip = *allocation;
 
   gtk_widget_size_allocate (GTK_WIDGET (self->combo), allocation);
+  gtk_widget_get_clip (GTK_WIDGET (self->combo), &clip);
+
+  gtk_widget_set_clip (widget, &clip);
 }
 
 static void


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