summaryrefslogtreecommitdiff
path: root/gtk/gtkstyleproperty.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2011-11-25 15:30:10 +0100
committerAlexander Larsson <alexl@redhat.com>2011-11-25 15:36:08 +0100
commitd85aabe1e3240fa785a6cae3eb5cef8661098ef7 (patch)
treee8aa2b9f3488d90d7dfc57a71054c5f137a237f3 /gtk/gtkstyleproperty.c
parent2a42fad1458cde90199940161c4d3c04db10aacb (diff)
downloadgtk+-d85aabe1e3240fa785a6cae3eb5cef8661098ef7.tar.gz
Rename GTK_CSS_REPEAT_STYLE_NONE to GTK_CSS_REPEAT_STYLE_STRETCH
This is a private type, and the CSS default value is "stretch", which is how we were parsing and printing NONE anyway. With this fix we can use the enum stuff for printing/parsing
Diffstat (limited to 'gtk/gtkstyleproperty.c')
-rw-r--r--gtk/gtkstyleproperty.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtkstyleproperty.c b/gtk/gtkstyleproperty.c
index a545ed6118..4f8ec41ce7 100644
--- a/gtk/gtkstyleproperty.c
+++ b/gtk/gtkstyleproperty.c
@@ -1241,7 +1241,7 @@ border_image_repeat_value_parse (GtkCssParser *parser,
for (i = 0; i < 2; i++)
{
if (_gtk_css_parser_try (parser, "stretch", TRUE))
- styles[i] = GTK_CSS_REPEAT_STYLE_NONE;
+ styles[i] = GTK_CSS_REPEAT_STYLE_STRETCH;
else if (_gtk_css_parser_try (parser, "repeat", TRUE))
styles[i] = GTK_CSS_REPEAT_STYLE_REPEAT;
else if (_gtk_css_parser_try (parser, "round", TRUE))
@@ -1250,7 +1250,7 @@ border_image_repeat_value_parse (GtkCssParser *parser,
styles[i] = GTK_CSS_REPEAT_STYLE_SPACE;
else if (i == 0)
{
- styles[1] = styles[0] = GTK_CSS_REPEAT_STYLE_NONE;
+ styles[1] = styles[0] = GTK_CSS_REPEAT_STYLE_STRETCH;
break;
}
else
@@ -1270,7 +1270,7 @@ border_image_repeat_style_to_string (GtkCssBorderRepeatStyle repeat)
{
switch (repeat)
{
- case GTK_CSS_REPEAT_STYLE_NONE:
+ case GTK_CSS_REPEAT_STYLE_STRETCH:
return "stretch";
case GTK_CSS_REPEAT_STYLE_REPEAT:
return "repeat";