diff options
Diffstat (limited to 'backend')
-rw-r--r-- | backend/ev-document.c | 8 | ||||
-rw-r--r-- | backend/ev-document.h | 3 |
2 files changed, 10 insertions, 1 deletions
diff --git a/backend/ev-document.c b/backend/ev-document.c index 4513df5..9bccc4c 100644 --- a/backend/ev-document.c +++ b/backend/ev-document.c @@ -218,6 +218,14 @@ ev_document_render_pixbuf (EvDocument *document, return retval; } +EvOrientation +ev_document_get_orientation (EvDocument *document) +{ + EvDocumentIface *iface = EV_DOCUMENT_GET_IFACE (document); + + return iface->get_orientation (document); +} + void ev_document_set_orientation (EvDocument *document, EvOrientation orientation) diff --git a/backend/ev-document.h b/backend/ev-document.h index 1fd8fe3..044014f 100644 --- a/backend/ev-document.h +++ b/backend/ev-document.h @@ -57,7 +57,6 @@ typedef enum typedef enum { - EV_ORIENTATION_DOCUMENT, EV_ORIENTATION_PORTRAIT, EV_ORIENTATION_LANDSCAPE, EV_ORIENTATION_UPSIDEDOWN, @@ -98,6 +97,7 @@ struct _EvDocumentIface GdkPixbuf * (* render_pixbuf) (EvDocument *document, int page, double scale); + EvOrientation (* get_orientation) (EvDocument *document); void (* set_orientation) (EvDocument *document, EvOrientation orientation); EvDocumentInfo * (* get_info) (EvDocument *document); @@ -132,6 +132,7 @@ GList *ev_document_get_links (EvDocument *document, GdkPixbuf *ev_document_render_pixbuf (EvDocument *document, int page, double scale); +EvOrientation ev_document_get_orientation (EvDocument *document); void ev_document_set_orientation (EvDocument *document, EvOrientation orientation); |