[gtk+] css: 'none' is not a value background-repeat
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] css: 'none' is not a value background-repeat
- Date: Mon, 9 Jan 2012 17:45:03 +0000 (UTC)
commit 4da493402d0b97af7989017676e4d406a26cbae0
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]