Passing two arguments via gtk_signal_connect?




Excuse me if this is a bit vague, but I'll explain it the best I can.

I'm trying to have a color selection dialog pop up when a drawing area is
clicked, and then the color changes are reflected in an entry beside the
drawing area.  To do this, I have to pass both the entry, and the
colorselection widget to the function that is called when the color is
changed. (the entry so it knows which entry to change, and the colorsel
widget because the function obviously needs it)
I'm connecting a signal to the color selection dialog via
gtk_signal_connect(), and this only allows one argument. (the only
downside i've found with gtk)

Any suggestions on how I can write a workaround for this?  It's really
getting under my skin. :))

Thanks for any help..
j



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