don't use deprecated clutter container api

This commit is contained in:
Bruce Leidl 2024-04-10 09:23:24 -04:00
parent 681a6116f8
commit 7453b968f5
3 changed files with 10 additions and 10 deletions

View File

@ -45,12 +45,12 @@ class RealmProviderInfo extends St.Button {
this._moreLabel = new St.Label({ x_align: Clutter.ActorAlign.START });
detailsBox.add_actor(nameLabel);
detailsBox.add_actor(this._moreLabel);
detailsBox.add_child(nameLabel);
detailsBox.add_child(this._moreLabel);
this._content.add_actor(icon);
this._content.add_actor(detailsBox);
this._content.add_child(icon);
this._content.add_child(detailsBox);
}
get PROVIDER_ICON_SIZE() {
@ -92,7 +92,7 @@ class ListSearchResult extends Search.SearchResult {
// An icon for, or thumbnail of, content
let icon = this.metaInfo['createIcon'](this.ICON_SIZE);
if (icon)
titleBox.add(icon);
titleBox.add_icon(icon);
let title = new St.Label({
text: this.metaInfo['name'],
@ -198,7 +198,7 @@ class RealmSearchResults extends Search.SearchResultsBase {
}
_addItem(display) {
this._content.add_actor(display);
this._content.add_child(display);
}
getFirstResult() {
@ -222,7 +222,7 @@ export const RealmSearchProvider = class RealmSearchProvider {
this.display = new RealmSearchResults(this, resultsView);
this.display.connect('notify::focus-child', resultsView._focusChildChanged.bind(resultsView));
this.display.hide();
resultsView._content.add(this.display);
resultsView._content.add_child(this.display);
}
createIcon(size, realm) {

View File

@ -108,7 +108,7 @@ class WorkspaceGroup extends Clutter.Actor {
width: this.width * this._scale,
height: this.height * this._scale,
});
this.add_actor(this._background);
this.add_child(this._background);
this._bgManager = new Background.BackgroundManager({
container: this._background,
monitorIndex: this._monitor.index,

View File

@ -460,12 +460,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);
}
}