aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-web-view-gtkhtml.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2014-04-30 22:05:31 +0800
committerMilan Crha <mcrha@redhat.com>2014-04-30 22:05:31 +0800
commite0e498c644a485aee0029805532622f0a711ecfc (patch)
tree7d6f236770db467798e94549192b852c712eec65 /e-util/e-web-view-gtkhtml.c
parent2ee38c849d96546a1795babf041bd45af37fd3ea (diff)
downloadgsoc2013-evolution-e0e498c644a485aee0029805532622f0a711ecfc.tar
gsoc2013-evolution-e0e498c644a485aee0029805532622f0a711ecfc.tar.gz
gsoc2013-evolution-e0e498c644a485aee0029805532622f0a711ecfc.tar.bz2
gsoc2013-evolution-e0e498c644a485aee0029805532622f0a711ecfc.tar.lz
gsoc2013-evolution-e0e498c644a485aee0029805532622f0a711ecfc.tar.xz
gsoc2013-evolution-e0e498c644a485aee0029805532622f0a711ecfc.tar.zst
gsoc2013-evolution-e0e498c644a485aee0029805532622f0a711ecfc.zip
Bug #729084 - Use tel: URI instead of callto: for phone numbers
This change does a bit more, actually: - learn the code of "tel" URI, being handler similar to "sip", "callto", "h323" - generate tel: URIs for phone numbers, but only if the leading character of the phone number is a plus ("+") sign - always remove spaces in href part in the e_text_to_html() when E_TEXT_TO_HTML_URL_IS_WHOLE_TEXT flag is set
Diffstat (limited to 'e-util/e-web-view-gtkhtml.c')
-rw-r--r--e-util/e-web-view-gtkhtml.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/e-util/e-web-view-gtkhtml.c b/e-util/e-web-view-gtkhtml.c
index 5b6db0d504..799240d45d 100644
--- a/e-util/e-web-view-gtkhtml.c
+++ b/e-util/e-web-view-gtkhtml.c
@@ -967,11 +967,10 @@ web_view_gtkhtml_hovering_over_link (EWebViewGtkHTML *web_view,
if (g_str_has_prefix (uri, "mailto:"))
format = _("Click to mail %s");
- else if (g_str_has_prefix (uri, "callto:"))
- format = _("Click to call %s");
- else if (g_str_has_prefix (uri, "h323:"))
- format = _("Click to call %s");
- else if (g_str_has_prefix (uri, "sip:"))
+ else if (g_str_has_prefix (uri, "callto:") ||
+ g_str_has_prefix (uri, "h323:") ||
+ g_str_has_prefix (uri, "sip:") ||
+ g_str_has_prefix (uri, "tel:"))
format = _("Click to call %s");
else if (g_str_has_prefix (uri, "##"))
message = g_strdup (_("Click to hide/unhide addresses"));