Le ven 18/06/2004 à 05:23, Ranieri a écrit : > how send a GtkTreeSelection *selection, to other function using > g_signal_connect ? > Example: > > void new_function(GtkTreeSelection **selection); > > void main(int argc, char **argv) > { > ... > ... > GtkTreeSelection *selection; > ... > ... > ... > g_signal_connect(G_OBJECT(button), "clicked", new_function, selection); > ... > ... > } > > What this wrong in this source code ? > > Thanks! Your callback should have a widget as first parameter: void new_function (GtkWiget* w, GtkTreeSelection *selection); Otherwise, you can connect the callback with g_signal_connect_swapped
Attachment:
signature.asc
Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=