How do I send multiple args?



Hi folks,

I'm trying to do:

void cb_send_play_cmd (GtkWidget *item, char *inst, int var)
{
  printf("%s(%d)\n",inst,i);
}

via:

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.

Thanks,

DT
--
Technical Director, Virginia Center for Computer Music
Programmer / Analyst, Dean's Office (School of A&S)
http://www.people.virginia.edu/~djt7p
(804) 924-6887



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