[gnome-music/wip/gtkmaster: 8/12] Set headerbar as titlebar



commit 89e59f6f9f59d16de2ae6c96b3ecaf31a4139ab9
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Thu May 30 18:47:16 2013 +0200

    Set headerbar as titlebar

 src/window.js |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/window.js b/src/window.js
index 715836e..44d5d6d 100644
--- a/src/window.js
+++ b/src/window.js
@@ -43,7 +43,6 @@ const MainWindow = new Lang.Class({
             application: app,
             title: _('Music'),
             window_position: Gtk.WindowPosition.CENTER,
-            hide_titlebar_when_maximized: true
         });
 
         let settings = new Gio.Settings({ schema: 'org.gnome.Music' });
@@ -62,6 +61,7 @@ const MainWindow = new Lang.Class({
         this.player = new Player.Player();
 
         this.toolbar = new Toolbar.Toolbar();
+        this.set_titlebar(this.toolbar);
         this._stack = new Gtk.Stack({
             transition_type: Gtk.StackTransitionType.CROSSFADE,
             transition_duration: 100,
@@ -69,7 +69,6 @@ const MainWindow = new Lang.Class({
         });
         this.toolbar.set_stack(this._stack);
 
-        this._box.pack_start(this.toolbar, false, false, 0);
         this._box.pack_start(this._stack, true, true, 0);
         this._box.pack_start(this.player.eventBox, false, false, 0);
         this.add(this._box);


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