aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui/conversation_titlebar.vala
diff options
context:
space:
mode:
authorfiaxh <git@mx.ax.lt>2017-04-03 19:20:31 +0200
committerfiaxh <git@mx.ax.lt>2017-04-03 19:48:01 +0200
commitea5d3e50c6fd63ae3a151c883f691e76b9cb1018 (patch)
tree633d269bd20fbfacfe8bea79f87cd3374d4199a0 /main/src/ui/conversation_titlebar.vala
parent2a49d4a1aaf1d1fb644d3e4586989c696f657bcc (diff)
downloaddino-ea5d3e50c6fd63ae3a151c883f691e76b9cb1018.tar.gz
dino-ea5d3e50c6fd63ae3a151c883f691e76b9cb1018.zip
Start private conversation with MUC occupant via occupant menu
Diffstat (limited to 'main/src/ui/conversation_titlebar.vala')
-rw-r--r--main/src/ui/conversation_titlebar.vala7
1 files changed, 2 insertions, 5 deletions
diff --git a/main/src/ui/conversation_titlebar.vala b/main/src/ui/conversation_titlebar.vala
index 45c4c9c1..70a376f1 100644
--- a/main/src/ui/conversation_titlebar.vala
+++ b/main/src/ui/conversation_titlebar.vala
@@ -61,11 +61,8 @@ public class ConversationTitlebar : Gtk.HeaderBar {
groupchat_button.visible = conversation.type_ == Conversation.Type.GROUPCHAT;
if (conversation.type_ == Conversation.Type.GROUPCHAT) {
groupchat_button.set_use_popover(true);
- Popover popover = new Popover(null);
- OccupantList occupant_list = new OccupantList(stream_interactor, conversation);
- popover.add(occupant_list);
- occupant_list.show_all();
- groupchat_button.set_popover(popover);
+ OccupantMenu.View menu = new OccupantMenu.View(stream_interactor, conversation);
+ groupchat_button.set_popover(menu);
}
}