Question about signals and functions parameters



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


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