[gtk+] cssprovider: Actually match the state for style properties



commit 6c63842e689784447ada054c254546fbf326f5f9
Author: Benjamin Otte <otte redhat com>
Date:   Mon Apr 30 21:19:36 2012 +0200

    cssprovider: Actually match the state for style properties
    
    Copy/paste error when refactoring.
    
    Caught by stylecontext test.

 gtk/gtkcssprovider.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcssprovider.c b/gtk/gtkcssprovider.c
index 9045498..7241a1d 100644
--- a/gtk/gtkcssprovider.c
+++ b/gtk/gtkcssprovider.c
@@ -1527,7 +1527,7 @@ gtk_css_provider_get_style_property (GtkStyleProvider *provider,
   prop_name = g_strdup_printf ("-%s-%s",
                                g_type_name (pspec->owner_type),
                                pspec->name);
-  _gtk_css_matcher_init (&matcher, path, 0);
+  _gtk_css_matcher_init (&matcher, path, state);
 
   for (i = priv->rulesets->len - 1; i >= 0; i--)
     {



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