Closed foxrus closed 2 years ago
Hi @foxrus,
can you tell me what version of gnome-shell you have: gnome-session --version
Thanks
40.4 I put a line in the metadata.json file - "shell-version": [ "40.4" ], The extension works fine, but the settings don't open
The settings of extension bigSur-StatusArea@ordissimo.com had an error:
Error: No property border_width on PrefsWidget
Stack trace:
_init/Gtk.Widget.prototype._init@resource:///org/gnome/gjs/modules/core/overrides/Gtk.js:45:40
_parent@resource:///org/gnome/gjs/modules/script/_legacy.js:40:21
_init@/home/linuxcool/.local/share/gnome-shell/extensions/bigSur-StatusArea@ordissimo.com/prefs.js:153:14
wrapper@resource:///org/gnome/gjs/modules/script/_legacy.js:83:27
buildPrefsWidget@/home/linuxcool/.local/share/gnome-shell/extensions/bigSur-StatusArea@ordissimo.com/prefs.js:609:18
_init@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:209:40
OpenExtensionPrefsAsync/<@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:122:28
asyncCallback@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:115:22
run@resource:///org/gnome/Shell/Extensions/js/dbusService.js:177:20
main@resource:///org/gnome/Shell/Extensions/js/main.js:19:13
run@resource:///org/gnome/gjs/modules/script/package.js:206:19
start@resource:///org/gnome/gjs/modules/script/package.js:190:8
@/usr/share/gnome-shell/org.gnome.Shell.Extensions:1:17
Tank's! /home/linuxcool/.local/share/gnome-shell/extensions/bigSur-StatusArea@ordissimo.com/prefs.js Can you edit this file "/home/linuxcool/.local/share/gnome-shell/extensions/bigSur-StatusArea@ordissimo.com/prefs.js" ? Replace these lines :
orientation: Gtk.Orientation.VERTICAL,
spacing: 5,
border_width: 5
});
with this one:
orientation: Gtk.Orientation.VERTICAL,
spacing: 5
});
Give me a feedback I could make a correction in the next day !
Don't work The settings of extension bigSur-StatusArea@ordissimo.com had an error:
Error: No property margin_left on GtkNotebook
Stack trace:
_init/Gtk.Widget.prototype._init@resource:///org/gnome/gjs/modules/core/overrides/Gtk.js:45:40
_init@/home/linuxcool/.local/share/gnome-shell/extensions/bigSur-StatusArea@ordissimo.com/prefs.js:160:24
wrapper@resource:///org/gnome/gjs/modules/script/_legacy.js:83:27
buildPrefsWidget@/home/linuxcool/.local/share/gnome-shell/extensions/bigSur-StatusArea@ordissimo.com/prefs.js:608:18
_init@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:209:40
OpenExtensionPrefsAsync/<@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:122:28
asyncCallback@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:115:22
run@resource:///org/gnome/Shell/Extensions/js/dbusService.js:177:20
main@resource:///org/gnome/Shell/Extensions/js/main.js:19:13
run@resource:///org/gnome/gjs/modules/script/package.js:206:19
start@resource:///org/gnome/gjs/modules/script/package.js:190:8
@/usr/share/gnome-shell/org.gnome.Shell.Extensions:1:17
Replace these lines :
let notebook = new Gtk.Notebook({
margin_left: 6,
margin_right: 6
});
with this one:
let notebook = new Gtk.Notebook();
I delete margin_left but
The settings of extension bigSur-StatusArea@ordissimo.com had an error:
Error: No property margin on Gjs_SettingsPage
Stack trace:
_init/Gtk.Widget.prototype._init@resource:///org/gnome/gjs/modules/core/overrides/Gtk.js:45:40
_parent@resource:///org/gnome/gjs/modules/script/_legacy.js:40:21
_init@/home/linuxcool/.local/share/gnome-shell/extensions/bigSur-StatusArea@ordissimo.com/prefs.js:92:14
wrapper@resource:///org/gnome/gjs/modules/script/_legacy.js:83:27
_parent@resource:///org/gnome/gjs/modules/script/_legacy.js:40:21
_init@/home/linuxcool/.local/share/gnome-shell/extensions/bigSur-StatusArea@ordissimo.com/prefs.js:181:14
wrapper@resource:///org/gnome/gjs/modules/script/_legacy.js:83:27
_init@/home/linuxcool/.local/share/gnome-shell/extensions/bigSur-StatusArea@ordissimo.com/prefs.js:163:28
wrapper@resource:///org/gnome/gjs/modules/script/_legacy.js:83:27
buildPrefsWidget@/home/linuxcool/.local/share/gnome-shell/extensions/bigSur-StatusArea@ordissimo.com/prefs.js:606:18
_init@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:209:40
OpenExtensionPrefsAsync/<@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:122:28
asyncCallback@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:115:22
run@resource:///org/gnome/Shell/Extensions/js/dbusService.js:177:20
main@resource:///org/gnome/Shell/Extensions/js/main.js:19:13
run@resource:///org/gnome/gjs/modules/script/package.js:206:19
start@resource:///org/gnome/gjs/modules/script/package.js:190:8
@/usr/share/gnome-shell/org.gnome.Shell.Extensions:1:17
It is the passage to Gtk4, it evolves since it is young, and I am still on Gtk3, but by continuing we will solve all the problems. Replace these lines at 191 ;
_init: function (title) {
this.parent({
orientation: Gtk.Orientation.VERTICAL,
margin: 24,
spacing: 20,
homogeneous: false
});
with this one:
_init: function (title) {
this.parent({
orientation: Gtk.Orientation.VERTICAL,
homogeneous: false
});
The settings of extension bigSur-StatusArea@ordissimo.com had an error:
Error: No property label_yalign on FrameBox
Stack trace:
_init/Gtk.Widget.prototype._init@resource:///org/gnome/gjs/modules/core/overrides/Gtk.js:45:40
_parent@resource:///org/gnome/gjs/modules/script/_legacy.js:40:21
_init@/home/linuxcool/.local/share/gnome-shell/extensions/bigSur-StatusArea@ordissimo.com/prefs.js:112:14
wrapper@resource:///org/gnome/gjs/modules/script/_legacy.js:83:27
_init@/home/linuxcool/.local/share/gnome-shell/extensions/bigSur-StatusArea@ordissimo.com/prefs.js:188:25
wrapper@resource:///org/gnome/gjs/modules/script/_legacy.js:83:27
_init@/home/linuxcool/.local/share/gnome-shell/extensions/bigSur-StatusArea@ordissimo.com/prefs.js:161:28
wrapper@resource:///org/gnome/gjs/modules/script/_legacy.js:83:27
buildPrefsWidget@/home/linuxcool/.local/share/gnome-shell/extensions/bigSur-StatusArea@ordissimo.com/prefs.js:604:18
_init@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:209:40
OpenExtensionPrefsAsync/<@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:122:28
asyncCallback@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:115:22
run@resource:///org/gnome/Shell/Extensions/js/dbusService.js:177:20
main@resource:///org/gnome/Shell/Extensions/js/main.js:19:13
run@resource:///org/gnome/gjs/modules/script/package.js:206:19
start@resource:///org/gnome/gjs/modules/script/package.js:190:8
@/usr/share/gnome-shell/org.gnome.Shell.Extensions:1:17
Replace these lines at 111 ;
_init: function (label) {
this._listBox = new Gtk.ListBox();
this._listBox.set_selection_mode(Gtk.SelectionMode.NONE);
this.parent({
label_yalign: 0.50,
child: this._listBox
});
this.label = label;
},
with this one:
_init: function (label) {
this._listBox = new Gtk.ListBox();
this._listBox.set_selection_mode(Gtk.SelectionMode.NONE);
this.parent({
child: this._listBox
});
this.label = label;
},
The settings of extension bigSur-StatusArea@ordissimo.com had an error:
Error: No property margin on GtkGrid
Stack trace:
_init/Gtk.Widget.prototype._init@resource:///org/gnome/gjs/modules/core/overrides/Gtk.js:45:40
_init@/home/linuxcool/.local/share/gnome-shell/extensions/bigSur-StatusArea@ordissimo.com/prefs.js:129:22
wrapper@resource:///org/gnome/gjs/modules/script/_legacy.js:83:27
_init@/home/linuxcool/.local/share/gnome-shell/extensions/bigSur-StatusArea@ordissimo.com/prefs.js:188:27
wrapper@resource:///org/gnome/gjs/modules/script/_legacy.js:83:27
_init@/home/linuxcool/.local/share/gnome-shell/extensions/bigSur-StatusArea@ordissimo.com/prefs.js:160:28
wrapper@resource:///org/gnome/gjs/modules/script/_legacy.js:83:27
buildPrefsWidget@/home/linuxcool/.local/share/gnome-shell/extensions/bigSur-StatusArea@ordissimo.com/prefs.js:603:18
_init@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:209:40
OpenExtensionPrefsAsync/<@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:122:28
asyncCallback@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:115:22
run@resource:///org/gnome/Shell/Extensions/js/dbusService.js:177:20
main@resource:///org/gnome/Shell/Extensions/js/main.js:19:13
run@resource:///org/gnome/gjs/modules/script/package.js:206:19
start@resource:///org/gnome/gjs/modules/script/package.js:190:8
@/usr/share/gnome-shell/org.gnome.Shell.Extensions:1:17
Replace these lines at 129 ;
_init: function () {
this._grid = new Gtk.Grid({
margin: 5,
column_spacing: 20,
row_spacing: 20
});
with this one:
_init: function () {
this._grid = new Gtk.Grid({
column_spacing: 20,
row_spacing: 20
});
The settings of extension bigSur-StatusArea@ordissimo.com had an error:
TypeError: this._grid.add is not a function
Stack trace:
add@/home/linuxcool/.local/share/gnome-shell/extensions/bigSur-StatusArea@ordissimo.com/prefs.js:139:20
wrapper@resource:///org/gnome/gjs/modules/script/_legacy.js:83:27
_init@/home/linuxcool/.local/share/gnome-shell/extensions/bigSur-StatusArea@ordissimo.com/prefs.js:199:21
wrapper@resource:///org/gnome/gjs/modules/script/_legacy.js:83:27
_init@/home/linuxcool/.local/share/gnome-shell/extensions/bigSur-StatusArea@ordissimo.com/prefs.js:159:28
wrapper@resource:///org/gnome/gjs/modules/script/_legacy.js:83:27
buildPrefsWidget@/home/linuxcool/.local/share/gnome-shell/extensions/bigSur-StatusArea@ordissimo.com/prefs.js:602:18
_init@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:209:40
OpenExtensionPrefsAsync/<@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:122:28
asyncCallback@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:115:22
run@resource:///org/gnome/Shell/Extensions/js/dbusService.js:177:20
main@resource:///org/gnome/Shell/Extensions/js/main.js:19:13
run@resource:///org/gnome/gjs/modules/script/package.js:206:19
start@resource:///org/gnome/gjs/modules/script/package.js:190:8
@/usr/share/gnome-shell/org.gnome.Shell.Extensions:1:17
Replace these lines:
add: function (widget) {
this._grid.add(widget);
}
with this one:
add: function (widget) {
this._grid.attach(widget, 0, 0);
}
The settings of extension bigSur-StatusArea@ordissimo.com had an error:
TypeError: method Gtk.Grid.attach: At least 5 arguments required, but only 3 passed
Stack trace:
add@/home/linuxcool/.local/share/gnome-shell/extensions/bigSur-StatusArea@ordissimo.com/prefs.js:139:20
wrapper@resource:///org/gnome/gjs/modules/script/_legacy.js:83:27
_init@/home/linuxcool/.local/share/gnome-shell/extensions/bigSur-StatusArea@ordissimo.com/prefs.js:199:21
wrapper@resource:///org/gnome/gjs/modules/script/_legacy.js:83:27
_init@/home/linuxcool/.local/share/gnome-shell/extensions/bigSur-StatusArea@ordissimo.com/prefs.js:159:28
wrapper@resource:///org/gnome/gjs/modules/script/_legacy.js:83:27
buildPrefsWidget@/home/linuxcool/.local/share/gnome-shell/extensions/bigSur-StatusArea@ordissimo.com/prefs.js:602:18
_init@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:209:40
OpenExtensionPrefsAsync/<@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:122:28
asyncCallback@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:115:22
run@resource:///org/gnome/Shell/Extensions/js/dbusService.js:177:20
main@resource:///org/gnome/Shell/Extensions/js/main.js:19:13
run@resource:///org/gnome/gjs/modules/script/package.js:206:19
start@resource:///org/gnome/gjs/modules/script/package.js:190:8
@/usr/share/gnome-shell/org.gnome.Shell.Extensions:1:17
Sorry
add: function (widget) {
this._grid.attach(widget, 0, 0, 1, 1);
}
The settings of extension bigSur-StatusArea@ordissimo.com had an error:
TypeError: this._listBox.add is not a function
Stack trace:
add@/home/linuxcool/.local/share/gnome-shell/extensions/bigSur-StatusArea@ordissimo.com/prefs.js:119:23
wrapper@resource:///org/gnome/gjs/modules/script/_legacy.js:83:27
_init@/home/linuxcool/.local/share/gnome-shell/extensions/bigSur-StatusArea@ordissimo.com/prefs.js:203:19
wrapper@resource:///org/gnome/gjs/modules/script/_legacy.js:83:27
_init@/home/linuxcool/.local/share/gnome-shell/extensions/bigSur-StatusArea@ordissimo.com/prefs.js:160:28
wrapper@resource:///org/gnome/gjs/modules/script/_legacy.js:83:27
buildPrefsWidget@/home/linuxcool/.local/share/gnome-shell/extensions/bigSur-StatusArea@ordissimo.com/prefs.js:603:18
_init@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:209:40
OpenExtensionPrefsAsync/<@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:122:28
asyncCallback@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:115:22
run@resource:///org/gnome/Shell/Extensions/js/dbusService.js:177:20
main@resource:///org/gnome/Shell/Extensions/js/main.js:19:13
run@resource:///org/gnome/gjs/modules/script/package.js:206:19
start@resource:///org/gnome/gjs/modules/script/package.js:190:8
@/usr/share/gnome-shell/org.gnome.Shell.Extensions:1:17
Replace these lines:
add: function (boxRow) {
this._listBox.add(boxRow);
}
Stack trace:
add: function (boxRow) {
this._listBox.append(boxRow);
}
The settings of extension bigSur-StatusArea@ordissimo.com had an error:
TypeError: this.add is not a function
Stack trace:
_init@/home/linuxcool/.local/share/gnome-shell/extensions/bigSur-StatusArea@ordissimo.com/prefs.js:262:14
wrapper@resource:///org/gnome/gjs/modules/script/_legacy.js:83:27
_init@/home/linuxcool/.local/share/gnome-shell/extensions/bigSur-StatusArea@ordissimo.com/prefs.js:160:28
wrapper@resource:///org/gnome/gjs/modules/script/_legacy.js:83:27
buildPrefsWidget@/home/linuxcool/.local/share/gnome-shell/extensions/bigSur-StatusArea@ordissimo.com/prefs.js:603:18
_init@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:209:40
OpenExtensionPrefsAsync/<@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:122:28
asyncCallback@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:115:22
run@resource:///org/gnome/Shell/Extensions/js/dbusService.js:177:20
main@resource:///org/gnome/Shell/Extensions/js/main.js:19:13
run@resource:///org/gnome/gjs/modules/script/package.js:206:19
start@resource:///org/gnome/gjs/modules/script/package.js:190:8
@/usr/share/gnome-shell/org.gnome.Shell.Extensions:1:17
I'll start again tonight, I'll put myself in a VM. The NoteBookPage object has changed a lot, I have to find out how to use it properly or replace it. You'll have a solution by tomorrow !
Okay, thank you very much.
Hi @foxrus,
I just reviewed the code tonight! You are using version 3.38 which is not adapted to your version of gnome-shell If you use git you have to use the 40.rc or 41 branch
You can find the adapted version at this address : https://extensions.gnome.org/extension/4085/big-sur-status-area/
I'm waiting for your feedback!
I am using Ubuntu 21.10 and gnome-shell 40.4, when I go to the extension page I see that it is not supported by my version. First I downloaded the version for gnome-shell 3.38 and it didn't work, then I downloaded the version for gnome-shell 41 and I had to change the line in the metadata.json file to "shell-version": [ "40.4" ], only after that it worked. Thank you very much for your help.
Fixed
Error: No property border_width on PrefsWidget
Stack trace: _init/Gtk.Widget.prototype._init@resource:///org/gnome/gjs/modules/core/overrides/Gtk.js:45:40 _parent@resource:///org/gnome/gjs/modules/script/_legacy.js:40:21 _init@/home/linuxcool/.local/share/gnome-shell/extensions/bigSur-StatusArea@ordissimo.com/prefs.js:153:14 wrapper@resource:///org/gnome/gjs/modules/script/_legacy.js:83:27 buildPrefsWidget@/home/linuxcool/.local/share/gnome-shell/extensions/bigSur-StatusArea@ordissimo.com/prefs.js:609:18 _init@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:209:40 OpenExtensionPrefsAsync/<@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:122:28 asyncCallback@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:115:22 run@resource:///org/gnome/Shell/Extensions/js/dbusService.js:177:20 main@resource:///org/gnome/Shell/Extensions/js/main.js:19:13 run@resource:///org/gnome/gjs/modules/script/package.js:206:19 start@resource:///org/gnome/gjs/modules/script/package.js:190:8 @/usr/share/gnome-shell/org.gnome.Shell.Extensions:1:17
Please help me