Closed drjhe closed 3 years ago
Thanks, I will look into this when get on gnome 40 testing.
@drjhe I tried applying as a patch, but it failed:
patching file lockkeys@vaina.lt/metadata.json
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file lockkeys@vaina.lt/metadata.json.rej
patching file lockkeys@vaina.lt/prefs.js
Hunk #2 FAILED at 39.
1 out of 4 hunks FAILED -- saving rejects to file lockkeys@vaina.lt/prefs.js.rej
metadata.json.rej
--- lockkeys@vaina.lt/metadata.json
+++ lockkeys@vaina.lt/metadata.json
@@ -1,5 +1,6 @@
{
- "shell-version": ["3.18", "3.20", "3.22", "3.24", "3.26", "3.28", "3.30", "3.32", "3.34", "3.36", "3.38"],
+ "shell-version": ["3.18", "3.20", "3.22", "3.24", "3.26", "3.28", "3.30",
+ "3.32", "3.34", "3.36", "3.38", "40"],
"uuid": "lockkeys@vaina.lt",
"name": "Lock Keys",
"description": "Numlock & Capslock status on the panel",
prefs.js.rej
:
--- lockkeys@vaina.lt/prefs.js
+++ lockkeys@vaina.lt/prefs.js
@@ -39,13 +39,13 @@ function buildPrefsWidget() {
[STYLE_SHOWHIDE]: _("Show/Hide")
}));
- frame.add(_createComboBox(NOTIFICATIONS, _("Notifications"), _("Show notifications when state changes"), {
+ frame.append(_createComboBox(NOTIFICATIONS, _("Notifications"), _("Show notifications when state changes"), {
[NOTIFICATIONS_OFF]: _("Off"),
[NOTIFICATIONS_ON]: _("Compact"),
[NOTIFICATIONS_OSD]: _("Osd")
}));
- frame.show_all();
+ frame.show();
return frame;
}
@drjhe I tried applying as a patch, but it failed:
That's strange. It applied cleanly for me to the current master, d7140aa. I copied and pasted the patch listing into a file, changed directory to my local clone of this repo, and applied it using patch -p1 < the.patch
.
please check out the master branch
New version has been submitted for a review.
The panel elements work OK just by adding "40" to the shell-version list in metadata.json, but it looks like the GTK+4 API has changed enough that the settings box won't work without some adjustment.
Below is the patch I used to get Lock Keys working on GNOME 40, but it's a bit crude and I don't really know how to do this elegantly in a way that works both on GNOME Shell 3.38 and 40 (hence why I refrained from making a pull request at this stage).