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.

I suppose the simplest thing would be to pack your 2 strings (or
whatever you want) in a structure and send the structure as the
parameter.

Ionutz


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