aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/termiolink.c
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2013-06-15 22:39:35 +0200
committerBoris Faure <billiob@gmail.com>2013-06-15 22:47:09 +0200
commitf1c3bf52ca25d4b6f70b4bb45cbbb64363194256 (patch)
treeda3ce54cedac2a364a65ee7ed23834b47b6581b7 /src/bin/termiolink.c
parentlinks: isspace() \ { \n, \r } as separtors (diff)
downloadterminology-f1c3bf52ca25d4b6f70b4bb45cbbb64363194256.tar.gz
use dbus to tell e.TeamWork whenever a link is detected
This was requested by the crazy e18 release manager.
Diffstat (limited to 'src/bin/termiolink.c')
-rw-r--r--src/bin/termiolink.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/bin/termiolink.c b/src/bin/termiolink.c
index 8731da2..f7255e5 100644
--- a/src/bin/termiolink.c
+++ b/src/bin/termiolink.c
@@ -2,6 +2,7 @@
#include <Elementary.h>
#include "termio.h"
#include "utils.h"
+#include "dbus.h"
static Eina_Bool
coord_back(int *x, int *y, int w, int h __UNUSED__)
@@ -204,9 +205,10 @@ _termio_link_find(Evas_Object *obj, int cx, int cy,
if ((len > 1) && (!endmatch))
{
Eina_Bool is_file = _is_file(s);
+ Eina_Bool is_url = link_is_url(s);
if (is_file ||
link_is_email(s) ||
- link_is_url(s))
+ is_url)
{
if (x1r) *x1r = x1;
if (y1r) *y1r = y1;
@@ -219,6 +221,10 @@ _termio_link_find(Evas_Object *obj, int cx, int cy,
free(s);
return ret;
}
+ else if (is_url)
+ {
+ ty_dbus_link_detect(s);
+ }
return s;
}