From 1029127ee35060b39fe1972b5ecf19db86f3189d Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Sun, 03 Jan 2010 19:57:46 +0000 Subject: [presentation] Allow finish presentation by clicking on end page Escape still works, but end page message now says 'Click to exit'. See bug #309364. --- (limited to 'shell') 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, -- cgit v0.9.1