Re: Question about put "GtkWidget" pointer as function's argument
- From: David Nečas (Yeti) <yeti physics muni cz>
- To: gtk-list gnome org
- Subject: Re: Question about put "GtkWidget" pointer as function's argument
- Date: Mon, 17 Jul 2006 09:04:24 +0200
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]