GList and segmentation fault

Can anyone tell me what is wrong with this:
I create a GList and add something in it:

GList * files = NULL;
//nextfile is a string
files = g_list_append(files, nextfile); 

later on when a GtkList is created I try to add the 
GList to it:

gtk_list_append_items(list1, files);

but that gives me a segmentation fault.

Can anyone from this information tell me what is going 


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