Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ui/src/list.c

    r5e758e4 ra77c722  
    800800}
    801801
    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 
    824802/** Clear UI list entry list.
    825803 *
Note: See TracChangeset for help on using the changeset viewer.