X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;ds=sidebyside;f=shell%2Fev-view.c;h=7fe99552eb4e3ea83c3c9cf6454bad465bcb0537;hb=65c06150e05948eb7b056b0ec5cb9c364b652cfe;hp=b22b1f52545f2f4c65eb165720f58071ca0f6ef9;hpb=9a86f70f0cb42c4262e78430fd36f93baaac41e0;p=evince.git diff --git a/shell/ev-view.c b/shell/ev-view.c index b22b1f52..7fe99552 100644 --- a/shell/ev-view.c +++ b/shell/ev-view.c @@ -236,8 +236,6 @@ static void find_page_at_location (EvView gint *page, gint *x_offset, gint *y_offset); -static void ev_view_queue_draw_page (EvView *view, - gint page); /*** Hyperrefs ***/ static EvLink* get_link_at_location (EvView *view, @@ -1007,14 +1005,6 @@ find_page_at_location (EvView *view, *page = -1; } -static void -ev_view_queue_draw_page (EvView *view, - gint page) -{ - /* FIXME: write */ - gtk_widget_queue_draw (GTK_WIDGET (view)); -} - static gboolean location_in_text (EvView *view, gdouble x, @@ -2409,15 +2399,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 +2423,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,