mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
cellrendererpixbuf: Use new snapshot transforms
This commit is contained in:
parent
efd92f7a9e
commit
50e66d5c0d
@ -554,9 +554,10 @@ gtk_cell_renderer_pixbuf_snapshot (GtkCellRenderer *cell,
|
||||
icon_helper = create_icon_helper (cellpixbuf, widget);
|
||||
}
|
||||
|
||||
gtk_snapshot_offset (snapshot, pix_rect.x, pix_rect.y);
|
||||
gtk_snapshot_save (snapshot);
|
||||
gtk_snapshot_translate (snapshot, &GRAPHENE_POINT_INIT (pix_rect.x, pix_rect.y));
|
||||
gdk_paintable_snapshot (GDK_PAINTABLE (icon_helper), snapshot, pix_rect.width, pix_rect.height);
|
||||
gtk_snapshot_offset (snapshot, - pix_rect.x, - pix_rect.y);
|
||||
gtk_snapshot_restore (snapshot);
|
||||
|
||||
g_object_unref (icon_helper);
|
||||
gtk_style_context_restore (context);
|
||||
|
Loading…
Reference in New Issue
Block a user