window-list: Replace Meta.Rectangle

It's deprecated in favor of Mtk.Rectangle, which is a drop-in
replacement.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/306>
This commit is contained in:
Florian Müllner
2024-02-22 00:40:07 +01:00
committed by Marge Bot
parent 81880982b2
commit f6c74e93b7

View File

@@ -10,6 +10,7 @@ import GLib from 'gi://GLib';
import GObject from 'gi://GObject';
import Gtk from 'gi://Gtk';
import Meta from 'gi://Meta';
import Mtk from 'gi://Mtk';
import Shell from 'gi://Shell';
import St from 'gi://St';
@@ -367,7 +368,7 @@ class BaseButton extends St.Button {
}
_getIconGeometry() {
let rect = new Meta.Rectangle();
const rect = new Mtk.Rectangle();
[rect.x, rect.y] = this.get_transformed_position();
[rect.width, rect.height] = this.get_transformed_size();