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

Marc-André Lureau marcandre.lureau at gmail.com
Wed Mar 21 15:07:02 PDT 2012


---
 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;
-- 
1.7.7.6



More information about the Spice-devel mailing list