rem: for (i=0, item=lPtr->items; item!=NULL; item=item->nextPtr, i++) {
add: for (i=0; i < WMGetBagItemCount(lPtr->items); i++) { item = WMGetFromBag(lPtr->items, i);
context: WMFindRowOfListItemWithTitle(WMList *lPtr, char *title){    WMListItem *item;    int i;    int ok = 0;        for (i=0, item=lPtr->items; item!=NULL; item=item->nextPtr, i++) {	if (strcmp(item->text, title)==0) {	    ok = 1;	    break;	}    }    return ok ? i : -1;}