Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/backend/ev-document.h
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2005-06-16 16:40:40 (GMT)
committer Marco Pesenti Gritti <marco@src.gnome.org>2005-06-16 16:40:40 (GMT)
commite9ffd7b5401b32979ea83bc56da4592e80f8ce3e (patch)
tree97318da1b21a7b6a979e3d40eceec207f30f7f45 /backend/ev-document.h
parent4f1722b0523879cd73ee936d483a735e163a6b54 (diff)
Add a get_orientation api. Improve set_orientation.
2005-06-16 Marco Pesenti Gritti <mpg@redhat.com> * backend/ev-document.c: (ev_document_get_orientation): * backend/ev-document.h: * pdf/ev-poppler.cc: * ps/ps-document.c: (ps_document_get_orientation), (ps_document_set_orientation), (ps_document_document_iface_init): Add a get_orientation api. Improve set_orientation. * data/evince-ui.xml: * shell/ev-view.c: (ev_view_set_orientation), (ev_view_rotate_right), (ev_view_rotate_left): * shell/ev-view.h: * shell/ev-window.c: (ev_window_cmd_edit_rotate_left), (ev_window_cmd_edit_rotate_right): Better ui for changing document orientation
Diffstat (limited to 'backend/ev-document.h')
-rw-r--r--backend/ev-document.h3
1 files changed, 2 insertions, 1 deletions
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);