[Spice-devel] [PATCH spice-gtk] gtk-session: fix clipboard_agent_connected

Marc-André Lureau marcandre.lureau at gmail.com
Thu Oct 10 17:36:29 CEST 2013


Use swapped connection to pass data as first argument to signal handler.
---
 gtk/spice-gtk-session.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gtk/spice-gtk-session.c b/gtk/spice-gtk-session.c
index 476af95..af491d2 100644
--- a/gtk/spice-gtk-session.c
+++ b/gtk/spice-gtk-session.c
@@ -635,7 +635,7 @@ static void clipboard_get(GtkClipboard *clipboard,
     clipboard_handler = g_signal_connect(s->main, "main-clipboard-selection",
                                          G_CALLBACK(clipboard_got_from_guest),
                                          &ri);
-    agent_handler = g_signal_connect(s->main, "notify::agent-connected",
+    agent_handler = g_signal_connect_swapped(s->main, "notify::agent-connected",
                                      G_CALLBACK(clipboard_agent_connected),
                                      &ri);
 
-- 
1.8.3.1



More information about the Spice-devel mailing list