]> www.fi.muni.cz Git - evince.git/blobdiff - libdocument/ev-selection.c
[libdocument] Remove redundant macro definition
[evince.git] / libdocument / ev-selection.c
index c19ac2a36a15938d041fc45b99ca38f7edf704fb..260a9ca46906c2b03370a0c6e27468a281d72698 100644 (file)
@@ -14,7 +14,7 @@
  *
  *  You should have received a copy of the GNU General Public License
  *  along with this program; if not, write to the Free Software
- *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  *
  */
 
 
 #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;
@@ -57,7 +57,7 @@ ev_selection_get_selected_text (EvSelection      *selection,
                                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);
 }
@@ -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;
@@ -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);
+       EvSelectionInterface *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);
 }