cleanup: Replace deprecated lower/raise calls

Those methods have been deprecated for a long time, so
move to the drop-in replacement.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/808
This commit is contained in:
Florian Müllner
2019-11-05 20:17:19 +01:00
parent 0617be9fb9
commit 1e203f4631
16 changed files with 39 additions and 32 deletions

View File

@ -139,7 +139,7 @@ var Lightbox = GObject.registerClass({
this.set({ opacity: 0, style_class: 'lightbox' });
container.add_actor(this);
this.raise_top();
container.set_child_above_sibling(this, null);
this.connect('destroy', this._onDestroy.bind(this));
@ -264,9 +264,9 @@ var Lightbox = GObject.registerClass({
let below = this;
for (let i = this._children.length - 1; i >= 0; i--) {
if (this._children[i] == window)
this._children[i].raise_top();
this._container.set_child_above_sibling(this._children[i], null);
else if (this._children[i] == this._highlighted)
this._children[i].lower(below);
this._container.set_child_below_sibling(this._children[i], below);
else
below = this._children[i];
}