Creating a pixmap requires a colormap. gdk_pixmap_create_from_xpm_d() requires
a GdkWindow argument in
order to extract a colormap. You are probably trying to
use the window field of
an unrealized widget, which is NULL. You might try the newer
function,
gdk_pixmap_colormap_create_from_xpm_d() which
accepts a colormap argument; if you pass in a colormap,
its window argument can be
NULL. However, using Imlib instead is a still
better solution; Imlib's pixmap routines are faster
anyway.