libgimpwidgets: Use gdk_pixbuf_get_pixels on older gdk_pixbuf

Since our minimum version is 2.30.8.

This solves a warning from Clang-CL.
This commit is contained in:
Bruno Lopes 2026-04-01 08:12:02 -03:00
parent eaa472158c
commit ca7da0080a

View file

@ -279,7 +279,7 @@ create_cursor_from_rgba32_pixbuf (GdkPixbuf *pixbuf,
height = gdk_pixbuf_get_height (pixbuf); height = gdk_pixbuf_get_height (pixbuf);
stride = gdk_pixbuf_get_rowstride (pixbuf); stride = gdk_pixbuf_get_rowstride (pixbuf);
size = MAX (width, height); size = MAX (width, height);
pixbuf_data = gdk_pixbuf_read_pixels (pixbuf); pixbuf_data = gdk_pixbuf_get_pixels (pixbuf);
memset (&info, 0, sizeof (info)); memset (&info, 0, sizeof (info));
info.header.bV5Size = sizeof (info.header); info.header.bV5Size = sizeof (info.header);