[gtk+] widget: Don't print missing allocation warning by default



commit 54fdcb3ffac3383432b379f3e16e8cb0086b8101
Author: Timm Bäder <mail baedert org>
Date:   Thu Sep 22 08:58:14 2016 +0200

    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.

 gtk/gtkwidget.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 3f48b14..29d8f9a 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -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


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