diff options
author | fiaxh <git@lightrise.org> | 2019-02-20 23:08:30 +0100 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2019-03-14 17:39:31 +0100 |
commit | 161e4c19862be0ea6572f7701d37acc1c16b8147 (patch) | |
tree | 99c79a52371dd7a1424617045ea849b8977b039f /main/src/ui/contact_details | |
parent | cc7b0aa7bd5b6599159f654fdd8a2fd111e16a3e (diff) | |
download | dino-161e4c19862be0ea6572f7701d37acc1c16b8147.tar.gz dino-161e4c19862be0ea6572f7701d37acc1c16b8147.zip |
Add non-CSD alternative for more windows
Diffstat (limited to 'main/src/ui/contact_details')
-rw-r--r-- | main/src/ui/contact_details/dialog.vala | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/main/src/ui/contact_details/dialog.vala b/main/src/ui/contact_details/dialog.vala index fd3b4751..8cbd8c54 100644 --- a/main/src/ui/contact_details/dialog.vala +++ b/main/src/ui/contact_details/dialog.vala @@ -30,12 +30,14 @@ public class Dialog : Gtk.Dialog { } public Dialog(StreamInteractor stream_interactor, Conversation conversation) { - Object(use_header_bar : 1); + Object(use_header_bar : Util.use_csd() ? 1 : 0); this.stream_interactor = stream_interactor; this.conversation = conversation; title = conversation.type_ == Conversation.Type.GROUPCHAT ? _("Conference Details") : _("Contact Details"); - (get_header_bar() as HeaderBar).set_subtitle(Util.get_conversation_display_name(stream_interactor, conversation)); + if (Util.use_csd()) { + (get_header_bar() as HeaderBar).set_subtitle(Util.get_conversation_display_name(stream_interactor, conversation)); + } setup_top(); contact_details.add.connect(add_entry); |