rpms/gscan2pdf/F-13 gscan2pdf-batch-image-wait.patch, NONE, 1.1 gscan2pdf.spec, 1.36, 1.37

Bernard Johnson bjohnson at fedoraproject.org
Sun May 9 15:25:32 UTC 2010


Author: bjohnson

Update of /cvs/pkgs/rpms/gscan2pdf/F-13
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv14126/F-13

Modified Files:
	gscan2pdf.spec 
Added Files:
	gscan2pdf-batch-image-wait.patch 
Log Message:
- patch to wait for output images when batch scanning


gscan2pdf-batch-image-wait.patch:
 gscan2pdf |   15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

--- NEW FILE gscan2pdf-batch-image-wait.patch ---
--- a/bin/gscan2pdf	
+++ a/bin/gscan2pdf	
@@ -6040,9 +6040,18 @@ sub scanimage {
        # If the scan can't be loaded then blow the scanning dialog away and
        # show an error
        my $rotate = $1 % 2 ? $rfacing : $rreverse;
-       my $index = import_scan( "out$1.pnm", $1 * $step + $offset,
-        $SETTING{resolution}, TRUE, $rotate, $unpaper, $ocr );
-       $num_scans++;
+
+       # Timer will run until callback returns false
+       my $timer = Glib::Timeout->add(
+        100,
+        sub {
+         return TRUE if ( -e "out$1.pnm" );
+         my $index = import_scan( "out$1.pnm", $1 * $step + $offset,
+          $SETTING{resolution}, TRUE, $rotate, $unpaper, $ocr );
+         $num_scans++;
+         return FALSE;
+        }
+       );
       }
       elsif ( $line =~
        /Scanner warming up - waiting \d* seconds|wait for lamp warm-up/ )


Index: gscan2pdf.spec
===================================================================
RCS file: /cvs/pkgs/rpms/gscan2pdf/F-13/gscan2pdf.spec,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -p -r1.36 -r1.37
--- gscan2pdf.spec	8 Apr 2010 03:40:49 -0000	1.36
+++ gscan2pdf.spec	9 May 2010 15:25:32 -0000	1.37
@@ -1,6 +1,6 @@
 Name:           gscan2pdf
 Version:        0.9.30
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        GUI for producing a multipage PDF from a scan
 
 Group:          Applications/Publishing
@@ -9,6 +9,7 @@ URL:            http://gscan2pdf.sourcef
 Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
 # Temporary patch until next release when this will be resolved
 Patch0:         gscan2pdf-unknown-message.patch
+Patch1:         gscan2pdf-batch-image-wait.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
 
@@ -28,6 +29,7 @@ A GUI to ease the process of producing a
 %setup -q
 
 %patch0 -p1 -b .unknown-message-window
+%patch0 -p1 -b .batch-image-wait
 
 # fix file that is not UTF-8
 iconv --from=ISO-8859-1 --to=UTF-8 History > History.new
@@ -83,6 +85,9 @@ fi
 %{_mandir}/man1/*.1*
 
 %changelog
+* Sun May 09 2010 Bernard Johnson <bjohnson at symetrix.com> - 0.9.30-4
+- patch to wait for output images when batch scanning
+
 * Wed Apr 07 2010 Bernard Johnson <bjohnson at symetrix.com> - 0.9.30-3
 - patch for "Unknown message" window alerts while scanning (bz #571761)
 



More information about the scm-commits mailing list