[gnome-tetravex] Use headerbar in the scores dialog



commit 038a64d5f27f3ebe67ad2b4c9d61e452a5751cd4
Author: Yosef Or Boczko <yoseforb src gnome org>
Date:   Wed Mar 26 00:05:27 2014 +0200

    Use headerbar in the scores dialog
    
    https://bugzilla.gnome.org/show_bug.cgi?id=727052

 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 59a9252..f4f565d 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.CLOSE);
+            add_button (_("Quit"), Gtk.ResponseType.CANCEL);
             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]