[gnome-documents] embed: pack the fullscreen toolbar in the overlay layout
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] embed: pack the fullscreen toolbar in the overlay layout
- Date: Mon, 5 Mar 2012 22:23:31 +0000 (UTC)
commit b95f23959e2ed9d14b2ab47658111e4dd32a74d9
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Sat Mar 3 22:31:40 2012 -0500
embed: pack the fullscreen toolbar in the overlay layout
Instead of the stage
src/embed.js | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/embed.js b/src/embed.js
index 7f035c1..e5baa14 100644
--- a/src/embed.js
+++ b/src/embed.js
@@ -183,13 +183,14 @@ ViewEmbed.prototype = {
this._fsToolbar = new MainToolbar.FullscreenToolbar();
this._fsToolbar.setModel(this._docModel);
- Global.stage.add_actor(this._fsToolbar.actor);
+ this._overlayLayout.add(this._fsToolbar.actor,
+ Clutter.BinAlignment.FIXED, Clutter.BinAlignment.FIXED);
let vScrollbar = this._scrolledWinPreview.get_vscrollbar();
let sizeConstraint = new Clutter.BindConstraint
({ coordinate: Clutter.BindCoordinate.WIDTH,
- source: Global.stage,
+ source: this.actor,
offset: (vScrollbar.get_visible() ?
(- (vScrollbar.get_preferred_width()[1])) : 0 ) });
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]