[gtk] sizerequest: Remove critical warning for now



commit de42b5bfae8d74d0de1f66f9095eef5969b4e8b1
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Dec 23 16:59:26 2021 -0500

    sizerequest: Remove critical warning for now
    
    At last as long as widgets like GtkFlowBox and
    GtkGrid still trigger this, it is not a great
    idea to have this warning in a stable release.
    So remove it for 4.6

 gtk/gtksizerequest.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
---
diff --git a/gtk/gtksizerequest.c b/gtk/gtksizerequest.c
index 21ee564182..7c34c7757c 100644
--- a/gtk/gtksizerequest.c
+++ b/gtk/gtksizerequest.c
@@ -493,11 +493,7 @@ gtk_widget_measure (GtkWidget        *widget,
       int min_opposite_size;
       gtk_widget_measure (widget, OPPOSITE_ORIENTATION (orientation), -1, &min_opposite_size, NULL, NULL, 
NULL);
       if (for_size < min_opposite_size)
-        {
-          g_critical ("gtk_widget_measure: assertion 'for_size >= minimum opposite size' failed: %u >= %u",
-                      for_size, min_opposite_size);
-          for_size = min_opposite_size;
-        }
+        for_size = min_opposite_size;
     }
 
   /* This is the main function that checks for a cached size and


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