[gtk+/parser] xxx: Fix order of style property lookups



commit 4fe01567ad7ab2087534b58b815dc03afbb5e023
Author: Benjamin Otte <otte redhat com>
Date:   Mon May 16 23:36:19 2011 +0200

    xxx: Fix order of style property lookups
    
    The order was broken since 9164457ff0ad7743ce129b83b509d527e752a205

 gtk/gtkcssprovider.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcssprovider.c b/gtk/gtkcssprovider.c
index 747ca50..eba21d1 100644
--- a/gtk/gtkcssprovider.c
+++ b/gtk/gtkcssprovider.c
@@ -1168,7 +1168,7 @@ gtk_css_provider_get_style_property (GtkStyleProvider *provider,
                                g_type_name (pspec->owner_type),
                                pspec->name);
 
-  for (i = 0; i < priv->selectors_info->len; i++)
+  for (i = priv->selectors_info->len - 1; i >= 0; i--)
     {
       SelectorStyleInfo *info;
       GtkStateFlags selector_state;



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