Mercurial > geeqie
diff src/image.c @ 1294:7ac9664242b2
histogram caching
histogram interface prepared for histogram pane
author | nadvornik |
---|---|
date | Sun, 15 Feb 2009 13:11:21 +0000 |
parents | 10073464e6aa |
children | c37f36b97173 |
line wrap: on
line diff
--- a/src/image.c Sun Feb 15 09:36:53 2009 +0000 +++ b/src/image.c Sun Feb 15 13:11:21 2009 +0000 @@ -538,14 +538,14 @@ DEBUG_1("%s image done", get_exec_time()); - g_object_set(G_OBJECT(imd->pr), "loading", FALSE, NULL); - image_state_unset(imd, IMAGE_STATE_LOADING); - if (options->image.enable_read_ahead && imd->image_fd && !imd->image_fd->pixbuf && image_loader_get_pixbuf(imd->il)) { imd->image_fd->pixbuf = g_object_ref(image_loader_get_pixbuf(imd->il)); image_cache_set(imd, imd->image_fd); } + /* call the callback triggered by image_state after fd->pixbuf is set */ + g_object_set(G_OBJECT(imd->pr), "loading", FALSE, NULL); + image_state_unset(imd, IMAGE_STATE_LOADING); if (!image_loader_get_pixbuf(imd->il)) {