projects
/
geeqie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
21a8bc3
)
separate function fortesting changed files without sidecars
author
Vladimir Nadvornik
<nadvornik@suse.cz>
Sat, 1 Oct 2011 18:58:34 +0000
(20:58 +0200)
committer
Vladimir Nadvornik
<nadvornik@suse.cz>
Sat, 1 Oct 2011 18:58:34 +0000
(20:58 +0200)
src/filedata.c
patch
|
blob
|
history
diff --git
a/src/filedata.c
b/src/filedata.c
index
3118a02
..
de0c514
100644
(file)
--- a/
src/filedata.c
+++ b/
src/filedata.c
@@
-300,9
+300,8
@@
static void file_data_set_path(FileData *fd, const gchar *path)
file_data_set_collate_keys(fd);
}
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 ||
GList *work;
if (fd->size != st->st_size ||
@@
-315,8
+314,17
@@
static gboolean file_data_check_changed_files_recursive(FileData *fd, struct sta
fd->thumb_pixbuf = NULL;
file_data_increment_version(fd);
file_data_send_notification(fd, NOTIFY_REREAD);
fd->thumb_pixbuf = NULL;
file_data_increment_version(fd);
file_data_send_notification(fd, NOTIFY_REREAD);
- ret
=
TRUE;
+ ret
urn
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)
work = fd->sidecar_files;
while (work)