From 4a646ab04692b3c2cde912d54503c95e361dcf29 Mon Sep 17 00:00:00 2001 From: Ioan Dragomir Date: Thu, 14 Nov 2024 13:09:04 +0200 Subject: [PATCH] oscmain.c: Refactor deprecated use of gdk_threads_enter/leave Signed-off-by: Ioan Dragomir --- oscmain.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/oscmain.c b/oscmain.c index d99816a74..eec0c9497 100644 --- a/oscmain.c +++ b/oscmain.c @@ -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); @@ -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) { @@ -258,7 +252,6 @@ gint main (int argc, char **argv) } else application_quit(); } - gdk_threads_leave(); if (profile) free(profile);