From 984ae3f5b89081f97696cd5051167a18159aa60b Mon Sep 17 00:00:00 2001 From: fiaxh Date: Thu, 20 Jun 2024 18:39:25 +0200 Subject: Settings dialog: Fix account subpage for Adwaita < 1.4, other fixes fixes #1592 --- main/src/windows/preferences_window/account_preferences_subpage.vala | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'main/src/windows/preferences_window/account_preferences_subpage.vala') diff --git a/main/src/windows/preferences_window/account_preferences_subpage.vala b/main/src/windows/preferences_window/account_preferences_subpage.vala index 462fc8e1..01cf5584 100644 --- a/main/src/windows/preferences_window/account_preferences_subpage.vala +++ b/main/src/windows/preferences_window/account_preferences_subpage.vala @@ -8,6 +8,7 @@ using Gdk; [GtkTemplate (ui = "/im/dino/Dino/preferences_window_account.ui")] public class Dino.Ui.AccountPreferencesSubpage : Gtk.Box { + [GtkChild] public unowned Adw.HeaderBar headerbar; [GtkChild] public unowned Button back_button; [GtkChild] public unowned AvatarPicture avatar; [GtkChild] public unowned Adw.ActionRow xmpp_address; @@ -30,6 +31,9 @@ public class Dino.Ui.AccountPreferencesSubpage : Gtk.Box { private ulong alias_entry_changed = 0; construct { +#if Adw_1_4 + headerbar.show_title = false; +#endif button_container.layout_manager = new NaturalDirectionBoxLayout((BoxLayout)button_container.layout_manager); back_button.clicked.connect(() => { var window = (Adw.PreferencesWindow) this.get_root(); -- cgit v1.2.3-54-g00ecf