{
GList *list;
- list = path_list_recursive(text);
+ list = filelist_recursive(text);
if (!list) return;
//printf("length: %d\n", g_list_length(list));
layout_image_slideshow_stop(NULL);
work = cmd_list;
while (work)
{
- const gchar *name;
+ FileData *fd;
gchar *text;
- name = work->data;
+ fd = work->data;
work = work->next;
- text = g_strconcat(prefix, name, NULL);
+ text = g_strconcat(prefix, fd->path, NULL);
remote_client_send(rc, text);
g_free(text);
{
if (!*path) *path = remove_level_from_path(path_parsed);
if (!*file) *file = g_strdup(path_parsed);
- *list = g_list_prepend(*list, path_parsed);
+ *list = g_list_prepend(*list, file_data_new_simple(path_parsed));
}
}
path_parsed = g_strdup(dir);
parse_out_relatives(path_parsed);
- if (path_list(path_parsed, &files, NULL))
+ if (filelist_read(path_parsed, &files, NULL))
{
GList *work;
- files = path_list_filter(files, FALSE);
- files = path_list_sort(files);
+ files = filelist_filter(files, FALSE);
+ files = filelist_sort_path(files);
work = files;
while (work)
{
- gchar *p;
-
- p = work->data;
- if (!*path) *path = remove_level_from_path(p);
- if (!*file) *file = g_strdup(p);
- *list = g_list_prepend(*list, p);
+ FileData *fd = work->data;
+ if (!*path) *path = remove_level_from_path(fd->path);
+ if (!*file) *file = g_strdup(fd->path);
+ *list = g_list_prepend(*list, fd);
work = work->next;
}
}
else
{
- path_list_free(list);
+ filelist_free(list);
*cmd_list = NULL;
}
}
cmd_path = NULL;
g_free(cmd_file);
cmd_file = NULL;
- path_list_free(cmd_list);
+ filelist_free(cmd_list);
cmd_list = NULL;
- path_list_free(collection_list);
+ string_list_free(collection_list);
collection_list = NULL;
path = NULL;
g_free(geometry);
g_free(cmd_path);
g_free(cmd_file);
- path_list_free(cmd_list);
- path_list_free(collection_list);
+ filelist_free(cmd_list);
+ string_list_free(collection_list);
g_free(path);
if (startup_full_screen) layout_image_full_screen_start(lw);