G_OBJECT_CLASS (comics_document_parent_class)->finalize (object);
}
-static EvDocumentInfo *
-comics_document_get_info (EvDocument *document)
-{
- EvDocumentInfo *info;
- info = g_new0 (EvDocumentInfo, 1);
- return info;
-}
-
static void
comics_document_class_init (ComicsDocumentClass *klass)
{
ev_document_class->get_n_pages = comics_document_get_n_pages;
ev_document_class->get_page_size = comics_document_get_page_size;
ev_document_class->render = comics_document_render;
- ev_document_class->get_info = comics_document_get_info;
}
static void
return surface;
}
-static EvDocumentInfo *
-djvu_document_get_info (EvDocument *document)
-{
- EvDocumentInfo *info;
-
- info = g_new0 (EvDocumentInfo, 1);
-
- return info;
-}
-
static void
djvu_document_finalize (GObject *object)
{
ev_document_class->get_n_pages = djvu_document_get_n_pages;
ev_document_class->get_page_size = djvu_document_get_page_size;
ev_document_class->render = djvu_document_render;
- ev_document_class->get_info = djvu_document_get_info;
}
static gchar *
G_OBJECT_CLASS (dvi_document_parent_class)->finalize (object);
}
-static EvDocumentInfo *
-dvi_document_get_info (EvDocument *document)
-{
- EvDocumentInfo *info;
-
- info = g_new0 (EvDocumentInfo, 1);
-
- return info;
-}
-
static void
dvi_document_class_init (DviDocumentClass *klass)
{
ev_document_class->get_n_pages = dvi_document_get_n_pages;
ev_document_class->get_page_size = dvi_document_get_page_size;
ev_document_class->render = dvi_document_render;
- ev_document_class->get_info = dvi_document_get_info;
}
static void
return scaled_surface;
}
-static EvDocumentInfo *
-impress_document_get_info (EvDocument *document)
-{
- EvDocumentInfo *info;
-
- info = g_new0 (EvDocumentInfo, 1);
- info->fields_mask = 0;
-
- return info;
-}
-
static void
impress_document_finalize (GObject *object)
{
ev_document_class->get_n_pages = impress_document_get_n_pages;
ev_document_class->get_page_size = impress_document_get_page_size;
ev_document_class->render = impress_document_render;
- ev_document_class->get_info = impress_document_get_info;
}
static GdkPixbuf *
G_OBJECT_CLASS (pixbuf_document_parent_class)->finalize (object);
}
-static EvDocumentInfo *
-pixbuf_document_get_info (EvDocument *document)
-{
- EvDocumentInfo *info;
-
- info = g_new0 (EvDocumentInfo, 1);
- info->fields_mask = 0;
-
- return info;
-}
-
static void
pixbuf_document_class_init (PixbufDocumentClass *klass)
{
ev_document_class->get_n_pages = pixbuf_document_get_n_pages;
ev_document_class->get_page_size = pixbuf_document_get_page_size;
ev_document_class->render = pixbuf_document_render;
- ev_document_class->get_info = pixbuf_document_get_info;
}
static GdkPixbuf *
return NULL;
}
-static EvDocumentInfo *
-tiff_document_get_info (EvDocument *document)
-{
- EvDocumentInfo *info;
-
- info = g_new0 (EvDocumentInfo, 1);
- info->fields_mask = 0;
-
- return info;
-}
-
static void
tiff_document_finalize (GObject *object)
{
ev_document_class->get_page_size = tiff_document_get_page_size;
ev_document_class->render = tiff_document_render;
ev_document_class->get_page_label = tiff_document_get_page_label;
- ev_document_class->get_info = tiff_document_get_info;
}
static GdkPixbuf *
return ev_page_new (index);
}
+static EvDocumentInfo *
+ev_document_impl_get_info (EvDocument *document)
+{
+ return g_new0 (EvDocumentInfo, 1);
+}
+
static void
ev_document_init (EvDocument *document)
{
ev_document_class_init (EvDocumentClass *klass)
{
klass->get_page = ev_document_impl_get_page;
+ klass->get_info = ev_document_impl_get_info;
}
GMutex *