gnome-games r7123 - in trunk/gnome-sudoku: . src/lib
- From: thinkle svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-games r7123 - in trunk/gnome-sudoku: . src/lib
- Date: Wed, 9 Jan 2008 01:20:18 +0000 (GMT)
Author: thinkle
Date: Wed Jan 9 01:20:17 2008
New Revision: 7123
URL: http://svn.gnome.org/viewvc/gnome-games?rev=7123&view=rev
Log:
2008-01-08 Thomas Mills HInkle <tmhinkle gmail com>
* gnome-sudoku/src/lib/gnome_sudoku.py Use add_value_to_ui for all
callbacks where we restore user values to the grid (whether
through loading saved game or undo). (Bug #430893)
* gnome-sudoku/src/lib/gsudoku.py Use add_value_to_ui for all
callbacks where we restore user values to the grid (whether
through loading saved game or undo). (Bug #430893)
Modified:
trunk/gnome-sudoku/ChangeLog
trunk/gnome-sudoku/src/lib/gnome_sudoku.py
trunk/gnome-sudoku/src/lib/gsudoku.py
Modified: trunk/gnome-sudoku/src/lib/gnome_sudoku.py
==============================================================================
--- trunk/gnome-sudoku/src/lib/gnome_sudoku.py (original)
+++ trunk/gnome-sudoku/src/lib/gnome_sudoku.py Wed Jan 9 01:20:17 2008
@@ -980,7 +980,7 @@
def tracker_delete_tracks (self, tracker_id):
clearer=Undo.UndoableObject(
lambda *args: self.main_ui.cleared.append(self.main_ui.gsd.delete_by_tracker(tracker_id)),
- lambda *args: [self.main_ui.gsd.add_value(*entry) for entry in self.main_ui.cleared.pop()],
+ lambda *args: [self.main_ui.gsd.add_value_to_ui(*entry) for entry in self.main_ui.cleared.pop()],
self.main_ui.history)
clearer.perform()
@@ -988,7 +988,7 @@
def tracker_keep_tracks (self, tracker_id):
clearer=Undo.UndoableObject(
lambda *args: self.main_ui.cleared.append(self.main_ui.gsd.delete_except_for_tracker(tracker_id)),
- lambda *args: [self.main_ui.gsd.add_value(*entry) for entry in self.main_ui.cleared.pop()],
+ lambda *args: [self.main_ui.gsd.add_value_to_ui(*entry) for entry in self.main_ui.cleared.pop()],
self.main_ui.history)
clearer.perform()
Modified: trunk/gnome-sudoku/src/lib/gsudoku.py
==============================================================================
--- trunk/gnome-sudoku/src/lib/gsudoku.py (original)
+++ trunk/gnome-sudoku/src/lib/gsudoku.py Wed Jan 9 01:20:17 2008
@@ -1036,7 +1036,7 @@
for col in range(group_size):
index = row * 9 + col
if values[index] and not self.grid._get_(col,row):
- self.add_value(col,row,values[index])
+ self.add_value_to_ui(col,row,values[index])
@simple_debug
def setup_grid (self, grid, group_size):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]