Commit 4da49340 authored by Benjamin Otte's avatar Benjamin Otte

css: 'none' is not a value background-repeat

parent 6fdf6ba6
......@@ -31,7 +31,6 @@ typedef enum {
} GtkCssSpecialValue;
typedef enum {
GTK_CSS_BACKGROUND_REPEAT_STYLE_NONE,
GTK_CSS_BACKGROUND_REPEAT_STYLE_REPEAT,
GTK_CSS_BACKGROUND_REPEAT_STYLE_NO_REPEAT,
} GtkCssBackgroundRepeatStyle;
......
......@@ -307,8 +307,7 @@ _gtk_theming_background_paint (GtkThemingBackground *bg,
if (cairo_pattern_get_surface (bg->pattern, &surface) != CAIRO_STATUS_SUCCESS)
surface = NULL;
if (surface && repeat &&
repeat->repeat != GTK_CSS_BACKGROUND_REPEAT_STYLE_NONE)
if (surface && repeat)
{
scale_width = cairo_image_surface_get_width (surface);
scale_height = cairo_image_surface_get_height (surface);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment