Use the model's mtime for validating thumbnails
Saves a syscall, generalizes fiv_thumbnail_lookup(), wastes a tiny bit of memory per entry.
This commit is contained in:
4
fiv-io.h
4
fiv-io.h
@@ -123,8 +123,8 @@ gboolean fiv_io_model_open(FivIoModel *self, GFile *directory, GError **error);
|
||||
GFile *fiv_io_model_get_location(FivIoModel *self);
|
||||
|
||||
typedef struct {
|
||||
gchar *uri; ///< GIO URI
|
||||
gchar *collate_key; ///< Collate key for the filename
|
||||
char *uri; ///< GIO URI
|
||||
char *collate_key; ///< Collate key for the filename
|
||||
gint64 mtime_msec; ///< Modification time in milliseconds
|
||||
} FivIoModelEntry;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user