On 17 Dec, George Timmons wrote:
Greetings: I'm trying to create a dialog that has a variable number of spinbuttons. with one callback function to handle them.But how to get the value from a specific spinbutton into a specific variable. The value from the first or topmost spin goes into say data[1], then the next value goes into data[2], etc.Creating the spins with a function is easy as Wright shows in his book on Beginning GTk+ but assigning the values is the problem.
Use the adresses of the data[] as the func_data parameters in gtk_signal_connect. Every callback then has the appropriate data[]'s address when it's called. Roland -- Roland Smith "When life hands you a lemon, r s m i t h @ x s 4 a l l . n l make lemonade." http://www.xs4all.nl/~rsmith/
Attachment:
pgpkj_gjkMlCf.pgp
Description: PGP signature