Re: gtk_clist_get_row_data returns NULL ¿?¿?



huh,forgot last post , gpointer¿?, dunno what gpointer is, it seems a pointer to a unknow data struct¿?...
can someone tell me how works?

i wrote in the clist some rows with a char* as data..
char *prueba = "hello world";
.
.
.
gtk_clist_append(GTK_CLIST(clist), &prueba);
.
.
and now im trying to retrieve...
void clist_clicked(GtkWidget *widget, gint rowx, gint column, GdkEvent event)
{
char *datafromrow = (char *)gtk_clist_get_row_data(GTK_CLIST(clist), rowx);
 printf("data: %s\n", datafromrow);
}
but i get
.
data: (null)

plz help

_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus




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