[gnome-calendar] utils: Add gcal_clear_signal_handler
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] utils: Add gcal_clear_signal_handler
- Date: Sat, 4 May 2019 15:08:17 +0000 (UTC)
commit 5e3eb40c53de85e6ddf0b7bac0b7856555ca583d
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Sat May 4 11:35:55 2019 -0300
utils: Add gcal_clear_signal_handler
src/utils/gcal-utils.h | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/src/utils/gcal-utils.h b/src/utils/gcal-utils.h
index 9dacbb87..272d9f7e 100644
--- a/src/utils/gcal-utils.h
+++ b/src/utils/gcal-utils.h
@@ -33,6 +33,7 @@
#define MAX_MINUTES (7 * MINUTES_PER_DAY)
#define gcal_clear_timeout(pp) { if (pp && *pp) { g_source_remove (*pp); *pp = 0; } }
+#define gcal_clear_signal_handler(pp,instance) { if (pp && *pp > 0) { g_signal_handler_disconnect (instance,
*pp); *pp = 0; } }
#if !EDS_CHECK_VERSION (3, 31, 90)
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ESource, g_object_unref)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]