[Spice-devel] [PATCH spice-gtk] controller: add support for DISABLE_EFFECTS and COLOR_DEPTH

Yonit Halperin yhalperi at redhat.com
Mon Apr 2 00:42:13 PDT 2012


rhbz #787449

Signed-off-by: Yonit Halperin <yhalperi at redhat.com>
---
 data/spice-protocol.vapi       |    3 +++
 gtk/controller/controller.vala |    9 +++++++++
 spice-common                   |    2 +-
 3 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/data/spice-protocol.vapi b/data/spice-protocol.vapi
index 6626176..4b88175 100644
--- a/data/spice-protocol.vapi
+++ b/data/spice-protocol.vapi
@@ -64,6 +64,9 @@ namespace SpiceProtocol {
 
 			//spice client -> external app
 			MENU_ITEM_CLICK,
+
+			COLOR_DEPTH,
+			DISABLE_EFFECTS,
 		}
 
 		[CCode (cname = "unsigned int", cprefix = "CONTROLLER_", has_type_id = false)]
diff --git a/gtk/controller/controller.vala b/gtk/controller/controller.vala
index c6cf984..0e35d0c 100644
--- a/gtk/controller/controller.vala
+++ b/gtk/controller/controller.vala
@@ -41,6 +41,8 @@ public class Controller: Object {
 	public SpiceCtrl.Menu? menu  { private set; get; }
 	public bool enable_smartcard { private set; get; }
 	public bool send_cad { private set; get; }
+	public string[] disable_effects {private set; get; }
+	public uint32 color_depth {private set; get; }
 
 	public signal void do_connect ();
 	public signal void show ();
@@ -142,6 +144,13 @@ public class Controller: Object {
 			hotkeys = str;
 			break;
 
+        case SpiceProtocol.Controller.MsgId.COLOR_DEPTH:
+            color_depth = v.value;
+            break;
+        case SpiceProtocol.Controller.MsgId.DISABLE_EFFECTS:
+            disable_effects = str.split(",");
+            break;
+
 		case SpiceProtocol.Controller.MsgId.CONNECT:
 			do_connect ();
 			break;
diff --git a/spice-common b/spice-common
index e3f6941..f3a0657 160000
--- a/spice-common
+++ b/spice-common
@@ -1 +1 @@
-Subproject commit e3f6941895085c7138abcb49a98572ea1479ac1a
+Subproject commit f3a065706178d4087ba25cd1a7e28ae311b640f1
-- 
1.7.7.6



More information about the Spice-devel mailing list