diff options
author | Alexander Larsson <alexl@redhat.com> | 2011-11-15 17:15:49 +0100 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2011-11-17 12:27:23 +0100 |
commit | 8b644b40b1817fc0f93b6e061c8f70ef03e5ff59 (patch) | |
tree | 8f2e028e7e7dfc5caaf15f8718f2d73f4b705107 /gtk/gtkstyleproperties.c | |
parent | 2cf3ff956ae8e12eaeed390a778e3abfe2d4d8c6 (diff) | |
download | gtk+-8b644b40b1817fc0f93b6e061c8f70ef03e5ff59.tar.gz |
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.
Diffstat (limited to 'gtk/gtkstyleproperties.c')
-rw-r--r-- | gtk/gtkstyleproperties.c | 5 |
1 files changed, 1 insertions, 4 deletions
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 |