pixmap creating



Hey all,

..I'm almost done with my Gnome-game, but I still have one problem.
When I start the game (it compiles alright), it gives me the following
error:

** WARNING **: Creating pixmap from xpm with NULL window and colormap.

What I do is this:

..
pixmap4 = gdk_pixmap_create_from_xpm (window1->window, &mask4,
&style4->bg[GTK_STATE_NORMAL], "xr23.xpm");
..

and I used:

GtkWidget *window1;
window1 = gtk_vbox_new (FALSE, 0);

(I know that is a little weird to use window1 for a vbox).
..And I know the error has something to do, with me not being allowed
to display xpm's on
just a box. Should I change 'window1->window'? To what?

Thankx, Norbert de Jonge



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