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:
committed by
Marge Bot
parent
81880982b2
commit
f6c74e93b7
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user