GtkCssProvider: Fix up state matching when looking up style properties.

This commit is contained in:
Carlos Garnacho 2010-11-30 03:59:39 +01:00
parent 297fa7a3dd
commit daab45565a

View File

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