[gnome-music/wip/gtkmaster: 39/40] Set headerbar as titlebar
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/gtkmaster: 39/40] Set headerbar as titlebar
- Date: Wed, 19 Jun 2013 17:58:40 +0000 (UTC)
commit 8784ed4b0de56d5d0901f84ecea1ec70be6dc2f8
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 1d7f25e..ed25df9 100644
--- a/src/window.js
+++ b/src/window.js
@@ -42,7 +42,6 @@ const MainWindow = new Lang.Class({
application: app,
title: _('Music'),
window_position: Gtk.WindowPosition.CENTER,
- hide_titlebar_when_maximized: true
});
this.set_size_request(887, 640);
@@ -58,6 +57,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,
@@ -65,7 +65,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]