gnome-shell/js/dbusServices/extensions
Florian Müllner 4d2b008966 dbusServices/extensions: Fix shutdown after showing prefs
GTK4 relies entirely on refcounting for cleanup (that is,
there is no longer a destroy() method that forces a dispose
run regardless of the refcount).

Unfortunately that makes cleanup harder in (some) language
bindings, where an object may be kept alive implicitly by
closures etc.

Address this by releasing the hold count when the window
is closed rather than when it is destroyed.

This isn't the most elegant, but it ensure that the service
doesn't get stuck if an extension doesn't carefully clean
up everything in its prefs widget.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4564

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2013>
2021-10-30 21:50:47 +00:00
..
css dbusServices/extensions: Remove event box 2021-01-14 13:03:21 +00:00
ui Port extensions app and portal to GTK4 2021-01-14 13:03:21 +00:00
extensionsService.js dbusServices/extensions: Fix shutdown after showing prefs 2021-10-30 21:50:47 +00:00
main.js Port extensions app and portal to GTK4 2021-01-14 13:03:21 +00:00