[evince/gnome-2-30] [shell] Reload presentation view when document changes
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince/gnome-2-30] [shell] Reload presentation view when document changes
- Date: Wed, 16 Jun 2010 10:57:04 +0000 (UTC)
commit 0ff97855e21145c4960e2b8ff0d18976b2666111
Author: Carlos Garcia Campos <carlosgc gnome org>
Date: Wed Jun 16 12:53:53 2010 +0200
[shell] Reload presentation view when document changes
Fixes bug #621750.
shell/ev-window.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 922d69f..00ba055 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -1291,6 +1291,12 @@ ev_window_set_document (EvWindow *ev_window, EvDocument *document)
_("The document contains only empty pages"));
}
+ if (EV_WINDOW_IS_PRESENTATION (ev_window)) {
+ gtk_widget_destroy (ev_window->priv->presentation_view);
+ ev_window->priv->presentation_view = NULL;
+ ev_window_run_presentation (ev_window);
+ }
+
if (ev_window->priv->setup_document_idle > 0)
g_source_remove (ev_window->priv->setup_document_idle);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]