[gtk+/gtk-style-context: 331/533] GtkCssProvider: Do not miss the last class name in concatenated classes.
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-style-context: 331/533] GtkCssProvider: Do not miss the last class name in concatenated classes.
- Date: Wed, 1 Dec 2010 02:33:38 +0000 (UTC)
commit 80321d01925b8dd7dee1bd11c1c404c515327dbc
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Nov 8 02:51:53 2010 +0100
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.
gtk/gtkcssprovider.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkcssprovider.c b/gtk/gtkcssprovider.c
index eaf850b..d97435b 100644
--- a/gtk/gtkcssprovider.c
+++ b/gtk/gtkcssprovider.c
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]