[quadrapassel] Scores dialog: replace Quit with Close
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [quadrapassel] Scores dialog: replace Quit with Close
- Date: Tue, 19 Nov 2013 17:00:35 +0000 (UTC)
commit c3fbd91f20427cd4bf9e8700276554f796257080
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Tue Nov 19 10:59:34 2013 -0600
Scores dialog: replace Quit with Close
https://bugzilla.gnome.org/show_bug.cgi?id=687015
src/quadrapassel.vala | 8 +++-----
src/score-dialog.vala | 6 +++---
2 files changed, 6 insertions(+), 8 deletions(-)
---
diff --git a/src/quadrapassel.vala b/src/quadrapassel.vala
index 69afb0e..01dd0eb 100644
--- a/src/quadrapassel.vala
+++ b/src/quadrapassel.vala
@@ -733,16 +733,14 @@ public class Quadrapassel : Gtk.Application
history.add (entry);
history.save ();
- if (show_scores (entry, true) == Gtk.ResponseType.CLOSE)
- window.destroy ();
- else
+ if (show_scores (entry, true) == Gtk.ResponseType.OK)
new_game ();
}
}
- private int show_scores (HistoryEntry? selected_entry = null, bool show_quit = false)
+ private int show_scores (HistoryEntry? selected_entry = null, bool show_close = false)
{
- var dialog = new ScoreDialog (history, selected_entry, show_quit);
+ var dialog = new ScoreDialog (history, selected_entry, show_close);
dialog.modal = true;
dialog.transient_for = window;
diff --git a/src/score-dialog.vala b/src/score-dialog.vala
index 2a72560..ef61b88 100644
--- a/src/score-dialog.vala
+++ b/src/score-dialog.vala
@@ -15,15 +15,15 @@ public class ScoreDialog : Gtk.Dialog
private Gtk.ListStore score_model;
private Gtk.TreeView scores;
- public ScoreDialog (History history, HistoryEntry? selected_entry = null, bool show_quit = false)
+ public ScoreDialog (History history, HistoryEntry? selected_entry = null, bool show_close = false)
{
this.history = history;
history.entry_added.connect (entry_added_cb);
this.selected_entry = selected_entry;
- if (show_quit)
+ if (show_close)
{
- add_button (_("_Quit"), Gtk.ResponseType.CLOSE);
+ add_button (_("_Close"), Gtk.ResponseType.CLOSE);
add_button (_("New Game"), Gtk.ResponseType.OK);
}
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]