theme: fix theme file path parsing issue on windows.
authorChunEon Park <hermet@hermet.pe.kr>
Tue, 25 Aug 2015 04:10:33 +0000 (13:10 +0900)
committerChunEon Park <hermet@hermet.pe.kr>
Tue, 25 Aug 2015 04:10:33 +0000 (13:10 +0900)
':' 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

src/lib/elm_theme.c

index 3e9f90e..296bfb9 100644 (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)