Enlightenment CVS committal Author : onefang Project : e17 Module : apps/e
Dir : e17/apps/e/src/bin Modified Files: e_apps.c Log Message: *Turn on icon idle pre searching. *#if out most of the debugging printf's. =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_apps.c,v retrieving revision 1.223 retrieving revision 1.224 diff -u -3 -r1.223 -r1.224 --- e_apps.c 9 Oct 2006 15:11:41 -0000 1.223 +++ e_apps.c 13 Oct 2006 23:35:23 -0000 1.224 @@ -13,7 +13,7 @@ */ #define DEBUG 0 -#define IDLE_ICONS 0 +#define IDLE_ICONS 1 /* These two can be used to turn on or off the new and old border matching code. * There is a printf at the end of e_app_border_find that gives the times and results. @@ -403,10 +403,14 @@ if (st.st_mtime > a->mtime) { e_app_fields_empty(a); +#if DEBUG printf("M"); +#endif } +#if DEBUG else printf("H"); +#endif } e_object_ref(E_OBJECT(a)); } @@ -416,7 +420,9 @@ /* Create it. */ a = e_app_empty_new(path); new_app = 1; -printf("+"); +#if DEBUG + printf("+"); +#endif } if ((a) && (a->path)) @@ -537,7 +543,9 @@ a->path = evas_stringshare_add(buf); } a->icon_type = E_APP_ICON_UNKNOWN; -// printf("NEW APP %p %s\n", a, a->path); +#if DEBUG + printf("NEW APP %p %s\n", a, a->path); +#endif return a; } @@ -1104,7 +1112,7 @@ int is_glob = 0; #if DEBUG -printf("%c", t); + printf("%c", t); #endif if (glob) { @@ -1230,7 +1238,9 @@ count = data; winner = fdata; -printf("%d %d %s\n", winner->ok, (*count), key); +#if DEBUG + printf("%d %d %s\n", winner->ok, (*count), key); +#endif if ((*count) > winner->ok) { winner->path = key; @@ -1320,7 +1330,9 @@ winner.ok = 0; if (ok) /* Fill all E_Apps and try again on the second pass. */ { -printf("SECOND PASS\n"); +#if DEBUG + printf("SECOND PASS\n"); +#endif for (l = _e_apps_all->subapps; l; l = l->next) { a = l->data; @@ -1745,7 +1757,9 @@ { a->desktop = desktop; -printf("."); +#if DEBUG + printf("."); +#endif if (desktop->name) a->name = evas_stringshare_add(desktop->name); if (desktop->generic) a->generic = evas_stringshare_add(desktop->generic); if (desktop->comment) a->comment = evas_stringshare_add(desktop->comment); @@ -1948,7 +1962,9 @@ EAPI void e_app_fields_empty(E_App *a) { -printf("-"); +#if DEBUG + printf("-"); +#endif if (a->name) evas_stringshare_del(a->name); if (a->generic) evas_stringshare_del(a->generic); if (a->comment) evas_stringshare_del(a->comment); @@ -2379,12 +2395,14 @@ { Evas_List *l; -// if (ch == E_APP_DEL) -// printf("APP_DEL %s\n", a->path); -// if (ch == E_APP_CHANGE) -// printf("APP_CHANGE %p %s\n", a, a->path); -// if (ch == E_APP_ADD) -// printf("APP_ADD %s\n", a->path); +#if DEBUG + if (ch == E_APP_DEL) + printf("APP_DEL %s\n", a->path); + if (ch == E_APP_CHANGE) + printf("APP_CHANGE %p %s\n", a, a->path); + if (ch == E_APP_ADD) + printf("APP_ADD %s\n", a->path); +#endif _e_apps_callbacks_walking = 1; for (l = _e_apps_change_callbacks; l; l = l->next) { ------------------------------------------------------------------------- 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 enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs