[gnome-shell] ViewSelector: remove unnecessary StBoxLayout
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] ViewSelector: remove unnecessary StBoxLayout
- Date: Sat, 15 Dec 2012 14:24:01 +0000 (UTC)
commit be10f3c2b52cc5b359650862d4536be45cd9562f
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Thu Dec 13 23:21:53 2012 +0100
ViewSelector: remove unnecessary StBoxLayout
It was a remnant from the tabbed interface.
https://bugzilla.gnome.org/show_bug.cgi?id=690171
js/ui/viewSelector.js | 10 ++--------
1 files changed, 2 insertions(+), 8 deletions(-)
---
diff --git a/js/ui/viewSelector.js b/js/ui/viewSelector.js
index 868fab7..ba09ae2 100644
--- a/js/ui/viewSelector.js
+++ b/js/ui/viewSelector.js
@@ -39,17 +39,11 @@ const ViewSelector = new Lang.Class({
Name: 'ViewSelector',
_init : function(searchEntry, showAppsButton) {
- this.actor = new St.BoxLayout({ name: 'viewSelector',
- vertical: true });
+ this.actor = new Shell.Stack({ name: 'viewSelector' });
this._showAppsButton = showAppsButton;
this._showAppsButton.connect('notify::checked', Lang.bind(this, this._onShowAppsButtonToggled));
- this._pageArea = new Shell.Stack();
- this.actor.add(this._pageArea, { x_fill: true,
- y_fill: true,
- expand: true });
-
this._activePage = null;
this.active = false;
@@ -191,7 +185,7 @@ const ViewSelector = new Lang.Class({
this._a11yFocusPage(page);
})
});;
- this._pageArea.add_actor(page);
+ this.actor.add_actor(page);
return page;
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]