gplugin/gplugin

Fix deprecation warning with GLib 2.74

18 months ago, Elliott Sales de Andrade
9541538492d0
Parents 170063fe23c0
Children 2df958da5c90
Fix deprecation warning with GLib 2.74

Testing Done:
Compiled only.

Reviewed at https://reviews.imfreedom.org/r/2012/
--- a/gplugin-gtk4-viewer/gplugin-gtk-viewer.c Fri Oct 28 01:59:04 2022 -0500
+++ b/gplugin-gtk4-viewer/gplugin-gtk-viewer.c Thu Nov 03 03:28:16 2022 -0500
@@ -126,7 +126,11 @@
textdomain(GETTEXT_PACKAGE);
/* Prepare application and options. */
+#if GLIB_CHECK_VERSION(2,74,0)
+ app = gtk_application_new(NULL, G_APPLICATION_DEFAULT_FLAGS);
+#else
app = gtk_application_new(NULL, G_APPLICATION_FLAGS_NONE);
+#endif
g_application_add_main_option_entries(G_APPLICATION(app), entries);
g_application_add_option_group(
G_APPLICATION(app),