summaryrefslogtreecommitdiff
path: root/gtk/gtkstyleproperty.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2012-01-01 18:28:27 +0100
committerBenjamin Otte <otte@redhat.com>2012-01-09 18:37:53 +0100
commitb904679a111224039a92e6f50acd97f6218a2d3a (patch)
tree13a8766be3e403bec0a22e762461ea109af2ab6c /gtk/gtkstyleproperty.c
parent078fc725e0a83250ea7e1bf37dfc4f5f95b990c8 (diff)
downloadgtk+-b904679a111224039a92e6f50acd97f6218a2d3a.tar.gz
styleproperty: Move value printing to real properties
We can't print shorthands, so don't try. In particular, I want to get away from shorthands being representable using GValue, and this function kinda requires that.
Diffstat (limited to 'gtk/gtkstyleproperty.c')
-rw-r--r--gtk/gtkstyleproperty.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/gtk/gtkstyleproperty.c b/gtk/gtkstyleproperty.c
index 204e1e8d0d..25556a7fbc 100644
--- a/gtk/gtkstyleproperty.c
+++ b/gtk/gtkstyleproperty.c
@@ -201,22 +201,6 @@ string_append_string (GString *str,
/*** IMPLEMENTATIONS ***/
-static void
-enum_print (int value,
- GType type,
- GString *string)
-{
- GEnumClass *enum_class;
- GEnumValue *enum_value;
-
- enum_class = g_type_class_ref (type);
- enum_value = g_enum_get_value (enum_class, value);
-
- g_string_append (string, enum_value->value_nick);
-
- g_type_class_unref (enum_class);
-}
-
static gboolean
font_family_parse (GtkCssParser *parser,
GFile *base,
@@ -453,19 +437,6 @@ _gtk_style_property_parse_value (GtkStyleProperty *property,
return _gtk_css_style_parse_value (value, parser, base);
}
-void
-_gtk_style_property_print_value (GtkStyleProperty *property,
- const GValue *value,
- GString *string)
-{
- if (G_VALUE_HOLDS (value, GTK_TYPE_CSS_SPECIAL_VALUE))
- enum_print (g_value_get_enum (value), GTK_TYPE_CSS_SPECIAL_VALUE, string);
- else if (property && property->print_func)
- (* property->print_func) (value, string);
- else
- _gtk_css_style_print_value (value, string);
-}
-
static void
_gtk_style_property_default_value (GtkStyleProperty *property,
GtkStyleProperties *properties,