Re: signals connection
- From: Sven Neumann <sven gimp org>
- To: Tristan Van Berkom <vantr touchtunes com>
- Cc: gtk-list gnome org
- Subject: Re: signals connection
- Date: 24 Mar 2003 16:29:26 +0100
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]