forked from enlightenment/efl
Don't store the complete path in the name element.
SVN revision: 30152
This commit is contained in:
parent
5e3a40da08
commit
ab766b0398
|
@ -838,7 +838,16 @@ efreet_icon_new(const char *path)
|
|||
efreet_icon_populate(icon, ico_path);
|
||||
}
|
||||
|
||||
if (!icon->name) icon->name = strdup(path);
|
||||
if (!icon->name)
|
||||
{
|
||||
char *file;
|
||||
|
||||
file = ecore_file_get_file(icon->path);
|
||||
p = strrchr(icon->path, '.');
|
||||
if (p) *p = '\0';
|
||||
icon->name = strdup(file);
|
||||
if (p) *p = '.';
|
||||
}
|
||||
|
||||
return icon;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue