Enlightenment CVS committal Author : onefang Project : e17 Module : apps/e
Dir : e17/apps/e/src/bin Modified Files: e_apps.c e_apps.h Log Message: Er, and trim the excess. =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_apps.c,v retrieving revision 1.157 retrieving revision 1.158 diff -u -3 -r1.157 -r1.158 --- e_apps.c 31 Aug 2006 02:21:00 -0000 1.157 +++ e_apps.c 31 Aug 2006 02:27:05 -0000 1.158 @@ -812,24 +812,6 @@ e_object_unref(E_OBJECT(a)); } -EAPI void -e_app_remove_from_order(E_App *a) -{ - Evas_List *l; - char buf[PATH_MAX]; - - if (!a) return; - if (!a->parent) return; - - a->parent->subapps = evas_list_remove(a->parent->subapps, a); - _e_app_save_order(a->parent); - snprintf(buf, sizeof(buf), "%s/.eap.cache.cfg", a->parent->path); - ecore_file_unlink(buf); - _e_app_change(a, E_APP_DEL); - a->parent = NULL; - e_object_unref(E_OBJECT(a)); -} - EAPI void e_app_remove_file_from_order(const char *order, const char *file) @@ -839,14 +821,10 @@ int ret = 0; FILE *f; -printf("E_APP_REMOVE_FILE_FROM_ORDER(%s, %s)\n", order, file); snprintf(buf, sizeof(buf), "%s/.order", order); -printf("E_APP_REMOVE_FILE_FROM_ORDER(%s, %s) - %s\n", order, file, buf); if (!ecore_file_exists(buf)) return; -printf("E_APP_REMOVE_FILE_FROM_ORDER(%s, %s) - EXISTS\n", order, file); f = fopen(buf, "rb"); if (!f) return; -printf("E_APP_REMOVE_FILE_FROM_ORDER(%s, %s) - OPENED FOR READING\n", order, file); while (fgets(buf, sizeof(buf), f)) { @@ -860,20 +838,16 @@ buf[len - 1] = 0; len--; } -printf("E_APP_REMOVE_FILE_FROM_ORDER(%s, %s) - %s == %s\n", order, file, buf, file); if (strcmp(buf, file) != 0) list = evas_list_append(list, strdup(buf)); } } fclose(f); -printf("E_APP_REMOVE_FILE_FROM_ORDER(%s, %s) - READ\n", order, file); snprintf(buf, sizeof(buf), "%s/.order", order); ecore_file_unlink(buf); -printf("E_APP_REMOVE_FILE_FROM_ORDER(%s, %s) - DELETED\n", order, file); f = fopen(buf, "wb"); if (!f) return; -printf("E_APP_REMOVE_FILE_FROM_ORDER(%s, %s) - OPENED FOR WRITING\n", order, file); for (l = list; l; l = l->next) { char *text; @@ -885,10 +859,8 @@ fclose(f); evas_list_free(list); -printf("E_APP_REMOVE_FILE_FROM_ORDER(%s, %s) - WRITTEN\n", order, file); snprintf(buf, sizeof(buf), "%s/.eap.cache.cfg", order); ecore_file_unlink(buf); -printf("E_APP_REMOVE_FILE_FROM_ORDER(%s, %s) - CACHE NUKED\n", order, file); return; } =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_apps.h,v retrieving revision 1.36 retrieving revision 1.37 diff -u -3 -r1.36 -r1.37 --- e_apps.h 31 Aug 2006 02:21:00 -0000 1.36 +++ e_apps.h 31 Aug 2006 02:27:05 -0000 1.37 @@ -112,7 +112,6 @@ EAPI void e_app_files_prepend_relative (Evas_List *files, E_App *before); EAPI void e_app_files_append (Evas_List *files, E_App *parent); EAPI void e_app_remove (E_App *a); -EAPI void e_app_remove_from_order (E_App *a); EAPI void e_app_remove_file_from_order (const char *order, const char *file); EAPI void e_app_change_callback_add (void (*func) (void *data, E_App *a, E_App_Change ch), void *data); ------------------------------------------------------------------------- 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