From 4e442d15f761ee1f9f1478094ab37225bd41c271 Mon Sep 17 00:00:00 2001 From: Paolo Rovelli Date: Fri, 26 Apr 2024 14:04:12 +0200 Subject: [PATCH] Add support for GNOME Shell 46 --- README.md | 8 ++++---- metadata.json | 5 +++-- src/presentation/views.js | 20 ++++++++++---------- 3 files changed, 17 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index d6ed98a..d5818f1 100755 --- a/README.md +++ b/README.md @@ -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: @@ -29,7 +29,7 @@ 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) @@ -37,7 +37,7 @@ 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_. diff --git a/metadata.json b/metadata.json index 313d09d..4cc22c2 100755 --- a/metadata.json +++ b/metadata.json @@ -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 } diff --git a/src/presentation/views.js b/src/presentation/views.js index 4a28c82..4a2b2a8 100755 --- a/src/presentation/views.js +++ b/src/presentation/views.js @@ -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(); } @@ -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) { @@ -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() { @@ -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() { @@ -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), ); @@ -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); }); } },