Re: Passing an array of (GtkWidget *) to a callback function
- From: Nicolas GEORGE <nicolas george ens fr>
- To: gtk-list gnome org
- Subject: Re: Passing an array of (GtkWidget *) to a callback function
- Date: Fri, 2 Jun 2000 10:24:49 +0200 (CEST)
You only have to pass a pointer on the array:
void clicked_callback(GtkWidget *b, GtkWidget **a)
{
/* here all wodgets are available with a[n] */
}
....
GtkWidget **array;
array = g_new(GtkWidget *,5);
for (i = 0; i < 5; i++)
array[i] = ...
gtk_signal_connect(GTK_OBJECT(ok), "clicked",
GTK_SIGNAL_FUNC(clicked_callback), array);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]