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:
		| @ -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 | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Alexander Larsson
					Alexander Larsson