[evince] libview: clear caches after destroying child widgets.



commit 4de037ccccb4d836db43bf97fdaacf7c02ffb1f1
Author: Marek Kašík <mkasik redhat com>
Date:   Sun Apr 24 21:02:41 2011 -0300

    libview: clear caches after destroying child widgets.
    
    Fixes bug #648365.

 libview/ev-view.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libview/ev-view.c b/libview/ev-view.c
index c2e888d..cbc6b4a 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -5234,8 +5234,8 @@ ev_view_document_changed_cb (EvDocumentModel *model,
 	if (document != view->document) {
 		gint current_page;
 
-		clear_caches (view);
 		ev_view_remove_all (view);
+		clear_caches (view);
 
 		if (view->document) {
 			g_object_unref (view->document);



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