]> www.fi.muni.cz Git - evince.git/blobdiff - libdocument/ev-selection.c
[comics] Do not initalize GPid's with -1
[evince.git] / libdocument / ev-selection.c
index 9a7336c63765ed46e0ed18289e36668687fbc355..017036f45b091bc3b38a6992e58b9dfa96c9ff87 100644 (file)
 
 #include "ev-selection.h"
 
 
 #include "ev-selection.h"
 
-static void ev_selection_base_init (gpointer g_class);
-
-GType
-ev_selection_get_type (void)
-{
-       static GType type = 0;
-
-       if (G_UNLIKELY (type == 0))
-       {
-               const GTypeInfo our_info =
-               {
-                       sizeof (EvSelectionIface),
-                       ev_selection_base_init,
-                       NULL,
-               };
-
-               type = g_type_register_static (G_TYPE_INTERFACE,
-                                              "EvSelection",
-                                              &our_info, (GTypeFlags)0);
-       }
-
-       return type;
-}
+EV_DEFINE_INTERFACE (EvSelection, ev_selection, 0)
 
 static void
 
 static void
-ev_selection_base_init (gpointer g_class)
+ev_selection_class_init (EvSelectionIface *klass)
 {
 {
-       static gboolean initialized = FALSE;
-
-       if (!initialized) {
-       }
 }
 
 }
 
-
 void
 ev_selection_render_selection (EvSelection      *selection,
                               EvRenderContext  *rc,
 void
 ev_selection_render_selection (EvSelection      *selection,
                               EvRenderContext  *rc,
@@ -104,13 +77,13 @@ ev_selection_get_selection_region (EvSelection     *selection,
 }
 
 GdkRegion *
 }
 
 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;
 {
        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);
 }
 }