[gnome-games/sudoku-vala] sudoku: Added clearing notes
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/sudoku-vala] sudoku: Added clearing notes
- Date: Mon, 11 Jul 2011 23:39:41 +0000 (UTC)
commit 46ccdd46acab5281c1dd8adbe9c7288072f3884a
Author: LubomÃr SedlÃÅ <lubomir sedlar gmail com>
Date: Mon Jul 4 21:45:07 2011 +0200
sudoku: Added clearing notes
gnome-sudoku/src/sudoku-view.vala | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/gnome-sudoku/src/sudoku-view.vala b/gnome-sudoku/src/sudoku-view.vala
index 722eb9b..f53ed48 100644
--- a/gnome-sudoku/src/sudoku-view.vala
+++ b/gnome-sudoku/src/sudoku-view.vala
@@ -332,11 +332,17 @@ public class SudokuView : Gtk.AspectFrame
public void clear_top_notes ()
{
- stdout.printf ("TODO: Clear top notes\n");
+ for (int i = 0; i < 9; i++)
+ for (int j = 0; j < 9; j++)
+ cells[i,j].top_notes = "";
+ queue_draw ();
}
public void clear_bottom_notes ()
{
- stdout.printf ("TODO: Clear bottom notes\n");
+ for (int i = 0; i < 9; i++)
+ for (int j = 0; j < 9; j++)
+ cells[i,j].bottom_notes = "";
+ queue_draw ();
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]