[Xfce4-commits] [apps/xfce4-screensaver] 220/425: GTK3: don't use deprecated GDK_THREADS_ENTER/LEAVE
noreply at xfce.org
noreply at xfce.org
Mon Oct 15 01:51:07 CEST 2018
This is an automated email from the git hooks/post-receive script.
b l u e s a b r e p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository apps/xfce4-screensaver.
commit b2cfa83c0cff0211ac63356fe16cd2ad2144bd91
Author: Wolfgang Ulbrich <chat-to-me at raveit.de>
Date: Thu Dec 10 20:32:24 2015 +0100
GTK3: don't use deprecated GDK_THREADS_ENTER/LEAVE
---
savers/gste-slideshow.c | 8 ++++++++
src/gs-lock-plug.c | 4 ++++
2 files changed, 12 insertions(+)
diff --git a/savers/gste-slideshow.c b/savers/gste-slideshow.c
index 887ec87..4c0fb99 100644
--- a/savers/gste-slideshow.c
+++ b/savers/gste-slideshow.c
@@ -428,7 +428,9 @@ results_pull_func (GSTESlideshow *show)
{
OpResult *result;
+#if !GTK_CHECK_VERSION (3, 0, 0)
GDK_THREADS_ENTER ();
+#endif
g_async_queue_lock (show->priv->results_q);
@@ -447,7 +449,9 @@ results_pull_func (GSTESlideshow *show)
g_async_queue_unlock (show->priv->results_q);
+#if !GTK_CHECK_VERSION (3, 0, 0)
GDK_THREADS_LEAVE ();
+#endif
return FALSE;
}
@@ -685,7 +689,9 @@ op_load_image (GSTESlideshow *show,
window_width,
window_height);
+#if !GTK_CHECK_VERSION (3, 0, 0)
GDK_THREADS_ENTER ();
+#endif
g_async_queue_lock (show->priv->results_q);
g_async_queue_push_unlocked (show->priv->results_q, op_result);
@@ -697,7 +703,9 @@ op_load_image (GSTESlideshow *show,
}
g_async_queue_unlock (show->priv->results_q);
+#if !GTK_CHECK_VERSION (3, 0, 0)
GDK_THREADS_LEAVE ();
+#endif
}
static gpointer
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);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list