I'm not sure about it but try this :
gtk_signal_connect (GTK_OBJECT(button),"clicked",GTK_SIGNAL_FUNC(function),
widget);
according that widget is the name of your array (GtkWidget *widget[20])
This should work, I think (thought I never tried it...)
Best regards,
---
Jean-Christophe Berthon
Cap Gemini -- Ernst & Young
Toulouse FR
Skill Aerospace -- Image Quality
Email: [EMAIL PROTECTED]
Tel : (+33) 561 31 6639
----- Original Message -----
From: "Anthony Ferrand" <[EMAIL PROTECTED]>
To: "GTK" <[EMAIL PROTECTED]>
Sent: Thursday, July 05, 2001 12:03 PM
Subject: Transmit an array to a function
> Hello,
>
> How can I transmit an array of widget (GtkWidget *widget[20]) to a
> function using gtk_signal_connect_object
>
gtk_signal_connect_object(GTK_OBJECT(button),"clicked",GTK_SIGNAL_FUNC(funct
ion),what
> must I write here?);
>
> Thanks in advance,
>
> Anthony
>
> --
> http://www.freeciv.fr.st
>
> _______________________________________________
> gtk-list mailing list
> [EMAIL PROTECTED]
> http://mail.gnome.org/mailman/listinfo/gtk-list
_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list