diff options
author | Yonit Halperin <yhalperi@redhat.com> | 2012-04-01 11:54:22 +0300 |
---|---|---|
committer | Yonit Halperin <yhalperi@redhat.com> | 2012-04-03 08:53:55 +0300 |
commit | 84d29d0c0fc88911086ee869d22b346ef9c27334 (patch) | |
tree | e97b19ae2e960ed5c35c55f2d11b1df6a48a8825 | |
parent | b9f70814586ffff68e2805443152c30418b10741 (diff) | |
download | spice-gtk-84d29d0c0fc88911086ee869d22b346ef9c27334.tar.gz spice-gtk-84d29d0c0fc88911086ee869d22b346ef9c27334.tar.xz spice-gtk-84d29d0c0fc88911086ee869d22b346ef9c27334.zip |
controller: add support for DISABLE_EFFECTS and COLOR_DEPTH
rhbz #787449
Signed-off-by: Yonit Halperin <yhalperi@redhat.com>
-rw-r--r-- | data/spice-protocol.vapi | 3 | ||||
-rw-r--r-- | gtk/controller/controller.vala | 9 | ||||
m--------- | spice-common | 0 |
3 files changed, 12 insertions, 0 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..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 -Subproject e3f6941895085c7138abcb49a98572ea1479ac1 +Subproject 2ab866f522d8f730a93288fd82a596f00f19390 |