Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/backend/ev-jobs.h
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2005-06-07 09:20:35 (GMT)
committer Marco Pesenti Gritti <marco@src.gnome.org>2005-06-07 09:20:35 (GMT)
commit421d3d8b0f2f2432ec02f57677da2964d339f2d8 (patch)
treeac1ccd139b4b99b15b8f355e3b8aeca79e439621 /backend/ev-jobs.h
parent2380ada377881c8e6bf00368f713ebd72e355dda (diff)
Add an async renderer interface (method + callback) which is useful for
2005-06-07 Marco Pesenti Gritti <mpg@redhat.com> * backend/Makefile.am: * backend/ev-async-renderer.c: (ev_async_renderer_get_type), (ev_async_renderer_class_init), (ev_async_renderer_render_pixbuf): * backend/ev-async-renderer.h: Add an async renderer interface (method + callback) which is useful for backends like ps. * backend/ev-job-queue.c: (remove_job_from_async_queue), (add_job_to_async_queue), (job_finished_cb), (handle_job), (ev_job_queue_run_next), (ev_job_queue_init), (find_queue), (ev_job_queue_add_job), (move_job_async), (move_job), (ev_job_queue_update_job), (ev_job_queue_remove_job): Add queues for async renderer, these are executed on the main thread. * backend/ev-jobs.c: (ev_job_render_new), (render_finished_cb), (ev_job_render_run): * backend/ev-jobs.h: If the backend support async renderer interface use it. * ps/ps-document.c: (ps_document_init), (push_pixbuf), (setup_pixmap), (ps_document_get_type), (ps_async_renderer_render_pixbuf), (ps_document_document_iface_init), (ps_async_renderer_iface_init): Implement async renderer interface.
Diffstat (limited to 'backend/ev-jobs.h')
-rw-r--r--backend/ev-jobs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/backend/ev-jobs.h b/backend/ev-jobs.h
index 1b64e01..c89aa1e 100644
--- a/backend/ev-jobs.h
+++ b/backend/ev-jobs.h
@@ -67,6 +67,7 @@ struct _EvJob
GObject parent;
EvDocument *document;
gboolean finished;
+ gboolean async;
};
struct _EvJobClass