Question about signals and functions parameters

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

 



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

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux