Re: [gtk-list] creating pixmap from xpm with null window..
- From: Brandon Long <blong fiction net>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] creating pixmap from xpm with null window..
- Date: Wed, 30 Sep 1998 13:49:21 -0700
On 10/01/98 Adam Moore uttered the following other thing:
>
> I'm getting a warning when executing (not a compile time warning) an app
> that is virtually cut&pasted out of gtk example code. I'm using a pixmap
> defined in my code, and pixmap_create_from_xpm_d is giving:
>
> ** WARNING **: Creating pixmap from xpm with NULL window and colormap
>
> ..which I'd really like to get rid of if anyone knows how ;)
You are creating the pixmap before the widget is realized, so the
widget->window is NULL.
If this is a drawing_area widget, or other types, trying loading the
pixmap during the configure event. See the Scribble app in the GTK+
Tutorial for more info
(http://www.gtk.org/tutorial/gtk_tut-24.html#ss24.3)
Brandon
--
Brandon Long MD6 Crash Test Dummy Intel Corporation
"Every program has at least one bug and can be shortened by at least one
instruction -- from which, by induction, one can deduce that every
program can be reduced to one instruction which doesn't work."
I'm too low on the totem pole to speak for Intel.
http://www.fiction.net/blong/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]