From b27d821b826e6d0fe4632691bfa96f81c66ea01f Mon Sep 17 00:00:00 2001 From: ChunEon Park Date: Tue, 25 Aug 2015 13:10:33 +0900 Subject: [PATCH] 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 --- legacy/elementary/src/lib/elm_theme.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/legacy/elementary/src/lib/elm_theme.c b/legacy/elementary/src/lib/elm_theme.c index 3e9f90ed67..296bfb99dc 100644 --- a/legacy/elementary/src/lib/elm_theme.c +++ b/legacy/elementary/src/lib/elm_theme.c @@ -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)