diff options
author | Matthias Clasen <mclasen@redhat.com> | 2012-08-05 17:50:56 +0200 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2012-08-05 17:50:56 +0200 |
commit | 6160f08134fa42b422239fc3be0425576f58d808 (patch) | |
tree | 43ecdb3780a1e579c797720d4b9cfd25bd6950a1 /gtk/spice-gtk-session.c | |
parent | 88a1eff2f24eeb82e7c20b3dc46e01bc61554ef2 (diff) |
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).
Diffstat (limited to 'gtk/spice-gtk-session.c')
-rw-r--r-- | gtk/spice-gtk-session.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |