(listbox_add_item_take): new WListbox API.
commit401cd4a16c7dedc7c84dc41fb2e9eb1c11bd5e18
authorAndrew Borodin <aborodin@vmail.ru>
Sat, 20 Apr 2024 17:18:03 +0000 (20 20:18 +0300)
committerAndrew Borodin <aborodin@vmail.ru>
Sun, 2 Jun 2024 09:41:34 +0000 (2 12:41 +0300)
tree5b52914abc5f2ebf4fafbe92784e09f80e3b339f
parente496af7a1c98397d08ef9eec1712d5dbdff42fef
(listbox_add_item_take): new WListbox API.

Add new item to a listbox taking ownerhip of item text
and avoid a string duplication.

(listbox_add_item): reimplement using listbox_add_item_take().

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
lib/widget/listbox.c
lib/widget/listbox.h