diff options
author | fiaxh <git@lightrise.org> | 2024-09-15 20:04:52 +0200 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2024-09-15 20:15:14 +0200 |
commit | e8f82fd328697542d2ee0233635b694827a5cc79 (patch) | |
tree | b3fe7981ded0f9d570c64a09494734711035b09c /main/src/ui/main_window.vala | |
parent | 63ba0bc93636de557ced29c19b2b61eeeab57bf8 (diff) | |
download | dino-e8f82fd328697542d2ee0233635b694827a5cc79.tar.gz dino-e8f82fd328697542d2ee0233635b694827a5cc79.zip |
Code cleanup: Remove broken disable CSD code
Diffstat (limited to 'main/src/ui/main_window.vala')
-rw-r--r-- | main/src/ui/main_window.vala | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/main/src/ui/main_window.vala b/main/src/ui/main_window.vala index ce71d413..e3110336 100644 --- a/main/src/ui/main_window.vala +++ b/main/src/ui/main_window.vala @@ -77,19 +77,10 @@ public class MainWindow : Adw.ApplicationWindow { } private void setup_headerbar() { - if (Util.use_csd()) { - conversation_list_titlebar = get_conversation_list_titlebar_csd(); - conversation_titlebar = new ConversationTitlebarCsd(); - leaflet.bind_property("folded", conversation_list_titlebar, "show-end-title-buttons", BindingFlags.SYNC_CREATE); - leaflet.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 }; - box.prepend(titlebar); - - conversation_list_titlebar = new ConversationListTitlebar(); - conversation_titlebar = new ConversationTitlebarNoCsd(); - } + conversation_list_titlebar = get_conversation_list_titlebar(); + conversation_titlebar = new ConversationTitlebar(); + leaflet.bind_property("folded", conversation_list_titlebar, "show-end-title-buttons", BindingFlags.SYNC_CREATE); + leaflet.bind_property("folded", conversation_titlebar.get_widget(), "show-start-title-buttons", BindingFlags.SYNC_CREATE); left_box.prepend(conversation_list_titlebar); right_box.prepend(conversation_titlebar.get_widget()); leaflet.notify["folded"].connect_after(() => conversation_titlebar.back_button_visible = leaflet.folded); |