[gtk+] frame: Fix gadget conversion



commit 2417184a1f1e95e0c5ac3493a6af8e0ae914c916
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Dec 16 17:12:12 2015 -0500

    frame: Fix gadget conversion
    
    The GtkCssAllocateFunc must set the clip to meaningful values.

 gtk/gtkframe.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkframe.c b/gtk/gtkframe.c
index c50c1df..41b0948 100644
--- a/gtk/gtkframe.c
+++ b/gtk/gtkframe.c
@@ -852,6 +852,8 @@ gtk_frame_allocate_border (GtkCssGadget        *gadget,
   child = gtk_bin_get_child (GTK_BIN (widget));
   if (child && gtk_widget_get_visible (child))
     gtk_widget_size_allocate (child, (GtkAllocation *)allocation);
+
+  *out_clip = *allocation;
 }
 
 static void


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