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/po/fr.po | 4 ++++ main/src/ui/conversation_summary/conversation_item_skeleton.vala | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'main') diff --git a/main/po/fr.po b/main/po/fr.po index b78beb50..0ae3be2e 100644 --- a/main/po/fr.po +++ b/main/po/fr.po @@ -202,6 +202,10 @@ msgstr "%d %b" msgid "Yesterday" msgstr "Hier" +#: main/src/ui/conversation_summary/conversation_item_skeleton.vala:144 +msgid "Unable to send message" +msgstr "Impossible d'envoyer le message" + #: main/src/ui/conversation_selector/conversation_selector_row.vala:265 #: main/src/ui/conversation_summary/conversation_item_skeleton.vala:205 #, no-c-format 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