From 7453b968f58e7ae90b26ed727d395d9611efc211 Mon Sep 17 00:00:00 2001 From: Bruce Leidl Date: Wed, 10 Apr 2024 09:23:24 -0400 Subject: [PATCH] don't use deprecated clutter container api --- js/ui/realms/realmSearchProvider.js | 14 +++++++------- js/ui/realms/realmSwitcher.js | 2 +- js/ui/workspacesView.js | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/js/ui/realms/realmSearchProvider.js b/js/ui/realms/realmSearchProvider.js index a50c0b6c7..70693f479 100644 --- a/js/ui/realms/realmSearchProvider.js +++ b/js/ui/realms/realmSearchProvider.js @@ -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) { diff --git a/js/ui/realms/realmSwitcher.js b/js/ui/realms/realmSwitcher.js index 78d7b4379..f78ef4d6d 100644 --- a/js/ui/realms/realmSwitcher.js +++ b/js/ui/realms/realmSwitcher.js @@ -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, diff --git a/js/ui/workspacesView.js b/js/ui/workspacesView.js index 9de02c3e8..c849df82d 100644 --- a/js/ui/workspacesView.js +++ b/js/ui/workspacesView.js @@ -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); } }