aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui/main_window.vala
diff options
context:
space:
mode:
authorTeemu Ikonen <tpikonen@mailbox.org>2022-09-12 23:10:35 +0300
committerMarvin W <git@larma.de>2023-01-24 19:20:42 +0100
commitba9462503c0561dbe8306e3bf6aa49392bfc8078 (patch)
tree13f58e9df81b2729cde489f014a4c73005b2005b /main/src/ui/main_window.vala
parent2741bf21ae6d53324a512dacef65d540be840fe4 (diff)
downloaddino-ba9462503c0561dbe8306e3bf6aa49392bfc8078.tar.gz
dino-ba9462503c0561dbe8306e3bf6aa49392bfc8078.zip
Use Adw.HeaderBar for CSD header bars
This allows showing the correct buttons with 'show-start-title-buttons' and 'show-end-title-buttons' properties when folding.
Diffstat (limited to 'main/src/ui/main_window.vala')
-rw-r--r--main/src/ui/main_window.vala2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/src/ui/main_window.vala b/main/src/ui/main_window.vala
index 475bd64a..18fd5240 100644
--- a/main/src/ui/main_window.vala
+++ b/main/src/ui/main_window.vala
@@ -84,6 +84,8 @@ public class MainWindow : Adw.Window {
if (Util.use_csd()) {
conversation_list_titlebar = get_conversation_list_titlebar_csd();
conversation_titlebar = new ConversationTitlebarCsd();
+ paned.bind_property("folded", conversation_list_titlebar, "show-end-title-buttons", BindingFlags.SYNC_CREATE);
+ paned.bind_property("folded", conversation_titlebar.get_widget(), "show-start-title-buttons", BindingFlags.SYNC_CREATE);
} else {
Label title_label = new Label("Dino");
HeaderBar titlebar = new HeaderBar() { title_widget=title_label, show_title_buttons=true };