diff options
author | Benjamin Otte <otte@redhat.com> | 2012-01-13 23:48:42 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2012-02-02 03:14:00 +0100 |
commit | 893807bee0e9a5777a8c93c76e9529fecf6fa85f (patch) | |
tree | b0c9eaff95d684c37faa44db2a9efc8f30f5d5dd /gtk/gtkcssstylefuncs.c | |
parent | bd8fefb20e42d0ac47f1d561db715e4f1f398e29 (diff) | |
download | gtk+-893807bee0e9a5777a8c93c76e9529fecf6fa85f.tar.gz |
css: Add GtkCssNumber
Diffstat (limited to 'gtk/gtkcssstylefuncs.c')
-rw-r--r-- | gtk/gtkcssstylefuncs.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gtk/gtkcssstylefuncs.c b/gtk/gtkcssstylefuncs.c index 0045f93996..02873ec708 100644 --- a/gtk/gtkcssstylefuncs.c +++ b/gtk/gtkcssstylefuncs.c @@ -1058,6 +1058,13 @@ border_image_repeat_value_print (const GValue *value, } } +static void +css_number_print (const GValue *value, + GString *string) +{ + _gtk_css_number_print (g_value_get_boxed (value), string); +} + static gboolean enum_value_parse (GtkCssParser *parser, GFile *base, @@ -1233,6 +1240,10 @@ gtk_css_style_funcs_init (void) shadow_value_parse, shadow_value_print, shadow_value_compute); + register_conversion_function (GTK_TYPE_CSS_NUMBER, + NULL, + css_number_print, + NULL); register_conversion_function (G_TYPE_ENUM, enum_value_parse, enum_value_print, |