[gtk/wip/otte/transform: 23/41] cellrenderertoggle: Use new snapshot transforms



commit 2e8dd822b7021889d7ae5f3b4f4bc1711fcd9b0e
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]