mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-06 16:50:11 +00:00
GtkCssProvider: Fix up state matching when looking up style properties.
This commit is contained in:
parent
297fa7a3dd
commit
daab45565a
@ -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 == 0 ||
|
||||
info->state == state ||
|
||||
(info->state & state) != 0 &&
|
||||
(info->state & ~(state)) == 0)
|
||||
(info->state & ~(state)) == 0))
|
||||
{
|
||||
const gchar *val_str;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user