ui/gtk/list.c

changeset 657
02bcdbc34f31
parent 653
dc0eb8151254
child 658
b25f54b51d76
equal deleted inserted replaced
656:2f18119d176a 657:02bcdbc34f31
2006 2006
2007 size_t index = 0; 2007 size_t index = 0;
2008 void *elm = list->first(list); 2008 void *elm = list->first(list);
2009 while(elm) { 2009 while(elm) {
2010 UiSubListItem item = { NULL, NULL, NULL, NULL, NULL, NULL }; 2010 UiSubListItem item = { NULL, NULL, NULL, NULL, NULL, NULL };
2011 listbox->getvalue(sublist->userdata, elm, index, &item, listbox->getvaluedata); 2011 listbox->getvalue(list, sublist->userdata, elm, index, &item, listbox->getvaluedata);
2012 2012
2013 // create listbox item 2013 // create listbox item
2014 GtkWidget *row = create_listbox_row(listbox, sublist, &item, (int)index); 2014 GtkWidget *row = create_listbox_row(listbox, sublist, &item, (int)index);
2015 if(index == 0) { 2015 if(index == 0) {
2016 // first row in the sublist, set ui_listbox data to the row 2016 // first row in the sublist, set ui_listbox data to the row

mercurial