From c5527bb9155086da8b5a7cea7d9450f265fb6f6a Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 19 Apr 2013 23:00:09 +0200 Subject: GUI position/size tweaks and some pixmap changes. --- plugingui/filebrowser.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'plugingui/filebrowser.cc') diff --git a/plugingui/filebrowser.cc b/plugingui/filebrowser.cc index d1b6136..2bd1a10 100644 --- a/plugingui/filebrowser.cc +++ b/plugingui/filebrowser.cc @@ -127,10 +127,15 @@ static void changeDir(void *ptr) return; } - struct dirent *entry; + std::vector items; + struct dirent *entry; while((entry = readdir(dir)) != NULL) { - lb->addItem(entry->d_name, entry->d_name); + GUI::ListBoxBasic::Item item; + item.name = entry->d_name; + item.value = entry->d_name; + items.push_back(item); } + lb->addItems(items); closedir(dir); } -- cgit v1.2.3