[gtk/wip/otte/for-master: 8/8] widget: Remove a check




commit 1eb86d63948eb863d132f062407a631a68851867
Author: Benjamin Otte <otte redhat com>
Date:   Sat Nov 20 00:44:47 2021 +0100

    widget: Remove a check
    
    That consistency check is entirely outdated and just prints confusing
    stuff.

 gtk/gtkwidget.c | 12 ------------
 1 file changed, 12 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 65c62be6a0..192cc62de3 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -3876,18 +3876,6 @@ gtk_widget_adjust_size_allocation (GtkWidget     *widget,
                         &allocation->x,
                         &allocation->width);
     }
-
-#ifdef G_ENABLE_CONSISTENCY_CHECKS
-  if ((min_width > allocation->width + priv->margin.left + priv->margin.right ||
-       min_height > allocation->height + priv->margin.top + priv->margin.bottom) &&
-      !GTK_IS_SCROLLABLE (widget))
-    g_warning ("gtk_widget_size_allocate(): attempt to underallocate %s%s %s %p. "
-               "Allocation is %dx%d, but minimum required size is %dx%d.",
-               priv->parent ? G_OBJECT_TYPE_NAME (priv->parent) : "", priv->parent ? "'s child" : "toplevel",
-               G_OBJECT_TYPE_NAME (widget), widget,
-               allocation->width, allocation->height,
-               min_width, min_height);
-#endif
 }
 
 /**


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