[evince] [presentation] Make Home/End keys go to first/last page in presentation mode too
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [evince] [presentation] Make Home/End keys go to first/last page in presentation mode too
- Date: Mon, 4 Jan 2010 12:40:07 +0000 (UTC)
commit 28b3013514567bdd0d89f4b8ed2e8580acbc5d7c
Author: Carlos Garcia Campos <carlosgc gnome org>
Date: Mon Jan 4 13:38:52 2010 +0100
[presentation] Make Home/End keys go to first/last page in presentation mode too
Fixes bug #358462.
libview/ev-view-presentation.c | 16 ++++++++++++++++
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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]