Re: Question about signals and functions parameters

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

 



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@xxxxxxxxx> 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@xxxxxxxxx
> http://mail.gnome.org/mailman/listinfo/gtk-list
>
>
_______________________________________________
gtk-list mailing list
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