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:
ChunEon Park 2015-08-25 13:10:33 +09:00
parent fe271ff8e6
commit b27d821b82
1 changed files with 7 additions and 0 deletions

View File

@ -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)