Changes in uspace/lib/ui/src/list.c [a77c722:5e758e4] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/src/list.c
ra77c722 r5e758e4 800 800 } 801 801 802 /** Change list entry caption. 803 * 804 * @param entry UI list entry 805 * @param caption New caption 806 * 807 * @return EOK on success, ENOMEM if out of memory 808 */ 809 errno_t ui_list_entry_set_caption(ui_list_entry_t *entry, const char *caption) 810 { 811 char *dcaption; 812 813 dcaption = str_dup(caption); 814 if (dcaption == NULL) 815 return ENOMEM; 816 817 free(entry->caption); 818 entry->caption = dcaption; 819 820 (void)ui_list_entry_paint(entry, ui_list_entry_get_idx(entry)); 821 return EOK; 822 } 823 802 824 /** Clear UI list entry list. 803 825 *
Note:
See TracChangeset
for help on using the changeset viewer.