forked from AuroraMiddleware/gtk
gtkcssimagebuiltin: Save/restore around cairo_clip
This was previously causing trouble in checkbuttons where the check node didn't have an icon shadow set, e.g. in Raleigh.
This commit is contained in:
parent
d1b07bc386
commit
36fead28e0
@ -95,6 +95,7 @@ gtk_css_image_builtin_draw_check (GtkCssImage *image,
|
||||
{
|
||||
if (checked)
|
||||
{
|
||||
cairo_save (cr);
|
||||
cairo_translate (cr,
|
||||
x + pad, y + pad);
|
||||
|
||||
@ -123,6 +124,7 @@ gtk_css_image_builtin_draw_check (GtkCssImage *image,
|
||||
7.0, 0.0);
|
||||
|
||||
cairo_fill (cr);
|
||||
cairo_restore (cr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user