widget: Don't print missing allocation warning by default

This was meant to be silenced unless expicitly requested but
G_ENABLE_DEBUG is defined by default unless --disable-debug is passed to
configure, so use G_ENABLE_CONSISTENCY_CHECKS instead which is only
defined if --enable-debug is explicitly passed.
This commit is contained in:
Timm Bäder 2016-09-22 08:58:14 +02:00
parent 06b2adb107
commit 54fdcb3ffa

View File

@ -6998,7 +6998,7 @@ gtk_widget_draw_internal (GtkWidget *widget,
if (push_group)
cairo_push_group (cr);
#ifdef G_ENABLE_DEBUG
#ifdef G_ENABLE_CONSISTENCY_CHECKS
if (_gtk_widget_get_alloc_needed (widget))
g_warning ("%s %p is drawn without a current allocation. This should not happen.", G_OBJECT_TYPE_NAME (widget), widget);
#endif