From fda5db26cbd137f908ad508a8d4476ab71fe1234 Mon Sep 17 00:00:00 2001 From: Tristan Matthews <tristan.matthews@savoirfairelinux.com> Date: Tue, 13 Dec 2011 10:21:43 -0500 Subject: [PATCH] * #7886: For now, wrap calls to old GThread API with GTK_CHECK_VERSION macros --- gnome/src/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gnome/src/main.c b/gnome/src/main.c index 5998bbcc68..7af50785b8 100644 --- a/gnome/src/main.c +++ b/gnome/src/main.c @@ -54,9 +54,11 @@ main(int argc, char *argv[]) if (g_strcmp0(argv[i], "--debug") == 0) set_log_level(LOG_DEBUG); +#if !GTK_CHECK_VERSION(2,32,0) g_thread_init(NULL); gdk_threads_init(); gdk_threads_enter(); +#endif // Start GTK application gtk_init(&argc, &argv); @@ -127,7 +129,9 @@ main(int argc, char *argv[]) shortcuts_destroy_bindings(); OUT: +#if !GTK_CHECK_VERSION(2,32,0) gdk_threads_leave(); +#endif return error != NULL; } -- GitLab