Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@sugarlabs.org>2009-01-16 08:49:26 (GMT)
committer Carlos Garcia Campos <carlosgc@src.gnome.org>2009-01-16 08:49:26 (GMT)
commita76a08f79b5f83455394b955d8f789b58f131fef (patch)
tree286df8953119bdfce0ba6f5a3aa38b6928a5b042 /shell
parent93538f75e38f05bde8129a63245fe191ae4d295e (diff)
Expose ev_view_set_zoom_for_size for embedders to use. Fixes bug #567785.
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
Diffstat (limited to 'shell')
-rw-r--r--shell/ev-view.c2
-rw-r--r--shell/ev-view.h5
2 files changed, 6 insertions, 1 deletions
diff --git a/shell/ev-view.c b/shell/ev-view.c
index ac4748e..ce5d057 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 d41edd1..e3b3829 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);