[gnome-games/applygsoc2009: 61/76] -- Properly notify each other when puzzle finished
- From: Pablo Castellano <pablog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/applygsoc2009: 61/76] -- Properly notify each other when puzzle finished
- Date: Mon, 6 Sep 2010 02:52:20 +0000 (UTC)
commit 2b06bebe56af735b2ce14699ea43061dda0def0a
Author: Pablo Castellano <pablog src gnome org>
Date: Wed Sep 1 05:03:58 2010 +0200
-- Properly notify each other when puzzle finished
Still many glitches
gnome-sudoku/src/lib/main.py | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/gnome-sudoku/src/lib/main.py b/gnome-sudoku/src/lib/main.py
index d76520a..ff22765 100644
--- a/gnome-sudoku/src/lib/main.py
+++ b/gnome-sudoku/src/lib/main.py
@@ -81,7 +81,6 @@ class UI (gconf_wrapper.GConfWrapper):
game = self._auto_load_saved() or self._auto_load_new()
if game:
self._open_game(*game)
- self._post_open_setup()
else:
logger.error("can't open game")
self.quit_cb()
@@ -124,9 +123,7 @@ class UI (gconf_wrapper.GConfWrapper):
saver._open_saved_game(puzzle)
else:
logger.fatal("shouldn't be here")
-
- self._main_grid_vew.connect_to_model(self._main_model)
- self._main_grid_vew.connect_to_notes_model(self._notes_model)
+
self._post_open_setup()
def _open_saved_game(self, jar):
@@ -164,6 +161,7 @@ class UI (gconf_wrapper.GConfWrapper):
"""Properly do the setup after entering game
Like show highlight, update hints, start timer, etc."""
+ self._main_grid_vew.connect_to_notes_model(self._notes_model)
self._main_model.connect('puzzle-finished', self.you_win_callback)
self.timer.start_timing()
self.update_statusbar()
@@ -370,7 +368,7 @@ class UI (gconf_wrapper.GConfWrapper):
sublabel += "\n"
self.start_dancer()
dialog_extras.show_message(_("You win!"), label = _("You win!"),
- sublabel=self._build_report_label())
+ sublabel=label)
return sublabel
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]