]> www.fi.muni.cz Git - evince.git/blobdiff - libdocument/ev-selection.c
[libdocument] Use EvPage instead of EvRenderContext in get_selected_text()
[evince.git] / libdocument / ev-selection.c
index e087af6e6e2f4f9926081d209903438e178e885f..25879a9202ffc63e14054d04a807c9b8d7c46cc6 100644 (file)
 
 #include "ev-selection.h"
 
-EV_DEFINE_INTERFACE (EvSelection, ev_selection, 0)
+G_DEFINE_INTERFACE (EvSelection, ev_selection, 0)
 
 static void
-ev_selection_class_init (EvSelectionIface *klass)
+ev_selection_default_init (EvSelectionInterface *klass)
 {
 }
 
@@ -39,7 +39,7 @@ ev_selection_render_selection (EvSelection      *selection,
                               GdkColor         *text,
                               GdkColor         *base)
 {
-       EvSelectionIface *iface = EV_SELECTION_GET_IFACE (selection);
+       EvSelectionInterface *iface = EV_SELECTION_GET_IFACE (selection);
 
        if (!iface->render_selection)
                return;
@@ -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)
 {
-       EvSelectionIface *iface = EV_SELECTION_GET_IFACE (selection);
+       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 *
@@ -68,7 +68,7 @@ ev_selection_get_selection_region (EvSelection     *selection,
                                   EvSelectionStyle style,
                                   EvRectangle     *points)
 {
-       EvSelectionIface *iface = EV_SELECTION_GET_IFACE (selection);
+       EvSelectionInterface *iface = EV_SELECTION_GET_IFACE (selection);
 
        if (!iface->get_selection_region)
                return NULL;
@@ -80,7 +80,7 @@ GdkRegion *
 ev_selection_get_selection_map (EvSelection *selection,
                                EvPage      *page)
 {
-       EvSelectionIface *iface = EV_SELECTION_GET_IFACE (selection);
+       EvSelectionInterface *iface = EV_SELECTION_GET_IFACE (selection);
 
        if (!iface->get_selection_map)
                return NULL;