Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-view.h
diff options
context:
space:
mode:
authorMartin Kretzschmar <martink@src.gnome.org>2005-02-15 08:26:23 (GMT)
committer Martin Kretzschmar <martink@src.gnome.org>2005-02-15 08:26:23 (GMT)
commit42ddc3073ecb88271a0ffc74326878627d71b34e (patch)
tree013c5b6a44139929aa1c478033bc39d7a65ae0ff /shell/ev-view.h
parent62e17675ff8a850e77cd23a8b8946d68576caa32 (diff)
add parameters providing allocation width and height without scrollbars
* shell/ev-view.c (ev_view_best_fit, ev_view_fit_width): add parameters providing allocation width and height without scrollbars and width of a possible vertical scrollbar. With this additional information the functions can work as intended. Unfortunately they're not idempotent. We should transform these commands to toggles. Fixes Bug #164976 Initial patch by Stephane Loeuillet, then heavily modified. * shell/ev-view.h: update prototypes. * shell/ev-window.c (ev_window_cmd_view_best_fit) (ev_window_cmd_view_page_width): provide EvView fit functions with all the information they need. Formulas to calculate this information taken from GtkScrolledWindow.
Diffstat (limited to 'shell/ev-view.h')
-rw-r--r--shell/ev-view.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/ev-view.h b/shell/ev-view.h
index a72ed6b..f108f9f 100644
--- a/shell/ev-view.h
+++ b/shell/ev-view.h
@@ -58,8 +58,8 @@ int ev_view_get_page (EvView *view);
void ev_view_zoom_in (EvView *view);
void ev_view_zoom_out (EvView *view);
void ev_view_normal_size (EvView *view);
-void ev_view_best_fit (EvView *view);
-void ev_view_fit_width (EvView *view);
+void ev_view_best_fit (EvView *view, int width, int height);
+void ev_view_fit_width (EvView *view, int width, int height, int vsb_width);
/* Find */
void ev_view_find_next (EvView *view);