mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-12 03:40:10 +00:00
styleproperties: use property, not pspec as key
This allows calling functions on the style property from more places.
This commit is contained in:
parent
bda86b5dd3
commit
914654901c
@ -541,12 +541,12 @@ _gtk_style_properties_set_property_by_property (GtkStyleProperties *props,
|
||||
}
|
||||
|
||||
priv = props->priv;
|
||||
prop = g_hash_table_lookup (priv->properties, style_prop->pspec);
|
||||
prop = g_hash_table_lookup (priv->properties, style_prop);
|
||||
|
||||
if (!prop)
|
||||
{
|
||||
prop = property_data_new ();
|
||||
g_hash_table_insert (priv->properties, style_prop->pspec, prop);
|
||||
g_hash_table_insert (priv->properties, (gpointer) style_prop, prop);
|
||||
}
|
||||
|
||||
val = property_data_get_value (prop, state);
|
||||
@ -842,7 +842,7 @@ _gtk_style_properties_peek_property (GtkStyleProperties *props,
|
||||
}
|
||||
|
||||
priv = props->priv;
|
||||
prop = g_hash_table_lookup (priv->properties, node->pspec);
|
||||
prop = g_hash_table_lookup (priv->properties, node);
|
||||
|
||||
if (!prop)
|
||||
return NULL;
|
||||
@ -1022,7 +1022,7 @@ gtk_style_properties_unset_property (GtkStyleProperties *props,
|
||||
}
|
||||
|
||||
priv = props->priv;
|
||||
prop = g_hash_table_lookup (priv->properties, node->pspec);
|
||||
prop = g_hash_table_lookup (priv->properties, node);
|
||||
|
||||
if (!prop)
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user