Skip to content

Commit

Permalink
Add support for GNOME Shell 46
Browse files Browse the repository at this point in the history
  • Loading branch information
rovellipaolo committed Apr 26, 2024
1 parent 6e9bf21 commit 4e442d1
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 16 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ Published at: https://extensions.gnome.org/extension/1804/sermon/

The `master` branch includes all stable features and currently supports GNOME Shell _45_.
Among others, this version of GNOME Shell is used in the following Linux distributions:
* Fedora 39
* Ubuntu 23.10 (Mantic Minotaur)
* Fedora 39 and 40
* Ubuntu 23.10 (Mantic Minotaur) and 24.04 LTS (Noble Numbat)

The `gnome-shell-42-0` branch is a discontinued backport to GNOME Shell _3.34_, _3.36_, _3.38_, _40_, _41_, _42_, _43_ and _44_.
Among others, these versions of GNOME Shell are used in the following Linux distributions:
Expand All @@ -29,15 +29,15 @@ Among others, these versions of GNOME Shell are used in the following Linux dist
* Mageia 8 and 9
* Manjaro 19.0, 20.x, 21.x and 22.0 to 22.1
* openSUSE Leap 15.2, 15.3, 15.4 and 15.5
* Red Hat Enterprise Linux 9 (Plow)
* Red Hat Enterprise Linux 9.0 to 9.3 (Plow)
* SUSE Linux Enterprise Desktop 15 SP2, SP3, SP4 and SP5
* Ubuntu 19.10 (Eoan Ermine), 20.04 LTS (Focal Fossa), 20.10 (Groovy Gorilla), 21.04 (Hirsute Hippo), 21.10 (Impish Indri), 22.04 LTS (Jammy Jellyfish), 22.10 (Kinetic Kudu) and 23.04 (Lunar Lobster)

The `gnome-shell-3-32` branch is a discontinued backport to GNOME Shell _3.32_.
Among others, this version of GNOME Shell is used in the following Linux distributions:
* Fedora 30
* Mageia 7 and 7.1
* Red Hat Enterprise Linux 8.1 to 8.6 (Ootpa)
* Red Hat Enterprise Linux 8.1 to 8.9 (Ootpa)
* Ubuntu 19.04 (Disco Dingo)

The `gnome-shell-3-28` branch is a discontinued backport to GNOME Shell _3.26_, _3.28_ and _3.30_.
Expand Down
5 changes: 3 additions & 2 deletions metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"url": "https://github.com/rovellipaolo/gnome-shell-extension-sermon",
"settings-schema": "org.gnome.shell.extensions.sermon",
"shell-version": [
"45"
"45",
"46"
],
"version": 30
"version": 31
}
20 changes: 10 additions & 10 deletions src/presentation/views.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export const MenuView = GObject.registerClass(
}

hideSection(sectionView) {
this._sectionContainerView.actor.remove_actor(sectionView);
this._sectionContainerView.actor.remove_child(sectionView);
sectionView.destroy();
}

Expand Down Expand Up @@ -137,18 +137,18 @@ export const SectionView = GObject.registerClass(
style_class: "sermon-section-header-text",
text: title,
});
titleView.add_actor(
titleView.add_child(
new St.Bin({
child: label,
x_expand: true,
y_expand: true,
}),
);
titleView.actor.add(icon);
this.add_actor(titleView);
titleView.actor.add_child(icon);
this.add_child(titleView);

const separatorView = new PopupMenu.PopupSeparatorMenuItem();
this.add_actor(separatorView);
this.add_child(separatorView);
}

buildSectionItemView(section, id, labelText) {
Expand Down Expand Up @@ -190,11 +190,11 @@ export const SectionView = GObject.registerClass(
}

showItem(itemView) {
this.add_actor(itemView.actor);
this.add_child(itemView.actor);
}

hideItem(itemView) {
this.remove_actor(itemView.actor);
this.remove_child(itemView.actor);
}

destroy() {
Expand Down Expand Up @@ -232,7 +232,7 @@ export const SectionItemView = GObject.registerClass(
text: text,
});
const labelBin = new St.Bin({ child: this._label });
this.add_actor(labelBin);
this.add_child(labelBin);
}

addMouseOverEvent() {
Expand Down Expand Up @@ -315,7 +315,7 @@ export const RunnableSectionItemView = GObject.registerClass(

showButton(type) {
this.buttons[type] = this._buildButton(type);
this.add_actor(this.buttons[type]);
this.add_child(this.buttons[type]);
return this.buttons[type].connect("clicked", () =>
this.presenter.onButtonClicked(type),
);
Expand All @@ -336,7 +336,7 @@ export const RunnableSectionItemView = GObject.registerClass(
hideButtons() {
Object.keys(this.buttons).forEach((type) => {
const button = this.buttons[type];
this.remove_actor(button);
this.remove_child(button);
});
}
},
Expand Down

0 comments on commit 4e442d1

Please sign in to comment.