[evince] libview: remove all widgets from the View when reloading the doc.



commit 8434736a712f5b93d1f3909221abe0b88096f78a
Author: José Aliste <jaliste src gnome org>
Date:   Thu Mar 10 10:37:50 2011 -0300

    libview: remove all widgets from the View when reloading the doc.
    
    Fixes bug #632087.

 libview/ev-view.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/libview/ev-view.c b/libview/ev-view.c
index 301c8ca..1b404dc 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]