Enlightenment CVS committal
Author : onefang
Project : e17
Module : apps/e_utils
Dir : e17/apps/e_utils/src/bin/e17genmenu
Modified Files:
main.c
Log Message:
Some test code for the new icon theme lister.
===================================================================
RCS file: /cvs/e/e17/apps/e_utils/src/bin/e17genmenu/main.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -3 -r1.13 -r1.14
--- main.c 19 Aug 2006 01:28:48 -0000 1.13
+++ main.c 19 Aug 2006 06:26:58 -0000 1.14
@@ -112,6 +112,22 @@
return;
}
+
+#ifdef DEBUG
+static void
+_print_theme(void *value, void *user_data)
+{
+ Ecore_Hash_Node *node;
+ char *key, *theme;
+
+ node = (Ecore_Hash_Node *) value;
+ key = (char *)node->key;
+ theme = (char *)node->value;
+ printf("FDO icon theme %s is in %s\n", key, theme);
+}
+#endif
+
+
double convert_time = 0.0, icon_time = 0.0, cache_time = 0.0, generate_time =
0.0;
int menu_count, item_count, reject_count, not_over_count, not_found_count;
@@ -122,6 +138,7 @@
double start, begin, paths, gen;
#ifdef DEBUG
char *this_path;
+ Ecore_Hash *icon_themes;
#endif
/* Init E Stuff */
@@ -159,8 +176,10 @@
ecore_list_goto_first(ecore_desktop_paths_kde_legacy);
while ((this_path = ecore_list_next(ecore_desktop_paths_kde_legacy)) !=
NULL)
printf("FDO kde legacy path = %s\n", this_path);
-#endif
+ if ((icon_themes = ecore_desktop_icon_theme_list()))
+ ecore_hash_for_each_node(icon_themes, _print_theme, NULL);
+#endif
/* Just being paranoid, and cause people have removed these during testing.
*/
snprintf(path, sizeof(path), "%s/.e/e/applications/all",
ecore_desktop_home_get());
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs