diff options
author | Benjamin Otte <otte@redhat.com> | 2012-01-11 01:11:58 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2012-01-11 15:48:54 +0100 |
commit | 738f96252ea677e5327cdf09d2d0d09b312c2f02 (patch) | |
tree | a592dfc159e5622349285e1f37376154a6860555 /gtk/gtkcssshorthandproperty.c | |
parent | 53b2f05a648141b5057f5161623e739b80c02710 (diff) | |
download | gtk+-738f96252ea677e5327cdf09d2d0d09b312c2f02.tar.gz |
shorthand: Get rid of GParameter dance
Instead assign properties directly.
Diffstat (limited to 'gtk/gtkcssshorthandproperty.c')
-rw-r--r-- | gtk/gtkcssshorthandproperty.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/gtk/gtkcssshorthandproperty.c b/gtk/gtkcssshorthandproperty.c index dbe8216cc0..2002cccb2f 100644 --- a/gtk/gtkcssshorthandproperty.c +++ b/gtk/gtkcssshorthandproperty.c @@ -69,20 +69,8 @@ _gtk_css_shorthand_property_assign (GtkStyleProperty *property, const GValue *value) { GtkCssShorthandProperty *shorthand = GTK_CSS_SHORTHAND_PROPERTY (property); - GParameter *parameters; - guint i, n_parameters; - parameters = shorthand->assign (shorthand, value, &n_parameters); - - for (i = 0; i < n_parameters; i++) - { - _gtk_style_property_assign (_gtk_style_property_lookup (parameters[i].name), - props, - state, - ¶meters[i].value); - g_value_unset (¶meters[i].value); - } - g_free (parameters); + shorthand->assign (shorthand, props, state, value); } static void |