Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--backend/pdf/ev-poppler.cc6
-rw-r--r--libdocument/ev-selection.c8
-rw-r--r--libdocument/ev-selection.h4
-rw-r--r--libview/ev-jobs.c2
4 files changed, 10 insertions, 10 deletions
diff --git a/backend/pdf/ev-poppler.cc b/backend/pdf/ev-poppler.cc
index 784295c..506e934 100644
--- a/backend/pdf/ev-poppler.cc
+++ b/backend/pdf/ev-poppler.cc
@@ -2012,15 +2012,15 @@ pdf_selection_get_selection_region (EvSelection *selection,
}
static GdkRegion *
-pdf_selection_get_selection_map (EvSelection *selection,
- EvRenderContext *rc)
+pdf_selection_get_selection_map (EvSelection *selection,
+ EvPage *page)
{
PopplerPage *poppler_page;
PopplerRectangle points;
GList *region;
GdkRegion *retval;
- poppler_page = POPPLER_PAGE (rc->page->backend_page);
+ poppler_page = POPPLER_PAGE (page->backend_page);
points.x1 = 0.0;
points.y1 = 0.0;
diff --git a/libdocument/ev-selection.c b/libdocument/ev-selection.c
index c19ac2a..017036f 100644
--- a/libdocument/ev-selection.c
+++ b/libdocument/ev-selection.c
@@ -77,13 +77,13 @@ ev_selection_get_selection_region (EvSelection *selection,
}
GdkRegion *
-ev_selection_get_selection_map (EvSelection *selection,
- EvRenderContext *rc)
+ev_selection_get_selection_map (EvSelection *selection,
+ EvPage *page)
{
EvSelectionIface *iface = EV_SELECTION_GET_IFACE (selection);
if (!iface->get_selection_map)
return NULL;
-
- return iface->get_selection_map (selection, rc);
+
+ return iface->get_selection_map (selection, page);
}
diff --git a/libdocument/ev-selection.h b/libdocument/ev-selection.h
index 7a1252a..4e89606 100644
--- a/libdocument/ev-selection.h
+++ b/libdocument/ev-selection.h
@@ -65,7 +65,7 @@ struct _EvSelectionIface
EvSelectionStyle style,
EvRectangle *points);
GdkRegion * (* get_selection_map) (EvSelection *selection,
- EvRenderContext *rc);
+ EvPage *page);
GdkRegion * (* get_selection_region) (EvSelection *selection,
EvRenderContext *rc,
EvSelectionStyle style,
@@ -86,7 +86,7 @@ gchar *ev_selection_get_selected_text (EvSelection *selection,
EvSelectionStyle style,
EvRectangle *points);
GdkRegion *ev_selection_get_selection_map (EvSelection *selection,
- EvRenderContext *rc);
+ EvPage *page);
GdkRegion *ev_selection_get_selection_region (EvSelection *selection,
EvRenderContext *rc,
EvSelectionStyle style,
diff --git a/libview/ev-jobs.c b/libview/ev-jobs.c
index a0866d5..620ea66 100644
--- a/libview/ev-jobs.c
+++ b/libview/ev-jobs.c
@@ -553,7 +553,7 @@ ev_job_render_run (EvJob *job)
if ((job_render->flags & EV_RENDER_INCLUDE_TEXT) && EV_IS_SELECTION (job->document))
job_render->text_mapping =
- ev_selection_get_selection_map (EV_SELECTION (job->document), rc);
+ ev_selection_get_selection_map (EV_SELECTION (job->document), job_render->ev_page);
if ((job_render->flags & EV_RENDER_INCLUDE_LINKS) && EV_IS_DOCUMENT_LINKS (job->document))
job_render->link_mapping =
ev_document_links_get_links (EV_DOCUMENT_LINKS (job->document), job_render->page);