Re: [gtk-list] Callbacks
- From: Alexander Kotelnikov <sacha AK2614 spb edu>
- To: GTK List <gtk-list redhat com>
- Subject: Re: [gtk-list] Callbacks
- Date: Fri, 26 Feb 1999 12:09:03 +0300 (MSK)
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]