[gtk+/wip/css: 32/135] css: 'none' is not a value background-repeat
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/css: 32/135] css: 'none' is not a value background-repeat
- Date: Wed, 4 Jan 2012 03:31:56 +0000 (UTC)
commit 6d765156c833da64420ab613a549e344fa0aab95
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]