Mercurial > geeqie
diff src/thumb.c @ 1432:cf4029d10d38
improved notification system
author | nadvornik |
---|---|
date | Sat, 14 Mar 2009 17:21:35 +0000 |
parents | 249bf204004a |
children | a6f9ba6fd751 |
line wrap: on
line diff
--- a/src/thumb.c Sat Mar 14 11:26:43 2009 +0000 +++ b/src/thumb.c Sat Mar 14 17:21:35 2009 +0000 @@ -534,7 +534,7 @@ /* release thumb_pixbuf on file change - this forces reload. */ void thumb_notify_cb(FileData *fd, NotifyType type, gpointer data) { - if (type != NOTIFY_TYPE_INTERNAL && fd->thumb_pixbuf) + if ((type & (NOTIFY_REREAD | NOTIFY_CHANGE)) && fd->thumb_pixbuf) { g_object_unref(fd->thumb_pixbuf); fd->thumb_pixbuf = NULL;