Skip to content

Commit

Permalink
remove deprecated convenience.js
Browse files Browse the repository at this point in the history
  • Loading branch information
maoschanz committed Nov 20, 2021
1 parent 4139878 commit c61a0f8
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 100 deletions.
5 changes: 5 additions & 0 deletions build-a-zip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,8 @@ zip ../$EXT_ID.zip metadata.json
zip -r ../$EXT_ID.zip schemas
zip -r ../$EXT_ID.zip locale

shopt -s globstar

zip -d ../$EXT_ID.zip **/*.pot
zip -d ../$EXT_ID.zip **/*.po

93 changes: 0 additions & 93 deletions move-osd-windows@maestroschan.fr/convenience.js

This file was deleted.

5 changes: 2 additions & 3 deletions move-osd-windows@maestroschan.fr/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ const OsdWindow = imports.ui.osdWindow;

const ExtensionUtils = imports.misc.extensionUtils;
const Me = ExtensionUtils.getCurrentExtension();
const Convenience = Me.imports.convenience;

function init() {
Convenience.initTranslations();
ExtensionUtils.initTranslations();
}

//------------------------------------------------------------------------------
Expand Down Expand Up @@ -37,7 +36,7 @@ let injections=[];
//------------------------------------------------------------------------------

function enable() {
let settings = Convenience.getSettings('org.gnome.shell.extensions.move-osd-windows');
let settings = ExtensionUtils.getSettings();

injections['show'] = injectToFunction(
OsdWindow.OsdWindow.prototype,
Expand Down
2 changes: 1 addition & 1 deletion move-osd-windows@maestroschan.fr/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
],
"url": "https://github.com/Maestroschan/Move-OSD-Windows-GNOME-Extension",
"uuid": "move-osd-windows@maestroschan.fr",
"version": 4
"version": 0
}
5 changes: 2 additions & 3 deletions move-osd-windows@maestroschan.fr/prefs.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ const _ = Gettext.gettext;

const ExtensionUtils = imports.misc.extensionUtils;
const Me = ExtensionUtils.getCurrentExtension();
const Convenience = Me.imports.convenience;

//------------------------------------------------------------------------------

Expand All @@ -24,7 +23,7 @@ const OSDSettingsWidget = new GObject.Class({
column_spacing: 20,
halign: Gtk.Align.CENTER,
});
this.SETTINGS = Convenience.getSettings('org.gnome.shell.extensions.move-osd-windows');
this.SETTINGS = ExtensionUtils.getSettings();

//----------------------------------------------------------------------

Expand Down Expand Up @@ -95,7 +94,7 @@ const OSDSettingsWidget = new GObject.Class({
//------------------------------------------------------------------------------

function init() {
Convenience.initTranslations();
ExtensionUtils.initTranslations();
}

// This is like the "enable" in extension.js : something called each time the
Expand Down

0 comments on commit c61a0f8

Please sign in to comment.