From 8011a6fb42fdfc1ac99bfc1802433c20056c51e9 Mon Sep 17 00:00:00 2001 From: Wolfgang Ulbrich Date: Mon, 2 Nov 2015 23:57:32 +0100 Subject: GTK3: fix deprecated gdk_threads_enter/leave --- src/main.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/main.c b/src/main.c index a581e55..cc999e2 100644 --- a/src/main.c +++ b/src/main.c @@ -276,11 +276,15 @@ main (int argc, char **argv) load_files (); +#if !GTK_CHECK_VERSION (3, 0, 0) gdk_threads_enter (); +#endif gtk_main (); +#if !GTK_CHECK_VERSION (3, 0, 0) gdk_threads_leave (); +#endif if (startup_files) g_strfreev (startup_files); -- cgit v1.2.1