stylecontext: Convert _gtk_style_context_peek_property()

Take the property id instead of the name.
This commit is contained in:
Benjamin Otte
2012-03-31 05:42:28 +02:00
parent 5d8789680e
commit 31565139ba
12 changed files with 38 additions and 44 deletions

View File

@ -157,8 +157,7 @@ _gtk_css_computed_values_compute_value (GtkCssComputedValues *values,
{
GtkCssValue *parent_value;
/* Set NULL here and do the inheritance upon lookup? */
parent_value = _gtk_style_context_peek_property (parent,
_gtk_style_property_get_name (GTK_STYLE_PROPERTY (prop)));
parent_value = _gtk_style_context_peek_property (parent, id);
g_ptr_array_index (values->values, id) = _gtk_css_value_ref (parent_value);
}