From 10c5cfa36f92c7290c73db78d10fb37cf60f8a7d Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 6 Mar 2003 22:48:16 +0000 Subject: [PATCH] Fix 0/FALSE confusion. (#107662, Morten Welinder) 2003-03-06 Matthias Clasen * gsignal.c (g_signal_handlers_block_matched): (g_signal_handlers_unblock_matched): (g_signal_handlers_disconnect_matched): Fix 0/FALSE confusion. (#107662, Morten Welinder) --- gobject/ChangeLog | 7 +++++++ gobject/gsignal.c | 12 ++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/gobject/ChangeLog b/gobject/ChangeLog index 633e385..1316d13 100644 --- a/gobject/ChangeLog +++ b/gobject/ChangeLog @@ -1,3 +1,10 @@ +2003-03-06 Matthias Clasen + + * gsignal.c (g_signal_handlers_block_matched): + (g_signal_handlers_unblock_matched): + (g_signal_handlers_disconnect_matched): Fix 0/FALSE confusion. + (#107662, Morten Welinder) + Mon Feb 17 20:59:47 2003 Tim Janik * gvalue.c (g_value_register_transform_func): don't assert the types diff --git a/gobject/gsignal.c b/gobject/gsignal.c index a29b6eb..9f9e132 100644 --- a/gobject/gsignal.c +++ b/gobject/gsignal.c @@ -1841,8 +1841,8 @@ g_signal_handlers_block_matched (gpointer instance, { guint n_handlers = 0; - g_return_val_if_fail (G_TYPE_CHECK_INSTANCE (instance), FALSE); - g_return_val_if_fail ((mask & ~G_SIGNAL_MATCH_MASK) == 0, FALSE); + g_return_val_if_fail (G_TYPE_CHECK_INSTANCE (instance), 0); + g_return_val_if_fail ((mask & ~G_SIGNAL_MATCH_MASK) == 0, 0); if (mask & (G_SIGNAL_MATCH_CLOSURE | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA)) { @@ -1867,8 +1867,8 @@ g_signal_handlers_unblock_matched (gpointer instance, { guint n_handlers = 0; - g_return_val_if_fail (G_TYPE_CHECK_INSTANCE (instance), FALSE); - g_return_val_if_fail ((mask & ~G_SIGNAL_MATCH_MASK) == 0, FALSE); + g_return_val_if_fail (G_TYPE_CHECK_INSTANCE (instance), 0); + g_return_val_if_fail ((mask & ~G_SIGNAL_MATCH_MASK) == 0, 0); if (mask & (G_SIGNAL_MATCH_CLOSURE | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA)) { @@ -1893,8 +1893,8 @@ g_signal_handlers_disconnect_matched (gpointer instance, { guint n_handlers = 0; - g_return_val_if_fail (G_TYPE_CHECK_INSTANCE (instance), FALSE); - g_return_val_if_fail ((mask & ~G_SIGNAL_MATCH_MASK) == 0, FALSE); + g_return_val_if_fail (G_TYPE_CHECK_INSTANCE (instance), 0); + g_return_val_if_fail ((mask & ~G_SIGNAL_MATCH_MASK) == 0, 0); if (mask & (G_SIGNAL_MATCH_CLOSURE | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA)) { -- 2.7.4