Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/backend/ev-document.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2005-04-19 16:03:53 (GMT)
committer Marco Pesenti Gritti <marco@src.gnome.org>2005-04-19 16:03:53 (GMT)
commit6202bf1580c2792a061729aa469b590626551c0d (patch)
treee779e8228a0e2a995e383a5458f9e973bf66bc32 /backend/ev-document.c
parent804d2382429a16dc10f2c0ec28443edf0b9bfac8 (diff)
Initial support for document info. Based on jrb patch.
2005-04-19 Marco Pesenti Gritti <mpg@redhat.com> * 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.
Diffstat (limited to 'backend/ev-document.c')
-rw-r--r--backend/ev-document.c18
1 files changed, 18 insertions, 0 deletions
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;
+
+}