Enlightenment CVS committal Author : sebastid Project : e17 Module : apps/e
Dir : e17/apps/e/src/bin Modified Files: e_apps.c Log Message: Don't register the empty eap on creation. Should be registered on save. =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_apps.c,v retrieving revision 1.143 retrieving revision 1.144 diff -u -3 -r1.143 -r1.144 --- e_apps.c 12 Jun 2006 06:38:50 -0000 1.143 +++ e_apps.c 20 Jul 2006 11:24:28 -0000 1.144 @@ -313,21 +313,13 @@ a = E_OBJECT_ALLOC(E_App, E_APP_TYPE, _e_app_free); a->image = NULL; if (path) a->path = evas_stringshare_add(path); - else - { - if ((_e_apps_all) && (_e_apps_all->path)) - { - char buf[4096]; - - snprintf(buf, sizeof(buf), "%s/_new_app_%1.1f.eap", - _e_apps_all->path, ecore_time_get()); - a->parent = _e_apps_all; - _e_apps_all->subapps = evas_list_append(_e_apps_all->subapps, a); - a->path = evas_stringshare_add(buf); - _e_apps = evas_hash_add(_e_apps, a->path, a); - _e_apps_list = evas_list_prepend(_e_apps_list, a); - _e_app_change(a, E_APP_ADD); - } + else if ((_e_apps_all) && (_e_apps_all->path)) + { + char buf[4096]; + + snprintf(buf, sizeof(buf), "%s/_new_app_%1.1f.eap", + _e_apps_all->path, ecore_time_get()); + a->path = evas_stringshare_add(buf); } return a; } ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs