don't use deprecated clutter container api

This commit is contained in:
2024-04-10 09:23:24 -04:00
parent e63283cb89
commit c254a7391c
3 changed files with 10 additions and 10 deletions

View File

@ -463,12 +463,12 @@ class WorkspacesView extends WorkspacesViewBase {
// Replace a current entry
let old = this._workspaces[idx];
this._workspaces[idx] = workspace;
this.add_actor(workspace);
this.add_child(workspace);
this.set_child_at_index(workspace, idx);
old.destroy();
} else {
// Append a new entry
this.add_actor(workspace);
this.add_child(workspace);
this._workspaces.push(workspace);
}
}