[gnome-sudoku] Redraw the board whenever a cell value is changed
- From: Parin Porecha <parinporecha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-sudoku] Redraw the board whenever a cell value is changed
- Date: Fri, 15 Aug 2014 09:52:55 +0000 (UTC)
commit 78cc37e1d6afc8ca52032696dfcd7f29b814130b
Author: Parin Porecha <parinporecha gmail com>
Date: Thu Aug 14 10:41:09 2014 +0200
Redraw the board whenever a cell value is changed
src/sudoku-view.vala | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/sudoku-view.vala b/src/sudoku-view.vala
index 933f4be..c24cfc8 100644
--- a/src/sudoku-view.vala
+++ b/src/sudoku-view.vala
@@ -493,12 +493,12 @@ public class SudokuView : Gtk.AspectFrame
});
cell.notify["value"].connect ((s, p)=> {
- /* The board needs redrawing if it was/is broken, or if the possibilities are being
displayed */
- if (_show_possibilities || _show_warnings || game.board.broken ||
previous_board_broken_state) {
- this.queue_draw ();
+ if (_show_possibilities || _show_warnings || game.board.broken ||
previous_board_broken_state)
previous_board_broken_state = game.board.broken;
- }
cell_value_changed_event (cell_row, cell_col);
+
+ // Redraw the board
+ this.queue_draw ();
});
cells[row, col] = cell;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]