From 7fbdd24b503d85423d51da49896cc99191d65c4d Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Sun, 1 Oct 2023 02:28:24 +0200 Subject: Allow to copy messages --- main/src/ui/conversation_view.vala | 2 ++ 1 file changed, 2 insertions(+) (limited to 'main/src/ui/conversation_view.vala') diff --git a/main/src/ui/conversation_view.vala b/main/src/ui/conversation_view.vala index 47d54f92..fd0c8d66 100644 --- a/main/src/ui/conversation_view.vala +++ b/main/src/ui/conversation_view.vala @@ -14,10 +14,12 @@ public class ConversationView : Gtk.Overlay { [GtkChild] public unowned ChatInput.View chat_input; [GtkChild] public unowned ConversationSummary.ConversationView conversation_frame; [GtkChild] public unowned Revealer white_revealer; + public signal void copy_text(string text); construct { white_revealer.notify["child-revealed"].connect_after(on_child_revealed_changed); conversation_frame.on_quote_text.connect((t, text) => on_quote_text(text)); + conversation_frame.on_copy_text.connect((t, text) => copy_text(text)); } public void on_quote_text(string text) { -- cgit v1.2.3