]> www.fi.muni.cz Git - evince.git/blobdiff - libview/ev-pixbuf-cache.h
Use a dynamic pixbuf cache size based on document page size
[evince.git] / libview / ev-pixbuf-cache.h
index af7154687dee48778cdd8a179e6a94bf16452621..bdf6743ccf72cefc7ab8a7e5c425b66bfee5225c 100644 (file)
@@ -31,6 +31,7 @@
 #include <gtk/gtk.h>
 
 #include <evince-document.h>
+#include <evince-view.h>
 
 G_BEGIN_DECLS
 
@@ -55,7 +56,10 @@ typedef struct _EvPixbufCacheClass  EvPixbufCacheClass;
 
 GType          ev_pixbuf_cache_get_type             (void) G_GNUC_CONST;
 EvPixbufCache *ev_pixbuf_cache_new                  (GtkWidget     *view,
-                                                    EvDocument    *document);
+                                                    EvDocumentModel *model,
+                                                    gsize            max_size);
+void           ev_pixbuf_cache_set_max_size         (EvPixbufCache   *pixbuf_cache,
+                                                    gsize            max_size);
 void           ev_pixbuf_cache_set_page_range       (EvPixbufCache *pixbuf_cache,
                                                     gint           start_page,
                                                     gint           end_page,