summaryrefslogtreecommitdiff
path: root/libview/ev-view.c
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-12-10 02:07:51 +0100
committerinfirit <[email protected]>2014-12-10 02:07:51 +0100
commit308782586222c4ba4ccc1585f6b0c636f521fddb (patch)
tree857e1b7e5f62e347cf8bd8242aa57d41dfc1c622 /libview/ev-view.c
parent00c3f80c246c9197464091dc47b7bf681d0e9ced (diff)
downloadatril-308782586222c4ba4ccc1585f6b0c636f521fddb.tar.bz2
atril-308782586222c4ba4ccc1585f6b0c636f521fddb.tar.xz
libview: remove all widgets from the View when reloading the doc
Taken from evince commit: 8434736a712f5b93d1f3909221abe0b88096f78a From: José Aliste <[email protected]> Gnome bug: https://bugzilla.gnome.org/show_bug.cgi?id=632087
Diffstat (limited to 'libview/ev-view.c')
-rw-r--r--libview/ev-view.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libview/ev-view.c b/libview/ev-view.c
index 91617fff..ceb7494d 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -5395,6 +5395,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);