dbusServides/extensions: Use Adw.PreferencesWindow

Adapt the new GNOME platform API for the upcoming 42. This makes
sure that we get the latest version of the stylesheet, as well as
support for the new dark mode.

Using the dedicated preference API also gives extensions with more
complex preferences an easier and standardized way for implementing
multi-page preferences.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2012>
This commit is contained in:
Florian Müllner
2021-07-30 02:33:54 +02:00
committed by Marge Bot
parent 089fd315dd
commit 7a8b636028
4 changed files with 132 additions and 98 deletions

View File

@ -3,14 +3,14 @@
imports.gi.versions.Gdk = '4.0';
imports.gi.versions.Gtk = '4.0';
const { GObject, Gtk } = imports.gi;
const { Adw, GObject } = imports.gi;
const pkg = imports.package;
const { DBusService } = imports.dbusService;
const { ExtensionsService } = imports.extensionsService;
function main() {
Gtk.init();
Adw.init();
pkg.initFormat();
GObject.gtypeNameBasedOnJSPath = true;