summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2015-11-02 23:57:32 +0100
committerWolfgang Ulbrich <[email protected]>2015-12-02 13:15:58 +0100
commit8011a6fb42fdfc1ac99bfc1802433c20056c51e9 (patch)
tree367c302161dab499e4614209b44a1d5eba678d78 /src
parenta4d162e07198350693d651a868dbf6981eb00295 (diff)
downloadeom-8011a6fb42fdfc1ac99bfc1802433c20056c51e9.tar.bz2
eom-8011a6fb42fdfc1ac99bfc1802433c20056c51e9.tar.xz
GTK3: fix deprecated gdk_threads_enter/leave
Diffstat (limited to 'src')
-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);