[Spice-commits] gtk/spice-gtk-session.c
Marc-André Lureau
elmarco at kemper.freedesktop.org
Sun Aug 5 08:55:13 PDT 2012
gtk/spice-gtk-session.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 6160f08134fa42b422239fc3be0425576f58d808
Author: Matthias Clasen <mclasen at redhat.com>
Date: Sun Aug 5 17:50:56 2012 +0200
Don't use GDK_THREADS_ENTER/LEAVE
These macros have been deprecated. The quick fix for now is to just use the
functions gdk_threads_enter/leave instead. They are deprecated as well, but
deprecated functions don't cause the build to fail (unless you use -Werror).
diff --git a/gtk/spice-gtk-session.c b/gtk/spice-gtk-session.c
index 0a2c4a1..555085b 100644
--- a/gtk/spice-gtk-session.c
+++ b/gtk/spice-gtk-session.c
@@ -619,9 +619,9 @@ static void clipboard_get(GtkClipboard *clipboard,
/* apparently, this is needed to avoid dead-lock, from
gtk_dialog_run */
- GDK_THREADS_LEAVE();
+ gdk_threads_leave();
g_main_loop_run(ri.loop);
- GDK_THREADS_ENTER();
+ gdk_threads_enter();
g_main_loop_unref(ri.loop);
ri.loop = NULL;
More information about the Spice-commits
mailing list