css: Use GtkCssValues instead of GValue in the css machinery

Also, in places where we're computing a new CssValue based on an
old one, make sure that if nothing changes we're returning a reference
to the old one, rather than creating a new identical instance.
This commit is contained in:
Alexander Larsson
2012-03-06 14:16:32 +01:00
parent 0ece7a5de3
commit 7603e6e473
26 changed files with 346 additions and 384 deletions

View File

@ -25,13 +25,13 @@
G_BEGIN_DECLS
const GValue * _gtk_style_properties_peek_property (GtkStyleProperties *props,
GtkCssValue * _gtk_style_properties_peek_property (GtkStyleProperties *props,
GtkCssStyleProperty *property,
GtkStateFlags state);
void _gtk_style_properties_set_property_by_property (GtkStyleProperties *props,
GtkCssStyleProperty *property,
GtkStateFlags state,
const GValue *value);
GtkCssValue *value);
G_END_DECLS