Enlightenment CVS committal Author : devilhorns Project : e17 Module : apps/e
Dir : e17/apps/e/src/modules/conf Modified Files: e_conf.c Log Message: Allow modules to use their own icons as config items/cats. =================================================================== RCS file: /cvs/e/e17/apps/e/src/modules/conf/e_conf.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- e_conf.c 18 Aug 2007 11:48:10 -0000 1.3 +++ e_conf.c 31 Oct 2007 13:30:19 -0000 1.4 @@ -279,8 +279,13 @@ cat->label = evas_stringshare_add(label); if (icon) { - o = edje_object_add(eco->evas); - e_util_edje_icon_set(o, icon); + if (e_util_edje_icon_check(icon)) + { + o = edje_object_add(eco->evas); + e_util_edje_icon_set(o, icon); + } + else + o = e_util_icon_add(icon, eco->evas); } eco->cats = evas_list_append(eco->cats, cat); @@ -314,8 +319,13 @@ if (!ci) continue; if (ci->icon) { - o = edje_object_add(eco->evas); - e_util_edje_icon_set(o, ci->icon); + if (e_util_edje_icon_check(ci->icon)) + { + o = edje_object_add(eco->evas); + e_util_edje_icon_set(o, ci->icon); + } + else + o = e_util_icon_add(ci->icon, eco->evas); } e_widget_ilist_append(eco->item_list, o, ci->label, _e_configure_item_cb, ci, NULL); } ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs