[Spice-commits] data/spice-protocol.vapi gtk/controller spice-common

Yonit Halperin yhalperi at kemper.freedesktop.org
Mon Apr 2 22:58:43 PDT 2012


 data/spice-protocol.vapi       |    3 +++
 gtk/controller/controller.vala |    9 +++++++++
 spice-common                   |    2 +-
 3 files changed, 13 insertions(+), 1 deletion(-)

New commits:
commit 84d29d0c0fc88911086ee869d22b346ef9c27334
Author: Yonit Halperin <yhalperi at redhat.com>
Date:   Sun Apr 1 11:54:22 2012 +0300

    controller: add support for DISABLE_EFFECTS and COLOR_DEPTH
    
    rhbz #787449
    
    Signed-off-by: Yonit Halperin <yhalperi at redhat.com>

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..5970aaf 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..2ab866f 160000
--- a/spice-common
+++ b/spice-common
@@ -1 +1 @@
-Subproject commit e3f6941895085c7138abcb49a98572ea1479ac1a
+Subproject commit 2ab866f522d8f730a93288fd82a596f00f193909


More information about the Spice-commits mailing list