Re: [gtk-list] Re: Can a signal pass more than one argument?
- From: owt1 cornell edu
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: Can a signal pass more than one argument?
- Date: Wed, 5 Nov 1997 11:06:45 -0500 (EST)
On Tue, 4 Nov 1997, Ian Main wrote:
> On Tue, 4 Nov 1997, Samson Melamed wrote:
>
> > I have a menu item 'Add', which calls an 'add' function, which I would
> > like to get several from several gtk_entry's and then print it out.
> >
> > What I'd like to know, if there is a way to a callback function to get
> > more than just one other argument. E.g. can I send in three 'gpointer*'s
> > instead of just one? Is there a function other than gtk_signal_connect
> > that will do this? Thanks a lot.
>
> Not that I'm aware of... my suggestion is to use a structure.
Another way of achieving a similar result is to use the
gtk_object_set_data (or is it gtk_widget_set_data?) which allows you
to associate arbitrary data with a GTK object keyed by a string.
This can be useful if you want to associate some data
with a widget then pass some other data to the callbacks in the
'data' argument.
The structure method is probably better in this specific case, however.
Regards,
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]