[gimp] libgimpwidgets: don't chain up in gimp_frame_size_allocate()



commit a898f22cceecde991631165624b8294643aa3fc7
Author: Michael Natterer <mitch gimp org>
Date:   Fri Sep 30 19:23:39 2016 +0200

    libgimpwidgets: don't chain up in gimp_frame_size_allocate()
    
    We completely replace GtkFrame's implementation here, and chaining up
    caused an infinite loop in the widget layout apparatus in some cases.
    
    This reverts 53f34ebc0b10fd0688d78a2524a7caaa657f3c11 for this file.

 libgimpwidgets/gimpframe.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libgimpwidgets/gimpframe.c b/libgimpwidgets/gimpframe.c
index 607f355..4ab7229 100644
--- a/libgimpwidgets/gimpframe.c
+++ b/libgimpwidgets/gimpframe.c
@@ -149,7 +149,8 @@ gimp_frame_size_allocate (GtkWidget     *widget,
   GtkWidget     *child        = gtk_bin_get_child (GTK_BIN (widget));
   GtkAllocation  child_allocation;
 
-  GTK_WIDGET_CLASS (parent_class)->size_allocate (widget, allocation);
+  /* must not chain up here */
+  gtk_widget_set_allocation (widget, allocation);
 
   gimp_frame_child_allocate (frame, &child_allocation);
 


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