Mercurial > geeqie.yaz
diff src/thumb.c @ 877:21e324dcd78c
refresh thumbnails on file change
author | nadvornik |
---|---|
date | Thu, 03 Jul 2008 20:16:15 +0000 |
parents | 2d8705f33da5 |
children | 4fe8f9656107 |
line wrap: on
line diff
--- a/src/thumb.c Thu Jul 03 19:38:19 2008 +0000 +++ b/src/thumb.c Thu Jul 03 20:16:15 2008 +0000 @@ -530,6 +530,18 @@ } #endif + +/* 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) + { + g_object_unref(fd->thumb_pixbuf); + fd->thumb_pixbuf = NULL; + } +} + + /* *----------------------------------------------------------------------------- * xvpics thumbnail support, read-only (private)