From 28c44380ba89e51c5aeac01ca9549633fbeb7e11 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Fri, 21 Feb 2020 02:11:23 +0100 Subject: Move ConversationContentView+ChatInput into ConversationView, handle drag'n'drop on ConversationView level --- main/src/ui/conversation_selector/conversation_selector.vala | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'main/src/ui/conversation_selector') diff --git a/main/src/ui/conversation_selector/conversation_selector.vala b/main/src/ui/conversation_selector/conversation_selector.vala index ac087183..4c7e6b8d 100644 --- a/main/src/ui/conversation_selector/conversation_selector.vala +++ b/main/src/ui/conversation_selector/conversation_selector.vala @@ -56,7 +56,6 @@ public class ConversationSelector : ListBox { if (!rows.has_key(conversation)) { add_conversation(conversation); } - rows[conversation].grab_focus(); this.select_row(rows[conversation]); } @@ -86,8 +85,8 @@ public class ConversationSelector : ListBox { if (this.drag_timeout != null) return false; this.drag_timeout = Timeout.add(200, () => { - if (widget.get_type().is_a(typeof(ConversationRow))) { - ConversationRow row = widget as ConversationRow; + if (widget.get_type().is_a(typeof(ConversationSelectorRow))) { + ConversationSelectorRow row = widget as ConversationSelectorRow; conversation_selected(row.conversation); } this.drag_timeout = null; -- cgit v1.2.3-70-g09d2