[gtk+/wip/baedert/gtkimageview] gtkcssimagebuiltin: Save/restore around cairo_clip
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/gtkimageview] gtkcssimagebuiltin: Save/restore around cairo_clip
- Date: Tue, 19 Apr 2016 13:21:17 +0000 (UTC)
commit fecb4665078d192a9d3dc6d56546b84ea3cd5725
Author: Timm Bäder <mail baedert org>
Date: Tue Apr 19 15:20:14 2016 +0200
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.
gtk/gtkcssimagebuiltin.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkcssimagebuiltin.c b/gtk/gtkcssimagebuiltin.c
index e948aa0..6f60eb4 100644
--- a/gtk/gtkcssimagebuiltin.c
+++ b/gtk/gtkcssimagebuiltin.c
@@ -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);
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]