How do I send multiple args?

Hi folks,

I'm trying to do:

void cb_send_play_cmd (GtkWidget *item, char *inst, int var)


gtk_signal_connect_object (GTK_OBJECT (play_button), "clicked",
			     GTK_SIGNAL_FUNC(cb_send_play_cmd), "PLAY", 1);

but I'm being told that's too many arguments to
gtk_signal_connect_object().  Is there no way to send more than one
argument to a callback?  Please don't tell me I need to send it all via
a struct ... that seems like a real pain in the neck.


Technical Director, Virginia Center for Computer Music
Programmer / Analyst, Dean's Office (School of A&S)
(804) 924-6887

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