diff options
| author | frosty <frostinator33@airmail.cc> | 2026-10-27 12:35:27 -0400 |
|---|---|---|
| committer | frosty <frostinator33@airmail.cc> | 2026-10-27 12:35:27 -0400 |
| commit | bff7a3a4a6512f48a7b58c2b20404e2d3173050e (patch) | |
| tree | 44cff6c45b158251890c1e24dc0986c3a80021f5 /main/src/ui/main_window.vala | |
| parent | c7426c9fb97f1afdf2b33a055d977762af92c795 (diff) | |
Diffstat (limited to 'main/src/ui/main_window.vala')
| -rw-r--r-- | main/src/ui/main_window.vala | 5 |
1 files changed, 5 insertions, 0 deletions
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()); |
