[gnome-tetravex] Revert "Use headerbar in the scores dialog"



commit ca7e8ce27077adc6cc618f25d561191cfd162fdb
Author: Mario Wenzel <maweki gmail com>
Date:   Thu Mar 27 20:11:06 2014 +0100

    Revert "Use headerbar in the scores dialog"
    
    This reverts commit 038a64d5f27f3ebe67ad2b4c9d61e452a5751cd4.

 src/score-dialog.vala |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/score-dialog.vala b/src/score-dialog.vala
index f4f565d..59a9252 100644
--- a/src/score-dialog.vala
+++ b/src/score-dialog.vala
@@ -19,17 +19,17 @@ public class ScoreDialog : Gtk.Dialog
 
     public ScoreDialog (History history, HistoryEntry? selected_entry = null, bool show_quit = false)
     {
-        Object (use_header_bar: 1, title: _("Scores"));
-
         this.history = history;
         history.entry_added.connect (entry_added_cb);
         this.selected_entry = selected_entry;
 
         if (show_quit)
         {
-            add_button (_("Quit"), Gtk.ResponseType.CANCEL);
+            add_button (_("Quit"), Gtk.ResponseType.CLOSE);
             add_button (_("New Game"), Gtk.ResponseType.OK);
         }
+        else
+            add_button (_("OK"), Gtk.ResponseType.DELETE_EVENT);
         set_size_request (200, 300);
 
         var vbox = new Gtk.Box (Gtk.Orientation.VERTICAL, 5);


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