summaryrefslogtreecommitdiff
path: root/libview/ev-jobs.c
diff options
context:
space:
mode:
authorAntia Puentes <[email protected]>2013-07-10 17:47:26 +0200
committerraveit65 <[email protected]>2017-09-06 18:25:34 +0200
commit7a9f2cc8fa9c783b4b00c7990bc01ec6b64018ab (patch)
treed0afec61293f674993c18126522ad7de3583b23d /libview/ev-jobs.c
parent2a7eb0b7ae2af2fa56e92e6c4a3b241833c3ea96 (diff)
downloadatril-7a9f2cc8fa9c783b4b00c7990bc01ec6b64018ab.tar.bz2
atril-7a9f2cc8fa9c783b4b00c7990bc01ec6b64018ab.tar.xz
libview: Get text attributes from backend and save them in page cache
origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=4592007
Diffstat (limited to 'libview/ev-jobs.c')
-rw-r--r--libview/ev-jobs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libview/ev-jobs.c b/libview/ev-jobs.c
index c82ac6b5..e350376b 100644
--- a/libview/ev-jobs.c
+++ b/libview/ev-jobs.c
@@ -760,6 +760,10 @@ ev_job_page_data_run (EvJob *job)
ev_page,
&(job_pd->text_layout),
&(job_pd->text_layout_length));
+ if ((job_pd->flags & EV_PAGE_DATA_INCLUDE_TEXT_ATTRS) && EV_IS_DOCUMENT_TEXT (job->document))
+ job_pd ->text_attrs =
+ ev_document_text_get_text_attrs (EV_DOCUMENT_TEXT (job->document),
+ ev_page);
if ((job_pd->flags & EV_PAGE_DATA_INCLUDE_TEXT_LOG_ATTRS) && job_pd->text) {
job_pd->text_log_attrs_length = g_utf8_strlen (job_pd->text, -1);
job_pd->text_log_attrs = g_new0 (PangoLogAttr, job_pd->text_log_attrs_length + 1);