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

Christophe Fergeau cfergeau at redhat.com
Thu Oct 10 17:46:57 CEST 2013


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 at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20131010/05c1a99d/attachment.pgp>


More information about the Spice-devel mailing list