Skip to content

Commit

Permalink
oscmain.c: Refactor deprecated use of gdk_threads_enter/leave
Browse files Browse the repository at this point in the history
Signed-off-by: Ioan Dragomir <[email protected]>
  • Loading branch information
trupples committed Nov 14, 2024
1 parent f9d5341 commit 4a646ab
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions oscmain.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,11 +229,6 @@ gint main (int argc, char **argv)
break;
}

#ifndef __MINGW__
/* XXX: Enabling threading when compiling for Windows will lock the UI
* as soon as the main window is moved. */
gdk_threads_init();
#endif
gtk_init(&argc, &argv);

signal(SIGTERM, sigterm);
Expand All @@ -242,7 +237,6 @@ gint main (int argc, char **argv)
signal(SIGHUP, sigterm);
#endif

gdk_threads_enter();
init_application();
c = load_default_profile(profile, true);
if (!ctx_destroyed_by_do_quit) {
Expand All @@ -258,7 +252,6 @@ gint main (int argc, char **argv)
} else
application_quit();
}
gdk_threads_leave();

if (profile)
free(profile);
Expand Down

0 comments on commit 4a646ab

Please sign in to comment.