Re: GdkError !!
- From: Havoc Pennington <hp redhat com>
- To: Paul Barton-Davis <pbd Op Net>
- Cc: gtk-list gnome org
- Subject: Re: GdkError !!
- Date: 15 Nov 2000 18:47:52 -0500
Paul Barton-Davis <pbd Op Net> 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]