From 40334d2dec0545100edcca403d50ad6b1b015a9a Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Sat, 25 Apr 2009 15:39:55 +0200 Subject: Update mode By doing update, cgg will check the output structure for missing files and re-generate them as necessary. The decision whether an item (file, picture, album) needs to be updated is done by comparing timestamps (mtime specifically). Due to that reason it's important to keep this fact in mind when replacing single image which carries older timestamp than other files. Either don't use the update mode or 'touch' that new file. Changes made to any XML file will result in whole album re-generation (excluding subalbums). --- src/gallery-utils.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gallery-utils.h') diff --git a/src/gallery-utils.h b/src/gallery-utils.h index d9c1d8a..85ad35d 100644 --- a/src/gallery-utils.h +++ b/src/gallery-utils.h @@ -73,6 +73,11 @@ const char *extract_file_ext (const char *filename); */ void log_error (const gchar *format, ...) G_GNUC_PRINTF (1, 2); +/* + * needs_update: returns TRUE if the destionation file needs updating, also when missing + */ +gboolean needs_update (const char *source, const char *dest); + #ifdef __cplusplus } -- cgit v1.2.3