Mercurial > geeqie
comparison src/filecache.c @ 1226:9dae588b8d5e
remove cached entries on all changes
author | nadvornik |
---|---|
date | Fri, 26 Dec 2008 18:54:07 +0000 |
parents | 3692efcbd325 |
children | 8b89e3ff286b |
comparison
equal
deleted
inserted
replaced
1225:3e5f52382573 | 1226:9dae588b8d5e |
---|---|
178 | 178 |
179 static void file_cache_notify_cb(FileData *fd, NotifyType type, gpointer data) | 179 static void file_cache_notify_cb(FileData *fd, NotifyType type, gpointer data) |
180 { | 180 { |
181 FileCacheData *fc = data; | 181 FileCacheData *fc = data; |
182 | 182 |
183 if (type == NOTIFY_TYPE_REREAD) | 183 if (type != NOTIFY_TYPE_INTERNAL) /* invalidate the entry on each file change */ |
184 { | 184 { |
185 file_cache_remove_fd(fc, fd); | 185 file_cache_remove_fd(fc, fd); |
186 } | 186 } |
187 } | 187 } |
188 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */ | 188 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */ |