SVN revision: 12434
This commit is contained in:
Carsten Haitzler 2004-12-10 16:24:00 +00:00
parent a55d42562f
commit f56b1b3353
1 changed files with 21 additions and 6 deletions

View File

@ -362,8 +362,13 @@ _e_app_fields_fill(E_App *a, char *path)
lang = NULL;
ef = eet_open(a->path, EET_FILE_MODE_READ);
if (!ef) return;
if (lang) snprintf(buf, sizeof(buf), "app/info/name[%s]", lang);
v = eet_read(ef, buf, &size);
if (lang)
{
snprintf(buf, sizeof(buf), "app/info/name[%s]", lang);
v = eet_read(ef, buf, &size);
}
else
v = NULL;
if (v)
{
str = malloc(size + 1);
@ -384,8 +389,13 @@ _e_app_fields_fill(E_App *a, char *path)
free(v);
}
}
if (lang) snprintf(buf, sizeof(buf), "app/info/generic[%s]", lang);
v = eet_read(ef, buf, &size);
if (lang)
{
snprintf(buf, sizeof(buf), "app/info/generic[%s]", lang);
v = eet_read(ef, buf, &size);
}
else
v = NULL;
if (v)
{
str = malloc(size + 1);
@ -406,8 +416,13 @@ _e_app_fields_fill(E_App *a, char *path)
free(v);
}
}
if (lang) snprintf(buf, sizeof(buf), "app/info/comment[%s]", lang);
v = eet_read(ef, buf, &size);
if (lang)
{
snprintf(buf, sizeof(buf), "app/info/comment[%s]", lang);
v = eet_read(ef, buf, &size);
}
else
v = NULL;
if (v)
{
str = malloc(size + 1);