diff options
author | fiaxh <git@lightrise.org> | 2020-06-04 14:03:34 +0200 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2020-06-04 14:07:51 +0200 |
commit | cdc505f550242801ef53894f21e2dfa1a263be48 (patch) | |
tree | 6466cfe81d6ed4af85243dedbea85990803d29c3 /main/src/ui/chat_input | |
parent | 8a64c8501d028ead3fe85a3378cc127db67392a7 (diff) | |
download | dino-cdc505f550242801ef53894f21e2dfa1a263be48.tar.gz dino-cdc505f550242801ef53894f21e2dfa1a263be48.zip |
Add image sending via clipboard paste
fixes #385
Diffstat (limited to 'main/src/ui/chat_input')
-rw-r--r-- | main/src/ui/chat_input/chat_input_controller.vala | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/main/src/ui/chat_input/chat_input_controller.vala b/main/src/ui/chat_input/chat_input_controller.vala index 533f6f0d..bd38067d 100644 --- a/main/src/ui/chat_input/chat_input_controller.vala +++ b/main/src/ui/chat_input/chat_input_controller.vala @@ -11,6 +11,7 @@ public class ChatInputController : Object { public signal void activate_last_message_correction(); public signal void file_picker_selected(); + public signal void clipboard_pasted(); public new string? conversation_display_name { get; set; } public string? conversation_topic { get; set; } @@ -35,6 +36,7 @@ public class ChatInputController : Object { chat_input.chat_text_view.text_view.buffer.changed.connect(on_text_input_changed); chat_input.chat_text_view.text_view.key_press_event.connect(on_text_input_key_press); + chat_input.chat_text_view.text_view.paste_clipboard.connect(() => clipboard_pasted()); chat_text_view_controller.send_text.connect(send_text); |