20 Dec
2003
20 Dec
'03
4:23 a.m.
On Fri, 2003-12-19 at 23:15, MenTaLguY wrote:
SPItemView *iv; NRArenaItem *arenaitem;
arenaitem = NULL; for ( iv = child->display ; iv ; iv = iv->next ) { if ( iv->key == dkey ) { arenaitem = iv->arenaitem; break; } }
Thinking about it, this snippet of code would probably be best wrapped as e.g. NRArenaItem *sp_item_get_arenaitem (SPItem *item, unsigned int key). (unless there's already an equivalent there that I'm missing?)
I'm sure there will be other times we'll want to reuse it, and SPItemViews are really not supposed to be part of SPItem's external interface anyway.
-mental