don't use deprecated clutter container api
This commit is contained in:
parent
681a6116f8
commit
7453b968f5
@ -45,12 +45,12 @@ class RealmProviderInfo extends St.Button {
|
|||||||
|
|
||||||
this._moreLabel = new St.Label({ x_align: Clutter.ActorAlign.START });
|
this._moreLabel = new St.Label({ x_align: Clutter.ActorAlign.START });
|
||||||
|
|
||||||
detailsBox.add_actor(nameLabel);
|
detailsBox.add_child(nameLabel);
|
||||||
detailsBox.add_actor(this._moreLabel);
|
detailsBox.add_child(this._moreLabel);
|
||||||
|
|
||||||
|
|
||||||
this._content.add_actor(icon);
|
this._content.add_child(icon);
|
||||||
this._content.add_actor(detailsBox);
|
this._content.add_child(detailsBox);
|
||||||
}
|
}
|
||||||
|
|
||||||
get PROVIDER_ICON_SIZE() {
|
get PROVIDER_ICON_SIZE() {
|
||||||
@ -92,7 +92,7 @@ class ListSearchResult extends Search.SearchResult {
|
|||||||
// An icon for, or thumbnail of, content
|
// An icon for, or thumbnail of, content
|
||||||
let icon = this.metaInfo['createIcon'](this.ICON_SIZE);
|
let icon = this.metaInfo['createIcon'](this.ICON_SIZE);
|
||||||
if (icon)
|
if (icon)
|
||||||
titleBox.add(icon);
|
titleBox.add_icon(icon);
|
||||||
|
|
||||||
let title = new St.Label({
|
let title = new St.Label({
|
||||||
text: this.metaInfo['name'],
|
text: this.metaInfo['name'],
|
||||||
@ -198,7 +198,7 @@ class RealmSearchResults extends Search.SearchResultsBase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_addItem(display) {
|
_addItem(display) {
|
||||||
this._content.add_actor(display);
|
this._content.add_child(display);
|
||||||
}
|
}
|
||||||
|
|
||||||
getFirstResult() {
|
getFirstResult() {
|
||||||
@ -222,7 +222,7 @@ export const RealmSearchProvider = class RealmSearchProvider {
|
|||||||
this.display = new RealmSearchResults(this, resultsView);
|
this.display = new RealmSearchResults(this, resultsView);
|
||||||
this.display.connect('notify::focus-child', resultsView._focusChildChanged.bind(resultsView));
|
this.display.connect('notify::focus-child', resultsView._focusChildChanged.bind(resultsView));
|
||||||
this.display.hide();
|
this.display.hide();
|
||||||
resultsView._content.add(this.display);
|
resultsView._content.add_child(this.display);
|
||||||
}
|
}
|
||||||
|
|
||||||
createIcon(size, realm) {
|
createIcon(size, realm) {
|
||||||
|
@ -108,7 +108,7 @@ class WorkspaceGroup extends Clutter.Actor {
|
|||||||
width: this.width * this._scale,
|
width: this.width * this._scale,
|
||||||
height: this.height * this._scale,
|
height: this.height * this._scale,
|
||||||
});
|
});
|
||||||
this.add_actor(this._background);
|
this.add_child(this._background);
|
||||||
this._bgManager = new Background.BackgroundManager({
|
this._bgManager = new Background.BackgroundManager({
|
||||||
container: this._background,
|
container: this._background,
|
||||||
monitorIndex: this._monitor.index,
|
monitorIndex: this._monitor.index,
|
||||||
|
@ -460,12 +460,12 @@ class WorkspacesView extends WorkspacesViewBase {
|
|||||||
// Replace a current entry
|
// Replace a current entry
|
||||||
let old = this._workspaces[idx];
|
let old = this._workspaces[idx];
|
||||||
this._workspaces[idx] = workspace;
|
this._workspaces[idx] = workspace;
|
||||||
this.add_actor(workspace);
|
this.add_child(workspace);
|
||||||
this.set_child_at_index(workspace, idx);
|
this.set_child_at_index(workspace, idx);
|
||||||
old.destroy();
|
old.destroy();
|
||||||
} else {
|
} else {
|
||||||
// Append a new entry
|
// Append a new entry
|
||||||
this.add_actor(workspace);
|
this.add_child(workspace);
|
||||||
this._workspaces.push(workspace);
|
this._workspaces.push(workspace);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user