diff options
author | Nickolay V. Shmyrev <nshmyrev@src.gnome.org> | 2005-06-07 23:28:54 (GMT) |
---|---|---|
committer | Nickolay V. Shmyrev <nshmyrev@src.gnome.org> | 2005-06-07 23:28:54 (GMT) |
commit | bca369672136e5ff831ece9832afd42085808fba (patch) | |
tree | f40b0b02036bb97a0d4586077298be7a02e2de03 /backend/ev-document.c | |
parent | 11bd1d65957b444c7491e4fb252f3f50ce8ad3d2 (diff) |
PageCache and EvJobs are moved from backend to shell. Two new jobs to
load document in background and a statusbar to display this process.
FileChooser now can select multiple uris.
Diffstat (limited to 'backend/ev-document.c')
-rw-r--r-- | backend/ev-document.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/backend/ev-document.c b/backend/ev-document.c index 3793050..d413083 100644 --- a/backend/ev-document.c +++ b/backend/ev-document.c @@ -23,7 +23,6 @@ #include "ev-document.h" #include "ev-backend-marshalers.h" -#include "ev-job-queue.h" static void ev_document_class_init (gpointer g_class); @@ -69,24 +68,6 @@ ev_document_class_init (gpointer g_class) { } -#define PAGE_CACHE_STRING "ev-page-cache" - -EvPageCache * -ev_document_get_page_cache (EvDocument *document) -{ - EvPageCache *page_cache; - - g_return_val_if_fail (EV_IS_DOCUMENT (document), NULL); - - page_cache = g_object_get_data (G_OBJECT (document), PAGE_CACHE_STRING); - if (page_cache == NULL) { - page_cache = _ev_page_cache_new (document); - g_object_set_data_full (G_OBJECT (document), PAGE_CACHE_STRING, page_cache, g_object_unref); - } - - return page_cache; -} - GMutex * ev_document_get_doc_mutex (void) { @@ -120,10 +101,6 @@ ev_document_load (EvDocument *document, LOG ("ev_document_load"); retval = iface->load (document, uri, error); - /* Call this to make the initial cached copy */ - if (retval) - ev_document_get_page_cache (document); - return retval; } |