[vim/vim] gtk: replace deprecated gdk_pixbuf_new_from_xpm_data() (PR #19583)

3 views
Skip to first unread message

Christian Brabandt

unread,
Mar 5, 2026, 2:49:05 PM (yesterday) Mar 5
to vim/vim, Subscribed

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


You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/19583

Commit Summary

  • a39dd88 gtk: replace deprecated gdk_pixbuf_new_from_xpm_data()

File Changes

(7 files)

Patch Links:


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19583@github.com>

Christian Brabandt

unread,
Mar 5, 2026, 3:14:54 PM (yesterday) Mar 5
to vim/vim, Push

@chrisbra pushed 1 commit.

  • 1c809ad gtk: replace deprecated gdk_pixbuf_new_from_xpm_data()


View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19583/before/54de65d21bfe0e9c81e522f61b207395ab5123aa/after/1c809ad5729e71a1c08c45064bae3e7352829466@github.com>

Reply all
Reply to author
Forward
0 new messages