termio: dont show full/relative for emails or protocols

if there is a link like bu5hm4n@efl.so or http://enlightenment.org/ , then
there is no need to show relative or absolut coping in the ctxpopup,
just copy is enought.
This commit is contained in:
Marcel Hollerbach 2016-11-20 20:35:17 +01:00
parent c47b0c39d5
commit 786dd890cc
1 changed files with 3 additions and 1 deletions

View File

@ -999,7 +999,9 @@ _cb_link_down(void *data,
if (len > 0 && raw_link[0] == '/')
absolut = EINA_TRUE;
if (!absolut && !link_is_url(raw_link))
if (!absolut &&
!link_is_url(raw_link) &&
!link_is_email(raw_link))
{
elm_ctxpopup_item_append(ctxp, _("Copy relative path"), NULL, _cb_ctxp_link_content_copy,
sd->self);