From 8b644b40b1817fc0f93b6e061c8f70ef03e5ff59 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Tue, 15 Nov 2011 17:15:49 +0100 Subject: make _gtk_style_property_resolve copy the result to an output value This is preparation for allowing it to return a newly created value, rather than just copying one. --- gtk/gtkstyleproperties.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'gtk/gtkstyleproperties.c') diff --git a/gtk/gtkstyleproperties.c b/gtk/gtkstyleproperties.c index b25f92b173..318280277a 100644 --- a/gtk/gtkstyleproperties.c +++ b/gtk/gtkstyleproperties.c @@ -672,10 +672,7 @@ _gtk_style_properties_get_property (GtkStyleProperties *props, g_value_init (value, node->pspec->value_type); if (val) - { - _gtk_style_property_resolve (node, props, state, context, val); - g_value_copy (val, value); - } + _gtk_style_property_resolve (node, props, state, context, val, value); else if (_gtk_style_property_is_shorthand (node)) _gtk_style_property_pack (node, props, state, context, value); else -- cgit v1.2.1