From bff7a3a4a6512f48a7b58c2b20404e2d3173050e Mon Sep 17 00:00:00 2001 From: frosty Date: Tue, 27 Oct 2026 12:35:27 -0400 Subject: feat: begin working on account switcher --- main/src/ui/main_window.vala | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'main/src/ui/main_window.vala') diff --git a/main/src/ui/main_window.vala b/main/src/ui/main_window.vala index fc18d2bd..4a20f41d 100644 --- a/main/src/ui/main_window.vala +++ b/main/src/ui/main_window.vala @@ -17,6 +17,7 @@ public class MainWindow : Gtk.ApplicationWindow { [GtkChild] public unowned SearchEntry conversation_search_entry; [GtkChild] public unowned MenuButton menu_button; [GtkChild] private unowned Box conversation_list_toolbar; + [GtkChild] public unowned AccountSwitcher account_switcher; [GtkChild] public unowned Adw.HeaderBar conversation_headerbar; [GtkChild] public unowned Button conversation_title_button; @@ -72,6 +73,10 @@ public class MainWindow : Gtk.ApplicationWindow { conversation_search_entry.stop_search.connect(() => { conversation_search_entry.text = ""; }); + account_switcher.init(stream_interactor); + account_switcher.account_filter_changed.connect((account) => { + conversation_selector.set_account_filter(account); + }); global_search = new GlobalSearch(stream_interactor); search_frame.set_child(global_search.get_widget()); -- cgit v1.3