[gnome-games/applygsoc2009: 41/76] XXX: Delete unuse methods
- From: Pablo Castellano <pablog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/applygsoc2009: 41/76] XXX: Delete unuse methods
- Date: Mon, 6 Sep 2010 02:50:40 +0000 (UTC)
commit 312e747497a3f7ac004013e6e740cd65a727315c
Author: Pablo Castellano <pablog src gnome org>
Date: Thu Aug 26 16:02:40 2010 +0200
XXX: Delete unuse methods
gnome-sudoku/src/lib/gsudoku.py | 33 +++++----------------------------
1 files changed, 5 insertions(+), 28 deletions(-)
---
diff --git a/gnome-sudoku/src/lib/gsudoku.py b/gnome-sudoku/src/lib/gsudoku.py
index f168ed2..86e1941 100644
--- a/gnome-sudoku/src/lib/gsudoku.py
+++ b/gnome-sudoku/src/lib/gsudoku.py
@@ -146,6 +146,11 @@ class SudokuView (SudokuNumberGrid, gobject.GObject):
self._model.set_value(widget.x, widget.y, new_number)
self.update_model(widget.x, widget.y, new_number)
+ def _number_changed_cb(self, widget, new_number):
+ print "user input: number", (widget.x, widget.y, new_number)
+ self._model.set_value(widget.x, widget.y, new_number)
+ self.update_model(widget.x, widget.y, new_number)
+
def update_model(self, x, y, value):
self._model.set_value(x, y, value)
@@ -478,11 +483,6 @@ class SudokuModel:
else:
self.grid = sudoku.InteractiveSudoku(grid, group_size = group_size)
- def _number_changed_cb(self, widget, new_value):
- # TODO
- widget.set_value(new_value)
- self._entry_validate(widget)
-
def update_all_notes (self):
'''Display the notes for all the cells
@@ -566,29 +566,6 @@ class SudokuModel:
if self.grid.check_for_completeness():
self._signal_completeness()
- def remove (self, x, y, *args):
- """Remove x, y from our visible grid.
-
- *args is passed from the undo mechanism
- """
- e = self.__entries__[(x, y)]
- # Always call the grid's remove() for proper conflict resolution
- if self.grid:
- self.grid.remove(x, y)
- self._remove_error_highlight()
- # Remove it from the tracker. When removing via undo, the trace
- # manipulation is handled at a higher level
- if not args or args[0] != 'undo-change':
- if e.tracker_id != tracker_info.NO_TRACKER:
- self.tinfo.remove_trace(x, y, e.tracker_id)
- # Reset the value and tracker id
- e.set_value(0, tracker_info.NO_TRACKER)
- # Update all hints if we need to
- if self.grid and self.always_show_hints and not self.doing_initial_setup:
- self.update_all_hints()
- if not self.doing_initial_setup:
- self._mark_impossible_implications(x, y)
-
def auto_fill (self):
changed = set(self.grid.auto_fill()) # there are duplicate?
for coords, val in changed:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]