Re: GdkError !!



>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.

except:

	% ls .../pixmaps
	  <lots of files ending with .xpm>

no good reason to convert them either, if you ask me.

>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).

i guess i feel that if its possible to create server-side images
without an explicit window (and it clearly is), then there is no
reason to ever require one.

--p




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]