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:

committed by
Marge Bot

parent
089fd315dd
commit
7a8b636028
@ -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;
|
||||
|
Reference in New Issue
Block a user