diff options
author | fiaxh <git@mx.ax.lt> | 2017-03-23 16:34:54 +0100 |
---|---|---|
committer | fiaxh <git@mx.ax.lt> | 2017-03-23 16:34:54 +0100 |
commit | aca6842c490c52b6460b7d9ebd7cc77eec4b97ef (patch) | |
tree | b78b07581392c1140aa3bee70fc969b122e07843 /main/src/ui/unified_window.vala | |
parent | 492baaf0845fee2495b9d181cd9fd50403eb61f8 (diff) | |
download | dino-aca6842c490c52b6460b7d9ebd7cc77eec4b97ef.tar.gz dino-aca6842c490c52b6460b7d9ebd7cc77eec4b97ef.zip |
Select corresponding conversation when clicking on notification
Diffstat (limited to 'main/src/ui/unified_window.vala')
-rw-r--r-- | main/src/ui/unified_window.vala | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/main/src/ui/unified_window.vala b/main/src/ui/unified_window.vala index 2eb4317a..4a409128 100644 --- a/main/src/ui/unified_window.vala +++ b/main/src/ui/unified_window.vala @@ -50,6 +50,17 @@ public class UnifiedWindow : Window { check_stack(); } + public void on_conversation_selected(Conversation conversation) { + this.conversation = conversation; + stream_interactor.get_module(ChatInteraction.IDENTITY).on_conversation_selected(conversation); + conversation.active = true; // only for conversation_selected + filterable_conversation_list.conversation_list.on_conversation_selected(conversation); // only for conversation_opened + + chat_input.initialize_for_conversation(conversation); + conversation_frame.initialize_for_conversation(conversation); + conversation_titlebar.initialize_for_conversation(conversation); + } + private void setup_unified() { chat_input = new ChatInput(stream_interactor) { visible=true }; conversation_frame = new ConversationSummary.View(stream_interactor) { visible=true }; @@ -97,17 +108,6 @@ public class UnifiedWindow : Window { } } - private void on_conversation_selected(Conversation conversation) { - this.conversation = conversation; - stream_interactor.get_module(ChatInteraction.IDENTITY).on_conversation_selected(conversation); - conversation.active = true; // only for conversation_selected - filterable_conversation_list.conversation_list.on_conversation_selected(conversation); // only for conversation_opened - - chat_input.initialize_for_conversation(conversation); - conversation_frame.initialize_for_conversation(conversation); - conversation_titlebar.initialize_for_conversation(conversation); - } - private bool on_focus_in_event() { stream_interactor.get_module(ChatInteraction.IDENTITY).on_window_focus_in(conversation); return false; |