From ed71f61422ec0cc03427833771fe2a6a7b4b3fa1 Mon Sep 17 00:00:00 2001 From: Aearil Date: Fri, 21 Feb 2020 18:22:27 +0100 Subject: Add a tooltip when messages are in WONTSEND state (#550) The warning sign and red color, while obviously synonymous with a problem, are still a bit perplexing for the user. This change add a bit of clarity. It would obviously be better to get exact cause of the problem from the different plugins. Maybe it would be possible to add a field to the Message class from libdino/src/entity/message.vala in order to record an error message for every case. --- main/src/ui/conversation_summary/conversation_item_skeleton.vala | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'main/src/ui/conversation_summary') diff --git a/main/src/ui/conversation_summary/conversation_item_skeleton.vala b/main/src/ui/conversation_summary/conversation_item_skeleton.vala index 175e01ff..40816493 100644 --- a/main/src/ui/conversation_summary/conversation_item_skeleton.vala +++ b/main/src/ui/conversation_summary/conversation_item_skeleton.vala @@ -150,6 +150,10 @@ public class ItemMetaDataHeader : Box { Util.force_error_color(received_image); Util.force_error_color(encryption_image); Util.force_error_color(time_label); + string error_text = _("Unable to send message"); + received_image.tooltip_text = error_text; + encryption_image.tooltip_text = error_text; + time_label.tooltip_text = error_text; return; } else if (item.mark != Message.Marked.READ) { all_read = false; -- cgit v1.2.3-70-g09d2