Re: signals connection



Hi,

Tristan Van Berkom <vantr touchtunes com> writes:

> wait a second :S
> 
> this is the prototype for g_free:
> 
> 	void g_free (gpointer mem);
> 
> and this is the `catch all function pointer' GCallback
> 
> 	void (*GCallback) (void);
> 
> so far so good....
> 
> but when it comes down to marshalling the signals
> stack garbage will be collected as a return values
> from `g_free' in consequence stopping signal emmision
> (in most cases you wont have `0' sitting on the stack 
> at that spot).

you shouldn't use these (quite convenient) tricks for signals with
return values. Keep in mind however that most GTK+ signals don't have
a return value.


Salut, Sven



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