Re: [gtk-list] multiple arguments to signal event



jay wrote:
> 
> Say I have a button and I attach a signal handler onto it:
> 
> gtk_signal_connect(GTK_OBJECT(button),"clicked",GTK_SIGNAL_FUNC(handler),
> NULL);
> 
> How can I pass multiple arguments (like two text entry fields) to the
> handler function?  I've gone through multiple versions of the gtk
> documentation, the faq, and have looked through quite a bit of code, and
> still can't figure it out.
> Excuse me if this is a stupid question... I'm quite new to gtk.
> 
> --
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null

Try passing a struct with the two arguments in it. If you are not using
Gtk-- you may only be able to pass a pointer to an arbitrary struct, not
the struct itself (I assume, my Gtk experience is mostly only with C++).

--
Michael Babcock
Jim Henson's Creature Shop - Los Angeles
mbabcock@la.creatureshop.henson.com



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