From 9d14b0c6829a328be2596e96d91dcaef4933c328 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Wed, 15 Apr 2020 20:27:15 +0200 Subject: [PATCH] dbusServices/extensions: Set title on window instead of headerbar GTK4 will remove the GtkHeaderBar:title property, so stop using it and set the window's title property instead, as that's what headbars use in both GTK3 and GTK4 unless explicitly overridden. Part-of: --- js/dbusServices/extensions/extensionsService.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/js/dbusServices/extensions/extensionsService.js b/js/dbusServices/extensions/extensionsService.js index 9d444c551..cc40a56d7 100644 --- a/js/dbusServices/extensions/extensionsService.js +++ b/js/dbusServices/extensions/extensionsService.js @@ -156,7 +156,6 @@ var ExtensionPrefsDialog = GObject.registerClass({ GTypeName: 'ExtensionPrefsDialog', Template: 'resource:///org/gnome/Shell/Extensions/ui/extension-prefs-dialog.ui', InternalChildren: [ - 'headerBar', 'stack', 'expander', 'expanderArrow', @@ -165,13 +164,13 @@ var ExtensionPrefsDialog = GObject.registerClass({ ], }, class ExtensionPrefsDialog extends Gtk.Window { _init(extension) { - super._init(); + super._init({ + title: extension.metadata.name, + }); this._uuid = extension.uuid; this._url = extension.metadata.url || ''; - this._headerBar.title = extension.metadata.name; - this._actionGroup = new Gio.SimpleActionGroup(); this.insert_action_group('win', this._actionGroup);