summaryrefslogtreecommitdiff
path: root/gtk/gtkcolorswatch.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2012-05-11 10:22:24 -0400
committerCosimo Cecchi <cosimoc@gnome.org>2012-05-15 13:24:40 -0400
commit214809ece22bd9fc527c4103036c035b39999b16 (patch)
tree8997c05beb7d36ed3998661c342a24cfb2d1d2d8 /gtk/gtkcolorswatch.c
parent580b585fc92830b47edeedd33024d07a8e33d6c0 (diff)
downloadgtk+-214809ece22bd9fc527c4103036c035b39999b16.tar.gz
colorswatch: don't use the clip box directly
We can render our checkboard pattern on the padding box instead. This is in preparation for GtkThemingBackground supporting multiple layers.
Diffstat (limited to 'gtk/gtkcolorswatch.c')
-rw-r--r--gtk/gtkcolorswatch.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/gtkcolorswatch.c b/gtk/gtkcolorswatch.c
index 810112db1a..8f60708410 100644
--- a/gtk/gtkcolorswatch.c
+++ b/gtk/gtkcolorswatch.c
@@ -120,7 +120,7 @@ swatch_draw (GtkWidget *widget,
{
cairo_save (cr);
- _gtk_rounded_box_path (&background.clip_box, cr);
+ _gtk_rounded_box_path (&background.padding_box, cr);
cairo_clip_preserve (cr);
cairo_set_source_rgb (cr, 0.33, 0.33, 0.33);
@@ -159,9 +159,9 @@ swatch_draw (GtkWidget *widget,
cairo_set_source_rgba (cr, 1., 1., 1., 0.4);
else
cairo_set_source_rgba (cr, 0., 0., 0., 0.4);
- _gtk_rounded_box_shrink (&background.clip_box, 3, 3, 3, 3);
- _gtk_rounded_box_path (&background.clip_box, cr);
- cairo_stroke (cr);
+ _gtk_rounded_box_shrink (&background.padding_box, 3, 3, 3, 3);
+ _gtk_rounded_box_path (&background.padding_box, cr);
+ cairo_stroke (cr);
}
if (swatch->priv->icon)