Re: GTK working with pointers

2005-07-29 Thread Tristan Van Berkom
Adolfo Eloy wrote: [...] txt = *( ( (GtkWidget **)(data) ) + i); I think: txt = ( ( (GtkWidget *)(data) ) + i); Is better (completely off the top of my head). But even better would be: GtkWidget **widgets = (GtkWidget **)data; for (...) { widget = widgets[i]; } Cheers,

GTK working with pointers

2005-07-29 Thread Adolfo Eloy
Hello, I have 2 sources(interface.c and callbacks.c) which belongs to my project, that is an interface to connect to postgresql, using GTK. The problem is: I want to pass an array of pointers to GtkWidgets (in this case GtkEntries) for my callback that need to catch the 3 elements(GtkEntry), to g