[four-in-a-row/arnaudb/wip/gtk4: 36/42] Fix game end.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [four-in-a-row/arnaudb/wip/gtk4: 36/42] Fix game end.
- Date: Mon, 4 May 2020 13:20:46 +0000 (UTC)
commit 59b2da571dbf3a5f040ca847fd062c4e9bd835c5
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Mon Apr 27 19:55:25 2020 +0200
Fix game end.
src/four-in-a-row.vala | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/src/four-in-a-row.vala b/src/four-in-a-row.vala
index af0009b..583fe96 100644
--- a/src/four-in-a-row.vala
+++ b/src/four-in-a-row.vala
@@ -503,9 +503,7 @@ private class FourInARow : Gtk.Application
blink_n = 2 * n;
blink_line = 0;
var temp = new Animate (0, this, 2 * n);
- timeout = Timeout.add (SPEED_BLINK, temp.exec);
- while (timeout != 0)
- window.queue_draw ();
+ timeout = Timeout.add (SPEED_BLINK, () => { bool return_value = temp.exec (); window.queue_draw
(); return return_value; });
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]