Re: Question about put "GtkWidget" pointer as function's argument



On Mon, Jul 17, 2006 at 07:48:15AM +0100, Christopher Backhouse wrote:
> chao yeaj wrote:
> 
> >                   splash = frame;    /*  Here, the splash is not NULL*/
> 
> splash is a local variable.
> if you want to assign to the data at the pointer:
> *splash=frame

No, you cannot do this.  First, splash is NULL at that time,
so you would get an immediate segfault, second, you cannot
assign widgets (and GObjects generally) by value anyway.

Yeti


--
Anonyms eat their boogers.



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