Update extension for GNOME 49

This commit is contained in:
2026-03-02 22:32:29 +01:00
parent 53489ab67e
commit c6907ea93f
3 changed files with 14 additions and 6 deletions

View File

@@ -168,7 +168,7 @@ gdbus call --session --dest org.gnome.Shell --object-path /com/soutade/GenericMo
gdbus call --session --dest org.gnome.Shell --object-path /com/soutade/GenericMonitor --method com.soutade.GenericMonitor.deleteGroups '{"groups":["new"]}'
```
Python examples are available @ https://indefero.soutade.fr/p/genericmonitor/source/tree/master/examples
Python examples are available @ https://forge.soutade.fr/soutade/GnomeShellGenericMonitor/src/branch/master/examples
Development
@@ -176,6 +176,14 @@ Development
After doing code update, you can test it within a nested window. In other cases you have to restart GNOME.
mutter-dev-bin package is required
```bash
dbus-run-session gnome-shell --devkit --wayland
```
before GNOME 48
```bash
dbus-run-session -- gnome-shell --nested [--wayland]
```

View File

@@ -104,7 +104,7 @@ class SignalMgt {
array.push(id);
id = widget.connect('scroll-event', this._onScroll.bind(this));
array.push(id);
id = widget.connect('button-release-event', this._clicked.bind(this));
id = widget.connect('button-press-event', this._clicked.bind(this));
array.push(id);
}
@@ -150,7 +150,7 @@ class SignalMgt {
_doClickCallback() {
let right = '';
let nbClicks = '';
if (this.button == 3)
right = 'Right';
if (this.nbClicks > 1)
@@ -285,7 +285,7 @@ class MonitorWidget extends PanelMenu.Button {
Main.panel.addToStatusArea(this.fullname, this, position, box);
}
update(item) {
const prevWidget = this.widget;
const prevIcon = this.icon;

View File

@@ -2,9 +2,9 @@
"uuid": "generic-monitor@gnome-shell-extensions",
"name": "Generic Monitor",
"description": "Display text & icon on systray using DBUS",
"version": "19",
"version": "20",
"shell-version": [
"48"
"49"
],
"url": "https://forge.soutade.fr/soutade/GnomeShellGenericMonitor"
}