[gedit/wip/adjustment-checks] utils: warnings only if invariant not respected
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit/wip/adjustment-checks] utils: warnings only if invariant not respected
- Date: Tue, 26 Jul 2022 21:49:23 +0000 (UTC)
commit 8e1bca526d5b4bfdb614cbc658d0724a35a460ca
Author: Sébastien Wilmet <swilmet informatique-libre be>
Date: Mon Jul 25 14:51:46 2022 +0200
utils: warnings only if invariant not respected
gedit/gedit-utils.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gedit/gedit-utils.c b/gedit/gedit-utils.c
index ef15a21cb..77db238ea 100644
--- a/gedit/gedit-utils.c
+++ b/gedit/gedit-utils.c
@@ -615,7 +615,7 @@ adjustment_notify_cb (GtkAdjustment *adjustment,
gpointer user_data)
{
g_print ("%s() ", G_STRFUNC);
- g_assert (gedit_utils_check_adjustment_invariants (adjustment));
+ g_warn_if_fail (gedit_utils_check_adjustment_invariants (adjustment));
}
static void
@@ -623,7 +623,7 @@ adjustment_changed_cb (GtkAdjustment *adjustment,
gpointer user_data)
{
g_print ("%s() ", G_STRFUNC);
- g_assert (gedit_utils_check_adjustment_invariants (adjustment));
+ g_warn_if_fail (gedit_utils_check_adjustment_invariants (adjustment));
}
static void
@@ -631,7 +631,7 @@ adjustment_value_changed_cb (GtkAdjustment *adjustment,
gpointer user_data)
{
g_print ("%s() ", G_STRFUNC);
- g_assert (gedit_utils_check_adjustment_invariants (adjustment));
+ g_warn_if_fail (gedit_utils_check_adjustment_invariants (adjustment));
}
void
@@ -640,7 +640,7 @@ gedit_utils_check_adjustment_changes (GtkAdjustment *adjustment)
g_return_if_fail (GTK_IS_ADJUSTMENT (adjustment));
g_print ("%s() ", G_STRFUNC);
- g_assert (gedit_utils_check_adjustment_invariants (adjustment));
+ g_warn_if_fail (gedit_utils_check_adjustment_invariants (adjustment));
g_signal_connect (adjustment,
"notify",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]