[Glade-users] signals

hi, i have tried it, and with a array of chars it works, but with integuers
doesnt work, i have do it like:
static void callback(GtkWidget *widget, gpointer data)
  int *a;
  a= (int *)data;
  g_print ("%d was passed\n", a[0]);


int a[12];
button = gtk_button_new ();
g_signal_connect (G_OBJECT (button), "clicked", G_CALLBACK (callback),
(gpointer) a);

any idea?

and how can i pass and array of buttons? for example if i would like to
active some checkbuttons, like "select all" of a list of options, how can i
send the information about the buttons?

thanks a lot.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/glade-users/attachments/20070212/f0447deb/attachment.html 

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