[Spice-devel] [PATCH spice-gtk 1/2] controller: handle SEND_CAD message as a property

Hans de Goede hdegoede at redhat.com
Thu Mar 22 02:09:20 PDT 2012


Looks good, ACK series.

On 03/21/2012 11:07 PM, Marc-André Lureau wrote:
> ---
>   gtk/controller/controller.vala |    6 +++++-
>   1 files changed, 5 insertions(+), 1 deletions(-)
>
> diff --git a/gtk/controller/controller.vala b/gtk/controller/controller.vala
> index 12b5b8d..b083f4e 100644
> --- a/gtk/controller/controller.vala
> +++ b/gtk/controller/controller.vala
> @@ -40,6 +40,7 @@ public class Controller: Object {
>   	public string[] disable_channels { private set; get; }
>   	public SpiceCtrl.Menu? menu  { private set; get; }
>   	public bool enable_smartcard { private set; get; }
> +	public bool send_cad { private set; get; }
>
>   	public signal void do_connect ();
>   	public signal void show ();
> @@ -131,7 +132,10 @@ public class Controller: Object {
>   			menu = null;
>   			break;
>
> -		// ignore SEND_CAD
> +		case SpiceProtocol.Controller.MsgId.SEND_CAD:
> +			send_cad = (bool)v.value;
> +			break;
> +
>   		case SpiceProtocol.Controller.MsgId.HOTKEYS:
>   			hotkeys = str;
>   			break;


More information about the Spice-devel mailing list