forked from AuroraMiddleware/gtk
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:
parent
06b2adb107
commit
54fdcb3ffa
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user