From b2710ccaca5b49b7cfd0352768aab3d9c9325a01 Mon Sep 17 00:00:00 2001 From: David P Hilton Date: Thu, 20 Sep 2018 16:42:43 -0600 Subject: [PATCH 1/2] fix errors reported by gnome-shell --- Random_Walls@Antares/assets/pictureChooser.js | 4 ++-- Random_Walls@Antares/assets/timeout.js | 2 +- Random_Walls@Antares/assets/wallpapers.js | 4 ++-- Random_Walls@Antares/extension.js | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Random_Walls@Antares/assets/pictureChooser.js b/Random_Walls@Antares/assets/pictureChooser.js index bf01fca..6109d11 100644 --- a/Random_Walls@Antares/assets/pictureChooser.js +++ b/Random_Walls@Antares/assets/pictureChooser.js @@ -17,12 +17,12 @@ const CURRENT_LOCK = 1; const NEXT_DESK = 2; const NEXT_LOCK = 3; -const THUMB_WIDTH = 200; //Change on stylesheet.css too!! +var THUMB_WIDTH = 200; //Change on stylesheet.css too!! const NUM_COLS_TABLE = 4; let _settings=Convenience.getSettings(); -const ThumbIcon = new Lang.Class({ +var ThumbIcon = new Lang.Class({ Name: 'ThumbIcon', actor: {}, _icon: {}, diff --git a/Random_Walls@Antares/assets/timeout.js b/Random_Walls@Antares/assets/timeout.js index 07a1463..d5c39ae 100644 --- a/Random_Walls@Antares/assets/timeout.js +++ b/Random_Walls@Antares/assets/timeout.js @@ -6,7 +6,7 @@ const Convenience = Me.imports.convenience; //SCHEMA KEYS const SETTINGS_TIMEOUT = "change-time"; -const MyTimer = new Lang.Class({ +var MyTimer = new Lang.Class({ Name: "MyTimer", _settings: {}, diff --git a/Random_Walls@Antares/assets/wallpapers.js b/Random_Walls@Antares/assets/wallpapers.js index 8740267..8384699 100644 --- a/Random_Walls@Antares/assets/wallpapers.js +++ b/Random_Walls@Antares/assets/wallpapers.js @@ -8,7 +8,7 @@ const SETTINGS_LOCK_URI = 'picture-uri'; const SETTINGS_FOLDER_LIST = 'folder-list'; const SETTINGS_BACKGROUND_MODE = 'picture-options'; -const WallUtils = new Lang.Class({ +var WallUtils = new Lang.Class({ Name: 'WallUtils', _settings: null, @@ -248,7 +248,7 @@ const WallUtils = new Lang.Class({ }); -const getScreenAspectRatio = function() { +var getScreenAspectRatio = function() { let background_setting = new Gio.Settings({schema: 'org.gnome.desktop.background'}); let background_mode = background_setting.get_string(SETTINGS_BACKGROUND_MODE); if (background_mode == 'spanned') { diff --git a/Random_Walls@Antares/extension.js b/Random_Walls@Antares/extension.js index aa394c8..15db2b2 100644 --- a/Random_Walls@Antares/extension.js +++ b/Random_Walls@Antares/extension.js @@ -29,7 +29,7 @@ const NEXT_LOCK = 3; let metadata = Me.metadata; let settings; -let MyTimer; +var MyTimer; let wallUtils; const LabelWidget = new Lang.Class({ From 097c5a92dd74e2a6be1458abd9d537cec7d84bb2 Mon Sep 17 00:00:00 2001 From: David P Hilton Date: Thu, 20 Sep 2018 16:44:45 -0600 Subject: [PATCH 2/2] updated version: known to work on gnome 3.30 --- Random_Walls@Antares/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Random_Walls@Antares/metadata.json b/Random_Walls@Antares/metadata.json index 3552231..55ee671 100644 --- a/Random_Walls@Antares/metadata.json +++ b/Random_Walls@Antares/metadata.json @@ -1,5 +1,5 @@ { -"shell-version": ["3.14","3.16","3.18","3.20","3.22"], + "shell-version": ["3.14","3.16","3.18","3.20","3.22", "3.30"], "uuid": "Random_Walls@Antares", "url": "https://github.com/rodakorn/randwall", "settings-schema": "org.gnome.shell.extensions.randwall",