Enlightenment CVS committal
Author : handyande
Project : misc
Module : engage
Dir : misc/engage/src
Modified Files:
icon.c
Log Message:
use ecore theme lookups now - hey, I can store my own themes in
~/.e/apps/engage/themes :)
===================================================================
RCS file: /cvsroot/enlightenment/misc/engage/src/icon.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -3 -r1.27 -r1.28
--- icon.c 6 May 2004 12:47:20 -0000 1.27
+++ icon.c 13 May 2004 23:19:55 -0000 1.28
@@ -189,7 +189,7 @@
{
const char *icon_part = NULL;
OD_Icon *ret = NULL;
- char path[PATH_MAX];
+ char *path;
Evas_Object *icon = NULL;
Evas_Object *pic = NULL;
@@ -205,11 +205,7 @@
ret->name = strdup(name);
icon = ret->icon = edje_object_add(evas);
- if ((strstr(options.theme, "/")))
- snprintf(path, PATH_MAX, options.theme);
- else
- snprintf(path, PATH_MAX, PACKAGE_DATA_DIR "/themes/%s.eet", options.theme);
-
+ path = ecore_config_theme_with_path_from_name_get(options.theme);
if (edje_object_file_set(icon, path, "Main") > 0) {
#if 0
fprintf(stderr, "Trying to find part for %s\n", winclass);
@@ -293,6 +289,7 @@
evas_object_del(icon);
ret->icon = NULL;
}
+ free(path);
return ret;
}
-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs