[gnome-documents] main-toolbar: fix the dropdown position
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] main-toolbar: fix the dropdown position
- Date: Wed, 25 Jul 2012 17:34:29 +0000 (UTC)
commit 35de09fad1a5bc43bebb28b5b50487384912d71c
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Jul 25 19:33:05 2012 +0200
main-toolbar: fix the dropdown position
It was broken after the searchbar got moved below the toolbar.
src/embed.js | 2 +-
src/mainToolbar.js | 9 +++------
2 files changed, 4 insertions(+), 7 deletions(-)
---
diff --git a/src/embed.js b/src/embed.js
index 30393c5..1e2a567 100644
--- a/src/embed.js
+++ b/src/embed.js
@@ -228,7 +228,7 @@ const Embed = new Lang.Class({
this._toolbar.actor.destroy();
// pack the toolbar
- this._toolbar = new MainToolbar.OverviewToolbar(this._overlayLayout);
+ this._toolbar = new MainToolbar.OverviewToolbar(this._viewLayout);
this._contentsLayout.pack_start = true;
this._contentsActor.add_actor(this._toolbar.actor);
this._contentsLayout.set_fill(this._toolbar.actor, true, false);
diff --git a/src/mainToolbar.js b/src/mainToolbar.js
index 4744b6a..e864d27 100644
--- a/src/mainToolbar.js
+++ b/src/mainToolbar.js
@@ -79,8 +79,8 @@ const OverviewToolbar = new Lang.Class({
Name: 'OverviewToolbar',
Extends: MainToolbar,
- _init: function(overlayLayout) {
- this._overlayLayout = overlayLayout;
+ _init: function(viewLayout) {
+ this._viewLayout = viewLayout;
this._collBackButton = null;
this._collectionId = 0;
this._selectionChangedId = 0;
@@ -288,11 +288,8 @@ const OverviewToolbar = new Lang.Class({
createSearchbar: function() {
// create the dropdown for the search bar, it's hidden by default
let dropdown = new Searchbar.Dropdown();
- this._overlayLayout.add(dropdown.actor,
+ this._viewLayout.add(dropdown.actor,
Clutter.BinAlignment.CENTER, Clutter.BinAlignment.FIXED);
- dropdown.actor.add_constraint(
- new Clutter.BindConstraint({ source: this.toolbarActor,
- coordinate: Clutter.BindCoordinate.Y }));
this._searchbar = new Searchbar.OverviewSearchbar(dropdown);
this.layout.pack_start = false;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]