Re: multi parameters in a callback
- From: "态琴" <taiq mail china com>
- To: gtk-list gnome org
- Cc:
- Subject: Re: multi parameters in a callback
- Date: Thu, 21 Nov 2002 17:02:17 +0800 (CST)
use a structure.
> 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
----------------------------------------------------------------------
信天翱翔我自邮 中华网“信天邮”
免费邮箱与付费邮箱区别 http://paymail.china.com/extend/gb/differ.htm
了解中华网信天邮 http://paymail.china.com/extend/gb/
客服热线:010-65239898转356
2003出国留学最新热点资讯 http://ads.china.com/globeedu.html
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]