[Spice-devel] [client v2 01/10] gdk: Temporarily ignore clipboard_get()'s deprecation warnings

Francois Gouget fgouget at codeweavers.com
Fri Oct 21 13:41:14 UTC 2016


Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---

Of course a better solution would be to figure out whether this is still 
needed, whether this executes in the main thread or not, etc.

 src/spice-gtk-session.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/spice-gtk-session.c b/src/spice-gtk-session.c
index 7bed005..7ec2a57 100644
--- a/src/spice-gtk-session.c
+++ b/src/spice-gtk-session.c
@@ -810,9 +810,11 @@ static void clipboard_get(GtkClipboard *clipboard,
 
     /* apparently, this is needed to avoid dead-lock, from
        gtk_dialog_run */
+    G_GNUC_BEGIN_IGNORE_DEPRECATIONS
     gdk_threads_leave();
     g_main_loop_run(ri.loop);
     gdk_threads_enter();
+    G_GNUC_END_IGNORE_DEPRECATIONS
 
 cleanup:
     g_clear_pointer(&ri.loop, g_main_loop_unref);
-- 
2.9.3


More information about the Spice-devel mailing list