Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-jobs.c
diff options
context:
space:
mode:
authorJonathan Blandford <jrb@redhat.com>2005-07-01 04:11:08 (GMT)
committer Jonathan Blandford <jrb@src.gnome.org>2005-07-01 04:11:08 (GMT)
commit83dc7cff581241907168d6f61ce25f798b8c442f (patch)
tree912178692278acd1752ded4f0a372bf50ffbb8cf /shell/ev-jobs.c
parent695641059974320c2ae485b81710a750686cff6a (diff)
Add I-Beam support to EvView. Now we can see where we can select! Sweet!
Fri Jul 1 00:10:15 2005 Jonathan Blandford <jrb@redhat.com> * backend/ev-selection.c: (ev_selection_get_selection_region), (ev_selection_get_selection_map): * backend/ev-selection.h: * pdf/ev-poppler.cc: * shell/ev-jobs.c: (ev_job_render_new), (ev_job_render_run): * shell/ev-jobs.h: * shell/ev-pixbuf-cache.c: (dispose_cache_job_info), (job_finished_cb), (copy_job_to_job_info), (add_job_if_needed), (ev_pixbuf_cache_get_text_mapping): * shell/ev-pixbuf-cache.h: * shell/ev-view.c: (location_in_text), (ev_view_motion_notify_event), (ev_view_set_cursor): Add I-Beam support to EvView. Now we can see where we can select! Sweet!
Diffstat (limited to 'shell/ev-jobs.c')
-rw-r--r--shell/ev-jobs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/shell/ev-jobs.c b/shell/ev-jobs.c
index 3bc2fa8..4cc0c25 100644
--- a/shell/ev-jobs.c
+++ b/shell/ev-jobs.c
@@ -227,6 +227,7 @@ ev_job_render_new (EvDocument *document,
gint height,
EvRectangle *selection_points,
gboolean include_links,
+ gboolean include_text,
gboolean include_selection)
{
EvJobRender *job;
@@ -242,6 +243,7 @@ ev_job_render_new (EvDocument *document,
job->target_width = width;
job->target_height = height;
job->include_links = include_links;
+ job->include_text = include_text;
job->include_selection = include_selection;
if (include_selection)
@@ -281,6 +283,8 @@ ev_job_render_run (EvJobRender *job)
job->pixbuf = ev_document_render_pixbuf (EV_JOB (job)->document, job->rc);
if (job->include_links)
job->link_mapping = ev_document_get_links (EV_JOB (job)->document, job->rc->page);
+ if (job->include_text && EV_IS_SELECTION (EV_JOB (job)->document))
+ job->text_mapping = ev_selection_get_selection_map (EV_SELECTION (EV_JOB (job)->document), job->rc);
if (job->include_selection && EV_IS_SELECTION (EV_JOB (job)->document))
ev_selection_render_selection (EV_SELECTION (EV_JOB (job)->document),
job->rc,