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/add_conversation/select_contact_dialog.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/add_conversation/select_contact_dialog.vala')
-rw-r--r-- | main/src/ui/add_conversation/select_contact_dialog.vala | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/main/src/ui/add_conversation/select_contact_dialog.vala b/main/src/ui/add_conversation/select_contact_dialog.vala index fb69257e..c0e5140a 100644 --- a/main/src/ui/add_conversation/select_contact_dialog.vala +++ b/main/src/ui/add_conversation/select_contact_dialog.vala @@ -20,7 +20,7 @@ public class SelectContactDialog : Gtk.Dialog { private Gee.List<Account> accounts; public SelectContactDialog(StreamInteractor stream_interactor, Gee.List<Account> accounts) { - Object(use_header_bar : Util.use_csd() ? 1 : 0); + Object(use_header_bar : 1); modal = true; this.default_width = 460; this.default_height = 550; @@ -46,22 +46,10 @@ public class SelectContactDialog : Gtk.Dialog { ok_button.sensitive = false; ok_button.visible = true; - if (Util.use_csd()) { - HeaderBar header_bar = get_header_bar() as HeaderBar; - header_bar.show_title_buttons = false; - - header_bar.pack_start(cancel_button); - header_bar.pack_end(ok_button); - } else { - Box box = new Box(Orientation.HORIZONTAL, 5) { halign=Align.END, margin_bottom=15, margin_start=80, margin_end=80 }; - - cancel_button.halign = Align.START; - ok_button.halign = Align.END; - box.append(cancel_button); - box.append(ok_button); - - get_content_area().append(box); - } + HeaderBar header_bar = get_header_bar() as HeaderBar; + header_bar.show_title_buttons = false; + header_bar.pack_start(cancel_button); + header_bar.pack_end(ok_button); cancel_button.clicked.connect(() => { close(); }); ok_button.clicked.connect(() => { |