]> www.fi.muni.cz Git - evince.git/commitdiff
libview: remove all widgets from the View when reloading the doc.
authorJosé Aliste <jaliste@src.gnome.org>
Thu, 10 Mar 2011 13:37:50 +0000 (10:37 -0300)
committerJosé Aliste <jaliste@src.gnome.org>
Sun, 13 Mar 2011 21:22:49 +0000 (17:22 -0400)
Fixes bug #632087.

libview/ev-view.c

index 301c8ca57876f095c3e9f3feb0d6f107107944d3..1b404dce571ab75c2e8139982817a0d47a1b9653 100644 (file)
@@ -5219,6 +5219,7 @@ ev_view_document_changed_cb (EvDocumentModel *model,
                gint current_page;
 
                clear_caches (view);
+               ev_view_remove_all (view);
 
                if (view->document) {
                        g_object_unref (view->document);