Re: Transmit an array to a function



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: Jean-Christophe Berthon cgey com
Tel : (+33) 561 31 6639


----- Original Message -----
From: "Anthony Ferrand" <Anthony-Ferrand wanadoo fr>
To: "GTK" <gtk-list gnome org>
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
> 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]