portalHelper: Use libadwaita instead of plain Gtk4

This gives us the proper platform stylesheet, as well as support
for dark style and other platform features.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2690>
This commit is contained in:
Florian Müllner 2023-03-08 23:20:20 +01:00 committed by Marge Bot
parent 7a4055ec92
commit 94345825a7

View File

@ -1,9 +1,10 @@
/* exported main */
imports.gi.versions.Adw = '1';
imports.gi.versions.Gtk = '4.0';
imports.gi.versions.WebKit = '6.0';
const Gettext = imports.gettext;
const {Gio, GLib, GObject, Gtk, WebKit} = imports.gi;
const {Adw, Gio, GLib, GObject, Gtk, WebKit} = imports.gi;
const _ = Gettext.gettext;
@ -279,7 +280,7 @@ class PortalWindow extends Gtk.ApplicationWindow {
});
var WebPortalHelper = GObject.registerClass(
class WebPortalHelper extends Gtk.Application {
class WebPortalHelper extends Adw.Application {
_init() {
super._init({
application_id: 'org.gnome.Shell.PortalHelper',