From 94345825a71919e4f287b6cd041f1f8d4b3d05c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Wed, 8 Mar 2023 23:20:20 +0100 Subject: [PATCH] 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: --- js/portalHelper/main.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/portalHelper/main.js b/js/portalHelper/main.js index 8ebeee28d..186259609 100644 --- a/js/portalHelper/main.js +++ b/js/portalHelper/main.js @@ -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',