[gtk/wip/otte/for-master] widget: Remove a check
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/for-master] widget: Remove a check
- Date: Fri, 19 Nov 2021 23:48:14 +0000 (UTC)
commit f9761032cbca155241b2188831bc3bcda1e59918
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 73dc6b20be..3121112f3c 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -3874,18 +3874,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]