Commit 8b267a58 authored by Carlos Garnacho's avatar Carlos Garnacho

GtkCssProvider: Do not miss the last class name in concatenated classes.

Selectors like .menu.check or .entry.progressbar were being misparsed
and attributed to .menu and .entry.
parent d3217137
......@@ -1363,6 +1363,7 @@ parse_classes (SelectorPath *path,
if ((pos = strchr (str, '.')) != NULL)
{
/* Leave the last class to the call after the loop */
while (pos)
{
*pos = '\0';
......@@ -1372,8 +1373,8 @@ parse_classes (SelectorPath *path,
pos = strchr (str, '.');
}
}
else
selector_path_prepend_class (path, str);
selector_path_prepend_class (path, str);
}
static GTokenType
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment