If the eapp already is in all, move it to the parent dir.

SVN revision: 14706
This commit is contained in:
sebastid 2005-05-11 09:07:37 +00:00 committed by sebastid
parent e02eb5e9ab
commit 7f4c0323ab
1 changed files with 4 additions and 0 deletions

View File

@ -297,6 +297,8 @@ e_app_prepend_relative(E_App *add, E_App *before)
{
/* Move to all */
snprintf(buf, sizeof(buf), "%s/%s", _e_apps_path_all, ecore_file_get_file(add->path));
if (ecore_file_exists(buf))
snprintf(buf, sizeof(buf), "%s/%s", before->parent->path, ecore_file_get_file(add->path));
ecore_file_mv(add->path, buf);
free(add->path);
add->path = strdup(buf);
@ -320,6 +322,8 @@ e_app_append(E_App *add, E_App *parent)
{
/* Move to all */
snprintf(buf, sizeof(buf), "%s/%s", _e_apps_path_all, ecore_file_get_file(add->path));
if (ecore_file_exists(buf))
snprintf(buf, sizeof(buf), "%s/%s", parent->path, ecore_file_get_file(add->path));
ecore_file_mv(add->path, buf);
free(add->path);
add->path = strdup(buf);