Skip to content

Commit

Permalink
Fix Gnome Shell 46 compatibility
Browse files Browse the repository at this point in the history
Further changes to make the extension compatible.
  • Loading branch information
elvetemedve committed May 22, 2024
1 parent 791c4cc commit 979d1c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [email protected]/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class Menu extends PanelMenu.Button {
_destroyIcon(type) {
let icon = this._icons[type];
this._meters[type].removeObserver(icon);
this._layout.remove_actor(icon);
this._layout.remove_child(icon);
icon.destroy();
delete this._icons[type];
delete this._meters[type];
Expand Down
6 changes: 3 additions & 3 deletions [email protected]/widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ class MeterAreaContainer extends PopupMenu.PopupBaseMenuItem {
throw new TypeError("First argument of addMeter() method must be instance of MeterContainer.");
}
if (position == undefined) {
this.actor.add_actor(meter);
this.actor.add_child(meter);
} else {
this.actor.insert_child_at_index(meter, position);
}
Expand All @@ -313,7 +313,7 @@ class MeterAreaContainer extends PopupMenu.PopupBaseMenuItem {
if (!meter instanceof MeterContainer) {
throw new TypeError("First argument of removeMeter() method must be instance of MeterContainer.");
}
this.actor.remove_actor(meter);
this.actor.remove_child(meter);
}
});

Expand Down Expand Up @@ -345,7 +345,7 @@ class MeterContainer extends St.BoxLayout {
this._menu_items.length = 0;
}
freeze() {
this.natural_width = this.width;
this.natural_width = Math.max(this.width, this.min_width);
this.natural_width_set = true;
}
unfreeze() {
Expand Down

0 comments on commit 979d1c1

Please sign in to comment.