Problem: gdk_pixbuf_new_from_xpm_data() is deprecated in gdk-pixbuf
2.44.5, causing build warnings and runtime errors when
starting gvim (GdkPixbuf-WARNING: gdk-pixbuf XPM module
lacks XPM data capability).
Solution: Replace XPM icon loading with PNG byte arrays loaded via
g_memory_input_stream_new_from_data() and
gdk_pixbuf_new_from_stream(). These APIs are available since
GLib 2.12 and gdk-pixbuf 2.14 (around 2008) so should be safe
to use today.
The vim*_png.h files are created from the existing .png files, so there may be slight differences in the icons being used. The original XPM files are kept for the Motif/X11 GUI (gui_x11.c).
fixes: #19446
https://github.com/vim/vim/pull/19583
(7 files)
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
@chrisbra pushed 1 commit.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()