From ed252626b3d584bc3d98649ce2a217c0b82ec50b Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Tue, 08 Dec 2009 12:26:44 +0000 Subject: Use EvPage instead of a render context to get the selection map Selection map doesn't depend on scale/rotation so only the page is needed. --- (limited to 'libdocument') 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, -- cgit v0.9.1