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:
authorJonathan Blandford <jrb@redhat.com>2005-05-20 05:08:11 (GMT)
committer Jonathan Blandford <jrb@src.gnome.org>2005-05-20 05:08:11 (GMT)
commit80a9ffebfe5125584341d4fb005ee1a29219c970 (patch)
tree0d0f5808410af30a61a44b0de2317affad2bb547 /shell/ev-view.h
parent3ca7f5212877878bc98c8a05354df0d65f2e36a8 (diff)
Use gdk_window_scroll instead of gtk_widget_queue_draw. Massive speedups
Fri May 20 01:07:15 2005 Jonathan Blandford <jrb@redhat.com> * shell/ev-view.c (view_update_adjustments): Use gdk_window_scroll instead of gtk_widget_queue_draw. Massive speedups in scrolling. Fri May 20 01:05:10 2005 Jonathan Blandford <jrb@redhat.com> * .cvsignore: * shell/ev-view.c:(ev_view_size_allocate), (ev_view_class_init), (zoom_for_size_fit_width), (zoom_for_size_best_fit), (ev_view_zoom_for_size_presentation), (ev_view_zoom_for_size_continuous_and_dual_page), (ev_view_zoom_for_size_continuous), (ev_view_zoom_for_size_dual_page), (ev_view_zoom_for_size_single_page), (ev_view_set_zoom_for_size): * shell/ev-view.h: * shell/ev-window.c: (update_view_size), (ev_window_sizing_mode_changed_cb): Patch from Nickolay Shmyrev <nshmyrev@yandex.ru> to handle the scrollbars. It's not 100% right, but it's much closer. Kills an infinite loop, #304769
Diffstat (limited to 'shell/ev-view.h')
-rw-r--r--shell/ev-view.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/shell/ev-view.h b/shell/ev-view.h
index 126eaf9..4243761 100644
--- a/shell/ev-view.h
+++ b/shell/ev-view.h
@@ -86,6 +86,11 @@ void ev_view_set_zoom (EvView *view,
gboolean relative);
double ev_view_get_zoom (EvView *view);
+void ev_view_set_zoom_for_size (EvView *view,
+ int width,
+ int height,
+ int vsb_width,
+ int hsb_height);
/* Find */
gboolean ev_view_can_find_next (EvView *view);
void ev_view_find_next (EvView *view);