Elm theme: correct parse a theme filename on Windows OS.
authorMykyta Biliavskyi <m.biliavskyi@samsung.com>
Thu, 20 Oct 2016 15:14:32 +0000 (18:14 +0300)
committerMykyta Biliavskyi <m.biliavskyi@samsung.com>
Thu, 20 Oct 2016 15:21:02 +0000 (18:21 +0300)
Windows os uses ':'  as delimiter between disk name and file path.
<disk>:/<dir>/file.ext. In this commit added parse case for <disk_name>
symbol meets before ":/".

src/lib/elementary/elm_theme.c

index f805ea7..de5aea3 100644 (file)
@@ -399,8 +399,9 @@ _elm_theme_parse(Elm_Theme *th, const char *theme)
                   eina_strbuf_append_char(buf, ':');
                   pe += 2;
                }
-             else if ((pe[0] == ':') && (pe[1] == '\\'))
+             else if ((isalpha(pe[0]) && (pe[1] == ':') && pe[2] == '/'))
                {
+                  // Correct processing file path on  Windows OS "<disk>:/"
                   eina_strbuf_append_char(buf, *pe);
                   pe++;
                   eina_strbuf_append_char(buf, *pe);