[five-or-more] Revert "Add a new game button to the scores dialog"



commit b18e700e4ddd6084e739fce0d7ec6c3d0e770ca0
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Sun Feb 16 23:37:07 2014 -0600

    Revert "Add a new game button to the scores dialog"
    
    This reverts commit 6381c1692fa04add436ac42042377c7466232772.
    
    Was added because I had removed the new game button from the window
    locally. I deleted that commit locally but forgot to remove this one.
    
    Don't put it back without teaching it not to appear when opening the
    scores dialog from the app menu. (And probably just don't put it back.)

 src/glines.c |   10 +---------
 1 files changed, 1 insertions(+), 9 deletions(-)
---
diff --git a/src/glines.c b/src/glines.c
index e097ffc..6489b05 100644
--- a/src/glines.c
+++ b/src/glines.c
@@ -470,12 +470,9 @@ static void
 show_scores (gint pos)
 {
   static GtkWidget *dialog;
-  gint result;
 
   if (dialog == NULL) {
     dialog = games_scores_dialog_new (GTK_WINDOW (app), highscores, _("Five or More Scores"));
-    games_scores_dialog_set_buttons (GAMES_SCORES_DIALOG (dialog),
-                                     GAMES_SCORES_NEW_GAME_BUTTON | GAMES_SCORES_CLOSE_BUTTON);
     games_scores_dialog_set_category_description (GAMES_SCORES_DIALOG
                                                   (dialog), _("_Board size:"));
   }
@@ -485,13 +482,8 @@ show_scores (gint pos)
   }
 
   gtk_window_present (GTK_WINDOW (dialog));
-  result = gtk_dialog_run (GTK_DIALOG (dialog));
+  gtk_dialog_run (GTK_DIALOG (dialog));
   gtk_widget_hide (dialog);
-
-  if (result == GTK_RESPONSE_ACCEPT) {
-    reset_game ();
-    start_game ();
-  }
 }
 
 static void


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