theme: fix theme file path parsing issue on windows.
':' is usually regarded as the delimetr for new theme path but it uses to look up the drive, ie, c: on windows, on the other hand. this patch fixes to determine wheter ':' is used for drive name or delimeter. @fix
This commit is contained in:
parent
fe271ff8e6
commit
b27d821b82
|
@ -387,6 +387,13 @@ _elm_theme_parse(Elm_Theme *th, const char *theme)
|
|||
eina_strbuf_append_char(buf, ':');
|
||||
pe += 2;
|
||||
}
|
||||
else if ((pe[0] == ':') && (pe[1] == '/'))
|
||||
{
|
||||
eina_strbuf_append_char(buf, *pe);
|
||||
pe++;
|
||||
eina_strbuf_append_char(buf, *pe);
|
||||
pe++;
|
||||
}
|
||||
else if ((*pe == ':') || (!*pe))
|
||||
{ // p -> pe == 'name:'
|
||||
if (pe > p)
|
||||
|
|
Loading…
Reference in New Issue