From eb80ecd1f7aa6ff57d2a3324c691274745ca4ed0 Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Sat, 08 May 2010 10:24:36 +0000 Subject: [libdocument] Use EvPage instead of EvRenderContext in get_selected_text() It doesn't depend on scale and rotation so we only need the page. --- (limited to 'libdocument') diff --git a/libdocument/ev-selection.c b/libdocument/ev-selection.c index 260a9ca..25879a9 100644 --- a/libdocument/ev-selection.c +++ b/libdocument/ev-selection.c @@ -53,13 +53,13 @@ ev_selection_render_selection (EvSelection *selection, gchar * ev_selection_get_selected_text (EvSelection *selection, - EvRenderContext *rc, + EvPage *page, EvSelectionStyle style, EvRectangle *points) { EvSelectionInterface *iface = EV_SELECTION_GET_IFACE (selection); - return iface->get_selected_text (selection, rc, style, points); + return iface->get_selected_text (selection, page, style, points); } GdkRegion * diff --git a/libdocument/ev-selection.h b/libdocument/ev-selection.h index 65e0c15..19b61bb 100644 --- a/libdocument/ev-selection.h +++ b/libdocument/ev-selection.h @@ -61,7 +61,7 @@ struct _EvSelectionInterface GdkColor *text, GdkColor *base); gchar * (* get_selected_text) (EvSelection *selection, - EvRenderContext *rc, + EvPage *page, EvSelectionStyle style, EvRectangle *points); GdkRegion * (* get_selection_map) (EvSelection *selection, @@ -82,7 +82,7 @@ void ev_selection_render_selection (EvSelection *selection, GdkColor *text, GdkColor *base); gchar *ev_selection_get_selected_text (EvSelection *selection, - EvRenderContext *rc, + EvPage *page, EvSelectionStyle style, EvRectangle *points); GdkRegion *ev_selection_get_selection_map (EvSelection *selection, -- cgit v0.9.1