[gnome-sudoku] Don't directly call back_cb()
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-sudoku] Don't directly call back_cb()
- Date: Sun, 28 Sep 2014 17:17:01 +0000 (UTC)
commit 2e5802a9964defc3e1cc2909c226c405e63d670e
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Sun Sep 28 12:11:02 2014 -0500
Don't directly call back_cb()
src/gnome-sudoku.vala | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/src/gnome-sudoku.vala b/src/gnome-sudoku.vala
index ec3cb37..c943cbb 100644
--- a/src/gnome-sudoku.vala
+++ b/src/gnome-sudoku.vala
@@ -291,7 +291,7 @@ public class Sudoku : Gtk.Application
if (view != null)
game_box.remove (view);
- back_cb ();
+ show_game_view ();
game = new SudokuGame (board);
headerbar.title = board.difficulty_category.to_string ();
@@ -403,7 +403,7 @@ public class Sudoku : Gtk.Application
dialog.show ();
}
- private void back_cb ()
+ private void show_game_view ()
{
main_stack.set_visible_child_name ("frame");
back_button.visible = false;
@@ -420,6 +420,11 @@ public class Sudoku : Gtk.Application
}
}
+ private void back_cb ()
+ {
+ show_game_view ();
+ }
+
private void undo_cb ()
{
if (main_stack.get_visible_child_name () != "frame")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]