summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-12-10 01:38:21 +0100
committerinfirit <[email protected]>2014-12-10 01:38:21 +0100
commitdf6d74cc8fbdc2ec0b88ad459da02817cf4e9482 (patch)
tree1774c5be92337562779fca676056d90ecdbd2e90
parentebef7a5b36db6d6b5e8b56eaea4926f745d48246 (diff)
downloadatril-df6d74cc8fbdc2ec0b88ad459da02817cf4e9482.tar.bz2
atril-df6d74cc8fbdc2ec0b88ad459da02817cf4e9482.tar.xz
presentation: move to next/previous page with media keys in presentation mode too
Taken from evince commit: 53eea4249bc0255faa1bf51cb4fb455db4cc69f1 From: Carlos Garcia Campos <[email protected]> Gnome bug: https://bugzilla.gnome.org/show_bug.cgi?id=625560
-rw-r--r--shell/ev-window.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 822cfd80..368c8881 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -7077,9 +7077,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) {