Skip to content

Commit

Permalink
Start work
Browse files Browse the repository at this point in the history
  • Loading branch information
btrkeks committed May 4, 2024
1 parent 1053593 commit 20c6d80
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions src/gtk3window.c
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@


static void activate(GtkApplication *app, gpointer user_data) {
dictpopup_t *dictdata = (dictpopup_t *)user_data;
}

int main(int argc, char *argv[]) {
dictpopup_t d = dictpopup_init(argc, argv);

pthread_t thread;
pthread_create(&thread, NULL, fill_dictionary, &d);
pthread_detach(thread);

GtkApplication *app =
gtk_application_new("com.github.Ajatt-Tools.dictpopup", G_APPLICATION_DEFAULT_FLAGS);
g_signal_connect(app, "activate", G_CALLBACK(activate), &d);
g_application_run(G_APPLICATION(app), 0, NULL);
g_object_unref(app);

gboolean is_remote = g_application_get_is_remote(app);

if (is_remote) {
} else {
g_signal_connect(app, "activate", G_CALLBACK(activate), &d);
g_application_run(G_APPLICATION(app), 0, NULL);
g_object_unref(app);
}
}

0 comments on commit 20c6d80

Please sign in to comment.