diff options
author | fiaxh <git@lightrise.org> | 2020-02-21 02:11:23 +0100 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2020-02-22 02:58:36 +0100 |
commit | 28c44380ba89e51c5aeac01ca9549633fbeb7e11 (patch) | |
tree | 8172f1d6c3bcd2450082fa8fa1fb76e9a214cfc5 /main/src/ui/conversation_selector | |
parent | a7e92960a3f4d31cfb2fbe2e3ba4941cf3b8faf2 (diff) | |
download | dino-28c44380ba89e51c5aeac01ca9549633fbeb7e11.tar.gz dino-28c44380ba89e51c5aeac01ca9549633fbeb7e11.zip |
Move ConversationContentView+ChatInput into ConversationView, handle drag'n'drop on ConversationView level
Diffstat (limited to 'main/src/ui/conversation_selector')
-rw-r--r-- | main/src/ui/conversation_selector/conversation_selector.vala | 5 |
1 files changed, 2 insertions, 3 deletions
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; |