[gnome-sudoku] Make Back button in new game screen insensitive while generating puzzle
- From: Parin Porecha <parinporecha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-sudoku] Make Back button in new game screen insensitive while generating puzzle
- Date: Mon, 18 Aug 2014 18:07:49 +0000 (UTC)
commit b1e67c9938f8805bb20aba88ec03f3f85897fd02
Author: Parin Porecha <parinporecha gmail com>
Date: Mon Aug 18 20:04:57 2014 +0200
Make Back button in new game screen insensitive while generating puzzle
src/gnome-sudoku.vala | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/gnome-sudoku.vala b/src/gnome-sudoku.vala
index c27542c..7d1880c 100644
--- a/src/gnome-sudoku.vala
+++ b/src/gnome-sudoku.vala
@@ -297,9 +297,12 @@ public class Sudoku : Gtk.Application
// Following line converts those ints to their DifficultyCategory
var selected_difficulty = (DifficultyCategory) difficulty.get_int32 ();
+ back_button.sensitive = false;
+
SudokuGenerator.generate_boards_async.begin (1, selected_difficulty, (obj, res) => {
try {
var gen_boards = SudokuGenerator.generate_boards_async.end (res);
+ back_button.sensitive = true;
start_game (gen_boards[0]);
} catch (ThreadError e) {
error ("Thread error: %s", e.message);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]