git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@406 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-10-18 10:51:42 +00:00
parent 6206b8993e
commit 8741d4e7b7

View File

@@ -5,7 +5,7 @@
typedef struct filechooser {
char* path;
MwDirectoryEntry** entries;
MwDirectoryEntry** sorted_entries;
@@ -30,7 +30,7 @@ typedef struct filechooser {
static void destroy(MwWidget handle) {
filechooser_t* fc = handle->opaque;
int i;
int i;
arrfree(fc->sorted_entries);
for(i = 0; i < arrlen(fc->entries); i++) MwDirectoryFreeEntry(fc->entries[i]);
@@ -261,13 +261,13 @@ static int qsort_files(const void* a, const void* b) {
}
static void scan(MwWidget handle, const char* path) {
filechooser_t* fc = handle->opaque;
void* dir = MwDirectoryOpen(path);
int i;
char** names = NULL;
char** dates = NULL;
char** sizes = NULL;
MwLLPixmap* icons = NULL;
filechooser_t* fc = handle->opaque;
void* dir = MwDirectoryOpen(path);
int i;
char** names = NULL;
char** dates = NULL;
char** sizes = NULL;
MwLLPixmap* icons = NULL;
arrfree(fc->sorted_entries);
for(i = 0; i < arrlen(fc->entries); i++) MwDirectoryFreeEntry(fc->entries[i]);