[gtk/wip/otte/transform: 15/37] cellrenderertoggle: Use new snapshot transforms
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/transform: 15/37] cellrenderertoggle: Use new snapshot transforms
- Date: Thu, 21 Feb 2019 06:22:05 +0000 (UTC)
commit d9b1a5fe264210d6cc9dbe533dea2fdcb23e4534
Author: Benjamin Otte <otte redhat com>
Date: Thu Feb 21 05:34:12 2019 +0100
cellrenderertoggle: Use new snapshot transforms
gtk/gtkcellrenderertoggle.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkcellrenderertoggle.c b/gtk/gtkcellrenderertoggle.c
index f899f736e1..f79b97e2d4 100644
--- a/gtk/gtkcellrenderertoggle.c
+++ b/gtk/gtkcellrenderertoggle.c
@@ -459,9 +459,9 @@ gtk_cell_renderer_toggle_snapshot (GtkCellRenderer *cell,
image_type = GTK_CSS_IMAGE_BUILTIN_NONE;
}
- gtk_snapshot_offset (snapshot,
- cell_area->x + x_offset + xpad + padding.left + border.left,
- cell_area->y + y_offset + ypad + padding.top + border.top);
+ gtk_snapshot_translate (snapshot,
+ &GRAPHENE_POINT_INIT (cell_area->x + x_offset + xpad + padding.left + border.left,
+ cell_area->y + y_offset + ypad + padding.top + border.top));
gtk_css_style_snapshot_icon (gtk_style_context_lookup_style (context), snapshot,
width - padding.left - padding.right - border.left - border.right,
height - padding.top - padding.bottom - border.top - border.bottom,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]