From ae8ffc775dabaa4b4050714348f8a5cece8a6a65 Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Tue, 27 Sep 2016 11:39:04 +0200 Subject: [PATCH] widget: Don't print underallocation warnings by default See similar changes: https://git.gnome.org/browse/gtk+/commit/?id=1b15588732f2c4e3c59994a59613d4e5c963e283 https://git.gnome.org/browse/gtk+/commit/?id=54fdcb3ffac3383432b379f3e16e8cb0086b8101 https://bugzilla.gnome.org/show_bug.cgi?id=770388 --- gtk/gtkwidget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index 29d8f9a608..4b2f5c894c 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -6037,7 +6037,7 @@ gtk_widget_size_allocate_with_baseline (GtkWidget *widget, gtk_widget_get_preferred_width_for_height (widget, real_allocation.height, &min_width, &natural_width); } -#ifdef G_ENABLE_DEBUG +#ifdef G_ENABLE_CONSISTENCY_CHECKS if ((min_width > real_allocation.width || min_height > real_allocation.height) && !GTK_IS_SCROLLABLE (widget)) g_warning ("gtk_widget_size_allocate(): attempt to underallocate %s%s %s %p. "