diff options
author | Benjamin Otte <otte@redhat.com> | 2012-03-26 06:46:29 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2012-04-17 08:59:11 +0200 |
commit | 58e4fdf911377c303858d0eebbd2594505dd3a21 (patch) | |
tree | 168be147511201c3f0a92b48b959f54c2d9d6416 /gtk/gtkcssstyleproperty.c | |
parent | b728cfd3e8af1b07fb5f15a22ed9b144b190d37e (diff) | |
download | gtk+-58e4fdf911377c303858d0eebbd2594505dd3a21.tar.gz |
styleproperty: Make print_func take a GtkCssValue
Also, constify GtkCssValue getters, so we can pass a const GtkCssValue
to the print_func.
Diffstat (limited to 'gtk/gtkcssstyleproperty.c')
-rw-r--r-- | gtk/gtkcssstyleproperty.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/gtk/gtkcssstyleproperty.c b/gtk/gtkcssstyleproperty.c index 95b8ba1669..e783aa02c2 100644 --- a/gtk/gtkcssstyleproperty.c +++ b/gtk/gtkcssstyleproperty.c @@ -284,10 +284,10 @@ gtk_css_style_property_real_parse_value (GtkCssStyleProperty *property, static void gtk_css_style_property_real_print_value (GtkCssStyleProperty *property, - const GValue *value, + const GtkCssValue *value, GString *string) { - _gtk_css_style_print_value (value, string); + _gtk_css_value_print (value, string); } static GtkCssValue * @@ -540,10 +540,7 @@ _gtk_css_style_property_print_value (GtkCssStyleProperty *property, } else { - GValue value = G_VALUE_INIT; - _gtk_css_value_init_gvalue (css_value, &value); - property->print_value (property, &value, string); - g_value_unset (&value); + property->print_value (property, css_value, string); } } |