rpms/epdfview/F-13 epdfview-button-state-after-reload.patch, NONE, 1.1 epdfview.spec, 1.10, 1.11

Michal Schmidt michich at fedoraproject.org
Mon Mar 1 08:47:42 UTC 2010


Author: michich

Update of /cvs/pkgs/rpms/epdfview/F-13
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv24970

Modified Files:
	epdfview.spec 
Added Files:
	epdfview-button-state-after-reload.patch 
Log Message:
* Mon Mar 01 2010 Michal Schmidt <mschmidt at redhat.com> 0.1.7-4.20100226svn
- Fix buttons' sensitivity after document reload (bz568973).


epdfview-button-state-after-reload.patch:
 MainPter.cxx |    1 +
 1 file changed, 1 insertion(+)

--- NEW FILE epdfview-button-state-after-reload.patch ---
Patch sent to upstream (Jordi Fita) on 2010-03-01. -- Michal


Ensure correct sensitivity of buttons after reloading the document

When a multipage document is reloaded while the viewer is showing its first
page, the 'Next Page' button gets disabled.

Fix it in MainPter::notifyReload() by making sure document observers are always
notified. (MainPter::notifyLoad() does the same.)

Bug reported by Aaron Faanes in
https://bugzilla.redhat.com/show_bug.cgi?id=568973

Index: src/MainPter.cxx
===================================================================
--- src/MainPter.cxx	(revision 346)
+++ src/MainPter.cxx	(working copy)
@@ -936,6 +936,7 @@
     setInitialState ();
     getView ().showIndex(showIndex);
     m_Document->goToPage(m_ReloadPage);
+    m_Document->notifyPageChanged();
 #if defined (DEBUG)
     G_LOCK (fileLoaded);
     fileLoaded = TRUE;


Index: epdfview.spec
===================================================================
RCS file: /cvs/pkgs/rpms/epdfview/F-13/epdfview.spec,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -p -r1.10 -r1.11
--- epdfview.spec	26 Feb 2010 08:51:03 -0000	1.10
+++ epdfview.spec	1 Mar 2010 08:47:42 -0000	1.11
@@ -3,7 +3,7 @@
 
 Name:		epdfview
 Version:	0.1.7
-Release:	3.%{svndate}svn%{?dist}
+Release:	4.%{svndate}svn%{?dist}
 Summary:	Lightweight PDF document viewer
 
 Group:		Applications/Publishing
@@ -14,6 +14,7 @@ URL:		http://trac.emma-soft.com/epdfview
 # svn export -r %{svnrev} svn://svn.emma-soft.com/epdfview/trunk %{name}-%{svndate}svn
 # tar -cjf %{name}-%{svndate}svn.tar.bz2 %{name}-%{svndate}svn/
 Source0:	%{name}-%{svndate}svn.tar.bz2
+Patch0:		epdfview-button-state-after-reload.patch
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:	%{!?fc8: poppler-glib-devel} %{?fc8: poppler-devel}
@@ -28,6 +29,7 @@ Evince but without using the Gnome libra
 
 %prep
 %setup -q -n %{name}-%{svndate}svn
+%patch0 -p0
 
 %build
 ./autogen.sh
@@ -73,6 +75,9 @@ update-desktop-database &> /dev/null || 
 %{_datadir}/pixmaps/icon_epdfview-48.png
 
 %changelog
+* Mon Mar 01 2010 Michal Schmidt <mschmidt at redhat.com> 0.1.7-4.20100226svn
+- Fix buttons' sensitivity after document reload (bz568973).
+
 * Fri Feb 26 2010 Michal Schmidt <mschmidt at redhat.com> 0.1.7-3.20100226svn
 - Update to current SVN snapshot to get bugfixes (bz568592).
 



More information about the scm-commits mailing list