Re: GTK working with pointers



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,
                               -Tristan




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