summaryrefslogtreecommitdiff
path: root/gtk/gtkcssstylefuncs.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2012-01-04 16:31:04 +0100
committerBenjamin Otte <otte@redhat.com>2012-01-09 18:37:58 +0100
commit4b7ca9602da729d870b45d7ab5e5de6abe5c802a (patch)
tree54bfd9695ce5c1adf528bb54c5150135430a798c /gtk/gtkcssstylefuncs.c
parent07aa7f6b20c0f40d6526d3416dc8d04fa43055bc (diff)
downloadgtk+-4b7ca9602da729d870b45d7ab5e5de6abe5c802a.tar.gz
background: Simplify background-repeat
It used to be a struct, now it's just an enum
Diffstat (limited to 'gtk/gtkcssstylefuncs.c')
-rw-r--r--gtk/gtkcssstylefuncs.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/gtk/gtkcssstylefuncs.c b/gtk/gtkcssstylefuncs.c
index 859569914b..5f4893b991 100644
--- a/gtk/gtkcssstylefuncs.c
+++ b/gtk/gtkcssstylefuncs.c
@@ -1062,35 +1062,6 @@ shadow_value_compute (GValue *computed,
}
static gboolean
-background_repeat_value_parse (GtkCssParser *parser,
- GFile *file,
- GValue *value)
-{
- GtkCssBackgroundRepeat repeat;
- int style;
-
- if (!enum_parse (parser, GTK_TYPE_CSS_BACKGROUND_REPEAT_STYLE, &style))
- return FALSE;
-
- repeat.repeat = style;
-
- g_value_set_boxed (value, &repeat);
-
- return TRUE;
-}
-
-static void
-background_repeat_value_print (const GValue *value,
- GString *string)
-{
- GtkCssBackgroundRepeat *repeat;
-
- repeat = g_value_get_boxed (value);
-
- enum_print (repeat->repeat, GTK_TYPE_CSS_BACKGROUND_REPEAT_STYLE, string);
-}
-
-static gboolean
border_image_repeat_value_parse (GtkCssParser *parser,
GFile *file,
GValue *value)
@@ -1319,10 +1290,6 @@ gtk_css_style_funcs_init (void)
flags_value_parse,
flags_value_print,
NULL);
- register_conversion_function (GTK_TYPE_CSS_BACKGROUND_REPEAT,
- background_repeat_value_parse,
- background_repeat_value_print,
- NULL);
}
/**