[gnome-sudoku] Fix difficulty in header bar title
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-sudoku] Fix difficulty in header bar title
- Date: Sun, 28 Sep 2014 17:16:56 +0000 (UTC)
commit 3b279b74423bba06e1668369e28e87e7ed2d8f59
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Sun Sep 28 12:09:39 2014 -0500
Fix difficulty in header bar title
This gets reset by back_cb()
src/gnome-sudoku.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gnome-sudoku.vala b/src/gnome-sudoku.vala
index 61d83c0..ec3cb37 100644
--- a/src/gnome-sudoku.vala
+++ b/src/gnome-sudoku.vala
@@ -291,11 +291,11 @@ public class Sudoku : Gtk.Application
if (view != null)
game_box.remove (view);
- headerbar.title = board.difficulty_category.to_string ();
-
back_cb ();
game = new SudokuGame (board);
+ headerbar.title = board.difficulty_category.to_string ();
+
game.tick.connect (tick_cb);
game.paused_changed.connect (paused_changed_cb);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]