| 286 | } |
| 287 | |
| 288 | void GuiTextListCtrl::setEntry(U32 id, const char *text) |
| 289 | { |
| 290 | S32 e = findEntryById(id); |
| 291 | if(e == -1) |
| 292 | addEntry(id, text); |
| 293 | else |
| 294 | { |
| 295 | dFree(mList[e].text); |
| 296 | mList[e].text = dStrdup(text); |
| 297 | |
| 298 | // Still have to call this to make sure cells are wide enough for new values: |
| 299 | setSize( Point2I( 1, mList.size() ) ); |
| 300 | } |
| 301 | setUpdate(); |
| 302 | } |
| 303 | |
| 304 | void GuiTextListCtrl::setEntryActive(U32 id, bool active) |
| 305 | { |
no test coverage detected