array of widgets...



what's the best way of passing an array of widgets to a callback? I've tried
many ways but cant seem to get this to work.

imagine sth like:
GtkWidget *entry[3];
GtkWidget *button;

button = gtk_button_new...
entry[0] = gtk_entry_new...
entry[1] ...

and i have a function named my_callback and i want it to receive the array
as a parameter when the user clicks the button. I tried many things with
gtk_signal_connect but none of them worked. Can anyone plz come up with a
simple solution for this?





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