[iagno] Use explicit .begin() for async methods as implict is deprecated
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [iagno] Use explicit .begin() for async methods as implict is deprecated
- Date: Mon, 14 Oct 2013 21:20:23 +0000 (UTC)
commit 0a17b83a55f2c559b09d729b8807096b19293eaf
Author: Robert Ancell <robert ancell canonical com>
Date: Tue Oct 15 10:06:47 2013 +1300
Use explicit .begin() for async methods as implict is deprecated
src/iagno.vala | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/iagno.vala b/src/iagno.vala
index de40ab6..2860acb 100644
--- a/src/iagno.vala
+++ b/src/iagno.vala
@@ -345,9 +345,9 @@ public class Iagno : Gtk.Application
{
game.pass ();
if (game.current_color == Player.DARK)
- show_message (_("Light must pass, Dark's move"), Gtk.MessageType.INFO);
+ show_message.begin (_("Light must pass, Dark's move"), Gtk.MessageType.INFO);
else
- show_message (_("Dark must pass, Light's move"), Gtk.MessageType.INFO);
+ show_message.begin (_("Dark must pass, Light's move"), Gtk.MessageType.INFO);
return;
}
@@ -385,11 +385,11 @@ public class Iagno : Gtk.Application
update_ui ();
if (game.n_light_tiles > game.n_dark_tiles)
- show_message (_("Light player wins!"), Gtk.MessageType.INFO);
+ show_message.begin (_("Light player wins!"), Gtk.MessageType.INFO);
else if (game.n_dark_tiles > game.n_light_tiles)
- show_message (_("Dark player wins!"), Gtk.MessageType.INFO);
+ show_message.begin (_("Dark player wins!"), Gtk.MessageType.INFO);
else if (game.n_light_tiles == game.n_dark_tiles)
- show_message (_("The game was a draw."), Gtk.MessageType.INFO);
+ show_message.begin (_("The game was a draw."), Gtk.MessageType.INFO);
play_sound ("gameover");
}
@@ -413,7 +413,7 @@ public class Iagno : Gtk.Application
return;
if (game.place_tile (x, y) == 0)
- show_message (_("Invalid move."), Gtk.MessageType.ERROR);
+ show_message.begin (_("Invalid move."), Gtk.MessageType.ERROR);
}
private void dark_level_changed_cb (Gtk.ComboBox combo)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]