summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.c4
1 files changed, 4 insertions, 0 deletions
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);