Thanks to visit codestin.com
Credit goes to github.com

Skip to content

gvim: Changed behavior of gdk-pixbuf 2.44.5 gives startup error messsage #19446

@fjaell

Description

@fjaell

Steps to reproduce

gvim is using a deprecated API of gdk-pixbuf which leads to several warnings at build time,
for example:

gui_gtk_x11.c: In function 'mainwin_realize':
gui_gtk_x11.c:2760:13: warning: 'gdk_pixbuf_new_from_xpm_data' is deprecated [-Wdeprecated-declarations]
2760 | icons = g_list_prepend(icons, gdk_pixbuf_new_from_xpm_data((const char **)vim16x16));

At startup I see several of the following warning/error messages:

(gvim:13469): GdkPixbuf-WARNING **: 11:29:24.137: gdk-pixbuf XPM module lacks XPM data capability
(gvim:13469): GLib-GObject-CRITICAL **: 11:29:24.137: g_object_ref: assertion 'G_IS_OBJECT (object)' failed

Even though gvim works as expected.
This behavior is new to version 2.44.5 of gdk-pixbuf, version 2.44.4 and older works.
I've reported the bug to upstream gdk-pixbuf, with no success,
see https://gitlab.gnome.org/GNOME/gdk-pixbuf/-/issues/299

Expected behaviour

No error/deprecated messages at build- nor at run-time

Version of Vim

9.2.0014

Environment

CRUX Linux 3.8, all packages up-to-date

Logs and stack traces

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions