summaryrefslogtreecommitdiff
path: root/libview/ev-pixbuf-cache.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2019-11-27 11:37:43 +0100
committerraveit65 <[email protected]>2019-12-08 19:16:40 +0100
commit018d33c2c8c863ecdbfa46c52e9ff374c24ae6f3 (patch)
tree9543009029a779c0903656fa61d3d8e66b86976b /libview/ev-pixbuf-cache.c
parentea8536e3138fb2954424987fd6cfad32716773bc (diff)
downloadatril-018d33c2c8c863ecdbfa46c52e9ff374c24ae6f3.tar.bz2
atril-018d33c2c8c863ecdbfa46c52e9ff374c24ae6f3.tar.xz
Revert "First page should not reloaded"
This reverts commit 00fad2c0d0fcdade570a08f046e85a4558f1fc0c. and fixes https://github.com/mate-desktop/atril/issues/404
Diffstat (limited to 'libview/ev-pixbuf-cache.c')
-rw-r--r--libview/ev-pixbuf-cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libview/ev-pixbuf-cache.c b/libview/ev-pixbuf-cache.c
index ca96d484..99e5b731 100644
--- a/libview/ev-pixbuf-cache.c
+++ b/libview/ev-pixbuf-cache.c
@@ -103,7 +103,7 @@ static gboolean new_selection_surface_needed(EvPixbufCache *pixbuf_cac
#define PAGE_CACHE_LEN(pixbuf_cache) \
(pixbuf_cache->start_page>=0?((pixbuf_cache->end_page - pixbuf_cache->start_page) + 1):0)
-#define MAX_PRELOADED_PAGES 20
+#define MAX_PRELOADED_PAGES 3
G_DEFINE_TYPE (EvPixbufCache, ev_pixbuf_cache, G_TYPE_OBJECT)