0 | |
From: Tiramisu Mokka <kofemann@gmail.com>
|
1 | |
Date: Fri, 19 Mar 2021 19:00:32 +0100
|
2 | |
Subject: fix compatibility with gnome40
|
3 | |
|
4 | |
Origin: upstream, 28, commit:98cd17aa324a031e2ee3d344582dfdafd1e4642f
|
5 | |
---
|
6 | |
metadata.json | 5 ++---
|
7 | |
prefs.js | 6 ++----
|
8 | |
2 files changed, 4 insertions(+), 7 deletions(-)
|
9 | |
|
10 | |
diff --git a/metadata.json b/metadata.json
|
11 | |
index e4c9691..8a07918 100644
|
12 | |
--- a/metadata.json
|
13 | |
+++ b/metadata.json
|
14 | |
@@ -3,11 +3,10 @@
|
15 | |
"name": "TopIcons Plus",
|
16 | |
"gettext-domain": "TopIcons-Plus",
|
17 | |
"shell-version": [
|
18 | |
- "3.34",
|
19 | |
- "3.36"
|
20 | |
+ "40"
|
21 | |
],
|
22 | |
"settings-schema": "org.gnome.shell.extensions.topicons",
|
23 | |
"url": "https://github.com/phocean/TopIcons-plus",
|
24 | |
"uuid": "TopIcons@phocean.net",
|
25 | |
- "version": 27
|
26 | |
+ "version": 28
|
27 | |
}
|
28 | |
diff --git a/prefs.js b/prefs.js
|
29 | |
index bd372d2..f6b1277 100644
|
30 | |
--- a/prefs.js
|
31 | |
+++ b/prefs.js
|
32 | |
@@ -12,7 +12,7 @@ const Gettext = imports.gettext.domain(Me.metadata['gettext-domain']);
|
33 | |
const _ = Gettext.gettext;
|
34 | |
|
35 | |
function init() {
|
36 | |
- Convenience.initTranslations();
|
37 | |
+ ExtensionUtils.initTranslations();
|
38 | |
}
|
39 | |
|
40 | |
const TopIconsPlusSettings = new GObject.Class({
|
41 | |
@@ -180,8 +180,6 @@ const TopIconsPlusSettings = new GObject.Class({
|
42 | |
});
|
43 | |
|
44 | |
function buildPrefsWidget() {
|
45 | |
- let widget = new TopIconsPlusSettings();
|
46 | |
- widget.show_all();
|
47 | |
+ return new TopIconsPlusSettings();
|
48 | |
|
49 | |
- return widget;
|
50 | |
}
|