]> www.fi.muni.cz Git - evince.git/commitdiff
Expose ev_view_set_zoom_for_size for embedders to use. Fixes bug #567785.
authorTomeu Vizoso <tomeu@sugarlabs.org>
Fri, 16 Jan 2009 08:49:26 +0000 (08:49 +0000)
committerCarlos Garcia Campos <carlosgc@src.gnome.org>
Fri, 16 Jan 2009 08:49:26 +0000 (08:49 +0000)
2009-01-16  Tomeu Vizoso  <tomeu@sugarlabs.org>

* 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

ChangeLog
shell/ev-view.c
shell/ev-view.h

index 050576f170f586f88da6f39b0dff94aa3132eeb9..86bbe9cd57d60129374b2fbe39c3030e89d994bd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-01-16  Tomeu Vizoso  <tomeu@sugarlabs.org>
+
+       * 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  <carlosgc@gnome.org>
 
        * shell/ev-window.c: (reload_remote_copy_progress_cb),
index ac4748e00962295f67ec44fe2e2a1b458f90743f..ce5d0579465d12c05d71ae60b69f065706d54f00 100644 (file)
@@ -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,
index d41edd1bf617e40072907b0702fbee51c7b6a4a0..e3b38295b0692c3fb981211dfbc159b9aa1b2f05 100644 (file)
@@ -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);