widget: Use G_ENABLE_CONSISTENCY_CHECKS for invariants checking
The logic here is that G_ENABLE_DEBUG is for compiling out debug spew that can be triggered at runtime with the GTK_DEBUG environment variable, while G_ENABLE_CONSISTENCY_CHECKS is for consistency checks that are applied unconditionally.
This commit is contained in:
parent
bf9a72976f
commit
1b15588732
@ -685,7 +685,7 @@ static void gtk_widget_real_move_focus (GtkWidget
|
|||||||
GtkDirectionType direction);
|
GtkDirectionType direction);
|
||||||
static gboolean gtk_widget_real_keynav_failed (GtkWidget *widget,
|
static gboolean gtk_widget_real_keynav_failed (GtkWidget *widget,
|
||||||
GtkDirectionType direction);
|
GtkDirectionType direction);
|
||||||
#ifdef G_ENABLE_DEBUG
|
#ifdef G_ENABLE_CONSISTENCY_CHECKS
|
||||||
static void gtk_widget_verify_invariants (GtkWidget *widget);
|
static void gtk_widget_verify_invariants (GtkWidget *widget);
|
||||||
static void gtk_widget_push_verify_invariants (GtkWidget *widget);
|
static void gtk_widget_push_verify_invariants (GtkWidget *widget);
|
||||||
static void gtk_widget_pop_verify_invariants (GtkWidget *widget);
|
static void gtk_widget_pop_verify_invariants (GtkWidget *widget);
|
||||||
@ -9944,7 +9944,7 @@ gtk_widget_reset_style (GtkWidget *widget)
|
|||||||
(GFunc) reset_style_recurse, NULL);
|
(GFunc) reset_style_recurse, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef G_ENABLE_DEBUG
|
#ifdef G_ENABLE_CONSISTENCY_CHECKS
|
||||||
|
|
||||||
/* Verify invariants, see docs/widget_system.txt for notes on much of
|
/* Verify invariants, see docs/widget_system.txt for notes on much of
|
||||||
* this. Invariants may be temporarily broken while we’re in the
|
* this. Invariants may be temporarily broken while we’re in the
|
||||||
@ -10124,7 +10124,7 @@ gtk_widget_pop_verify_invariants (GtkWidget *widget)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif /* G_ENABLE_DEBUG */
|
#endif /* G_ENABLE_CONSISTENCY_CHECKS */
|
||||||
|
|
||||||
static PangoContext *
|
static PangoContext *
|
||||||
gtk_widget_peek_pango_context (GtkWidget *widget)
|
gtk_widget_peek_pango_context (GtkWidget *widget)
|
||||||
|
Loading…
Reference in New Issue
Block a user