projects
/
platform
/
upstream
/
enlightenment.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b835438
)
ooh and ALSO handle files if .edj - if full path set.
author
Carsten Haitzler
<raster@rasterman.com>
Tue, 11 Jan 2011 10:09:48 +0000
(10:09 +0000)
committer
Carsten Haitzler
<raster@rasterman.com>
Tue, 11 Jan 2011 10:09:48 +0000
(10:09 +0000)
SVN revision: 56050
src/bin/e_icon.c
patch
|
blob
|
history
diff --git
a/src/bin/e_icon.c
b/src/bin/e_icon.c
index
9efd475
..
6e14488
100644
(file)
--- a/
src/bin/e_icon.c
+++ b/
src/bin/e_icon.c
@@
-60,10
+60,15
@@
EAPI Eina_Bool
e_icon_file_set(Evas_Object *obj, const char *file)
{
E_Smart_Data *sd;
+ int len;
if (!(sd = evas_object_smart_data_get(obj)))
return EINA_FALSE;
+ len = strlen(file);
+ if ((len > 4) && (!strcasecmp(file + len - 4, ".edj")))
+ return e_icon_file_edje_set(obj, file, "icon");
+
/* smart code here */
_e_icon_obj_prepare(obj, sd);
/* FIXME: 64x64 - unhappy about this. use icon size */