Find a few more icons.

SVN revision: 25270
This commit is contained in:
David Walter Seikel 2006-09-01 06:59:21 +00:00
parent 2a32274aec
commit 89beaf7d21
2 changed files with 24 additions and 3 deletions

View File

@ -308,15 +308,34 @@ ecore_desktop_get(const char *file, const char *lang)
}
if (exe)
{
if (done)
strcat(result->icon_class, ",");
strcat(result->icon_class, exe);
char *tmp;
tmp = strdup(ecore_file_get_file(exe));
if (tmp)
{
p = tmp;
while (*p != '\0')
{
if (*p == ' ')
{
*p = '\0';
break;
}
p++;
}
if (done)
strcat(result->icon_class, ",");
strcat(result->icon_class, tmp);
done = 1;
free(tmp);
}
}
if (categories)
{
if (done)
strcat(result->icon_class, ",");
strcat(result->icon_class, categories);
done = 1;
}
p = result->icon_class;
while (*p != '\0')

View File

@ -196,6 +196,8 @@ ecore_desktop_paths_init()
"/usr/local/share/pixmaps/");
_ecore_desktop_paths_check_and_add(ecore_desktop_paths_icons,
"/usr/share/pixmaps/");
_ecore_desktop_paths_check_and_add(ecore_desktop_paths_icons,
"/usr/share/update-desktop-files/kappfinder-icons/");
gnome = getenv("GNOME_ICON_PATH");
if (gnome)
_ecore_desktop_paths_check_and_add(ecore_desktop_paths_icons, gnome);