Re: Event Called At gtk_main()?
- From: Havoc Pennington <hp redhat com>
- To: Al Morgan <almorgan microsharp com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Event Called At gtk_main()?
- Date: 23 Apr 2001 16:17:25 -0400
Al Morgan <almorgan microsharp com> writes:
When I'm initializing images in my program, it throws me warnings when I
run the program: "Creating pixmap with NULL window and colormap." This
seems to be beacuse gtk_main hasn't started, so the GdkWindows and
colormaps don't exist. Is this correct? And if so, is there an event
or something that can be triggered when gtk_main is started, so I can
initialize things without throwing warnings?
The problem is that you are creating a pixmap
(gdk_pixmap_create_from_xpm_d) or whatever without passing a window or
colormap. Try getting a colormap for the widget you're going to draw
the pixmap to (gtk_widget_get_colormap) and use
gdk_pixmap_colormap_create_from_xpm_d.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]