[Spice-commits] gtk/controller
Marc-André Lureau
elmarco at kemper.freedesktop.org
Mon Dec 17 09:02:58 PST 2012
gtk/controller/controller.vala | 2 +-
gtk/controller/foreign-menu.vala | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
New commits:
commit ca62a19da82b50259cdf21d792a9663606237eb0
Author: Marc-André Lureau <marcandre.lureau at redhat.com>
Date: Mon Dec 17 18:02:23 2012 +0100
controller: fix new vala warnings
send_msg() is done in background, use .begin
controller.vala:62.3-62.10: warning: implicit .begin is deprecated
foreign-menu.vala:44.3-44.10: warning: implicit .begin is deprecated
foreign-menu.vala:59.3-59.10: warning: implicit .begin is deprecated
foreign-menu.vala:70.3-70.10: warning: implicit .begin is deprecated
Compilation succeeded - 4 warning(s)
diff --git a/gtk/controller/controller.vala b/gtk/controller/controller.vala
index ffd57c3..1ff621f 100644
--- a/gtk/controller/controller.vala
+++ b/gtk/controller/controller.vala
@@ -59,7 +59,7 @@ public class Controller: Object {
msg.base.id = SpiceProtocol.Controller.MsgId.MENU_ITEM_CLICK;
msg.value = item_id;
unowned uint8[] p = ((uint8[])(&msg))[0:msg.base.size];
- send_msg (p);
+ send_msg.begin (p);
}
public async bool send_msg (uint8[] p) throws GLib.Error {
diff --git a/gtk/controller/foreign-menu.vala b/gtk/controller/foreign-menu.vala
index db2f353..005955a 100644
--- a/gtk/controller/foreign-menu.vala
+++ b/gtk/controller/foreign-menu.vala
@@ -41,7 +41,7 @@ public class ForeignMenu: Object {
msg.action = SpiceProtocol.ForeignMenu.EventType.CLICK;
unowned uint8[] p = ((uint8[])(&msg))[0:msg.base.size];
- send_msg (p);
+ send_msg.begin (p);
}
public void menu_item_checked_msg (int32 item_id, bool checked = true) {
@@ -56,7 +56,7 @@ public class ForeignMenu: Object {
SpiceProtocol.ForeignMenu.EventType.UNCHECKED;
unowned uint8[] p = ((uint8[])(&msg))[0:msg.base.size];
- send_msg (p);
+ send_msg.begin (p);
}
public void app_activated_msg (bool activated = true) {
@@ -67,7 +67,7 @@ public class ForeignMenu: Object {
SpiceProtocol.ForeignMenu.MsgId.APP_DEACTIVATED;
unowned uint8[] p = ((uint8[])(&msg))[0:msg.size];
- send_msg (p);
+ send_msg.begin (p);
}
public async bool send_msg (owned uint8[] p) throws GLib.Error {
More information about the Spice-commits
mailing list