[evince/f14/master] Remove all widgets from the View when reloading the document Resolves: #677074

mkasik mkasik at fedoraproject.org
Tue Apr 26 11:23:21 UTC 2011


commit f5107333ae03c0d3afeec84f659579227fa68018
Author: Marek Kasik <mkasik at redhat.com>
Date:   Tue Apr 26 13:22:25 2011 +0200

    Remove all widgets from the View when reloading the document
    Resolves: #677074

 evince-remove-widgets.patch |   10 ++++++++++
 evince.spec                 |    9 ++++++++-
 2 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/evince-remove-widgets.patch b/evince-remove-widgets.patch
new file mode 100644
index 0000000..62dfc51
--- /dev/null
+++ b/evince-remove-widgets.patch
@@ -0,0 +1,10 @@
+--- evince-2.32.0/libview/ev-view.c	2010-09-27 18:54:34.000000000 +0200
++++ evince-2.32.0/libview/ev-view.c	2011-04-26 12:52:42.000000000 +0200
+@@ -5032,6 +5032,7 @@ ev_view_document_changed_cb (EvDocumentM
+ 	if (document != view->document) {
+ 		gint current_page;
+ 
++		ev_view_remove_all (view);
+ 		clear_caches (view);
+ 
+ 		if (view->document) {
diff --git a/evince.spec b/evince.spec
index 1cd68b1..2d4e806 100644
--- a/evince.spec
+++ b/evince.spec
@@ -5,7 +5,7 @@
 
 Name:           evince
 Version:        2.32.0
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        Document viewer
 
 License:        GPLv2+ and GFDL
@@ -18,6 +18,8 @@ Patch2:         evince-t1font-mapping.patch
 Patch3:         evince-page-range.patch
 # https://bugzilla.redhat.com/show_bug.cgi?id=667573
 Patch4:         evince-CVE-2010-2640_CVE-2010-2641_CVE-2010-2642_CVE-2010-2643.patch
+# https://bugzilla.redhat.com/show_bug.cgi?id=677074
+Patch5:         evince-remove-widgets.patch
 
 BuildRequires:  gtk2-devel
 BuildRequires:  glib2-devel >= %{glib2_version}
@@ -111,6 +113,7 @@ It adds an additional tab called "Document" to the file properties dialog.
 %patch2 -p1 -b .t1font-map
 %patch3 -p1 -b .page-range
 %patch4 -p1 -b .CVE-2010-2640_CVE-2010-2641_CVE-2010-2642_CVE-2010-2643
+%patch5 -p1 -b .remove-widgets
 
 %build
 %configure \
@@ -244,6 +247,10 @@ glib-compile-schemas --allow-any-name %{_datadir}/glib-2.0/schemas ||:
 %{_libdir}/nautilus/extensions-2.0/libevince-properties-page.so
 
 %changelog
+* Tue Apr 26 2011 Marek Kasik <mkasik at redhat.com> - 2.32.0-4
+- Remove all widgets from the View when reloading the document
+- Resolves: #677074
+
 * Thu Jan  6 2011 Marek Kasik <mkasik at redhat.com> - 2.32.0-3
 - Fixes CVE-2010-2640, CVE-2010-2641, CVE-2010-2642 and CVE-2010-2643
 - Resolves: #667573


More information about the scm-commits mailing list