Paul Barton-Davis <[EMAIL PROTECTED]> writes: 
> is this going to be "fixed" in the new GTK+ ? it seems like such a
> common question, and the "obvious" usage of gdk_pixmap_new() breaks so
> often that it seems as if the functions should be renamed so that the
> colormap-ish versions are the default.
> 

Well, these functions are totally useless in the new GTK; you would
normally use gdk_pixbuf_new_from_xpm_data() instead, or better use
GdkPixbuf with inline RGB or PNG data. Then you would display the
pixbuf in a GtkImage. There is basically no reason to create a pixmap
from XPM data anymore.

It looks like there's a g_return_if_fail() at the top of the functions
now that requires either a window or colormap to be passed in, which
is probably a clearer warning (assertion failed in
gdk_pixmap_create_from_xpm_d(): window != NULL or something).

Havoc



_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list

Reply via email to