[gtk+/gtk-style-context: 75/347] GtkCssProvider: move to next selector element on match or child combinator.



commit 2469fb2ce85aac7c3707847b3539e94b72b7182b
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Apr 23 01:23:27 2010 +0200

    GtkCssProvider: move to next selector element on match or child combinator.

 gtk/gtkcssprovider.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcssprovider.c b/gtk/gtkcssprovider.c
index ed78aec..9fd00e9 100644
--- a/gtk/gtkcssprovider.c
+++ b/gtk/gtkcssprovider.c
@@ -410,7 +410,6 @@ compare_selector (GtkWidgetPath *path,
       guint8 elem_score;
 
       elem = elements->data;
-      elements = elements->next;
 
       match = compare_selector_element (path, i, elem, &elem_score);
       i++;
@@ -422,6 +421,8 @@ compare_selector (GtkWidgetPath *path,
            */
           match = TRUE;
         }
+      else
+        elements = elements->next;
 
       if (match)
         {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]