overview: Remove stack actor
The stack was used to overlay a message indicator over the overview group. That indicator is long gone, so there's no longer a need for an intermediate actor in the hierarchy. https://bugzilla.gnome.org/show_bug.cgi?id=766883
This commit is contained in:
parent
02bad8e92b
commit
5182129196
@ -107,18 +107,13 @@ const Overview = new Lang.Class({
|
|||||||
|
|
||||||
this._overviewCreated = true;
|
this._overviewCreated = true;
|
||||||
|
|
||||||
let layout = new Clutter.BinLayout();
|
|
||||||
this._stack = new Clutter.Actor({ layout_manager: layout });
|
|
||||||
this._stack.add_constraint(new LayoutManager.MonitorConstraint({ primary: true }));
|
|
||||||
|
|
||||||
/* Translators: This is the main view to select
|
/* Translators: This is the main view to select
|
||||||
activities. See also note for "Activities" string. */
|
activities. See also note for "Activities" string. */
|
||||||
this._overview = new St.BoxLayout({ name: 'overview',
|
this._overview = new St.BoxLayout({ name: 'overview',
|
||||||
accessible_name: _("Overview"),
|
accessible_name: _("Overview"),
|
||||||
reactive: true,
|
reactive: true,
|
||||||
vertical: true,
|
vertical: true });
|
||||||
x_expand: true,
|
this._overview.add_constraint(new LayoutManager.MonitorConstraint({ primary: true }));
|
||||||
y_expand: true });
|
|
||||||
this._overview._delegate = this;
|
this._overview._delegate = this;
|
||||||
|
|
||||||
// The main Background actors are inside global.window_group which are
|
// The main Background actors are inside global.window_group which are
|
||||||
@ -149,8 +144,7 @@ const Overview = new Lang.Class({
|
|||||||
Main.layoutManager.overviewGroup.add_child(this._coverPane);
|
Main.layoutManager.overviewGroup.add_child(this._coverPane);
|
||||||
this._coverPane.connect('event', Lang.bind(this, function (actor, event) { return Clutter.EVENT_STOP; }));
|
this._coverPane.connect('event', Lang.bind(this, function (actor, event) { return Clutter.EVENT_STOP; }));
|
||||||
|
|
||||||
this._stack.add_actor(this._overview);
|
Main.layoutManager.overviewGroup.add_child(this._overview);
|
||||||
Main.layoutManager.overviewGroup.add_child(this._stack);
|
|
||||||
|
|
||||||
this._coverPane.hide();
|
this._coverPane.hide();
|
||||||
|
|
||||||
@ -552,8 +546,8 @@ const Overview = new Lang.Class({
|
|||||||
Meta.disable_unredirect_for_screen(global.screen);
|
Meta.disable_unredirect_for_screen(global.screen);
|
||||||
this.viewSelector.show();
|
this.viewSelector.show();
|
||||||
|
|
||||||
this._stack.opacity = 0;
|
this._overview.opacity = 0;
|
||||||
Tweener.addTween(this._stack,
|
Tweener.addTween(this._overview,
|
||||||
{ opacity: 255,
|
{ opacity: 255,
|
||||||
transition: 'easeOutQuad',
|
transition: 'easeOutQuad',
|
||||||
time: ANIMATION_TIME,
|
time: ANIMATION_TIME,
|
||||||
@ -618,7 +612,7 @@ const Overview = new Lang.Class({
|
|||||||
this.viewSelector.animateFromOverview();
|
this.viewSelector.animateFromOverview();
|
||||||
|
|
||||||
// Make other elements fade out.
|
// Make other elements fade out.
|
||||||
Tweener.addTween(this._stack,
|
Tweener.addTween(this._overview,
|
||||||
{ opacity: 0,
|
{ opacity: 0,
|
||||||
transition: 'easeOutQuad',
|
transition: 'easeOutQuad',
|
||||||
time: ANIMATION_TIME,
|
time: ANIMATION_TIME,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user