diff --git a/app/gimpconsoleapp.c b/app/gimpconsoleapp.c index 309d7263c4..1239b31c66 100644 --- a/app/gimpconsoleapp.c +++ b/app/gimpconsoleapp.c @@ -66,7 +66,11 @@ gimp_console_app_new (Gimp *gimp, app = g_object_new (GIMP_TYPE_CONSOLE_APP, "application-id", GIMP_APPLICATION_ID, +#if GLIB_CHECK_VERSION(2,74,0) "flags", G_APPLICATION_DEFAULT_FLAGS | G_APPLICATION_NON_UNIQUE, +#else + "flags", G_APPLICATION_FLAGS_NONE | G_APPLICATION_NON_UNIQUE, +#endif "gimp", gimp, "filenames", filenames, "as-new", as_new, diff --git a/app/gui/gimpapp.c b/app/gui/gimpapp.c index f0c09e0aa7..214156ba1e 100644 --- a/app/gui/gimpapp.c +++ b/app/gui/gimpapp.c @@ -142,7 +142,11 @@ gimp_app_new (Gimp *gimp, * remove our own code for uniqueness and batch command * inter-process communication. This should be tested. */ +#if GLIB_CHECK_VERSION(2,74,0) "flags", G_APPLICATION_DEFAULT_FLAGS | G_APPLICATION_NON_UNIQUE, +#else + "flags", G_APPLICATION_FLAGS_NONE | G_APPLICATION_NON_UNIQUE, +#endif "gimp", gimp, "filenames", filenames, "as-new", as_new,