Skip to content

Commit

Permalink
Use set_child instead of add_child
Browse files Browse the repository at this point in the history
  • Loading branch information
sergio-costas committed Mar 12, 2024
1 parent 3d54a18 commit ffd2b16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion windowPreview.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ class WindowPreviewMenuItem extends PopupMenu.PopupBaseMenuItem {
? Clutter.ActorAlign.START : Clutter.ActorAlign.END,
y_align: Clutter.ActorAlign.START,
});
this.closeButton.add_child(new St.Icon({icon_name: 'window-close-symbolic'}));
this.closeButton.set_child(new St.Icon({icon_name: 'window-close-symbolic'}));
this.closeButton.connect('clicked', () => this._closeWindow());

const overlayGroup = new Clutter.Actor({
Expand Down

0 comments on commit ffd2b16

Please sign in to comment.