Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-view.c
diff options
context:
space:
mode:
authorNickolay V. Shmyrev <nshmyrev@src.gnome.org>2006-05-05 15:03:13 (GMT)
committer Nickolay V. Shmyrev <nshmyrev@src.gnome.org>2006-05-05 15:03:13 (GMT)
commit194a13e3f28e0578796101163ddd1ee34b1a16e0 (patch)
treeadce10a3a71ebd22ab48ab88fe76973232035d51 /shell/ev-view.c
parentcf1e21406e964db6cbb752c0b63e4638bc12d5b4 (diff)
Update fullscreen and presentation timeout handling. Hide cursor in
* data/evince.desktop.in.in: * shell/ev-view.c: (view_update_range_and_current_page), (ev_view_next_page), (ev_view_previous_page): * shell/ev-window.c: (update_chrome_visibility), (setup_sidebar_from_metadata), (ev_window_setup_document), (ev_window_update_fullscreen_popup), (fullscreen_timeout_cb), (fullscreen_set_timeout), (fullscreen_clear_timeout), (fullscreen_motion_notify_cb), (ev_window_run_fullscreen), (ev_window_stop_fullscreen), (ev_window_run_presentation), (ev_window_stop_presentation), (ev_window_focus_in_event), (ev_window_focus_out_event), (ev_window_view_sidebar_cb), (ev_window_init): * thumbnailer/Makefile.am: Update fullscreen and presentation timeout handling. Hide cursor in presentation after timeout. Fix for the bugs #136359 and #336981.
Diffstat (limited to 'shell/ev-view.c')
-rw-r--r--shell/ev-view.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/shell/ev-view.c b/shell/ev-view.c
index e3f07dc..7c009d6 100644
--- a/shell/ev-view.c
+++ b/shell/ev-view.c
@@ -438,7 +438,7 @@ view_update_range_and_current_page (EvView *view)
GdkRectangle current_area, unused, page_area;
GtkBorder border;
gboolean found = FALSE;
- gint area_max, area;
+ gint area_max = -1, area;
int i;
if (!(view->vadjustment && view->hadjustment))
@@ -4124,6 +4124,9 @@ ev_view_next_page (EvView *view)
int page;
g_return_val_if_fail (EV_IS_VIEW (view), FALSE);
+
+ if (!view->page_cache)
+ return FALSE;
page = ev_page_cache_get_current_page (view->page_cache);
@@ -4150,6 +4153,9 @@ ev_view_previous_page (EvView *view)
g_return_val_if_fail (EV_IS_VIEW (view), FALSE);
+ if (!view->page_cache)
+ return FALSE;
+
page = ev_page_cache_get_current_page (view->page_cache);
if (view->dual_page && !view->presentation)