Re: Question about signals and functions parameters
- From: Tristan Van Berkom <tvb gnome org>
- To: Teste123 Teste123 <asb1231 gmail com>
- Cc: gtk-list gnome org
- Subject: Re: Question about signals and functions parameters
- Date: Fri, 29 Jan 2010 21:03:06 -0500
The function's signature is defined on a per signal basis, yes.
The signature for every signal is available in the documentation,
also purely for your information; the signature for a signal is declared
when the signal is created by calling g_signal_new() from an object
class initializer.
Cheers,
-Tristan
On Fri, Jan 29, 2010 at 8:40 PM, Teste123 Teste123 <asb1231 gmail com> wrote:
> Hi all,
> When use a g_signal_connect to connect some signal to some function, the
> 'default' parameters of these functions are configured by the signal?
> example:
> g_signal_connect(G_OBJECT(window), "delete_event", G_CALLBACK(end),NULL);
> the 'default' parameters of function "end" receives are a GtkWidget * and a
> gpointer. But where it's defined?
> If using the key_press_event the default parameters that the function will
> receive are a GtkWidget * and a GdkEventKey *
> The 'default' parameters have changed when the signal change.
> How this works? Is it how I'm thinking?
> Thanks
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
>
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]