aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui/conversation_titlebar.vala
diff options
context:
space:
mode:
authorfiaxh <git@mx.ax.lt>2017-05-30 22:47:16 +0200
committerfiaxh <git@mx.ax.lt>2017-05-30 22:51:58 +0200
commit5ba95ef6b7be3bc7f3a8333f9db78577e1c259bc (patch)
treea7b7a606f82af06fee5c4ccef57d26822d6096d5 /main/src/ui/conversation_titlebar.vala
parent387433ebb9bab442502f812e0364111f37270bcb (diff)
downloaddino-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.vala8
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() {