diff --git a/js/ui/calendar.js b/js/ui/calendar.js index 11945a788..ebf8dda55 100644 --- a/js/ui/calendar.js +++ b/js/ui/calendar.js @@ -1005,8 +1005,8 @@ class CalendarMessageList extends St.Widget { y_align: Clutter.ActorAlign.START, }); this._sectionList.connectObject( - 'actor-added', this._sync.bind(this), - 'actor-removed', this._sync.bind(this), + 'child-added', this._sync.bind(this), + 'child-removed', this._sync.bind(this), this); this._scrollView.child = this._sectionList; diff --git a/js/ui/iconGrid.js b/js/ui/iconGrid.js index 81eabf97a..916d69ce4 100644 --- a/js/ui/iconGrid.js +++ b/js/ui/iconGrid.js @@ -1192,8 +1192,8 @@ export const IconGrid = GObject.registerClass({ this._currentPage = 0; this._currentMode = -1; - this.connect('actor-added', this._childAdded.bind(this)); - this.connect('actor-removed', this._childRemoved.bind(this)); + this.connect('child-added', this._childAdded.bind(this)); + this.connect('child-removed', this._childRemoved.bind(this)); this.connect('destroy', () => layoutManager.disconnect(pagesChangedId)); } diff --git a/js/ui/lightbox.js b/js/ui/lightbox.js index b461aa58f..577484137 100644 --- a/js/ui/lightbox.js +++ b/js/ui/lightbox.js @@ -157,8 +157,8 @@ export const Lightbox = GObject.registerClass({ } container.connectObject( - 'actor-added', this._actorAdded.bind(this), - 'actor-removed', this._actorRemoved.bind(this), this); + 'child-added', this._childAdded.bind(this), + 'child-removed', this._childRemoved.bind(this), this); this._highlighted = null; } @@ -167,7 +167,7 @@ export const Lightbox = GObject.registerClass({ return this._active; } - _actorAdded(container, newChild) { + _childAdded(container, newChild) { let children = this._container.get_children(); let myIndex = children.indexOf(this); let newChildIndex = children.indexOf(newChild); @@ -241,7 +241,7 @@ export const Lightbox = GObject.registerClass({ } } - _actorRemoved(container, child) { + _childRemoved(container, child) { let index = this._children.indexOf(child); if (index !== -1) // paranoia this._children.splice(index, 1); diff --git a/js/ui/lookingGlass.js b/js/ui/lookingGlass.js index 3a8c0be73..3b3c74625 100644 --- a/js/ui/lookingGlass.js +++ b/js/ui/lookingGlass.js @@ -950,10 +950,10 @@ class ActorTreeViewer extends St.BoxLayout { return; data.visible = true; - data.actorAddedId = actor.connect('actor-added', (container, child) => { + data.actorAddedId = actor.connect('child-added', (container, child) => { this._addActor(data.children, child); }); - data.actorRemovedId = actor.connect('actor-removed', (container, child) => { + data.actorRemovedId = actor.connect('child-removed', (container, child) => { this._removeActor(child); }); diff --git a/js/ui/messageList.js b/js/ui/messageList.js index 15d0c5e12..b86ab37eb 100644 --- a/js/ui/messageList.js +++ b/js/ui/messageList.js @@ -576,8 +576,8 @@ export const MessageListSection = GObject.registerClass({ }); this.add_child(this._list); - this._list.connect('actor-added', this._sync.bind(this)); - this._list.connect('actor-removed', this._sync.bind(this)); + this._list.connect('child-added', this._sync.bind(this)); + this._list.connect('child-removed', this._sync.bind(this)); Main.sessionMode.connectObject( 'updated', () => this._sync(), this);