summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2015-12-10 20:32:24 +0100
committerWolfgang Ulbrich <[email protected]>2015-12-10 20:32:24 +0100
commitb2cfa83c0cff0211ac63356fe16cd2ad2144bd91 (patch)
tree2a870825c8a042a015be5351bb38405916f19b0c /src
parentb57cfccec02400b470670c988adda6e99fe7a18f (diff)
downloadmate-screensaver-b2cfa83c0cff0211ac63356fe16cd2ad2144bd91.tar.bz2
mate-screensaver-b2cfa83c0cff0211ac63356fe16cd2ad2144bd91.tar.xz
GTK3: don't use deprecated GDK_THREADS_ENTER/LEAVE
Diffstat (limited to 'src')
-rw-r--r--src/gs-lock-plug.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gs-lock-plug.c b/src/gs-lock-plug.c
index 3387f29..5fe6d60 100644
--- a/src/gs-lock-plug.c
+++ b/src/gs-lock-plug.c
@@ -628,9 +628,13 @@ gs_lock_plug_run (GSLockPlug *plug)
ri.loop = g_main_loop_new (NULL, FALSE);
+#if !GTK_CHECK_VERSION (3, 0, 0)
GDK_THREADS_LEAVE ();
+#endif
g_main_loop_run (ri.loop);
+#if !GTK_CHECK_VERSION (3, 0, 0)
GDK_THREADS_ENTER ();
+#endif
g_main_loop_unref (ri.loop);