[balsa] ab-main: Glib deprecation cleanup



commit c683a5e6928481a13912d5eede3278b603e29d87
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Fri Aug 26 08:54:59 2022 -0400

    ab-main: Glib deprecation cleanup

 src/ab-main.c | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/src/ab-main.c b/src/ab-main.c
index 90afddc94..ae667430a 100644
--- a/src/ab-main.c
+++ b/src/ab-main.c
@@ -1072,8 +1072,13 @@ main(int argc, char *argv[])
     GList *l;
     GError *error = NULL;
 
+#if GLIB_CHECK_VERSION(2, 73, 3)
+    application =
+        gtk_application_new("org.desktop.BalsaAb", G_APPLICATION_DEFAULT_FLAGS);
+#else  /* GLIB_CHECK_VERSION(2, 73, 3) */
     application =
         gtk_application_new("org.desktop.BalsaAb", G_APPLICATION_FLAGS_NONE);
+#endif /* GLIB_CHECK_VERSION(2, 73, 3) */
     if (!g_application_register(G_APPLICATION(application), NULL, &error)) {
         g_warning("Could not register address book editor: %s", error->message);
         g_error_free(error);


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