SVN revision: 17986
This commit is contained in:
sebastid 2005-10-26 20:10:44 +00:00 committed by sebastid
parent 48f2c282ff
commit 0ee490dd03
1 changed files with 47 additions and 45 deletions

View File

@ -1007,8 +1007,7 @@ e_app_fields_save(E_App *a)
unsigned char tmp[1];
int img;
if(!a->path)
return;
if (!a->path) return;
if (!ecore_file_exists(a->path))
{
@ -1030,21 +1029,24 @@ e_app_fields_save(E_App *a)
if (a->name)
{
/*if (lang) snprintf(buf, sizeof(buf), "app/info/name[%s]", lang);
else */snprintf(buf, sizeof(buf), "app/info/name");
else */
snprintf(buf, sizeof(buf), "app/info/name");
eet_write(ef, buf, a->name, strlen(a->name), 0);
}
if (a->generic)
{
/*if (lang) snprintf(buf, sizeof(buf), "app/info/generic[%s]", lang);
else */snprintf(buf, sizeof(buf), "app/info/generic");
else */
snprintf(buf, sizeof(buf), "app/info/generic");
eet_write(ef, buf, a->generic, strlen(a->generic), 0);
}
if (a->comment)
{
/*if (lang) snprintf(buf, sizeof(buf), "app/info/comment[%s]", lang);
else*/ snprintf(buf, sizeof(buf), "app/info/comment");
else*/
snprintf(buf, sizeof(buf), "app/info/comment");
eet_write(ef, buf, a->comment, strlen(a->comment), 0);
}
@ -1073,7 +1075,7 @@ e_app_fields_save(E_App *a)
tmp[0] = 0;
eet_write(ef, "app/info/wait_exit", tmp, 1, 0);
if(a->image && img)
if ((a->image) && (img))
{
int alpha;
Ecore_Evas *buf;
@ -1102,7 +1104,6 @@ e_app_fields_save(E_App *a)
}
}
eet_close(ef);
}
@ -1219,12 +1220,12 @@ _e_app_new_save(E_App *a)
char *start, *end, *imgdir;
int i;
if(!a->path)
return 0;
if (!a->path) return 0;
strcpy(tmpn, "/tmp/eapp_edit_cc.edc-tmp-XXXXXX");
fd = mkstemp(tmpn);
if (fd < 0) {
if (fd < 0)
{
fprintf(stderr, "Unable to create tmp file: %s\n", strerror(errno));
return 0;
}
@ -1275,7 +1276,8 @@ _e_app_new_save(E_App *a)
snprintf(cmd, sizeof(cmd), "edje_cc -v %s %s %s", ipart, tmpn, a->path);
ret = system(cmd);
if (ret < 0) {
if (ret < 0)
{
fprintf(stderr, "Unable to execute edje_cc on tmp file: %s\n",
strerror(errno));
return 0;