summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Müllner <fmuellner@gnome.org>2023-03-08 23:20:20 +0100
committerMarge Bot <marge-bot@gnome.org>2023-04-25 10:45:19 +0000
commit94345825a71919e4f287b6cd041f1f8d4b3d05c1 (patch)
tree5408516606cf7ae47f008a3b6ec853f3b6d79582
parent7a4055ec92a2cb8f1c74666f0345de5f4337d7ef (diff)
downloadgnome-shell-94345825a71919e4f287b6cd041f1f8d4b3d05c1.tar.gz
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>
-rw-r--r--js/portalHelper/main.js5
1 files 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',