Re: How can I solve this problem of Gdk



hi,
i do the changes you tell me but the errors continue :(
could you help me?

Ana.

On 14 Feb 2003, Sven Neumann wrote:

> Hi,
>
> =?ISO-8859-15?B?QW5hIEd1dGnpcnJl?=z Pascual <al004180 alumail uji es> writes:
>
> > i'm new with gtk/gdk. i create a program to design some differents objects, in
> > this case a simple line. but i supose i don't use correctly the pointers
> > 'cause i obtain these errors.
> >
> > Gdk-CRITICAL **: file gdkgc.c: line 51 (gdk_gc_new_with_values): assertion
> > `window != NULL' failed.
>
> you can not access a widget's window before it is realized (because
> there is none). You should either connect_after realize and create
> your GC there or simply do it in the expose_event handler where you
> do your drawing.
>
>
> Salut, Sven
>




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