[gtk+/wip/css: 31/167] css: 'none' is not a value background-repeat



commit c9c354c9f4ed44e43c2e25a97e0b985df46042a4
Author: Benjamin Otte <otte redhat com>
Date:   Fri Dec 30 13:13:44 2011 +0100

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

 gtk/gtkcsstypesprivate.h   |    1 -
 gtk/gtkthemingbackground.c |    3 +--
 2 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkcsstypesprivate.h b/gtk/gtkcsstypesprivate.h
index ff1a844..23ad3db 100644
--- a/gtk/gtkcsstypesprivate.h
+++ b/gtk/gtkcsstypesprivate.h
@@ -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;
diff --git a/gtk/gtkthemingbackground.c b/gtk/gtkthemingbackground.c
index a525e18..dda56e4 100644
--- a/gtk/gtkthemingbackground.c
+++ b/gtk/gtkthemingbackground.c
@@ -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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]