]> www.fi.muni.cz Git - evince.git/commitdiff
[shell] Reload presentation view when document changes
authorCarlos Garcia Campos <carlosgc@gnome.org>
Wed, 16 Jun 2010 10:53:53 +0000 (12:53 +0200)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Wed, 16 Jun 2010 10:53:53 +0000 (12:53 +0200)
Fixes bug #621750.

shell/ev-window.c

index 0cfbbb38ef8ce62c99b4ae84a3a0e289b13b37ae..46ccffb60609542708aa68b53ef2535a87f8b1c3 100644 (file)
@@ -1300,6 +1300,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);