summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2022-09-27 14:27:17 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2022-09-28 12:16:54 +0100
commitadceeaab3bed5d6ac086b53f798dcda610d69161 (patch)
tree1c174e0da725e8b5bc0cd4a1f9ea6a3644f6834a
parent1de4a9673b4fc17b1ac4679d05640ca7b093a1f4 (diff)
downloadgrilo-adceeaab3bed5d6ac086b53f798dcda610d69161.tar.gz
tools: Avoid a deprecation warning with newer GLib
G_APPLICATION_FLAGS_NONE has been deprecated, and replaced with G_APPLICATION_DEFAULT_FLAGS in GLib 2.74. We can simply use zero to avoid a version check.
-rw-r--r--tools/grilo-test-ui/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/grilo-test-ui/main.c b/tools/grilo-test-ui/main.c
index eb6f343..b4e9255 100644
--- a/tools/grilo-test-ui/main.c
+++ b/tools/grilo-test-ui/main.c
@@ -2501,12 +2501,13 @@ main (int argc, char **argv)
GtkApplication *app;
int status;
g_autofree char *app_id = NULL;
+ GApplicationFlags app_flags = 0;
grl_init (&argc, &argv);
GRL_LOG_DOMAIN_INIT (test_ui_log_domain, "test-ui");
app_id = get_app_id ();
- app = gtk_application_new (app_id, G_APPLICATION_FLAGS_NONE);
+ app = gtk_application_new (app_id, app_flags);
g_signal_connect (app, "activate", G_CALLBACK (activate), NULL);
status = g_application_run (G_APPLICATION (app), argc, argv);
g_object_unref (app);