Re: multi parameters in a callback



main()
{
GtkWidget *wid;
gtk_signal_connect(...., GTK_SIGNAL_FUNC(write), wid);
}

write(Gtkwidget *callwidget,gpointer *wid)
{
GtkWidget *wid1;
wid1 GTK_WIDGET(wid);
// now enjoy

}
Bye Amit Jain

----- Original Message -----
From: "lomba" <lomba pressemicro net>
To: <gtk-list gnome org>
Sent: Wednesday, November 20, 2002 9:48 PM
Subject: multi parameters in a callback


> Hi !
>
> I've again a question... I've read archives but I don't understand.
> I've a function :
> void write(char *, GtkWidget *);
>
> I need to call this function on a click, so I use a signal :
> gtk_signal_connect(...., GTK_SIGNAL_FUNC(write), ...);
>
> I've understood that I can pass multi parameters with the last parameters,
> but it needs a gpointer on data. What do I need to do ? A structure ?
>
> If you can help me with code I will be glad !
>
> Tx a lot !
> --
> lomba
>
>
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
>




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