From df6d74cc8fbdc2ec0b88ad459da02817cf4e9482 Mon Sep 17 00:00:00 2001 From: infirit Date: Wed, 10 Dec 2014 01:38:21 +0100 Subject: presentation: move to next/previous page with media keys in presentation mode too Taken from evince commit: 53eea4249bc0255faa1bf51cb4fb455db4cc69f1 From: Carlos Garcia Campos Gnome bug: https://bugzilla.gnome.org/show_bug.cgi?id=625560 --- shell/ev-window.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'shell') 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) { -- cgit v1.2.1