aboutsummaryrefslogtreecommitdiff
path: root/main/src/windows/preferences_window/account_preferences_subpage.vala
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2025-10-05 13:35:41 +0200
committerfiaxh <git@lightrise.org>2025-10-05 17:59:08 +0200
commite14c7d933bfa0bdd97781857b9341854232058a2 (patch)
treee302c07398dad3196a87a99843d9383ef116cb25 /main/src/windows/preferences_window/account_preferences_subpage.vala
parent6d8ccb414529c017ef1b8a52499b7bbdb6432adb (diff)
Adjust to Adw 1.4: Use specialized ActionRows
Diffstat (limited to 'main/src/windows/preferences_window/account_preferences_subpage.vala')
-rw-r--r--main/src/windows/preferences_window/account_preferences_subpage.vala7
1 files changed, 2 insertions, 5 deletions
diff --git a/main/src/windows/preferences_window/account_preferences_subpage.vala b/main/src/windows/preferences_window/account_preferences_subpage.vala
index 1a7d5696..92fffa76 100644
--- a/main/src/windows/preferences_window/account_preferences_subpage.vala
+++ b/main/src/windows/preferences_window/account_preferences_subpage.vala
@@ -31,13 +31,11 @@ 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();
- window.close_subpage();
+ window.pop_subpage();
});
edit_avatar_button.clicked.connect(() => {
show_select_avatar();
@@ -173,8 +171,7 @@ public class Dino.Ui.AccountPreferencesSubpage : Gtk.Box {
model.remove_account(account);
// Close the account subpage
var window = (Adw.PreferencesWindow) this.get_root();
- window.close_subpage();
-// window.pop_subpage();
+ window.pop_subpage();
}
dialog.close();
});