summaryrefslogtreecommitdiff
path: root/plugingui/filebrowser.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-04-19 23:00:09 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2013-04-19 23:00:09 +0200
commitc5527bb9155086da8b5a7cea7d9450f265fb6f6a (patch)
tree87a63078c76d5658a86896e4d78d436d99fb18ae /plugingui/filebrowser.cc
parentbc4f25337e048db7d7ec86cfb116cc3768473ff5 (diff)
GUI position/size tweaks and some pixmap changes.
Diffstat (limited to 'plugingui/filebrowser.cc')
-rw-r--r--plugingui/filebrowser.cc9
1 files changed, 7 insertions, 2 deletions
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<GUI::ListBoxBasic::Item> 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);
}