[evolution-data-server] alarm-notify: Guard new glib symbol usage by a version check



commit 3e801822b545f158be0715d2cbde2ea4038208fa
Author: Milan Crha <mcrha redhat com>
Date:   Mon Jan 25 19:25:24 2021 +0100

    alarm-notify: Guard new glib symbol usage by a version check
    
    The G_APPLICATION_ALLOW_REPLACEMENT had been added in 2.60, but this
    case work with 2.46 of glib, thus check whether the symbol can be used
    at all during the compilation.

 src/services/evolution-alarm-notify/e-alarm-notify.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/services/evolution-alarm-notify/e-alarm-notify.c 
b/src/services/evolution-alarm-notify/e-alarm-notify.c
index 1ba1eeb31..259f4c885 100644
--- a/src/services/evolution-alarm-notify/e-alarm-notify.c
+++ b/src/services/evolution-alarm-notify/e-alarm-notify.c
@@ -1242,6 +1242,8 @@ e_alarm_notify_new (GCancellable *cancellable,
        return g_initable_new (
                E_TYPE_ALARM_NOTIFY, cancellable, error,
                "application-id", APPLICATION_ID,
+               #if GLIB_CHECK_VERSION(2, 60, 0)
                "flags", G_APPLICATION_ALLOW_REPLACEMENT,
+               #endif
                NULL);
 }


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