[evolution] I#1231 - Mail: Add tooltips to attachment buttons in the preview
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] I#1231 - Mail: Add tooltips to attachment buttons in the preview
- Date: Thu, 19 Nov 2020 17:53:32 +0000 (UTC)
commit 5d81a56c1221fc99e2ff45679703acc64ce8110d
Author: Milan Crha <mcrha redhat com>
Date: Thu Nov 19 18:52:20 2020 +0100
I#1231 - Mail: Add tooltips to attachment buttons in the preview
Closes https://gitlab.gnome.org/GNOME/evolution/-/issues/1231
src/em-format/e-mail-formatter-attachment.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/src/em-format/e-mail-formatter-attachment.c b/src/em-format/e-mail-formatter-attachment.c
index a91871475a..863d30c2e6 100644
--- a/src/em-format/e-mail-formatter-attachment.c
+++ b/src/em-format/e-mail-formatter-attachment.c
@@ -260,19 +260,21 @@ emfe_attachment_format (EMailFormatterExtension *extension,
"<table width=\"100%%\" border=\"0\" style=\"border-spacing: 0px\">"
"<tr valign=\"middle\">"
"<td align=\"left\" width=\"1px\" style=\"white-space:pre;\">"
- "<button type=\"button\" class=\"attachment-expander\" id=\"%s\" value=\"%p\"
style=\"vertical-align:middle; margin:0px;\">"
+ "<button type=\"button\" class=\"attachment-expander\" id=\"%s\" value=\"%p\"
style=\"vertical-align:middle; margin:0px;\" title=\"%s\">"
"<img id=\"attachment-expander-img-%p\" src=\"gtk-stock://%s?size=%d\" width=\"%dpx\"
height=\"%dpx\" style=\"vertical-align:middle;\">"
"<img src=\"%s\" width=\"%dpx\" height=\"%dpx\" style=\"vertical-align:middle;\">"
"</button>"
- "<button type=\"button\" class=\"attachment-menu\" id=\"%s\" value=\"%p\"
style=\"vertical-align:middle; margin:0px;\">"
+ "<button type=\"button\" class=\"attachment-menu\" id=\"%s\" value=\"%p\"
style=\"vertical-align:middle; margin:0px;\" title=\"%s\">"
"<img src=\"gtk-stock://x-evolution-arrow-down?size=%d\" width=\"%dpx\" height=\"%dpx\"
style=\"vertical-align:middle;\">"
"</button>"
"</td><td align=\"left\">%s</td></tr>",
- part_id, attachment_ptr, attachment_ptr,
+ part_id, attachment_ptr,
+ e_mail_part_should_show_inline (part) || e_mail_part_attachment_get_expandable (empa) ?
_("Toggle View Inline") : _("Open in default application"),
+ attachment_ptr,
e_mail_part_should_show_inline (part) ? "go-down" : e_mail_part_attachment_get_expandable
(empa) ? "go-next" : "go-top",
GTK_ICON_SIZE_BUTTON, icon_width, icon_height,
icon_uri, icon_width, icon_height,
- part_id, attachment_ptr, GTK_ICON_SIZE_BUTTON, icon_width, icon_height,
+ part_id, attachment_ptr, _("Options"), GTK_ICON_SIZE_BUTTON, icon_width, icon_height,
html);
g_free (icon_uri);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]