Mercurial > geeqie
diff src/filedata.c @ 763:81f9e8dbb4bf
improved infrastructure for tracing changes, optimized vflist_populate_view
author | nadvornik |
---|---|
date | Wed, 28 May 2008 22:12:10 +0000 |
parents | 477f48ba28d8 |
children | 4acde7a0bb01 |
line wrap: on
line diff
--- a/src/filedata.c Tue May 27 18:46:34 2008 +0000 +++ b/src/filedata.c Wed May 28 22:12:10 2008 +0000 @@ -136,6 +136,13 @@ FileData *file_data_disconnect_sidecar_file(FileData *target, FileData *sfd); +void file_data_increment_version(FileData *fd) +{ + fd->version++; + if (fd->parent) fd->parent->version++; +} + + static void file_data_set_path(FileData *fd, const gchar *path) { @@ -184,6 +191,7 @@ fd->date = st->st_mtime; if (fd->pixbuf) g_object_unref(fd->pixbuf); fd->pixbuf = NULL; + file_data_increment_version(fd); } work = fd->sidecar_files; @@ -1347,6 +1355,7 @@ fd->original_path = g_strdup(fd->change->dest); g_hash_table_insert(file_data_pool, fd->original_path, fd); } + file_data_increment_version(fd); } gint file_data_sc_apply_ci(FileData *fd)