diff options
author | fiaxh <git@mx.ax.lt> | 2017-05-30 22:47:16 +0200 |
---|---|---|
committer | fiaxh <git@mx.ax.lt> | 2017-05-30 22:51:58 +0200 |
commit | 5ba95ef6b7be3bc7f3a8333f9db78577e1c259bc (patch) | |
tree | a7b7a606f82af06fee5c4ccef57d26822d6096d5 /main/src/ui/conversation_titlebar.vala | |
parent | 387433ebb9bab442502f812e0364111f37270bcb (diff) | |
download | dino-5ba95ef6b7be3bc7f3a8333f9db78577e1c259bc.tar.gz dino-5ba95ef6b7be3bc7f3a8333f9db78577e1c259bc.zip |
Conversation details dialog
Diffstat (limited to 'main/src/ui/conversation_titlebar.vala')
-rw-r--r-- | main/src/ui/conversation_titlebar.vala | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/main/src/ui/conversation_titlebar.vala b/main/src/ui/conversation_titlebar.vala index b1db3604..0537a1b9 100644 --- a/main/src/ui/conversation_titlebar.vala +++ b/main/src/ui/conversation_titlebar.vala @@ -91,6 +91,14 @@ public class ConversationTitlebar : Gtk.HeaderBar { Builder builder = new Builder.from_resource("/org/dino-im/menu_conversation.ui"); MenuModel menu = builder.get_object("menu_conversation") as MenuModel; menu_button.set_menu_model(menu); + + SimpleAction contact_details_action = new SimpleAction("contact_details", null); + contact_details_action.activate.connect(() => { + ContactDetails.Dialog contact_details_dialog = new ContactDetails.Dialog(stream_interactor, conversation); + contact_details_dialog.set_transient_for((Window) get_toplevel()); + contact_details_dialog.present(); + }); + GLib.Application.get_default().add_action(contact_details_action); } private void encryption_changed() { |