don't use deprecated clutter container api
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user