Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-window.c
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2010-01-03 19:57:46 (GMT)
committer Carlos Garcia Campos <carlosgc@gnome.org>2010-01-03 20:14:13 (GMT)
commit1029127ee35060b39fe1972b5ecf19db86f3189d (patch)
treefc58a8c10371b78ebd47eeaacb9ee0b6f5f9cbe3 /shell/ev-window.c
parent56563e01d4677aa3cdb08ee1ca67f5f4d298cc53 (diff)
[presentation] Allow finish presentation by clicking on end page
Escape still works, but end page message now says 'Click to exit'. See bug #309364.
Diffstat (limited to 'shell/ev-window.c')
-rw-r--r--shell/ev-window.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c
index d7565ff..086a4be 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -3578,6 +3578,12 @@ ev_window_update_presentation_action (EvWindow *window)
}
static void
+ev_window_view_presentation_finished (EvWindow *window)
+{
+ ev_window_stop_presentation (window, TRUE);
+}
+
+static void
ev_window_run_presentation (EvWindow *window)
{
gboolean fullscreen_window = TRUE;
@@ -3596,6 +3602,9 @@ ev_window_run_presentation (EvWindow *window)
rotation = ev_document_model_get_rotation (window->priv->model);
window->priv->presentation_view =
ev_view_presentation_new (window->priv->document, current_page, rotation);
+ g_signal_connect_swapped (window->priv->presentation_view, "finished",
+ G_CALLBACK (ev_window_view_presentation_finished),
+ window);
gtk_box_pack_start (GTK_BOX (window->priv->main_box),
window->priv->presentation_view,