multi parameters in a callback



Hi !

I've again a question... I've read archives but I don't understand.
I've a function :
void write(char *, GtkWidget *);

I need to call this function on a click, so I use a signal :
gtk_signal_connect(...., GTK_SIGNAL_FUNC(write), ...);

I've understood that I can pass multi parameters with the last parameters,
but it needs a gpointer on data. What do I need to do ? A structure ?

If you can help me with code I will be glad !

Tx a lot !
--
lomba





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