Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/libview
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2010-01-04 12:38:52 (GMT)
committer Carlos Garcia Campos <carlosgc@gnome.org>2010-01-04 12:38:52 (GMT)
commit28b3013514567bdd0d89f4b8ed2e8580acbc5d7c (patch)
treed548dac44d71c05dd5842d09e65d71cda91e7706 /libview
parent0981b6257ec356fd5fb0dac919640f3af41c2351 (diff)
[presentation] Make Home/End keys go to first/last page in presentation mode too
Fixes bug #358462.
Diffstat (limited to 'libview')
-rw-r--r--libview/ev-view-presentation.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/libview/ev-view-presentation.c b/libview/ev-view-presentation.c
index 24a8801..de86117 100644
--- a/libview/ev-view-presentation.c
+++ b/libview/ev-view-presentation.c
@@ -1103,6 +1103,22 @@ ev_view_presentation_key_press_event (GtkWidget *widget,
ev_view_presentation_set_white (pview);
return TRUE;
+ case GDK_Home:
+ if (pview->state == EV_PRESENTATION_NORMAL) {
+ ev_view_presentation_update_current_page (pview, 0);
+ return TRUE;
+ }
+ break;
+ case GDK_End:
+ if (pview->state == EV_PRESENTATION_NORMAL) {
+ gint page;
+
+ page = ev_document_get_n_pages (pview->document) - 1;
+ ev_view_presentation_update_current_page (pview, page);
+
+ return TRUE;
+ }
+ break;
default:
break;
}