[evince] presentation: move to next/previous page with media keys in presentation mode too
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] presentation: move to next/previous page with media keys in presentation mode too
- Date: Sun, 30 Jan 2011 15:12:26 +0000 (UTC)
commit 53eea4249bc0255faa1bf51cb4fb455db4cc69f1
Author: Carlos Garcia Campos <carlosgc gnome org>
Date: Sun Jan 30 16:10:17 2011 +0100
presentation: move to next/previous page with media keys in presentation mode too
Fixes bug #625560.
shell/ev-window.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 9c4d68f..4d2283b 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -6709,9 +6709,15 @@ ev_window_media_player_key_pressed (EvWindow *window,
if (strcmp (key, "Play") == 0) {
ev_window_run_presentation (window);
} else if (strcmp (key, "Previous") == 0) {
- ev_window_cmd_go_previous_page (NULL, window);
+ if (EV_WINDOW_IS_PRESENTATION (window))
+ ev_view_presentation_previous_page (EV_VIEW_PRESENTATION (window->priv->presentation_view));
+ else
+ ev_window_cmd_go_previous_page (NULL, window);
} else if (strcmp (key, "Next") == 0) {
- ev_window_cmd_go_next_page (NULL, window);
+ if (EV_WINDOW_IS_PRESENTATION (window))
+ ev_view_presentation_next_page (EV_VIEW_PRESENTATION (window->priv->presentation_view));
+ else
+ ev_window_cmd_go_next_page (NULL, window);
} else if (strcmp (key, "FastForward") == 0) {
ev_window_cmd_go_last_page (NULL, window);
} else if (strcmp (key, "Rewind") == 0) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]