From 09458b5fc51b3504582e76a12b7a57cbba332ac0 Mon Sep 17 00:00:00 2001 From: Jonathan Blandford Date: Mon, 15 Aug 2005 04:41:30 +0000 Subject: * shell/ev-metadata-manager.c: (ev_metadata_manager_init): * Mon Aug 15 00:40:21 2005 Jonathan Blandford * 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. --- (limited to 'shell/ev-view.c') 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, -- cgit v0.9.1