Re: Fwd: Re: text on a pixmap



Hi,

Jean-Yves Lamoureux <jylam lnxscene org> writes:

> > it might be a valid GtkWindow, but gdk_pixmap_create_from_xpm_d wants a
> > GdkWindow. You'd better compile with -Wall to catch such errors.
> 
> Yeah, didn't saw this warning. I'm a bit confused with gTk and gDk in types 
> names you know :)
> 
> 
> So. Nothing crashes anymore, but I get lines like that : 
> Gdk-CRITICAL **: file gdkdraw.c: line 65 (gdk_draw_line): assertion `drawable 
> != NULL' failed.

widget->window is not initialized until the widget is realized. This
question comes up about 3 times a day on this list, so I suggest you
read the FAQ (http://www.gtk.org/faq/#AEN660) or look into the
archives.


Salut, Sven



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