[gnome-shell] appDisplay: Remove unnecessary StBin from hierarchy
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] appDisplay: Remove unnecessary StBin from hierarchy
- Date: Thu, 21 Feb 2013 23:08:41 +0000 (UTC)
commit 9db73767d94a7ed92a97b0a891dcb787906c9e01
Author: Florian Müllner <fmuellner gnome org>
Date: Fri Feb 22 00:02:49 2013 +0100
appDisplay: Remove unnecessary StBin from hierarchy
The bin is used to top-align views that don't fill the entire height,
but the same can be achieved by setting appropriate expand properties.
js/ui/appDisplay.js | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index e3c3b92..4ee94cf 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -175,6 +175,7 @@ const AllView = new Lang.Class({
y_fill: false,
y_align: St.Align.START,
x_expand: true,
+ y_expand: true,
style_class: 'vfade' });
this.actor.add_actor(box);
this.actor.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC);
@@ -309,6 +310,7 @@ const FrequentView = new Lang.Class({
y_fill: false,
y_align: St.Align.START,
x_expand: true,
+ y_expand: true,
reactive: false,
style_class: 'frequent-apps vfade' });
this.actor.add_actor(box);
@@ -373,10 +375,7 @@ const AppDisplay = new Lang.Class({
this._viewStack = new St.Widget({ layout_manager: new Clutter.BinLayout(),
x_expand: true, y_expand: true });
- let bin = new St.Bin({ child: this._viewStack,
- clip_to_allocation: true,
- x_fill: true, y_fill: true });
- this.actor.add(bin, { expand: true });
+ this.actor.add(this._viewStack, { expand: true });
let layout = new Clutter.BoxLayout({ homogeneous: true });
this._controls = new St.Widget({ style_class: 'app-view-controls',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]