ACK On Thu, Oct 10, 2013 at 05:36:29PM +0200, Marc-André Lureau wrote: > 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 > > _______________________________________________ > Spice-devel mailing list > Spice-devel@xxxxxxxxxxxxxxxxxxxxx > http://lists.freedesktop.org/mailman/listinfo/spice-devel
Attachment:
pgpaolFj_wJoL.pgp
Description: PGP signature
_______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/spice-devel