]> Pileus Git - ~andy/gtk/commitdiff
themingbackground: fix copy/paste typo
authorCosimo Cecchi <cosimoc@gnome.org>
Mon, 30 Apr 2012 16:10:45 +0000 (12:10 -0400)
committerCosimo Cecchi <cosimoc@gnome.org>
Mon, 30 Apr 2012 16:10:45 +0000 (12:10 -0400)
We need to fetch the area value for the origin, not for the clip.

gtk/gtkthemingbackground.c

index 245164c3ff895b545e8162df9780e43e95921123..158ac32f7e2dd0f5b1b1d65f81c71d704d75cf54 100644 (file)
@@ -60,7 +60,7 @@ _gtk_theming_background_apply_origin (GtkThemingBackground *bg)
   GtkCssArea origin;
   cairo_rectangle_t image_rect;
 
-  origin = _gtk_css_area_value_get (_gtk_style_context_peek_property (bg->context, GTK_CSS_PROPERTY_BACKGROUND_CLIP));
+  origin = _gtk_css_area_value_get (_gtk_style_context_peek_property (bg->context, GTK_CSS_PROPERTY_BACKGROUND_ORIGIN));
 
   /* The default size of the background image depends on the
      background-origin value as this affects the top left