MichalW / gnome-bluetooth-battery-indicator

Gnome-Shell extension displaying battery percentage for bluetooth devices
GNU General Public License v3.0
121 stars 40 forks source link

Gnome 45 support #74

Closed 314eter closed 1 year ago

314eter commented 1 year ago

Resolves #69.

Signals

Signals.addSignalMethods() doesn't work anymore in Gnome 45. The replacement Signals.EventEmitter was added in Gnome 43. Using connectObject() and disconnectObject() is easier than manually keeping track of the signal ids.

Mainloop

The Mainloop module hasn't been recommended for a while, and can't be used anymore in Gnome 45.

Imports

Gnome 45 moved to ESM imports.

ExtensionUtils

ExtensionUtils was replaced by Extension and ExtensionPreferences classes.

Compatibility

These changes make the code incompatible with earlier Gnome version.

MichalW commented 1 year ago

Thank you very much for these changes

gerardbosch commented 11 months ago

Very nice! May I ask if is this released in Gnome extensions site? I don't see the last version compatible with Gnome 45 here: https://extensions.gnome.org/extension/3991/bluetooth-battery/

Cheers!!

image