[gnome-mines/libgames-scores: 3/4] Completely deleted old dialog



commit ba6245bba48b2a51ba11dcb9f9e6ca435ede0a92
Author: Nikhar Agrawal <nikharagrawal2006 gmail com>
Date:   Mon Jan 5 20:11:56 2015 +0530

    Completely deleted old dialog

 src/Makefile.am       |    4 +-
 src/gnome-mines.vala  |   10 +--
 src/score-dialog.vala |  174 -------------------------------------------------
 3 files changed, 4 insertions(+), 184 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index d7b6934..0fd582d 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -3,10 +3,8 @@ bin_PROGRAMS = gnome-mines
 gnome_mines_SOURCES =  \
        config.vapi     \
        gnome-mines.vala \
-       history.vala \
        minefield.vala \
-       minefield-view.vala \
-       score-dialog.vala
+       minefield-view.vala
 
 gnome_mines_CFLAGS = \
        -DVERSION=\"$(VERSION)\" \
diff --git a/src/gnome-mines.vala b/src/gnome-mines.vala
index 44bb0a8..b9deb73 100644
--- a/src/gnome-mines.vala
+++ b/src/gnome-mines.vala
@@ -57,9 +57,8 @@ public class Mines : Gtk.Application
     /* true when the next configure event should be ignored. */
     private bool window_skip_configure;
 
-    /* Game history */
+    /* Game scores */
     private Games.Scores.Context? context = null;
-    private History history;
 
     /* Minefield being played */
     private Minefield minefield;
@@ -247,9 +246,6 @@ public class Mines : Gtk.Application
         /* Initialize Custom Game Screen */
         startup_custom_game_screen (ui_builder);
 
-        history = new History (Path.build_filename (Environment.get_user_data_dir (), "gnome-mines", 
"history"));
-        history.load ();
-
        context = new Games.Scores.Context (_("Mines"), "Game", window, Games.Scores.Style.TIME_ASCENDING);
 
         flag_label = (Gtk.Label) ui_builder.get_object ("flag_label");
@@ -444,9 +440,9 @@ public class Mines : Gtk.Application
         flag_label.set_text ("%u/%u".printf (minefield.n_flags, minefield.n_mines));
     }
 
-    private int show_scores (HistoryEntry? selected_entry = null, bool show_close = false)
+    private int show_scores ()
     {
-        /*var dialog = new ScoreDialog (history, selected_entry, show_close);
+        /*
         dialog.modal = true;
         dialog.transient_for = window;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]