[gnome-sound-recorder] preferences.js: Show a close button instead of the done button in the headerbar



commit 824715b6130c1dcafc17d35bc68f635ad98365e5
Author: Yosef Or Boczko <yoseforb src gnome org>
Date:   Wed Mar 26 04:56:46 2014 +0200

    preferences.js: Show a close button instead of the done button in the headerbar
    
    Also show the title.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=727069
    
    Signed-off-by: Meg Ford <meg localhost localdomain>

 src/preferences.js |   15 +--------------
 1 files changed, 1 insertions(+), 14 deletions(-)
---
diff --git a/src/preferences.js b/src/preferences.js
index 030e9a7..6f56b51 100644
--- a/src/preferences.js
+++ b/src/preferences.js
@@ -41,23 +41,10 @@ const Preferences = new Lang.Class({
                                         destroy_with_parent: true,
                                         default_width: 400,
                                         margin_top: 5,
+                                        use_header_bar: 1,
                                         hexpand: true }); 
                                         
         this.widget.set_transient_for(Gio.Application.get_default().get_active_window());
-        let header = new Gtk.HeaderBar({ hexpand: true });
-        header.set_show_close_button(false);
-        this.widget.set_titlebar(header);
-        
-        let buttonToolbar = new Gtk.Box({ orientation: Gtk.Orientation.HORIZONTAL,
-                                          spacing: 0 });
-        buttonToolbar.get_style_context().add_class(Gtk.STYLE_CLASS_LINKED);
-        header.pack_end(buttonToolbar);
-        
-        let button = new Gtk.Button({ label: _("Done") });
-        button.connect("clicked", Lang.bind(this, this.onDoneClicked));
-        buttonToolbar.pack_end(button, false, true, 0);
-        button.show();
-        buttonToolbar.show();                                     
         
         let grid = new Gtk.Grid ({ orientation: Gtk.Orientation.VERTICAL,
                                    row_homogeneous: true,


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