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

GtkList problem



hi,
  i seem to be having a really silly problem with GtkLists.
I've used a fair number of other widgets and don't have problems,
but this one has me baffled...the following piece of code 
segfaults.


GtkWidget *list = NULL;
GList *items = NULL;

items = g_list_append ("item1");
items = g_list_append ("item2");

list = gtk_list_new();
gtk_list_append_items (GTK_LIST(list), items);

and the code segfaults at gtk_list_append_items.
as far as i can tell, it is right since these are the appropriate 
function prototypes from the GTK+ reference material

void gtk_list_append_items (GtkList *list, GList *items);
GtkWidget* gtk_list_new (void);

thanks,
ajit

-- 
Ajit Krishnan
ajit@home.com
akrishna@julian.uwo.ca



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