cellrenderertoggle: Use new snapshot transforms

This commit is contained in:
Benjamin Otte 2019-02-21 05:34:12 +01:00
parent 50e66d5c0d
commit 6cb8f638d1

View File

@ -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,