]> www.fi.muni.cz Git - evince.git/commit
Rework the jobs system in order to make it simpler and more extensible. It
authorCarlos Garcia Campos <carlosgc@gnome.org>
Sun, 3 Aug 2008 11:01:28 +0000 (11:01 +0000)
committerCarlos Garcia Campos <carlosgc@src.gnome.org>
Sun, 3 Aug 2008 11:01:28 +0000 (11:01 +0000)
commite71d27db284ccf431167816167bf72f1e23c334d
tree1f1d9aff48947adcbaecbdfe3b181f6adb00cb3e
parenta68744f0210c49bcaded78edd29e7198bf58f8e7
Rework the jobs system in order to make it simpler and more extensible. It

2008-08-03  Carlos Garcia Campos  <carlosgc@gnome.org>

* libdocument/ev-document.[ch]: (ev_document_doc_mutex_trylock),
(ev_document_fc_mutex_trylock):
* shell/Makefile.am:
* shell/ev-job-queue.[ch]:
* shell/ev-job-scheduler.[ch]:
* shell/ev-jobs.[ch]: (ev_job_init), (ev_job_dispose),
(ev_job_class_init), (emit_finished), (ev_job_emit_finished),
(ev_job_run), (ev_job_cancel), (ev_job_failed),
(ev_job_failed_from_error), (ev_job_succeeded),
(ev_job_is_finished), (ev_job_is_failed), (ev_job_get_run_mode),
(ev_job_set_run_mode), (ev_job_links_init), (ev_job_links_run),
(ev_job_links_class_init), (ev_job_render_init),
(notify_page_ready), (ev_job_render_page_ready),
(ev_job_render_run), (ev_job_render_class_init),
(ev_job_thumbnail_init), (ev_job_thumbnail_run),
(ev_job_thumbnail_class_init), (ev_job_fonts_init),
(ev_job_fonts_run), (ev_job_fonts_class_init), (ev_job_load_init),
(ev_job_load_run), (ev_job_load_class_init), (ev_job_save_init),
(ev_job_save_dispose), (ev_job_save_run),
(ev_job_save_class_init), (ev_job_print_init),
(ev_job_print_dispose), (ev_job_print_run),
(ev_job_print_class_init):
* shell/ev-page-cache.c:
* shell/ev-pixbuf-cache.[ch]: (dispose_cache_job_info),
(check_job_size_and_unref), (move_one_job),
(copy_job_to_job_info), (add_job),
(ev_pixbuf_cache_add_jobs_if_needed):
* shell/ev-properties-fonts.c: (ev_properties_fonts_dispose),
(job_fonts_finished_cb), (job_fonts_updated_cb),
(ev_properties_fonts_set_document):
* shell/ev-sidebar-links.c: (ev_sidebar_links_dispose),
(ev_sidebar_links_set_document):
* shell/ev-sidebar-thumbnails.c: (clear_range), (add_range),
(ev_sidebar_thumbnails_set_document),
(ev_sidebar_thumbnails_clear_job):
* shell/ev-view-private.h:
* shell/ev-view.c:
* shell/ev-window.c: (ev_window_clear_thumbnail_job),
(ev_window_refresh_window_thumbnail), (password_dialog_response),
(ev_window_clear_load_job), (ev_window_clear_reload_job),
(ev_window_load_job_cb), (ev_window_reload_job_cb),
(window_open_file_copy_ready_cb), (ev_window_open_uri),
(ev_window_reload_document), (ev_window_clear_save_job),
(ev_window_save_job_cb), (file_save_dialog_response_cb),
(ev_window_clear_print_job), (ev_window_print_job_cb),
(ev_window_print_dialog_response_cb):
* shell/main.c: (main):

Rework the jobs system in order to make it simpler and more
extensible. It allows to run jobs in the main loop instead of
using a thread when it's appropriate like the fonts job. Now it's
also possible to cancel jobs that are currently running.

svn path=/trunk/; revision=3092
19 files changed:
ChangeLog
libdocument/ev-document.c
libdocument/ev-document.h
shell/Makefile.am
shell/ev-job-queue.c [deleted file]
shell/ev-job-scheduler.c [new file with mode: 0644]
shell/ev-job-scheduler.h [moved from shell/ev-job-queue.h with 51% similarity]
shell/ev-jobs.c
shell/ev-jobs.h
shell/ev-page-cache.c
shell/ev-pixbuf-cache.c
shell/ev-pixbuf-cache.h
shell/ev-properties-fonts.c
shell/ev-sidebar-links.c
shell/ev-sidebar-thumbnails.c
shell/ev-view-private.h
shell/ev-view.c
shell/ev-window.c
shell/main.c