From 6202bf1580c2792a061729aa469b590626551c0d Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Tue, 19 Apr 2005 16:03:53 +0000 Subject: Initial support for document info. Based on jrb patch. 2005-04-19 Marco Pesenti Gritti * backend/Makefile.am: * backend/ev-document.c: (ev_document_render_get_info): * backend/ev-document.h: * pdf/ev-poppler.cc: Initial support for document info. Based on jrb patch. --- (limited to 'backend/ev-document.c') diff --git a/backend/ev-document.c b/backend/ev-document.c index 124a626..6aa0504 100644 --- a/backend/ev-document.c +++ b/backend/ev-document.c @@ -237,3 +237,21 @@ ev_document_render_pixbuf (EvDocument *document, return retval; } + +EvDocumentInfo * +ev_document_render_get_info (EvDocument *document) +{ + EvDocumentIface *iface = EV_DOCUMENT_GET_IFACE (document); + EvDocumentInfo *retval = NULL; + + LOG ("ev_document_render_pixbuf"); + + if (iface->get_info != NULL) + retval = iface->get_info (document); + + if (retval == NULL) + retval = g_new0 (EvDocumentInfo, 1); + + return retval; + +} -- cgit v0.9.1