Skip to content

Commit

Permalink
Remove G_APPLICATION_DEFAULT_FLAGS
Browse files Browse the repository at this point in the history
In order to support older versions (like Debian)
  • Loading branch information
btrkeks committed Aug 25, 2024
1 parent e863175 commit 7dc1103
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/frontends/gtk3popup/dictpopup-config_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/frontends/gtk3popup/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7dc1103

Please sign in to comment.