Re: [gtk-list] Callbacks



On Fri, 26 Feb 1999, IKSAL Sebastien wrote:

> I need to use more than one parameter in a callback, but
> gtk_signal_connect accept only one.
> I tried to use a pointer on a special typedef struct, and it didn't
> work.

gtk_signal_connect have as last arg gpointer (gtksignal.h):
guint  gtk_signal_connect                 (GtkObject           *object,
                                           const gchar         *name,
                                           GtkSignalFunc        func,
                                           gpointer             func_data);

pointer to any type of data structure can be casted tp gpointer, which is
equal to void*

this should help.

_____
Alexander Kotelnikov
Saint-Petersburg, Russia
mailto:sacha@ak2614.spb.edu



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