diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2012-12-17 18:02:23 +0100 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2012-12-17 18:02:23 +0100 |
commit | ca62a19da82b50259cdf21d792a9663606237eb0 (patch) | |
tree | a040eb8880e4172ff59f8879f4fa6a1af2488d21 /gtk | |
parent | 951ab42743f24109994fe57dc1fb4b634d4fe435 (diff) |
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)
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/controller/controller.vala | 2 | ||||
-rw-r--r-- | gtk/controller/foreign-menu.vala | 6 |
2 files changed, 4 insertions, 4 deletions
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 { |