Re: [gtk-list] gpointer help needed



> void 
> destroy_object (GtkWidget *widget, gpointer data)
> {
>         ...
>         /* This fails to compile */
>         (struct _my_structure *)data->member;
> }

It's trying to select the member field through the data pointer and cast
that to a _my_structure *.  Try this:

((struct _my_structure *)data)->member;

Chad



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