Mercurial > hg > forks > geeqie
changeset 1931:9e9011b16645
separate function fortesting changed files without sidecars
author | Vladimir Nadvornik <nadvornik@suse.cz> |
---|---|
date | Sat, 01 Oct 2011 20:58:34 +0200 |
parents | f96b5dfa3ec2 |
children | d50c2ddc9858 |
files | src/filedata.c |
diffstat | 1 files changed, 11 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/filedata.c Sat Oct 01 17:11:10 2011 +0200 +++ b/src/filedata.c Sat Oct 01 20:58:34 2011 +0200 @@ -300,9 +300,8 @@ file_data_set_collate_keys(fd); } -static gboolean file_data_check_changed_files_recursive(FileData *fd, struct stat *st) +static gboolean file_data_check_changed(FileData *fd, struct stat *st) { - gboolean ret = FALSE; GList *work; if (fd->size != st->st_size || @@ -315,8 +314,17 @@ fd->thumb_pixbuf = NULL; file_data_increment_version(fd); file_data_send_notification(fd, NOTIFY_REREAD); - ret = TRUE; + return TRUE; } + return FALSE; +} + +static gboolean file_data_check_changed_files_recursive(FileData *fd, struct stat *st) +{ + gboolean ret = FALSE; + GList *work; + + ret = file_data_check_changed(fd, st); work = fd->sidecar_files; while (work)