comparison src/remote.c @ 2915:8536c3a680ea

Fix #664: Recursive slideshow does not respect file sorting https://github.com/BestImageViewer/geeqie/issues/664
author Colin Clark <colin.clark@cclark.uk>
date Mon, 08 Apr 2019 11:32:12 +0100
parents 3fc1b4b21177
children
comparison
equal deleted inserted replaced
2914:ea342d5f9d14 2915:8536c3a680ea
493 493
494 static void gr_slideshow_start_rec(const gchar *text, GIOChannel *channel, gpointer data) 494 static void gr_slideshow_start_rec(const gchar *text, GIOChannel *channel, gpointer data)
495 { 495 {
496 GList *list; 496 GList *list;
497 FileData *dir_fd = file_data_new_dir(text); 497 FileData *dir_fd = file_data_new_dir(text);
498 list = filelist_recursive(dir_fd); 498
499 layout_valid(&lw_id);
500 list = filelist_recursive_full(dir_fd, lw_id->sort_method, lw_id->sort_ascend);
499 file_data_unref(dir_fd); 501 file_data_unref(dir_fd);
500 if (!list) return; 502 if (!list) return;
501 //printf("length: %d\n", g_list_length(list)); 503 //printf("length: %d\n", g_list_length(list));
502 layout_image_slideshow_stop(lw_id); 504 layout_image_slideshow_stop(lw_id);
503 layout_image_slideshow_start_from_list(lw_id, list); 505 layout_image_slideshow_start_from_list(lw_id, list);