FS#10722: some improvements for gui/list.c