From: Tomeu Vizoso Date: Fri, 16 Jan 2009 08:49:26 +0000 (+0000) Subject: Expose ev_view_set_zoom_for_size for embedders to use. Fixes bug #567785. X-Git-Tag: EVINCE_2_25_5~25 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=a76a08f79b5f83455394b955d8f789b58f131fef;p=evince.git Expose ev_view_set_zoom_for_size for embedders to use. Fixes bug #567785. 2009-01-16 Tomeu Vizoso * shell/ev-view.c: (ev_view_set_zoom_for_size): Expose ev_view_set_zoom_for_size for embedders to use. Fixes bug #567785. svn path=/trunk/; revision=3337 --- diff --git a/ChangeLog b/ChangeLog index 050576f1..86bbe9cd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-01-16 Tomeu Vizoso + + * shell/ev-view.c: (ev_view_set_zoom_for_size): + + Expose ev_view_set_zoom_for_size for embedders to use. Fixes bug + #567785. + 2009-01-16 Carlos Garcia Campos * shell/ev-window.c: (reload_remote_copy_progress_cb), diff --git a/shell/ev-view.c b/shell/ev-view.c index ac4748e0..ce5d0579 100644 --- a/shell/ev-view.c +++ b/shell/ev-view.c @@ -5045,7 +5045,7 @@ ev_view_zoom_for_size_single_page (EvView *view, ev_view_set_zoom (view, scale, FALSE); } -static void +void ev_view_set_zoom_for_size (EvView *view, int width, int height, diff --git a/shell/ev-view.h b/shell/ev-view.h index d41edd1b..e3b38295 100644 --- a/shell/ev-view.h +++ b/shell/ev-view.h @@ -96,6 +96,11 @@ void ev_view_zoom_out (EvView *view); void ev_view_set_zoom (EvView *view, double factor, gboolean relative); +void ev_view_set_zoom_for_size (EvView *view, + int width, + int height, + int vsb_width, + int hsb_height); double ev_view_get_zoom (EvView *view); void ev_view_set_screen_dpi (EvView *view, gdouble dpi);