[evince] Save current page when closing window in presentation mode
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] Save current page when closing window in presentation mode
- Date: Sat, 13 Mar 2010 13:54:13 +0000 (UTC)
commit 9aa54d8bf6ca229d5dc473b73336d799c8bf448f
Author: Carlos Garcia Campos <carlosgc gnome org>
Date: Sat Mar 13 14:51:17 2010 +0100
Save current page when closing window in presentation mode
Fixes bug #612656.
shell/ev-window.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 0ceb24f..1f527b5 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -3242,6 +3242,15 @@ ev_window_cmd_file_close_window (GtkAction *action, EvWindow *ev_window)
gchar *text, *markup;
gint n_print_jobs;
+ if (EV_WINDOW_IS_PRESENTATION (ev_window)) {
+ gint current_page;
+
+ /* Save current page */
+ current_page = ev_view_presentation_get_current_page (
+ EV_VIEW_PRESENTATION (ev_window->priv->presentation_view));
+ ev_document_model_set_page (ev_window->priv->model, current_page);
+ }
+
n_print_jobs = ev_window->priv->print_queue ?
g_queue_get_length (ev_window->priv->print_queue) : 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]