Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-view.c
diff options
context:
space:
mode:
authorJonathan Blandford <jrb@redhat.com>2005-08-15 04:41:30 (GMT)
committer Jonathan Blandford <jrb@src.gnome.org>2005-08-15 04:41:30 (GMT)
commit09458b5fc51b3504582e76a12b7a57cbba332ac0 (patch)
treeabdc6fb099a4fab1cd79f9bd7a32f32aa6142ec1 /shell/ev-view.c
parent6e5cbc7bbdd23310885fd983499008f544b269ee (diff)
* shell/ev-metadata-manager.c: (ev_metadata_manager_init): *
Mon Aug 15 00:40:21 2005 Jonathan Blandford <jrb@redhat.com> * pdf/ev-poppler.cc: * shell/ev-metadata-manager.c: (ev_metadata_manager_init): * shell/ev-view.c: (ev_view_rotate_left), (ev_view_set_rotation), (ev_view_get_rotation): * shell/ev-view.h: * shell/ev-window.c: (setup_view_from_metadata), (save_rotation_to_file), (ev_window_cmd_edit_rotate_left), (ev_window_cmd_edit_rotate_right): Fix rotation. Save it to disk.
Diffstat (limited to 'shell/ev-view.c')
-rw-r--r--shell/ev-view.c26
1 files changed, 17 insertions, 9 deletions
diff --git a/shell/ev-view.c b/shell/ev-view.c
index b22b1f5..07fee0d 100644
--- a/shell/ev-view.c
+++ b/shell/ev-view.c
@@ -2409,15 +2409,6 @@ ev_view_zoom_out (EvView *view)
ev_view_set_zoom (view, ZOOM_OUT_FACTOR, TRUE);
}
-static void
-ev_view_set_rotation (EvView *view, int rotation)
-{
- view->rotation = rotation;
-
- ev_pixbuf_cache_clear (view->pixbuf_cache);
- gtk_widget_queue_resize (GTK_WIDGET (view));
-}
-
void
ev_view_rotate_right (EvView *view)
{
@@ -2442,6 +2433,23 @@ ev_view_rotate_left (EvView *view)
ev_view_set_rotation (view, rotation);
}
+void
+ev_view_set_rotation (EvView *view, int rotation)
+{
+ view->rotation = rotation;
+
+ if (view->pixbuf_cache) {
+ ev_pixbuf_cache_clear (view->pixbuf_cache);
+ gtk_widget_queue_resize (GTK_WIDGET (view));
+ }
+}
+
+int
+ev_view_get_rotation (EvView *view)
+{
+ return view->rotation;
+}
+
static double
zoom_for_size_fit_width (int doc_width,
int doc_height,