summaryrefslogtreecommitdiff
path: root/src/bin/utils.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2012-08-08 13:15:54 +0000
committerCarsten Haitzler <raster@rasterman.com>2012-08-08 13:15:54 +0000
commitd99c9a920ab2c2c56e52e398c87ff7b0a9f181bb (patch)
tree8cfbb10986a3bfd25af418c68e9f972c4a69104b /src/bin/utils.c
parente963b8c68b7326d8aef0b9ebc056f4c1614db86f (diff)
enable url fetching for backgrounds AND media popups with nice busy
and and progress bar. SVN revision: 75018
Diffstat (limited to 'src/bin/utils.c')
-rw-r--r--src/bin/utils.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/bin/utils.c b/src/bin/utils.c
index 136a664..601931a 100644
--- a/src/bin/utils.c
+++ b/src/bin/utils.c
@@ -50,3 +50,15 @@ theme_auto_reload_enable(Evas_Object *edje)
50 edje_object_signal_callback_add 50 edje_object_signal_callback_add
51 (edje, "edje,change,file", "edje", theme_reload_cb, NULL); 51 (edje, "edje,change,file", "edje", theme_reload_cb, NULL);
52} 52}
53
54Eina_Bool
55link_is_url(const char *str)
56{
57 if ((!strncasecmp(str, "http://", 7))||
58 (!strncasecmp(str, "https://", 8)) ||
59 (!strncasecmp(str, "ftp://", 6)) ||
60 (!strncasecmp(str, "www.", 4)) ||
61 (!strncasecmp(str, "ftp.", 4)))
62 return EINA_TRUE;
63 return EINA_FALSE;
64}