diff options
author | Miquel Lionel <lionel@les-miquelots.net> | 2024-09-15 17:54:59 +0200 |
---|---|---|
committer | Miquel Lionel <lionel@les-miquelots.net> | 2024-09-22 14:20:06 +0200 |
commit | 50f97ccbf3f672ecd6d37cab3fa8c59ead9d1631 (patch) | |
tree | 5ee948c2b5b8931aacf04d578aba9c89bb8af697 /main/src/ui/main_window.vala | |
parent | 65404b24424b2c554c611b24e9ddf7e12ce1a9f4 (diff) | |
download | dino-50f97ccbf3f672ecd6d37cab3fa8c59ead9d1631.tar.gz dino-50f97ccbf3f672ecd6d37cab3fa8c59ead9d1631.zip |
Enable setting your own presenceset-presence
- added 1 new icon for xa (extended away/unavailable)
Diffstat (limited to 'main/src/ui/main_window.vala')
-rw-r--r-- | main/src/ui/main_window.vala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/main/src/ui/main_window.vala b/main/src/ui/main_window.vala index e3110336..765ecc25 100644 --- a/main/src/ui/main_window.vala +++ b/main/src/ui/main_window.vala @@ -87,6 +87,13 @@ public class MainWindow : Adw.ApplicationWindow { conversation_titlebar.back_pressed.connect(() => leaflet.navigate(Adw.NavigationDirection.BACK)); } + public void refresh_presence_button(string presence = "") { + conversation_list_titlebar.unparent(); + conversation_list_titlebar = get_conversation_list_titlebar(presence); + leaflet.bind_property("folded", conversation_list_titlebar, "show-end-title-buttons", BindingFlags.SYNC_CREATE); + left_box.prepend(conversation_list_titlebar); + } + private void setup_stack() { stack.add_named(box, "main"); stack.add_named(welcome_placeholder, "welcome_placeholder"); |