[gtk+] Use G_ENABLE_CONSISTENCY_CHECKS for template finalization checks



commit 9da0aa5d4071df88568555f303ad440e3230ddde
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Sep 9 00:51:45 2015 -0400

    Use G_ENABLE_CONSISTENCY_CHECKS for template finalization checks

 gtk/gtkwidget.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 424813e..e6250bd 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -11993,7 +11993,7 @@ gtk_widget_dispose (GObject *object)
   G_OBJECT_CLASS (gtk_widget_parent_class)->dispose (object);
 }
 
-#ifdef G_ENABLE_DEBUG
+#ifdef G_ENABLE_CONSISTENCY_CHECKS
 typedef struct {
   AutomaticChildClass *child_class;
   GType                widget_type;
@@ -12066,7 +12066,7 @@ build_finalize_assertion_list (GtkWidget *widget)
 
   return list;
 }
-#endif /* G_ENABLE_DEBUG */
+#endif /* G_ENABLE_CONSISTENCY_CHECKS */
 
 static void
 gtk_widget_real_destroy (GtkWidget *object)
@@ -12080,7 +12080,7 @@ gtk_widget_real_destroy (GtkWidget *object)
       GtkWidgetClass *class;
       GSList *l;
 
-#ifdef G_ENABLE_DEBUG
+#ifdef G_ENABLE_CONSISTENCY_CHECKS
       GSList *assertions = NULL;
 
       /* Note, GTK_WIDGET_ASSERT_COMPONENTS is very useful
@@ -12100,7 +12100,7 @@ gtk_widget_real_destroy (GtkWidget *object)
       g_hash_table_destroy (priv->auto_children);
       priv->auto_children = NULL;
 
-#ifdef G_ENABLE_DEBUG
+#ifdef G_ENABEL_CONSISTENCY_CHECKS
       for (l = assertions; l; l = l->next)
        {
          FinalizeAssertion *assertion = l->data;


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