]> Pileus Git - ~andy/gtk/commitdiff
GtkCssProvider: Fix up state matching when looking up style properties.
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 30 Nov 2010 02:59:39 +0000 (03:59 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Sat, 4 Dec 2010 14:39:51 +0000 (15:39 +0100)
gtk/gtkcssprovider.c

index bd9633295d6052e4a44134dbb84b88399b048f73..f9636699caa3804f042ecce95ff1d8ffd69d28f0 100644 (file)
@@ -1364,8 +1364,10 @@ gtk_css_provider_get_style_property (GtkStyleProvider *provider,
       val = g_hash_table_lookup (info->style, prop_name);
 
       if (val &&
-          (info->state & state) != 0 &&
-          (info->state & ~(state)) == 0)
+          (info->state == 0 ||
+           info->state == state ||
+           (info->state & state) != 0 &&
+           (info->state & ~(state)) == 0))
         {
           const gchar *val_str;