window-list: Stop using deprecated actor property
Since PanelMenu.Button was changed to inherit from St.Widget, its actor property is deprecated and points to itself. Stop using it to avoid the corresponding warning. https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/67
This commit is contained in:
@@ -917,7 +917,7 @@ class WindowList {
|
||||
let workspacesOnMonitor = this._monitor == Main.layoutManager.primaryMonitor ||
|
||||
!this._mutterSettings.get_boolean('workspaces-only-on-primary');
|
||||
|
||||
this._workspaceIndicator.actor.visible = hasWorkspaces && workspacesOnMonitor;
|
||||
this._workspaceIndicator.visible = hasWorkspaces && workspacesOnMonitor;
|
||||
}
|
||||
|
||||
_getPreferredUngroupedWindowListWidth() {
|
||||
@@ -940,7 +940,7 @@ class WindowList {
|
||||
}
|
||||
|
||||
_getMaxWindowListWidth() {
|
||||
let indicatorsBox = this._workspaceIndicator.actor.get_parent();
|
||||
let indicatorsBox = this._workspaceIndicator.get_parent();
|
||||
return this.actor.width - indicatorsBox.get_preferred_width(-1)[1];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user