From 7dc11031b755ffeffe54ab511f06b90c6e884a91 Mon Sep 17 00:00:00 2001 From: butterkeks Date: Sun, 25 Aug 2024 17:09:50 +0200 Subject: [PATCH] Remove G_APPLICATION_DEFAULT_FLAGS In order to support older versions (like Debian) --- src/frontends/gtk3popup/dictpopup-config_main.c | 2 +- src/frontends/gtk3popup/main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontends/gtk3popup/dictpopup-config_main.c b/src/frontends/gtk3popup/dictpopup-config_main.c index f6cbdb6..7dcdc9e 100644 --- a/src/frontends/gtk3popup/dictpopup-config_main.c +++ b/src/frontends/gtk3popup/dictpopup-config_main.c @@ -14,7 +14,7 @@ int main(int argc, char *argv[]) { int status; app = gtk_application_new("com.github.Ajatt-Tools.dictpopup-settings", - G_APPLICATION_DEFAULT_FLAGS); + G_APPLICATION_FLAGS_NONE); g_signal_connect(app, "activate", G_CALLBACK(activate), NULL); status = g_application_run(G_APPLICATION(app), argc, argv); g_object_unref(app); diff --git a/src/frontends/gtk3popup/main.c b/src/frontends/gtk3popup/main.c index e42ce09..1821aae 100644 --- a/src/frontends/gtk3popup/main.c +++ b/src/frontends/gtk3popup/main.c @@ -7,7 +7,7 @@ int main(int argc, char *argv[]) { g_autoptr(GtkApplication) app = g_object_new( DP_TYPE_APPLICATION, "application_id", "com.github.Ajatt-Tools.dictpopup", "flags", - G_APPLICATION_HANDLES_COMMAND_LINE | G_APPLICATION_NON_UNIQUE | G_APPLICATION_DEFAULT_FLAGS, + G_APPLICATION_HANDLES_COMMAND_LINE | G_APPLICATION_NON_UNIQUE, NULL); return g_application_run(G_APPLICATION(app), argc, argv);