Mercurial > restartinto@bgreco.net
changeset 3:a041e7a70a0f gnome-42 tip
Cleanup: remove dots from schema ID, remove unused imports
author | Brad Greco <brad@bgreco.net> |
---|---|
date | Thu, 11 Jan 2024 15:20:49 -0500 |
parents | 57aaa990e4f1 |
children | |
files | extension.js metadata.json prefs.js schemas/gschemas.compiled schemas/org.gnome.shell.extensions.net.bgreco.restartinto.gschema.xml |
diffstat | 5 files changed, 4 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/extension.js Sun Nov 26 20:07:17 2023 -0500 +++ b/extension.js Thu Jan 11 15:20:49 2024 -0500 @@ -18,8 +18,6 @@ /* exported init */ -const { AccountsService, Clutter, Gio, - GLib, GObject, Pango, Polkit, Shell, St } = imports.gi; const Util = imports.misc.util; const EndSessionDialog = imports.ui.endSessionDialog; const ExtensionUtils = imports.misc.extensionUtils;
--- a/metadata.json Sun Nov 26 20:07:17 2023 -0500 +++ b/metadata.json Thu Jan 11 15:20:49 2024 -0500 @@ -3,7 +3,7 @@ "description": "Adds a button in the Restart dialog to select a secondary operating system", "uuid": "restartinto@bgreco.net", "url": "https://hg.bgreco.net/restartinto@bgreco.net", - "settings-schema": "org.gnome.shell.extensions.net.bgreco.restartinto", - "version-name": "42.1.1", + "settings-schema": "org.gnome.shell.extensions.net-bgreco-restartinto", + "version-name": "42.1.2", "shell-version": ["42"] }
--- a/prefs.js Sun Nov 26 20:07:17 2023 -0500 +++ b/prefs.js Thu Jan 11 15:20:49 2024 -0500 @@ -11,7 +11,7 @@ function buildPrefsWidget() { let entries = imports.byteArray.toString(GLib.spawn_command_line_sync("systemctl reboot --boot-loader-entry=help")[1]); - let settings = ExtensionUtils.getSettings('org.gnome.shell.extensions.net.bgreco.restartinto'); + let settings = ExtensionUtils.getSettings(); let currentSecondaryEntry = settings.get_string('entry'); let prefsWidget = new Gtk.Grid({
--- a/schemas/org.gnome.shell.extensions.net.bgreco.restartinto.gschema.xml Sun Nov 26 20:07:17 2023 -0500 +++ b/schemas/org.gnome.shell.extensions.net.bgreco.restartinto.gschema.xml Thu Jan 11 15:20:49 2024 -0500 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <schemalist> - <schema id="org.gnome.shell.extensions.net.bgreco.restartinto" path="/org/gnome/shell/extensions/net.bgreco.restartinto/"> + <schema id="org.gnome.shell.extensions.net-bgreco-restartinto" path="/org/gnome/shell/extensions/net-bgreco-restartinto/"> <key name="entry" type="s"> <default>""</default> </key>