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

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

 



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.
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux