summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am16
-rw-r--r--src/Makefile.in283
-rw-r--r--src/autosave-manager.c3481
-rw-r--r--src/autosave-manager.vala553
-rw-r--r--src/book-view.c1333
-rw-r--r--src/book.c3169
-rw-r--r--src/book.vala78
-rw-r--r--src/config.vapi17
-rw-r--r--src/jpeglib.vapi57
-rw-r--r--src/page-view.c2533
-rw-r--r--src/page.c2043
-rw-r--r--src/page.vala26
-rw-r--r--src/resources.c4953
-rw-r--r--src/scanner.c6646
-rw-r--r--src/scanner.vala81
-rw-r--r--src/simple-scan.c1606
-rw-r--r--src/simple-scan.vala20
-rw-r--r--src/ui.c5473
-rw-r--r--src/ui.vala153
19 files changed, 29586 insertions, 2935 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 3fa8558..6d0f493 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,29 +1,37 @@
bin_PROGRAMS = simple-scan
+resources.c: $(top_srcdir)/data/simple-scan.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --generate-dependencies --sourcedir=$(top_srcdir)/data/ $(top_srcdir)/data/simple-scan.gresource.xml)
+ $(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(top_srcdir)/data/ --generate-source $<
+
simple_scan_SOURCES = \
config.vapi \
book.vala \
book-view.vala \
colord.vapi \
- jpeglib.vapi \
page.vala \
page-view.vala \
sane.vapi \
simple-scan.vala \
scanner.vala \
- ui.vala
+ ui.vala \
+ autosave-manager.vala \
+ resources.c
simple_scan_VALAFLAGS = \
--pkg=zlib \
--pkg=gudev-1.0 \
--pkg=gio-2.0 \
- --pkg=gtk+-3.0
+ --pkg=gtk+-3.0 \
+ --pkg=sqlite3 \
+ --debug \
+ --target-glib 2.32
if HAVE_COLORD
simple_scan_VALAFLAGS += -D HAVE_COLORD
endif
simple_scan_CFLAGS = \
+ -w \
$(SIMPLE_SCAN_CFLAGS) \
$(COLORD_CFLAGS) \
$(WARN_CFLAGS) \
@@ -39,11 +47,11 @@ simple_scan_LDADD = \
$(SIMPLE_SCAN_LIBS) \
$(COLORD_LIBS) \
-lsane \
- -ljpeg \
-lm
CLEANFILES = \
$(patsubst %.vala,%.c,$(filter %.vala, $(SOURCES))) \
+ resources.c \
*_vala.stamp
DISTCLEANFILES = \
diff --git a/src/Makefile.in b/src/Makefile.in
index 2ec6077..0a6031b 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -1,9 +1,8 @@
-# Makefile.in generated by automake 1.11.6 from Makefile.am.
+# Makefile.in generated by automake 1.13.3 from Makefile.am.
# @configure_input@
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
-# Foundation, Inc.
+# Copyright (C) 1994-2013 Free Software Foundation, Inc.
+
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
@@ -16,23 +15,51 @@
@SET_MAKE@
VPATH = @srcdir@
-am__make_dryrun = \
- { \
- am__dry=no; \
+am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
+am__make_running_with_option = \
+ case $${target_option-} in \
+ ?) ;; \
+ *) echo "am__make_running_with_option: internal error: invalid" \
+ "target option '$${target_option-}' specified" >&2; \
+ exit 1;; \
+ esac; \
+ has_opt=no; \
+ sane_makeflags=$$MAKEFLAGS; \
+ if $(am__is_gnu_make); then \
+ sane_makeflags=$$MFLAGS; \
+ else \
case $$MAKEFLAGS in \
*\\[\ \ ]*) \
- echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
- | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
- *) \
- for am__flg in $$MAKEFLAGS; do \
- case $$am__flg in \
- *=*|--*) ;; \
- *n*) am__dry=yes; break;; \
- esac; \
- done;; \
+ bs=\\; \
+ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
+ esac; \
+ fi; \
+ skip_next=no; \
+ strip_trailopt () \
+ { \
+ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+ }; \
+ for flg in $$sane_makeflags; do \
+ test $$skip_next = yes && { skip_next=no; continue; }; \
+ case $$flg in \
+ *=*|--*) continue;; \
+ -*I) strip_trailopt 'I'; skip_next=yes;; \
+ -*I?*) strip_trailopt 'I';; \
+ -*O) strip_trailopt 'O'; skip_next=yes;; \
+ -*O?*) strip_trailopt 'O';; \
+ -*l) strip_trailopt 'l'; skip_next=yes;; \
+ -*l?*) strip_trailopt 'l';; \
+ -[dEDm]) skip_next=yes;; \
+ -[JT]) skip_next=yes;; \
+ esac; \
+ case $$flg in \
+ *$$target_option*) has_opt=yes; break;; \
esac; \
- test $$am__dry = yes; \
- }
+ done; \
+ test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
pkgdatadir = $(datadir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
@@ -52,15 +79,15 @@ POST_UNINSTALL = :
bin_PROGRAMS = simple-scan$(EXEEXT)
@HAVE_COLORD_TRUE@am__append_1 = -D HAVE_COLORD
subdir = src
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in book-view.c \
- book.c page-view.c page.c scanner.c simple-scan.c \
- simple_scan_vala.stamp ui.c
+DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am book.c \
+ book-view.c page.c page-view.c simple-scan.c scanner.c ui.c \
+ autosave-manager.c $(top_srcdir)/depcomp \
+ $(srcdir)/simple_scan_vala.stamp
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/config.h
CONFIG_CLEAN_FILES =
CONFIG_CLEAN_VPATH_FILES =
am__installdirs = "$(DESTDIR)$(bindir)"
@@ -69,39 +96,51 @@ am_simple_scan_OBJECTS = simple_scan-book.$(OBJEXT) \
simple_scan-book-view.$(OBJEXT) simple_scan-page.$(OBJEXT) \
simple_scan-page-view.$(OBJEXT) \
simple_scan-simple-scan.$(OBJEXT) \
- simple_scan-scanner.$(OBJEXT) simple_scan-ui.$(OBJEXT)
+ simple_scan-scanner.$(OBJEXT) simple_scan-ui.$(OBJEXT) \
+ simple_scan-autosave-manager.$(OBJEXT) \
+ simple_scan-resources.$(OBJEXT)
simple_scan_OBJECTS = $(am_simple_scan_OBJECTS)
am__DEPENDENCIES_1 =
simple_scan_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1)
simple_scan_LINK = $(CCLD) $(simple_scan_CFLAGS) $(CFLAGS) \
$(AM_LDFLAGS) $(LDFLAGS) -o $@
-DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
+AM_V_P = $(am__v_P_@AM_V@)
+am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_@AM_V@)
+am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
+am__v_GEN_0 = @echo " GEN " $@;
+am__v_GEN_1 =
+AM_V_at = $(am__v_at_@AM_V@)
+am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
+am__v_at_0 = @
+am__v_at_1 =
+DEFAULT_INCLUDES = -I.@am__isrc@
depcomp = $(SHELL) $(top_srcdir)/depcomp
am__depfiles_maybe = depfiles
am__mv = mv -f
AM_V_lt = $(am__v_lt_@AM_V@)
am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
am__v_lt_0 = --silent
+am__v_lt_1 =
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
AM_V_CC = $(am__v_CC_@AM_V@)
am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
-am__v_CC_0 = @echo " CC " $@;
-AM_V_at = $(am__v_at_@AM_V@)
-am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
-am__v_at_0 = @
+am__v_CC_0 = @echo " CC " $@;
+am__v_CC_1 =
CCLD = $(CC)
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
AM_V_CCLD = $(am__v_CCLD_@AM_V@)
am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
-am__v_CCLD_0 = @echo " CCLD " $@;
+am__v_CCLD_0 = @echo " CCLD " $@;
+am__v_CCLD_1 =
VALACOMPILE = $(VALAC) $(AM_VALAFLAGS) $(VALAFLAGS)
AM_V_VALAC = $(am__v_VALAC_@AM_V@)
am__v_VALAC_ = $(am__v_VALAC_@AM_DEFAULT_V@)
-am__v_VALAC_0 = @echo " VALAC " $@;
-AM_V_GEN = $(am__v_GEN_@AM_V@)
-am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
-am__v_GEN_0 = @echo " GEN " $@;
+am__v_VALAC_0 = @echo " VALAC " $@;
+am__v_VALAC_1 =
SOURCES = $(simple_scan_SOURCES)
DIST_SOURCES = $(simple_scan_SOURCES)
am__can_run_installinfo = \
@@ -109,6 +148,23 @@ am__can_run_installinfo = \
n|no|NO) false;; \
*) (install-info --version) >/dev/null 2>&1;; \
esac
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
+# Read a list of newline-separated strings from the standard input,
+# and print each of them once, without duplicates. Input order is
+# *not* preserved.
+am__uniquify_input = $(AWK) '\
+ BEGIN { nonempty = 0; } \
+ { items[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in items) print i; }; } \
+'
+# Make sure the list of sources is unique. This is necessary because,
+# e.g., the same source file might be shared among _SOURCES variables
+# for different programs/libraries.
+am__define_uniq_tagged_files = \
+ list='$(am__tagged_files)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | $(am__uniquify_input)`
ETAGS = etags
CTAGS = ctags
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
@@ -138,6 +194,7 @@ ECHO_T = @ECHO_T@
EGREP = @EGREP@
EXEEXT = @EXEEXT@
GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
+GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@
GLIB_COMPILE_SCHEMAS = @GLIB_COMPILE_SCHEMAS@
GMSGFMT = @GMSGFMT@
GREP = @GREP@
@@ -239,17 +296,20 @@ simple_scan_SOURCES = \
book.vala \
book-view.vala \
colord.vapi \
- jpeglib.vapi \
page.vala \
page-view.vala \
sane.vapi \
simple-scan.vala \
scanner.vala \
- ui.vala
+ ui.vala \
+ autosave-manager.vala \
+ resources.c
simple_scan_VALAFLAGS = --pkg=zlib --pkg=gudev-1.0 --pkg=gio-2.0 \
- --pkg=gtk+-3.0 $(am__append_1)
+ --pkg=gtk+-3.0 --pkg=sqlite3 --debug --target-glib 2.32 \
+ $(am__append_1)
simple_scan_CFLAGS = \
+ -w \
$(SIMPLE_SCAN_CFLAGS) \
$(COLORD_CFLAGS) \
$(WARN_CFLAGS) \
@@ -265,11 +325,11 @@ simple_scan_LDADD = \
$(SIMPLE_SCAN_LIBS) \
$(COLORD_LIBS) \
-lsane \
- -ljpeg \
-lm
CLEANFILES = \
$(patsubst %.vala,%.c,$(filter %.vala, $(SOURCES))) \
+ resources.c \
*_vala.stamp
DISTCLEANFILES = \
@@ -288,9 +348,9 @@ $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__confi
exit 1;; \
esac; \
done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/Makefile'; \
$(am__cd) $(top_srcdir) && \
- $(AUTOMAKE) --gnu src/Makefile
+ $(AUTOMAKE) --foreign src/Makefile
.PRECIOUS: Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
@case '$?' in \
@@ -318,10 +378,11 @@ install-binPROGRAMS: $(bin_PROGRAMS)
fi; \
for p in $$list; do echo "$$p $$p"; done | \
sed 's/$(EXEEXT)$$//' | \
- while read p p1; do if test -f $$p; \
- then echo "$$p"; echo "$$p"; else :; fi; \
+ while read p p1; do if test -f $$p \
+ ; then echo "$$p"; echo "$$p"; else :; fi; \
done | \
- sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
+ sed -e 'p;s,.*/,,;n;h' \
+ -e 's|.*|.|' \
-e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
sed 'N;N;N;s,\n, ,g' | \
$(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
@@ -342,13 +403,15 @@ uninstall-binPROGRAMS:
@list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
files=`for p in $$list; do echo "$$p"; done | \
sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
- -e 's/$$/$(EXEEXT)/' `; \
+ -e 's/$$/$(EXEEXT)/' \
+ `; \
test -n "$$list" || exit 0; \
echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
cd "$(DESTDIR)$(bindir)" && rm -f $$files
clean-binPROGRAMS:
-test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
+
simple-scan$(EXEEXT): $(simple_scan_OBJECTS) $(simple_scan_DEPENDENCIES) $(EXTRA_simple_scan_DEPENDENCIES)
@rm -f simple-scan$(EXEEXT)
$(AM_V_CCLD)$(simple_scan_LINK) $(simple_scan_OBJECTS) $(simple_scan_LDADD) $(LIBS)
@@ -359,10 +422,12 @@ mostlyclean-compile:
distclean-compile:
-rm -f *.tab.c
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/simple_scan-autosave-manager.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/simple_scan-book-view.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/simple_scan-book.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/simple_scan-page-view.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/simple_scan-page.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/simple_scan-resources.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/simple_scan-scanner.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/simple_scan-simple-scan.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/simple_scan-ui.Po@am__quote@
@@ -478,6 +543,34 @@ simple_scan-ui.obj: ui.c
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='ui.c' object='simple_scan-ui.obj' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(simple_scan_CFLAGS) $(CFLAGS) -c -o simple_scan-ui.obj `if test -f 'ui.c'; then $(CYGPATH_W) 'ui.c'; else $(CYGPATH_W) '$(srcdir)/ui.c'; fi`
+
+simple_scan-autosave-manager.o: autosave-manager.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(simple_scan_CFLAGS) $(CFLAGS) -MT simple_scan-autosave-manager.o -MD -MP -MF $(DEPDIR)/simple_scan-autosave-manager.Tpo -c -o simple_scan-autosave-manager.o `test -f 'autosave-manager.c' || echo '$(srcdir)/'`autosave-manager.c
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/simple_scan-autosave-manager.Tpo $(DEPDIR)/simple_scan-autosave-manager.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='autosave-manager.c' object='simple_scan-autosave-manager.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(simple_scan_CFLAGS) $(CFLAGS) -c -o simple_scan-autosave-manager.o `test -f 'autosave-manager.c' || echo '$(srcdir)/'`autosave-manager.c
+
+simple_scan-autosave-manager.obj: autosave-manager.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(simple_scan_CFLAGS) $(CFLAGS) -MT simple_scan-autosave-manager.obj -MD -MP -MF $(DEPDIR)/simple_scan-autosave-manager.Tpo -c -o simple_scan-autosave-manager.obj `if test -f 'autosave-manager.c'; then $(CYGPATH_W) 'autosave-manager.c'; else $(CYGPATH_W) '$(srcdir)/autosave-manager.c'; fi`
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/simple_scan-autosave-manager.Tpo $(DEPDIR)/simple_scan-autosave-manager.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='autosave-manager.c' object='simple_scan-autosave-manager.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(simple_scan_CFLAGS) $(CFLAGS) -c -o simple_scan-autosave-manager.obj `if test -f 'autosave-manager.c'; then $(CYGPATH_W) 'autosave-manager.c'; else $(CYGPATH_W) '$(srcdir)/autosave-manager.c'; fi`
+
+simple_scan-resources.o: resources.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(simple_scan_CFLAGS) $(CFLAGS) -MT simple_scan-resources.o -MD -MP -MF $(DEPDIR)/simple_scan-resources.Tpo -c -o simple_scan-resources.o `test -f 'resources.c' || echo '$(srcdir)/'`resources.c
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/simple_scan-resources.Tpo $(DEPDIR)/simple_scan-resources.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='resources.c' object='simple_scan-resources.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(simple_scan_CFLAGS) $(CFLAGS) -c -o simple_scan-resources.o `test -f 'resources.c' || echo '$(srcdir)/'`resources.c
+
+simple_scan-resources.obj: resources.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(simple_scan_CFLAGS) $(CFLAGS) -MT simple_scan-resources.obj -MD -MP -MF $(DEPDIR)/simple_scan-resources.Tpo -c -o simple_scan-resources.obj `if test -f 'resources.c'; then $(CYGPATH_W) 'resources.c'; else $(CYGPATH_W) '$(srcdir)/resources.c'; fi`
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/simple_scan-resources.Tpo $(DEPDIR)/simple_scan-resources.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='resources.c' object='simple_scan-resources.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(simple_scan_CFLAGS) $(CFLAGS) -c -o simple_scan-resources.obj `if test -f 'resources.c'; then $(CYGPATH_W) 'resources.c'; else $(CYGPATH_W) '$(srcdir)/resources.c'; fi`
$(srcdir)/book.c: $(srcdir)/simple_scan_vala.stamp
@if test -f $@; then :; else rm -f $(srcdir)/simple_scan_vala.stamp; fi
@if test -f $@; then :; else \
@@ -513,31 +606,25 @@ $(srcdir)/ui.c: $(srcdir)/simple_scan_vala.stamp
@if test -f $@; then :; else \
$(MAKE) $(AM_MAKEFLAGS) $(srcdir)/simple_scan_vala.stamp; \
fi
-$(srcdir)/simple_scan_vala.stamp: config.vapi book.vala book-view.vala colord.vapi jpeglib.vapi page.vala page-view.vala sane.vapi simple-scan.vala scanner.vala ui.vala
+$(srcdir)/autosave-manager.c: $(srcdir)/simple_scan_vala.stamp
+ @if test -f $@; then :; else rm -f $(srcdir)/simple_scan_vala.stamp; fi
+ @if test -f $@; then :; else \
+ $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/simple_scan_vala.stamp; \
+ fi
+$(srcdir)/simple_scan_vala.stamp: config.vapi book.vala book-view.vala colord.vapi page.vala page-view.vala sane.vapi simple-scan.vala scanner.vala ui.vala autosave-manager.vala
$(AM_V_at)rm -f $@ && echo stamp > $@-t
- $(AM_V_VALAC)$(am__cd) $(srcdir) && $(VALAC) $(simple_scan_VALAFLAGS) $(VALAFLAGS) -C config.vapi book.vala book-view.vala colord.vapi jpeglib.vapi page.vala page-view.vala sane.vapi simple-scan.vala scanner.vala ui.vala
+ $(AM_V_VALAC)$(am__cd) $(srcdir) && $(VALAC) $(simple_scan_VALAFLAGS) $(VALAFLAGS) -C config.vapi book.vala book-view.vala colord.vapi page.vala page-view.vala sane.vapi simple-scan.vala scanner.vala ui.vala autosave-manager.vala
$(AM_V_at)mv -f $@-t $@
-ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | \
- $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
- END { if (nonempty) { for (i in files) print i; }; }'`; \
- mkid -fID $$unique
-tags: TAGS
-
-TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
- $(TAGS_FILES) $(LISP)
+ID: $(am__tagged_files)
+ $(am__define_uniq_tagged_files); mkid -fID $$unique
+tags: tags-am
+TAGS: tags
+
+tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
set x; \
here=`pwd`; \
- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | \
- $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
- END { if (nonempty) { for (i in files) print i; }; }'`; \
+ $(am__define_uniq_tagged_files); \
shift; \
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
test -n "$$unique" || unique=$$empty_fix; \
@@ -549,15 +636,11 @@ TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
$$unique; \
fi; \
fi
-ctags: CTAGS
-CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
- $(TAGS_FILES) $(LISP)
- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | \
- $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
- END { if (nonempty) { for (i in files) print i; }; }'`; \
+ctags: ctags-am
+
+CTAGS: ctags
+ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
+ $(am__define_uniq_tagged_files); \
test -z "$(CTAGS_ARGS)$$unique" \
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
$$unique
@@ -566,6 +649,21 @@ GTAGS:
here=`$(am__cd) $(top_builddir) && pwd` \
&& $(am__cd) $(top_srcdir) \
&& gtags -i $(GTAGS_ARGS) "$$here"
+cscopelist: cscopelist-am
+
+cscopelist-am: $(am__tagged_files)
+ list='$(am__tagged_files)'; \
+ case "$(srcdir)" in \
+ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
+ *) sdir=$(subdir)/$(srcdir) ;; \
+ esac; \
+ for i in $$list; do \
+ if test -f "$$i"; then \
+ echo "$(subdir)/$$i"; \
+ else \
+ echo "$$sdir/$$i"; \
+ fi; \
+ done >> $(top_builddir)/cscope.files
distclean-tags:
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
@@ -639,13 +737,22 @@ distclean-generic:
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
+ -rm -f $(srcdir)/autosave-manager.c
+ -rm -f $(srcdir)/book-view.c
+ -rm -f $(srcdir)/book.c
+ -rm -f $(srcdir)/page-view.c
+ -rm -f $(srcdir)/page.c
+ -rm -f $(srcdir)/scanner.c
+ -rm -f $(srcdir)/simple-scan.c
+ -rm -f $(srcdir)/simple_scan_vala.stamp
+ -rm -f $(srcdir)/ui.c
+ -rm -f autosave-manager.c
-rm -f book-view.c
-rm -f book.c
-rm -f page-view.c
-rm -f page.c
-rm -f scanner.c
-rm -f simple-scan.c
- -rm -f simple_scan_vala.stamp
-rm -f ui.c
clean: clean-am
@@ -718,19 +825,23 @@ uninstall-am: uninstall-binPROGRAMS
.MAKE: install-am install-strip
-.PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
- clean-generic ctags distclean distclean-compile \
- distclean-generic distclean-tags distdir dvi dvi-am html \
- html-am info info-am install install-am install-binPROGRAMS \
- install-data install-data-am install-dvi install-dvi-am \
- install-exec install-exec-am install-html install-html-am \
- install-info install-info-am install-man install-pdf \
- install-pdf-am install-ps install-ps-am install-strip \
- installcheck installcheck-am installdirs maintainer-clean \
- maintainer-clean-generic mostlyclean mostlyclean-compile \
- mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \
- uninstall-am uninstall-binPROGRAMS
-
+.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean \
+ clean-binPROGRAMS clean-generic cscopelist-am ctags ctags-am \
+ distclean distclean-compile distclean-generic distclean-tags \
+ distdir dvi dvi-am html html-am info info-am install \
+ install-am install-binPROGRAMS install-data install-data-am \
+ install-dvi install-dvi-am install-exec install-exec-am \
+ install-html install-html-am install-info install-info-am \
+ install-man install-pdf install-pdf-am install-ps \
+ install-ps-am install-strip installcheck installcheck-am \
+ installdirs maintainer-clean maintainer-clean-generic \
+ mostlyclean mostlyclean-compile mostlyclean-generic pdf pdf-am \
+ ps ps-am tags tags-am uninstall uninstall-am \
+ uninstall-binPROGRAMS
+
+
+resources.c: $(top_srcdir)/data/simple-scan.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --generate-dependencies --sourcedir=$(top_srcdir)/data/ $(top_srcdir)/data/simple-scan.gresource.xml)
+ $(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(top_srcdir)/data/ --generate-source $<
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
diff --git a/src/autosave-manager.c b/src/autosave-manager.c
new file mode 100644
index 0000000..a97cb6c
--- /dev/null
+++ b/src/autosave-manager.c
@@ -0,0 +1,3481 @@
+/* autosave-manager.c generated by valac 0.20.1, the Vala compiler
+ * generated from autosave-manager.vala, do not modify */
+
+/*
+ * Copyright (C) 2011 Timo Kluck
+ * Author: Timo Kluck <tkluck@infty.nl>
+ *
+ * This program is free software: you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License as published by the Free Software
+ * Foundation, either version 3 of the License, or (at your option) any later
+ * version. See http://www.gnu.org/copyleft/gpl.html the full text of the
+ * license.
+ */
+/*
+ * We store autosaves in a database named
+ * ~/.cache/simple-scan/autosaves/autosaves.db
+ * It contains a single table of pages, each containing the process id (pid) of
+ * the simple-scan instance that saved it, and a hash of the Book and Page
+ * objects corresponding to it. The pixels are saved as a BLOB.
+ * Additionally, the autosaves directory contains a number of tiff files that
+ * the user can use for manual recovery.
+ *
+ * At startup, we check whether autosaves.db contains any records
+ * with a pid that does not match a current pid for simple-scan. If so, we take
+ * ownership by an UPDATE statement changing to our own pid. Then, we
+ * recover the book. We're trying our best to avoid the possible race
+ * condition if several instances of simple-scan are started simultaneously.
+ *
+ * At application exit, we delete the records corresponding to our own pid.
+ *
+ * Important notes:
+ * - We enforce that there is only one AutosaveManager instance in a given
+ * process by using a create function.
+ * - It should be possible to change the book object at runtime, although this
+ * is not used in the current implementation so it has not been tested.
+ */
+
+#include <glib.h>
+#include <glib-object.h>
+#include <sqlite3.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
+#include <gio/gio.h>
+#include <float.h>
+#include <math.h>
+#include <gobject/gvaluecollector.h>
+
+
+#define TYPE_AUTOSAVE_MANAGER (autosave_manager_get_type ())
+#define AUTOSAVE_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_AUTOSAVE_MANAGER, AutosaveManager))
+#define AUTOSAVE_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_AUTOSAVE_MANAGER, AutosaveManagerClass))
+#define IS_AUTOSAVE_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_AUTOSAVE_MANAGER))
+#define IS_AUTOSAVE_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_AUTOSAVE_MANAGER))
+#define AUTOSAVE_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_AUTOSAVE_MANAGER, AutosaveManagerClass))
+
+typedef struct _AutosaveManager AutosaveManager;
+typedef struct _AutosaveManagerClass AutosaveManagerClass;
+typedef struct _AutosaveManagerPrivate AutosaveManagerPrivate;
+
+#define TYPE_BOOK (book_get_type ())
+#define BOOK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BOOK, Book))
+#define BOOK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BOOK, BookClass))
+#define IS_BOOK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BOOK))
+#define IS_BOOK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BOOK))
+#define BOOK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BOOK, BookClass))
+
+typedef struct _Book Book;
+typedef struct _BookClass BookClass;
+
+#define TYPE_PAGE (page_get_type ())
+#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page))
+#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass))
+#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE))
+#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE))
+#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass))
+
+typedef struct _Page Page;
+typedef struct _PageClass PageClass;
+#define _sqlite3_close0(var) ((var == NULL) ? NULL : (var = (sqlite3_close (var), NULL)))
+#define _book_unref0(var) ((var == NULL) ? NULL : (var = (book_unref (var), NULL)))
+#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL)))
+#define _autosave_manager_unref0(var) ((var == NULL) ? NULL : (var = (autosave_manager_unref (var), NULL)))
+#define _g_free0(var) (var = (g_free (var), NULL))
+#define _sqlite3_finalize0(var) ((var == NULL) ? NULL : (var = (sqlite3_finalize (var), NULL)))
+#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
+#define _page_unref0(var) ((var == NULL) ? NULL : (var = (page_unref (var), NULL)))
+#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
+
+#define TYPE_SCAN_DIRECTION (scan_direction_get_type ())
+
+#define TYPE_SCAN_PAGE_INFO (scan_page_info_get_type ())
+#define SCAN_PAGE_INFO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SCAN_PAGE_INFO, ScanPageInfo))
+#define SCAN_PAGE_INFO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SCAN_PAGE_INFO, ScanPageInfoClass))
+#define IS_SCAN_PAGE_INFO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SCAN_PAGE_INFO))
+#define IS_SCAN_PAGE_INFO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SCAN_PAGE_INFO))
+#define SCAN_PAGE_INFO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SCAN_PAGE_INFO, ScanPageInfoClass))
+
+typedef struct _ScanPageInfo ScanPageInfo;
+typedef struct _ScanPageInfoClass ScanPageInfoClass;
+typedef struct _ScanPageInfoPrivate ScanPageInfoPrivate;
+#define _scan_page_info_unref0(var) ((var == NULL) ? NULL : (var = (scan_page_info_unref (var), NULL)))
+typedef struct _ParamSpecAutosaveManager ParamSpecAutosaveManager;
+
+struct _AutosaveManager {
+ GTypeInstance parent_instance;
+ volatile int ref_count;
+ AutosaveManagerPrivate * priv;
+};
+
+struct _AutosaveManagerClass {
+ GTypeClass parent_class;
+ void (*finalize) (AutosaveManager *self);
+};
+
+struct _AutosaveManagerPrivate {
+ sqlite3* database_connection;
+ Book* _book;
+ guint update_timeout;
+ GHashTable* dirty_pages;
+ gint cur_book_revision;
+};
+
+typedef enum {
+ SCAN_DIRECTION_TOP_TO_BOTTOM,
+ SCAN_DIRECTION_LEFT_TO_RIGHT,
+ SCAN_DIRECTION_BOTTOM_TO_TOP,
+ SCAN_DIRECTION_RIGHT_TO_LEFT
+} ScanDirection;
+
+struct _ScanPageInfo {
+ GTypeInstance parent_instance;
+ volatile int ref_count;
+ ScanPageInfoPrivate * priv;
+ gint width;
+ gint height;
+ gint depth;
+ gint n_channels;
+ gdouble dpi;
+ gchar* device;
+};
+
+struct _ScanPageInfoClass {
+ GTypeClass parent_class;
+ void (*finalize) (ScanPageInfo *self);
+};
+
+struct _ParamSpecAutosaveManager {
+ GParamSpec parent_instance;
+};
+
+
+static gpointer autosave_manager_parent_class = NULL;
+static gchar* autosave_manager_AUTOSAVE_DIR;
+static gchar* autosave_manager_AUTOSAVE_DIR = NULL;
+static gchar* autosave_manager_AUTOSAVE_NAME;
+static gchar* autosave_manager_AUTOSAVE_NAME = NULL;
+static gchar* autosave_manager_AUTOSAVE_EXT;
+static gchar* autosave_manager_AUTOSAVE_EXT = NULL;
+static gchar* autosave_manager_AUTOSAVE_FILENAME;
+static gchar* autosave_manager_AUTOSAVE_FILENAME = NULL;
+static gchar* autosave_manager_PID;
+static gchar* autosave_manager_PID = NULL;
+static gint autosave_manager_number_of_instances;
+static gint autosave_manager_number_of_instances = 0;
+
+gpointer autosave_manager_ref (gpointer instance);
+void autosave_manager_unref (gpointer instance);
+GParamSpec* param_spec_autosave_manager (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void value_set_autosave_manager (GValue* value, gpointer v_object);
+void value_take_autosave_manager (GValue* value, gpointer v_object);
+gpointer value_get_autosave_manager (const GValue* value);
+GType autosave_manager_get_type (void) G_GNUC_CONST;
+gpointer book_ref (gpointer instance);
+void book_unref (gpointer instance);
+GParamSpec* param_spec_book (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void value_set_book (GValue* value, gpointer v_object);
+void value_take_book (GValue* value, gpointer v_object);
+gpointer value_get_book (const GValue* value);
+GType book_get_type (void) G_GNUC_CONST;
+gpointer page_ref (gpointer instance);
+void page_unref (gpointer instance);
+GParamSpec* param_spec_page (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void value_set_page (GValue* value, gpointer v_object);
+void value_take_page (GValue* value, gpointer v_object);
+gpointer value_get_page (const GValue* value);
+GType page_get_type (void) G_GNUC_CONST;
+#define AUTOSAVE_MANAGER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_AUTOSAVE_MANAGER, AutosaveManagerPrivate))
+enum {
+ AUTOSAVE_MANAGER_DUMMY_PROPERTY
+};
+AutosaveManager* autosave_manager_create (Book** book);
+static AutosaveManager* autosave_manager_new (void);
+static AutosaveManager* autosave_manager_construct (GType object_type);
+static sqlite3* autosave_manager_open_database_connection (GError** error);
+static void autosave_manager_recover_book (AutosaveManager* self, Book** book);
+void autosave_manager_set_book (AutosaveManager* self, Book* value);
+guint book_get_n_pages (Book* self);
+Page* book_get_page (Book* self, gint page_number);
+static void autosave_manager_on_page_added (AutosaveManager* self, Page* page);
+static void _page_unref0_ (gpointer var);
+void autosave_manager_cleanup (AutosaveManager* self);
+static void autosave_manager_insert_page (AutosaveManager* self, Page* page);
+void autosave_manager_on_page_changed (AutosaveManager* self, Page* page);
+static void _autosave_manager_on_page_changed_page_size_changed (Page* _sender, gpointer self);
+static void _autosave_manager_on_page_changed_page_scan_direction_changed (Page* _sender, gpointer self);
+static void _autosave_manager_on_page_changed_page_crop_changed (Page* _sender, gpointer self);
+static void _autosave_manager_on_page_changed_page_scan_finished (Page* _sender, gpointer self);
+void autosave_manager_on_page_removed (AutosaveManager* self, Page* page);
+static void _autosave_manager_on_page_changed_page_pixels_changed (Page* _sender, gpointer self);
+Book* autosave_manager_get_book (AutosaveManager* self);
+void autosave_manager_on_reordered (AutosaveManager* self);
+static void autosave_manager_update_page (AutosaveManager* self, Page* page);
+void autosave_manager_on_needs_saving_changed (AutosaveManager* self, Book* book);
+void autosave_manager_on_cleared (AutosaveManager* self);
+static gboolean __lambda2_ (AutosaveManager* self);
+static void autosave_manager_real_update_page (AutosaveManager* self, Page* page);
+static gboolean ___lambda2__gsource_func (gpointer self);
+void page_get_crop (Page* self, gint* x, gint* y, gint* width, gint* height);
+guint book_get_page_index (Book* self, Page* page);
+gint page_get_dpi (Page* self);
+gint page_get_width (Page* self);
+gint page_get_height (Page* self);
+gint page_get_depth (Page* self);
+gint page_get_n_channels (Page* self);
+gint page_get_rowstride (Page* self);
+GType scan_direction_get_type (void) G_GNUC_CONST;
+ScanDirection page_get_scan_direction (Page* self);
+gchar* page_get_color_profile (Page* self);
+guchar* page_get_pixels (Page* self, int* result_length1);
+void book_clear (Book* self);
+Page* book_append_page (Book* self, gint width, gint height, gint dpi, ScanDirection scan_direction);
+ScanPageInfo* scan_page_info_new (void);
+ScanPageInfo* scan_page_info_construct (GType object_type);
+gpointer scan_page_info_ref (gpointer instance);
+void scan_page_info_unref (gpointer instance);
+GParamSpec* param_spec_scan_page_info (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void value_set_scan_page_info (GValue* value, gpointer v_object);
+void value_take_scan_page_info (GValue* value, gpointer v_object);
+gpointer value_get_scan_page_info (const GValue* value);
+GType scan_page_info_get_type (void) G_GNUC_CONST;
+void page_set_page_info (Page* self, ScanPageInfo* info);
+void page_set_color_profile (Page* self, const gchar* color_profile);
+void page_set_custom_crop (Page* self, gint width, gint height);
+void page_move_crop (Page* self, gint x, gint y);
+void page_set_pixels (Page* self, guchar* new_pixels, int new_pixels_length1);
+static void _autosave_manager_on_page_added_book_page_added (Book* _sender, Page* page, gpointer self);
+static void _autosave_manager_on_page_removed_book_page_removed (Book* _sender, Page* page, gpointer self);
+static void _autosave_manager_on_reordered_book_reordered (Book* _sender, gpointer self);
+static void _autosave_manager_on_cleared_book_cleared (Book* _sender, gpointer self);
+static void autosave_manager_finalize (AutosaveManager* obj);
+
+
+static gchar* string_strip (const gchar* self) {
+ gchar* result = NULL;
+ gchar* _tmp0_ = NULL;
+ gchar* _result_;
+ const gchar* _tmp1_;
+#line 1085 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ g_return_val_if_fail (self != NULL, NULL);
+#line 1086 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ _tmp0_ = g_strdup (self);
+#line 1086 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ _result_ = _tmp0_;
+#line 1087 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ _tmp1_ = _result_;
+#line 1087 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ g_strstrip (_tmp1_);
+#line 1088 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ result = _result_;
+#line 1088 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ return result;
+#line 274 "autosave-manager.c"
+}
+
+
+static const gchar* string_to_string (const gchar* self) {
+ const gchar* result = NULL;
+#line 1274 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ g_return_val_if_fail (self != NULL, NULL);
+#line 1275 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ result = self;
+#line 1275 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ return result;
+#line 286 "autosave-manager.c"
+}
+
+
+AutosaveManager* autosave_manager_create (Book** book) {
+ AutosaveManager* result = NULL;
+ gint _tmp0_;
+ AutosaveManager* _tmp1_;
+ AutosaveManager* man;
+ gint _tmp2_;
+ gboolean any_pages_recovered;
+ AutosaveManager* _tmp51_;
+ Book* _tmp52_;
+ gboolean _tmp53_;
+ GError * _inner_error_ = NULL;
+#line 85 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_return_val_if_fail (*book != NULL, NULL);
+#line 92 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp0_ = autosave_manager_number_of_instances;
+#line 92 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (_tmp0_ > 0) {
+#line 93 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_assert_not_reached ();
+#line 309 "autosave-manager.c"
+ }
+#line 95 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp1_ = autosave_manager_new ();
+#line 95 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ man = _tmp1_;
+#line 96 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp2_ = autosave_manager_number_of_instances;
+#line 96 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ autosave_manager_number_of_instances = _tmp2_ + 1;
+#line 319 "autosave-manager.c"
+ {
+ sqlite3* _tmp3_ = NULL;
+ sqlite3* _tmp4_;
+ AutosaveManager* _tmp5_;
+#line 100 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp3_ = autosave_manager_open_database_connection (&_inner_error_);
+#line 100 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp4_ = _tmp3_;
+#line 100 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (_inner_error_ != NULL) {
+#line 330 "autosave-manager.c"
+ goto __catch23_g_error;
+ }
+#line 100 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp5_ = man;
+#line 100 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _sqlite3_close0 (_tmp5_->priv->database_connection);
+#line 100 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp5_->priv->database_connection = _tmp4_;
+#line 339 "autosave-manager.c"
+ }
+ goto __finally23;
+ __catch23_g_error:
+ {
+#line 98 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_clear_error (&_inner_error_);
+#line 98 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _inner_error_ = NULL;
+#line 104 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_warning ("autosave-manager.vala:104: Could not connect to the autosave database;" \
+" no autosaves will be kept.");
+#line 105 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ result = NULL;
+#line 105 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _autosave_manager_unref0 (man);
+#line 105 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ return result;
+#line 356 "autosave-manager.c"
+ }
+ __finally23:
+#line 98 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (_inner_error_ != NULL) {
+#line 98 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _autosave_manager_unref0 (man);
+#line 98 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 98 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_clear_error (&_inner_error_);
+#line 98 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ return NULL;
+#line 369 "autosave-manager.c"
+ }
+#line 108 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ any_pages_recovered = FALSE;
+#line 373 "autosave-manager.c"
+ {
+ gchar* current_pids = NULL;
+ gchar* _tmp6_ = NULL;
+ const gchar* _tmp7_;
+ gchar* _tmp8_ = NULL;
+ sqlite3_stmt* stmt = NULL;
+ const gchar* _tmp9_;
+ const gchar* _tmp10_ = NULL;
+ gchar* _tmp11_ = NULL;
+ gchar* query;
+ AutosaveManager* _tmp12_;
+ sqlite3* _tmp13_;
+ const gchar* _tmp14_;
+ sqlite3_stmt* _tmp15_ = NULL;
+ gint _tmp16_ = 0;
+ gint _result_;
+ gint _tmp17_;
+#line 113 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_spawn_command_line_sync ("pidof simple-scan | sed \"s/ /,/g\"", &_tmp6_, NULL, NULL, &_inner_error_);
+#line 113 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _g_free0 (current_pids);
+#line 113 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ current_pids = _tmp6_;
+#line 113 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (_inner_error_ != NULL) {
+#line 113 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _g_free0 (current_pids);
+#line 113 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (_inner_error_->domain == G_SPAWN_ERROR) {
+#line 403 "autosave-manager.c"
+ goto __catch24_g_spawn_error;
+ }
+#line 113 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _g_free0 (current_pids);
+#line 113 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _autosave_manager_unref0 (man);
+#line 113 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 113 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_clear_error (&_inner_error_);
+#line 113 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ return NULL;
+#line 416 "autosave-manager.c"
+ }
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp7_ = current_pids;
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp8_ = string_strip (_tmp7_);
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _g_free0 (current_pids);
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ current_pids = _tmp8_;
+#line 116 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp9_ = current_pids;
+#line 116 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp10_ = string_to_string (_tmp9_);
+#line 116 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp11_ = g_strconcat ("\n" \
+" SELECT process_id, book_hash, book_revision FROM pa" \
+"ges\n" \
+" WHERE NOT process_id IN (", _tmp10_, ")\n LIMIT 1\n ", NULL);
+#line 116 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ query = _tmp11_;
+#line 122 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp12_ = man;
+#line 122 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp13_ = _tmp12_->priv->database_connection;
+#line 122 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp14_ = query;
+#line 122 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp16_ = sqlite3_prepare_v2 (_tmp13_, _tmp14_, -1, &_tmp15_, NULL);
+#line 122 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _sqlite3_finalize0 (stmt);
+#line 122 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ stmt = _tmp15_;
+#line 122 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _result_ = _tmp16_;
+#line 123 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp17_ = _result_;
+#line 123 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (_tmp17_ == SQLITE_OK) {
+#line 125 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ while (TRUE) {
+#line 454 "autosave-manager.c"
+ sqlite3_stmt* _tmp18_;
+ gint _tmp19_ = 0;
+ sqlite3_stmt* _tmp20_;
+ gint _tmp21_ = 0;
+ gint unowned_pid;
+ sqlite3_stmt* _tmp22_;
+ gint _tmp23_ = 0;
+ gint book_hash;
+ sqlite3_stmt* _tmp24_;
+ gint _tmp25_ = 0;
+ gint book_revision;
+ const gchar* _tmp26_;
+ const gchar* _tmp27_ = NULL;
+ gchar* _tmp28_ = NULL;
+ sqlite3_stmt* stmt2 = NULL;
+ AutosaveManager* _tmp29_;
+ sqlite3* _tmp30_;
+ const gchar* _tmp31_;
+ sqlite3_stmt* _tmp32_ = NULL;
+ gint _tmp33_ = 0;
+ gint _tmp34_;
+ sqlite3_stmt* _tmp39_;
+ gint _tmp40_;
+ sqlite3_stmt* _tmp41_;
+ gint _tmp42_;
+ sqlite3_stmt* _tmp43_;
+ gint _tmp44_;
+ sqlite3_stmt* _tmp45_;
+ gint _tmp46_ = 0;
+ gint _tmp47_;
+#line 125 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp18_ = stmt;
+#line 125 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp19_ = sqlite3_step (_tmp18_);
+#line 125 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (!(_tmp19_ == SQLITE_ROW)) {
+#line 125 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ break;
+#line 493 "autosave-manager.c"
+ }
+#line 127 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_debug ("autosave-manager.vala:127: Found at least one autosave page, taking ow" \
+"nership");
+#line 128 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp20_ = stmt;
+#line 128 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp21_ = sqlite3_column_int (_tmp20_, 0);
+#line 128 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ unowned_pid = _tmp21_;
+#line 129 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp22_ = stmt;
+#line 129 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp23_ = sqlite3_column_int (_tmp22_, 1);
+#line 129 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ book_hash = _tmp23_;
+#line 130 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp24_ = stmt;
+#line 130 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp25_ = sqlite3_column_int (_tmp24_, 2);
+#line 130 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ book_revision = _tmp25_;
+#line 137 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp26_ = autosave_manager_PID;
+#line 137 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp27_ = string_to_string (_tmp26_);
+#line 137 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp28_ = g_strconcat ("\n" \
+" UPDATE pages\n" \
+" SET process_id = ", _tmp27_, "\n" \
+" WHERE process_id = ?2\n" \
+" AND book_hash = ?3\n" \
+" AND book_revision = ?4", NULL);
+#line 137 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _g_free0 (query);
+#line 137 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ query = _tmp28_;
+#line 144 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp29_ = man;
+#line 144 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp30_ = _tmp29_->priv->database_connection;
+#line 144 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp31_ = query;
+#line 144 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp33_ = sqlite3_prepare_v2 (_tmp30_, _tmp31_, -1, &_tmp32_, NULL);
+#line 144 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _sqlite3_finalize0 (stmt2);
+#line 144 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ stmt2 = _tmp32_;
+#line 144 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _result_ = _tmp33_;
+#line 145 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp34_ = _result_;
+#line 145 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (_tmp34_ != SQLITE_OK) {
+#line 543 "autosave-manager.c"
+ const gchar* _tmp35_;
+ const gchar* _tmp36_ = NULL;
+ gchar* _tmp37_ = NULL;
+ gchar* _tmp38_;
+#line 146 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp35_ = query;
+#line 146 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp36_ = string_to_string (_tmp35_);
+#line 146 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp37_ = g_strconcat ("Error preparing statement: ", _tmp36_, NULL);
+#line 146 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp38_ = _tmp37_;
+#line 146 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_warning ("autosave-manager.vala:146: %s", _tmp38_);
+#line 146 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _g_free0 (_tmp38_);
+#line 560 "autosave-manager.c"
+ }
+#line 148 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp39_ = stmt2;
+#line 148 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp40_ = unowned_pid;
+#line 148 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ sqlite3_bind_int64 (_tmp39_, 2, (gint64) _tmp40_);
+#line 149 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp41_ = stmt2;
+#line 149 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp42_ = book_hash;
+#line 149 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ sqlite3_bind_int64 (_tmp41_, 3, (gint64) _tmp42_);
+#line 150 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp43_ = stmt2;
+#line 150 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp44_ = book_revision;
+#line 150 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ sqlite3_bind_int64 (_tmp43_, 4, (gint64) _tmp44_);
+#line 151 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp45_ = stmt2;
+#line 151 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp46_ = sqlite3_step (_tmp45_);
+#line 151 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _result_ = _tmp46_;
+#line 152 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp47_ = _result_;
+#line 152 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (_tmp47_ == SQLITE_DONE) {
+#line 590 "autosave-manager.c"
+ AutosaveManager* _tmp48_;
+#line 154 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ any_pages_recovered = TRUE;
+#line 155 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp48_ = man;
+#line 155 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ autosave_manager_recover_book (_tmp48_, book);
+#line 598 "autosave-manager.c"
+ } else {
+ gint _tmp49_;
+#line 158 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp49_ = _result_;
+#line 158 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_warning ("autosave-manager.vala:158: Error %d while executing query", _tmp49_);
+#line 605 "autosave-manager.c"
+ }
+#line 125 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _sqlite3_finalize0 (stmt2);
+#line 609 "autosave-manager.c"
+ }
+ } else {
+ gint _tmp50_;
+#line 162 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp50_ = _result_;
+#line 162 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_warning ("autosave-manager.vala:162: Error %d while preparing statement", _tmp50_);
+#line 617 "autosave-manager.c"
+ }
+#line 109 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _g_free0 (query);
+#line 109 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _sqlite3_finalize0 (stmt);
+#line 109 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _g_free0 (current_pids);
+#line 625 "autosave-manager.c"
+ }
+ goto __finally24;
+ __catch24_g_spawn_error:
+ {
+ GError* e = NULL;
+#line 109 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ e = _inner_error_;
+#line 109 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _inner_error_ = NULL;
+#line 166 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_warning ("autosave-manager.vala:166: Could not obtain current process ids; not r" \
+"estoring any autosaves");
+#line 109 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _g_error_free0 (e);
+#line 639 "autosave-manager.c"
+ }
+ __finally24:
+#line 109 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (_inner_error_ != NULL) {
+#line 109 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _autosave_manager_unref0 (man);
+#line 109 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 109 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_clear_error (&_inner_error_);
+#line 109 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ return NULL;
+#line 652 "autosave-manager.c"
+ }
+#line 169 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp51_ = man;
+#line 169 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp52_ = *book;
+#line 169 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ autosave_manager_set_book (_tmp51_, _tmp52_);
+#line 170 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp53_ = any_pages_recovered;
+#line 170 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (!_tmp53_) {
+#line 664 "autosave-manager.c"
+ {
+ gint i;
+#line 172 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ i = 0;
+#line 669 "autosave-manager.c"
+ {
+ gboolean _tmp54_;
+#line 172 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp54_ = TRUE;
+#line 172 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ while (TRUE) {
+#line 676 "autosave-manager.c"
+ gboolean _tmp55_;
+ gint _tmp57_;
+ Book* _tmp58_;
+ guint _tmp59_ = 0U;
+ Book* _tmp60_;
+ gint _tmp61_;
+ Page* _tmp62_ = NULL;
+ Page* page;
+ AutosaveManager* _tmp63_;
+ Page* _tmp64_;
+#line 172 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp55_ = _tmp54_;
+#line 172 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (!_tmp55_) {
+#line 691 "autosave-manager.c"
+ gint _tmp56_;
+#line 172 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp56_ = i;
+#line 172 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ i = _tmp56_ + 1;
+#line 697 "autosave-manager.c"
+ }
+#line 172 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp54_ = FALSE;
+#line 172 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp57_ = i;
+#line 172 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp58_ = *book;
+#line 172 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp59_ = book_get_n_pages (_tmp58_);
+#line 172 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (!(((guint) _tmp57_) < _tmp59_)) {
+#line 172 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ break;
+#line 711 "autosave-manager.c"
+ }
+#line 174 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp60_ = *book;
+#line 174 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp61_ = i;
+#line 174 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp62_ = book_get_page (_tmp60_, _tmp61_);
+#line 174 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ page = _tmp62_;
+#line 175 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp63_ = man;
+#line 175 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp64_ = page;
+#line 175 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ autosave_manager_on_page_added (_tmp63_, _tmp64_);
+#line 172 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _page_unref0 (page);
+#line 729 "autosave-manager.c"
+ }
+ }
+ }
+ }
+#line 179 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ result = man;
+#line 179 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ return result;
+#line 738 "autosave-manager.c"
+}
+
+
+static void _page_unref0_ (gpointer var) {
+#line 184 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ (var == NULL) ? NULL : (var = (page_unref (var), NULL));
+#line 745 "autosave-manager.c"
+}
+
+
+static AutosaveManager* autosave_manager_construct (GType object_type) {
+ AutosaveManager* self = NULL;
+ GHashFunc _tmp0_;
+ GEqualFunc _tmp1_;
+ GHashTable* _tmp2_;
+#line 182 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ self = (AutosaveManager*) g_type_create_instance (object_type);
+#line 184 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp0_ = g_direct_hash;
+#line 184 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp1_ = g_direct_equal;
+#line 184 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp2_ = g_hash_table_new_full (_tmp0_, _tmp1_, _page_unref0_, NULL);
+#line 184 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _g_hash_table_unref0 (self->priv->dirty_pages);
+#line 184 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ self->priv->dirty_pages = _tmp2_;
+#line 182 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ return self;
+#line 768 "autosave-manager.c"
+}
+
+
+static AutosaveManager* autosave_manager_new (void) {
+#line 182 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ return autosave_manager_construct (TYPE_AUTOSAVE_MANAGER);
+#line 775 "autosave-manager.c"
+}
+
+
+static gint _sqlite3_exec (sqlite3* self, const gchar* sql, sqlite3_callback callback, void* callback_target, gchar** errmsg) {
+ gchar* _vala_errmsg = NULL;
+ gint result = 0;
+ const gchar* sqlite_errmsg = NULL;
+ const gchar* _tmp0_;
+ sqlite3_callback _tmp1_;
+ void* _tmp1__target;
+ const gchar* _tmp2_ = NULL;
+ gint _tmp3_ = 0;
+ gint ec;
+ const gchar* _tmp6_;
+#line 34 "/usr/share/vala-0.20/vapi/sqlite3.vapi"
+ g_return_val_if_fail (self != NULL, 0);
+#line 34 "/usr/share/vala-0.20/vapi/sqlite3.vapi"
+ g_return_val_if_fail (sql != NULL, 0);
+#line 36 "/usr/share/vala-0.20/vapi/sqlite3.vapi"
+ _tmp0_ = sql;
+#line 36 "/usr/share/vala-0.20/vapi/sqlite3.vapi"
+ _tmp1_ = callback;
+#line 36 "/usr/share/vala-0.20/vapi/sqlite3.vapi"
+ _tmp1__target = callback_target;
+#line 36 "/usr/share/vala-0.20/vapi/sqlite3.vapi"
+ _tmp3_ = sqlite3_exec (self, _tmp0_, _tmp1_, _tmp1__target, (char**) (&_tmp2_));
+#line 36 "/usr/share/vala-0.20/vapi/sqlite3.vapi"
+ sqlite_errmsg = _tmp2_;
+#line 36 "/usr/share/vala-0.20/vapi/sqlite3.vapi"
+ ec = _tmp3_;
+#line 37 "/usr/share/vala-0.20/vapi/sqlite3.vapi"
+ if ((&_vala_errmsg) != NULL) {
+#line 808 "autosave-manager.c"
+ const gchar* _tmp4_;
+ gchar* _tmp5_;
+#line 38 "/usr/share/vala-0.20/vapi/sqlite3.vapi"
+ _tmp4_ = sqlite_errmsg;
+#line 38 "/usr/share/vala-0.20/vapi/sqlite3.vapi"
+ _tmp5_ = g_strdup (_tmp4_);
+#line 38 "/usr/share/vala-0.20/vapi/sqlite3.vapi"
+ _g_free0 (_vala_errmsg);
+#line 38 "/usr/share/vala-0.20/vapi/sqlite3.vapi"
+ _vala_errmsg = _tmp5_;
+#line 819 "autosave-manager.c"
+ }
+#line 40 "/usr/share/vala-0.20/vapi/sqlite3.vapi"
+ _tmp6_ = sqlite_errmsg;
+#line 40 "/usr/share/vala-0.20/vapi/sqlite3.vapi"
+ sqlite3_free ((void*) _tmp6_);
+#line 41 "/usr/share/vala-0.20/vapi/sqlite3.vapi"
+ result = ec;
+#line 41 "/usr/share/vala-0.20/vapi/sqlite3.vapi"
+ if (errmsg) {
+#line 41 "/usr/share/vala-0.20/vapi/sqlite3.vapi"
+ *errmsg = _vala_errmsg;
+#line 831 "autosave-manager.c"
+ } else {
+#line 41 "/usr/share/vala-0.20/vapi/sqlite3.vapi"
+ _g_free0 (_vala_errmsg);
+#line 835 "autosave-manager.c"
+ }
+#line 41 "/usr/share/vala-0.20/vapi/sqlite3.vapi"
+ return result;
+#line 839 "autosave-manager.c"
+}
+
+
+void autosave_manager_cleanup (AutosaveManager* self) {
+ guint _tmp0_;
+ sqlite3* _tmp2_;
+ const gchar* _tmp3_;
+ const gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gchar* _tmp6_;
+ gint _tmp7_ = 0;
+#line 187 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_return_if_fail (self != NULL);
+#line 189 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_debug ("autosave-manager.vala:189: Clean exit; deleting autosave records");
+#line 191 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp0_ = self->priv->update_timeout;
+#line 191 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (_tmp0_ > ((guint) 0)) {
+#line 859 "autosave-manager.c"
+ guint _tmp1_;
+#line 192 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp1_ = self->priv->update_timeout;
+#line 192 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_source_remove (_tmp1_);
+#line 865 "autosave-manager.c"
+ }
+#line 193 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ self->priv->update_timeout = (guint) 0;
+#line 195 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp2_ = self->priv->database_connection;
+#line 195 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp3_ = autosave_manager_PID;
+#line 195 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp4_ = string_to_string (_tmp3_);
+#line 195 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp5_ = g_strconcat ("\n DELETE FROM pages\n WHERE process_id = ", _tmp4_, "\n ", NULL);
+#line 195 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp6_ = _tmp5_;
+#line 195 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp7_ = _sqlite3_exec (_tmp2_, _tmp6_, NULL, NULL, NULL);
+#line 195 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_warn_if_fail (_tmp7_ == SQLITE_OK);
+#line 195 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _g_free0 (_tmp6_);
+#line 885 "autosave-manager.c"
+}
+
+
+static sqlite3* autosave_manager_open_database_connection (GError** error) {
+ sqlite3* result = NULL;
+ const gchar* _tmp0_;
+ GFile* _tmp1_ = NULL;
+ GFile* autosaves_dir;
+ sqlite3* connection = NULL;
+ const gchar* _tmp3_;
+ sqlite3* _tmp4_ = NULL;
+ gint _tmp5_ = 0;
+ gchar* _tmp7_;
+ gchar* query;
+ sqlite3* _tmp8_;
+ const gchar* _tmp9_;
+ gint _tmp10_ = 0;
+ gint _result_;
+ gint _tmp11_;
+ GError * _inner_error_ = NULL;
+#line 203 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp0_ = autosave_manager_AUTOSAVE_DIR;
+#line 203 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp1_ = g_file_new_for_path (_tmp0_);
+#line 203 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ autosaves_dir = _tmp1_;
+#line 912 "autosave-manager.c"
+ {
+ GFile* _tmp2_;
+#line 206 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp2_ = autosaves_dir;
+#line 206 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_file_make_directory_with_parents (_tmp2_, NULL, &_inner_error_);
+#line 206 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (_inner_error_ != NULL) {
+#line 921 "autosave-manager.c"
+ goto __catch25_g_error;
+ }
+ }
+ goto __finally25;
+ __catch25_g_error:
+ {
+#line 204 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_clear_error (&_inner_error_);
+#line 204 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _inner_error_ = NULL;
+#line 932 "autosave-manager.c"
+ }
+ __finally25:
+#line 204 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (_inner_error_ != NULL) {
+#line 204 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_propagate_error (error, _inner_error_);
+#line 204 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _g_object_unref0 (autosaves_dir);
+#line 204 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ return NULL;
+#line 943 "autosave-manager.c"
+ }
+#line 213 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp3_ = autosave_manager_AUTOSAVE_FILENAME;
+#line 213 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp5_ = sqlite3_open (_tmp3_, &_tmp4_);
+#line 213 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _sqlite3_close0 (connection);
+#line 213 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ connection = _tmp4_;
+#line 213 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (_tmp5_ != SQLITE_OK) {
+#line 955 "autosave-manager.c"
+ GError* _tmp6_;
+#line 214 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp6_ = g_error_new_literal (G_IO_ERROR, G_IO_ERROR_FAILED, "Could not connect to autosave database");
+#line 214 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _inner_error_ = _tmp6_;
+#line 214 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_propagate_error (error, _inner_error_);
+#line 214 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _sqlite3_close0 (connection);
+#line 214 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _g_object_unref0 (autosaves_dir);
+#line 214 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ return NULL;
+#line 969 "autosave-manager.c"
+ }
+#line 215 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp7_ = g_strdup ("\n" \
+" CREATE TABLE IF NOT EXISTS pages (\n" \
+" id integer PRIMARY KEY,\n" \
+" process_id integer,\n" \
+" page_hash integer,\n" \
+" book_hash integer,\n" \
+" book_revision integer,\n" \
+" page_number integer,\n" \
+" dpi integer,\n" \
+" width integer,\n" \
+" height integer,\n" \
+" depth integer,\n" \
+" n_channels integer,\n" \
+" rowstride integer,\n" \
+" color_profile string,\n" \
+" crop_x integer,\n" \
+" crop_y integer,\n" \
+" crop_width integer,\n" \
+" crop_height integer,\n" \
+" scan_direction integer,\n" \
+" pixels binary\n" \
+" )");
+#line 215 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ query = _tmp7_;
+#line 237 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp8_ = connection;
+#line 237 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp9_ = query;
+#line 237 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp10_ = _sqlite3_exec (_tmp8_, _tmp9_, NULL, NULL, NULL);
+#line 237 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _result_ = _tmp10_;
+#line 238 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp11_ = _result_;
+#line 238 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (_tmp11_ != SQLITE_OK) {
+#line 987 "autosave-manager.c"
+ gint _tmp12_;
+#line 239 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp12_ = _result_;
+#line 239 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_warning ("autosave-manager.vala:239: Error %d while executing query", _tmp12_);
+#line 993 "autosave-manager.c"
+ }
+#line 240 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ result = connection;
+#line 240 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _g_free0 (query);
+#line 240 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _g_object_unref0 (autosaves_dir);
+#line 240 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ return result;
+#line 1003 "autosave-manager.c"
+}
+
+
+static void _autosave_manager_on_page_changed_page_size_changed (Page* _sender, gpointer self) {
+#line 247 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ autosave_manager_on_page_changed (self, _sender);
+#line 1010 "autosave-manager.c"
+}
+
+
+static void _autosave_manager_on_page_changed_page_scan_direction_changed (Page* _sender, gpointer self) {
+#line 248 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ autosave_manager_on_page_changed (self, _sender);
+#line 1017 "autosave-manager.c"
+}
+
+
+static void _autosave_manager_on_page_changed_page_crop_changed (Page* _sender, gpointer self) {
+#line 249 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ autosave_manager_on_page_changed (self, _sender);
+#line 1024 "autosave-manager.c"
+}
+
+
+static void _autosave_manager_on_page_changed_page_scan_finished (Page* _sender, gpointer self) {
+#line 250 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ autosave_manager_on_page_changed (self, _sender);
+#line 1031 "autosave-manager.c"
+}
+
+
+static void autosave_manager_on_page_added (AutosaveManager* self, Page* page) {
+ Page* _tmp0_;
+ Page* _tmp1_;
+ Page* _tmp2_;
+ Page* _tmp3_;
+ Page* _tmp4_;
+#line 243 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_return_if_fail (self != NULL);
+#line 243 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_return_if_fail (page != NULL);
+#line 245 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp0_ = page;
+#line 245 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ autosave_manager_insert_page (self, _tmp0_);
+#line 247 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp1_ = page;
+#line 247 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_signal_connect (_tmp1_, "size-changed", (GCallback) _autosave_manager_on_page_changed_page_size_changed, self);
+#line 248 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp2_ = page;
+#line 248 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_signal_connect (_tmp2_, "scan-direction-changed", (GCallback) _autosave_manager_on_page_changed_page_scan_direction_changed, self);
+#line 249 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp3_ = page;
+#line 249 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_signal_connect (_tmp3_, "crop-changed", (GCallback) _autosave_manager_on_page_changed_page_crop_changed, self);
+#line 250 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp4_ = page;
+#line 250 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_signal_connect (_tmp4_, "scan-finished", (GCallback) _autosave_manager_on_page_changed_page_scan_finished, self);
+#line 1065 "autosave-manager.c"
+}
+
+
+static void _autosave_manager_on_page_changed_page_pixels_changed (Page* _sender, gpointer self) {
+#line 255 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ autosave_manager_on_page_changed (self, _sender);
+#line 1072 "autosave-manager.c"
+}
+
+
+void autosave_manager_on_page_removed (AutosaveManager* self, Page* page) {
+ Page* _tmp0_;
+ guint _tmp1_ = 0U;
+ Page* _tmp2_;
+ guint _tmp3_ = 0U;
+ Page* _tmp4_;
+ guint _tmp5_ = 0U;
+ Page* _tmp6_;
+ guint _tmp7_ = 0U;
+ Page* _tmp8_;
+ const gchar* _tmp9_;
+ const gchar* _tmp10_ = NULL;
+ gchar* _tmp11_ = NULL;
+ gchar* query;
+ sqlite3_stmt* stmt = NULL;
+ sqlite3* _tmp12_;
+ const gchar* _tmp13_;
+ sqlite3_stmt* _tmp14_ = NULL;
+ gint _tmp15_ = 0;
+ gint _result_;
+ gint _tmp16_;
+ sqlite3_stmt* _tmp22_;
+ GHashFunc _tmp23_;
+ Page* _tmp24_;
+ guint _tmp25_ = 0U;
+ sqlite3_stmt* _tmp26_;
+ GHashFunc _tmp27_;
+ Book* _tmp28_;
+ Book* _tmp29_;
+ guint _tmp30_ = 0U;
+ sqlite3_stmt* _tmp31_;
+ gint _tmp32_;
+ sqlite3_stmt* _tmp33_;
+ gint _tmp34_ = 0;
+ gint _tmp35_;
+#line 253 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_return_if_fail (self != NULL);
+#line 253 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_return_if_fail (page != NULL);
+#line 255 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp0_ = page;
+#line 255 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_signal_parse_name ("pixels-changed", TYPE_PAGE, &_tmp1_, NULL, FALSE);
+#line 255 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _autosave_manager_on_page_changed_page_pixels_changed, self);
+#line 256 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp2_ = page;
+#line 256 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_signal_parse_name ("size-changed", TYPE_PAGE, &_tmp3_, NULL, FALSE);
+#line 256 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _autosave_manager_on_page_changed_page_size_changed, self);
+#line 257 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp4_ = page;
+#line 257 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_signal_parse_name ("scan-direction-changed", TYPE_PAGE, &_tmp5_, NULL, FALSE);
+#line 257 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_signal_handlers_disconnect_matched (_tmp4_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _autosave_manager_on_page_changed_page_scan_direction_changed, self);
+#line 258 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp6_ = page;
+#line 258 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_signal_parse_name ("crop-changed", TYPE_PAGE, &_tmp7_, NULL, FALSE);
+#line 258 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_signal_handlers_disconnect_matched (_tmp6_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp7_, 0, NULL, (GCallback) _autosave_manager_on_page_changed_page_crop_changed, self);
+#line 259 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp8_ = page;
+#line 259 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_signal_connect (_tmp8_, "scan-finished", (GCallback) _autosave_manager_on_page_changed_page_scan_finished, self);
+#line 261 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp9_ = autosave_manager_PID;
+#line 261 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp10_ = string_to_string (_tmp9_);
+#line 261 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp11_ = g_strconcat ("\n DELETE FROM pages\n WHERE process_id = ", _tmp10_, "\n" \
+" AND page_hash = ?2\n" \
+" AND book_hash = ?3\n" \
+" AND book_revision = ?4\n" \
+" ", NULL);
+#line 261 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ query = _tmp11_;
+#line 269 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp12_ = self->priv->database_connection;
+#line 269 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp13_ = query;
+#line 269 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp15_ = sqlite3_prepare_v2 (_tmp12_, _tmp13_, -1, &_tmp14_, NULL);
+#line 269 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _sqlite3_finalize0 (stmt);
+#line 269 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ stmt = _tmp14_;
+#line 269 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _result_ = _tmp15_;
+#line 270 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp16_ = _result_;
+#line 270 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (_tmp16_ != SQLITE_OK) {
+#line 1167 "autosave-manager.c"
+ gint _tmp17_;
+ gchar* _tmp18_ = NULL;
+ gchar* _tmp19_;
+ gchar* _tmp20_ = NULL;
+ gchar* _tmp21_;
+#line 271 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp17_ = _result_;
+#line 271 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp18_ = g_strdup_printf ("%i", _tmp17_);
+#line 271 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp19_ = _tmp18_;
+#line 271 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp20_ = g_strconcat ("Error ", _tmp19_, " while preparing query", NULL);
+#line 271 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp21_ = _tmp20_;
+#line 271 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_warning ("autosave-manager.vala:271: %s", _tmp21_);
+#line 271 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _g_free0 (_tmp21_);
+#line 271 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _g_free0 (_tmp19_);
+#line 1189 "autosave-manager.c"
+ }
+#line 272 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp22_ = stmt;
+#line 272 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp23_ = g_direct_hash;
+#line 272 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp24_ = page;
+#line 272 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp25_ = _tmp23_ (_tmp24_);
+#line 272 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ sqlite3_bind_int64 (_tmp22_, 2, (gint64) _tmp25_);
+#line 273 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp26_ = stmt;
+#line 273 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp27_ = g_direct_hash;
+#line 273 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp28_ = autosave_manager_get_book (self);
+#line 273 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp29_ = _tmp28_;
+#line 273 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp30_ = _tmp27_ (_tmp29_);
+#line 273 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ sqlite3_bind_int64 (_tmp26_, 3, (gint64) _tmp30_);
+#line 274 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp31_ = stmt;
+#line 274 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp32_ = self->priv->cur_book_revision;
+#line 274 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ sqlite3_bind_int64 (_tmp31_, 4, (gint64) _tmp32_);
+#line 276 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp33_ = stmt;
+#line 276 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp34_ = sqlite3_step (_tmp33_);
+#line 276 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _result_ = _tmp34_;
+#line 277 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp35_ = _result_;
+#line 277 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (_tmp35_ != SQLITE_DONE) {
+#line 1229 "autosave-manager.c"
+ gint _tmp36_;
+#line 278 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp36_ = _result_;
+#line 278 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_warning ("autosave-manager.vala:278: Error %d while executing query", _tmp36_);
+#line 1235 "autosave-manager.c"
+ }
+#line 253 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _sqlite3_finalize0 (stmt);
+#line 253 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _g_free0 (query);
+#line 1241 "autosave-manager.c"
+}
+
+
+void autosave_manager_on_reordered (AutosaveManager* self) {
+#line 281 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_return_if_fail (self != NULL);
+#line 1248 "autosave-manager.c"
+ {
+ gint i;
+#line 283 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ i = 0;
+#line 1253 "autosave-manager.c"
+ {
+ gboolean _tmp0_;
+#line 283 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp0_ = TRUE;
+#line 283 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ while (TRUE) {
+#line 1260 "autosave-manager.c"
+ gboolean _tmp1_;
+ gint _tmp3_;
+ Book* _tmp4_;
+ Book* _tmp5_;
+ guint _tmp6_ = 0U;
+ Book* _tmp7_;
+ Book* _tmp8_;
+ gint _tmp9_;
+ Page* _tmp10_ = NULL;
+ Page* page;
+ const gchar* _tmp11_;
+ const gchar* _tmp12_ = NULL;
+ gchar* _tmp13_ = NULL;
+ gchar* query;
+ sqlite3_stmt* stmt = NULL;
+ sqlite3* _tmp14_;
+ const gchar* _tmp15_;
+ sqlite3_stmt* _tmp16_ = NULL;
+ gint _tmp17_ = 0;
+ gint _result_;
+ gint _tmp18_;
+ sqlite3_stmt* _tmp24_;
+ gint _tmp25_;
+ sqlite3_stmt* _tmp26_;
+ GHashFunc _tmp27_;
+ Page* _tmp28_;
+ guint _tmp29_ = 0U;
+ sqlite3_stmt* _tmp30_;
+ GHashFunc _tmp31_;
+ Book* _tmp32_;
+ Book* _tmp33_;
+ guint _tmp34_ = 0U;
+ sqlite3_stmt* _tmp35_;
+ gint _tmp36_;
+ sqlite3_stmt* _tmp37_;
+ gint _tmp38_ = 0;
+ gint _tmp39_;
+#line 283 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp1_ = _tmp0_;
+#line 283 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (!_tmp1_) {
+#line 1302 "autosave-manager.c"
+ gint _tmp2_;
+#line 283 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp2_ = i;
+#line 283 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ i = _tmp2_ + 1;
+#line 1308 "autosave-manager.c"
+ }
+#line 283 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp0_ = FALSE;
+#line 283 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp3_ = i;
+#line 283 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp4_ = autosave_manager_get_book (self);
+#line 283 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp5_ = _tmp4_;
+#line 283 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp6_ = book_get_n_pages (_tmp5_);
+#line 283 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (!(((guint) _tmp3_) < _tmp6_)) {
+#line 283 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ break;
+#line 1324 "autosave-manager.c"
+ }
+#line 285 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp7_ = autosave_manager_get_book (self);
+#line 285 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp8_ = _tmp7_;
+#line 285 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp9_ = i;
+#line 285 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp10_ = book_get_page (_tmp8_, _tmp9_);
+#line 285 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ page = _tmp10_;
+#line 286 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp11_ = autosave_manager_PID;
+#line 286 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp12_ = string_to_string (_tmp11_);
+#line 286 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp13_ = g_strconcat ("\n" \
+" UPDATE pages SET page_number = ?5\n" \
+" WHERE process_id = ", _tmp12_, "\n" \
+" AND page_hash = ?2\n" \
+" AND book_hash = ?3\n" \
+" AND book_revision = ?4\n" \
+" ", NULL);
+#line 286 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ query = _tmp13_;
+#line 294 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp14_ = self->priv->database_connection;
+#line 294 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp15_ = query;
+#line 294 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp17_ = sqlite3_prepare_v2 (_tmp14_, _tmp15_, -1, &_tmp16_, NULL);
+#line 294 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _sqlite3_finalize0 (stmt);
+#line 294 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ stmt = _tmp16_;
+#line 294 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _result_ = _tmp17_;
+#line 295 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp18_ = _result_;
+#line 295 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (_tmp18_ != SQLITE_OK) {
+#line 1360 "autosave-manager.c"
+ gint _tmp19_;
+ gchar* _tmp20_ = NULL;
+ gchar* _tmp21_;
+ gchar* _tmp22_ = NULL;
+ gchar* _tmp23_;
+#line 296 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp19_ = _result_;
+#line 296 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp20_ = g_strdup_printf ("%i", _tmp19_);
+#line 296 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp21_ = _tmp20_;
+#line 296 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp22_ = g_strconcat ("Error ", _tmp21_, " while preparing query", NULL);
+#line 296 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp23_ = _tmp22_;
+#line 296 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_warning ("autosave-manager.vala:296: %s", _tmp23_);
+#line 296 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _g_free0 (_tmp23_);
+#line 296 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _g_free0 (_tmp21_);
+#line 1382 "autosave-manager.c"
+ }
+#line 298 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp24_ = stmt;
+#line 298 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp25_ = i;
+#line 298 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ sqlite3_bind_int64 (_tmp24_, 5, (gint64) _tmp25_);
+#line 299 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp26_ = stmt;
+#line 299 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp27_ = g_direct_hash;
+#line 299 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp28_ = page;
+#line 299 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp29_ = _tmp27_ (_tmp28_);
+#line 299 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ sqlite3_bind_int64 (_tmp26_, 2, (gint64) _tmp29_);
+#line 300 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp30_ = stmt;
+#line 300 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp31_ = g_direct_hash;
+#line 300 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp32_ = autosave_manager_get_book (self);
+#line 300 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp33_ = _tmp32_;
+#line 300 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp34_ = _tmp31_ (_tmp33_);
+#line 300 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ sqlite3_bind_int64 (_tmp30_, 3, (gint64) _tmp34_);
+#line 301 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp35_ = stmt;
+#line 301 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp36_ = self->priv->cur_book_revision;
+#line 301 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ sqlite3_bind_int64 (_tmp35_, 4, (gint64) _tmp36_);
+#line 303 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp37_ = stmt;
+#line 303 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp38_ = sqlite3_step (_tmp37_);
+#line 303 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _result_ = _tmp38_;
+#line 304 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp39_ = _result_;
+#line 304 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (_tmp39_ != SQLITE_DONE) {
+#line 1428 "autosave-manager.c"
+ gint _tmp40_;
+#line 305 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp40_ = _result_;
+#line 305 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_warning ("autosave-manager.vala:305: Error %d while executing query", _tmp40_);
+#line 1434 "autosave-manager.c"
+ }
+#line 283 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _sqlite3_finalize0 (stmt);
+#line 283 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _g_free0 (query);
+#line 283 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _page_unref0 (page);
+#line 1442 "autosave-manager.c"
+ }
+ }
+ }
+}
+
+
+void autosave_manager_on_page_changed (AutosaveManager* self, Page* page) {
+ Page* _tmp0_;
+#line 309 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_return_if_fail (self != NULL);
+#line 309 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_return_if_fail (page != NULL);
+#line 311 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp0_ = page;
+#line 311 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ autosave_manager_update_page (self, _tmp0_);
+#line 1459 "autosave-manager.c"
+}
+
+
+void autosave_manager_on_needs_saving_changed (AutosaveManager* self, Book* book) {
+#line 314 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_return_if_fail (self != NULL);
+#line 314 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_return_if_fail (book != NULL);
+#line 1468 "autosave-manager.c"
+ {
+ gint n;
+#line 316 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ n = 0;
+#line 1473 "autosave-manager.c"
+ {
+ gboolean _tmp0_;
+#line 316 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp0_ = TRUE;
+#line 316 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ while (TRUE) {
+#line 1480 "autosave-manager.c"
+ gboolean _tmp1_;
+ gint _tmp3_;
+ Book* _tmp4_;
+ guint _tmp5_ = 0U;
+ Book* _tmp6_;
+ gint _tmp7_;
+ Page* _tmp8_ = NULL;
+ Page* page;
+ Page* _tmp9_;
+#line 316 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp1_ = _tmp0_;
+#line 316 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (!_tmp1_) {
+#line 1494 "autosave-manager.c"
+ gint _tmp2_;
+#line 316 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp2_ = n;
+#line 316 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ n = _tmp2_ + 1;
+#line 1500 "autosave-manager.c"
+ }
+#line 316 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp0_ = FALSE;
+#line 316 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp3_ = n;
+#line 316 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp4_ = book;
+#line 316 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp5_ = book_get_n_pages (_tmp4_);
+#line 316 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (!(((guint) _tmp3_) < _tmp5_)) {
+#line 316 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ break;
+#line 1514 "autosave-manager.c"
+ }
+#line 318 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp6_ = book;
+#line 318 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp7_ = n;
+#line 318 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp8_ = book_get_page (_tmp6_, _tmp7_);
+#line 318 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ page = _tmp8_;
+#line 319 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp9_ = page;
+#line 319 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ autosave_manager_update_page (self, _tmp9_);
+#line 316 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _page_unref0 (page);
+#line 1530 "autosave-manager.c"
+ }
+ }
+ }
+}
+
+
+void autosave_manager_on_cleared (AutosaveManager* self) {
+ gint _tmp0_;
+#line 325 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_return_if_fail (self != NULL);
+#line 327 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp0_ = self->priv->cur_book_revision;
+#line 327 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ self->priv->cur_book_revision = _tmp0_ + 1;
+#line 1545 "autosave-manager.c"
+}
+
+
+static void autosave_manager_insert_page (AutosaveManager* self, Page* page) {
+ const gchar* _tmp0_;
+ const gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gchar* query;
+ sqlite3_stmt* stmt = NULL;
+ sqlite3* _tmp3_;
+ const gchar* _tmp4_;
+ sqlite3_stmt* _tmp5_ = NULL;
+ gint _tmp6_ = 0;
+ gint _result_;
+ gint _tmp7_;
+ sqlite3_stmt* _tmp13_;
+ GHashFunc _tmp14_;
+ Page* _tmp15_;
+ guint _tmp16_ = 0U;
+ sqlite3_stmt* _tmp17_;
+ GHashFunc _tmp18_;
+ Book* _tmp19_;
+ Book* _tmp20_;
+ guint _tmp21_ = 0U;
+ sqlite3_stmt* _tmp22_;
+ gint _tmp23_;
+ sqlite3_stmt* _tmp24_;
+ gint _tmp25_ = 0;
+ gint _tmp26_;
+ Page* _tmp28_;
+#line 330 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_return_if_fail (self != NULL);
+#line 330 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_return_if_fail (page != NULL);
+#line 332 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_debug ("autosave-manager.vala:332: Adding an autosave for a new page");
+#line 333 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp0_ = autosave_manager_PID;
+#line 333 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp1_ = string_to_string (_tmp0_);
+#line 333 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp2_ = g_strconcat ("\n" \
+" INSERT INTO pages\n" \
+" (process_id,\n" \
+" page_hash,\n" \
+" book_hash,\n" \
+" book_revision)\n" \
+" VALUES\n" \
+" (", _tmp1_, ",\n" \
+" ?2,\n" \
+" ?3,\n" \
+" ?4)\n" \
+" ", NULL);
+#line 333 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ query = _tmp2_;
+#line 346 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp3_ = self->priv->database_connection;
+#line 346 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp4_ = query;
+#line 346 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp6_ = sqlite3_prepare_v2 (_tmp3_, _tmp4_, -1, &_tmp5_, NULL);
+#line 346 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _sqlite3_finalize0 (stmt);
+#line 346 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ stmt = _tmp5_;
+#line 346 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _result_ = _tmp6_;
+#line 347 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp7_ = _result_;
+#line 347 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (_tmp7_ != SQLITE_OK) {
+#line 1606 "autosave-manager.c"
+ gint _tmp8_;
+ gchar* _tmp9_ = NULL;
+ gchar* _tmp10_;
+ gchar* _tmp11_ = NULL;
+ gchar* _tmp12_;
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp8_ = _result_;
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp9_ = g_strdup_printf ("%i", _tmp8_);
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp10_ = _tmp9_;
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp11_ = g_strconcat ("Error ", _tmp10_, " while preparing query", NULL);
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp12_ = _tmp11_;
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_warning ("autosave-manager.vala:348: %s", _tmp12_);
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _g_free0 (_tmp12_);
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _g_free0 (_tmp10_);
+#line 1628 "autosave-manager.c"
+ }
+#line 350 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp13_ = stmt;
+#line 350 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp14_ = g_direct_hash;
+#line 350 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp15_ = page;
+#line 350 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp16_ = _tmp14_ (_tmp15_);
+#line 350 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ sqlite3_bind_int64 (_tmp13_, 2, (gint64) _tmp16_);
+#line 351 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp17_ = stmt;
+#line 351 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp18_ = g_direct_hash;
+#line 351 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp19_ = autosave_manager_get_book (self);
+#line 351 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp20_ = _tmp19_;
+#line 351 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp21_ = _tmp18_ (_tmp20_);
+#line 351 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ sqlite3_bind_int64 (_tmp17_, 3, (gint64) _tmp21_);
+#line 352 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp22_ = stmt;
+#line 352 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp23_ = self->priv->cur_book_revision;
+#line 352 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ sqlite3_bind_int64 (_tmp22_, 4, (gint64) _tmp23_);
+#line 354 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp24_ = stmt;
+#line 354 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp25_ = sqlite3_step (_tmp24_);
+#line 354 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _result_ = _tmp25_;
+#line 355 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp26_ = _result_;
+#line 355 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (_tmp26_ != SQLITE_DONE) {
+#line 1668 "autosave-manager.c"
+ gint _tmp27_;
+#line 356 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp27_ = _result_;
+#line 356 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_warning ("autosave-manager.vala:356: Error %d while executing query", _tmp27_);
+#line 1674 "autosave-manager.c"
+ }
+#line 358 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp28_ = page;
+#line 358 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ autosave_manager_update_page (self, _tmp28_);
+#line 330 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _sqlite3_finalize0 (stmt);
+#line 330 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _g_free0 (query);
+#line 1684 "autosave-manager.c"
+}
+
+
+static gpointer _page_ref0 (gpointer self) {
+#line 363 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ return self ? page_ref (self) : NULL;
+#line 1691 "autosave-manager.c"
+}
+
+
+static gboolean __lambda2_ (AutosaveManager* self) {
+ gboolean result = FALSE;
+ GHashTable* _tmp0_;
+ GHashTableIter iter = {0};
+ Page* p = NULL;
+ gboolean is_dirty = FALSE;
+ GHashTable* _tmp6_;
+#line 368 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp0_ = self->priv->dirty_pages;
+#line 368 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_hash_table_iter_init (&iter, _tmp0_);
+#line 371 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ while (TRUE) {
+#line 1708 "autosave-manager.c"
+ gconstpointer _tmp1_ = NULL;
+ gconstpointer _tmp2_ = NULL;
+ gboolean _tmp3_ = FALSE;
+ Page* _tmp4_;
+ Page* _tmp5_;
+#line 371 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp3_ = g_hash_table_iter_next (&iter, &_tmp1_, &_tmp2_);
+#line 371 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _page_unref0 (p);
+#line 371 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp4_ = _page_ref0 (_tmp1_);
+#line 371 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ p = _tmp4_;
+#line 371 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ is_dirty = _tmp2_;
+#line 371 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (!_tmp3_) {
+#line 371 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ break;
+#line 1728 "autosave-manager.c"
+ }
+#line 372 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp5_ = p;
+#line 372 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ autosave_manager_real_update_page (self, _tmp5_);
+#line 1734 "autosave-manager.c"
+ }
+#line 374 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp6_ = self->priv->dirty_pages;
+#line 374 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_hash_table_remove_all (_tmp6_);
+#line 375 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ self->priv->update_timeout = (guint) 0;
+#line 377 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ result = FALSE;
+#line 377 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _page_unref0 (p);
+#line 377 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ return result;
+#line 1748 "autosave-manager.c"
+}
+
+
+static gboolean ___lambda2__gsource_func (gpointer self) {
+ gboolean result;
+ result = __lambda2_ (self);
+#line 366 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ return result;
+#line 1757 "autosave-manager.c"
+}
+
+
+static void autosave_manager_update_page (AutosaveManager* self, Page* page) {
+ GHashTable* _tmp0_;
+ Page* _tmp1_;
+ Page* _tmp2_;
+ guint _tmp3_;
+ guint _tmp5_ = 0U;
+#line 361 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_return_if_fail (self != NULL);
+#line 361 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_return_if_fail (page != NULL);
+#line 363 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp0_ = self->priv->dirty_pages;
+#line 363 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp1_ = page;
+#line 363 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp2_ = _page_ref0 (_tmp1_);
+#line 363 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_hash_table_insert (_tmp0_, _tmp2_, (gpointer) ((gintptr) TRUE));
+#line 364 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp3_ = self->priv->update_timeout;
+#line 364 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (_tmp3_ > ((guint) 0)) {
+#line 1783 "autosave-manager.c"
+ guint _tmp4_;
+#line 365 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp4_ = self->priv->update_timeout;
+#line 365 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_source_remove (_tmp4_);
+#line 1789 "autosave-manager.c"
+ }
+#line 366 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp5_ = g_timeout_add_full (G_PRIORITY_DEFAULT, (guint) 100, ___lambda2__gsource_func, autosave_manager_ref (self), autosave_manager_unref);
+#line 366 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ self->priv->update_timeout = _tmp5_;
+#line 1795 "autosave-manager.c"
+}
+
+
+static void autosave_manager_real_update_page (AutosaveManager* self, Page* page) {
+ gint crop_x = 0;
+ gint crop_y = 0;
+ gint crop_width = 0;
+ gint crop_height = 0;
+ Page* _tmp0_;
+ gint _tmp1_ = 0;
+ gint _tmp2_ = 0;
+ gint _tmp3_ = 0;
+ gint _tmp4_ = 0;
+ sqlite3_stmt* stmt = NULL;
+ Book* _tmp5_;
+ Book* _tmp6_;
+ Page* _tmp7_;
+ guint _tmp8_ = 0U;
+ gchar* _tmp9_ = NULL;
+ gchar* _tmp10_;
+ Page* _tmp11_;
+ gint _tmp12_ = 0;
+ gchar* _tmp13_ = NULL;
+ gchar* _tmp14_;
+ Page* _tmp15_;
+ gint _tmp16_ = 0;
+ gchar* _tmp17_ = NULL;
+ gchar* _tmp18_;
+ Page* _tmp19_;
+ gint _tmp20_ = 0;
+ gchar* _tmp21_ = NULL;
+ gchar* _tmp22_;
+ Page* _tmp23_;
+ gint _tmp24_ = 0;
+ gchar* _tmp25_ = NULL;
+ gchar* _tmp26_;
+ Page* _tmp27_;
+ gint _tmp28_ = 0;
+ gchar* _tmp29_ = NULL;
+ gchar* _tmp30_;
+ Page* _tmp31_;
+ gint _tmp32_ = 0;
+ gchar* _tmp33_ = NULL;
+ gchar* _tmp34_;
+ gint _tmp35_;
+ gchar* _tmp36_ = NULL;
+ gchar* _tmp37_;
+ gint _tmp38_;
+ gchar* _tmp39_ = NULL;
+ gchar* _tmp40_;
+ gint _tmp41_;
+ gchar* _tmp42_ = NULL;
+ gchar* _tmp43_;
+ gint _tmp44_;
+ gchar* _tmp45_ = NULL;
+ gchar* _tmp46_;
+ Page* _tmp47_;
+ ScanDirection _tmp48_ = 0;
+ gchar* _tmp49_ = NULL;
+ gchar* _tmp50_;
+ const gchar* _tmp51_;
+ const gchar* _tmp52_ = NULL;
+ gchar* _tmp53_ = NULL;
+ gchar* _tmp54_;
+ gchar* query;
+ sqlite3* _tmp55_;
+ const gchar* _tmp56_;
+ sqlite3_stmt* _tmp57_ = NULL;
+ gint _tmp58_ = 0;
+ gint _result_;
+ gint _tmp59_;
+ sqlite3_stmt* _tmp61_;
+ GHashFunc _tmp62_;
+ Page* _tmp63_;
+ guint _tmp64_ = 0U;
+ sqlite3_stmt* _tmp65_;
+ GHashFunc _tmp66_;
+ Book* _tmp67_;
+ Book* _tmp68_;
+ guint _tmp69_ = 0U;
+ sqlite3_stmt* _tmp70_;
+ gint _tmp71_;
+ Page* _tmp72_;
+ gchar* _tmp73_ = NULL;
+ gchar* _tmp74_;
+ const gchar* _tmp75_;
+ sqlite3_stmt* _tmp77_;
+ const gchar* _tmp78_;
+ gchar* _tmp79_;
+ GDestroyNotify _tmp80_;
+ gint _tmp81_ = 0;
+ gint _tmp82_;
+ Page* _tmp84_;
+ gint _tmp85_ = 0;
+ guchar* _tmp86_ = NULL;
+ sqlite3_stmt* _tmp99_;
+ gint _tmp100_ = 0;
+#line 381 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_return_if_fail (self != NULL);
+#line 381 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_return_if_fail (page != NULL);
+#line 383 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_debug ("autosave-manager.vala:383: Updating the autosave for a page");
+#line 389 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp0_ = page;
+#line 389 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ page_get_crop (_tmp0_, &_tmp1_, &_tmp2_, &_tmp3_, &_tmp4_);
+#line 389 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ crop_x = _tmp1_;
+#line 389 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ crop_y = _tmp2_;
+#line 389 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ crop_width = _tmp3_;
+#line 389 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ crop_height = _tmp4_;
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp5_ = autosave_manager_get_book (self);
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp6_ = _tmp5_;
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp7_ = page;
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp8_ = book_get_page_index (_tmp6_, _tmp7_);
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp9_ = g_strdup_printf ("%u", _tmp8_);
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp10_ = _tmp9_;
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp11_ = page;
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp12_ = page_get_dpi (_tmp11_);
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp13_ = g_strdup_printf ("%i", _tmp12_);
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp14_ = _tmp13_;
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp15_ = page;
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp16_ = page_get_width (_tmp15_);
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp17_ = g_strdup_printf ("%i", _tmp16_);
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp18_ = _tmp17_;
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp19_ = page;
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp20_ = page_get_height (_tmp19_);
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp21_ = g_strdup_printf ("%i", _tmp20_);
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp22_ = _tmp21_;
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp23_ = page;
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp24_ = page_get_depth (_tmp23_);
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp25_ = g_strdup_printf ("%i", _tmp24_);
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp26_ = _tmp25_;
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp27_ = page;
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp28_ = page_get_n_channels (_tmp27_);
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp29_ = g_strdup_printf ("%i", _tmp28_);
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp30_ = _tmp29_;
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp31_ = page;
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp32_ = page_get_rowstride (_tmp31_);
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp33_ = g_strdup_printf ("%i", _tmp32_);
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp34_ = _tmp33_;
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp35_ = crop_x;
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp36_ = g_strdup_printf ("%i", _tmp35_);
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp37_ = _tmp36_;
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp38_ = crop_y;
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp39_ = g_strdup_printf ("%i", _tmp38_);
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp40_ = _tmp39_;
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp41_ = crop_width;
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp42_ = g_strdup_printf ("%i", _tmp41_);
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp43_ = _tmp42_;
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp44_ = crop_height;
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp45_ = g_strdup_printf ("%i", _tmp44_);
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp46_ = _tmp45_;
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp47_ = page;
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp48_ = page_get_scan_direction (_tmp47_);
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp49_ = g_strdup_printf ("%i", (gint) _tmp48_);
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp50_ = _tmp49_;
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp51_ = autosave_manager_PID;
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp52_ = string_to_string (_tmp51_);
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp53_ = g_strconcat ("\n" \
+" UPDATE pages\n" \
+" SET\n" \
+" page_number=", _tmp10_, ",\n dpi=", _tmp14_, ",\n width=", _tmp18_, ",\n height=", _tmp22_, ",\n depth=", _tmp26_, ",\n n_channels=", _tmp30_, ",\n rowstride=", _tmp34_, ",\n crop_x=", _tmp37_, ",\n crop_y=", _tmp40_, ",\n crop_width=", _tmp43_, ",\n crop_height=", _tmp46_, ",\n scan_direction=", _tmp50_, ",\n" \
+" color_profile=?1,\n" \
+" pixels=?2\n" \
+" WHERE process_id = ", _tmp52_, "\n" \
+" AND page_hash = ?4\n" \
+" AND book_hash = ?5\n" \
+" AND book_revision = ?6\n" \
+" ", NULL);
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp54_ = _tmp53_;
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _g_free0 (_tmp50_);
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _g_free0 (_tmp46_);
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _g_free0 (_tmp43_);
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _g_free0 (_tmp40_);
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _g_free0 (_tmp37_);
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _g_free0 (_tmp34_);
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _g_free0 (_tmp30_);
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _g_free0 (_tmp26_);
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _g_free0 (_tmp22_);
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _g_free0 (_tmp18_);
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _g_free0 (_tmp14_);
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _g_free0 (_tmp10_);
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ query = _tmp54_;
+#line 415 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp55_ = self->priv->database_connection;
+#line 415 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp56_ = query;
+#line 415 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp58_ = sqlite3_prepare_v2 (_tmp55_, _tmp56_, -1, &_tmp57_, NULL);
+#line 415 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _sqlite3_finalize0 (stmt);
+#line 415 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ stmt = _tmp57_;
+#line 415 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _result_ = _tmp58_;
+#line 416 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp59_ = _result_;
+#line 416 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (_tmp59_ != SQLITE_OK) {
+#line 2053 "autosave-manager.c"
+ gint _tmp60_;
+#line 418 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp60_ = _result_;
+#line 418 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_warning ("autosave-manager.vala:418: Error %d while preparing statement", _tmp60_);
+#line 419 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _g_free0 (query);
+#line 419 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _sqlite3_finalize0 (stmt);
+#line 419 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ return;
+#line 2065 "autosave-manager.c"
+ }
+#line 422 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp61_ = stmt;
+#line 422 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp62_ = g_direct_hash;
+#line 422 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp63_ = page;
+#line 422 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp64_ = _tmp62_ (_tmp63_);
+#line 422 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ sqlite3_bind_int64 (_tmp61_, 4, (gint64) _tmp64_);
+#line 423 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp65_ = stmt;
+#line 423 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp66_ = g_direct_hash;
+#line 423 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp67_ = autosave_manager_get_book (self);
+#line 423 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp68_ = _tmp67_;
+#line 423 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp69_ = _tmp66_ (_tmp68_);
+#line 423 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ sqlite3_bind_int64 (_tmp65_, 5, (gint64) _tmp69_);
+#line 424 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp70_ = stmt;
+#line 424 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp71_ = self->priv->cur_book_revision;
+#line 424 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ sqlite3_bind_int64 (_tmp70_, 6, (gint64) _tmp71_);
+#line 425 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp72_ = page;
+#line 425 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp73_ = page_get_color_profile (_tmp72_);
+#line 425 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp74_ = _tmp73_;
+#line 425 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp75_ = _tmp74_;
+#line 425 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (_tmp75_ == NULL) {
+#line 2105 "autosave-manager.c"
+ gchar* _tmp76_;
+#line 425 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp76_ = g_strdup ("");
+#line 425 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _g_free0 (_tmp74_);
+#line 425 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp74_ = _tmp76_;
+#line 2113 "autosave-manager.c"
+ }
+#line 425 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp77_ = stmt;
+#line 425 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp78_ = _tmp74_;
+#line 425 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp79_ = g_strdup (_tmp78_);
+#line 425 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp80_ = g_free;
+#line 425 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp81_ = sqlite3_bind_text (_tmp77_, 1, _tmp79_, -1, _tmp80_);
+#line 425 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _result_ = _tmp81_;
+#line 427 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp82_ = _result_;
+#line 427 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (_tmp82_ != SQLITE_OK) {
+#line 2131 "autosave-manager.c"
+ gint _tmp83_;
+#line 428 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp83_ = _result_;
+#line 428 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_warning ("autosave-manager.vala:428: Error %d while binding text", _tmp83_);
+#line 2137 "autosave-manager.c"
+ }
+#line 430 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp84_ = page;
+#line 430 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp86_ = page_get_pixels (_tmp84_, &_tmp85_);
+#line 430 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (_tmp86_ != NULL) {
+#line 2145 "autosave-manager.c"
+ sqlite3_stmt* _tmp87_;
+ Page* _tmp88_;
+ gint _tmp89_ = 0;
+ guchar* _tmp90_ = NULL;
+ Page* _tmp91_;
+ gint _tmp92_ = 0;
+ guchar* _tmp93_ = NULL;
+ gint _tmp94_ = 0;
+ gint _tmp95_;
+#line 433 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp87_ = stmt;
+#line 433 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp88_ = page;
+#line 433 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp90_ = page_get_pixels (_tmp88_, &_tmp89_);
+#line 433 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp91_ = page;
+#line 433 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp93_ = page_get_pixels (_tmp91_, &_tmp92_);
+#line 433 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp94_ = sqlite3_bind_blob (_tmp87_, 2, _tmp90_, _tmp92_, (GDestroyNotify) (-1));
+#line 433 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _result_ = _tmp94_;
+#line 434 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp95_ = _result_;
+#line 434 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (_tmp95_ != SQLITE_OK) {
+#line 2173 "autosave-manager.c"
+ gint _tmp96_;
+#line 435 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp96_ = _result_;
+#line 435 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_warning ("autosave-manager.vala:435: Error %d while binding blob", _tmp96_);
+#line 2179 "autosave-manager.c"
+ }
+ } else {
+ sqlite3_stmt* _tmp97_;
+ gint _tmp98_ = 0;
+#line 438 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp97_ = stmt;
+#line 438 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp98_ = sqlite3_bind_null (_tmp97_, 2);
+#line 438 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_warn_if_fail (_tmp98_ == SQLITE_OK);
+#line 2190 "autosave-manager.c"
+ }
+#line 440 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp99_ = stmt;
+#line 440 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp100_ = sqlite3_step (_tmp99_);
+#line 440 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_warn_if_fail (_tmp100_ == SQLITE_DONE);
+#line 381 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _g_free0 (_tmp74_);
+#line 381 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _g_free0 (query);
+#line 381 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _sqlite3_finalize0 (stmt);
+#line 2204 "autosave-manager.c"
+}
+
+
+static void autosave_manager_recover_book (AutosaveManager* self, Book** book) {
+ sqlite3_stmt* stmt = NULL;
+ const gchar* _tmp0_;
+ const gchar* _tmp1_ = NULL;
+ const gchar* _tmp2_;
+ const gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ gchar* query;
+ sqlite3* _tmp5_;
+ const gchar* _tmp6_;
+ sqlite3_stmt* _tmp7_ = NULL;
+ gint _tmp8_ = 0;
+ gint _result_;
+ gint _tmp9_;
+ gboolean first;
+ gboolean _tmp125_;
+#line 443 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_return_if_fail (self != NULL);
+#line 443 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_return_if_fail (*book != NULL);
+#line 446 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp0_ = autosave_manager_PID;
+#line 446 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp1_ = string_to_string (_tmp0_);
+#line 446 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp2_ = autosave_manager_PID;
+#line 446 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp3_ = string_to_string (_tmp2_);
+#line 446 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp4_ = g_strconcat ("\n" \
+" SELECT process_id,\n" \
+" page_hash,\n" \
+" book_hash,\n" \
+" book_revision,\n" \
+" page_number,\n" \
+" dpi,\n" \
+" width,\n" \
+" height,\n" \
+" depth,\n" \
+" n_channels,\n" \
+" rowstride,\n" \
+" color_profile,\n" \
+" crop_x,\n" \
+" crop_y,\n" \
+" crop_width,\n" \
+" crop_height,\n" \
+" scan_direction,\n" \
+" pixels,\n" \
+" id\n" \
+" FROM pages\n" \
+" WHERE process_id = ", _tmp1_, "\n" \
+" AND book_revision = (\n" \
+" SELECT MAX(book_revision) FROM pages WHERE process_i" \
+"d = ", _tmp3_, "\n )\n ORDER BY page_number\n ", NULL);
+#line 446 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ query = _tmp4_;
+#line 474 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp5_ = self->priv->database_connection;
+#line 474 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp6_ = query;
+#line 474 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp8_ = sqlite3_prepare_v2 (_tmp5_, _tmp6_, -1, &_tmp7_, NULL);
+#line 474 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _sqlite3_finalize0 (stmt);
+#line 474 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ stmt = _tmp7_;
+#line 474 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _result_ = _tmp8_;
+#line 475 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp9_ = _result_;
+#line 475 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (_tmp9_ != SQLITE_OK) {
+#line 2256 "autosave-manager.c"
+ gint _tmp10_;
+#line 476 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp10_ = _result_;
+#line 476 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_warning ("autosave-manager.vala:476: Error %d while preparing statement", _tmp10_);
+#line 2262 "autosave-manager.c"
+ }
+#line 478 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ first = TRUE;
+#line 479 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ while (TRUE) {
+#line 2268 "autosave-manager.c"
+ sqlite3_stmt* _tmp11_;
+ gint _tmp12_ = 0;
+ gboolean _tmp13_;
+ sqlite3_stmt* _tmp15_;
+ gint _tmp16_ = 0;
+ gint dpi;
+ sqlite3_stmt* _tmp17_;
+ gint _tmp18_ = 0;
+ gint width;
+ sqlite3_stmt* _tmp19_;
+ gint _tmp20_ = 0;
+ gint height;
+ sqlite3_stmt* _tmp21_;
+ gint _tmp22_ = 0;
+ gint depth;
+ sqlite3_stmt* _tmp23_;
+ gint _tmp24_ = 0;
+ gint n_channels;
+ sqlite3_stmt* _tmp25_;
+ gint _tmp26_ = 0;
+ ScanDirection scan_direction;
+ gboolean _tmp27_ = FALSE;
+ gint _tmp28_;
+ gboolean _tmp30_;
+ gint _tmp31_;
+ gchar* _tmp32_ = NULL;
+ gchar* _tmp33_;
+ gint _tmp34_;
+ gchar* _tmp35_ = NULL;
+ gchar* _tmp36_;
+ gchar* _tmp37_ = NULL;
+ gchar* _tmp38_;
+ Book* _tmp39_;
+ gint _tmp40_;
+ gint _tmp41_;
+ gint _tmp42_;
+ ScanDirection _tmp43_;
+ Page* _tmp44_ = NULL;
+ Page* new_page;
+ gboolean _tmp45_ = FALSE;
+ gint _tmp46_;
+ gboolean _tmp48_;
+ Page* _tmp64_;
+ sqlite3_stmt* _tmp65_;
+ const gchar* _tmp66_ = NULL;
+ sqlite3_stmt* _tmp67_;
+ gint _tmp68_ = 0;
+ gint crop_x;
+ sqlite3_stmt* _tmp69_;
+ gint _tmp70_ = 0;
+ gint crop_y;
+ sqlite3_stmt* _tmp71_;
+ gint _tmp72_ = 0;
+ gint crop_width;
+ sqlite3_stmt* _tmp73_;
+ gint _tmp74_ = 0;
+ gint crop_height;
+ gboolean _tmp75_ = FALSE;
+ gint _tmp76_;
+ gboolean _tmp78_;
+ sqlite3_stmt* _tmp85_;
+ gint _tmp86_ = 0;
+ guchar* _tmp87_ = NULL;
+ guchar* new_pixels;
+ gint new_pixels_length1;
+ gint _new_pixels_size_;
+ guchar* _tmp88_;
+ gint _tmp88__length1;
+ sqlite3_stmt* _tmp89_;
+ void* _tmp90_ = NULL;
+ sqlite3_stmt* _tmp91_;
+ gint _tmp92_ = 0;
+ Page* _tmp93_;
+ guchar* _tmp94_;
+ gint _tmp94__length1;
+ sqlite3_stmt* _tmp95_;
+ gint _tmp96_ = 0;
+ gint id;
+ gint _tmp97_;
+ gchar* _tmp98_ = NULL;
+ gchar* _tmp99_;
+ gchar* _tmp100_ = NULL;
+ sqlite3_stmt* stmt2 = NULL;
+ sqlite3* _tmp101_;
+ const gchar* _tmp102_;
+ sqlite3_stmt* _tmp103_ = NULL;
+ gint _tmp104_ = 0;
+ gint result2;
+ gint _tmp105_;
+ sqlite3_stmt* _tmp111_;
+ GHashFunc _tmp112_;
+ Page* _tmp113_;
+ guint _tmp114_ = 0U;
+ sqlite3_stmt* _tmp115_;
+ GHashFunc _tmp116_;
+ Book* _tmp117_;
+ guint _tmp118_ = 0U;
+ sqlite3_stmt* _tmp119_;
+ gint _tmp120_;
+ sqlite3_stmt* _tmp121_;
+ gint _tmp122_ = 0;
+ gint _tmp123_;
+#line 479 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp11_ = stmt;
+#line 479 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp12_ = sqlite3_step (_tmp11_);
+#line 479 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (!(SQLITE_ROW == _tmp12_)) {
+#line 479 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ break;
+#line 2379 "autosave-manager.c"
+ }
+#line 481 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_debug ("autosave-manager.vala:481: Found a page that needs to be recovered");
+#line 482 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp13_ = first;
+#line 482 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (_tmp13_) {
+#line 2387 "autosave-manager.c"
+ Book* _tmp14_;
+#line 484 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp14_ = *book;
+#line 484 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ book_clear (_tmp14_);
+#line 485 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ first = FALSE;
+#line 2395 "autosave-manager.c"
+ }
+#line 487 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp15_ = stmt;
+#line 487 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp16_ = sqlite3_column_int (_tmp15_, 5);
+#line 487 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ dpi = _tmp16_;
+#line 488 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp17_ = stmt;
+#line 488 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp18_ = sqlite3_column_int (_tmp17_, 6);
+#line 488 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ width = _tmp18_;
+#line 489 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp19_ = stmt;
+#line 489 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp20_ = sqlite3_column_int (_tmp19_, 7);
+#line 489 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ height = _tmp20_;
+#line 490 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp21_ = stmt;
+#line 490 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp22_ = sqlite3_column_int (_tmp21_, 8);
+#line 490 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ depth = _tmp22_;
+#line 491 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp23_ = stmt;
+#line 491 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp24_ = sqlite3_column_int (_tmp23_, 9);
+#line 491 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ n_channels = _tmp24_;
+#line 492 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp25_ = stmt;
+#line 492 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp26_ = sqlite3_column_int (_tmp25_, 16);
+#line 492 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ scan_direction = (ScanDirection) _tmp26_;
+#line 494 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp28_ = width;
+#line 494 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (_tmp28_ <= 0) {
+#line 494 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp27_ = TRUE;
+#line 2439 "autosave-manager.c"
+ } else {
+ gint _tmp29_;
+#line 494 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp29_ = height;
+#line 494 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp27_ = _tmp29_ <= 0;
+#line 2446 "autosave-manager.c"
+ }
+#line 494 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp30_ = _tmp27_;
+#line 494 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (_tmp30_) {
+#line 495 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ continue;
+#line 2454 "autosave-manager.c"
+ }
+#line 497 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp31_ = width;
+#line 497 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp32_ = g_strdup_printf ("%i", _tmp31_);
+#line 497 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp33_ = _tmp32_;
+#line 497 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp34_ = height;
+#line 497 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp35_ = g_strdup_printf ("%i", _tmp34_);
+#line 497 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp36_ = _tmp35_;
+#line 497 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp37_ = g_strconcat ("Restoring a page of size ", _tmp33_, " x ", _tmp36_, NULL);
+#line 497 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp38_ = _tmp37_;
+#line 497 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_debug ("autosave-manager.vala:497: %s", _tmp38_);
+#line 497 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _g_free0 (_tmp38_);
+#line 497 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _g_free0 (_tmp36_);
+#line 497 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _g_free0 (_tmp33_);
+#line 498 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp39_ = *book;
+#line 498 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp40_ = width;
+#line 498 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp41_ = height;
+#line 498 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp42_ = dpi;
+#line 498 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp43_ = scan_direction;
+#line 498 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp44_ = book_append_page (_tmp39_, _tmp40_, _tmp41_, _tmp42_, _tmp43_);
+#line 498 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ new_page = _tmp44_;
+#line 500 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp46_ = depth;
+#line 500 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (_tmp46_ > 0) {
+#line 2498 "autosave-manager.c"
+ gint _tmp47_;
+#line 500 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp47_ = n_channels;
+#line 500 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp45_ = _tmp47_ > 0;
+#line 2504 "autosave-manager.c"
+ } else {
+#line 500 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp45_ = FALSE;
+#line 2508 "autosave-manager.c"
+ }
+#line 500 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp48_ = _tmp45_;
+#line 500 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (_tmp48_) {
+#line 2514 "autosave-manager.c"
+ ScanPageInfo* _tmp49_;
+ ScanPageInfo* info;
+ ScanPageInfo* _tmp50_;
+ gint _tmp51_;
+ ScanPageInfo* _tmp52_;
+ gint _tmp53_;
+ ScanPageInfo* _tmp54_;
+ gint _tmp55_;
+ ScanPageInfo* _tmp56_;
+ gint _tmp57_;
+ ScanPageInfo* _tmp58_;
+ gint _tmp59_;
+ ScanPageInfo* _tmp60_;
+ gchar* _tmp61_;
+ Page* _tmp62_;
+ ScanPageInfo* _tmp63_;
+#line 502 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp49_ = scan_page_info_new ();
+#line 502 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ info = _tmp49_;
+#line 503 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp50_ = info;
+#line 503 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp51_ = width;
+#line 503 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp50_->width = _tmp51_;
+#line 504 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp52_ = info;
+#line 504 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp53_ = height;
+#line 504 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp52_->height = _tmp53_;
+#line 505 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp54_ = info;
+#line 505 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp55_ = depth;
+#line 505 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp54_->depth = _tmp55_;
+#line 506 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp56_ = info;
+#line 506 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp57_ = n_channels;
+#line 506 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp56_->n_channels = _tmp57_;
+#line 507 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp58_ = info;
+#line 507 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp59_ = dpi;
+#line 507 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp58_->dpi = (gdouble) _tmp59_;
+#line 508 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp60_ = info;
+#line 508 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp61_ = g_strdup ("");
+#line 508 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _g_free0 (_tmp60_->device);
+#line 508 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp60_->device = _tmp61_;
+#line 509 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp62_ = new_page;
+#line 509 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp63_ = info;
+#line 509 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ page_set_page_info (_tmp62_, _tmp63_);
+#line 500 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _scan_page_info_unref0 (info);
+#line 2581 "autosave-manager.c"
+ }
+#line 512 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp64_ = new_page;
+#line 512 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp65_ = stmt;
+#line 512 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp66_ = sqlite3_column_text (_tmp65_, 11);
+#line 512 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ page_set_color_profile (_tmp64_, _tmp66_);
+#line 513 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp67_ = stmt;
+#line 513 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp68_ = sqlite3_column_int (_tmp67_, 12);
+#line 513 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ crop_x = _tmp68_;
+#line 514 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp69_ = stmt;
+#line 514 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp70_ = sqlite3_column_int (_tmp69_, 13);
+#line 514 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ crop_y = _tmp70_;
+#line 515 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp71_ = stmt;
+#line 515 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp72_ = sqlite3_column_int (_tmp71_, 14);
+#line 515 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ crop_width = _tmp72_;
+#line 516 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp73_ = stmt;
+#line 516 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp74_ = sqlite3_column_int (_tmp73_, 15);
+#line 516 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ crop_height = _tmp74_;
+#line 517 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp76_ = crop_width;
+#line 517 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (_tmp76_ > 0) {
+#line 2619 "autosave-manager.c"
+ gint _tmp77_;
+#line 517 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp77_ = crop_height;
+#line 517 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp75_ = _tmp77_ > 0;
+#line 2625 "autosave-manager.c"
+ } else {
+#line 517 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp75_ = FALSE;
+#line 2629 "autosave-manager.c"
+ }
+#line 517 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp78_ = _tmp75_;
+#line 517 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (_tmp78_) {
+#line 2635 "autosave-manager.c"
+ Page* _tmp79_;
+ gint _tmp80_;
+ gint _tmp81_;
+ Page* _tmp82_;
+ gint _tmp83_;
+ gint _tmp84_;
+#line 519 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp79_ = new_page;
+#line 519 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp80_ = crop_width;
+#line 519 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp81_ = crop_height;
+#line 519 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ page_set_custom_crop (_tmp79_, _tmp80_, _tmp81_);
+#line 520 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp82_ = new_page;
+#line 520 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp83_ = crop_x;
+#line 520 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp84_ = crop_y;
+#line 520 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ page_move_crop (_tmp82_, _tmp83_, _tmp84_);
+#line 2658 "autosave-manager.c"
+ }
+#line 523 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp85_ = stmt;
+#line 523 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp86_ = sqlite3_column_bytes (_tmp85_, 17);
+#line 523 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp87_ = g_new0 (guchar, _tmp86_);
+#line 523 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ new_pixels = _tmp87_;
+#line 523 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ new_pixels_length1 = _tmp86_;
+#line 523 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _new_pixels_size_ = new_pixels_length1;
+#line 524 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp88_ = new_pixels;
+#line 524 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp88__length1 = new_pixels_length1;
+#line 524 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp89_ = stmt;
+#line 524 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp90_ = sqlite3_column_blob (_tmp89_, 17);
+#line 524 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp91_ = stmt;
+#line 524 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp92_ = sqlite3_column_bytes (_tmp91_, 17);
+#line 524 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ memcpy (_tmp88_, _tmp90_, (gsize) _tmp92_);
+#line 525 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp93_ = new_page;
+#line 525 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp94_ = new_pixels;
+#line 525 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp94__length1 = new_pixels_length1;
+#line 525 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ page_set_pixels (_tmp93_, _tmp94_, _tmp94__length1);
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp95_ = stmt;
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp96_ = sqlite3_column_int (_tmp95_, 18);
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ id = _tmp96_;
+#line 528 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_debug ("autosave-manager.vala:528: Updating autosave to point to our new copy " \
+"of the page");
+#line 529 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp97_ = id;
+#line 529 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp98_ = g_strdup_printf ("%i", _tmp97_);
+#line 529 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp99_ = _tmp98_;
+#line 529 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp100_ = g_strconcat ("\n" \
+" UPDATE pages\n" \
+" SET page_hash=?1,\n" \
+" book_hash=?2,\n" \
+" book_revision=?3\n" \
+" WHERE id = ", _tmp99_, "\n ", NULL);
+#line 529 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _g_free0 (query);
+#line 529 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ query = _tmp100_;
+#line 529 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _g_free0 (_tmp99_);
+#line 538 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp101_ = self->priv->database_connection;
+#line 538 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp102_ = query;
+#line 538 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp104_ = sqlite3_prepare_v2 (_tmp101_, _tmp102_, -1, &_tmp103_, NULL);
+#line 538 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _sqlite3_finalize0 (stmt2);
+#line 538 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ stmt2 = _tmp103_;
+#line 538 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ result2 = _tmp104_;
+#line 539 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp105_ = result2;
+#line 539 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (_tmp105_ != SQLITE_OK) {
+#line 2732 "autosave-manager.c"
+ gint _tmp106_;
+ gchar* _tmp107_ = NULL;
+ gchar* _tmp108_;
+ gchar* _tmp109_ = NULL;
+ gchar* _tmp110_;
+#line 540 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp106_ = result2;
+#line 540 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp107_ = g_strdup_printf ("%i", _tmp106_);
+#line 540 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp108_ = _tmp107_;
+#line 540 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp109_ = g_strconcat ("Error ", _tmp108_, " while preparing query", NULL);
+#line 540 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp110_ = _tmp109_;
+#line 540 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_warning ("autosave-manager.vala:540: %s", _tmp110_);
+#line 540 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _g_free0 (_tmp110_);
+#line 540 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _g_free0 (_tmp108_);
+#line 2754 "autosave-manager.c"
+ }
+#line 541 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp111_ = stmt2;
+#line 541 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp112_ = g_direct_hash;
+#line 541 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp113_ = new_page;
+#line 541 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp114_ = _tmp112_ (_tmp113_);
+#line 541 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ sqlite3_bind_int64 (_tmp111_, 1, (gint64) _tmp114_);
+#line 542 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp115_ = stmt2;
+#line 542 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp116_ = g_direct_hash;
+#line 542 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp117_ = *book;
+#line 542 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp118_ = _tmp116_ (_tmp117_);
+#line 542 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ sqlite3_bind_int64 (_tmp115_, 2, (gint64) _tmp118_);
+#line 543 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp119_ = stmt2;
+#line 543 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp120_ = self->priv->cur_book_revision;
+#line 543 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ sqlite3_bind_int64 (_tmp119_, 3, (gint64) _tmp120_);
+#line 545 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp121_ = stmt2;
+#line 545 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp122_ = sqlite3_step (_tmp121_);
+#line 545 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ result2 = _tmp122_;
+#line 546 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp123_ = result2;
+#line 546 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (_tmp123_ != SQLITE_DONE) {
+#line 2792 "autosave-manager.c"
+ gint _tmp124_;
+#line 547 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp124_ = _result_;
+#line 547 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_warning ("autosave-manager.vala:547: Error %d while executing query", _tmp124_);
+#line 2798 "autosave-manager.c"
+ }
+#line 479 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _sqlite3_finalize0 (stmt2);
+#line 479 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ new_pixels = (g_free (new_pixels), NULL);
+#line 479 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _page_unref0 (new_page);
+#line 2806 "autosave-manager.c"
+ }
+#line 550 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp125_ = first;
+#line 550 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (_tmp125_) {
+#line 551 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_debug ("autosave-manager.vala:551: No pages found to recover");
+#line 2814 "autosave-manager.c"
+ }
+#line 443 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _g_free0 (query);
+#line 443 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _sqlite3_finalize0 (stmt);
+#line 2820 "autosave-manager.c"
+}
+
+
+Book* autosave_manager_get_book (AutosaveManager* self) {
+ Book* result;
+ Book* _tmp0_;
+#line 54 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_return_val_if_fail (self != NULL, NULL);
+#line 56 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp0_ = self->priv->_book;
+#line 56 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ result = _tmp0_;
+#line 56 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ return result;
+#line 2835 "autosave-manager.c"
+}
+
+
+static void _autosave_manager_on_page_added_book_page_added (Book* _sender, Page* page, gpointer self) {
+#line 67 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ autosave_manager_on_page_added (self, page);
+#line 2842 "autosave-manager.c"
+}
+
+
+static void _autosave_manager_on_page_removed_book_page_removed (Book* _sender, Page* page, gpointer self) {
+#line 68 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ autosave_manager_on_page_removed (self, page);
+#line 2849 "autosave-manager.c"
+}
+
+
+static void _autosave_manager_on_reordered_book_reordered (Book* _sender, gpointer self) {
+#line 69 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ autosave_manager_on_reordered (self);
+#line 2856 "autosave-manager.c"
+}
+
+
+static void _autosave_manager_on_cleared_book_cleared (Book* _sender, gpointer self) {
+#line 70 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ autosave_manager_on_cleared (self);
+#line 2863 "autosave-manager.c"
+}
+
+
+static gpointer _book_ref0 (gpointer self) {
+#line 72 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ return self ? book_ref (self) : NULL;
+#line 2870 "autosave-manager.c"
+}
+
+
+void autosave_manager_set_book (AutosaveManager* self, Book* value) {
+ Book* _tmp0_;
+ Book* _tmp19_;
+ Book* _tmp20_;
+ Book* _tmp21_;
+ Book* _tmp22_;
+ Book* _tmp23_;
+ Book* _tmp24_;
+#line 58 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_return_if_fail (self != NULL);
+#line 60 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp0_ = self->priv->_book;
+#line 60 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (_tmp0_ != NULL) {
+#line 2888 "autosave-manager.c"
+ Book* _tmp11_;
+ guint _tmp12_ = 0U;
+ Book* _tmp13_;
+ guint _tmp14_ = 0U;
+ Book* _tmp15_;
+ guint _tmp16_ = 0U;
+ Book* _tmp17_;
+ guint _tmp18_ = 0U;
+ {
+ gint i;
+#line 62 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ i = 0;
+#line 2901 "autosave-manager.c"
+ {
+ gboolean _tmp1_;
+#line 62 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp1_ = TRUE;
+#line 62 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ while (TRUE) {
+#line 2908 "autosave-manager.c"
+ gboolean _tmp2_;
+ gint _tmp4_;
+ Book* _tmp5_;
+ guint _tmp6_ = 0U;
+ Book* _tmp7_;
+ gint _tmp8_;
+ Page* _tmp9_ = NULL;
+ Page* page;
+ Page* _tmp10_;
+#line 62 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp2_ = _tmp1_;
+#line 62 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (!_tmp2_) {
+#line 2922 "autosave-manager.c"
+ gint _tmp3_;
+#line 62 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp3_ = i;
+#line 62 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ i = _tmp3_ + 1;
+#line 2928 "autosave-manager.c"
+ }
+#line 62 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp1_ = FALSE;
+#line 62 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp4_ = i;
+#line 62 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp5_ = self->priv->_book;
+#line 62 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp6_ = book_get_n_pages (_tmp5_);
+#line 62 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (!(((guint) _tmp4_) < _tmp6_)) {
+#line 62 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ break;
+#line 2942 "autosave-manager.c"
+ }
+#line 64 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp7_ = self->priv->_book;
+#line 64 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp8_ = i;
+#line 64 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp9_ = book_get_page (_tmp7_, _tmp8_);
+#line 64 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ page = _tmp9_;
+#line 65 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp10_ = page;
+#line 65 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ autosave_manager_on_page_removed (self, _tmp10_);
+#line 62 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _page_unref0 (page);
+#line 2958 "autosave-manager.c"
+ }
+ }
+ }
+#line 67 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp11_ = self->priv->_book;
+#line 67 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_signal_parse_name ("page-added", TYPE_BOOK, &_tmp12_, NULL, FALSE);
+#line 67 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_signal_handlers_disconnect_matched (_tmp11_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp12_, 0, NULL, (GCallback) _autosave_manager_on_page_added_book_page_added, self);
+#line 68 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp13_ = self->priv->_book;
+#line 68 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_signal_parse_name ("page-removed", TYPE_BOOK, &_tmp14_, NULL, FALSE);
+#line 68 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_signal_handlers_disconnect_matched (_tmp13_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp14_, 0, NULL, (GCallback) _autosave_manager_on_page_removed_book_page_removed, self);
+#line 69 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp15_ = self->priv->_book;
+#line 69 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_signal_parse_name ("reordered", TYPE_BOOK, &_tmp16_, NULL, FALSE);
+#line 69 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_signal_handlers_disconnect_matched (_tmp15_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp16_, 0, NULL, (GCallback) _autosave_manager_on_reordered_book_reordered, self);
+#line 70 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp17_ = self->priv->_book;
+#line 70 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_signal_parse_name ("cleared", TYPE_BOOK, &_tmp18_, NULL, FALSE);
+#line 70 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_signal_handlers_disconnect_matched (_tmp17_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp18_, 0, NULL, (GCallback) _autosave_manager_on_cleared_book_cleared, self);
+#line 2986 "autosave-manager.c"
+ }
+#line 72 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp19_ = value;
+#line 72 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp20_ = _book_ref0 (_tmp19_);
+#line 72 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _book_unref0 (self->priv->_book);
+#line 72 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ self->priv->_book = _tmp20_;
+#line 73 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp21_ = self->priv->_book;
+#line 73 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_signal_connect (_tmp21_, "page-added", (GCallback) _autosave_manager_on_page_added_book_page_added, self);
+#line 74 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp22_ = self->priv->_book;
+#line 74 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_signal_connect (_tmp22_, "page-removed", (GCallback) _autosave_manager_on_page_removed_book_page_removed, self);
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp23_ = self->priv->_book;
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_signal_connect (_tmp23_, "reordered", (GCallback) _autosave_manager_on_reordered_book_reordered, self);
+#line 76 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp24_ = self->priv->_book;
+#line 76 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_signal_connect (_tmp24_, "cleared", (GCallback) _autosave_manager_on_cleared_book_cleared, self);
+#line 3012 "autosave-manager.c"
+ {
+ gint i;
+#line 77 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ i = 0;
+#line 3017 "autosave-manager.c"
+ {
+ gboolean _tmp25_;
+#line 77 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp25_ = TRUE;
+#line 77 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ while (TRUE) {
+#line 3024 "autosave-manager.c"
+ gboolean _tmp26_;
+ gint _tmp28_;
+ Book* _tmp29_;
+ guint _tmp30_ = 0U;
+ Book* _tmp31_;
+ Book* _tmp32_;
+ gint _tmp33_;
+ Page* _tmp34_ = NULL;
+ Page* page;
+ Page* _tmp35_;
+#line 77 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp26_ = _tmp25_;
+#line 77 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (!_tmp26_) {
+#line 3039 "autosave-manager.c"
+ gint _tmp27_;
+#line 77 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp27_ = i;
+#line 77 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ i = _tmp27_ + 1;
+#line 3045 "autosave-manager.c"
+ }
+#line 77 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp25_ = FALSE;
+#line 77 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp28_ = i;
+#line 77 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp29_ = self->priv->_book;
+#line 77 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp30_ = book_get_n_pages (_tmp29_);
+#line 77 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (!(((guint) _tmp28_) < _tmp30_)) {
+#line 77 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ break;
+#line 3059 "autosave-manager.c"
+ }
+#line 79 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp31_ = autosave_manager_get_book (self);
+#line 79 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp32_ = _tmp31_;
+#line 79 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp33_ = i;
+#line 79 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp34_ = book_get_page (_tmp32_, _tmp33_);
+#line 79 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ page = _tmp34_;
+#line 80 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp35_ = page;
+#line 80 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ autosave_manager_on_page_added (self, _tmp35_);
+#line 77 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _page_unref0 (page);
+#line 3077 "autosave-manager.c"
+ }
+ }
+ }
+}
+
+
+static void value_autosave_manager_init (GValue* value) {
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ value->data[0].v_pointer = NULL;
+#line 3087 "autosave-manager.c"
+}
+
+
+static void value_autosave_manager_free_value (GValue* value) {
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (value->data[0].v_pointer) {
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ autosave_manager_unref (value->data[0].v_pointer);
+#line 3096 "autosave-manager.c"
+ }
+}
+
+
+static void value_autosave_manager_copy_value (const GValue* src_value, GValue* dest_value) {
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (src_value->data[0].v_pointer) {
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ dest_value->data[0].v_pointer = autosave_manager_ref (src_value->data[0].v_pointer);
+#line 3106 "autosave-manager.c"
+ } else {
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ dest_value->data[0].v_pointer = NULL;
+#line 3110 "autosave-manager.c"
+ }
+}
+
+
+static gpointer value_autosave_manager_peek_pointer (const GValue* value) {
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ return value->data[0].v_pointer;
+#line 3118 "autosave-manager.c"
+}
+
+
+static gchar* value_autosave_manager_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (collect_values[0].v_pointer) {
+#line 3125 "autosave-manager.c"
+ AutosaveManager* object;
+ object = collect_values[0].v_pointer;
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (object->parent_instance.g_class == NULL) {
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 3132 "autosave-manager.c"
+ } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 3136 "autosave-manager.c"
+ }
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ value->data[0].v_pointer = autosave_manager_ref (object);
+#line 3140 "autosave-manager.c"
+ } else {
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ value->data[0].v_pointer = NULL;
+#line 3144 "autosave-manager.c"
+ }
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ return NULL;
+#line 3148 "autosave-manager.c"
+}
+
+
+static gchar* value_autosave_manager_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+ AutosaveManager** object_p;
+ object_p = collect_values[0].v_pointer;
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (!object_p) {
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
+#line 3159 "autosave-manager.c"
+ }
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (!value->data[0].v_pointer) {
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ *object_p = NULL;
+#line 3165 "autosave-manager.c"
+ } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ *object_p = value->data[0].v_pointer;
+#line 3169 "autosave-manager.c"
+ } else {
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ *object_p = autosave_manager_ref (value->data[0].v_pointer);
+#line 3173 "autosave-manager.c"
+ }
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ return NULL;
+#line 3177 "autosave-manager.c"
+}
+
+
+GParamSpec* param_spec_autosave_manager (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+ ParamSpecAutosaveManager* spec;
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_return_val_if_fail (g_type_is_a (object_type, TYPE_AUTOSAVE_MANAGER), NULL);
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ G_PARAM_SPEC (spec)->value_type = object_type;
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ return G_PARAM_SPEC (spec);
+#line 3191 "autosave-manager.c"
+}
+
+
+gpointer value_get_autosave_manager (const GValue* value) {
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_AUTOSAVE_MANAGER), NULL);
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ return value->data[0].v_pointer;
+#line 3200 "autosave-manager.c"
+}
+
+
+void value_set_autosave_manager (GValue* value, gpointer v_object) {
+ AutosaveManager* old;
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_AUTOSAVE_MANAGER));
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ old = value->data[0].v_pointer;
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (v_object) {
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_AUTOSAVE_MANAGER));
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ value->data[0].v_pointer = v_object;
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ autosave_manager_ref (value->data[0].v_pointer);
+#line 3220 "autosave-manager.c"
+ } else {
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ value->data[0].v_pointer = NULL;
+#line 3224 "autosave-manager.c"
+ }
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (old) {
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ autosave_manager_unref (old);
+#line 3230 "autosave-manager.c"
+ }
+}
+
+
+void value_take_autosave_manager (GValue* value, gpointer v_object) {
+ AutosaveManager* old;
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_AUTOSAVE_MANAGER));
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ old = value->data[0].v_pointer;
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (v_object) {
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_AUTOSAVE_MANAGER));
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ value->data[0].v_pointer = v_object;
+#line 3249 "autosave-manager.c"
+ } else {
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ value->data[0].v_pointer = NULL;
+#line 3253 "autosave-manager.c"
+ }
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (old) {
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ autosave_manager_unref (old);
+#line 3259 "autosave-manager.c"
+ }
+}
+
+
+static void autosave_manager_class_init (AutosaveManagerClass * klass) {
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ gchar* _tmp2_;
+ gchar* _tmp3_;
+ const gchar* _tmp4_;
+ const gchar* _tmp5_;
+ const gchar* _tmp6_;
+ gchar* _tmp7_;
+ gchar* _tmp8_;
+ gchar* _tmp9_ = NULL;
+ pid_t _tmp10_ = 0;
+ gchar* _tmp11_ = NULL;
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ autosave_manager_parent_class = g_type_class_peek_parent (klass);
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ AUTOSAVE_MANAGER_CLASS (klass)->finalize = autosave_manager_finalize;
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_type_class_add_private (klass, sizeof (AutosaveManagerPrivate));
+#line 38 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp0_ = g_get_user_cache_dir ();
+#line 38 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp1_ = g_build_filename (_tmp0_, "simple-scan", "autosaves", NULL);
+#line 38 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ autosave_manager_AUTOSAVE_DIR = _tmp1_;
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp2_ = g_strdup ("autosaves");
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ autosave_manager_AUTOSAVE_NAME = _tmp2_;
+#line 40 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp3_ = g_strdup (".db");
+#line 40 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ autosave_manager_AUTOSAVE_EXT = _tmp3_;
+#line 41 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp4_ = autosave_manager_AUTOSAVE_DIR;
+#line 41 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp5_ = autosave_manager_AUTOSAVE_NAME;
+#line 41 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp6_ = autosave_manager_AUTOSAVE_EXT;
+#line 41 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp7_ = g_strconcat (_tmp5_, _tmp6_, NULL);
+#line 41 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp8_ = _tmp7_;
+#line 41 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp9_ = g_build_filename (_tmp4_, _tmp8_, NULL);
+#line 41 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ autosave_manager_AUTOSAVE_FILENAME = _tmp9_;
+#line 43 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp10_ = getpid ();
+#line 43 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _tmp11_ = g_strdup_printf ("%i", (gint) _tmp10_);
+#line 43 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ autosave_manager_PID = _tmp11_;
+#line 3317 "autosave-manager.c"
+}
+
+
+static void autosave_manager_instance_init (AutosaveManager * self) {
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ self->priv = AUTOSAVE_MANAGER_GET_PRIVATE (self);
+#line 47 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ self->priv->_book = NULL;
+#line 49 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ self->priv->update_timeout = (guint) 0;
+#line 323 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ self->priv->cur_book_revision = 0;
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ self->ref_count = 1;
+#line 3332 "autosave-manager.c"
+}
+
+
+static void autosave_manager_finalize (AutosaveManager* obj) {
+ AutosaveManager * self;
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_AUTOSAVE_MANAGER, AutosaveManager);
+#line 46 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _sqlite3_close0 (self->priv->database_connection);
+#line 47 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _book_unref0 (self->priv->_book);
+#line 50 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ _g_hash_table_unref0 (self->priv->dirty_pages);
+#line 3346 "autosave-manager.c"
+}
+
+
+GType autosave_manager_get_type (void) {
+ static volatile gsize autosave_manager_type_id__volatile = 0;
+ if (g_once_init_enter (&autosave_manager_type_id__volatile)) {
+ static const GTypeValueTable g_define_type_value_table = { value_autosave_manager_init, value_autosave_manager_free_value, value_autosave_manager_copy_value, value_autosave_manager_peek_pointer, "p", value_autosave_manager_collect_value, "p", value_autosave_manager_lcopy_value };
+ static const GTypeInfo g_define_type_info = { sizeof (AutosaveManagerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) autosave_manager_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (AutosaveManager), 0, (GInstanceInitFunc) autosave_manager_instance_init, &g_define_type_value_table };
+ static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
+ GType autosave_manager_type_id;
+ autosave_manager_type_id = g_type_register_fundamental (g_type_fundamental_next (), "AutosaveManager", &g_define_type_info, &g_define_type_fundamental_info, 0);
+ g_once_init_leave (&autosave_manager_type_id__volatile, autosave_manager_type_id);
+ }
+ return autosave_manager_type_id__volatile;
+}
+
+
+gpointer autosave_manager_ref (gpointer instance) {
+ AutosaveManager* self;
+ self = instance;
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_atomic_int_inc (&self->ref_count);
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ return instance;
+#line 3371 "autosave-manager.c"
+}
+
+
+void autosave_manager_unref (gpointer instance) {
+ AutosaveManager* self;
+ self = instance;
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ if (g_atomic_int_dec_and_test (&self->ref_count)) {
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ AUTOSAVE_MANAGER_GET_CLASS (self)->finalize (self);
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
+ g_type_free_instance ((GTypeInstance *) self);
+#line 3384 "autosave-manager.c"
+ }
+}
+
+
+
diff --git a/src/autosave-manager.vala b/src/autosave-manager.vala
new file mode 100644
index 0000000..eb8f1c5
--- /dev/null
+++ b/src/autosave-manager.vala
@@ -0,0 +1,553 @@
+/*
+ * Copyright (C) 2011 Timo Kluck
+ * Author: Timo Kluck <tkluck@infty.nl>
+ *
+ * This program is free software: you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License as published by the Free Software
+ * Foundation, either version 3 of the License, or (at your option) any later
+ * version. See http://www.gnu.org/copyleft/gpl.html the full text of the
+ * license.
+ */
+
+/*
+ * We store autosaves in a database named
+ * ~/.cache/simple-scan/autosaves/autosaves.db
+ * It contains a single table of pages, each containing the process id (pid) of
+ * the simple-scan instance that saved it, and a hash of the Book and Page
+ * objects corresponding to it. The pixels are saved as a BLOB.
+ * Additionally, the autosaves directory contains a number of tiff files that
+ * the user can use for manual recovery.
+ *
+ * At startup, we check whether autosaves.db contains any records
+ * with a pid that does not match a current pid for simple-scan. If so, we take
+ * ownership by an UPDATE statement changing to our own pid. Then, we
+ * recover the book. We're trying our best to avoid the possible race
+ * condition if several instances of simple-scan are started simultaneously.
+ *
+ * At application exit, we delete the records corresponding to our own pid.
+ *
+ * Important notes:
+ * - We enforce that there is only one AutosaveManager instance in a given
+ * process by using a create function.
+ * - It should be possible to change the book object at runtime, although this
+ * is not used in the current implementation so it has not been tested.
+ */
+
+public class AutosaveManager
+{
+ private static string AUTOSAVE_DIR = Path.build_filename (Environment.get_user_cache_dir (), "simple-scan", "autosaves");
+ private static string AUTOSAVE_NAME = "autosaves";
+ private static string AUTOSAVE_EXT = ".db";
+ private static string AUTOSAVE_FILENAME = Path.build_filename (AUTOSAVE_DIR, AUTOSAVE_NAME + AUTOSAVE_EXT);
+
+ private static string PID = ((int)(Posix.getpid ())).to_string ();
+ private static int number_of_instances = 0;
+
+ private Sqlite.Database database_connection;
+ private Book _book = null;
+
+ private uint update_timeout = 0;
+ private HashTable<Page, bool> dirty_pages;
+
+ public Book book
+ {
+ get
+ {
+ return _book;
+ }
+ set
+ {
+ if (_book != null)
+ {
+ for (var i = 0; i < _book.get_n_pages (); i++)
+ {
+ var page = _book.get_page (i);
+ on_page_removed (page);
+ }
+ _book.page_added.disconnect (on_page_added);
+ _book.page_removed.disconnect (on_page_removed);
+ _book.reordered.disconnect (on_reordered);
+ _book.cleared.disconnect (on_cleared);
+ }
+ _book = value;
+ _book.page_added.connect (on_page_added);
+ _book.page_removed.connect (on_page_removed);
+ _book.reordered.connect (on_reordered);
+ _book.cleared.connect (on_cleared);
+ for (var i = 0; i < _book.get_n_pages (); i++)
+ {
+ var page = book.get_page (i);
+ on_page_added (page);
+ }
+ }
+ }
+
+ public static AutosaveManager? create (ref Book book)
+ {
+ /* compare autosave directories with pids of current instances of simple-scan
+ * take ownership of one of the ones that are unowned by renaming to the
+ * own pid. Then open the database and fill the book with the pages it
+ * contains.
+ */
+ if (number_of_instances > 0)
+ assert_not_reached ();
+
+ var man = new AutosaveManager ();
+ number_of_instances++;
+
+ try
+ {
+ man.database_connection = open_database_connection ();
+ }
+ catch
+ {
+ warning ("Could not connect to the autosave database; no autosaves will be kept.");
+ return null;
+ }
+
+ bool any_pages_recovered = false;
+ try
+ {
+ // FIXME: this only works on linux. We can maybe use Gtk.Application and some session bus id instead?
+ string current_pids;
+ Process.spawn_command_line_sync ("pidof simple-scan | sed \"s/ /,/g\"", out current_pids);
+ current_pids = current_pids.strip ();
+ Sqlite.Statement stmt;
+ string query = @"
+ SELECT process_id, book_hash, book_revision FROM pages
+ WHERE NOT process_id IN ($current_pids)
+ LIMIT 1
+ ";
+
+ var result = man.database_connection.prepare_v2 (query, -1, out stmt);
+ if (result == Sqlite.OK)
+ {
+ while (stmt.step () == Sqlite.ROW)
+ {
+ debug ("Found at least one autosave page, taking ownership");
+ var unowned_pid = stmt.column_int (0);
+ var book_hash = stmt.column_int (1);
+ var book_revision = stmt.column_int (2);
+ /* there's a possible race condition here when several instances
+ * try to take ownership of the same rows. What would happen is
+ * that this operations would affect no rows if another process
+ * has taken ownership in the mean time. In that case, recover_book
+ * does nothing, so there should be no problem.
+ */
+ query = @"
+ UPDATE pages
+ SET process_id = $PID
+ WHERE process_id = ?2
+ AND book_hash = ?3
+ AND book_revision = ?4";
+ Sqlite.Statement stmt2;
+ result = man.database_connection.prepare_v2(query, -1, out stmt2);
+ if (result != Sqlite.OK)
+ warning (@"Error preparing statement: $query");
+
+ stmt2.bind_int64 (2, unowned_pid);
+ stmt2.bind_int64 (3, book_hash);
+ stmt2.bind_int64 (4, book_revision);
+ result = stmt2.step();
+ if (result == Sqlite.DONE)
+ {
+ any_pages_recovered = true;
+ man.recover_book (ref book);
+ }
+ else
+ warning ("Error %d while executing query", result);
+ }
+ }
+ else
+ warning ("Error %d while preparing statement", result);
+ }
+ catch (SpawnError e)
+ {
+ warning ("Could not obtain current process ids; not restoring any autosaves");
+ }
+
+ man.book = book;
+ if (!any_pages_recovered)
+ {
+ for (var i = 0; i < book.get_n_pages (); i++)
+ {
+ var page = book.get_page (i);
+ man.on_page_added (page);
+ }
+ }
+
+ return man;
+ }
+
+ private AutosaveManager ()
+ {
+ dirty_pages = new HashTable<Page, bool> (direct_hash, direct_equal);
+ }
+
+ public void cleanup ()
+ {
+ debug ("Clean exit; deleting autosave records");
+
+ if (update_timeout > 0)
+ Source.remove (update_timeout);
+ update_timeout = 0;
+
+ warn_if_fail (database_connection.exec (@"
+ DELETE FROM pages
+ WHERE process_id = $PID
+ ") == Sqlite.OK);
+ }
+
+ static Sqlite.Database open_database_connection () throws Error
+ {
+ var autosaves_dir = File.new_for_path (AUTOSAVE_DIR);
+ try
+ {
+ autosaves_dir.make_directory_with_parents ();
+ }
+ catch
+ { // the directory already exists
+ // pass
+ }
+ Sqlite.Database connection;
+ if (Sqlite.Database.open (AUTOSAVE_FILENAME, out connection) != Sqlite.OK)
+ throw new IOError.FAILED ("Could not connect to autosave database");
+ string query = @"
+ CREATE TABLE IF NOT EXISTS pages (
+ id integer PRIMARY KEY,
+ process_id integer,
+ page_hash integer,
+ book_hash integer,
+ book_revision integer,
+ page_number integer,
+ dpi integer,
+ width integer,
+ height integer,
+ depth integer,
+ n_channels integer,
+ rowstride integer,
+ color_profile string,
+ crop_x integer,
+ crop_y integer,
+ crop_width integer,
+ crop_height integer,
+ scan_direction integer,
+ pixels binary
+ )";
+ var result = connection.exec(query);
+ if (result != Sqlite.OK)
+ warning ("Error %d while executing query", result);
+ return connection;
+ }
+
+ void on_page_added (Page page)
+ {
+ insert_page (page);
+ // TODO: save a tiff file
+ page.size_changed.connect (on_page_changed);
+ page.scan_direction_changed.connect (on_page_changed);
+ page.crop_changed.connect (on_page_changed);
+ page.scan_finished.connect (on_page_changed);
+ }
+
+ public void on_page_removed (Page page)
+ {
+ page.pixels_changed.disconnect (on_page_changed);
+ page.size_changed.disconnect (on_page_changed);
+ page.scan_direction_changed.disconnect (on_page_changed);
+ page.crop_changed.disconnect (on_page_changed);
+ page.scan_finished.connect (on_page_changed);
+
+ string query = @"
+ DELETE FROM pages
+ WHERE process_id = $PID
+ AND page_hash = ?2
+ AND book_hash = ?3
+ AND book_revision = ?4
+ ";
+ Sqlite.Statement stmt;
+ var result = database_connection.prepare_v2 (query, -1, out stmt);
+ if (result != Sqlite.OK)
+ warning (@"Error $result while preparing query");
+ stmt.bind_int64 (2, direct_hash (page));
+ stmt.bind_int64 (3, direct_hash (book));
+ stmt.bind_int64 (4, cur_book_revision);
+
+ result = stmt.step();
+ if (result != Sqlite.DONE)
+ warning ("Error %d while executing query", result);
+ }
+
+ public void on_reordered ()
+ {
+ for (var i=0; i < book.get_n_pages (); i++)
+ {
+ var page = book.get_page (i);
+ string query = @"
+ UPDATE pages SET page_number = ?5
+ WHERE process_id = $PID
+ AND page_hash = ?2
+ AND book_hash = ?3
+ AND book_revision = ?4
+ ";
+ Sqlite.Statement stmt;
+ var result = database_connection.prepare_v2 (query, -1, out stmt);
+ if (result != Sqlite.OK)
+ warning (@"Error $result while preparing query");
+
+ stmt.bind_int64 (5, i);
+ stmt.bind_int64 (2, direct_hash (page));
+ stmt.bind_int64 (3, direct_hash (book));
+ stmt.bind_int64 (4, cur_book_revision);
+
+ result = stmt.step();
+ if (result != Sqlite.DONE)
+ warning ("Error %d while executing query", result);
+ }
+ }
+
+ public void on_page_changed (Page page)
+ {
+ update_page (page);
+ }
+
+ public void on_needs_saving_changed (Book book)
+ {
+ for (var n = 0; n < book.get_n_pages (); n++)
+ {
+ var page = book.get_page (n);
+ update_page (page);
+ }
+ }
+
+ private int cur_book_revision = 0;
+
+ public void on_cleared ()
+ {
+ cur_book_revision++;
+ }
+
+ private void insert_page (Page page)
+ {
+ debug ("Adding an autosave for a new page");
+ string query = @"
+ INSERT INTO pages
+ (process_id,
+ page_hash,
+ book_hash,
+ book_revision)
+ VALUES
+ ($PID,
+ ?2,
+ ?3,
+ ?4)
+ ";
+ Sqlite.Statement stmt;
+ var result = database_connection.prepare_v2 (query, -1, out stmt);
+ if (result != Sqlite.OK)
+ warning (@"Error $result while preparing query");
+
+ stmt.bind_int64 (2, direct_hash (page));
+ stmt.bind_int64 (3, direct_hash (book));
+ stmt.bind_int64 (4, cur_book_revision);
+
+ result = stmt.step();
+ if (result != Sqlite.DONE)
+ warning ("Error %d while executing query", result);
+
+ update_page (page);
+ }
+
+ private void update_page (Page page)
+ {
+ dirty_pages.insert (page, true);
+ if (update_timeout > 0)
+ Source.remove (update_timeout);
+ update_timeout = Timeout.add (100, () =>
+ {
+ var iter = HashTableIter<Page, bool> (dirty_pages);
+ Page p;
+ bool is_dirty;
+ while (iter.next (out p, out is_dirty))
+ real_update_page (p);
+
+ dirty_pages.remove_all ();
+ update_timeout = 0;
+
+ return false;
+ });
+ }
+
+ private void real_update_page (Page page)
+ {
+ debug ("Updating the autosave for a page");
+
+ int crop_x;
+ int crop_y;
+ int crop_width;
+ int crop_height;
+ page.get_crop (out crop_x, out crop_y, out crop_width, out crop_height);
+
+ Sqlite.Statement stmt;
+ string query = @"
+ UPDATE pages
+ SET
+ page_number=$(book.get_page_index (page)),
+ dpi=$(page.get_dpi ()),
+ width=$(page.get_width ()),
+ height=$(page.get_height ()),
+ depth=$(page.get_depth ()),
+ n_channels=$(page.get_n_channels ()),
+ rowstride=$(page.get_rowstride ()),
+ crop_x=$crop_x,
+ crop_y=$crop_y,
+ crop_width=$crop_width,
+ crop_height=$crop_height,
+ scan_direction=$((int)page.get_scan_direction ()),
+ color_profile=?1,
+ pixels=?2
+ WHERE process_id = $PID
+ AND page_hash = ?4
+ AND book_hash = ?5
+ AND book_revision = ?6
+ ";
+
+ var result = database_connection.prepare_v2 (query, -1, out stmt);
+ if (result != Sqlite.OK)
+ {
+ warning ("Error %d while preparing statement", result);
+ return;
+ }
+
+ stmt.bind_int64 (4, direct_hash (page));
+ stmt.bind_int64 (5, direct_hash (book));
+ stmt.bind_int64 (6, cur_book_revision);
+ result = stmt.bind_text (1, page.get_color_profile () ?? "");
+
+ if (result != Sqlite.OK)
+ warning ("Error %d while binding text", result);
+
+ if (page.get_pixels () != null)
+ {
+ // (-1) is the special value SQLITE_TRANSIENT
+ result = stmt.bind_blob (2, page.get_pixels (), page.get_pixels ().length, (DestroyNotify)(-1));
+ if (result != Sqlite.OK)
+ warning ("Error %d while binding blob", result);
+ }
+ else
+ warn_if_fail (stmt.bind_null (2) == Sqlite.OK);
+
+ warn_if_fail (stmt.step () == Sqlite.DONE);
+ }
+
+ private void recover_book (ref Book book)
+ {
+ Sqlite.Statement stmt;
+ string query = @"
+ SELECT process_id,
+ page_hash,
+ book_hash,
+ book_revision,
+ page_number,
+ dpi,
+ width,
+ height,
+ depth,
+ n_channels,
+ rowstride,
+ color_profile,
+ crop_x,
+ crop_y,
+ crop_width,
+ crop_height,
+ scan_direction,
+ pixels,
+ id
+ FROM pages
+ WHERE process_id = $PID
+ AND book_revision = (
+ SELECT MAX(book_revision) FROM pages WHERE process_id = $PID
+ )
+ ORDER BY page_number
+ ";
+
+ var result = database_connection.prepare_v2 (query, -1, out stmt);
+ if (result != Sqlite.OK)
+ warning ("Error %d while preparing statement", result);
+
+ var first = true;
+ while (Sqlite.ROW == stmt.step ())
+ {
+ debug ("Found a page that needs to be recovered");
+ if (first)
+ {
+ book.clear ();
+ first = false;
+ }
+ var dpi = stmt.column_int (5);
+ var width = stmt.column_int (6);
+ var height = stmt.column_int (7);
+ var depth = stmt.column_int (8);
+ var n_channels = stmt.column_int (9);
+ var scan_direction = (ScanDirection)stmt.column_int (16);
+
+ if (width <= 0 || height <= 0)
+ continue;
+
+ debug (@"Restoring a page of size $(width) x $(height)");
+ var new_page = book.append_page (width, height, dpi, scan_direction);
+
+ if (depth > 0 && n_channels > 0)
+ {
+ var info = new ScanPageInfo ();
+ info.width = width;
+ info.height = height;
+ info.depth = depth;
+ info.n_channels = n_channels;
+ info.dpi = dpi;
+ info.device = "";
+ new_page.set_page_info (info);
+ }
+
+ new_page.set_color_profile (stmt.column_text (11));
+ var crop_x = stmt.column_int (12);
+ var crop_y = stmt.column_int (13);
+ var crop_width = stmt.column_int (14);
+ var crop_height = stmt.column_int (15);
+ if (crop_width > 0 && crop_height > 0)
+ {
+ new_page.set_custom_crop (crop_width, crop_height);
+ new_page.move_crop (crop_x, crop_y);
+ }
+
+ uchar[] new_pixels = new uchar[stmt.column_bytes (17)];
+ Memory.copy (new_pixels, stmt.column_blob (17), stmt.column_bytes (17));
+ new_page.set_pixels (new_pixels);
+
+ var id = stmt.column_int (18);
+ debug ("Updating autosave to point to our new copy of the page");
+ query = @"
+ UPDATE pages
+ SET page_hash=?1,
+ book_hash=?2,
+ book_revision=?3
+ WHERE id = $id
+ ";
+
+ Sqlite.Statement stmt2;
+ var result2 = database_connection.prepare_v2 (query, -1, out stmt2);
+ if (result2 != Sqlite.OK)
+ warning (@"Error $result2 while preparing query");
+ stmt2.bind_int64 (1, direct_hash (new_page));
+ stmt2.bind_int64 (2, direct_hash (book));
+ stmt2.bind_int64 (3, cur_book_revision);
+
+ result2 = stmt2.step ();
+ if (result2 != Sqlite.DONE)
+ warning ("Error %d while executing query", result);
+ }
+
+ if (first)
+ debug ("No pages found to recover");
+ }
+}
diff --git a/src/book-view.c b/src/book-view.c
index 6bbf359..0169a0a 100644
--- a/src/book-view.c
+++ b/src/book-view.c
@@ -1,4 +1,4 @@
-/* book-view.c generated by valac 0.18.1, the Vala compiler
+/* book-view.c generated by valac 0.20.1, the Vala compiler
* generated from book-view.vala, do not modify */
/*
@@ -198,103 +198,137 @@ static void book_view_finalize (GObject* obj);
static void _book_view_add_cb_book_page_added (Book* _sender, Page* page, gpointer self) {
+#line 90 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
book_view_add_cb (self, _sender, page);
+#line 204 "book-view.c"
}
static void _book_view_remove_cb_book_page_removed (Book* _sender, Page* page, gpointer self) {
+#line 91 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
book_view_remove_cb (self, _sender, page);
+#line 211 "book-view.c"
}
static void _book_view_reorder_cb_book_reordered (Book* _sender, gpointer self) {
+#line 92 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
book_view_reorder_cb (self, _sender);
+#line 218 "book-view.c"
}
static void _book_view_clear_cb_book_cleared (Book* _sender, gpointer self) {
+#line 93 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
book_view_clear_cb (self, _sender);
+#line 225 "book-view.c"
}
static gboolean _book_view_configure_cb_gtk_widget_configure_event (GtkWidget* _sender, GdkEventConfigure* event, gpointer self) {
gboolean result;
result = book_view_configure_cb (self, _sender, event);
+#line 94 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
return result;
+#line 234 "book-view.c"
}
static gboolean _book_view_draw_cb_gtk_widget_draw (GtkWidget* _sender, cairo_t* cr, gpointer self) {
gboolean result;
result = book_view_draw_cb (self, _sender, cr);
+#line 95 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
return result;
+#line 243 "book-view.c"
}
static gboolean _book_view_motion_cb_gtk_widget_motion_notify_event (GtkWidget* _sender, GdkEventMotion* event, gpointer self) {
gboolean result;
result = book_view_motion_cb (self, _sender, event);
+#line 96 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
return result;
+#line 252 "book-view.c"
}
static gboolean _book_view_key_cb_gtk_widget_key_press_event (GtkWidget* _sender, GdkEventKey* event, gpointer self) {
gboolean result;
result = book_view_key_cb (self, _sender, event);
+#line 97 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
return result;
+#line 261 "book-view.c"
}
static gboolean _book_view_button_cb_gtk_widget_button_press_event (GtkWidget* _sender, GdkEventButton* event, gpointer self) {
gboolean result;
result = book_view_button_cb (self, _sender, event);
+#line 98 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
return result;
+#line 270 "book-view.c"
}
static gboolean _book_view_button_cb_gtk_widget_button_release_event (GtkWidget* _sender, GdkEventButton* event, gpointer self) {
gboolean result;
result = book_view_button_cb (self, _sender, event);
+#line 99 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
return result;
+#line 279 "book-view.c"
}
static gboolean _book_view_focus_cb_gtk_widget_focus_in_event (GtkWidget* _sender, GdkEventFocus* event, gpointer self) {
gboolean result;
result = book_view_focus_cb (self, _sender, event);
+#line 100 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
return result;
+#line 288 "book-view.c"
}
static gboolean _book_view_focus_cb_gtk_widget_focus_out_event (GtkWidget* _sender, GdkEventFocus* event, gpointer self) {
gboolean result;
result = book_view_focus_cb (self, _sender, event);
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
return result;
+#line 297 "book-view.c"
}
static void _book_view_scroll_cb_gtk_adjustment_value_changed (GtkAdjustment* _sender, gpointer self) {
+#line 102 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
book_view_scroll_cb (self, _sender);
+#line 304 "book-view.c"
}
static gpointer _book_ref0 (gpointer self) {
+#line 44 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
return self ? book_ref (self) : NULL;
+#line 311 "book-view.c"
}
static void _page_unref0_ (gpointer var) {
+#line 62 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
(var == NULL) ? NULL : (var = (page_unref (var), NULL));
+#line 318 "book-view.c"
}
static void _page_view_unref0_ (gpointer var) {
+#line 62 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
(var == NULL) ? NULL : (var = (page_view_unref (var), NULL));
+#line 325 "book-view.c"
}
static gpointer _g_object_ref0 (gpointer self) {
+#line 72 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
return self ? g_object_ref (self) : NULL;
+#line 332 "book-view.c"
}
@@ -332,19 +366,31 @@ BookView* book_view_construct (GType object_type, Book* book) {
GtkWidget* _tmp40_;
GtkAdjustment* _tmp41_;
GtkWidget* _tmp42_;
+#line 42 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_return_val_if_fail (book != NULL, NULL);
+#line 42 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
self = (BookView*) g_object_new (object_type, NULL);
+#line 44 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp0_ = book;
+#line 44 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp1_ = _book_ref0 (_tmp0_);
+#line 44 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_book_unref0 (self->priv->book);
+#line 44 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
self->priv->book = _tmp1_;
+#line 382 "book-view.c"
{
gint i;
+#line 47 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
i = 0;
+#line 387 "book-view.c"
{
gboolean _tmp2_;
+#line 47 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp2_ = TRUE;
+#line 47 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
while (TRUE) {
+#line 394 "book-view.c"
gboolean _tmp3_;
gint _tmp5_;
Book* _tmp6_;
@@ -355,104 +401,195 @@ BookView* book_view_construct (GType object_type, Book* book) {
Page* page;
Book* _tmp11_;
Page* _tmp12_;
+#line 47 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp3_ = _tmp2_;
+#line 47 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (!_tmp3_) {
+#line 409 "book-view.c"
gint _tmp4_;
+#line 47 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp4_ = i;
+#line 47 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
i = _tmp4_ + 1;
+#line 415 "book-view.c"
}
+#line 47 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp2_ = FALSE;
+#line 47 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp5_ = i;
+#line 47 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp6_ = book;
+#line 47 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp7_ = book_get_n_pages (_tmp6_);
+#line 47 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (!(((guint) _tmp5_) < _tmp7_)) {
+#line 47 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
break;
+#line 429 "book-view.c"
}
+#line 49 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp8_ = book;
+#line 49 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp9_ = i;
+#line 49 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp10_ = book_get_page (_tmp8_, _tmp9_);
+#line 49 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
page = _tmp10_;
+#line 50 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp11_ = book;
+#line 50 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp12_ = page;
+#line 50 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
book_view_add_cb (self, _tmp11_, _tmp12_);
+#line 47 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_page_unref0 (page);
+#line 447 "book-view.c"
}
}
}
+#line 53 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp13_ = book;
+#line 53 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp14_ = book_get_page (_tmp13_, 0);
+#line 53 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp15_ = _tmp14_;
+#line 53 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
book_view_select_page (self, _tmp15_);
+#line 53 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_page_unref0 (_tmp15_);
+#line 56 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp16_ = book;
+#line 56 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_signal_connect_object (_tmp16_, "page-added", (GCallback) _book_view_add_cb_book_page_added, self, 0);
+#line 57 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp17_ = book;
+#line 57 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_signal_connect_object (_tmp17_, "page-removed", (GCallback) _book_view_remove_cb_book_page_removed, self, 0);
+#line 58 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp18_ = book;
+#line 58 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_signal_connect_object (_tmp18_, "reordered", (GCallback) _book_view_reorder_cb_book_reordered, self, 0);
+#line 59 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp19_ = book;
+#line 59 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_signal_connect_object (_tmp19_, "cleared", (GCallback) _book_view_clear_cb_book_cleared, self, 0);
+#line 61 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
self->priv->need_layout = TRUE;
+#line 62 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp20_ = g_direct_hash;
+#line 62 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp21_ = g_direct_equal;
+#line 62 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp22_ = g_hash_table_new_full (_tmp20_, _tmp21_, _page_unref0_, _page_view_unref0_);
+#line 62 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_g_hash_table_unref0 (self->priv->page_data);
+#line 62 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
self->priv->page_data = _tmp22_;
+#line 63 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
self->priv->cursor = GDK_ARROW;
+#line 65 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp23_ = (GtkDrawingArea*) gtk_drawing_area_new ();
+#line 65 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_object_ref_sink (_tmp23_);
+#line 65 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_g_object_unref0 (self->priv->drawing_area);
+#line 65 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
self->priv->drawing_area = (GtkWidget*) _tmp23_;
+#line 66 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp24_ = self->priv->drawing_area;
+#line 66 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
gtk_widget_set_size_request (_tmp24_, 200, 100);
+#line 67 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp25_ = self->priv->drawing_area;
+#line 67 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
gtk_widget_set_can_focus (_tmp25_, TRUE);
+#line 68 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp26_ = self->priv->drawing_area;
+#line 68 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
gtk_widget_set_events (_tmp26_, (gint) (((((GDK_POINTER_MOTION_MASK | GDK_BUTTON_PRESS_MASK) | GDK_BUTTON_RELEASE_MASK) | GDK_FOCUS_CHANGE_MASK) | GDK_STRUCTURE_MASK) | GDK_SCROLL_MASK));
+#line 69 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp27_ = self->priv->drawing_area;
+#line 69 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
gtk_box_pack_start ((GtkBox*) self, _tmp27_, TRUE, TRUE, (guint) 0);
+#line 71 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp28_ = (GtkScrollbar*) gtk_scrollbar_new (GTK_ORIENTATION_HORIZONTAL, NULL);
+#line 71 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_object_ref_sink (_tmp28_);
+#line 71 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_g_object_unref0 (self->priv->scroll);
+#line 71 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
self->priv->scroll = _tmp28_;
+#line 72 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp29_ = self->priv->scroll;
+#line 72 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp30_ = gtk_range_get_adjustment ((GtkRange*) _tmp29_);
+#line 72 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp31_ = _g_object_ref0 (_tmp30_);
+#line 72 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_g_object_unref0 (self->priv->adjustment);
+#line 72 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
self->priv->adjustment = _tmp31_;
+#line 73 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp32_ = self->priv->scroll;
+#line 73 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
gtk_box_pack_start ((GtkBox*) self, (GtkWidget*) _tmp32_, FALSE, TRUE, (guint) 0);
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp33_ = self->priv->drawing_area;
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_signal_connect_object (_tmp33_, "configure-event", (GCallback) _book_view_configure_cb_gtk_widget_configure_event, self, 0);
+#line 76 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp34_ = self->priv->drawing_area;
+#line 76 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_signal_connect_object (_tmp34_, "draw", (GCallback) _book_view_draw_cb_gtk_widget_draw, self, 0);
+#line 77 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp35_ = self->priv->drawing_area;
+#line 77 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_signal_connect_object (_tmp35_, "motion-notify-event", (GCallback) _book_view_motion_cb_gtk_widget_motion_notify_event, self, 0);
+#line 78 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp36_ = self->priv->drawing_area;
+#line 78 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_signal_connect_object (_tmp36_, "key-press-event", (GCallback) _book_view_key_cb_gtk_widget_key_press_event, self, 0);
+#line 79 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp37_ = self->priv->drawing_area;
+#line 79 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_signal_connect_object (_tmp37_, "button-press-event", (GCallback) _book_view_button_cb_gtk_widget_button_press_event, self, 0);
+#line 80 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp38_ = self->priv->drawing_area;
+#line 80 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_signal_connect_object (_tmp38_, "button-release-event", (GCallback) _book_view_button_cb_gtk_widget_button_release_event, self, 0);
+#line 81 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp39_ = self->priv->drawing_area;
+#line 81 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_signal_connect_object (_tmp39_, "focus-in-event", (GCallback) _book_view_focus_cb_gtk_widget_focus_in_event, self, G_CONNECT_AFTER);
+#line 82 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp40_ = self->priv->drawing_area;
+#line 82 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_signal_connect_object (_tmp40_, "focus-out-event", (GCallback) _book_view_focus_cb_gtk_widget_focus_out_event, self, G_CONNECT_AFTER);
+#line 83 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp41_ = self->priv->adjustment;
+#line 83 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_signal_connect_object (_tmp41_, "value-changed", (GCallback) _book_view_scroll_cb_gtk_adjustment_value_changed, self, 0);
+#line 85 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp42_ = self->priv->drawing_area;
+#line 85 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
gtk_widget_show (_tmp42_);
+#line 42 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
return self;
+#line 579 "book-view.c"
}
BookView* book_view_new (Book* book) {
+#line 42 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
return book_view_construct (TYPE_BOOK_VIEW, book);
+#line 586 "book-view.c"
}
static gpointer _page_view_ref0 (gpointer self) {
+#line 108 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
return self ? page_view_ref (self) : NULL;
+#line 593 "book-view.c"
}
@@ -465,17 +602,29 @@ static PageView* book_view_get_nth_page (BookView* self, gint n) {
GHashTable* _tmp3_;
gconstpointer _tmp4_ = NULL;
PageView* _tmp5_;
+#line 105 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_return_val_if_fail (self != NULL, NULL);
+#line 107 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp0_ = self->priv->book;
+#line 107 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp1_ = n;
+#line 107 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp2_ = book_get_page (_tmp0_, _tmp1_);
+#line 107 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
page = _tmp2_;
+#line 108 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp3_ = self->priv->page_data;
+#line 108 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp4_ = g_hash_table_lookup (_tmp3_, page);
+#line 108 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp5_ = _page_view_ref0 ((PageView*) _tmp4_);
+#line 108 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
result = _tmp5_;
+#line 108 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_page_unref0 (page);
+#line 108 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
return result;
+#line 628 "book-view.c"
}
@@ -483,15 +632,23 @@ static PageView* book_view_get_next_page (BookView* self, PageView* page) {
PageView* result = NULL;
PageView* _tmp20_;
PageView* _tmp21_;
+#line 111 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_return_val_if_fail (self != NULL, NULL);
+#line 111 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_return_val_if_fail (page != NULL, NULL);
+#line 640 "book-view.c"
{
gint i;
+#line 113 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
i = 0;
+#line 645 "book-view.c"
{
gboolean _tmp0_;
+#line 113 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp0_ = TRUE;
+#line 113 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
while (TRUE) {
+#line 652 "book-view.c"
gboolean _tmp1_;
Book* _tmp3_;
gint _tmp4_;
@@ -503,61 +660,108 @@ static PageView* book_view_get_next_page (BookView* self, PageView* page) {
Page* _tmp9_ = NULL;
Page* _tmp10_;
gboolean _tmp11_;
+#line 113 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp1_ = _tmp0_;
+#line 113 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (!_tmp1_) {
+#line 668 "book-view.c"
gint _tmp2_;
+#line 113 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp2_ = i;
+#line 113 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
i = _tmp2_ + 1;
+#line 674 "book-view.c"
}
+#line 113 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp0_ = FALSE;
+#line 115 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp3_ = self->priv->book;
+#line 115 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp4_ = i;
+#line 115 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp5_ = book_get_page (_tmp3_, _tmp4_);
+#line 115 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
p = _tmp5_;
+#line 116 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp6_ = p;
+#line 116 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (_tmp6_ == NULL) {
+#line 117 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_page_unref0 (p);
+#line 117 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
break;
+#line 694 "book-view.c"
}
+#line 118 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp7_ = p;
+#line 118 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp8_ = page;
+#line 118 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp9_ = page_view_get_page (_tmp8_);
+#line 118 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp10_ = _tmp9_;
+#line 118 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp11_ = _tmp7_ == _tmp10_;
+#line 118 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_page_unref0 (_tmp10_);
+#line 118 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (_tmp11_) {
+#line 710 "book-view.c"
Book* _tmp12_;
gint _tmp13_;
Page* _tmp14_ = NULL;
Page* _tmp15_;
+#line 120 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp12_ = self->priv->book;
+#line 120 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp13_ = i;
+#line 120 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp14_ = book_get_page (_tmp12_, _tmp13_ + 1);
+#line 120 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_page_unref0 (p);
+#line 120 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
p = _tmp14_;
+#line 121 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp15_ = p;
+#line 121 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (_tmp15_ != NULL) {
+#line 729 "book-view.c"
GHashTable* _tmp16_;
Page* _tmp17_;
gconstpointer _tmp18_ = NULL;
PageView* _tmp19_;
+#line 122 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp16_ = self->priv->page_data;
+#line 122 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp17_ = p;
+#line 122 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp18_ = g_hash_table_lookup (_tmp16_, _tmp17_);
+#line 122 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp19_ = _page_view_ref0 ((PageView*) _tmp18_);
+#line 122 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
result = _tmp19_;
+#line 122 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_page_unref0 (p);
+#line 122 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
return result;
+#line 748 "book-view.c"
}
}
+#line 113 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_page_unref0 (p);
+#line 753 "book-view.c"
}
}
}
+#line 126 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp20_ = page;
+#line 126 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp21_ = _page_view_ref0 (_tmp20_);
+#line 126 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
result = _tmp21_;
+#line 126 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
return result;
+#line 765 "book-view.c"
}
@@ -568,18 +772,29 @@ static PageView* book_view_get_prev_page (BookView* self, PageView* page) {
PageView* prev_page;
PageView* _tmp18_;
PageView* _tmp19_;
+#line 129 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_return_val_if_fail (self != NULL, NULL);
+#line 129 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_return_val_if_fail (page != NULL, NULL);
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp0_ = page;
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp1_ = _page_view_ref0 (_tmp0_);
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
prev_page = _tmp1_;
+#line 786 "book-view.c"
{
gint i;
+#line 132 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
i = 0;
+#line 791 "book-view.c"
{
gboolean _tmp2_;
+#line 132 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp2_ = TRUE;
+#line 132 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
while (TRUE) {
+#line 798 "book-view.c"
gboolean _tmp3_;
Book* _tmp5_;
gint _tmp6_;
@@ -595,78 +810,134 @@ static PageView* book_view_get_prev_page (BookView* self, PageView* page) {
Page* _tmp15_;
gconstpointer _tmp16_ = NULL;
PageView* _tmp17_;
+#line 132 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp3_ = _tmp2_;
+#line 132 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (!_tmp3_) {
+#line 818 "book-view.c"
gint _tmp4_;
+#line 132 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp4_ = i;
+#line 132 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
i = _tmp4_ + 1;
+#line 824 "book-view.c"
}
+#line 132 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp2_ = FALSE;
+#line 134 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp5_ = self->priv->book;
+#line 134 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp6_ = i;
+#line 134 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp7_ = book_get_page (_tmp5_, _tmp6_);
+#line 134 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
p = _tmp7_;
+#line 135 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp8_ = p;
+#line 135 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (_tmp8_ == NULL) {
+#line 136 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_page_unref0 (p);
+#line 136 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
break;
+#line 844 "book-view.c"
}
+#line 137 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp9_ = p;
+#line 137 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp10_ = page;
+#line 137 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp11_ = page_view_get_page (_tmp10_);
+#line 137 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp12_ = _tmp11_;
+#line 137 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp13_ = _tmp9_ == _tmp12_;
+#line 137 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_page_unref0 (_tmp12_);
+#line 137 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (_tmp13_) {
+#line 138 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
result = prev_page;
+#line 138 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_page_unref0 (p);
+#line 138 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
return result;
+#line 866 "book-view.c"
}
+#line 139 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp14_ = self->priv->page_data;
+#line 139 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp15_ = p;
+#line 139 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp16_ = g_hash_table_lookup (_tmp14_, _tmp15_);
+#line 139 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp17_ = _page_view_ref0 ((PageView*) _tmp16_);
+#line 139 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_page_view_unref0 (prev_page);
+#line 139 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
prev_page = _tmp17_;
+#line 132 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_page_unref0 (p);
+#line 882 "book-view.c"
}
}
}
+#line 142 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp18_ = page;
+#line 142 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp19_ = _page_view_ref0 (_tmp18_);
+#line 142 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
result = _tmp19_;
+#line 142 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_page_view_unref0 (prev_page);
+#line 142 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
return result;
+#line 896 "book-view.c"
}
static void book_view_page_view_changed_cb (BookView* self, PageView* page) {
+#line 145 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_return_if_fail (self != NULL);
+#line 145 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_return_if_fail (page != NULL);
+#line 147 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
book_view_redraw (self);
+#line 907 "book-view.c"
}
static void book_view_page_view_size_changed_cb (BookView* self, PageView* page) {
+#line 150 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_return_if_fail (self != NULL);
+#line 150 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_return_if_fail (page != NULL);
+#line 152 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
self->priv->need_layout = TRUE;
+#line 153 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
book_view_redraw (self);
+#line 920 "book-view.c"
}
static void _book_view_page_view_changed_cb_page_view_changed (PageView* _sender, gpointer self) {
+#line 159 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
book_view_page_view_changed_cb (self, _sender);
+#line 927 "book-view.c"
}
static void _book_view_page_view_size_changed_cb_page_view_size_changed (PageView* _sender, gpointer self) {
+#line 160 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
book_view_page_view_size_changed_cb (self, _sender);
+#line 934 "book-view.c"
}
static gpointer _page_ref0 (gpointer self) {
+#line 161 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
return self ? page_ref (self) : NULL;
+#line 941 "book-view.c"
}
@@ -678,22 +949,39 @@ static void book_view_add_cb (BookView* self, Book* book, Page* page) {
Page* _tmp3_;
Page* _tmp4_;
PageView* _tmp5_;
+#line 156 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_return_if_fail (self != NULL);
+#line 156 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_return_if_fail (book != NULL);
+#line 156 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_return_if_fail (page != NULL);
+#line 158 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp0_ = page;
+#line 158 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp1_ = page_view_new (_tmp0_);
+#line 158 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
page_view = _tmp1_;
+#line 159 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_signal_connect_object (page_view, "changed", (GCallback) _book_view_page_view_changed_cb_page_view_changed, self, 0);
+#line 160 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_signal_connect_object (page_view, "size-changed", (GCallback) _book_view_page_view_size_changed_cb_page_view_size_changed, self, 0);
+#line 161 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp2_ = self->priv->page_data;
+#line 161 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp3_ = page;
+#line 161 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp4_ = _page_ref0 (_tmp3_);
+#line 161 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp5_ = _page_view_ref0 (page_view);
+#line 161 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_hash_table_insert (_tmp2_, _tmp4_, _tmp5_);
+#line 162 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
self->priv->need_layout = TRUE;
+#line 163 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
book_view_redraw (self);
+#line 156 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_page_view_unref0 (page_view);
+#line 985 "book-view.c"
}
@@ -707,42 +995,77 @@ static void book_view_set_selected_page (BookView* self, PageView* page) {
GtkWidget* _tmp9_;
gboolean _tmp10_ = FALSE;
gboolean _tmp11_;
+#line 166 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_return_if_fail (self != NULL);
+#line 169 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp1_ = self->priv->selected_page;
+#line 169 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (_tmp1_ != NULL) {
+#line 1005 "book-view.c"
PageView* _tmp2_;
PageView* _tmp3_;
+#line 169 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp2_ = page;
+#line 169 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp3_ = self->priv->selected_page;
+#line 169 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp0_ = _tmp2_ != _tmp3_;
+#line 1014 "book-view.c"
} else {
+#line 169 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp0_ = FALSE;
+#line 1018 "book-view.c"
}
+#line 169 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp4_ = _tmp0_;
+#line 169 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (_tmp4_) {
+#line 1024 "book-view.c"
PageView* _tmp5_;
+#line 170 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp5_ = self->priv->selected_page;
+#line 170 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
page_view_set_selected (_tmp5_, FALSE);
+#line 1030 "book-view.c"
}
+#line 172 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp6_ = page;
+#line 172 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp7_ = _page_view_ref0 (_tmp6_);
+#line 172 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_page_view_unref0 (self->priv->selected_page);
+#line 172 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
self->priv->selected_page = _tmp7_;
+#line 173 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp8_ = self->priv->selected_page;
+#line 173 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (_tmp8_ == NULL) {
+#line 174 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
return;
+#line 1046 "book-view.c"
}
+#line 177 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp9_ = self->priv->drawing_area;
+#line 177 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_object_get (_tmp9_, "has-focus", &_tmp10_, NULL);
+#line 177 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp11_ = _tmp10_;
+#line 177 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (!_tmp11_) {
+#line 1056 "book-view.c"
PageView* _tmp12_;
+#line 178 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp12_ = self->priv->selected_page;
+#line 178 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
page_view_set_selected (_tmp12_, FALSE);
+#line 1062 "book-view.c"
} else {
PageView* _tmp13_;
+#line 180 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp13_ = self->priv->selected_page;
+#line 180 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
page_view_set_selected (_tmp13_, TRUE);
+#line 1069 "book-view.c"
}
}
@@ -750,10 +1073,15 @@ static void book_view_set_selected_page (BookView* self, PageView* page) {
static void book_view_set_x_offset (BookView* self, gint offset) {
GtkAdjustment* _tmp0_;
gint _tmp1_;
+#line 183 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_return_if_fail (self != NULL);
+#line 185 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp0_ = self->priv->adjustment;
+#line 185 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp1_ = offset;
+#line 185 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
gtk_adjustment_set_value (_tmp0_, (gdouble) _tmp1_);
+#line 1085 "book-view.c"
}
@@ -761,11 +1089,17 @@ static gint book_view_get_x_offset (BookView* self) {
gint result = 0;
GtkAdjustment* _tmp0_;
gdouble _tmp1_ = 0.0;
+#line 188 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_return_val_if_fail (self != NULL, 0);
+#line 190 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp0_ = self->priv->adjustment;
+#line 190 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp1_ = gtk_adjustment_get_value (_tmp0_);
+#line 190 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
result = (gint) _tmp1_;
+#line 190 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
return result;
+#line 1103 "book-view.c"
}
@@ -786,55 +1120,97 @@ static void book_view_show_page_view (BookView* self, PageView* page) {
gint right_edge;
gint _tmp13_;
gint _tmp14_ = 0;
+#line 193 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_return_if_fail (self != NULL);
+#line 195 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp1_ = page;
+#line 195 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (_tmp1_ == NULL) {
+#line 195 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp0_ = TRUE;
+#line 1132 "book-view.c"
} else {
GtkScrollbar* _tmp2_;
gboolean _tmp3_ = FALSE;
+#line 195 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp2_ = self->priv->scroll;
+#line 195 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp3_ = gtk_widget_get_visible ((GtkWidget*) _tmp2_);
+#line 195 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp0_ = !_tmp3_;
+#line 1142 "book-view.c"
}
+#line 195 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp4_ = _tmp0_;
+#line 195 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (_tmp4_) {
+#line 196 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
return;
+#line 1150 "book-view.c"
}
+#line 199 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp5_ = self->priv->drawing_area;
+#line 199 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
gtk_widget_get_allocation (_tmp5_, &_tmp6_);
+#line 199 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
allocation = _tmp6_;
+#line 200 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp7_ = page;
+#line 200 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp8_ = page_view_get_x_offset (_tmp7_);
+#line 200 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
left_edge = _tmp8_;
+#line 201 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp9_ = page;
+#line 201 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp10_ = page_view_get_x_offset (_tmp9_);
+#line 201 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp11_ = page;
+#line 201 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp12_ = page_view_get_width (_tmp11_);
+#line 201 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
right_edge = _tmp10_ + _tmp12_;
+#line 203 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp13_ = left_edge;
+#line 203 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp14_ = book_view_get_x_offset (self);
+#line 203 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if ((_tmp13_ - _tmp14_) < 0) {
+#line 1180 "book-view.c"
gint _tmp15_;
+#line 204 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp15_ = left_edge;
+#line 204 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
book_view_set_x_offset (self, _tmp15_);
+#line 1186 "book-view.c"
} else {
gint _tmp16_;
gint _tmp17_ = 0;
GtkAllocation _tmp18_;
gint _tmp19_;
+#line 205 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp16_ = right_edge;
+#line 205 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp17_ = book_view_get_x_offset (self);
+#line 205 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp18_ = allocation;
+#line 205 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp19_ = _tmp18_.width;
+#line 205 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if ((_tmp16_ - _tmp17_) > _tmp19_) {
+#line 1202 "book-view.c"
gint _tmp20_;
GtkAllocation _tmp21_;
gint _tmp22_;
+#line 206 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp20_ = right_edge;
+#line 206 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp21_ = allocation;
+#line 206 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp22_ = _tmp21_.width;
+#line 206 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
book_view_set_x_offset (self, _tmp20_ - _tmp22_);
+#line 1214 "book-view.c"
}
}
}
@@ -848,36 +1224,65 @@ static void book_view_select_page_view (BookView* self, PageView* page) {
gboolean _tmp3_;
PageView* _tmp5_;
Page* _tmp8_;
+#line 209 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_return_if_fail (self != NULL);
+#line 211 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
p = NULL;
+#line 213 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp0_ = self->priv->selected_page;
+#line 213 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp1_ = page;
+#line 213 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (_tmp0_ == _tmp1_) {
+#line 214 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_page_unref0 (p);
+#line 214 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
return;
+#line 1242 "book-view.c"
}
+#line 216 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp2_ = page;
+#line 216 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
book_view_set_selected_page (self, _tmp2_);
+#line 218 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp3_ = self->priv->need_layout;
+#line 218 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (_tmp3_) {
+#line 219 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
self->priv->show_selected_page = TRUE;
+#line 1254 "book-view.c"
} else {
PageView* _tmp4_;
+#line 221 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp4_ = page;
+#line 221 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
book_view_show_page_view (self, _tmp4_);
+#line 1261 "book-view.c"
}
+#line 223 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp5_ = page;
+#line 223 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (_tmp5_ != NULL) {
+#line 1267 "book-view.c"
PageView* _tmp6_;
Page* _tmp7_ = NULL;
+#line 224 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp6_ = page;
+#line 224 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp7_ = page_view_get_page (_tmp6_);
+#line 224 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_page_unref0 (p);
+#line 224 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
p = _tmp7_;
+#line 1278 "book-view.c"
}
+#line 225 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp8_ = p;
+#line 225 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_signal_emit_by_name (self, "page-selected", _tmp8_);
+#line 209 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_page_unref0 (p);
+#line 1286 "book-view.c"
}
@@ -899,79 +1304,142 @@ static void book_view_remove_cb (BookView* self, Book* book, Page* page) {
GHashTable* _tmp18_;
Page* _tmp19_;
PageView* _tmp20_;
+#line 228 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_return_if_fail (self != NULL);
+#line 228 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_return_if_fail (book != NULL);
+#line 228 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_return_if_fail (page != NULL);
+#line 230 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp0_ = self->priv->selected_page;
+#line 230 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp1_ = _page_view_ref0 (_tmp0_);
+#line 230 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
new_selection = _tmp1_;
+#line 233 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp2_ = page;
+#line 233 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp3_ = book_view_get_selected (self);
+#line 233 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp4_ = _tmp3_;
+#line 233 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp5_ = _tmp2_ == _tmp4_;
+#line 233 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_page_unref0 (_tmp4_);
+#line 233 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (_tmp5_) {
+#line 1332 "book-view.c"
PageView* _tmp6_;
PageView* _tmp7_ = NULL;
PageView* _tmp8_;
PageView* _tmp9_;
+#line 235 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp6_ = self->priv->selected_page;
+#line 235 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp7_ = book_view_get_prev_page (self, _tmp6_);
+#line 235 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_page_view_unref0 (new_selection);
+#line 235 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
new_selection = _tmp7_;
+#line 236 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp8_ = new_selection;
+#line 236 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp9_ = self->priv->selected_page;
+#line 236 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (_tmp8_ == _tmp9_) {
+#line 1351 "book-view.c"
PageView* _tmp10_;
PageView* _tmp11_ = NULL;
+#line 237 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp10_ = self->priv->selected_page;
+#line 237 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp11_ = book_view_get_next_page (self, _tmp10_);
+#line 237 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_page_view_unref0 (new_selection);
+#line 237 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
new_selection = _tmp11_;
+#line 1362 "book-view.c"
}
+#line 238 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_page_view_unref0 (self->priv->selected_page);
+#line 238 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
self->priv->selected_page = NULL;
+#line 1368 "book-view.c"
}
+#line 241 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp12_ = self->priv->page_data;
+#line 241 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp13_ = page;
+#line 241 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp14_ = g_hash_table_lookup (_tmp12_, _tmp13_);
+#line 241 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp15_ = _page_view_ref0 ((PageView*) _tmp14_);
+#line 241 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
page_view = _tmp15_;
+#line 242 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_signal_parse_name ("changed", TYPE_PAGE_VIEW, &_tmp16_, NULL, FALSE);
+#line 242 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_signal_handlers_disconnect_matched (page_view, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp16_, 0, NULL, (GCallback) _book_view_page_view_changed_cb_page_view_changed, self);
+#line 243 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_signal_parse_name ("size-changed", TYPE_PAGE_VIEW, &_tmp17_, NULL, FALSE);
+#line 243 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_signal_handlers_disconnect_matched (page_view, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp17_, 0, NULL, (GCallback) _book_view_page_view_size_changed_cb_page_view_size_changed, self);
+#line 244 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp18_ = self->priv->page_data;
+#line 244 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp19_ = page;
+#line 244 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_hash_table_remove (_tmp18_, _tmp19_);
+#line 246 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp20_ = new_selection;
+#line 246 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
book_view_select_page_view (self, _tmp20_);
+#line 248 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
self->priv->need_layout = TRUE;
+#line 249 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
book_view_redraw (self);
+#line 228 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_page_view_unref0 (page_view);
+#line 228 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_page_view_unref0 (new_selection);
+#line 1406 "book-view.c"
}
static void book_view_reorder_cb (BookView* self, Book* book) {
+#line 252 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_return_if_fail (self != NULL);
+#line 252 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_return_if_fail (book != NULL);
+#line 254 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
self->priv->need_layout = TRUE;
+#line 255 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
book_view_redraw (self);
+#line 1419 "book-view.c"
}
static void book_view_clear_cb (BookView* self, Book* book) {
GHashTable* _tmp0_;
+#line 258 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_return_if_fail (self != NULL);
+#line 258 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_return_if_fail (book != NULL);
+#line 260 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp0_ = self->priv->page_data;
+#line 260 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_hash_table_remove_all (_tmp0_);
+#line 261 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_page_view_unref0 (self->priv->selected_page);
+#line 261 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
self->priv->selected_page = NULL;
+#line 262 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_signal_emit_by_name (self, "page-selected", NULL);
+#line 263 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
self->priv->need_layout = TRUE;
+#line 264 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
book_view_redraw (self);
+#line 1443 "book-view.c"
}
@@ -979,22 +1447,35 @@ Book* book_view_get_book (BookView* self) {
Book* result = NULL;
Book* _tmp0_;
Book* _tmp1_;
+#line 267 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_return_val_if_fail (self != NULL, NULL);
+#line 269 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp0_ = self->priv->book;
+#line 269 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp1_ = _book_ref0 (_tmp0_);
+#line 269 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
result = _tmp1_;
+#line 269 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
return result;
+#line 1461 "book-view.c"
}
static gboolean book_view_configure_cb (BookView* self, GtkWidget* widget, GdkEventConfigure* event) {
gboolean result = FALSE;
+#line 272 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_return_val_if_fail (self != NULL, FALSE);
+#line 272 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_return_val_if_fail (widget != NULL, FALSE);
+#line 272 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_return_val_if_fail (event != NULL, FALSE);
+#line 274 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
self->priv->need_layout = TRUE;
+#line 275 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
result = FALSE;
+#line 275 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
return result;
+#line 1479 "book-view.c"
}
@@ -1012,15 +1493,23 @@ static void book_view_layout_into (BookView* self, gint width, gint height, gint
gdouble max_aspect;
gint spacing;
gint x_offset;
+#line 278 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_return_if_fail (self != NULL);
+#line 281 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
max_dpi = 0;
+#line 1501 "book-view.c"
{
gint i;
+#line 282 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
i = 0;
+#line 1506 "book-view.c"
{
gboolean _tmp0_;
+#line 282 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp0_ = TRUE;
+#line 282 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
while (TRUE) {
+#line 1513 "book-view.c"
gboolean _tmp1_;
gint _tmp3_;
Book* _tmp4_;
@@ -1032,46 +1521,82 @@ static void book_view_layout_into (BookView* self, gint width, gint height, gint
Page* _tmp9_;
gint _tmp10_ = 0;
gint _tmp11_;
+#line 282 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp1_ = _tmp0_;
+#line 282 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (!_tmp1_) {
+#line 1529 "book-view.c"
gint _tmp2_;
+#line 282 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp2_ = i;
+#line 282 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
i = _tmp2_ + 1;
+#line 1535 "book-view.c"
}
+#line 282 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp0_ = FALSE;
+#line 282 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp3_ = i;
+#line 282 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp4_ = self->priv->book;
+#line 282 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp5_ = book_get_n_pages (_tmp4_);
+#line 282 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (!(((guint) _tmp3_) < _tmp5_)) {
+#line 282 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
break;
+#line 1549 "book-view.c"
}
+#line 284 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp6_ = self->priv->book;
+#line 284 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp7_ = i;
+#line 284 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp8_ = book_get_page (_tmp6_, _tmp7_);
+#line 284 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
page = _tmp8_;
+#line 285 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp9_ = page;
+#line 285 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp10_ = page_get_dpi (_tmp9_);
+#line 285 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp11_ = max_dpi;
+#line 285 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (_tmp10_ > _tmp11_) {
+#line 1567 "book-view.c"
Page* _tmp12_;
gint _tmp13_ = 0;
+#line 286 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp12_ = page;
+#line 286 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp13_ = page_get_dpi (_tmp12_);
+#line 286 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
max_dpi = _tmp13_;
+#line 1576 "book-view.c"
}
+#line 282 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_page_unref0 (page);
+#line 1580 "book-view.c"
}
}
}
+#line 290 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
max_width = 0;
+#line 290 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
max_height = 0;
+#line 1588 "book-view.c"
{
gint i;
+#line 291 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
i = 0;
+#line 1593 "book-view.c"
{
gboolean _tmp14_;
+#line 291 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp14_ = TRUE;
+#line 291 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
while (TRUE) {
+#line 1600 "book-view.c"
gboolean _tmp15_;
gint _tmp17_;
Book* _tmp18_;
@@ -1098,73 +1623,137 @@ static void book_view_layout_into (BookView* self, gint width, gint height, gint
gint _tmp36_;
gint _tmp38_;
gint _tmp39_;
+#line 291 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp15_ = _tmp14_;
+#line 291 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (!_tmp15_) {
+#line 1631 "book-view.c"
gint _tmp16_;
+#line 291 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp16_ = i;
+#line 291 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
i = _tmp16_ + 1;
+#line 1637 "book-view.c"
}
+#line 291 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp14_ = FALSE;
+#line 291 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp17_ = i;
+#line 291 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp18_ = self->priv->book;
+#line 291 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp19_ = book_get_n_pages (_tmp18_);
+#line 291 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (!(((guint) _tmp17_) < _tmp19_)) {
+#line 291 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
break;
+#line 1651 "book-view.c"
}
+#line 293 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp20_ = self->priv->book;
+#line 293 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp21_ = i;
+#line 293 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp22_ = book_get_page (_tmp20_, _tmp21_);
+#line 293 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
page = _tmp22_;
+#line 294 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp23_ = page;
+#line 294 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp24_ = page_get_width (_tmp23_);
+#line 294 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
w = _tmp24_;
+#line 295 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp25_ = page;
+#line 295 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp26_ = page_get_height (_tmp25_);
+#line 295 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
h = _tmp26_;
+#line 298 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp27_ = w;
+#line 298 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp28_ = max_dpi;
+#line 298 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp29_ = page;
+#line 298 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp30_ = page_get_dpi (_tmp29_);
+#line 298 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
w = (gint) (((((gdouble) _tmp27_) * _tmp28_) / _tmp30_) + 0.5);
+#line 299 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp31_ = h;
+#line 299 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp32_ = max_dpi;
+#line 299 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp33_ = page;
+#line 299 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp34_ = page_get_dpi (_tmp33_);
+#line 299 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
h = (gint) (((((gdouble) _tmp31_) * _tmp32_) / _tmp34_) + 0.5);
+#line 301 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp35_ = w;
+#line 301 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp36_ = max_width;
+#line 301 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (_tmp35_ > _tmp36_) {
+#line 1699 "book-view.c"
gint _tmp37_;
+#line 302 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp37_ = w;
+#line 302 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
max_width = _tmp37_;
+#line 1705 "book-view.c"
}
+#line 303 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp38_ = h;
+#line 303 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp39_ = max_height;
+#line 303 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (_tmp38_ > _tmp39_) {
+#line 1713 "book-view.c"
gint _tmp40_;
+#line 304 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp40_ = h;
+#line 304 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
max_height = _tmp40_;
+#line 1719 "book-view.c"
}
+#line 291 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_page_unref0 (page);
+#line 1723 "book-view.c"
}
}
}
+#line 307 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp41_ = width;
+#line 307 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp42_ = height;
+#line 307 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
aspect = ((gdouble) _tmp41_) / _tmp42_;
+#line 308 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp43_ = max_width;
+#line 308 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp44_ = max_height;
+#line 308 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
max_aspect = ((gdouble) _tmp43_) / _tmp44_;
+#line 311 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
spacing = 12;
+#line 312 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_vala_book_width = 0;
+#line 313 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_vala_book_height = 0;
+#line 1745 "book-view.c"
{
gint i;
+#line 314 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
i = 0;
+#line 1750 "book-view.c"
{
gboolean _tmp45_;
+#line 314 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp45_ = TRUE;
+#line 314 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
while (TRUE) {
+#line 1757 "book-view.c"
gboolean _tmp46_;
gint _tmp48_;
Book* _tmp49_;
@@ -1186,28 +1775,51 @@ static void book_view_layout_into (BookView* self, gint width, gint height, gint
PageView* _tmp81_;
gint _tmp82_ = 0;
gint _tmp83_;
+#line 314 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp46_ = _tmp45_;
+#line 314 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (!_tmp46_) {
+#line 1783 "book-view.c"
gint _tmp47_;
+#line 314 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp47_ = i;
+#line 314 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
i = _tmp47_ + 1;
+#line 1789 "book-view.c"
}
+#line 314 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp45_ = FALSE;
+#line 314 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp48_ = i;
+#line 314 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp49_ = self->priv->book;
+#line 314 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp50_ = book_get_n_pages (_tmp49_);
+#line 314 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (!(((guint) _tmp48_) < _tmp50_)) {
+#line 314 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
break;
+#line 1803 "book-view.c"
}
+#line 316 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp51_ = i;
+#line 316 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp52_ = book_view_get_nth_page (self, _tmp51_);
+#line 316 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
page = _tmp52_;
+#line 317 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp53_ = page;
+#line 317 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp54_ = page_view_get_page (_tmp53_);
+#line 317 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
p = _tmp54_;
+#line 320 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp55_ = max_aspect;
+#line 320 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp56_ = aspect;
+#line 320 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (_tmp55_ > _tmp56_) {
+#line 1823 "book-view.c"
Page* _tmp57_;
gint _tmp58_ = 0;
gint _tmp59_;
@@ -1218,17 +1830,29 @@ static void book_view_layout_into (BookView* self, gint width, gint height, gint
gint w;
PageView* _tmp64_;
gint _tmp65_;
+#line 323 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp57_ = p;
+#line 323 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp58_ = page_get_width (_tmp57_);
+#line 323 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp59_ = max_dpi;
+#line 323 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp60_ = width;
+#line 323 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp61_ = p;
+#line 323 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp62_ = page_get_dpi (_tmp61_);
+#line 323 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp63_ = max_width;
+#line 323 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
w = (gint) (((((gdouble) _tmp58_) * _tmp59_) * _tmp60_) / (_tmp62_ * _tmp63_));
+#line 324 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp64_ = page;
+#line 324 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp65_ = w;
+#line 324 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
page_view_set_width (_tmp64_, _tmp65_);
+#line 1856 "book-view.c"
} else {
Page* _tmp66_;
gint _tmp67_ = 0;
@@ -1240,53 +1864,96 @@ static void book_view_layout_into (BookView* self, gint width, gint height, gint
gint h;
PageView* _tmp73_;
gint _tmp74_;
+#line 329 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp66_ = p;
+#line 329 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp67_ = page_get_height (_tmp66_);
+#line 329 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp68_ = max_dpi;
+#line 329 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp69_ = height;
+#line 329 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp70_ = p;
+#line 329 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp71_ = page_get_dpi (_tmp70_);
+#line 329 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp72_ = max_height;
+#line 329 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
h = (gint) (((((gdouble) _tmp67_) * _tmp68_) * _tmp69_) / (_tmp71_ * _tmp72_));
+#line 330 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp73_ = page;
+#line 330 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp74_ = h;
+#line 330 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
page_view_set_height (_tmp73_, _tmp74_);
+#line 1890 "book-view.c"
}
+#line 333 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp75_ = page;
+#line 333 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp76_ = page_view_get_height (_tmp75_);
+#line 333 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
h = _tmp76_;
+#line 334 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp77_ = h;
+#line 334 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp78_ = _vala_book_height;
+#line 334 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (_tmp77_ > _tmp78_) {
+#line 1904 "book-view.c"
gint _tmp79_;
+#line 335 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp79_ = h;
+#line 335 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_vala_book_height = _tmp79_;
+#line 1910 "book-view.c"
}
+#line 336 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp80_ = _vala_book_width;
+#line 336 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp81_ = page;
+#line 336 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp82_ = page_view_get_width (_tmp81_);
+#line 336 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_vala_book_width = _tmp80_ + _tmp82_;
+#line 337 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp83_ = i;
+#line 337 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (_tmp83_ != 0) {
+#line 1924 "book-view.c"
gint _tmp84_;
gint _tmp85_;
+#line 338 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp84_ = _vala_book_width;
+#line 338 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp85_ = spacing;
+#line 338 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_vala_book_width = _tmp84_ + _tmp85_;
+#line 1933 "book-view.c"
}
+#line 314 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_page_unref0 (p);
+#line 314 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_page_view_unref0 (page);
+#line 1939 "book-view.c"
}
}
}
+#line 341 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
x_offset = 0;
+#line 1945 "book-view.c"
{
gint i;
+#line 342 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
i = 0;
+#line 1950 "book-view.c"
{
gboolean _tmp86_;
+#line 342 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp86_ = TRUE;
+#line 342 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
while (TRUE) {
+#line 1957 "book-view.c"
gboolean _tmp87_;
gint _tmp89_;
Book* _tmp90_;
@@ -1304,44 +1971,81 @@ static void book_view_layout_into (BookView* self, gint width, gint height, gint
gint _tmp101_;
PageView* _tmp102_;
gint _tmp103_ = 0;
+#line 342 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp87_ = _tmp86_;
+#line 342 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (!_tmp87_) {
+#line 1979 "book-view.c"
gint _tmp88_;
+#line 342 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp88_ = i;
+#line 342 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
i = _tmp88_ + 1;
+#line 1985 "book-view.c"
}
+#line 342 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp86_ = FALSE;
+#line 342 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp89_ = i;
+#line 342 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp90_ = self->priv->book;
+#line 342 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp91_ = book_get_n_pages (_tmp90_);
+#line 342 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (!(((guint) _tmp89_) < _tmp91_)) {
+#line 342 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
break;
+#line 1999 "book-view.c"
}
+#line 344 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp92_ = i;
+#line 344 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp93_ = book_view_get_nth_page (self, _tmp92_);
+#line 344 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
page = _tmp93_;
+#line 347 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp94_ = page;
+#line 347 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp95_ = x_offset;
+#line 347 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
page_view_set_x_offset (_tmp94_, _tmp95_);
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp96_ = x_offset;
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp97_ = page;
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp98_ = page_view_get_width (_tmp97_);
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp99_ = spacing;
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
x_offset = _tmp96_ + (_tmp98_ + _tmp99_);
+#line 351 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp100_ = page;
+#line 351 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp101_ = height;
+#line 351 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp102_ = page;
+#line 351 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp103_ = page_view_get_height (_tmp102_);
+#line 351 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
page_view_set_y_offset (_tmp100_, (_tmp101_ - _tmp103_) / 2);
+#line 342 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_page_view_unref0 (page);
+#line 2035 "book-view.c"
}
}
}
+#line 278 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (book_width) {
+#line 278 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
*book_width = _vala_book_width;
+#line 2043 "book-view.c"
}
+#line 278 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (book_height) {
+#line 278 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
*book_height = _vala_book_height;
+#line 2049 "book-view.c"
}
}
@@ -1377,43 +2081,81 @@ static void book_view_layout (BookView* self) {
GtkAllocation _tmp20_;
gint _tmp21_;
gboolean _tmp54_;
+#line 355 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_return_if_fail (self != NULL);
+#line 357 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp0_ = self->priv->need_layout;
+#line 357 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (!_tmp0_) {
+#line 358 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
return;
+#line 2093 "book-view.c"
}
+#line 360 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
self->priv->laying_out = TRUE;
+#line 363 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp1_ = self->priv->drawing_area;
+#line 363 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
gtk_widget_get_allocation (_tmp1_, &_tmp2_);
+#line 363 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
allocation = _tmp2_;
+#line 365 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
gtk_widget_get_allocation ((GtkWidget*) self, &_tmp3_);
+#line 365 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
box_allocation = _tmp3_;
+#line 368 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
right_aligned = TRUE;
+#line 369 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp4_ = self->priv->adjustment;
+#line 369 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp5_ = gtk_adjustment_get_value (_tmp4_);
+#line 369 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp6_ = self->priv->adjustment;
+#line 369 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp7_ = gtk_adjustment_get_upper (_tmp6_);
+#line 369 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp8_ = self->priv->adjustment;
+#line 369 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp9_ = gtk_adjustment_get_page_size (_tmp8_);
+#line 369 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (_tmp5_ < (_tmp7_ - _tmp9_)) {
+#line 370 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
right_aligned = FALSE;
+#line 2125 "book-view.c"
}
+#line 373 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp10_ = allocation;
+#line 373 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp11_ = _tmp10_.width;
+#line 373 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
width = (gint) _tmp11_;
+#line 374 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp12_ = box_allocation;
+#line 374 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp13_ = _tmp12_.height;
+#line 374 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp14_ = gtk_container_get_border_width ((GtkContainer*) self);
+#line 374 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
height = (gint) (_tmp13_ - (_tmp14_ * 2));
+#line 376 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp15_ = width;
+#line 376 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp16_ = height;
+#line 376 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
book_view_layout_into (self, _tmp15_, _tmp16_, &_tmp17_, &_tmp18_);
+#line 376 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
book_width = _tmp17_;
+#line 376 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
book_height = _tmp18_;
+#line 379 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp19_ = book_width;
+#line 379 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp20_ = allocation;
+#line 379 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp21_ = _tmp20_.width;
+#line 379 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (_tmp19_ > _tmp21_) {
+#line 2159 "book-view.c"
GtkAllocation _tmp22_;
gint _tmp23_;
gint _tmp24_;
@@ -1434,45 +2176,83 @@ static void book_view_layout (BookView* self) {
gboolean _tmp38_;
gboolean _tmp41_;
GtkScrollbar* _tmp43_;
+#line 382 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp22_ = allocation;
+#line 382 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp23_ = _tmp22_.height;
+#line 382 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
height = _tmp23_;
+#line 383 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp24_ = width;
+#line 383 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp25_ = height;
+#line 383 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
book_view_layout_into (self, _tmp24_, _tmp25_, &_tmp26_, &_tmp27_);
+#line 383 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
book_width = _tmp26_;
+#line 383 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
book_height = _tmp27_;
+#line 386 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp28_ = self->priv->adjustment;
+#line 386 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
gtk_adjustment_set_lower (_tmp28_, (gdouble) 0);
+#line 387 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp29_ = self->priv->adjustment;
+#line 387 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp30_ = book_width;
+#line 387 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
gtk_adjustment_set_upper (_tmp29_, (gdouble) _tmp30_);
+#line 388 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp31_ = self->priv->adjustment;
+#line 388 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp32_ = allocation;
+#line 388 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp33_ = _tmp32_.width;
+#line 388 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
gtk_adjustment_set_page_size (_tmp31_, (gdouble) _tmp33_);
+#line 391 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp34_ = book_width;
+#line 391 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp35_ = allocation;
+#line 391 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp36_ = _tmp35_.width;
+#line 391 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
max_offset = _tmp34_ - _tmp36_;
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp38_ = right_aligned;
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (_tmp38_) {
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp37_ = TRUE;
+#line 2228 "book-view.c"
} else {
gint _tmp39_ = 0;
gint _tmp40_;
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp39_ = book_view_get_x_offset (self);
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp40_ = max_offset;
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp37_ = _tmp39_ > _tmp40_;
+#line 2238 "book-view.c"
}
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp41_ = _tmp37_;
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (_tmp41_) {
+#line 2244 "book-view.c"
gint _tmp42_;
+#line 393 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp42_ = max_offset;
+#line 393 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
book_view_set_x_offset (self, _tmp42_);
+#line 2250 "book-view.c"
}
+#line 395 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp43_ = self->priv->scroll;
+#line 395 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
gtk_widget_show ((GtkWidget*) _tmp43_);
+#line 2256 "book-view.c"
} else {
GtkScrollbar* _tmp44_;
gint _tmp45_;
@@ -1485,32 +2265,59 @@ static void book_view_layout (BookView* self) {
gint _tmp51_;
GtkAdjustment* _tmp52_;
gint _tmp53_;
+#line 399 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp44_ = self->priv->scroll;
+#line 399 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
gtk_widget_hide ((GtkWidget*) _tmp44_);
+#line 400 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp45_ = book_width;
+#line 400 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp46_ = allocation;
+#line 400 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp47_ = _tmp46_.width;
+#line 400 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
offset = (_tmp45_ - _tmp47_) / 2;
+#line 401 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp48_ = self->priv->adjustment;
+#line 401 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp49_ = offset;
+#line 401 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
gtk_adjustment_set_lower (_tmp48_, (gdouble) _tmp49_);
+#line 402 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp50_ = self->priv->adjustment;
+#line 402 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp51_ = offset;
+#line 402 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
gtk_adjustment_set_upper (_tmp50_, (gdouble) _tmp51_);
+#line 403 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp52_ = self->priv->adjustment;
+#line 403 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
gtk_adjustment_set_page_size (_tmp52_, (gdouble) 0);
+#line 404 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp53_ = offset;
+#line 404 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
book_view_set_x_offset (self, _tmp53_);
+#line 2301 "book-view.c"
}
+#line 407 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp54_ = self->priv->show_selected_page;
+#line 407 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (_tmp54_) {
+#line 2307 "book-view.c"
PageView* _tmp55_;
+#line 408 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp55_ = self->priv->selected_page;
+#line 408 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
book_view_show_page_view (self, _tmp55_);
+#line 2313 "book-view.c"
}
+#line 410 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
self->priv->need_layout = FALSE;
+#line 411 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
self->priv->show_selected_page = FALSE;
+#line 412 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
self->priv->laying_out = FALSE;
+#line 2321 "book-view.c"
}
@@ -1527,29 +2334,51 @@ static gboolean book_view_draw_cb (BookView* self, GtkWidget* widget, cairo_t* c
gdouble _tmp4_ = 0.0;
gdouble _tmp5_ = 0.0;
gdouble _tmp6_ = 0.0;
+#line 415 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_return_val_if_fail (self != NULL, FALSE);
+#line 415 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_return_val_if_fail (widget != NULL, FALSE);
+#line 415 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_return_val_if_fail (context != NULL, FALSE);
+#line 417 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp0_ = self->priv->book;
+#line 417 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp1_ = book_get_n_pages (_tmp0_);
+#line 417 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (_tmp1_ == ((guint) 0)) {
+#line 418 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
result = FALSE;
+#line 418 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
return result;
+#line 2354 "book-view.c"
}
+#line 420 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
book_view_layout (self);
+#line 423 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp2_ = context;
+#line 423 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
cairo_clip_extents (_tmp2_, &_tmp3_, &_tmp4_, &_tmp5_, &_tmp6_);
+#line 423 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
left = _tmp3_;
+#line 423 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
top = _tmp4_;
+#line 423 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
right = _tmp5_;
+#line 423 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
bottom = _tmp6_;
+#line 2370 "book-view.c"
{
gint i;
+#line 426 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
i = 0;
+#line 2375 "book-view.c"
{
gboolean _tmp7_;
+#line 426 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp7_ = TRUE;
+#line 426 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
while (TRUE) {
+#line 2382 "book-view.c"
gboolean _tmp8_;
gint _tmp10_;
Book* _tmp11_;
@@ -1579,61 +2408,115 @@ static gboolean book_view_draw_cb (BookView* self, GtkWidget* widget, cairo_t* c
cairo_t* _tmp34_;
PageView* _tmp35_;
gboolean _tmp36_ = FALSE;
+#line 426 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp8_ = _tmp7_;
+#line 426 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (!_tmp8_) {
+#line 2416 "book-view.c"
gint _tmp9_;
+#line 426 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp9_ = i;
+#line 426 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
i = _tmp9_ + 1;
+#line 2422 "book-view.c"
}
+#line 426 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp7_ = FALSE;
+#line 426 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp10_ = i;
+#line 426 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp11_ = self->priv->book;
+#line 426 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp12_ = book_get_n_pages (_tmp11_);
+#line 426 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (!(((guint) _tmp10_) < _tmp12_)) {
+#line 426 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
break;
+#line 2436 "book-view.c"
}
+#line 428 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp13_ = i;
+#line 428 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp14_ = book_view_get_nth_page (self, _tmp13_);
+#line 428 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
page = _tmp14_;
+#line 429 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp15_ = page;
+#line 429 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp16_ = page_view_get_x_offset (_tmp15_);
+#line 429 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp17_ = book_view_get_x_offset (self);
+#line 429 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
left_edge = _tmp16_ - _tmp17_;
+#line 430 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp18_ = page;
+#line 430 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp19_ = page_view_get_x_offset (_tmp18_);
+#line 430 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp20_ = page;
+#line 430 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp21_ = page_view_get_width (_tmp20_);
+#line 430 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp22_ = book_view_get_x_offset (self);
+#line 430 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
right_edge = (_tmp19_ + _tmp21_) - _tmp22_;
+#line 433 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp24_ = right_edge;
+#line 433 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp25_ = left;
+#line 433 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (((gdouble) _tmp24_) < _tmp25_) {
+#line 433 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp23_ = TRUE;
+#line 2472 "book-view.c"
} else {
gint _tmp26_;
gdouble _tmp27_;
+#line 433 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp26_ = left_edge;
+#line 433 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp27_ = right;
+#line 433 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp23_ = ((gdouble) _tmp26_) > _tmp27_;
+#line 2482 "book-view.c"
}
+#line 433 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp28_ = _tmp23_;
+#line 433 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (_tmp28_) {
+#line 434 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_page_view_unref0 (page);
+#line 434 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
continue;
+#line 2492 "book-view.c"
}
+#line 436 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp29_ = context;
+#line 436 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
cairo_save (_tmp29_);
+#line 437 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp30_ = context;
+#line 437 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp31_ = book_view_get_x_offset (self);
+#line 437 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
cairo_translate (_tmp30_, (gdouble) (-_tmp31_), (gdouble) 0);
+#line 438 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp32_ = page;
+#line 438 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp33_ = context;
+#line 438 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
page_view_render (_tmp32_, _tmp33_);
+#line 439 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp34_ = context;
+#line 439 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
cairo_restore (_tmp34_);
+#line 441 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp35_ = page;
+#line 441 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp36_ = page_view_get_selected (_tmp35_);
+#line 441 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (_tmp36_) {
+#line 2520 "book-view.c"
GtkWidget* _tmp37_;
GtkStyleContext* _tmp38_ = NULL;
cairo_t* _tmp39_;
@@ -1646,26 +2529,45 @@ static gboolean book_view_draw_cb (BookView* self, GtkWidget* widget, cairo_t* c
gint _tmp46_ = 0;
PageView* _tmp47_;
gint _tmp48_ = 0;
+#line 442 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp37_ = self->priv->drawing_area;
+#line 442 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp38_ = gtk_widget_get_style_context (_tmp37_);
+#line 442 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp39_ = context;
+#line 442 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp40_ = page;
+#line 442 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp41_ = page_view_get_x_offset (_tmp40_);
+#line 442 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp42_ = book_view_get_x_offset (self);
+#line 442 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp43_ = page;
+#line 442 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp44_ = page_view_get_y_offset (_tmp43_);
+#line 442 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp45_ = page;
+#line 442 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp46_ = page_view_get_width (_tmp45_);
+#line 442 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp47_ = page;
+#line 442 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp48_ = page_view_get_height (_tmp47_);
+#line 442 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
gtk_render_focus (_tmp38_, _tmp39_, (gdouble) (_tmp41_ - _tmp42_), (gdouble) _tmp44_, (gdouble) _tmp46_, (gdouble) _tmp48_);
+#line 2559 "book-view.c"
}
+#line 426 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_page_view_unref0 (page);
+#line 2563 "book-view.c"
}
}
}
+#line 449 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
result = FALSE;
+#line 449 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
return result;
+#line 2571 "book-view.c"
}
@@ -1674,17 +2576,27 @@ static PageView* book_view_get_page_at (BookView* self, gint x, gint y, gint* x_
gint _vala_y_ = 0;
PageView* result = NULL;
gint _tmp0_;
+#line 452 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_return_val_if_fail (self != NULL, NULL);
+#line 454 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_vala_y_ = 0;
+#line 454 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp0_ = _vala_y_;
+#line 454 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_vala_x_ = _tmp0_;
+#line 2588 "book-view.c"
{
gint i;
+#line 455 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
i = 0;
+#line 2593 "book-view.c"
{
gboolean _tmp1_;
+#line 455 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp1_ = TRUE;
+#line 455 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
while (TRUE) {
+#line 2600 "book-view.c"
gboolean _tmp2_;
gint _tmp4_;
Book* _tmp5_;
@@ -1714,100 +2626,187 @@ static PageView* book_view_get_page_at (BookView* self, gint x, gint y, gint* x_
gboolean _tmp26_;
gboolean _tmp29_;
gboolean _tmp32_;
+#line 455 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp2_ = _tmp1_;
+#line 455 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (!_tmp2_) {
+#line 2634 "book-view.c"
gint _tmp3_;
+#line 455 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp3_ = i;
+#line 455 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
i = _tmp3_ + 1;
+#line 2640 "book-view.c"
}
+#line 455 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp1_ = FALSE;
+#line 455 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp4_ = i;
+#line 455 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp5_ = self->priv->book;
+#line 455 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp6_ = book_get_n_pages (_tmp5_);
+#line 455 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (!(((guint) _tmp4_) < _tmp6_)) {
+#line 455 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
break;
+#line 2654 "book-view.c"
}
+#line 457 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp7_ = i;
+#line 457 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp8_ = book_view_get_nth_page (self, _tmp7_);
+#line 457 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
page = _tmp8_;
+#line 458 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp9_ = page;
+#line 458 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp10_ = page_view_get_x_offset (_tmp9_);
+#line 458 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
left = _tmp10_;
+#line 459 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp11_ = left;
+#line 459 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp12_ = page;
+#line 459 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp13_ = page_view_get_width (_tmp12_);
+#line 459 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
right = _tmp11_ + _tmp13_;
+#line 460 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp14_ = page;
+#line 460 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp15_ = page_view_get_y_offset (_tmp14_);
+#line 460 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
top = _tmp15_;
+#line 461 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp16_ = top;
+#line 461 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp17_ = page;
+#line 461 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp18_ = page_view_get_height (_tmp17_);
+#line 461 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
bottom = _tmp16_ + _tmp18_;
+#line 462 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp22_ = x;
+#line 462 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp23_ = left;
+#line 462 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (_tmp22_ >= _tmp23_) {
+#line 2696 "book-view.c"
gint _tmp24_;
gint _tmp25_;
+#line 462 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp24_ = x;
+#line 462 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp25_ = right;
+#line 462 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp21_ = _tmp24_ <= _tmp25_;
+#line 2705 "book-view.c"
} else {
+#line 462 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp21_ = FALSE;
+#line 2709 "book-view.c"
}
+#line 462 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp26_ = _tmp21_;
+#line 462 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (_tmp26_) {
+#line 2715 "book-view.c"
gint _tmp27_;
gint _tmp28_;
+#line 462 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp27_ = y;
+#line 462 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp28_ = top;
+#line 462 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp20_ = _tmp27_ >= _tmp28_;
+#line 2724 "book-view.c"
} else {
+#line 462 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp20_ = FALSE;
+#line 2728 "book-view.c"
}
+#line 462 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp29_ = _tmp20_;
+#line 462 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (_tmp29_) {
+#line 2734 "book-view.c"
gint _tmp30_;
gint _tmp31_;
+#line 462 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp30_ = y;
+#line 462 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp31_ = bottom;
+#line 462 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp19_ = _tmp30_ <= _tmp31_;
+#line 2743 "book-view.c"
} else {
+#line 462 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp19_ = FALSE;
+#line 2747 "book-view.c"
}
+#line 462 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp32_ = _tmp19_;
+#line 462 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (_tmp32_) {
+#line 2753 "book-view.c"
gint _tmp33_;
gint _tmp34_;
gint _tmp35_;
gint _tmp36_;
+#line 464 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp33_ = x;
+#line 464 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp34_ = left;
+#line 464 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_vala_x_ = _tmp33_ - _tmp34_;
+#line 465 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp35_ = y;
+#line 465 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp36_ = top;
+#line 465 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_vala_y_ = _tmp35_ - _tmp36_;
+#line 466 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
result = page;
+#line 466 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (x_) {
+#line 466 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
*x_ = _vala_x_;
+#line 2776 "book-view.c"
}
+#line 466 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (y_) {
+#line 466 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
*y_ = _vala_y_;
+#line 2782 "book-view.c"
}
+#line 466 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
return result;
+#line 2786 "book-view.c"
}
+#line 455 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_page_view_unref0 (page);
+#line 2790 "book-view.c"
}
}
}
+#line 470 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
result = NULL;
+#line 470 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (x_) {
+#line 470 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
*x_ = _vala_x_;
+#line 2800 "book-view.c"
}
+#line 470 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (y_) {
+#line 470 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
*y_ = _vala_y_;
+#line 2806 "book-view.c"
}
+#line 470 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
return result;
+#line 2810 "book-view.c"
}
@@ -1823,17 +2822,29 @@ static gboolean book_view_button_cb (BookView* self, GtkWidget* widget, GdkEvent
guint _tmp14_;
GdkEventButton _tmp29_;
guint _tmp30_;
+#line 473 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_return_val_if_fail (self != NULL, FALSE);
+#line 473 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_return_val_if_fail (widget != NULL, FALSE);
+#line 473 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_return_val_if_fail (event != NULL, FALSE);
+#line 475 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
book_view_layout (self);
+#line 477 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp0_ = self->priv->drawing_area;
+#line 477 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
gtk_widget_grab_focus (_tmp0_);
+#line 479 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
x = 0;
+#line 479 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
y = 0;
+#line 480 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp1_ = *event;
+#line 480 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp2_ = _tmp1_.type;
+#line 480 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (_tmp2_ == GDK_BUTTON_PRESS) {
+#line 2848 "book-view.c"
GdkEventButton _tmp3_;
gdouble _tmp4_;
gint _tmp5_ = 0;
@@ -1843,74 +2854,130 @@ static gboolean book_view_button_cb (BookView* self, GtkWidget* widget, GdkEvent
gint _tmp9_ = 0;
PageView* _tmp10_ = NULL;
PageView* _tmp11_;
+#line 481 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp3_ = *event;
+#line 481 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp4_ = _tmp3_.x;
+#line 481 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp5_ = book_view_get_x_offset (self);
+#line 481 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp6_ = *event;
+#line 481 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp7_ = _tmp6_.y;
+#line 481 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp10_ = book_view_get_page_at (self, (gint) (_tmp4_ + _tmp5_), (gint) _tmp7_, &_tmp8_, &_tmp9_);
+#line 481 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
x = _tmp8_;
+#line 481 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
y = _tmp9_;
+#line 481 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp11_ = _tmp10_;
+#line 481 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
book_view_select_page_view (self, _tmp11_);
+#line 481 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_page_view_unref0 (_tmp11_);
+#line 2880 "book-view.c"
}
+#line 483 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp12_ = self->priv->selected_page;
+#line 483 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (_tmp12_ == NULL) {
+#line 484 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
result = FALSE;
+#line 484 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
return result;
+#line 2890 "book-view.c"
}
+#line 487 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp13_ = *event;
+#line 487 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp14_ = _tmp13_.button;
+#line 487 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (_tmp14_ == ((guint) 1)) {
+#line 2898 "book-view.c"
GdkEventButton _tmp15_;
GdkEventType _tmp16_;
+#line 489 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp15_ = *event;
+#line 489 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp16_ = _tmp15_.type;
+#line 489 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (_tmp16_ == GDK_BUTTON_PRESS) {
+#line 2907 "book-view.c"
PageView* _tmp17_;
gint _tmp18_;
gint _tmp19_;
+#line 490 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp17_ = self->priv->selected_page;
+#line 490 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp18_ = x;
+#line 490 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp19_ = y;
+#line 490 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
page_view_button_press (_tmp17_, _tmp18_, _tmp19_);
+#line 2919 "book-view.c"
} else {
GdkEventButton _tmp20_;
GdkEventType _tmp21_;
+#line 491 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp20_ = *event;
+#line 491 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp21_ = _tmp20_.type;
+#line 491 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (_tmp21_ == GDK_BUTTON_RELEASE) {
+#line 2929 "book-view.c"
PageView* _tmp22_;
gint _tmp23_;
gint _tmp24_;
+#line 492 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp22_ = self->priv->selected_page;
+#line 492 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp23_ = x;
+#line 492 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp24_ = y;
+#line 492 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
page_view_button_release (_tmp22_, _tmp23_, _tmp24_);
+#line 2941 "book-view.c"
} else {
GdkEventButton _tmp25_;
GdkEventType _tmp26_;
+#line 493 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp25_ = *event;
+#line 493 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp26_ = _tmp25_.type;
+#line 493 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (_tmp26_ == GDK_2BUTTON_PRESS) {
+#line 2951 "book-view.c"
Page* _tmp27_ = NULL;
Page* _tmp28_;
+#line 494 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp27_ = book_view_get_selected (self);
+#line 494 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp28_ = _tmp27_;
+#line 494 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_signal_emit_by_name (self, "show-page", _tmp28_);
+#line 494 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_page_unref0 (_tmp28_);
+#line 2962 "book-view.c"
}
}
}
}
+#line 498 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp29_ = *event;
+#line 498 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp30_ = _tmp29_.button;
+#line 498 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (_tmp30_ == ((guint) 3)) {
+#line 499 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_signal_emit_by_name (self, "show-menu");
+#line 2975 "book-view.c"
}
+#line 501 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
result = FALSE;
+#line 501 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
return result;
+#line 2981 "book-view.c"
}
@@ -1924,24 +2991,43 @@ static void book_view_set_cursor (BookView* self, GdkCursorType cursor) {
GtkWidget* _tmp5_;
GdkWindow* _tmp6_ = NULL;
GdkCursor* _tmp7_;
+#line 504 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_return_if_fail (self != NULL);
+#line 508 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp0_ = self->priv->cursor;
+#line 508 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp1_ = cursor;
+#line 508 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (_tmp0_ == _tmp1_) {
+#line 509 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_g_object_unref0 (c);
+#line 509 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
return;
+#line 3007 "book-view.c"
}
+#line 510 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp2_ = cursor;
+#line 510 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
self->priv->cursor = _tmp2_;
+#line 512 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp3_ = cursor;
+#line 512 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp4_ = gdk_cursor_new (_tmp3_);
+#line 512 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_g_object_unref0 (c);
+#line 512 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
c = _tmp4_;
+#line 513 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp5_ = self->priv->drawing_area;
+#line 513 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp6_ = gtk_widget_get_window (_tmp5_);
+#line 513 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp7_ = c;
+#line 513 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
gdk_window_set_cursor (_tmp6_, _tmp7_);
+#line 504 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_g_object_unref0 (c);
+#line 3031 "book-view.c"
}
@@ -1952,22 +3038,38 @@ static gboolean book_view_motion_cb (BookView* self, GtkWidget* widget, GdkEvent
PageView* _tmp1_;
gboolean _tmp4_;
GdkCursorType _tmp33_;
+#line 516 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_return_val_if_fail (self != NULL, FALSE);
+#line 516 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_return_val_if_fail (widget != NULL, FALSE);
+#line 516 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_return_val_if_fail (event != NULL, FALSE);
+#line 518 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
cursor = GDK_ARROW;
+#line 521 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp1_ = self->priv->selected_page;
+#line 521 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (_tmp1_ != NULL) {
+#line 3054 "book-view.c"
GdkEventMotion _tmp2_;
GdkModifierType _tmp3_;
+#line 521 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp2_ = *event;
+#line 521 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp3_ = _tmp2_.state;
+#line 521 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp0_ = (_tmp3_ & GDK_BUTTON1_MASK) != 0;
+#line 3063 "book-view.c"
} else {
+#line 521 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp0_ = FALSE;
+#line 3067 "book-view.c"
}
+#line 521 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp4_ = _tmp0_;
+#line 521 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (_tmp4_) {
+#line 3073 "book-view.c"
GdkEventMotion _tmp5_;
gdouble _tmp6_;
gint _tmp7_ = 0;
@@ -1984,24 +3086,43 @@ static gboolean book_view_motion_cb (BookView* self, GtkWidget* widget, GdkEvent
gint _tmp16_;
PageView* _tmp17_;
GdkCursorType _tmp18_ = 0;
+#line 523 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp5_ = *event;
+#line 523 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp6_ = _tmp5_.x;
+#line 523 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp7_ = book_view_get_x_offset (self);
+#line 523 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp8_ = self->priv->selected_page;
+#line 523 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp9_ = page_view_get_x_offset (_tmp8_);
+#line 523 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
x = (gint) ((_tmp6_ + _tmp7_) - _tmp9_);
+#line 524 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp10_ = *event;
+#line 524 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp11_ = _tmp10_.y;
+#line 524 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp12_ = self->priv->selected_page;
+#line 524 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp13_ = page_view_get_y_offset (_tmp12_);
+#line 524 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
y = (gint) (_tmp11_ - _tmp13_);
+#line 525 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp14_ = self->priv->selected_page;
+#line 525 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp15_ = x;
+#line 525 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp16_ = y;
+#line 525 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
page_view_motion (_tmp14_, _tmp15_, _tmp16_);
+#line 526 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp17_ = self->priv->selected_page;
+#line 526 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp18_ = page_view_get_cursor (_tmp17_);
+#line 526 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
cursor = _tmp18_;
+#line 3126 "book-view.c"
} else {
gint x = 0;
gint y = 0;
@@ -2015,36 +3136,63 @@ static gboolean book_view_motion_cb (BookView* self, GtkWidget* widget, GdkEvent
PageView* _tmp26_ = NULL;
PageView* over_page;
PageView* _tmp27_;
+#line 531 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp19_ = *event;
+#line 531 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp20_ = _tmp19_.x;
+#line 531 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp21_ = book_view_get_x_offset (self);
+#line 531 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp22_ = *event;
+#line 531 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp23_ = _tmp22_.y;
+#line 531 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp26_ = book_view_get_page_at (self, (gint) (_tmp20_ + _tmp21_), (gint) _tmp23_, &_tmp24_, &_tmp25_);
+#line 531 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
x = _tmp24_;
+#line 531 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
y = _tmp25_;
+#line 531 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
over_page = _tmp26_;
+#line 532 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp27_ = over_page;
+#line 532 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (_tmp27_ != NULL) {
+#line 3162 "book-view.c"
PageView* _tmp28_;
gint _tmp29_;
gint _tmp30_;
PageView* _tmp31_;
GdkCursorType _tmp32_ = 0;
+#line 534 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp28_ = over_page;
+#line 534 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp29_ = x;
+#line 534 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp30_ = y;
+#line 534 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
page_view_motion (_tmp28_, _tmp29_, _tmp30_);
+#line 535 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp31_ = over_page;
+#line 535 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp32_ = page_view_get_cursor (_tmp31_);
+#line 535 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
cursor = _tmp32_;
+#line 3182 "book-view.c"
}
+#line 521 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_page_view_unref0 (over_page);
+#line 3186 "book-view.c"
}
+#line 539 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp33_ = cursor;
+#line 539 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
book_view_set_cursor (self, _tmp33_);
+#line 541 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
result = FALSE;
+#line 541 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
return result;
+#line 3196 "book-view.c"
}
@@ -2052,72 +3200,123 @@ static gboolean book_view_key_cb (BookView* self, GtkWidget* widget, GdkEventKey
gboolean result = FALSE;
GdkEventKey _tmp0_;
guint _tmp1_;
+#line 544 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_return_val_if_fail (self != NULL, FALSE);
+#line 544 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_return_val_if_fail (widget != NULL, FALSE);
+#line 544 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_return_val_if_fail (event != NULL, FALSE);
+#line 546 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp0_ = *event;
+#line 546 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp1_ = _tmp0_.keyval;
+#line 546 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
switch (_tmp1_) {
+#line 546 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
case 0xff50:
+#line 3218 "book-view.c"
{
Book* _tmp2_;
Page* _tmp3_ = NULL;
Page* _tmp4_;
+#line 549 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp2_ = self->priv->book;
+#line 549 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp3_ = book_get_page (_tmp2_, 0);
+#line 549 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp4_ = _tmp3_;
+#line 549 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
book_view_select_page (self, _tmp4_);
+#line 549 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_page_unref0 (_tmp4_);
+#line 550 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
result = TRUE;
+#line 550 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
return result;
+#line 3237 "book-view.c"
}
+#line 546 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
case 0xff51:
+#line 3241 "book-view.c"
{
PageView* _tmp5_;
PageView* _tmp6_ = NULL;
PageView* _tmp7_;
+#line 552 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp5_ = self->priv->selected_page;
+#line 552 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp6_ = book_view_get_prev_page (self, _tmp5_);
+#line 552 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp7_ = _tmp6_;
+#line 552 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
book_view_select_page_view (self, _tmp7_);
+#line 552 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_page_view_unref0 (_tmp7_);
+#line 553 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
result = TRUE;
+#line 553 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
return result;
+#line 3260 "book-view.c"
}
+#line 546 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
case 0xff53:
+#line 3264 "book-view.c"
{
PageView* _tmp8_;
PageView* _tmp9_ = NULL;
PageView* _tmp10_;
+#line 555 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp8_ = self->priv->selected_page;
+#line 555 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp9_ = book_view_get_next_page (self, _tmp8_);
+#line 555 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp10_ = _tmp9_;
+#line 555 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
book_view_select_page_view (self, _tmp10_);
+#line 555 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_page_view_unref0 (_tmp10_);
+#line 556 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
result = TRUE;
+#line 556 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
return result;
+#line 3283 "book-view.c"
}
+#line 546 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
case 0xFF57:
+#line 3287 "book-view.c"
{
Book* _tmp11_;
Book* _tmp12_;
guint _tmp13_ = 0U;
Page* _tmp14_ = NULL;
Page* _tmp15_;
+#line 558 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp11_ = self->priv->book;
+#line 558 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp12_ = self->priv->book;
+#line 558 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp13_ = book_get_n_pages (_tmp12_);
+#line 558 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp14_ = book_get_page (_tmp11_, ((gint) _tmp13_) - 1);
+#line 558 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp15_ = _tmp14_;
+#line 558 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
book_view_select_page (self, _tmp15_);
+#line 558 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_page_unref0 (_tmp15_);
+#line 559 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
result = TRUE;
+#line 559 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
return result;
+#line 3312 "book-view.c"
}
default:
{
+#line 562 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
result = FALSE;
+#line 562 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
return result;
+#line 3320 "book-view.c"
}
}
}
@@ -2126,32 +3325,50 @@ static gboolean book_view_key_cb (BookView* self, GtkWidget* widget, GdkEventKey
static gboolean book_view_focus_cb (BookView* self, GtkWidget* widget, GdkEventFocus* event) {
gboolean result = FALSE;
PageView* _tmp0_;
+#line 566 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_return_val_if_fail (self != NULL, FALSE);
+#line 566 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_return_val_if_fail (widget != NULL, FALSE);
+#line 566 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_return_val_if_fail (event != NULL, FALSE);
+#line 568 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp0_ = self->priv->selected_page;
+#line 568 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
book_view_set_selected_page (self, _tmp0_);
+#line 569 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
result = FALSE;
+#line 569 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
return result;
+#line 3343 "book-view.c"
}
static void book_view_scroll_cb (BookView* self, GtkAdjustment* adjustment) {
gboolean _tmp0_;
+#line 572 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_return_if_fail (self != NULL);
+#line 572 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_return_if_fail (adjustment != NULL);
+#line 574 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp0_ = self->priv->laying_out;
+#line 574 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (!_tmp0_) {
+#line 575 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
book_view_redraw (self);
+#line 3359 "book-view.c"
}
}
void book_view_redraw (BookView* self) {
GtkWidget* _tmp0_;
+#line 578 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_return_if_fail (self != NULL);
+#line 580 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp0_ = self->priv->drawing_area;
+#line 580 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
gtk_widget_queue_draw (_tmp0_);
+#line 3372 "book-view.c"
}
@@ -2161,26 +3378,45 @@ void book_view_select_page (BookView* self, Page* page) {
Page* _tmp2_;
gboolean _tmp3_;
Page* _tmp4_;
+#line 583 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_return_if_fail (self != NULL);
+#line 585 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp0_ = book_view_get_selected (self);
+#line 585 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp1_ = _tmp0_;
+#line 585 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp2_ = page;
+#line 585 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp3_ = _tmp1_ == _tmp2_;
+#line 585 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_page_unref0 (_tmp1_);
+#line 585 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (_tmp3_) {
+#line 586 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
return;
+#line 3398 "book-view.c"
}
+#line 588 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp4_ = page;
+#line 588 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (_tmp4_ != NULL) {
+#line 3404 "book-view.c"
GHashTable* _tmp5_;
Page* _tmp6_;
gconstpointer _tmp7_ = NULL;
+#line 589 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp5_ = self->priv->page_data;
+#line 589 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp6_ = page;
+#line 589 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp7_ = g_hash_table_lookup (_tmp5_, _tmp6_);
+#line 589 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
book_view_select_page_view (self, (PageView*) _tmp7_);
+#line 3416 "book-view.c"
} else {
+#line 591 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
book_view_select_page_view (self, NULL);
+#line 3420 "book-view.c"
}
}
@@ -2189,12 +3425,19 @@ void book_view_select_next_page (BookView* self) {
PageView* _tmp0_;
PageView* _tmp1_ = NULL;
PageView* _tmp2_;
+#line 594 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_return_if_fail (self != NULL);
+#line 596 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp0_ = self->priv->selected_page;
+#line 596 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp1_ = book_view_get_next_page (self, _tmp0_);
+#line 596 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp2_ = _tmp1_;
+#line 596 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
book_view_select_page_view (self, _tmp2_);
+#line 596 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_page_view_unref0 (_tmp2_);
+#line 3441 "book-view.c"
}
@@ -2202,30 +3445,49 @@ void book_view_select_prev_page (BookView* self) {
PageView* _tmp0_;
PageView* _tmp1_ = NULL;
PageView* _tmp2_;
+#line 599 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_return_if_fail (self != NULL);
+#line 601 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp0_ = self->priv->selected_page;
+#line 601 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp1_ = book_view_get_prev_page (self, _tmp0_);
+#line 601 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp2_ = _tmp1_;
+#line 601 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
book_view_select_page_view (self, _tmp2_);
+#line 601 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_page_view_unref0 (_tmp2_);
+#line 3461 "book-view.c"
}
Page* book_view_get_selected (BookView* self) {
Page* result = NULL;
PageView* _tmp0_;
+#line 604 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_return_val_if_fail (self != NULL, NULL);
+#line 606 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp0_ = self->priv->selected_page;
+#line 606 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (_tmp0_ != NULL) {
+#line 3474 "book-view.c"
PageView* _tmp1_;
Page* _tmp2_ = NULL;
+#line 607 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp1_ = self->priv->selected_page;
+#line 607 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp2_ = page_view_get_page (_tmp1_);
+#line 607 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
result = _tmp2_;
+#line 607 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
return result;
+#line 3485 "book-view.c"
} else {
+#line 609 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
result = NULL;
+#line 609 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
return result;
+#line 3491 "book-view.c"
}
}
@@ -2237,32 +3499,53 @@ static void g_cclosure_user_marshal_VOID__PAGE (GClosure * closure, GValue * ret
register gpointer data1;
register gpointer data2;
cc = (GCClosure *) closure;
+#line 15 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_return_if_fail (n_param_values == 2);
+#line 15 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
if (G_CCLOSURE_SWAP_DATA (closure)) {
+#line 15 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
data1 = closure->data;
+#line 15 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
data2 = param_values->data[0].v_pointer;
+#line 3511 "book-view.c"
} else {
+#line 15 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
data1 = param_values->data[0].v_pointer;
+#line 15 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
data2 = closure->data;
+#line 3517 "book-view.c"
}
+#line 15 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
callback = (GMarshalFunc_VOID__PAGE) (marshal_data ? marshal_data : cc->callback);
+#line 15 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
callback (data1, value_get_page (param_values + 1), data2);
+#line 3523 "book-view.c"
}
static void book_view_class_init (BookViewClass * klass) {
+#line 15 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
book_view_parent_class = g_type_class_peek_parent (klass);
+#line 15 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_type_class_add_private (klass, sizeof (BookViewPrivate));
+#line 15 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
G_OBJECT_CLASS (klass)->finalize = book_view_finalize;
+#line 15 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_signal_new ("page_selected", TYPE_BOOK_VIEW, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__PAGE, G_TYPE_NONE, 1, TYPE_PAGE);
+#line 15 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_signal_new ("show_page", TYPE_BOOK_VIEW, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__PAGE, G_TYPE_NONE, 1, TYPE_PAGE);
+#line 15 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_signal_new ("show_menu", TYPE_BOOK_VIEW, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
+#line 3540 "book-view.c"
}
static void book_view_instance_init (BookView * self) {
+#line 15 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
self->priv = BOOK_VIEW_GET_PRIVATE (self);
+#line 27 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
self->priv->selected_page = NULL;
+#line 3549 "book-view.c"
}
@@ -2294,53 +3577,101 @@ static void book_view_finalize (GObject* obj) {
guint _tmp23_ = 0U;
GtkAdjustment* _tmp24_;
guint _tmp25_ = 0U;
+#line 15 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_BOOK_VIEW, BookView);
+#line 90 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp0_ = self->priv->book;
+#line 90 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_signal_parse_name ("page-added", TYPE_BOOK, &_tmp1_, NULL, FALSE);
+#line 90 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _book_view_add_cb_book_page_added, self);
+#line 91 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp2_ = self->priv->book;
+#line 91 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_signal_parse_name ("page-removed", TYPE_BOOK, &_tmp3_, NULL, FALSE);
+#line 91 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _book_view_remove_cb_book_page_removed, self);
+#line 92 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp4_ = self->priv->book;
+#line 92 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_signal_parse_name ("reordered", TYPE_BOOK, &_tmp5_, NULL, FALSE);
+#line 92 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_signal_handlers_disconnect_matched (_tmp4_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _book_view_reorder_cb_book_reordered, self);
+#line 93 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp6_ = self->priv->book;
+#line 93 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_signal_parse_name ("cleared", TYPE_BOOK, &_tmp7_, NULL, FALSE);
+#line 93 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_signal_handlers_disconnect_matched (_tmp6_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp7_, 0, NULL, (GCallback) _book_view_clear_cb_book_cleared, self);
+#line 94 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp8_ = self->priv->drawing_area;
+#line 94 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_signal_parse_name ("configure-event", GTK_TYPE_WIDGET, &_tmp9_, NULL, FALSE);
+#line 94 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_signal_handlers_disconnect_matched (_tmp8_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp9_, 0, NULL, (GCallback) _book_view_configure_cb_gtk_widget_configure_event, self);
+#line 95 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp10_ = self->priv->drawing_area;
+#line 95 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_signal_parse_name ("draw", GTK_TYPE_WIDGET, &_tmp11_, NULL, FALSE);
+#line 95 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_signal_handlers_disconnect_matched (_tmp10_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp11_, 0, NULL, (GCallback) _book_view_draw_cb_gtk_widget_draw, self);
+#line 96 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp12_ = self->priv->drawing_area;
+#line 96 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_signal_parse_name ("motion-notify-event", GTK_TYPE_WIDGET, &_tmp13_, NULL, FALSE);
+#line 96 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_signal_handlers_disconnect_matched (_tmp12_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp13_, 0, NULL, (GCallback) _book_view_motion_cb_gtk_widget_motion_notify_event, self);
+#line 97 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp14_ = self->priv->drawing_area;
+#line 97 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_signal_parse_name ("key-press-event", GTK_TYPE_WIDGET, &_tmp15_, NULL, FALSE);
+#line 97 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_signal_handlers_disconnect_matched (_tmp14_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp15_, 0, NULL, (GCallback) _book_view_key_cb_gtk_widget_key_press_event, self);
+#line 98 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp16_ = self->priv->drawing_area;
+#line 98 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_signal_parse_name ("button-press-event", GTK_TYPE_WIDGET, &_tmp17_, NULL, FALSE);
+#line 98 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_signal_handlers_disconnect_matched (_tmp16_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp17_, 0, NULL, (GCallback) _book_view_button_cb_gtk_widget_button_press_event, self);
+#line 99 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp18_ = self->priv->drawing_area;
+#line 99 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_signal_parse_name ("button-release-event", GTK_TYPE_WIDGET, &_tmp19_, NULL, FALSE);
+#line 99 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_signal_handlers_disconnect_matched (_tmp18_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp19_, 0, NULL, (GCallback) _book_view_button_cb_gtk_widget_button_release_event, self);
+#line 100 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp20_ = self->priv->drawing_area;
+#line 100 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_signal_parse_name ("focus-in-event", GTK_TYPE_WIDGET, &_tmp21_, NULL, FALSE);
+#line 100 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_signal_handlers_disconnect_matched (_tmp20_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp21_, 0, NULL, (GCallback) _book_view_focus_cb_gtk_widget_focus_in_event, self);
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp22_ = self->priv->drawing_area;
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_signal_parse_name ("focus-out-event", GTK_TYPE_WIDGET, &_tmp23_, NULL, FALSE);
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_signal_handlers_disconnect_matched (_tmp22_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp23_, 0, NULL, (GCallback) _book_view_focus_cb_gtk_widget_focus_out_event, self);
+#line 102 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_tmp24_ = self->priv->adjustment;
+#line 102 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_signal_parse_name ("value-changed", GTK_TYPE_ADJUSTMENT, &_tmp25_, NULL, FALSE);
+#line 102 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
g_signal_handlers_disconnect_matched (_tmp24_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp25_, 0, NULL, (GCallback) _book_view_scroll_cb_gtk_adjustment_value_changed, self);
+#line 18 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_book_unref0 (self->priv->book);
+#line 19 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_g_hash_table_unref0 (self->priv->page_data);
+#line 27 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_page_view_unref0 (self->priv->selected_page);
+#line 30 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_g_object_unref0 (self->priv->drawing_area);
+#line 33 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_g_object_unref0 (self->priv->scroll);
+#line 34 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
_g_object_unref0 (self->priv->adjustment);
+#line 15 "/home/bob/bzr/simple-scan/trunk/src/book-view.vala"
G_OBJECT_CLASS (book_view_parent_class)->finalize (obj);
+#line 3675 "book-view.c"
}
diff --git a/src/book.c b/src/book.c
index 9d868ef..b9e4dbb 100644
--- a/src/book.c
+++ b/src/book.c
@@ -1,4 +1,4 @@
-/* book.c generated by valac 0.18.1, the Vala compiler
+/* book.c generated by valac 0.20.1, the Vala compiler
* generated from book.vala, do not modify */
/*
@@ -24,8 +24,6 @@
#include <gdk/gdk.h>
#include <cairo-ps.h>
#include <zlib.h>
-#include "jpeglib.h"
-#include "config.h"
#include <gobject/gvaluecollector.h>
@@ -51,6 +49,7 @@ typedef struct _Page Page;
typedef struct _PageClass PageClass;
#define _page_unref0(var) ((var == NULL) ? NULL : (var = (page_unref (var), NULL)))
#define __g_list_free__page_unref0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__page_unref0_ (var), NULL)))
+#define _g_byte_array_unref0(var) ((var == NULL) ? NULL : (var = (g_byte_array_unref (var), NULL)))
#define TYPE_SCAN_DIRECTION (scan_direction_get_type ())
#define _g_free0(var) (var = (g_free (var), NULL))
@@ -69,6 +68,7 @@ typedef struct _PsWriterClass PsWriterClass;
typedef struct _PsWriterPrivate PsWriterPrivate;
#define _cairo_surface_destroy0(var) ((var == NULL) ? NULL : (var = (cairo_surface_destroy (var), NULL)))
#define _ps_writer_unref0(var) ((var == NULL) ? NULL : (var = (ps_writer_unref (var), NULL)))
+#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
#define TYPE_PDF_WRITER (pdf_writer_get_type ())
#define PDF_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PDF_WRITER, PDFWriter))
@@ -83,7 +83,6 @@ typedef struct _PDFWriterPrivate PDFWriterPrivate;
#define _pdf_writer_unref0(var) ((var == NULL) ? NULL : (var = (pdf_writer_unref (var), NULL)))
typedef struct _ParamSpecBook ParamSpecBook;
#define _g_list_free0(var) ((var == NULL) ? NULL : (var = (g_list_free (var), NULL)))
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
typedef struct _ParamSpecPDFWriter ParamSpecPDFWriter;
typedef struct _ParamSpecPsWriter ParamSpecPsWriter;
@@ -101,6 +100,7 @@ struct _BookClass {
struct _BookPrivate {
GList* pages;
gboolean needs_saving;
+ GByteArray* jpeg_data;
};
typedef enum {
@@ -194,8 +194,8 @@ guint book_get_n_pages (Book* self);
Page* book_get_page (Book* self, gint page_number);
guint book_get_page_index (Book* self, Page* page);
static GFile* book_make_indexed_file (Book* self, const gchar* uri, gint i);
-static void book_save_multi_file (Book* self, const gchar* type, GFile* file, GError** error);
-void page_save (Page* self, const gchar* type, GFile* file, GError** error);
+static void book_save_multi_file (Book* self, const gchar* type, gint quality, GFile* file, GError** error);
+void page_save (Page* self, const gchar* type, gint quality, GFile* file, GError** error);
static void book_save_ps_pdf_surface (Book* self, cairo_surface_t* surface, GdkPixbuf* image, gdouble dpi);
static void book_save_ps (Book* self, GFile* file, GError** error);
PsWriter* ps_writer_new (GFileOutputStream* stream);
@@ -210,14 +210,10 @@ GType ps_writer_get_type (void) G_GNUC_CONST;
GdkPixbuf* page_get_image (Page* self, gboolean apply_crop);
gint page_get_dpi (Page* self);
static guint8* book_compress_zlib (Book* self, guint8* data, int data_length1, int* result_length1);
-static void book_jpeg_init_cb (struct jpeg_compress_struct* info);
-static gboolean book_jpeg_empty_cb (struct jpeg_compress_struct* info);
-static void book_jpeg_term_cb (struct jpeg_compress_struct* info);
-static guint8* book_compress_jpeg (Book* self, GdkPixbuf* image, gsize* n_written, int* result_length1);
-static void _book_jpeg_init_cb_jpeg_initdestinationfunc (struct jpeg_compress_struct* cinfo);
-static gboolean _book_jpeg_empty_cb_jpeg_emptyoutputbufferfunc (struct jpeg_compress_struct* cinfo);
-static void _book_jpeg_term_cb_jpeg_termdestinationfunc (struct jpeg_compress_struct* cinfo);
-static void book_save_pdf (Book* self, GFile* file, GError** error);
+static guint8* book_compress_jpeg (Book* self, GdkPixbuf* image, gint quality, gint dpi, int* result_length1);
+static gboolean book_write_pixbuf_data (Book* self, guint8* buf, int buf_length1, GError** error);
+static gboolean _book_write_pixbuf_data_gdk_pixbuf_save_func (guint8* buf, gsize buf_length1, GError** error, gpointer self);
+static void book_save_pdf (Book* self, GFile* file, gint quality, GError** error);
PDFWriter* pdf_writer_new (GFileOutputStream* stream);
PDFWriter* pdf_writer_construct (GType object_type, GFileOutputStream* stream);
gpointer pdf_writer_ref (gpointer instance);
@@ -234,7 +230,7 @@ gint page_get_depth (Page* self);
static guint8* _vala_array_dup1 (guint8* self, int length);
static guint8* _vala_array_dup2 (guint8* self, int length);
void pdf_writer_write (PDFWriter* self, guint8* data, int data_length1);
-void book_save (Book* self, const gchar* type, GFile* file, GError** error);
+void book_save (Book* self, const gchar* type, gint quality, GFile* file, GError** error);
gboolean book_get_needs_saving (Book* self);
static void g_cclosure_user_marshal_VOID__PAGE (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data);
static void book_finalize (Book* obj);
@@ -249,86 +245,131 @@ enum {
static cairo_status_t ps_writer_write_cairo_data (PsWriter* self, guint8* data, int data_length1);
static cairo_status_t _ps_writer_write_cairo_data_cairo_write_func_t (gpointer self, guchar* data, int data_length1);
static void ps_writer_finalize (PsWriter* obj);
+static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
+static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);
static gpointer _page_ref0 (gpointer self) {
+#line 32 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return self ? page_ref (self) : NULL;
+#line 256 "book.c"
}
static void _book_page_changed_cb_page_pixels_changed (Page* _sender, gpointer self) {
+#line 34 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
book_page_changed_cb (self, _sender);
+#line 263 "book.c"
}
static void _book_page_changed_cb_page_crop_changed (Page* _sender, gpointer self) {
+#line 35 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
book_page_changed_cb (self, _sender);
+#line 270 "book.c"
}
static void _page_unref0_ (gpointer var) {
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
(var == NULL) ? NULL : (var = (page_unref (var), NULL));
+#line 277 "book.c"
}
static void _g_list_free__page_unref0_ (GList* self) {
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_list_foreach (self, (GFunc) _page_unref0_, NULL);
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_list_free (self);
+#line 286 "book.c"
}
Book* book_construct (GType object_type) {
Book* self = NULL;
+#line 25 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
self = (Book*) g_type_create_instance (object_type);
+#line 27 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
__g_list_free__page_unref0_0 (self->priv->pages);
+#line 27 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
self->priv->pages = NULL;
+#line 25 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return self;
+#line 300 "book.c"
}
Book* book_new (void) {
+#line 25 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return book_construct (TYPE_BOOK);
+#line 307 "book.c"
}
void book_clear (Book* self) {
GList* _tmp0_;
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (self != NULL);
+#line 41 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp0_ = self->priv->pages;
+#line 317 "book.c"
{
GList* page_collection = NULL;
GList* page_it = NULL;
+#line 41 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
page_collection = _tmp0_;
+#line 41 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
for (page_it = page_collection; page_it != NULL; page_it = page_it->next) {
+#line 325 "book.c"
Page* _tmp1_;
Page* page = NULL;
+#line 41 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp1_ = _page_ref0 ((Page*) page_it->data);
+#line 41 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
page = _tmp1_;
+#line 332 "book.c"
{
Page* _tmp2_;
guint _tmp3_ = 0U;
Page* _tmp4_;
guint _tmp5_ = 0U;
+#line 43 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp2_ = page;
+#line 43 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_signal_parse_name ("pixels-changed", TYPE_PAGE, &_tmp3_, NULL, FALSE);
+#line 43 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _book_page_changed_cb_page_pixels_changed, self);
+#line 44 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp4_ = page;
+#line 44 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_signal_parse_name ("crop-changed", TYPE_PAGE, &_tmp5_, NULL, FALSE);
+#line 44 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_signal_handlers_disconnect_matched (_tmp4_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _book_page_changed_cb_page_crop_changed, self);
+#line 41 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_page_unref0 (page);
+#line 352 "book.c"
}
}
}
+#line 46 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
__g_list_free__page_unref0_0 (self->priv->pages);
+#line 46 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
self->priv->pages = NULL;
+#line 47 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_signal_emit_by_name (self, "cleared");
+#line 362 "book.c"
}
static void book_page_changed_cb (Book* self, Page* page) {
+#line 50 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (self != NULL);
+#line 50 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (page != NULL);
+#line 52 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
book_set_needs_saving (self, TRUE);
+#line 373 "book.c"
}
@@ -341,21 +382,37 @@ Page* book_append_page (Book* self, gint width, gint height, gint dpi, ScanDirec
Page* _tmp4_;
Page* page;
Page* _tmp5_;
+#line 55 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_val_if_fail (self != NULL, NULL);
+#line 57 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp0_ = width;
+#line 57 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp1_ = height;
+#line 57 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp2_ = dpi;
+#line 57 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp3_ = scan_direction;
+#line 57 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp4_ = page_new (_tmp0_, _tmp1_, _tmp2_, _tmp3_);
+#line 57 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
page = _tmp4_;
+#line 58 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_signal_connect (page, "pixels-changed", (GCallback) _book_page_changed_cb_page_pixels_changed, self);
+#line 59 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_signal_connect (page, "crop-changed", (GCallback) _book_page_changed_cb_page_crop_changed, self);
+#line 61 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp5_ = _page_ref0 (page);
+#line 61 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
self->priv->pages = g_list_append (self->priv->pages, _tmp5_);
+#line 62 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_signal_emit_by_name (self, "page-added", page);
+#line 63 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
book_set_needs_saving (self, TRUE);
+#line 65 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
result = page;
+#line 65 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return result;
+#line 416 "book.c"
}
@@ -364,16 +421,27 @@ void book_move_page (Book* self, Page* page, guint location) {
Page* _tmp1_;
Page* _tmp2_;
guint _tmp3_;
+#line 68 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (self != NULL);
+#line 68 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (page != NULL);
+#line 70 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp0_ = page;
+#line 70 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
self->priv->pages = g_list_remove (self->priv->pages, _tmp0_);
+#line 71 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp1_ = page;
+#line 71 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp2_ = _page_ref0 (_tmp1_);
+#line 71 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp3_ = location;
+#line 71 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
self->priv->pages = g_list_insert (self->priv->pages, _tmp2_, (gint) _tmp3_);
+#line 72 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_signal_emit_by_name (self, "reordered");
+#line 73 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
book_set_needs_saving (self, TRUE);
+#line 445 "book.c"
}
@@ -384,19 +452,33 @@ void book_delete_page (Book* self, Page* page) {
guint _tmp3_ = 0U;
Page* _tmp4_;
Page* _tmp5_;
+#line 76 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (self != NULL);
+#line 76 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (page != NULL);
+#line 78 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp0_ = page;
+#line 78 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_signal_parse_name ("pixels-changed", TYPE_PAGE, &_tmp1_, NULL, FALSE);
+#line 78 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _book_page_changed_cb_page_pixels_changed, self);
+#line 79 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp2_ = page;
+#line 79 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_signal_parse_name ("crop-changed", TYPE_PAGE, &_tmp3_, NULL, FALSE);
+#line 79 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _book_page_changed_cb_page_crop_changed, self);
+#line 80 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp4_ = page;
+#line 80 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_signal_emit_by_name (self, "page-removed", _tmp4_);
+#line 81 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp5_ = page;
+#line 81 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
self->priv->pages = g_list_remove (self->priv->pages, _tmp5_);
+#line 82 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
book_set_needs_saving (self, TRUE);
+#line 482 "book.c"
}
@@ -404,11 +486,17 @@ guint book_get_n_pages (Book* self) {
guint result = 0U;
GList* _tmp0_;
guint _tmp1_ = 0U;
+#line 85 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_val_if_fail (self != NULL, 0U);
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp0_ = self->priv->pages;
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp1_ = g_list_length (_tmp0_);
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
result = _tmp1_;
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return result;
+#line 500 "book.c"
}
@@ -419,23 +507,39 @@ Page* book_get_page (Book* self, gint page_number) {
gint _tmp5_;
gconstpointer _tmp6_ = NULL;
Page* _tmp7_;
+#line 90 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_val_if_fail (self != NULL, NULL);
+#line 92 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp0_ = page_number;
+#line 92 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (_tmp0_ < 0) {
+#line 517 "book.c"
GList* _tmp1_;
guint _tmp2_ = 0U;
gint _tmp3_;
+#line 93 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp1_ = self->priv->pages;
+#line 93 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp2_ = g_list_length (_tmp1_);
+#line 93 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp3_ = page_number;
+#line 93 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
page_number = ((gint) _tmp2_) + _tmp3_;
+#line 529 "book.c"
}
+#line 94 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp4_ = self->priv->pages;
+#line 94 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp5_ = page_number;
+#line 94 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp6_ = g_list_nth_data (_tmp4_, (guint) _tmp5_);
+#line 94 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp7_ = _page_ref0 ((Page*) _tmp6_);
+#line 94 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
result = _tmp7_;
+#line 94 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return result;
+#line 543 "book.c"
}
@@ -444,13 +548,21 @@ guint book_get_page_index (Book* self, Page* page) {
GList* _tmp0_;
Page* _tmp1_;
gint _tmp2_ = 0;
+#line 97 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_val_if_fail (self != NULL, 0U);
+#line 97 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_val_if_fail (page != NULL, 0U);
+#line 99 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp0_ = self->priv->pages;
+#line 99 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp1_ = page;
+#line 99 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp2_ = g_list_index (_tmp0_, _tmp1_);
+#line 99 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
result = (guint) _tmp2_;
+#line 99 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return result;
+#line 566 "book.c"
}
@@ -461,20 +573,35 @@ static gint string_last_index_of_char (const gchar* self, gunichar c, gint start
gchar* _tmp2_ = NULL;
gchar* _result_;
gchar* _tmp3_;
+#line 928 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
g_return_val_if_fail (self != NULL, 0);
+#line 929 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp0_ = start_index;
+#line 929 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp1_ = c;
+#line 929 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp2_ = g_utf8_strrchr (((gchar*) self) + _tmp0_, (gssize) (-1), _tmp1_);
+#line 929 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_result_ = _tmp2_;
+#line 931 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp3_ = _result_;
+#line 931 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
if (_tmp3_ != NULL) {
+#line 591 "book.c"
gchar* _tmp4_;
+#line 932 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp4_ = _result_;
+#line 932 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
result = (gint) (_tmp4_ - ((gchar*) self));
+#line 932 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
return result;
+#line 599 "book.c"
} else {
+#line 934 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
result = -1;
+#line 934 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
return result;
+#line 605 "book.c"
}
}
@@ -498,59 +625,109 @@ static gchar* string_slice (const gchar* self, glong start, glong end) {
glong _tmp21_;
glong _tmp22_;
gchar* _tmp23_ = NULL;
+#line 1190 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
g_return_val_if_fail (self != NULL, NULL);
+#line 1191 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp0_ = strlen (self);
+#line 1191 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp1_ = _tmp0_;
+#line 1191 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
string_length = (glong) _tmp1_;
+#line 1192 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp2_ = start;
+#line 1192 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
if (_tmp2_ < ((glong) 0)) {
+#line 641 "book.c"
glong _tmp3_;
glong _tmp4_;
+#line 1193 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp3_ = string_length;
+#line 1193 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp4_ = start;
+#line 1193 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
start = _tmp3_ + _tmp4_;
+#line 650 "book.c"
}
+#line 1195 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp5_ = end;
+#line 1195 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
if (_tmp5_ < ((glong) 0)) {
+#line 656 "book.c"
glong _tmp6_;
glong _tmp7_;
+#line 1196 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp6_ = string_length;
+#line 1196 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp7_ = end;
+#line 1196 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
end = _tmp6_ + _tmp7_;
+#line 665 "book.c"
}
+#line 1198 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp9_ = start;
+#line 1198 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
if (_tmp9_ >= ((glong) 0)) {
+#line 671 "book.c"
glong _tmp10_;
glong _tmp11_;
+#line 1198 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp10_ = start;
+#line 1198 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp11_ = string_length;
+#line 1198 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp8_ = _tmp10_ <= _tmp11_;
+#line 680 "book.c"
} else {
+#line 1198 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp8_ = FALSE;
+#line 684 "book.c"
}
+#line 1198 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp12_ = _tmp8_;
+#line 1198 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
g_return_val_if_fail (_tmp12_, NULL);
+#line 1199 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp14_ = end;
+#line 1199 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
if (_tmp14_ >= ((glong) 0)) {
+#line 694 "book.c"
glong _tmp15_;
glong _tmp16_;
+#line 1199 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp15_ = end;
+#line 1199 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp16_ = string_length;
+#line 1199 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp13_ = _tmp15_ <= _tmp16_;
+#line 703 "book.c"
} else {
+#line 1199 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp13_ = FALSE;
+#line 707 "book.c"
}
+#line 1199 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp17_ = _tmp13_;
+#line 1199 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
g_return_val_if_fail (_tmp17_, NULL);
+#line 1200 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp18_ = start;
+#line 1200 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp19_ = end;
+#line 1200 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
g_return_val_if_fail (_tmp18_ <= _tmp19_, NULL);
+#line 1201 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp20_ = start;
+#line 1201 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp21_ = end;
+#line 1201 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp22_ = start;
+#line 1201 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp23_ = g_strndup (((gchar*) self) + _tmp20_, (gsize) (_tmp21_ - _tmp22_));
+#line 1201 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
result = _tmp23_;
+#line 1201 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
return result;
+#line 731 "book.c"
}
@@ -569,37 +746,79 @@ static GFile* book_make_indexed_file (Book* self, const gchar* uri, gint i) {
gint _tmp9_ = 0;
gint extension_index;
gint _tmp10_;
- const gchar* _tmp25_;
- gint _tmp26_;
- const gchar* _tmp27_;
- gchar* _tmp28_ = NULL;
- gchar* _tmp29_;
- GFile* _tmp30_ = NULL;
- GFile* _tmp31_;
+ guint _tmp25_ = 0U;
+ gchar* _tmp26_ = NULL;
+ gchar* _tmp27_;
+ gint _tmp28_;
+ gint _tmp29_;
+ gint _tmp30_;
+ gint width;
+ gint _tmp31_;
+ gchar* _tmp32_ = NULL;
+ gchar* number_format;
+ const gchar* _tmp33_;
+ gchar* _tmp34_;
+ gchar* _tmp35_;
+ const gchar* _tmp36_;
+ gint _tmp37_;
+ gchar* _tmp38_ = NULL;
+ gchar* _tmp39_;
+ gchar* _tmp40_;
+ gchar* _tmp41_;
+ const gchar* _tmp42_;
+ gchar* _tmp43_;
+ gchar* _tmp44_;
+ gchar* filename;
+ const gchar* _tmp45_;
+ GFile* _tmp46_ = NULL;
+#line 102 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_val_if_fail (self != NULL, NULL);
+#line 102 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_val_if_fail (uri != NULL, NULL);
+#line 104 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp0_ = book_get_n_pages (self);
+#line 104 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (_tmp0_ == ((guint) 1)) {
+#line 783 "book.c"
const gchar* _tmp1_;
GFile* _tmp2_ = NULL;
+#line 105 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp1_ = uri;
+#line 105 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp2_ = g_file_new_for_uri (_tmp1_);
+#line 105 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
result = _tmp2_;
+#line 105 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return result;
+#line 794 "book.c"
}
+#line 108 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp3_ = uri;
+#line 108 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp4_ = g_path_get_basename (_tmp3_);
+#line 108 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
basename = _tmp4_;
+#line 109 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp5_ = uri;
+#line 109 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp6_ = g_strdup (_tmp5_);
+#line 109 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
prefix = _tmp6_;
+#line 109 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp7_ = g_strdup ("");
+#line 109 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
suffix = _tmp7_;
+#line 110 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp8_ = basename;
+#line 110 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp9_ = string_last_index_of_char (_tmp8_, (gunichar) '.', 0);
+#line 110 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
extension_index = _tmp9_;
+#line 111 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp10_ = extension_index;
+#line 111 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (_tmp10_ >= 0) {
+#line 822 "book.c"
const gchar* _tmp11_;
gint _tmp12_;
const gchar* _tmp13_;
@@ -614,53 +833,141 @@ static GFile* book_make_indexed_file (Book* self, const gchar* uri, gint i) {
gint _tmp22_;
gint _tmp23_;
gchar* _tmp24_ = NULL;
+#line 113 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp11_ = basename;
+#line 113 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp12_ = extension_index;
+#line 113 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp13_ = basename;
+#line 113 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp14_ = strlen (_tmp13_);
+#line 113 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp15_ = _tmp14_;
+#line 113 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp16_ = string_slice (_tmp11_, (glong) _tmp12_, (glong) _tmp15_);
+#line 113 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_g_free0 (suffix);
+#line 113 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
suffix = _tmp16_;
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp17_ = uri;
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp18_ = uri;
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp19_ = strlen (_tmp18_);
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp20_ = _tmp19_;
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp21_ = suffix;
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp22_ = strlen (_tmp21_);
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp23_ = _tmp22_;
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp24_ = string_slice (_tmp17_, (glong) 0, (glong) (_tmp20_ - _tmp23_));
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_g_free0 (prefix);
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
prefix = _tmp24_;
+#line 873 "book.c"
}
- _tmp25_ = prefix;
- _tmp26_ = i;
- _tmp27_ = suffix;
- _tmp28_ = g_strdup_printf ("%s-%d%s", _tmp25_, _tmp26_ + 1, _tmp27_);
+#line 116 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp25_ = book_get_n_pages (self);
+#line 116 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp26_ = g_strdup_printf ("%u", _tmp25_);
+#line 116 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp27_ = _tmp26_;
+#line 116 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp28_ = strlen (_tmp27_);
+#line 116 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp29_ = _tmp28_;
- _tmp30_ = g_file_new_for_uri (_tmp29_);
- _tmp31_ = _tmp30_;
- _g_free0 (_tmp29_);
- result = _tmp31_;
+#line 116 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp30_ = _tmp29_;
+#line 116 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp27_);
+#line 116 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ width = _tmp30_;
+#line 117 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp31_ = width;
+#line 117 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp32_ = g_strdup_printf ("%%0%dd", _tmp31_);
+#line 117 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ number_format = _tmp32_;
+#line 118 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp33_ = prefix;
+#line 118 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp34_ = g_strconcat (_tmp33_, "-", NULL);
+#line 118 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp35_ = _tmp34_;
+#line 118 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp36_ = number_format;
+#line 118 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp37_ = i;
+#line 118 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp38_ = g_strdup_printf (_tmp36_, _tmp37_ + 1);
+#line 118 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp39_ = _tmp38_;
+#line 118 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp40_ = g_strconcat (_tmp35_, _tmp39_, NULL);
+#line 118 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp41_ = _tmp40_;
+#line 118 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp42_ = suffix;
+#line 118 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp43_ = g_strconcat (_tmp41_, _tmp42_, NULL);
+#line 118 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp44_ = _tmp43_;
+#line 118 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp41_);
+#line 118 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp39_);
+#line 118 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp35_);
+#line 118 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ filename = _tmp44_;
+#line 119 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp45_ = filename;
+#line 119 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp46_ = g_file_new_for_uri (_tmp45_);
+#line 119 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ result = _tmp46_;
+#line 119 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (filename);
+#line 119 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (number_format);
+#line 119 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_g_free0 (suffix);
+#line 119 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_g_free0 (prefix);
+#line 119 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_g_free0 (basename);
+#line 119 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return result;
+#line 947 "book.c"
}
-static void book_save_multi_file (Book* self, const gchar* type, GFile* file, GError** error) {
+static void book_save_multi_file (Book* self, const gchar* type, gint quality, GFile* file, GError** error) {
GError * _inner_error_ = NULL;
+#line 122 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (self != NULL);
+#line 122 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (type != NULL);
+#line 122 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (file != NULL);
+#line 959 "book.c"
{
gint i;
+#line 124 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
i = 0;
+#line 964 "book.c"
{
gboolean _tmp0_;
+#line 124 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp0_ = TRUE;
+#line 124 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
while (TRUE) {
+#line 971 "book.c"
gboolean _tmp1_;
gint _tmp3_;
guint _tmp4_ = 0U;
@@ -669,47 +976,85 @@ static void book_save_multi_file (Book* self, const gchar* type, GFile* file, GE
Page* page;
Page* _tmp7_;
const gchar* _tmp8_;
- GFile* _tmp9_;
- gchar* _tmp10_ = NULL;
- gchar* _tmp11_;
- gint _tmp12_;
- GFile* _tmp13_ = NULL;
- GFile* _tmp14_;
- gint _tmp15_;
+ gint _tmp9_;
+ GFile* _tmp10_;
+ gchar* _tmp11_ = NULL;
+ gchar* _tmp12_;
+ gint _tmp13_;
+ GFile* _tmp14_ = NULL;
+ GFile* _tmp15_;
+ gint _tmp16_;
+#line 124 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp1_ = _tmp0_;
+#line 124 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (!_tmp1_) {
+#line 992 "book.c"
gint _tmp2_;
+#line 124 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp2_ = i;
+#line 124 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
i = _tmp2_ + 1;
+#line 998 "book.c"
}
+#line 124 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp0_ = FALSE;
+#line 124 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp3_ = i;
+#line 124 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp4_ = book_get_n_pages (self);
+#line 124 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (!(((guint) _tmp3_) < _tmp4_)) {
+#line 124 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
break;
+#line 1010 "book.c"
}
+#line 126 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp5_ = i;
+#line 126 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp6_ = book_get_page (self, _tmp5_);
+#line 126 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
page = _tmp6_;
+#line 127 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp7_ = page;
+#line 127 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp8_ = type;
- _tmp9_ = file;
- _tmp10_ = g_file_get_uri (_tmp9_);
- _tmp11_ = _tmp10_;
- _tmp12_ = i;
- _tmp13_ = book_make_indexed_file (self, _tmp11_, _tmp12_);
- _tmp14_ = _tmp13_;
- page_save (_tmp7_, _tmp8_, _tmp14_, &_inner_error_);
- _g_object_unref0 (_tmp14_);
- _g_free0 (_tmp11_);
+#line 127 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp9_ = quality;
+#line 127 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp10_ = file;
+#line 127 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp11_ = g_file_get_uri (_tmp10_);
+#line 127 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp12_ = _tmp11_;
+#line 127 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp13_ = i;
+#line 127 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp14_ = book_make_indexed_file (self, _tmp12_, _tmp13_);
+#line 127 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp15_ = _tmp14_;
+#line 127 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ page_save (_tmp7_, _tmp8_, _tmp9_, _tmp15_, &_inner_error_);
+#line 127 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_object_unref0 (_tmp15_);
+#line 127 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp12_);
+#line 127 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (_inner_error_ != NULL) {
+#line 127 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_propagate_error (error, _inner_error_);
+#line 127 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_page_unref0 (page);
+#line 127 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return;
+#line 1050 "book.c"
}
- _tmp15_ = i;
- g_signal_emit_by_name (self, "saving", _tmp15_);
+#line 128 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp16_ = i;
+#line 128 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ g_signal_emit_by_name (self, "saving", _tmp16_);
+#line 124 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_page_unref0 (page);
+#line 1058 "book.c"
}
}
}
@@ -724,26 +1069,44 @@ static void book_save_ps_pdf_surface (Book* self, cairo_surface_t* surface, GdkP
gdouble _tmp3_;
GdkPixbuf* _tmp4_;
cairo_pattern_t* _tmp5_ = NULL;
+#line 132 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (self != NULL);
+#line 132 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (surface != NULL);
+#line 132 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (image != NULL);
+#line 134 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp0_ = surface;
+#line 134 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp1_ = cairo_create (_tmp0_);
+#line 134 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
context = _tmp1_;
+#line 135 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp2_ = dpi;
+#line 135 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp3_ = dpi;
+#line 135 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
cairo_scale (context, 72.0 / _tmp2_, 72.0 / _tmp3_);
+#line 136 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp4_ = image;
+#line 136 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
gdk_cairo_set_source_pixbuf (context, _tmp4_, (gdouble) 0, (gdouble) 0);
+#line 137 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp5_ = cairo_get_source (context);
+#line 137 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
cairo_pattern_set_filter (_tmp5_, CAIRO_FILTER_BEST);
+#line 138 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
cairo_paint (context);
+#line 132 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_cairo_destroy0 (context);
+#line 1103 "book.c"
}
static gpointer _cairo_surface_reference0 (gpointer self) {
+#line 145 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return self ? cairo_surface_reference (self) : NULL;
+#line 1110 "book.c"
}
@@ -758,28 +1121,49 @@ static void book_save_ps (Book* self, GFile* file, GError** error) {
cairo_surface_t* _tmp5_;
cairo_surface_t* surface;
GError * _inner_error_ = NULL;
+#line 141 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (self != NULL);
+#line 141 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (file != NULL);
+#line 143 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp0_ = file;
+#line 143 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp1_ = g_file_replace (_tmp0_, NULL, FALSE, G_FILE_CREATE_NONE, NULL, &_inner_error_);
+#line 143 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
stream = _tmp1_;
+#line 143 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (_inner_error_ != NULL) {
+#line 143 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_propagate_error (error, _inner_error_);
+#line 143 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return;
+#line 1141 "book.c"
}
+#line 144 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp2_ = ps_writer_new (stream);
+#line 144 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
writer = _tmp2_;
+#line 145 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp3_ = writer;
+#line 145 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp4_ = _tmp3_->surface;
+#line 145 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp5_ = _cairo_surface_reference0 (_tmp4_);
+#line 145 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
surface = _tmp5_;
+#line 1155 "book.c"
{
gint i;
+#line 147 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
i = 0;
+#line 1160 "book.c"
{
gboolean _tmp6_;
+#line 147 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp6_ = TRUE;
+#line 147 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
while (TRUE) {
+#line 1167 "book.c"
gboolean _tmp7_;
gint _tmp9_;
guint _tmp10_ = 0U;
@@ -808,55 +1192,103 @@ static void book_save_ps (Book* self, GFile* file, GError** error) {
gint _tmp29_ = 0;
cairo_surface_t* _tmp30_;
gint _tmp31_;
+#line 147 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp7_ = _tmp6_;
+#line 147 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (!_tmp7_) {
+#line 1200 "book.c"
gint _tmp8_;
+#line 147 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp8_ = i;
+#line 147 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
i = _tmp8_ + 1;
+#line 1206 "book.c"
}
+#line 147 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp6_ = FALSE;
+#line 147 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp9_ = i;
+#line 147 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp10_ = book_get_n_pages (self);
+#line 147 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (!(((guint) _tmp9_) < _tmp10_)) {
+#line 147 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
break;
+#line 1218 "book.c"
}
+#line 149 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp11_ = i;
+#line 149 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp12_ = book_get_page (self, _tmp11_);
+#line 149 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
page = _tmp12_;
+#line 150 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp13_ = page;
+#line 150 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp14_ = page_get_image (_tmp13_, TRUE);
+#line 150 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
image = _tmp14_;
+#line 151 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp15_ = image;
+#line 151 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp16_ = gdk_pixbuf_get_width (_tmp15_);
+#line 151 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp17_ = page;
+#line 151 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp18_ = page_get_dpi (_tmp17_);
+#line 151 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
width = (_tmp16_ * 72.0) / _tmp18_;
+#line 152 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp19_ = image;
+#line 152 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp20_ = gdk_pixbuf_get_height (_tmp19_);
+#line 152 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp21_ = page;
+#line 152 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp22_ = page_get_dpi (_tmp21_);
+#line 152 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
height = (_tmp20_ * 72.0) / _tmp22_;
+#line 153 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp23_ = surface;
+#line 153 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp24_ = width;
+#line 153 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp25_ = height;
+#line 153 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
cairo_ps_surface_set_size (_tmp23_, _tmp24_, _tmp25_);
+#line 154 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp26_ = surface;
+#line 154 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp27_ = image;
+#line 154 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp28_ = page;
+#line 154 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp29_ = page_get_dpi (_tmp28_);
+#line 154 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
book_save_ps_pdf_surface (self, _tmp26_, _tmp27_, (gdouble) _tmp29_);
+#line 155 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp30_ = surface;
+#line 155 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
cairo_surface_show_page (_tmp30_);
+#line 156 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp31_ = i;
+#line 156 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_signal_emit_by_name (self, "saving", _tmp31_);
+#line 147 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_g_object_unref0 (image);
+#line 147 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_page_unref0 (page);
+#line 1282 "book.c"
}
}
}
+#line 141 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_cairo_surface_destroy0 (surface);
+#line 141 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_ps_writer_unref0 (writer);
+#line 141 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_g_object_unref0 (stream);
+#line 1292 "book.c"
}
@@ -884,266 +1316,360 @@ static guint8* book_compress_zlib (Book* self, guint8* data, int data_length1, i
gint _tmp14_ = 0;
guint8* _tmp15_;
gint _tmp15__length1;
+#line 160 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_val_if_fail (self != NULL, NULL);
+#line 162 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
deflateInit (&stream, (gint) Z_BEST_COMPRESSION);
+#line 163 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp0_ = data;
+#line 163 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp0__length1 = data_length1;
+#line 163 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp1_ = g_new0 (guint8, _tmp0__length1);
+#line 163 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
out_data = _tmp1_;
+#line 163 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
out_data_length1 = _tmp0__length1;
+#line 163 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_out_data_size_ = out_data_length1;
+#line 165 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp2_ = data;
+#line 165 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp2__length1 = data_length1;
+#line 165 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
stream.next_in = _tmp2_;
+#line 165 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
stream.avail_in = _tmp2__length1;
+#line 166 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp3_ = out_data;
+#line 166 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp3__length1 = out_data_length1;
+#line 166 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
stream.next_out = _tmp3_;
+#line 166 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
stream.avail_out = _tmp3__length1;
+#line 167 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
while (TRUE) {
+#line 1354 "book.c"
z_stream _tmp4_;
guint _tmp5_;
gint _tmp6_ = 0;
+#line 167 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp4_ = stream;
+#line 167 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp5_ = _tmp4_.avail_in;
+#line 167 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (!(_tmp5_ > ((guint) 0))) {
+#line 167 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
break;
+#line 1366 "book.c"
}
+#line 169 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp6_ = deflate (&stream, (gint) Z_FINISH);
+#line 169 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (_tmp6_ == ((gint) Z_STREAM_ERROR)) {
+#line 170 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
break;
+#line 1374 "book.c"
}
}
+#line 173 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp7_ = stream;
+#line 173 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp8_ = _tmp7_.avail_in;
+#line 173 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (_tmp8_ > ((guint) 0)) {
+#line 1383 "book.c"
guint8* _tmp9_;
gint _tmp9__length1;
+#line 174 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp9_ = NULL;
+#line 174 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp9__length1 = 0;
+#line 174 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (result_length1) {
+#line 174 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
*result_length1 = _tmp9__length1;
+#line 1394 "book.c"
}
+#line 174 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
result = _tmp9_;
+#line 174 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
out_data = (g_free (out_data), NULL);
+#line 174 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
deflateEnd (&stream);
+#line 174 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return result;
+#line 1404 "book.c"
}
+#line 176 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp10_ = data;
+#line 176 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp10__length1 = data_length1;
+#line 176 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp11_ = stream;
+#line 176 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp12_ = _tmp11_.avail_out;
+#line 176 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
n_written = _tmp10__length1 - _tmp12_;
+#line 177 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp13_ = n_written;
+#line 177 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp14_ = (gint) _tmp13_;
+#line 177 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
out_data = g_renew (guint8, out_data, (gint) _tmp13_);
+#line 177 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
(_tmp14_ > out_data_length1) ? memset (out_data + out_data_length1, 0, sizeof (guint8) * (_tmp14_ - out_data_length1)) : NULL;
+#line 177 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
out_data_length1 = _tmp14_;
+#line 177 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_out_data_size_ = _tmp14_;
+#line 179 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp15_ = out_data;
+#line 179 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp15__length1 = out_data_length1;
+#line 179 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (result_length1) {
+#line 179 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
*result_length1 = _tmp15__length1;
+#line 1436 "book.c"
}
+#line 179 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
result = _tmp15_;
+#line 179 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
deflateEnd (&stream);
+#line 179 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return result;
+#line 1444 "book.c"
}
-static void book_jpeg_init_cb (struct jpeg_compress_struct* info) {
- g_return_if_fail (info != NULL);
-}
-
-
-static gboolean book_jpeg_empty_cb (struct jpeg_compress_struct* info) {
- gboolean result = FALSE;
- g_return_val_if_fail (info != NULL, FALSE);
- result = TRUE;
- return result;
-}
-
-
-static void book_jpeg_term_cb (struct jpeg_compress_struct* info) {
- g_return_if_fail (info != NULL);
-}
-
-
-static void _book_jpeg_init_cb_jpeg_initdestinationfunc (struct jpeg_compress_struct* cinfo) {
- book_jpeg_init_cb (cinfo);
-}
-
-
-static gboolean _book_jpeg_empty_cb_jpeg_emptyoutputbufferfunc (struct jpeg_compress_struct* cinfo) {
+static gboolean _book_write_pixbuf_data_gdk_pixbuf_save_func (guint8* buf, gsize buf_length1, GError** error, gpointer self) {
gboolean result;
- result = book_jpeg_empty_cb (cinfo);
+ result = book_write_pixbuf_data (self, buf, buf_length1, error);
+#line 191 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return result;
+#line 1453 "book.c"
}
-static void _book_jpeg_term_cb_jpeg_termdestinationfunc (struct jpeg_compress_struct* cinfo) {
- book_jpeg_term_cb (cinfo);
-}
-
-
-static guint8* book_compress_jpeg (Book* self, GdkPixbuf* image, gsize* n_written, int* result_length1) {
- gsize _vala_n_written = 0UL;
+static guint8* book_compress_jpeg (Book* self, GdkPixbuf* image, gint quality, gint dpi, int* result_length1) {
guint8* result = NULL;
- struct jpeg_compress_struct info = {0};
- struct jpeg_error_mgr jerr = {0};
- struct jpeg_destination_mgr dest_mgr = {0};
- struct jpeg_error_mgr* _tmp0_ = NULL;
- GdkPixbuf* _tmp1_;
- gint _tmp2_ = 0;
- GdkPixbuf* _tmp3_;
- gint _tmp4_ = 0;
- struct jpeg_compress_struct _tmp5_;
+ GByteArray* _tmp0_;
+ gchar* _tmp1_;
+ gchar* _tmp2_;
+ gchar* _tmp3_;
+ gchar* _tmp4_;
+ gchar** _tmp5_ = NULL;
+ gchar** keys;
+ gint keys_length1;
+ gint _keys_size_;
gint _tmp6_;
- struct jpeg_compress_struct _tmp7_;
- gint _tmp8_;
- struct jpeg_compress_struct _tmp9_;
- gint _tmp10_;
- gint max_length;
+ gchar* _tmp7_ = NULL;
+ gchar* _tmp8_;
+ gint _tmp9_;
+ gchar* _tmp10_ = NULL;
gint _tmp11_;
- guint8* _tmp12_ = NULL;
+ gchar* _tmp12_ = NULL;
+ gchar** _tmp13_ = NULL;
+ gchar** values;
+ gint values_length1;
+ gint _values_size_;
+ GByteArray* _tmp15_;
+ guint8* _tmp16_;
+ gint _tmp16__length1;
guint8* data;
gint data_length1;
gint _data_size_;
- guint8* _tmp13_;
- gint _tmp13__length1;
- gint _tmp14_;
- GdkPixbuf* _tmp15_;
- guint8* _tmp16_ = NULL;
- guint8* pixels;
- gint pixels_length1;
- gint _pixels_size_;
- gint _tmp28_;
- struct jpeg_destination_mgr _tmp29_;
- gint _tmp30_;
- gint _tmp31_ = 0;
- guint8* _tmp32_;
- gint _tmp32__length1;
+ guint8* _tmp17_;
+ gint _tmp17__length1;
+ GError * _inner_error_ = NULL;
+#line 184 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_val_if_fail (self != NULL, NULL);
+#line 184 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_val_if_fail (image != NULL, NULL);
- memset (&info, 0, sizeof (struct jpeg_compress_struct));
- memset (&jerr, 0, sizeof (struct jpeg_error_mgr));
- memset (&dest_mgr, 0, sizeof (struct jpeg_destination_mgr));
- _tmp0_ = jpeg_std_error (&jerr);
- info.err = _tmp0_;
- jpeg_create_compress (&info);
- _tmp1_ = image;
- _tmp2_ = gdk_pixbuf_get_width (_tmp1_);
- info.image_width = _tmp2_;
- _tmp3_ = image;
- _tmp4_ = gdk_pixbuf_get_height (_tmp3_);
- info.image_height = _tmp4_;
- info.input_components = 3;
- info.in_color_space = JCS_RGB;
- jpeg_set_defaults (&info);
- _tmp5_ = info;
- _tmp6_ = _tmp5_.image_width;
- _tmp7_ = info;
- _tmp8_ = _tmp7_.image_height;
- _tmp9_ = info;
- _tmp10_ = _tmp9_.input_components;
- max_length = (_tmp6_ * _tmp8_) * _tmp10_;
- _tmp11_ = max_length;
- _tmp12_ = g_new0 (guint8, _tmp11_);
- data = _tmp12_;
- data_length1 = _tmp11_;
- _data_size_ = data_length1;
- _tmp13_ = data;
- _tmp13__length1 = data_length1;
- dest_mgr.next_output_byte = _tmp13_;
- _tmp14_ = max_length;
- dest_mgr.free_in_buffer = _tmp14_;
- dest_mgr.init_destination = _book_jpeg_init_cb_jpeg_initdestinationfunc;
- dest_mgr.empty_output_buffer = _book_jpeg_empty_cb_jpeg_emptyoutputbufferfunc;
- dest_mgr.term_destination = _book_jpeg_term_cb_jpeg_termdestinationfunc;
- info.dest = &dest_mgr;
- jpeg_start_compress (&info, TRUE);
- _tmp15_ = image;
- _tmp16_ = gdk_pixbuf_get_pixels (_tmp15_);
- pixels = _tmp16_;
- pixels_length1 = -1;
- _pixels_size_ = pixels_length1;
+#line 186 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp0_ = g_byte_array_new ();
+#line 186 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_byte_array_unref0 (self->priv->jpeg_data);
+#line 186 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ self->priv->jpeg_data = _tmp0_;
+#line 187 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp1_ = g_strdup ("quality");
+#line 187 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp2_ = g_strdup ("density-unit");
+#line 187 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp3_ = g_strdup ("x-density");
+#line 187 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp4_ = g_strdup ("y-density");
+#line 187 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp5_ = g_new0 (gchar*, 5 + 1);
+#line 187 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp5_[0] = _tmp1_;
+#line 187 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp5_[1] = _tmp2_;
+#line 187 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp5_[2] = _tmp3_;
+#line 187 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp5_[3] = _tmp4_;
+#line 187 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp5_[4] = NULL;
+#line 187 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ keys = _tmp5_;
+#line 187 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ keys_length1 = 5;
+#line 187 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _keys_size_ = keys_length1;
+#line 188 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp6_ = quality;
+#line 188 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp7_ = g_strdup_printf ("%d", _tmp6_);
+#line 188 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp8_ = g_strdup ("dots-per-inch");
+#line 188 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp9_ = dpi;
+#line 188 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp10_ = g_strdup_printf ("%d", _tmp9_);
+#line 188 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp11_ = dpi;
+#line 188 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp12_ = g_strdup_printf ("%d", _tmp11_);
+#line 188 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp13_ = g_new0 (gchar*, 5 + 1);
+#line 188 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp13_[0] = _tmp7_;
+#line 188 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp13_[1] = _tmp8_;
+#line 188 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp13_[2] = _tmp10_;
+#line 188 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp13_[3] = _tmp12_;
+#line 188 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp13_[4] = NULL;
+#line 188 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ values = _tmp13_;
+#line 188 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ values_length1 = 5;
+#line 188 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _values_size_ = values_length1;
+#line 1556 "book.c"
{
- gint r;
- r = 0;
- {
- gboolean _tmp17_;
- _tmp17_ = TRUE;
- while (TRUE) {
- gboolean _tmp18_;
- gint _tmp20_;
- struct jpeg_compress_struct _tmp21_;
- gint _tmp22_;
- guint8* row[1] = {0};
- guint8* _tmp23_;
- gint _tmp23__length1;
- gint _tmp24_;
- GdkPixbuf* _tmp25_;
- gint _tmp26_ = 0;
- guint8* _tmp27_;
- _tmp18_ = _tmp17_;
- if (!_tmp18_) {
- gint _tmp19_;
- _tmp19_ = r;
- r = _tmp19_ + 1;
- }
- _tmp17_ = FALSE;
- _tmp20_ = r;
- _tmp21_ = info;
- _tmp22_ = _tmp21_.image_height;
- if (!(_tmp20_ < _tmp22_)) {
- break;
- }
- _tmp23_ = pixels;
- _tmp23__length1 = pixels_length1;
- _tmp24_ = r;
- _tmp25_ = image;
- _tmp26_ = gdk_pixbuf_get_rowstride (_tmp25_);
- row[0] = ((guint8*) _tmp23_) + (_tmp24_ * _tmp26_);
- _tmp27_ = row[0];
- jpeg_write_scanlines (&info, row, 1);
- }
+ GdkPixbuf* _tmp14_;
+#line 191 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp14_ = image;
+#line 191 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ gdk_pixbuf_save_to_callbackv (_tmp14_, _book_write_pixbuf_data_gdk_pixbuf_save_func, self, "jpeg", keys, values, &_inner_error_);
+#line 191 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ if (_inner_error_ != NULL) {
+#line 1565 "book.c"
+ goto __catch0_g_error;
}
}
- jpeg_finish_compress (&info);
- _tmp28_ = max_length;
- _tmp29_ = dest_mgr;
- _tmp30_ = _tmp29_.free_in_buffer;
- _vala_n_written = (gsize) (_tmp28_ - _tmp30_);
- _tmp31_ = (gint) _vala_n_written;
- data = g_renew (guint8, data, (gint) _vala_n_written);
- (_tmp31_ > data_length1) ? memset (data + data_length1, 0, sizeof (guint8) * (_tmp31_ - data_length1)) : NULL;
- data_length1 = _tmp31_;
- _data_size_ = _tmp31_;
- _tmp32_ = data;
- _tmp32__length1 = data_length1;
- if (result_length1) {
- *result_length1 = _tmp32__length1;
+ goto __finally0;
+ __catch0_g_error:
+ {
+ GError* e = NULL;
+#line 189 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ e = _inner_error_;
+#line 189 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _inner_error_ = NULL;
+#line 189 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_error_free0 (e);
+#line 1579 "book.c"
}
- result = _tmp32_;
- jpeg_destroy_compress (&info);
- if (n_written) {
- *n_written = _vala_n_written;
+ __finally0:
+#line 189 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ if (_inner_error_ != NULL) {
+#line 189 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ values = (_vala_array_free (values, values_length1, (GDestroyNotify) g_free), NULL);
+#line 189 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ keys = (_vala_array_free (keys, keys_length1, (GDestroyNotify) g_free), NULL);
+#line 189 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 189 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ g_clear_error (&_inner_error_);
+#line 189 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ return NULL;
+#line 1594 "book.c"
}
+#line 196 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp15_ = self->priv->jpeg_data;
+#line 196 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp16_ = _tmp15_->data;
+#line 196 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp16__length1 = _tmp15_->len;
+#line 196 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp15_->data = NULL;
+#line 196 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ data = _tmp16_;
+#line 196 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ data_length1 = _tmp16__length1;
+#line 196 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _data_size_ = data_length1;
+#line 197 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_byte_array_unref0 (self->priv->jpeg_data);
+#line 197 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ self->priv->jpeg_data = NULL;
+#line 199 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp17_ = data;
+#line 199 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp17__length1 = data_length1;
+#line 199 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ if (result_length1) {
+#line 199 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ *result_length1 = _tmp17__length1;
+#line 1622 "book.c"
+ }
+#line 199 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ result = _tmp17_;
+#line 199 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ values = (_vala_array_free (values, values_length1, (GDestroyNotify) g_free), NULL);
+#line 199 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ keys = (_vala_array_free (keys, keys_length1, (GDestroyNotify) g_free), NULL);
+#line 199 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return result;
+#line 1632 "book.c"
+}
+
+
+static gboolean book_write_pixbuf_data (Book* self, guint8* buf, int buf_length1, GError** error) {
+ gboolean result = FALSE;
+ GByteArray* _tmp0_;
+ guint8* _tmp1_;
+ gint _tmp1__length1;
+#line 202 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ g_return_val_if_fail (self != NULL, FALSE);
+#line 204 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp0_ = self->priv->jpeg_data;
+#line 204 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp1_ = buf;
+#line 204 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp1__length1 = buf_length1;
+#line 204 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ g_byte_array_append (_tmp0_, _tmp1_, _tmp1__length1);
+#line 205 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ result = TRUE;
+#line 205 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ return result;
+#line 1655 "book.c"
}
static guint8* _vala_array_dup1 (guint8* self, int length) {
+#line 404 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return g_memdup (self, length * sizeof (guint8));
+#line 1662 "book.c"
}
static guint8* _vala_array_dup2 (guint8* self, int length) {
+#line 411 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return g_memdup (self, length * sizeof (guint8));
+#line 1669 "book.c"
}
-static void book_save_pdf (Book* self, GFile* file, GError** error) {
+static void book_save_pdf (Book* self, GFile* file, gint quality, GError** error) {
GFile* _tmp0_;
GFileOutputStream* _tmp1_ = NULL;
GFileOutputStream* stream;
@@ -1184,118 +1710,179 @@ static void book_save_pdf (Book* self, GFile* file, GError** error) {
gchar* _tmp43_;
PDFWriter* _tmp44_;
PDFWriter* _tmp45_;
- PDFWriter* _tmp350_;
- PDFWriter* _tmp351_;
- guint _tmp352_ = 0U;
- guint info_number;
+ PDFWriter* _tmp352_;
PDFWriter* _tmp353_;
- guint _tmp354_;
- gchar* _tmp355_ = NULL;
- gchar* _tmp356_;
- PDFWriter* _tmp357_;
- PDFWriter* _tmp358_;
- gchar* _tmp359_ = NULL;
- gchar* _tmp360_;
- PDFWriter* _tmp361_;
- PDFWriter* _tmp362_;
+ guint _tmp354_ = 0U;
+ guint info_number;
+ PDFWriter* _tmp355_;
+ guint _tmp356_;
+ gchar* _tmp357_ = NULL;
+ gchar* _tmp358_;
+ PDFWriter* _tmp359_;
+ PDFWriter* _tmp360_;
+ gchar* _tmp361_ = NULL;
+ gchar* _tmp362_;
PDFWriter* _tmp363_;
- gsize _tmp364_;
- gsize xref_offset;
+ PDFWriter* _tmp364_;
PDFWriter* _tmp365_;
- PDFWriter* _tmp366_;
+ gsize _tmp366_;
+ gsize xref_offset;
PDFWriter* _tmp367_;
- GList* _tmp368_;
- guint _tmp369_ = 0U;
- gchar* _tmp370_ = NULL;
- gchar* _tmp371_;
- PDFWriter* _tmp372_;
- GList* _tmp373_;
- PDFWriter* _tmp378_;
- PDFWriter* _tmp379_;
+ PDFWriter* _tmp368_;
+ PDFWriter* _tmp369_;
+ GList* _tmp370_;
+ guint _tmp371_ = 0U;
+ gchar* _tmp372_ = NULL;
+ gchar* _tmp373_;
+ PDFWriter* _tmp374_;
+ GList* _tmp375_;
PDFWriter* _tmp380_;
PDFWriter* _tmp381_;
- GList* _tmp382_;
- guint _tmp383_ = 0U;
- gchar* _tmp384_ = NULL;
- gchar* _tmp385_;
- PDFWriter* _tmp386_;
- guint _tmp387_;
- gchar* _tmp388_ = NULL;
- gchar* _tmp389_;
- PDFWriter* _tmp390_;
- guint _tmp391_;
- gchar* _tmp392_ = NULL;
- gchar* _tmp393_;
- PDFWriter* _tmp394_;
- PDFWriter* _tmp395_;
+ PDFWriter* _tmp382_;
+ PDFWriter* _tmp383_;
+ GList* _tmp384_;
+ guint _tmp385_ = 0U;
+ gchar* _tmp386_ = NULL;
+ gchar* _tmp387_;
+ PDFWriter* _tmp388_;
+ guint _tmp389_;
+ gchar* _tmp390_ = NULL;
+ gchar* _tmp391_;
+ PDFWriter* _tmp392_;
+ guint _tmp393_;
+ gchar* _tmp394_ = NULL;
+ gchar* _tmp395_;
PDFWriter* _tmp396_;
- gsize _tmp397_;
- gchar* _tmp398_ = NULL;
- gchar* _tmp399_;
- PDFWriter* _tmp400_;
+ PDFWriter* _tmp397_;
+ PDFWriter* _tmp398_;
+ gsize _tmp399_;
+ gchar* _tmp400_ = NULL;
+ gchar* _tmp401_;
+ PDFWriter* _tmp402_;
GError * _inner_error_ = NULL;
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (self != NULL);
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (file != NULL);
+#line 210 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp0_ = file;
+#line 210 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp1_ = g_file_replace (_tmp0_, NULL, FALSE, G_FILE_CREATE_NONE, NULL, &_inner_error_);
+#line 210 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
stream = _tmp1_;
+#line 210 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (_inner_error_ != NULL) {
+#line 210 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_propagate_error (error, _inner_error_);
+#line 210 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return;
+#line 1780 "book.c"
}
+#line 211 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp2_ = pdf_writer_new (stream);
+#line 211 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
writer = _tmp2_;
+#line 214 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp3_ = writer;
+#line 214 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
pdf_writer_write_string (_tmp3_, "%PDF-1.3\n");
+#line 217 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp4_ = writer;
+#line 217 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
pdf_writer_write_string (_tmp4_, "%\xe2\xe3\xcf\xd3\n");
+#line 220 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp5_ = writer;
+#line 220 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp6_ = pdf_writer_start_object (_tmp5_);
+#line 220 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
catalog_number = _tmp6_;
+#line 221 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp7_ = writer;
+#line 221 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp8_ = catalog_number;
+#line 221 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp9_ = g_strdup_printf ("%u 0 obj\n", _tmp8_);
+#line 221 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp10_ = _tmp9_;
+#line 221 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
pdf_writer_write_string (_tmp7_, _tmp10_);
+#line 221 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_g_free0 (_tmp10_);
+#line 222 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp11_ = writer;
+#line 222 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
pdf_writer_write_string (_tmp11_, "<<\n");
+#line 223 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp12_ = writer;
+#line 223 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
pdf_writer_write_string (_tmp12_, "/Type /Catalog\n");
+#line 225 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp13_ = writer;
+#line 225 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp14_ = catalog_number;
+#line 225 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp15_ = g_strdup_printf ("/Pages %u 0 R\n", _tmp14_ + 1);
+#line 225 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp16_ = _tmp15_;
+#line 225 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
pdf_writer_write_string (_tmp13_, _tmp16_);
+#line 225 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_g_free0 (_tmp16_);
+#line 226 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp17_ = writer;
+#line 226 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
pdf_writer_write_string (_tmp17_, ">>\n");
+#line 227 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp18_ = writer;
+#line 227 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
pdf_writer_write_string (_tmp18_, "endobj\n");
+#line 245 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp19_ = writer;
+#line 245 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
pdf_writer_write_string (_tmp19_, "\n");
+#line 246 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp20_ = writer;
+#line 246 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp21_ = pdf_writer_start_object (_tmp20_);
+#line 246 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
pages_number = _tmp21_;
+#line 247 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp22_ = writer;
+#line 247 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp23_ = pages_number;
+#line 247 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp24_ = g_strdup_printf ("%u 0 obj\n", _tmp23_);
+#line 247 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp25_ = _tmp24_;
+#line 247 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
pdf_writer_write_string (_tmp22_, _tmp25_);
+#line 247 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_g_free0 (_tmp25_);
+#line 248 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp26_ = writer;
+#line 248 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
pdf_writer_write_string (_tmp26_, "<<\n");
+#line 249 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp27_ = writer;
+#line 249 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
pdf_writer_write_string (_tmp27_, "/Type /Pages\n");
+#line 250 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp28_ = writer;
+#line 250 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
pdf_writer_write_string (_tmp28_, "/Kids [");
+#line 1874 "book.c"
{
gint i;
+#line 251 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
i = 0;
+#line 1879 "book.c"
{
gboolean _tmp29_;
+#line 251 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp29_ = TRUE;
+#line 251 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
while (TRUE) {
+#line 1886 "book.c"
gboolean _tmp30_;
gint _tmp32_;
guint _tmp33_ = 0U;
@@ -1304,47 +1891,85 @@ static void book_save_pdf (Book* self, GFile* file, GError** error) {
gint _tmp36_;
gchar* _tmp37_ = NULL;
gchar* _tmp38_;
+#line 251 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp30_ = _tmp29_;
+#line 251 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (!_tmp30_) {
+#line 1899 "book.c"
gint _tmp31_;
+#line 251 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp31_ = i;
+#line 251 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
i = _tmp31_ + 1;
+#line 1905 "book.c"
}
+#line 251 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp29_ = FALSE;
+#line 251 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp32_ = i;
+#line 251 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp33_ = book_get_n_pages (self);
+#line 251 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (!(((guint) _tmp32_) < _tmp33_)) {
+#line 251 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
break;
+#line 1917 "book.c"
}
+#line 252 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp34_ = writer;
+#line 252 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp35_ = pages_number;
+#line 252 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp36_ = i;
+#line 252 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp37_ = g_strdup_printf (" %u 0 R", (_tmp35_ + 1) + (_tmp36_ * 3));
+#line 252 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp38_ = _tmp37_;
+#line 252 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
pdf_writer_write_string (_tmp34_, _tmp38_);
+#line 252 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_g_free0 (_tmp38_);
+#line 1933 "book.c"
}
}
}
+#line 253 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp39_ = writer;
+#line 253 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
pdf_writer_write_string (_tmp39_, " ]\n");
+#line 254 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp40_ = writer;
+#line 254 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp41_ = book_get_n_pages (self);
+#line 254 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp42_ = g_strdup_printf ("/Count %u\n", _tmp41_);
+#line 254 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp43_ = _tmp42_;
+#line 254 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
pdf_writer_write_string (_tmp40_, _tmp43_);
+#line 254 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_g_free0 (_tmp43_);
+#line 255 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp44_ = writer;
+#line 255 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
pdf_writer_write_string (_tmp44_, ">>\n");
+#line 256 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp45_ = writer;
+#line 256 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
pdf_writer_write_string (_tmp45_, "endobj\n");
+#line 1961 "book.c"
{
gint i;
+#line 258 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
i = 0;
+#line 1966 "book.c"
{
gboolean _tmp46_;
+#line 258 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp46_ = TRUE;
+#line 258 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
while (TRUE) {
+#line 1973 "book.c"
gboolean _tmp47_;
gint _tmp49_;
guint _tmp50_ = 0U;
@@ -1399,193 +2024,265 @@ static void book_save_pdf (Book* self, GFile* file, GError** error) {
gint _compressed_data_size_;
guint8* _tmp230_;
gint _tmp230__length1;
- PDFWriter* _tmp245_;
- PDFWriter* _tmp246_;
- guint _tmp247_ = 0U;
- guint number;
+ PDFWriter* _tmp247_;
PDFWriter* _tmp248_;
- guint _tmp249_;
- gchar* _tmp250_ = NULL;
- gchar* _tmp251_;
- PDFWriter* _tmp252_;
- PDFWriter* _tmp253_;
+ guint _tmp249_ = 0U;
+ guint number;
+ PDFWriter* _tmp250_;
+ guint _tmp251_;
+ gchar* _tmp252_ = NULL;
+ gchar* _tmp253_;
PDFWriter* _tmp254_;
- guint _tmp255_;
- gchar* _tmp256_ = NULL;
- gchar* _tmp257_;
- PDFWriter* _tmp258_;
- gint _tmp259_;
- guint _tmp260_;
- gchar* _tmp261_ = NULL;
- gchar* _tmp262_;
- PDFWriter* _tmp263_;
- gdouble _tmp264_;
- gchar* _tmp265_;
- gint _tmp265__length1;
- const gchar* _tmp266_ = NULL;
- gdouble _tmp267_;
- gchar* _tmp268_;
- gint _tmp268__length1;
- const gchar* _tmp269_ = NULL;
- gchar* _tmp270_ = NULL;
- gchar* _tmp271_;
- PDFWriter* _tmp272_;
- guint _tmp273_;
- gchar* _tmp274_ = NULL;
- gchar* _tmp275_;
- PDFWriter* _tmp276_;
- PDFWriter* _tmp277_;
+ PDFWriter* _tmp255_;
+ PDFWriter* _tmp256_;
+ guint _tmp257_;
+ gchar* _tmp258_ = NULL;
+ gchar* _tmp259_;
+ PDFWriter* _tmp260_;
+ gint _tmp261_;
+ guint _tmp262_;
+ gchar* _tmp263_ = NULL;
+ gchar* _tmp264_;
+ PDFWriter* _tmp265_;
+ gdouble _tmp266_;
+ gchar* _tmp267_;
+ gint _tmp267__length1;
+ const gchar* _tmp268_ = NULL;
+ gdouble _tmp269_;
+ gchar* _tmp270_;
+ gint _tmp270__length1;
+ const gchar* _tmp271_ = NULL;
+ gchar* _tmp272_ = NULL;
+ gchar* _tmp273_;
+ PDFWriter* _tmp274_;
+ guint _tmp275_;
+ gchar* _tmp276_ = NULL;
+ gchar* _tmp277_;
PDFWriter* _tmp278_;
PDFWriter* _tmp279_;
- guint _tmp280_ = 0U;
+ PDFWriter* _tmp280_;
PDFWriter* _tmp281_;
- guint _tmp282_;
- gchar* _tmp283_ = NULL;
- gchar* _tmp284_;
- PDFWriter* _tmp285_;
- PDFWriter* _tmp286_;
+ guint _tmp282_ = 0U;
+ PDFWriter* _tmp283_;
+ guint _tmp284_;
+ gchar* _tmp285_ = NULL;
+ gchar* _tmp286_;
PDFWriter* _tmp287_;
PDFWriter* _tmp288_;
- gint _tmp289_;
- gchar* _tmp290_ = NULL;
- gchar* _tmp291_;
- PDFWriter* _tmp292_;
- gint _tmp293_;
- gchar* _tmp294_ = NULL;
- gchar* _tmp295_;
- PDFWriter* _tmp296_;
- const gchar* _tmp297_;
- gchar* _tmp298_ = NULL;
- gchar* _tmp299_;
- PDFWriter* _tmp300_;
- gint _tmp301_;
- gchar* _tmp302_ = NULL;
- gchar* _tmp303_;
- PDFWriter* _tmp304_;
- guint8* _tmp305_;
- gint _tmp305__length1;
- gchar* _tmp306_ = NULL;
- gchar* _tmp307_;
- const gchar* _tmp308_;
- PDFWriter* _tmp313_;
- PDFWriter* _tmp314_;
+ PDFWriter* _tmp289_;
+ PDFWriter* _tmp290_;
+ gint _tmp291_;
+ gchar* _tmp292_ = NULL;
+ gchar* _tmp293_;
+ PDFWriter* _tmp294_;
+ gint _tmp295_;
+ gchar* _tmp296_ = NULL;
+ gchar* _tmp297_;
+ PDFWriter* _tmp298_;
+ const gchar* _tmp299_;
+ gchar* _tmp300_ = NULL;
+ gchar* _tmp301_;
+ PDFWriter* _tmp302_;
+ gint _tmp303_;
+ gchar* _tmp304_ = NULL;
+ gchar* _tmp305_;
+ PDFWriter* _tmp306_;
+ guint8* _tmp307_;
+ gint _tmp307__length1;
+ gchar* _tmp308_ = NULL;
+ gchar* _tmp309_;
+ const gchar* _tmp310_;
PDFWriter* _tmp315_;
- guint8* _tmp316_;
- gint _tmp316__length1;
+ PDFWriter* _tmp316_;
PDFWriter* _tmp317_;
- PDFWriter* _tmp318_;
+ guint8* _tmp318_;
+ gint _tmp318__length1;
PDFWriter* _tmp319_;
- gdouble _tmp320_;
- gchar* _tmp321_;
- gint _tmp321__length1;
- const gchar* _tmp322_ = NULL;
- gdouble _tmp323_;
- gchar* _tmp324_;
- gint _tmp324__length1;
- const gchar* _tmp325_ = NULL;
- gint _tmp326_;
- gchar* _tmp327_ = NULL;
+ PDFWriter* _tmp320_;
+ PDFWriter* _tmp321_;
+ gdouble _tmp322_;
+ gchar* _tmp323_;
+ gint _tmp323__length1;
+ const gchar* _tmp324_ = NULL;
+ gdouble _tmp325_;
+ gchar* _tmp326_;
+ gint _tmp326__length1;
+ const gchar* _tmp327_ = NULL;
+ gint _tmp328_;
+ gchar* _tmp329_ = NULL;
gchar* command;
- PDFWriter* _tmp328_;
- PDFWriter* _tmp329_;
- guint _tmp330_ = 0U;
+ PDFWriter* _tmp330_;
PDFWriter* _tmp331_;
- guint _tmp332_;
- gchar* _tmp333_ = NULL;
- gchar* _tmp334_;
- PDFWriter* _tmp335_;
- PDFWriter* _tmp336_;
- const gchar* _tmp337_;
- gint _tmp338_;
- gint _tmp339_;
- gchar* _tmp340_ = NULL;
- gchar* _tmp341_;
- PDFWriter* _tmp342_;
- PDFWriter* _tmp343_;
+ guint _tmp332_ = 0U;
+ PDFWriter* _tmp333_;
+ guint _tmp334_;
+ gchar* _tmp335_ = NULL;
+ gchar* _tmp336_;
+ PDFWriter* _tmp337_;
+ PDFWriter* _tmp338_;
+ const gchar* _tmp339_;
+ gint _tmp340_;
+ gint _tmp341_;
+ gchar* _tmp342_ = NULL;
+ gchar* _tmp343_;
PDFWriter* _tmp344_;
- const gchar* _tmp345_;
+ PDFWriter* _tmp345_;
PDFWriter* _tmp346_;
- PDFWriter* _tmp347_;
+ const gchar* _tmp347_;
PDFWriter* _tmp348_;
- gint _tmp349_;
+ PDFWriter* _tmp349_;
+ PDFWriter* _tmp350_;
+ gint _tmp351_;
+#line 258 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp47_ = _tmp46_;
+#line 258 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (!_tmp47_) {
+#line 2141 "book.c"
gint _tmp48_;
+#line 258 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp48_ = i;
+#line 258 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
i = _tmp48_ + 1;
+#line 2147 "book.c"
}
+#line 258 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp46_ = FALSE;
+#line 258 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp49_ = i;
+#line 258 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp50_ = book_get_n_pages (self);
+#line 258 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (!(((guint) _tmp49_) < _tmp50_)) {
+#line 258 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
break;
+#line 2159 "book.c"
}
+#line 260 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp51_ = i;
+#line 260 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp52_ = book_get_page (self, _tmp51_);
+#line 260 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
page = _tmp52_;
+#line 261 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp53_ = page;
+#line 261 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp54_ = page_get_image (_tmp53_, TRUE);
+#line 261 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
image = _tmp54_;
+#line 262 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp55_ = image;
+#line 262 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp56_ = gdk_pixbuf_get_width (_tmp55_);
+#line 262 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
width = _tmp56_;
+#line 263 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp57_ = image;
+#line 263 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp58_ = gdk_pixbuf_get_height (_tmp57_);
+#line 263 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
height = _tmp58_;
+#line 264 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp59_ = image;
+#line 264 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp60_ = gdk_pixbuf_get_pixels (_tmp59_);
+#line 264 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
pixels = _tmp60_;
+#line 264 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
pixels_length1 = -1;
+#line 264 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_pixels_size_ = pixels_length1;
+#line 265 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp61_ = width;
+#line 265 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp62_ = page;
+#line 265 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp63_ = page_get_dpi (_tmp62_);
+#line 265 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
page_width = (_tmp61_ * 72.0) / _tmp63_;
+#line 266 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp64_ = height;
+#line 266 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp65_ = page;
+#line 266 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp66_ = page_get_dpi (_tmp65_);
+#line 266 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
page_height = (_tmp64_ * 72.0) / _tmp66_;
+#line 268 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
depth = 8;
+#line 269 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp67_ = g_strdup ("DeviceRGB");
+#line 269 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
color_space = _tmp67_;
+#line 270 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
filter = NULL;
+#line 271 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp68_ = g_new0 (gchar, G_ASCII_DTOSTR_BUF_SIZE);
+#line 271 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
width_buffer = _tmp68_;
+#line 271 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
width_buffer_length1 = G_ASCII_DTOSTR_BUF_SIZE;
+#line 271 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_width_buffer_size_ = width_buffer_length1;
+#line 272 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp69_ = g_new0 (gchar, G_ASCII_DTOSTR_BUF_SIZE);
+#line 272 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
height_buffer = _tmp69_;
+#line 272 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
height_buffer_length1 = G_ASCII_DTOSTR_BUF_SIZE;
+#line 272 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_height_buffer_size_ = height_buffer_length1;
+#line 274 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp70_ = page;
+#line 274 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp71_ = page_is_color (_tmp70_);
+#line 274 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (_tmp71_) {
+#line 2241 "book.c"
gchar* _tmp72_;
gint _tmp73_;
gint _tmp74_;
gint data_length;
gint _tmp75_;
guint8* _tmp76_ = NULL;
+#line 276 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
depth = 8;
+#line 277 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp72_ = g_strdup ("DeviceRGB");
+#line 277 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_g_free0 (color_space);
+#line 277 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
color_space = _tmp72_;
+#line 278 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp73_ = height;
+#line 278 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp74_ = width;
+#line 278 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
data_length = (_tmp73_ * _tmp74_) * 3;
+#line 279 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp75_ = data_length;
+#line 279 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp76_ = g_new0 (guint8, _tmp75_);
+#line 279 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
data = (g_free (data), NULL);
+#line 279 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
data = _tmp76_;
+#line 279 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
data_length1 = _tmp75_;
+#line 279 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_data_size_ = data_length1;
+#line 2274 "book.c"
{
gint row;
+#line 280 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
row = 0;
+#line 2279 "book.c"
{
gboolean _tmp77_;
+#line 280 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp77_ = TRUE;
+#line 280 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
while (TRUE) {
+#line 2286 "book.c"
gboolean _tmp78_;
gint _tmp80_;
gint _tmp81_;
@@ -1596,32 +2293,57 @@ static void book_save_pdf (Book* self, GFile* file, GError** error) {
gint _tmp85_;
gint _tmp86_;
gint out_offset;
+#line 280 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp78_ = _tmp77_;
+#line 280 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (!_tmp78_) {
+#line 2301 "book.c"
gint _tmp79_;
+#line 280 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp79_ = row;
+#line 280 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
row = _tmp79_ + 1;
+#line 2307 "book.c"
}
+#line 280 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp77_ = FALSE;
+#line 280 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp80_ = row;
+#line 280 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp81_ = height;
+#line 280 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (!(_tmp80_ < _tmp81_)) {
+#line 280 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
break;
+#line 2319 "book.c"
}
+#line 282 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp82_ = row;
+#line 282 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp83_ = image;
+#line 282 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp84_ = gdk_pixbuf_get_rowstride (_tmp83_);
+#line 282 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
in_offset = _tmp82_ * _tmp84_;
+#line 283 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp85_ = row;
+#line 283 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp86_ = width;
+#line 283 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
out_offset = (_tmp85_ * _tmp86_) * 3;
+#line 2335 "book.c"
{
gint x;
+#line 284 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
x = 0;
+#line 2340 "book.c"
{
gboolean _tmp87_;
+#line 284 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp87_ = TRUE;
+#line 284 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
while (TRUE) {
+#line 2347 "book.c"
gboolean _tmp88_;
gint _tmp90_;
gint _tmp91_;
@@ -1655,51 +2377,97 @@ static void book_save_pdf (Book* self, GFile* file, GError** error) {
gint _tmp111_;
guint8 _tmp112_;
guint8 _tmp113_;
+#line 284 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp88_ = _tmp87_;
+#line 284 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (!_tmp88_) {
+#line 2385 "book.c"
gint _tmp89_;
+#line 284 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp89_ = x;
+#line 284 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
x = _tmp89_ + 1;
+#line 2391 "book.c"
}
+#line 284 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp87_ = FALSE;
+#line 284 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp90_ = x;
+#line 284 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp91_ = width;
+#line 284 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (!(_tmp90_ < _tmp91_)) {
+#line 284 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
break;
+#line 2403 "book.c"
}
+#line 286 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp92_ = in_offset;
+#line 286 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp93_ = x;
+#line 286 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
in_o = _tmp92_ + (_tmp93_ * 3);
+#line 287 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp94_ = out_offset;
+#line 287 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp95_ = x;
+#line 287 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
out_o = _tmp94_ + (_tmp95_ * 3);
+#line 289 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp96_ = data;
+#line 289 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp96__length1 = data_length1;
+#line 289 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp97_ = out_o;
+#line 289 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp98_ = pixels;
+#line 289 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp98__length1 = pixels_length1;
+#line 289 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp99_ = in_o;
+#line 289 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp100_ = _tmp98_[_tmp99_];
+#line 289 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp96_[_tmp97_] = _tmp100_;
+#line 289 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp101_ = _tmp96_[_tmp97_];
+#line 290 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp102_ = data;
+#line 290 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp102__length1 = data_length1;
+#line 290 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp103_ = out_o;
+#line 290 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp104_ = pixels;
+#line 290 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp104__length1 = pixels_length1;
+#line 290 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp105_ = in_o;
+#line 290 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp106_ = _tmp104_[_tmp105_ + 1];
+#line 290 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp102_[_tmp103_ + 1] = _tmp106_;
+#line 290 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp107_ = _tmp102_[_tmp103_ + 1];
+#line 291 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp108_ = data;
+#line 291 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp108__length1 = data_length1;
+#line 291 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp109_ = out_o;
+#line 291 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp110_ = pixels;
+#line 291 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp110__length1 = pixels_length1;
+#line 291 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp111_ = in_o;
+#line 291 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp112_ = _tmp110_[_tmp111_ + 2];
+#line 291 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp108_[_tmp109_ + 2] = _tmp112_;
+#line 291 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp113_ = _tmp108_[_tmp109_ + 2];
+#line 2471 "book.c"
}
}
}
@@ -1709,9 +2477,13 @@ static void book_save_pdf (Book* self, GFile* file, GError** error) {
} else {
Page* _tmp114_;
gint _tmp115_ = 0;
+#line 295 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp114_ = page;
+#line 295 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp115_ = page_get_depth (_tmp114_);
+#line 295 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (_tmp115_ == 2) {
+#line 2487 "book.c"
gint shift_count;
gchar* _tmp116_;
gint _tmp117_;
@@ -1720,28 +2492,49 @@ static void book_save_pdf (Book* self, GFile* file, GError** error) {
gint _tmp119_;
guint8* _tmp120_ = NULL;
gint offset;
+#line 297 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
shift_count = 6;
+#line 298 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
depth = 2;
+#line 299 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp116_ = g_strdup ("DeviceGray");
+#line 299 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_g_free0 (color_space);
+#line 299 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
color_space = _tmp116_;
+#line 300 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp117_ = height;
+#line 300 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp118_ = width;
+#line 300 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
data_length = _tmp117_ * (((_tmp118_ * 2) + 7) / 8);
+#line 301 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp119_ = data_length;
+#line 301 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp120_ = g_new0 (guint8, _tmp119_);
+#line 301 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
data = (g_free (data), NULL);
+#line 301 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
data = _tmp120_;
+#line 301 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
data_length1 = _tmp119_;
+#line 301 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_data_size_ = data_length1;
+#line 302 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
offset = 0;
+#line 2526 "book.c"
{
gint row;
+#line 303 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
row = 0;
+#line 2531 "book.c"
{
gboolean _tmp121_;
+#line 303 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp121_ = TRUE;
+#line 303 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
while (TRUE) {
+#line 2538 "book.c"
gboolean _tmp122_;
gint _tmp124_;
gint _tmp125_;
@@ -1750,36 +2543,65 @@ static void book_save_pdf (Book* self, GFile* file, GError** error) {
GdkPixbuf* _tmp129_;
gint _tmp130_ = 0;
gint in_offset;
+#line 303 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp122_ = _tmp121_;
+#line 303 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (!_tmp122_) {
+#line 2551 "book.c"
gint _tmp123_;
+#line 303 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp123_ = row;
+#line 303 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
row = _tmp123_ + 1;
+#line 2557 "book.c"
}
+#line 303 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp121_ = FALSE;
+#line 303 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp124_ = row;
+#line 303 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp125_ = height;
+#line 303 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (!(_tmp124_ < _tmp125_)) {
+#line 303 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
break;
+#line 2569 "book.c"
}
+#line 306 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp126_ = shift_count;
+#line 306 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (_tmp126_ != 6) {
+#line 2575 "book.c"
gint _tmp127_;
+#line 308 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp127_ = offset;
+#line 308 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
offset = _tmp127_ + 1;
+#line 309 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
shift_count = 6;
+#line 2583 "book.c"
}
+#line 312 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp128_ = row;
+#line 312 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp129_ = image;
+#line 312 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp130_ = gdk_pixbuf_get_rowstride (_tmp129_);
+#line 312 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
in_offset = _tmp128_ * _tmp130_;
+#line 2593 "book.c"
{
gint x;
+#line 313 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
x = 0;
+#line 2598 "book.c"
{
gboolean _tmp131_;
+#line 313 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp131_ = TRUE;
+#line 313 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
while (TRUE) {
+#line 2605 "book.c"
gboolean _tmp132_;
gint _tmp134_;
gint _tmp135_;
@@ -1792,92 +2614,159 @@ static void book_save_pdf (Book* self, GFile* file, GError** error) {
guint8 p;
guint8 _tmp144_;
gint _tmp159_;
+#line 313 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp132_ = _tmp131_;
+#line 313 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (!_tmp132_) {
+#line 2622 "book.c"
gint _tmp133_;
+#line 313 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp133_ = x;
+#line 313 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
x = _tmp133_ + 1;
+#line 2628 "book.c"
}
+#line 313 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp131_ = FALSE;
+#line 313 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp134_ = x;
+#line 313 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp135_ = width;
+#line 313 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (!(_tmp134_ < _tmp135_)) {
+#line 313 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
break;
+#line 2640 "book.c"
}
+#line 316 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp136_ = shift_count;
+#line 316 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (_tmp136_ == 6) {
+#line 2646 "book.c"
guint8* _tmp137_;
gint _tmp137__length1;
gint _tmp138_;
guint8 _tmp139_;
+#line 317 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp137_ = data;
+#line 317 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp137__length1 = data_length1;
+#line 317 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp138_ = offset;
+#line 317 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp137_[_tmp138_] = (guint8) 0;
+#line 317 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp139_ = _tmp137_[_tmp138_];
+#line 2661 "book.c"
}
+#line 320 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp140_ = pixels;
+#line 320 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp140__length1 = pixels_length1;
+#line 320 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp141_ = in_offset;
+#line 320 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp142_ = x;
+#line 320 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp143_ = _tmp140_[_tmp141_ + (_tmp142_ * 3)];
+#line 320 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
p = _tmp143_;
+#line 321 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp144_ = p;
+#line 321 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (((gint) _tmp144_) >= 192) {
+#line 2679 "book.c"
guint8* _tmp145_;
gint _tmp145__length1;
gint _tmp146_;
gint _tmp147_;
guint8 _tmp148_;
+#line 322 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp145_ = data;
+#line 322 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp145__length1 = data_length1;
+#line 322 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp146_ = offset;
+#line 322 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp147_ = shift_count;
+#line 322 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp145_[_tmp146_] |= (guint8) (3 << _tmp147_);
+#line 322 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp148_ = _tmp145_[_tmp146_];
+#line 2697 "book.c"
} else {
guint8 _tmp149_;
+#line 323 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp149_ = p;
+#line 323 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (((gint) _tmp149_) >= 128) {
+#line 2704 "book.c"
guint8* _tmp150_;
gint _tmp150__length1;
gint _tmp151_;
gint _tmp152_;
guint8 _tmp153_;
+#line 324 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp150_ = data;
+#line 324 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp150__length1 = data_length1;
+#line 324 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp151_ = offset;
+#line 324 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp152_ = shift_count;
+#line 324 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp150_[_tmp151_] |= (guint8) (2 << _tmp152_);
+#line 324 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp153_ = _tmp150_[_tmp151_];
+#line 2722 "book.c"
} else {
guint8 _tmp154_;
+#line 325 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp154_ = p;
+#line 325 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (((gint) _tmp154_) >= 64) {
+#line 2729 "book.c"
guint8* _tmp155_;
gint _tmp155__length1;
gint _tmp156_;
gint _tmp157_;
guint8 _tmp158_;
+#line 326 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp155_ = data;
+#line 326 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp155__length1 = data_length1;
+#line 326 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp156_ = offset;
+#line 326 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp157_ = shift_count;
+#line 326 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp155_[_tmp156_] |= (guint8) (1 << _tmp157_);
+#line 326 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp158_ = _tmp155_[_tmp156_];
+#line 2747 "book.c"
}
}
}
+#line 329 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp159_ = shift_count;
+#line 329 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (_tmp159_ == 0) {
+#line 2755 "book.c"
gint _tmp160_;
+#line 331 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp160_ = offset;
+#line 331 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
offset = _tmp160_ + 1;
+#line 332 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
shift_count = 6;
+#line 2763 "book.c"
} else {
gint _tmp161_;
+#line 335 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp161_ = shift_count;
+#line 335 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
shift_count = _tmp161_ - 2;
+#line 2770 "book.c"
}
}
}
@@ -1888,9 +2777,13 @@ static void book_save_pdf (Book* self, GFile* file, GError** error) {
} else {
Page* _tmp162_;
gint _tmp163_ = 0;
+#line 339 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp162_ = page;
+#line 339 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp163_ = page_get_depth (_tmp162_);
+#line 339 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (_tmp163_ == 1) {
+#line 2787 "book.c"
gint mask;
gchar* _tmp164_;
gint _tmp165_;
@@ -1899,28 +2792,49 @@ static void book_save_pdf (Book* self, GFile* file, GError** error) {
gint _tmp167_;
guint8* _tmp168_ = NULL;
gint offset;
+#line 341 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
mask = 0x80;
+#line 343 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
depth = 1;
+#line 344 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp164_ = g_strdup ("DeviceGray");
+#line 344 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_g_free0 (color_space);
+#line 344 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
color_space = _tmp164_;
+#line 345 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp165_ = height;
+#line 345 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp166_ = width;
+#line 345 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
data_length = _tmp165_ * ((_tmp166_ + 7) / 8);
+#line 346 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp167_ = data_length;
+#line 346 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp168_ = g_new0 (guint8, _tmp167_);
+#line 346 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
data = (g_free (data), NULL);
+#line 346 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
data = _tmp168_;
+#line 346 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
data_length1 = _tmp167_;
+#line 346 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_data_size_ = data_length1;
+#line 347 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
offset = 0;
+#line 2826 "book.c"
{
gint row;
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
row = 0;
+#line 2831 "book.c"
{
gboolean _tmp169_;
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp169_ = TRUE;
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
while (TRUE) {
+#line 2838 "book.c"
gboolean _tmp170_;
gint _tmp172_;
gint _tmp173_;
@@ -1929,36 +2843,65 @@ static void book_save_pdf (Book* self, GFile* file, GError** error) {
GdkPixbuf* _tmp177_;
gint _tmp178_ = 0;
gint in_offset;
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp170_ = _tmp169_;
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (!_tmp170_) {
+#line 2851 "book.c"
gint _tmp171_;
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp171_ = row;
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
row = _tmp171_ + 1;
+#line 2857 "book.c"
}
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp169_ = FALSE;
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp172_ = row;
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp173_ = height;
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (!(_tmp172_ < _tmp173_)) {
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
break;
+#line 2869 "book.c"
}
+#line 351 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp174_ = mask;
+#line 351 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (_tmp174_ != 0x80) {
+#line 2875 "book.c"
gint _tmp175_;
+#line 353 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp175_ = offset;
+#line 353 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
offset = _tmp175_ + 1;
+#line 354 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
mask = 0x80;
+#line 2883 "book.c"
}
+#line 357 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp176_ = row;
+#line 357 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp177_ = image;
+#line 357 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp178_ = gdk_pixbuf_get_rowstride (_tmp177_);
+#line 357 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
in_offset = _tmp176_ * _tmp178_;
+#line 2893 "book.c"
{
gint x;
+#line 358 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
x = 0;
+#line 2898 "book.c"
{
gboolean _tmp179_;
+#line 358 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp179_ = TRUE;
+#line 358 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
while (TRUE) {
+#line 2905 "book.c"
gboolean _tmp180_;
gint _tmp182_;
gint _tmp183_;
@@ -1970,56 +2913,100 @@ static void book_save_pdf (Book* self, GFile* file, GError** error) {
guint8 _tmp191_;
gint _tmp196_;
gint _tmp197_;
+#line 358 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp180_ = _tmp179_;
+#line 358 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (!_tmp180_) {
+#line 2921 "book.c"
gint _tmp181_;
+#line 358 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp181_ = x;
+#line 358 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
x = _tmp181_ + 1;
+#line 2927 "book.c"
}
+#line 358 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp179_ = FALSE;
+#line 358 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp182_ = x;
+#line 358 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp183_ = width;
+#line 358 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (!(_tmp182_ < _tmp183_)) {
+#line 358 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
break;
+#line 2939 "book.c"
}
+#line 361 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp184_ = mask;
+#line 361 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (_tmp184_ == 0x80) {
+#line 2945 "book.c"
guint8* _tmp185_;
gint _tmp185__length1;
gint _tmp186_;
guint8 _tmp187_;
+#line 362 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp185_ = data;
+#line 362 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp185__length1 = data_length1;
+#line 362 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp186_ = offset;
+#line 362 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp185_[_tmp186_] = (guint8) 0;
+#line 362 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp187_ = _tmp185_[_tmp186_];
+#line 2960 "book.c"
}
+#line 365 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp188_ = pixels;
+#line 365 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp188__length1 = pixels_length1;
+#line 365 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp189_ = in_offset;
+#line 365 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp190_ = x;
+#line 365 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp191_ = _tmp188_[_tmp189_ + (_tmp190_ * 3)];
+#line 365 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (((gint) _tmp191_) != 0) {
+#line 2974 "book.c"
guint8* _tmp192_;
gint _tmp192__length1;
gint _tmp193_;
gint _tmp194_;
guint8 _tmp195_;
+#line 366 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp192_ = data;
+#line 366 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp192__length1 = data_length1;
+#line 366 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp193_ = offset;
+#line 366 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp194_ = mask;
+#line 366 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp192_[_tmp193_] |= (guint8) _tmp194_;
+#line 366 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp195_ = _tmp192_[_tmp193_];
+#line 2992 "book.c"
}
+#line 369 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp196_ = mask;
+#line 369 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
mask = _tmp196_ >> 1;
+#line 370 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp197_ = mask;
+#line 370 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (_tmp197_ == 0) {
+#line 3002 "book.c"
gint _tmp198_;
+#line 372 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp198_ = offset;
+#line 372 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
offset = _tmp198_ + 1;
+#line 373 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
mask = 0x80;
+#line 3010 "book.c"
}
}
}
@@ -2034,26 +3021,45 @@ static void book_save_pdf (Book* self, GFile* file, GError** error) {
gint data_length;
gint _tmp202_;
guint8* _tmp203_ = NULL;
+#line 380 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
depth = 8;
+#line 381 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp199_ = g_strdup ("DeviceGray");
+#line 381 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_g_free0 (color_space);
+#line 381 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
color_space = _tmp199_;
+#line 382 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp200_ = height;
+#line 382 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp201_ = width;
+#line 382 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
data_length = _tmp200_ * _tmp201_;
+#line 383 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp202_ = data_length;
+#line 383 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp203_ = g_new0 (guint8, _tmp202_);
+#line 383 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
data = (g_free (data), NULL);
+#line 383 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
data = _tmp203_;
+#line 383 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
data_length1 = _tmp202_;
+#line 383 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_data_size_ = data_length1;
+#line 3051 "book.c"
{
gint row;
+#line 384 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
row = 0;
+#line 3056 "book.c"
{
gboolean _tmp204_;
+#line 384 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp204_ = TRUE;
+#line 384 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
while (TRUE) {
+#line 3063 "book.c"
gboolean _tmp205_;
gint _tmp207_;
gint _tmp208_;
@@ -2064,32 +3070,57 @@ static void book_save_pdf (Book* self, GFile* file, GError** error) {
gint _tmp212_;
gint _tmp213_;
gint out_offset;
+#line 384 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp205_ = _tmp204_;
+#line 384 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (!_tmp205_) {
+#line 3078 "book.c"
gint _tmp206_;
+#line 384 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp206_ = row;
+#line 384 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
row = _tmp206_ + 1;
+#line 3084 "book.c"
}
+#line 384 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp204_ = FALSE;
+#line 384 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp207_ = row;
+#line 384 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp208_ = height;
+#line 384 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (!(_tmp207_ < _tmp208_)) {
+#line 384 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
break;
+#line 3096 "book.c"
}
+#line 386 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp209_ = row;
+#line 386 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp210_ = image;
+#line 386 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp211_ = gdk_pixbuf_get_rowstride (_tmp210_);
+#line 386 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
in_offset = _tmp209_ * _tmp211_;
+#line 387 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp212_ = row;
+#line 387 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp213_ = width;
+#line 387 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
out_offset = _tmp212_ * _tmp213_;
+#line 3112 "book.c"
{
gint x;
+#line 388 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
x = 0;
+#line 3117 "book.c"
{
gboolean _tmp214_;
+#line 388 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp214_ = TRUE;
+#line 388 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
while (TRUE) {
+#line 3124 "book.c"
gboolean _tmp215_;
gint _tmp217_;
gint _tmp218_;
@@ -2103,29 +3134,53 @@ static void book_save_pdf (Book* self, GFile* file, GError** error) {
gint _tmp224_;
guint8 _tmp225_;
guint8 _tmp226_;
+#line 388 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp215_ = _tmp214_;
+#line 388 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (!_tmp215_) {
+#line 3142 "book.c"
gint _tmp216_;
+#line 388 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp216_ = x;
+#line 388 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
x = _tmp216_ + 1;
+#line 3148 "book.c"
}
+#line 388 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp214_ = FALSE;
+#line 388 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp217_ = x;
+#line 388 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp218_ = width;
+#line 388 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (!(_tmp217_ < _tmp218_)) {
+#line 388 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
break;
+#line 3160 "book.c"
}
+#line 389 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp219_ = data;
+#line 389 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp219__length1 = data_length1;
+#line 389 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp220_ = out_offset;
+#line 389 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp221_ = x;
+#line 389 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp222_ = pixels;
+#line 389 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp222__length1 = pixels_length1;
+#line 389 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp223_ = in_offset;
+#line 389 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp224_ = x;
+#line 389 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp225_ = _tmp222_[_tmp223_ + (_tmp224_ * 3)];
+#line 389 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp219_[_tmp220_ + _tmp221_] = _tmp225_;
+#line 389 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp226_ = _tmp219_[_tmp220_ + _tmp221_];
+#line 3184 "book.c"
}
}
}
@@ -2135,421 +3190,801 @@ static void book_save_pdf (Book* self, GFile* file, GError** error) {
}
}
}
+#line 394 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp227_ = data;
+#line 394 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp227__length1 = data_length1;
+#line 394 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp229_ = book_compress_zlib (self, _tmp227_, _tmp227__length1, &_tmp228_);
+#line 394 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
compressed_data = _tmp229_;
+#line 394 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
compressed_data_length1 = _tmp228_;
+#line 394 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_compressed_data_size_ = compressed_data_length1;
+#line 395 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp230_ = compressed_data;
+#line 395 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp230__length1 = compressed_data_length1;
+#line 395 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (_tmp230_ != NULL) {
+#line 3212 "book.c"
gint _tmp231_;
- const gchar* _tmp241_;
+ const gchar* _tmp243_;
+#line 398 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp231_ = depth;
+#line 398 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (_tmp231_ > 1) {
- gsize jpeg_length = 0UL;
+#line 3219 "book.c"
GdkPixbuf* _tmp232_;
- gsize _tmp233_ = 0UL;
- gint _tmp234_ = 0;
- guint8* _tmp235_ = NULL;
+ gint _tmp233_;
+ Page* _tmp234_;
+ gint _tmp235_ = 0;
+ gint _tmp236_ = 0;
+ guint8* _tmp237_ = NULL;
guint8* jpeg_data;
gint jpeg_data_length1;
gint _jpeg_data_size_;
- gsize _tmp236_;
- guint8* _tmp237_;
- gint _tmp237__length1;
+ guint8* _tmp238_;
+ gint _tmp238__length1;
+ guint8* _tmp239_;
+ gint _tmp239__length1;
+#line 400 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp232_ = image;
- _tmp235_ = book_compress_jpeg (self, _tmp232_, &_tmp233_, &_tmp234_);
- jpeg_length = _tmp233_;
- jpeg_data = _tmp235_;
- jpeg_data_length1 = _tmp234_;
+#line 400 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp233_ = quality;
+#line 400 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp234_ = page;
+#line 400 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp235_ = page_get_dpi (_tmp234_);
+#line 400 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp237_ = book_compress_jpeg (self, _tmp232_, _tmp233_, _tmp235_, &_tmp236_);
+#line 400 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ jpeg_data = _tmp237_;
+#line 400 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ jpeg_data_length1 = _tmp236_;
+#line 400 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_jpeg_data_size_ = jpeg_data_length1;
- _tmp236_ = jpeg_length;
- _tmp237_ = compressed_data;
- _tmp237__length1 = compressed_data_length1;
- if (_tmp236_ < ((gsize) _tmp237__length1)) {
- gchar* _tmp238_;
- guint8* _tmp239_;
- gint _tmp239__length1;
- guint8* _tmp240_;
- gint _tmp240__length1;
- _tmp238_ = g_strdup ("DCTDecode");
+#line 401 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp238_ = jpeg_data;
+#line 401 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp238__length1 = jpeg_data_length1;
+#line 401 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp239_ = compressed_data;
+#line 401 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp239__length1 = compressed_data_length1;
+#line 401 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ if (_tmp238__length1 < _tmp239__length1) {
+#line 3259 "book.c"
+ gchar* _tmp240_;
+ guint8* _tmp241_;
+ gint _tmp241__length1;
+ guint8* _tmp242_;
+ gint _tmp242__length1;
+#line 403 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp240_ = g_strdup ("DCTDecode");
+#line 403 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_g_free0 (filter);
- filter = _tmp238_;
- _tmp239_ = jpeg_data;
- _tmp239__length1 = jpeg_data_length1;
- _tmp240_ = (_tmp239_ != NULL) ? _vala_array_dup1 (_tmp239_, _tmp239__length1) : ((gpointer) _tmp239_);
- _tmp240__length1 = _tmp239__length1;
+#line 403 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ filter = _tmp240_;
+#line 404 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp241_ = jpeg_data;
+#line 404 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp241__length1 = jpeg_data_length1;
+#line 404 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp242_ = (_tmp241_ != NULL) ? _vala_array_dup1 (_tmp241_, _tmp241__length1) : ((gpointer) _tmp241_);
+#line 404 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp242__length1 = _tmp241__length1;
+#line 404 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
data = (g_free (data), NULL);
- data = _tmp240_;
- data_length1 = _tmp240__length1;
+#line 404 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ data = _tmp242_;
+#line 404 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ data_length1 = _tmp242__length1;
+#line 404 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_data_size_ = data_length1;
+#line 3287 "book.c"
}
+#line 398 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
jpeg_data = (g_free (jpeg_data), NULL);
+#line 3291 "book.c"
}
- _tmp241_ = filter;
- if (_tmp241_ == NULL) {
- gchar* _tmp242_;
- guint8* _tmp243_;
- gint _tmp243__length1;
- guint8* _tmp244_;
- gint _tmp244__length1;
- _tmp242_ = g_strdup ("FlateDecode");
+#line 408 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp243_ = filter;
+#line 408 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ if (_tmp243_ == NULL) {
+#line 3297 "book.c"
+ gchar* _tmp244_;
+ guint8* _tmp245_;
+ gint _tmp245__length1;
+ guint8* _tmp246_;
+ gint _tmp246__length1;
+#line 410 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp244_ = g_strdup ("FlateDecode");
+#line 410 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_g_free0 (filter);
- filter = _tmp242_;
- _tmp243_ = compressed_data;
- _tmp243__length1 = compressed_data_length1;
- _tmp244_ = (_tmp243_ != NULL) ? _vala_array_dup2 (_tmp243_, _tmp243__length1) : ((gpointer) _tmp243_);
- _tmp244__length1 = _tmp243__length1;
+#line 410 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ filter = _tmp244_;
+#line 411 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp245_ = compressed_data;
+#line 411 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp245__length1 = compressed_data_length1;
+#line 411 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp246_ = (_tmp245_ != NULL) ? _vala_array_dup2 (_tmp245_, _tmp245__length1) : ((gpointer) _tmp245_);
+#line 411 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp246__length1 = _tmp245__length1;
+#line 411 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
data = (g_free (data), NULL);
- data = _tmp244_;
- data_length1 = _tmp244__length1;
+#line 411 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ data = _tmp246_;
+#line 411 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ data_length1 = _tmp246__length1;
+#line 411 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_data_size_ = data_length1;
+#line 3325 "book.c"
}
}
- _tmp245_ = writer;
- pdf_writer_write_string (_tmp245_, "\n");
- _tmp246_ = writer;
- _tmp247_ = pdf_writer_start_object (_tmp246_);
- number = _tmp247_;
+#line 416 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp247_ = writer;
+#line 416 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp247_, "\n");
+#line 417 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp248_ = writer;
- _tmp249_ = number;
- _tmp250_ = g_strdup_printf ("%u 0 obj\n", _tmp249_);
- _tmp251_ = _tmp250_;
- pdf_writer_write_string (_tmp248_, _tmp251_);
- _g_free0 (_tmp251_);
- _tmp252_ = writer;
- pdf_writer_write_string (_tmp252_, "<<\n");
- _tmp253_ = writer;
- pdf_writer_write_string (_tmp253_, "/Type /Page\n");
+#line 417 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp249_ = pdf_writer_start_object (_tmp248_);
+#line 417 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ number = _tmp249_;
+#line 418 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp250_ = writer;
+#line 418 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp251_ = number;
+#line 418 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp252_ = g_strdup_printf ("%u 0 obj\n", _tmp251_);
+#line 418 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp253_ = _tmp252_;
+#line 418 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp250_, _tmp253_);
+#line 418 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp253_);
+#line 419 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp254_ = writer;
- _tmp255_ = pages_number;
- _tmp256_ = g_strdup_printf ("/Parent %u 0 R\n", _tmp255_);
- _tmp257_ = _tmp256_;
- pdf_writer_write_string (_tmp254_, _tmp257_);
- _g_free0 (_tmp257_);
- _tmp258_ = writer;
- _tmp259_ = i;
- _tmp260_ = number;
- _tmp261_ = g_strdup_printf ("/Resources << /XObject << /Im%d %u 0 R >> >>\n", _tmp259_, _tmp260_ + 1);
- _tmp262_ = _tmp261_;
- pdf_writer_write_string (_tmp258_, _tmp262_);
- _g_free0 (_tmp262_);
- _tmp263_ = writer;
- _tmp264_ = page_width;
- _tmp265_ = width_buffer;
- _tmp265__length1 = width_buffer_length1;
- _tmp266_ = g_ascii_formatd (_tmp265_, _tmp265__length1, "%.2f", _tmp264_);
- _tmp267_ = page_height;
- _tmp268_ = height_buffer;
- _tmp268__length1 = height_buffer_length1;
- _tmp269_ = g_ascii_formatd (_tmp268_, _tmp268__length1, "%.2f", _tmp267_);
- _tmp270_ = g_strdup_printf ("/MediaBox [ 0 0 %s %s ]\n", _tmp266_, _tmp269_);
- _tmp271_ = _tmp270_;
- pdf_writer_write_string (_tmp263_, _tmp271_);
- _g_free0 (_tmp271_);
- _tmp272_ = writer;
- _tmp273_ = number;
- _tmp274_ = g_strdup_printf ("/Contents %u 0 R\n", _tmp273_ + 2);
- _tmp275_ = _tmp274_;
- pdf_writer_write_string (_tmp272_, _tmp275_);
- _g_free0 (_tmp275_);
- _tmp276_ = writer;
- pdf_writer_write_string (_tmp276_, ">>\n");
- _tmp277_ = writer;
- pdf_writer_write_string (_tmp277_, "endobj\n");
+#line 419 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp254_, "<<\n");
+#line 420 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp255_ = writer;
+#line 420 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp255_, "/Type /Page\n");
+#line 421 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp256_ = writer;
+#line 421 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp257_ = pages_number;
+#line 421 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp258_ = g_strdup_printf ("/Parent %u 0 R\n", _tmp257_);
+#line 421 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp259_ = _tmp258_;
+#line 421 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp256_, _tmp259_);
+#line 421 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp259_);
+#line 422 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp260_ = writer;
+#line 422 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp261_ = i;
+#line 422 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp262_ = number;
+#line 422 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp263_ = g_strdup_printf ("/Resources << /XObject << /Im%d %u 0 R >> >>\n", _tmp261_, _tmp262_ + 1);
+#line 422 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp264_ = _tmp263_;
+#line 422 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp260_, _tmp264_);
+#line 422 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp264_);
+#line 423 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp265_ = writer;
+#line 423 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp266_ = page_width;
+#line 423 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp267_ = width_buffer;
+#line 423 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp267__length1 = width_buffer_length1;
+#line 423 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp268_ = g_ascii_formatd (_tmp267_, _tmp267__length1, "%.2f", _tmp266_);
+#line 423 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp269_ = page_height;
+#line 423 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp270_ = height_buffer;
+#line 423 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp270__length1 = height_buffer_length1;
+#line 423 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp271_ = g_ascii_formatd (_tmp270_, _tmp270__length1, "%.2f", _tmp269_);
+#line 423 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp272_ = g_strdup_printf ("/MediaBox [ 0 0 %s %s ]\n", _tmp268_, _tmp271_);
+#line 423 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp273_ = _tmp272_;
+#line 423 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp265_, _tmp273_);
+#line 423 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp273_);
+#line 424 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp274_ = writer;
+#line 424 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp275_ = number;
+#line 424 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp276_ = g_strdup_printf ("/Contents %u 0 R\n", _tmp275_ + 2);
+#line 424 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp277_ = _tmp276_;
+#line 424 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp274_, _tmp277_);
+#line 424 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp277_);
+#line 425 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp278_ = writer;
- pdf_writer_write_string (_tmp278_, "\n");
+#line 425 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp278_, ">>\n");
+#line 426 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp279_ = writer;
- _tmp280_ = pdf_writer_start_object (_tmp279_);
- number = _tmp280_;
+#line 426 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp279_, "endobj\n");
+#line 429 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp280_ = writer;
+#line 429 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp280_, "\n");
+#line 430 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp281_ = writer;
- _tmp282_ = number;
- _tmp283_ = g_strdup_printf ("%u 0 obj\n", _tmp282_);
- _tmp284_ = _tmp283_;
- pdf_writer_write_string (_tmp281_, _tmp284_);
- _g_free0 (_tmp284_);
- _tmp285_ = writer;
- pdf_writer_write_string (_tmp285_, "<<\n");
- _tmp286_ = writer;
- pdf_writer_write_string (_tmp286_, "/Type /XObject\n");
+#line 430 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp282_ = pdf_writer_start_object (_tmp281_);
+#line 430 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ number = _tmp282_;
+#line 431 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp283_ = writer;
+#line 431 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp284_ = number;
+#line 431 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp285_ = g_strdup_printf ("%u 0 obj\n", _tmp284_);
+#line 431 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp286_ = _tmp285_;
+#line 431 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp283_, _tmp286_);
+#line 431 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp286_);
+#line 432 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp287_ = writer;
- pdf_writer_write_string (_tmp287_, "/Subtype /Image\n");
+#line 432 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp287_, "<<\n");
+#line 433 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp288_ = writer;
- _tmp289_ = width;
- _tmp290_ = g_strdup_printf ("/Width %d\n", _tmp289_);
- _tmp291_ = _tmp290_;
- pdf_writer_write_string (_tmp288_, _tmp291_);
- _g_free0 (_tmp291_);
- _tmp292_ = writer;
- _tmp293_ = height;
- _tmp294_ = g_strdup_printf ("/Height %d\n", _tmp293_);
- _tmp295_ = _tmp294_;
- pdf_writer_write_string (_tmp292_, _tmp295_);
- _g_free0 (_tmp295_);
- _tmp296_ = writer;
- _tmp297_ = color_space;
- _tmp298_ = g_strdup_printf ("/ColorSpace /%s\n", _tmp297_);
- _tmp299_ = _tmp298_;
- pdf_writer_write_string (_tmp296_, _tmp299_);
- _g_free0 (_tmp299_);
- _tmp300_ = writer;
- _tmp301_ = depth;
- _tmp302_ = g_strdup_printf ("/BitsPerComponent %d\n", _tmp301_);
- _tmp303_ = _tmp302_;
- pdf_writer_write_string (_tmp300_, _tmp303_);
- _g_free0 (_tmp303_);
- _tmp304_ = writer;
- _tmp305_ = data;
- _tmp305__length1 = data_length1;
- _tmp306_ = g_strdup_printf ("/Length %d\n", _tmp305__length1);
- _tmp307_ = _tmp306_;
- pdf_writer_write_string (_tmp304_, _tmp307_);
- _g_free0 (_tmp307_);
- _tmp308_ = filter;
- if (_tmp308_ != NULL) {
- PDFWriter* _tmp309_;
- const gchar* _tmp310_;
- gchar* _tmp311_ = NULL;
- gchar* _tmp312_;
- _tmp309_ = writer;
- _tmp310_ = filter;
- _tmp311_ = g_strdup_printf ("/Filter /%s\n", _tmp310_);
- _tmp312_ = _tmp311_;
- pdf_writer_write_string (_tmp309_, _tmp312_);
- _g_free0 (_tmp312_);
+#line 433 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp288_, "/Type /XObject\n");
+#line 434 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp289_ = writer;
+#line 434 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp289_, "/Subtype /Image\n");
+#line 435 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp290_ = writer;
+#line 435 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp291_ = width;
+#line 435 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp292_ = g_strdup_printf ("/Width %d\n", _tmp291_);
+#line 435 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp293_ = _tmp292_;
+#line 435 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp290_, _tmp293_);
+#line 435 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp293_);
+#line 436 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp294_ = writer;
+#line 436 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp295_ = height;
+#line 436 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp296_ = g_strdup_printf ("/Height %d\n", _tmp295_);
+#line 436 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp297_ = _tmp296_;
+#line 436 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp294_, _tmp297_);
+#line 436 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp297_);
+#line 437 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp298_ = writer;
+#line 437 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp299_ = color_space;
+#line 437 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp300_ = g_strdup_printf ("/ColorSpace /%s\n", _tmp299_);
+#line 437 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp301_ = _tmp300_;
+#line 437 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp298_, _tmp301_);
+#line 437 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp301_);
+#line 438 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp302_ = writer;
+#line 438 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp303_ = depth;
+#line 438 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp304_ = g_strdup_printf ("/BitsPerComponent %d\n", _tmp303_);
+#line 438 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp305_ = _tmp304_;
+#line 438 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp302_, _tmp305_);
+#line 438 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp305_);
+#line 439 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp306_ = writer;
+#line 439 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp307_ = data;
+#line 439 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp307__length1 = data_length1;
+#line 439 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp308_ = g_strdup_printf ("/Length %d\n", _tmp307__length1);
+#line 439 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp309_ = _tmp308_;
+#line 439 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp306_, _tmp309_);
+#line 439 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp309_);
+#line 440 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp310_ = filter;
+#line 440 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ if (_tmp310_ != NULL) {
+#line 3530 "book.c"
+ PDFWriter* _tmp311_;
+ const gchar* _tmp312_;
+ gchar* _tmp313_ = NULL;
+ gchar* _tmp314_;
+#line 441 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp311_ = writer;
+#line 441 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp312_ = filter;
+#line 441 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp313_ = g_strdup_printf ("/Filter /%s\n", _tmp312_);
+#line 441 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp314_ = _tmp313_;
+#line 441 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp311_, _tmp314_);
+#line 441 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp314_);
+#line 3547 "book.c"
}
- _tmp313_ = writer;
- pdf_writer_write_string (_tmp313_, ">>\n");
- _tmp314_ = writer;
- pdf_writer_write_string (_tmp314_, "stream\n");
+#line 442 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp315_ = writer;
- _tmp316_ = data;
- _tmp316__length1 = data_length1;
- pdf_writer_write (_tmp315_, _tmp316_, _tmp316__length1);
+#line 442 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp315_, ">>\n");
+#line 443 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp316_ = writer;
+#line 443 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp316_, "stream\n");
+#line 444 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp317_ = writer;
- pdf_writer_write_string (_tmp317_, "\n");
- _tmp318_ = writer;
- pdf_writer_write_string (_tmp318_, "endstream\n");
+#line 444 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp318_ = data;
+#line 444 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp318__length1 = data_length1;
+#line 444 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write (_tmp317_, _tmp318_, _tmp318__length1);
+#line 445 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp319_ = writer;
- pdf_writer_write_string (_tmp319_, "endobj\n");
- _tmp320_ = page_width;
- _tmp321_ = width_buffer;
- _tmp321__length1 = width_buffer_length1;
- _tmp322_ = g_ascii_formatd (_tmp321_, _tmp321__length1, "%f", _tmp320_);
- _tmp323_ = page_height;
- _tmp324_ = height_buffer;
- _tmp324__length1 = height_buffer_length1;
- _tmp325_ = g_ascii_formatd (_tmp324_, _tmp324__length1, "%f", _tmp323_);
- _tmp326_ = i;
- _tmp327_ = g_strdup_printf ("q\n%s 0 0 %s 0 0 cm\n/Im%d Do\nQ", _tmp322_, _tmp325_, _tmp326_);
- command = _tmp327_;
- _tmp328_ = writer;
- pdf_writer_write_string (_tmp328_, "\n");
- _tmp329_ = writer;
- _tmp330_ = pdf_writer_start_object (_tmp329_);
- number = _tmp330_;
+#line 445 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp319_, "\n");
+#line 446 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp320_ = writer;
+#line 446 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp320_, "endstream\n");
+#line 447 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp321_ = writer;
+#line 447 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp321_, "endobj\n");
+#line 450 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp322_ = page_width;
+#line 450 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp323_ = width_buffer;
+#line 450 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp323__length1 = width_buffer_length1;
+#line 450 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp324_ = g_ascii_formatd (_tmp323_, _tmp323__length1, "%f", _tmp322_);
+#line 450 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp325_ = page_height;
+#line 450 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp326_ = height_buffer;
+#line 450 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp326__length1 = height_buffer_length1;
+#line 450 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp327_ = g_ascii_formatd (_tmp326_, _tmp326__length1, "%f", _tmp325_);
+#line 450 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp328_ = i;
+#line 450 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp329_ = g_strdup_printf ("q\n%s 0 0 %s 0 0 cm\n/Im%d Do\nQ", _tmp324_, _tmp327_, _tmp328_);
+#line 450 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ command = _tmp329_;
+#line 451 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp330_ = writer;
+#line 451 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp330_, "\n");
+#line 452 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp331_ = writer;
- _tmp332_ = number;
- _tmp333_ = g_strdup_printf ("%u 0 obj\n", _tmp332_);
- _tmp334_ = _tmp333_;
- pdf_writer_write_string (_tmp331_, _tmp334_);
- _g_free0 (_tmp334_);
- _tmp335_ = writer;
- pdf_writer_write_string (_tmp335_, "<<\n");
- _tmp336_ = writer;
- _tmp337_ = command;
- _tmp338_ = strlen (_tmp337_);
- _tmp339_ = _tmp338_;
- _tmp340_ = g_strdup_printf ("/Length %d\n", _tmp339_ + 1);
+#line 452 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp332_ = pdf_writer_start_object (_tmp331_);
+#line 452 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ number = _tmp332_;
+#line 453 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp333_ = writer;
+#line 453 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp334_ = number;
+#line 453 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp335_ = g_strdup_printf ("%u 0 obj\n", _tmp334_);
+#line 453 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp336_ = _tmp335_;
+#line 453 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp333_, _tmp336_);
+#line 453 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp336_);
+#line 454 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp337_ = writer;
+#line 454 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp337_, "<<\n");
+#line 455 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp338_ = writer;
+#line 455 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp339_ = command;
+#line 455 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp340_ = strlen (_tmp339_);
+#line 455 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp341_ = _tmp340_;
- pdf_writer_write_string (_tmp336_, _tmp341_);
- _g_free0 (_tmp341_);
- _tmp342_ = writer;
- pdf_writer_write_string (_tmp342_, ">>\n");
- _tmp343_ = writer;
- pdf_writer_write_string (_tmp343_, "stream\n");
+#line 455 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp342_ = g_strdup_printf ("/Length %d\n", _tmp341_ + 1);
+#line 455 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp343_ = _tmp342_;
+#line 455 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp338_, _tmp343_);
+#line 455 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp343_);
+#line 456 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp344_ = writer;
- _tmp345_ = command;
- pdf_writer_write_string (_tmp344_, _tmp345_);
+#line 456 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp344_, ">>\n");
+#line 457 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp345_ = writer;
+#line 457 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp345_, "stream\n");
+#line 458 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp346_ = writer;
- pdf_writer_write_string (_tmp346_, "\n");
- _tmp347_ = writer;
- pdf_writer_write_string (_tmp347_, "endstream\n");
+#line 458 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp347_ = command;
+#line 458 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp346_, _tmp347_);
+#line 459 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp348_ = writer;
- pdf_writer_write_string (_tmp348_, "endobj\n");
- _tmp349_ = i;
- g_signal_emit_by_name (self, "saving", _tmp349_);
+#line 459 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp348_, "\n");
+#line 460 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp349_ = writer;
+#line 460 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp349_, "endstream\n");
+#line 461 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp350_ = writer;
+#line 461 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp350_, "endobj\n");
+#line 463 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp351_ = i;
+#line 463 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ g_signal_emit_by_name (self, "saving", _tmp351_);
+#line 258 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_g_free0 (command);
+#line 258 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
compressed_data = (g_free (compressed_data), NULL);
+#line 258 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
data = (g_free (data), NULL);
+#line 258 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
height_buffer = (g_free (height_buffer), NULL);
+#line 258 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
width_buffer = (g_free (width_buffer), NULL);
+#line 258 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_g_free0 (filter);
+#line 258 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_g_free0 (color_space);
+#line 258 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_g_object_unref0 (image);
+#line 258 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_page_unref0 (page);
+#line 3689 "book.c"
}
}
}
- _tmp350_ = writer;
- pdf_writer_write_string (_tmp350_, "\n");
- _tmp351_ = writer;
- _tmp352_ = pdf_writer_start_object (_tmp351_);
- info_number = _tmp352_;
+#line 467 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp352_ = writer;
+#line 467 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp352_, "\n");
+#line 468 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp353_ = writer;
- _tmp354_ = info_number;
- _tmp355_ = g_strdup_printf ("%u 0 obj\n", _tmp354_);
- _tmp356_ = _tmp355_;
- pdf_writer_write_string (_tmp353_, _tmp356_);
- _g_free0 (_tmp356_);
- _tmp357_ = writer;
- pdf_writer_write_string (_tmp357_, "<<\n");
- _tmp358_ = writer;
- _tmp359_ = g_strdup_printf ("/Creator (Simple Scan %s)\n", VERSION);
- _tmp360_ = _tmp359_;
- pdf_writer_write_string (_tmp358_, _tmp360_);
- _g_free0 (_tmp360_);
- _tmp361_ = writer;
- pdf_writer_write_string (_tmp361_, ">>\n");
- _tmp362_ = writer;
- pdf_writer_write_string (_tmp362_, "endobj\n");
+#line 468 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp354_ = pdf_writer_start_object (_tmp353_);
+#line 468 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ info_number = _tmp354_;
+#line 469 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp355_ = writer;
+#line 469 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp356_ = info_number;
+#line 469 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp357_ = g_strdup_printf ("%u 0 obj\n", _tmp356_);
+#line 469 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp358_ = _tmp357_;
+#line 469 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp355_, _tmp358_);
+#line 469 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp358_);
+#line 470 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp359_ = writer;
+#line 470 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp359_, "<<\n");
+#line 471 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp360_ = writer;
+#line 471 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp361_ = g_strdup_printf ("/Creator (Simple Scan %s)\n", VERSION);
+#line 471 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp362_ = _tmp361_;
+#line 471 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp360_, _tmp362_);
+#line 471 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp362_);
+#line 472 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp363_ = writer;
- _tmp364_ = _tmp363_->offset;
- xref_offset = _tmp364_;
+#line 472 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp363_, ">>\n");
+#line 473 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp364_ = writer;
+#line 473 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp364_, "endobj\n");
+#line 476 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp365_ = writer;
- pdf_writer_write_string (_tmp365_, "xref\n");
- _tmp366_ = writer;
+#line 476 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp366_ = _tmp365_->offset;
+#line 476 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ xref_offset = _tmp366_;
+#line 477 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp367_ = writer;
- _tmp368_ = _tmp367_->object_offsets;
- _tmp369_ = g_list_length (_tmp368_);
- _tmp370_ = g_strdup_printf ("1 %zu\n", (gsize) _tmp369_);
- _tmp371_ = _tmp370_;
- pdf_writer_write_string (_tmp366_, _tmp371_);
- _g_free0 (_tmp371_);
- _tmp372_ = writer;
- _tmp373_ = _tmp372_->object_offsets;
+#line 477 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp367_, "xref\n");
+#line 478 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp368_ = writer;
+#line 478 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp369_ = writer;
+#line 478 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp370_ = _tmp369_->object_offsets;
+#line 478 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp371_ = g_list_length (_tmp370_);
+#line 478 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp372_ = g_strdup_printf ("1 %zu\n", (gsize) _tmp371_);
+#line 478 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp373_ = _tmp372_;
+#line 478 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp368_, _tmp373_);
+#line 478 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp373_);
+#line 479 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp374_ = writer;
+#line 479 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp375_ = _tmp374_->object_offsets;
+#line 3767 "book.c"
{
GList* offset_collection = NULL;
GList* offset_it = NULL;
- offset_collection = _tmp373_;
+#line 479 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ offset_collection = _tmp375_;
+#line 479 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
for (offset_it = offset_collection; offset_it != NULL; offset_it = offset_it->next) {
+#line 3775 "book.c"
guint offset = 0U;
+#line 479 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
offset = (guint) ((guintptr) offset_it->data);
+#line 3779 "book.c"
{
- PDFWriter* _tmp374_;
- guint _tmp375_;
- gchar* _tmp376_ = NULL;
- gchar* _tmp377_;
- _tmp374_ = writer;
- _tmp375_ = offset;
- _tmp376_ = g_strdup_printf ("%010zu 00000 n \n", (gsize) _tmp375_);
- _tmp377_ = _tmp376_;
- pdf_writer_write_string (_tmp374_, _tmp377_);
- _g_free0 (_tmp377_);
+ PDFWriter* _tmp376_;
+ guint _tmp377_;
+ gchar* _tmp378_ = NULL;
+ gchar* _tmp379_;
+#line 480 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp376_ = writer;
+#line 480 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp377_ = offset;
+#line 480 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp378_ = g_strdup_printf ("%010zu 00000 n \n", (gsize) _tmp377_);
+#line 480 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp379_ = _tmp378_;
+#line 480 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp376_, _tmp379_);
+#line 480 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp379_);
+#line 3797 "book.c"
}
}
}
- _tmp378_ = writer;
- pdf_writer_write_string (_tmp378_, "trailer\n");
- _tmp379_ = writer;
- pdf_writer_write_string (_tmp379_, "<<\n");
+#line 483 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp380_ = writer;
+#line 483 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp380_, "trailer\n");
+#line 484 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp381_ = writer;
- _tmp382_ = _tmp381_->object_offsets;
- _tmp383_ = g_list_length (_tmp382_);
- _tmp384_ = g_strdup_printf ("/Size %zu\n", (gsize) _tmp383_);
- _tmp385_ = _tmp384_;
- pdf_writer_write_string (_tmp380_, _tmp385_);
- _g_free0 (_tmp385_);
- _tmp386_ = writer;
- _tmp387_ = info_number;
- _tmp388_ = g_strdup_printf ("/Info %u 0 R\n", _tmp387_);
- _tmp389_ = _tmp388_;
- pdf_writer_write_string (_tmp386_, _tmp389_);
- _g_free0 (_tmp389_);
- _tmp390_ = writer;
- _tmp391_ = catalog_number;
- _tmp392_ = g_strdup_printf ("/Root %u 0 R\n", _tmp391_);
- _tmp393_ = _tmp392_;
- pdf_writer_write_string (_tmp390_, _tmp393_);
- _g_free0 (_tmp393_);
- _tmp394_ = writer;
- pdf_writer_write_string (_tmp394_, ">>\n");
- _tmp395_ = writer;
- pdf_writer_write_string (_tmp395_, "startxref\n");
+#line 484 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp381_, "<<\n");
+#line 485 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp382_ = writer;
+#line 485 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp383_ = writer;
+#line 485 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp384_ = _tmp383_->object_offsets;
+#line 485 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp385_ = g_list_length (_tmp384_);
+#line 485 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp386_ = g_strdup_printf ("/Size %zu\n", (gsize) _tmp385_);
+#line 485 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp387_ = _tmp386_;
+#line 485 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp382_, _tmp387_);
+#line 485 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp387_);
+#line 486 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp388_ = writer;
+#line 486 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp389_ = info_number;
+#line 486 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp390_ = g_strdup_printf ("/Info %u 0 R\n", _tmp389_);
+#line 486 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp391_ = _tmp390_;
+#line 486 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp388_, _tmp391_);
+#line 486 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp391_);
+#line 487 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp392_ = writer;
+#line 487 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp393_ = catalog_number;
+#line 487 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp394_ = g_strdup_printf ("/Root %u 0 R\n", _tmp393_);
+#line 487 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp395_ = _tmp394_;
+#line 487 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp392_, _tmp395_);
+#line 487 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp395_);
+#line 489 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp396_ = writer;
- _tmp397_ = xref_offset;
- _tmp398_ = g_strdup_printf ("%zu\n", _tmp397_);
- _tmp399_ = _tmp398_;
- pdf_writer_write_string (_tmp396_, _tmp399_);
- _g_free0 (_tmp399_);
- _tmp400_ = writer;
- pdf_writer_write_string (_tmp400_, "%%EOF\n");
+#line 489 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp396_, ">>\n");
+#line 490 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp397_ = writer;
+#line 490 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp397_, "startxref\n");
+#line 491 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp398_ = writer;
+#line 491 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp399_ = xref_offset;
+#line 491 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp400_ = g_strdup_printf ("%zu\n", _tmp399_);
+#line 491 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp401_ = _tmp400_;
+#line 491 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp398_, _tmp401_);
+#line 491 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp401_);
+#line 492 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp402_ = writer;
+#line 492 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp402_, "%%EOF\n");
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_pdf_writer_unref0 (writer);
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_g_object_unref0 (stream);
+#line 3877 "book.c"
}
-void book_save (Book* self, const gchar* type, GFile* file, GError** error) {
+void book_save (Book* self, const gchar* type, gint quality, GFile* file, GError** error) {
const gchar* _tmp0_;
const gchar* _tmp1_;
GQuark _tmp3_ = 0U;
+#line 497 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
static GQuark _tmp2_label0 = 0;
+#line 497 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
static GQuark _tmp2_label1 = 0;
+#line 497 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
static GQuark _tmp2_label2 = 0;
+#line 497 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
static GQuark _tmp2_label3 = 0;
+#line 497 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
static GQuark _tmp2_label4 = 0;
+#line 3895 "book.c"
GError * _inner_error_ = NULL;
+#line 495 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (self != NULL);
+#line 495 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (type != NULL);
+#line 495 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (file != NULL);
+#line 497 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp0_ = type;
+#line 497 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp1_ = _tmp0_;
+#line 497 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp3_ = (NULL == _tmp1_) ? 0 : g_quark_from_string (_tmp1_);
+#line 497 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (((_tmp3_ == ((0 != _tmp2_label0) ? _tmp2_label0 : (_tmp2_label0 = g_quark_from_static_string ("jpeg")))) || (_tmp3_ == ((0 != _tmp2_label1) ? _tmp2_label1 : (_tmp2_label1 = g_quark_from_static_string ("png"))))) || (_tmp3_ == ((0 != _tmp2_label2) ? _tmp2_label2 : (_tmp2_label2 = g_quark_from_static_string ("tiff"))))) {
+#line 497 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
switch (0) {
+#line 3913 "book.c"
default:
{
const gchar* _tmp4_;
- GFile* _tmp5_;
+ gint _tmp5_;
+ GFile* _tmp6_;
+#line 502 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp4_ = type;
- _tmp5_ = file;
- book_save_multi_file (self, _tmp4_, _tmp5_, &_inner_error_);
+#line 502 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp5_ = quality;
+#line 502 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp6_ = file;
+#line 502 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ book_save_multi_file (self, _tmp4_, _tmp5_, _tmp6_, &_inner_error_);
+#line 502 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (_inner_error_ != NULL) {
+#line 502 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_propagate_error (error, _inner_error_);
+#line 502 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return;
+#line 3933 "book.c"
}
+#line 503 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
break;
+#line 3937 "book.c"
}
}
} else if (_tmp3_ == ((0 != _tmp2_label3) ? _tmp2_label3 : (_tmp2_label3 = g_quark_from_static_string ("ps")))) {
+#line 497 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
switch (0) {
+#line 3943 "book.c"
default:
{
- GFile* _tmp6_;
- _tmp6_ = file;
- book_save_ps (self, _tmp6_, &_inner_error_);
+ GFile* _tmp7_;
+#line 505 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp7_ = file;
+#line 505 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ book_save_ps (self, _tmp7_, &_inner_error_);
+#line 505 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (_inner_error_ != NULL) {
+#line 505 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_propagate_error (error, _inner_error_);
+#line 505 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return;
+#line 3957 "book.c"
}
+#line 506 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
break;
+#line 3961 "book.c"
}
}
} else if (_tmp3_ == ((0 != _tmp2_label4) ? _tmp2_label4 : (_tmp2_label4 = g_quark_from_static_string ("pdf")))) {
+#line 497 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
switch (0) {
+#line 3967 "book.c"
default:
{
- GFile* _tmp7_;
- _tmp7_ = file;
- book_save_pdf (self, _tmp7_, &_inner_error_);
+ GFile* _tmp8_;
+ gint _tmp9_;
+#line 508 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp8_ = file;
+#line 508 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp9_ = quality;
+#line 508 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ book_save_pdf (self, _tmp8_, _tmp9_, &_inner_error_);
+#line 508 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (_inner_error_ != NULL) {
+#line 508 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_propagate_error (error, _inner_error_);
+#line 508 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return;
+#line 3984 "book.c"
}
+#line 509 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
break;
+#line 3988 "book.c"
}
}
}
@@ -2562,15 +3997,25 @@ void book_set_needs_saving (Book* self, gboolean needs_saving) {
gboolean _tmp1_;
gboolean _tmp2_;
gboolean _tmp3_;
+#line 513 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (self != NULL);
+#line 515 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp0_ = self->priv->needs_saving;
+#line 515 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
needed_saving = _tmp0_;
+#line 516 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp1_ = needs_saving;
+#line 516 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
self->priv->needs_saving = _tmp1_;
+#line 517 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp2_ = needed_saving;
+#line 517 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp3_ = needs_saving;
+#line 517 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (_tmp2_ != _tmp3_) {
+#line 518 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_signal_emit_by_name (self, "needs-saving-changed");
+#line 4019 "book.c"
}
}
@@ -2578,10 +4023,15 @@ void book_set_needs_saving (Book* self, gboolean needs_saving) {
gboolean book_get_needs_saving (Book* self) {
gboolean result = FALSE;
gboolean _tmp0_;
+#line 521 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_val_if_fail (self != NULL, FALSE);
+#line 523 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp0_ = self->priv->needs_saving;
+#line 523 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
result = _tmp0_;
+#line 523 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return result;
+#line 4035 "book.c"
}
@@ -2592,178 +4042,293 @@ static void g_cclosure_user_marshal_VOID__PAGE (GClosure * closure, GValue * ret
register gpointer data1;
register gpointer data2;
cc = (GCClosure *) closure;
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (n_param_values == 2);
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (G_CCLOSURE_SWAP_DATA (closure)) {
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
data1 = closure->data;
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
data2 = param_values->data[0].v_pointer;
+#line 4054 "book.c"
} else {
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
data1 = param_values->data[0].v_pointer;
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
data2 = closure->data;
+#line 4060 "book.c"
}
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
callback = (GMarshalFunc_VOID__PAGE) (marshal_data ? marshal_data : cc->callback);
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
callback (data1, value_get_page (param_values + 1), data2);
+#line 4066 "book.c"
}
static void value_book_init (GValue* value) {
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
value->data[0].v_pointer = NULL;
+#line 4073 "book.c"
}
static void value_book_free_value (GValue* value) {
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (value->data[0].v_pointer) {
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
book_unref (value->data[0].v_pointer);
+#line 4082 "book.c"
}
}
static void value_book_copy_value (const GValue* src_value, GValue* dest_value) {
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (src_value->data[0].v_pointer) {
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
dest_value->data[0].v_pointer = book_ref (src_value->data[0].v_pointer);
+#line 4092 "book.c"
} else {
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
dest_value->data[0].v_pointer = NULL;
+#line 4096 "book.c"
}
}
static gpointer value_book_peek_pointer (const GValue* value) {
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return value->data[0].v_pointer;
+#line 4104 "book.c"
}
static gchar* value_book_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (collect_values[0].v_pointer) {
+#line 4111 "book.c"
Book* object;
object = collect_values[0].v_pointer;
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (object->parent_instance.g_class == NULL) {
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 4118 "book.c"
} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 4122 "book.c"
}
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
value->data[0].v_pointer = book_ref (object);
+#line 4126 "book.c"
} else {
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
value->data[0].v_pointer = NULL;
+#line 4130 "book.c"
}
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return NULL;
+#line 4134 "book.c"
}
static gchar* value_book_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
Book** object_p;
object_p = collect_values[0].v_pointer;
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (!object_p) {
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
+#line 4145 "book.c"
}
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (!value->data[0].v_pointer) {
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
*object_p = NULL;
+#line 4151 "book.c"
} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
*object_p = value->data[0].v_pointer;
+#line 4155 "book.c"
} else {
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
*object_p = book_ref (value->data[0].v_pointer);
+#line 4159 "book.c"
}
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return NULL;
+#line 4163 "book.c"
}
GParamSpec* param_spec_book (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
ParamSpecBook* spec;
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_val_if_fail (g_type_is_a (object_type, TYPE_BOOK), NULL);
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
G_PARAM_SPEC (spec)->value_type = object_type;
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return G_PARAM_SPEC (spec);
+#line 4177 "book.c"
}
gpointer value_get_book (const GValue* value) {
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_BOOK), NULL);
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return value->data[0].v_pointer;
+#line 4186 "book.c"
}
void value_set_book (GValue* value, gpointer v_object) {
Book* old;
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_BOOK));
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
old = value->data[0].v_pointer;
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (v_object) {
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_BOOK));
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
value->data[0].v_pointer = v_object;
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
book_ref (value->data[0].v_pointer);
+#line 4206 "book.c"
} else {
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
value->data[0].v_pointer = NULL;
+#line 4210 "book.c"
}
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (old) {
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
book_unref (old);
+#line 4216 "book.c"
}
}
void value_take_book (GValue* value, gpointer v_object) {
Book* old;
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_BOOK));
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
old = value->data[0].v_pointer;
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (v_object) {
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_BOOK));
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
value->data[0].v_pointer = v_object;
+#line 4235 "book.c"
} else {
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
value->data[0].v_pointer = NULL;
+#line 4239 "book.c"
}
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (old) {
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
book_unref (old);
+#line 4245 "book.c"
}
}
static void book_class_init (BookClass * klass) {
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
book_parent_class = g_type_class_peek_parent (klass);
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
BOOK_CLASS (klass)->finalize = book_finalize;
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_type_class_add_private (klass, sizeof (BookPrivate));
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_signal_new ("page_added", TYPE_BOOK, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__PAGE, G_TYPE_NONE, 1, TYPE_PAGE);
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_signal_new ("page_removed", TYPE_BOOK, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__PAGE, G_TYPE_NONE, 1, TYPE_PAGE);
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_signal_new ("reordered", TYPE_BOOK, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_signal_new ("cleared", TYPE_BOOK, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_signal_new ("needs_saving_changed", TYPE_BOOK, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_signal_new ("saving", TYPE_BOOK, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__INT, G_TYPE_NONE, 1, G_TYPE_INT);
+#line 4269 "book.c"
}
static void book_instance_init (Book * self) {
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
self->priv = BOOK_GET_PRIVATE (self);
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
self->ref_count = 1;
+#line 4278 "book.c"
}
static void book_finalize (Book* obj) {
Book * self;
GList* _tmp0_;
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_BOOK, Book);
+#line 32 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp0_ = self->priv->pages;
+#line 4289 "book.c"
{
GList* page_collection = NULL;
GList* page_it = NULL;
+#line 32 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
page_collection = _tmp0_;
+#line 32 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
for (page_it = page_collection; page_it != NULL; page_it = page_it->next) {
+#line 4297 "book.c"
Page* _tmp1_;
Page* page = NULL;
+#line 32 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp1_ = _page_ref0 ((Page*) page_it->data);
+#line 32 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
page = _tmp1_;
+#line 4304 "book.c"
{
Page* _tmp2_;
guint _tmp3_ = 0U;
Page* _tmp4_;
guint _tmp5_ = 0U;
+#line 34 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp2_ = page;
+#line 34 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_signal_parse_name ("pixels-changed", TYPE_PAGE, &_tmp3_, NULL, FALSE);
+#line 34 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _book_page_changed_cb_page_pixels_changed, self);
+#line 35 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp4_ = page;
+#line 35 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_signal_parse_name ("crop-changed", TYPE_PAGE, &_tmp5_, NULL, FALSE);
+#line 35 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_signal_handlers_disconnect_matched (_tmp4_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _book_page_changed_cb_page_crop_changed, self);
+#line 32 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_page_unref0 (page);
+#line 4324 "book.c"
}
}
}
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
__g_list_free__page_unref0_0 (self->priv->pages);
+#line 182 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_byte_array_unref0 (self->priv->jpeg_data);
+#line 4332 "book.c"
}
@@ -2784,23 +4349,32 @@ GType book_get_type (void) {
gpointer book_ref (gpointer instance) {
Book* self;
self = instance;
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_atomic_int_inc (&self->ref_count);
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return instance;
+#line 4357 "book.c"
}
void book_unref (gpointer instance) {
Book* self;
self = instance;
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (g_atomic_int_dec_and_test (&self->ref_count)) {
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
BOOK_GET_CLASS (self)->finalize (self);
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_type_free_instance ((GTypeInstance *) self);
+#line 4370 "book.c"
}
}
static gpointer _g_object_ref0 (gpointer self) {
+#line 535 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return self ? g_object_ref (self) : NULL;
+#line 4378 "book.c"
}
@@ -2808,18 +4382,28 @@ PDFWriter* pdf_writer_construct (GType object_type, GFileOutputStream* stream) {
PDFWriter* self = NULL;
GFileOutputStream* _tmp0_;
GFileOutputStream* _tmp1_;
+#line 533 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_val_if_fail (stream != NULL, NULL);
+#line 533 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
self = (PDFWriter*) g_type_create_instance (object_type);
+#line 535 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp0_ = stream;
+#line 535 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp1_ = _g_object_ref0 (_tmp0_);
+#line 535 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_g_object_unref0 (self->priv->stream);
+#line 535 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
self->priv->stream = _tmp1_;
+#line 533 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return self;
+#line 4400 "book.c"
}
PDFWriter* pdf_writer_new (GFileOutputStream* stream) {
+#line 533 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return pdf_writer_construct (TYPE_PDF_WRITER, stream);
+#line 4407 "book.c"
}
@@ -2828,42 +4412,67 @@ void pdf_writer_write (PDFWriter* self, guint8* data, int data_length1) {
guint8* _tmp5_;
gint _tmp5__length1;
GError * _inner_error_ = NULL;
+#line 538 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (self != NULL);
+#line 4418 "book.c"
{
GFileOutputStream* _tmp0_;
guint8* _tmp1_;
gint _tmp1__length1;
+#line 542 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp0_ = self->priv->stream;
+#line 542 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp1_ = data;
+#line 542 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp1__length1 = data_length1;
+#line 542 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_output_stream_write_all ((GOutputStream*) _tmp0_, _tmp1_, (gsize) _tmp1__length1, NULL, NULL, &_inner_error_);
+#line 542 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (_inner_error_ != NULL) {
- goto __catch0_g_error;
+#line 4433 "book.c"
+ goto __catch1_g_error;
}
}
- goto __finally0;
- __catch0_g_error:
+ goto __finally1;
+ __catch1_g_error:
{
GError* e = NULL;
GError* _tmp2_;
const gchar* _tmp3_;
+#line 540 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
e = _inner_error_;
+#line 540 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_inner_error_ = NULL;
+#line 546 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp2_ = e;
+#line 546 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp3_ = _tmp2_->message;
- g_warning ("book.vala:562: Error writing PDF: %s", _tmp3_);
+#line 546 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ g_warning ("book.vala:546: Error writing PDF: %s", _tmp3_);
+#line 540 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_g_error_free0 (e);
+#line 4455 "book.c"
}
- __finally0:
+ __finally1:
+#line 540 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (_inner_error_ != NULL) {
+#line 540 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 540 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_clear_error (&_inner_error_);
+#line 540 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return;
+#line 4466 "book.c"
}
+#line 548 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp4_ = self->offset;
+#line 548 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp5_ = data;
+#line 548 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp5__length1 = data_length1;
+#line 548 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
self->offset = _tmp4_ + _tmp5__length1;
+#line 4476 "book.c"
}
@@ -2882,27 +4491,49 @@ static gchar* string_to_utf8 (const gchar* self, int* result_length1) {
gint _tmp6_;
gchar* _tmp7_;
gint _tmp7__length1;
+#line 1267 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
g_return_val_if_fail (self != NULL, NULL);
+#line 1268 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp0_ = strlen (self);
+#line 1268 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp1_ = _tmp0_;
+#line 1268 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp2_ = g_new0 (gchar, _tmp1_ + 1);
+#line 1268 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_result_ = _tmp2_;
+#line 1268 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_result__length1 = _tmp1_ + 1;
+#line 1268 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
__result__size_ = _result__length1;
+#line 1269 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp3_ = _result__length1;
+#line 1269 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_result__length1 = _tmp3_ - 1;
+#line 1270 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp4_ = _result_;
+#line 1270 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp4__length1 = _result__length1;
+#line 1270 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp5_ = strlen (self);
+#line 1270 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp6_ = _tmp5_;
+#line 1270 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
memcpy (_tmp4_, self, (gsize) _tmp6_);
+#line 1271 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp7_ = _result_;
+#line 1271 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp7__length1 = _result__length1;
+#line 1271 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
if (result_length1) {
+#line 1271 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
*result_length1 = _tmp7__length1;
+#line 4531 "book.c"
}
+#line 1271 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
result = _tmp7_;
+#line 1271 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
return result;
+#line 4537 "book.c"
}
@@ -2912,14 +4543,23 @@ void pdf_writer_write_string (PDFWriter* self, const gchar* text) {
gchar* _tmp2_ = NULL;
guint8* _tmp3_;
gint _tmp3__length1;
+#line 551 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (self != NULL);
+#line 551 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (text != NULL);
+#line 553 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp0_ = text;
+#line 553 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp2_ = string_to_utf8 (_tmp0_, &_tmp1_);
+#line 553 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp3_ = (guint8*) _tmp2_;
+#line 553 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp3__length1 = (_tmp1_ * sizeof (gchar)) / sizeof (guint8);
+#line 553 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
pdf_writer_write (self, _tmp3_, (_tmp1_ * sizeof (gchar)) / sizeof (guint8));
+#line 553 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp3_ = (g_free (_tmp3_), NULL);
+#line 4563 "book.c"
}
@@ -2928,145 +4568,235 @@ guint pdf_writer_start_object (PDFWriter* self) {
gsize _tmp0_;
GList* _tmp1_;
guint _tmp2_ = 0U;
+#line 556 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_val_if_fail (self != NULL, 0U);
+#line 558 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp0_ = self->offset;
+#line 558 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
self->object_offsets = g_list_append (self->object_offsets, (gpointer) ((guintptr) ((guint) _tmp0_)));
+#line 559 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp1_ = self->object_offsets;
+#line 559 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp2_ = g_list_length (_tmp1_);
+#line 559 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
result = _tmp2_;
+#line 559 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return result;
+#line 4586 "book.c"
}
static void value_pdf_writer_init (GValue* value) {
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
value->data[0].v_pointer = NULL;
+#line 4593 "book.c"
}
static void value_pdf_writer_free_value (GValue* value) {
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (value->data[0].v_pointer) {
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
pdf_writer_unref (value->data[0].v_pointer);
+#line 4602 "book.c"
}
}
static void value_pdf_writer_copy_value (const GValue* src_value, GValue* dest_value) {
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (src_value->data[0].v_pointer) {
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
dest_value->data[0].v_pointer = pdf_writer_ref (src_value->data[0].v_pointer);
+#line 4612 "book.c"
} else {
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
dest_value->data[0].v_pointer = NULL;
+#line 4616 "book.c"
}
}
static gpointer value_pdf_writer_peek_pointer (const GValue* value) {
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return value->data[0].v_pointer;
+#line 4624 "book.c"
}
static gchar* value_pdf_writer_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (collect_values[0].v_pointer) {
+#line 4631 "book.c"
PDFWriter* object;
object = collect_values[0].v_pointer;
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (object->parent_instance.g_class == NULL) {
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 4638 "book.c"
} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 4642 "book.c"
}
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
value->data[0].v_pointer = pdf_writer_ref (object);
+#line 4646 "book.c"
} else {
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
value->data[0].v_pointer = NULL;
+#line 4650 "book.c"
}
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return NULL;
+#line 4654 "book.c"
}
static gchar* value_pdf_writer_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
PDFWriter** object_p;
object_p = collect_values[0].v_pointer;
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (!object_p) {
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
+#line 4665 "book.c"
}
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (!value->data[0].v_pointer) {
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
*object_p = NULL;
+#line 4671 "book.c"
} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
*object_p = value->data[0].v_pointer;
+#line 4675 "book.c"
} else {
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
*object_p = pdf_writer_ref (value->data[0].v_pointer);
+#line 4679 "book.c"
}
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return NULL;
+#line 4683 "book.c"
}
GParamSpec* param_spec_pdf_writer (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
ParamSpecPDFWriter* spec;
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_val_if_fail (g_type_is_a (object_type, TYPE_PDF_WRITER), NULL);
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
G_PARAM_SPEC (spec)->value_type = object_type;
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return G_PARAM_SPEC (spec);
+#line 4697 "book.c"
}
gpointer value_get_pdf_writer (const GValue* value) {
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PDF_WRITER), NULL);
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return value->data[0].v_pointer;
+#line 4706 "book.c"
}
void value_set_pdf_writer (GValue* value, gpointer v_object) {
PDFWriter* old;
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PDF_WRITER));
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
old = value->data[0].v_pointer;
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (v_object) {
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PDF_WRITER));
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
value->data[0].v_pointer = v_object;
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
pdf_writer_ref (value->data[0].v_pointer);
+#line 4726 "book.c"
} else {
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
value->data[0].v_pointer = NULL;
+#line 4730 "book.c"
}
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (old) {
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
pdf_writer_unref (old);
+#line 4736 "book.c"
}
}
void value_take_pdf_writer (GValue* value, gpointer v_object) {
PDFWriter* old;
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PDF_WRITER));
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
old = value->data[0].v_pointer;
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (v_object) {
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PDF_WRITER));
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
value->data[0].v_pointer = v_object;
+#line 4755 "book.c"
} else {
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
value->data[0].v_pointer = NULL;
+#line 4759 "book.c"
}
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (old) {
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
pdf_writer_unref (old);
+#line 4765 "book.c"
}
}
static void pdf_writer_class_init (PDFWriterClass * klass) {
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
pdf_writer_parent_class = g_type_class_peek_parent (klass);
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
PDF_WRITER_CLASS (klass)->finalize = pdf_writer_finalize;
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_type_class_add_private (klass, sizeof (PDFWriterPrivate));
+#line 4777 "book.c"
}
static void pdf_writer_instance_init (PDFWriter * self) {
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
self->priv = PDF_WRITER_GET_PRIVATE (self);
+#line 529 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
self->offset = (gsize) 0;
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
self->ref_count = 1;
+#line 4788 "book.c"
}
static void pdf_writer_finalize (PDFWriter* obj) {
PDFWriter * self;
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PDF_WRITER, PDFWriter);
+#line 530 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_g_list_free0 (self->object_offsets);
+#line 531 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_g_object_unref0 (self->priv->stream);
+#line 4800 "book.c"
}
@@ -3087,17 +4817,24 @@ GType pdf_writer_get_type (void) {
gpointer pdf_writer_ref (gpointer instance) {
PDFWriter* self;
self = instance;
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_atomic_int_inc (&self->ref_count);
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return instance;
+#line 4825 "book.c"
}
void pdf_writer_unref (gpointer instance) {
PDFWriter* self;
self = instance;
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (g_atomic_int_dec_and_test (&self->ref_count)) {
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
PDF_WRITER_GET_CLASS (self)->finalize (self);
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_type_free_instance ((GTypeInstance *) self);
+#line 4838 "book.c"
}
}
@@ -3105,7 +4842,9 @@ void pdf_writer_unref (gpointer instance) {
static cairo_status_t _ps_writer_write_cairo_data_cairo_write_func_t (gpointer self, guchar* data, int data_length1) {
cairo_status_t result;
result = ps_writer_write_cairo_data (self, data, data_length1);
+#line 571 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return result;
+#line 4848 "book.c"
}
@@ -3114,192 +4853,309 @@ PsWriter* ps_writer_construct (GType object_type, GFileOutputStream* stream) {
GFileOutputStream* _tmp0_;
GFileOutputStream* _tmp1_;
cairo_surface_t* _tmp2_;
+#line 568 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_val_if_fail (stream != NULL, NULL);
+#line 568 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
self = (PsWriter*) g_type_create_instance (object_type);
+#line 570 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp0_ = stream;
+#line 570 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp1_ = _g_object_ref0 (_tmp0_);
+#line 570 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_g_object_unref0 (self->stream);
+#line 570 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
self->stream = _tmp1_;
+#line 571 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp2_ = cairo_ps_surface_create_for_stream (_ps_writer_write_cairo_data_cairo_write_func_t, self, (gdouble) 0, (gdouble) 0);
+#line 571 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_cairo_surface_destroy0 (self->surface);
+#line 571 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
self->surface = _tmp2_;
+#line 568 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return self;
+#line 4877 "book.c"
}
PsWriter* ps_writer_new (GFileOutputStream* stream) {
+#line 568 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return ps_writer_construct (TYPE_PS_WRITER, stream);
+#line 4884 "book.c"
}
static cairo_status_t ps_writer_write_cairo_data (PsWriter* self, guint8* data, int data_length1) {
cairo_status_t result = 0;
GError * _inner_error_ = NULL;
+#line 574 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_val_if_fail (self != NULL, 0);
+#line 4893 "book.c"
{
GFileOutputStream* _tmp0_;
guint8* _tmp1_;
gint _tmp1__length1;
+#line 578 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp0_ = self->stream;
+#line 578 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp1_ = data;
+#line 578 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp1__length1 = data_length1;
+#line 578 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_output_stream_write_all ((GOutputStream*) _tmp0_, _tmp1_, (gsize) _tmp1__length1, NULL, NULL, &_inner_error_);
+#line 578 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (_inner_error_ != NULL) {
- goto __catch1_g_error;
+#line 4908 "book.c"
+ goto __catch2_g_error;
}
}
- goto __finally1;
- __catch1_g_error:
+ goto __finally2;
+ __catch2_g_error:
{
GError* e = NULL;
GError* _tmp2_;
const gchar* _tmp3_;
+#line 576 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
e = _inner_error_;
+#line 576 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_inner_error_ = NULL;
+#line 582 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp2_ = e;
+#line 582 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp3_ = _tmp2_->message;
- g_warning ("book.vala:598: Error writing data: %s", _tmp3_);
+#line 582 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ g_warning ("book.vala:582: Error writing data: %s", _tmp3_);
+#line 583 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
result = CAIRO_STATUS_WRITE_ERROR;
+#line 583 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_g_error_free0 (e);
+#line 583 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return result;
+#line 4934 "book.c"
}
- __finally1:
+ __finally2:
+#line 576 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (_inner_error_ != NULL) {
+#line 576 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 576 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_clear_error (&_inner_error_);
+#line 576 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return 0;
+#line 4945 "book.c"
}
+#line 586 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
result = CAIRO_STATUS_SUCCESS;
+#line 586 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return result;
+#line 4951 "book.c"
}
static void value_ps_writer_init (GValue* value) {
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
value->data[0].v_pointer = NULL;
+#line 4958 "book.c"
}
static void value_ps_writer_free_value (GValue* value) {
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (value->data[0].v_pointer) {
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
ps_writer_unref (value->data[0].v_pointer);
+#line 4967 "book.c"
}
}
static void value_ps_writer_copy_value (const GValue* src_value, GValue* dest_value) {
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (src_value->data[0].v_pointer) {
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
dest_value->data[0].v_pointer = ps_writer_ref (src_value->data[0].v_pointer);
+#line 4977 "book.c"
} else {
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
dest_value->data[0].v_pointer = NULL;
+#line 4981 "book.c"
}
}
static gpointer value_ps_writer_peek_pointer (const GValue* value) {
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return value->data[0].v_pointer;
+#line 4989 "book.c"
}
static gchar* value_ps_writer_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (collect_values[0].v_pointer) {
+#line 4996 "book.c"
PsWriter* object;
object = collect_values[0].v_pointer;
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (object->parent_instance.g_class == NULL) {
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 5003 "book.c"
} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 5007 "book.c"
}
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
value->data[0].v_pointer = ps_writer_ref (object);
+#line 5011 "book.c"
} else {
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
value->data[0].v_pointer = NULL;
+#line 5015 "book.c"
}
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return NULL;
+#line 5019 "book.c"
}
static gchar* value_ps_writer_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
PsWriter** object_p;
object_p = collect_values[0].v_pointer;
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (!object_p) {
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
+#line 5030 "book.c"
}
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (!value->data[0].v_pointer) {
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
*object_p = NULL;
+#line 5036 "book.c"
} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
*object_p = value->data[0].v_pointer;
+#line 5040 "book.c"
} else {
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
*object_p = ps_writer_ref (value->data[0].v_pointer);
+#line 5044 "book.c"
}
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return NULL;
+#line 5048 "book.c"
}
GParamSpec* param_spec_ps_writer (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
ParamSpecPsWriter* spec;
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_val_if_fail (g_type_is_a (object_type, TYPE_PS_WRITER), NULL);
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
G_PARAM_SPEC (spec)->value_type = object_type;
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return G_PARAM_SPEC (spec);
+#line 5062 "book.c"
}
gpointer value_get_ps_writer (const GValue* value) {
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PS_WRITER), NULL);
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return value->data[0].v_pointer;
+#line 5071 "book.c"
}
void value_set_ps_writer (GValue* value, gpointer v_object) {
PsWriter* old;
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PS_WRITER));
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
old = value->data[0].v_pointer;
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (v_object) {
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PS_WRITER));
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
value->data[0].v_pointer = v_object;
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
ps_writer_ref (value->data[0].v_pointer);
+#line 5091 "book.c"
} else {
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
value->data[0].v_pointer = NULL;
+#line 5095 "book.c"
}
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (old) {
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
ps_writer_unref (old);
+#line 5101 "book.c"
}
}
void value_take_ps_writer (GValue* value, gpointer v_object) {
PsWriter* old;
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PS_WRITER));
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
old = value->data[0].v_pointer;
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (v_object) {
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PS_WRITER));
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
value->data[0].v_pointer = v_object;
+#line 5120 "book.c"
} else {
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
value->data[0].v_pointer = NULL;
+#line 5124 "book.c"
}
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (old) {
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
ps_writer_unref (old);
+#line 5130 "book.c"
}
}
static void ps_writer_class_init (PsWriterClass * klass) {
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
ps_writer_parent_class = g_type_class_peek_parent (klass);
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
PS_WRITER_CLASS (klass)->finalize = ps_writer_finalize;
+#line 5140 "book.c"
}
static void ps_writer_instance_init (PsWriter * self) {
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
self->ref_count = 1;
+#line 5147 "book.c"
}
static void ps_writer_finalize (PsWriter* obj) {
PsWriter * self;
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PS_WRITER, PsWriter);
+#line 565 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_cairo_surface_destroy0 (self->surface);
+#line 566 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_g_object_unref0 (self->stream);
+#line 5159 "book.c"
}
@@ -3320,19 +5176,44 @@ GType ps_writer_get_type (void) {
gpointer ps_writer_ref (gpointer instance) {
PsWriter* self;
self = instance;
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_atomic_int_inc (&self->ref_count);
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return instance;
+#line 5184 "book.c"
}
void ps_writer_unref (gpointer instance) {
PsWriter* self;
self = instance;
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (g_atomic_int_dec_and_test (&self->ref_count)) {
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
PS_WRITER_GET_CLASS (self)->finalize (self);
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_type_free_instance ((GTypeInstance *) self);
+#line 5197 "book.c"
+ }
+}
+
+
+static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) {
+ if ((array != NULL) && (destroy_func != NULL)) {
+ int i;
+ for (i = 0; i < array_length; i = i + 1) {
+ if (((gpointer*) array)[i] != NULL) {
+ destroy_func (((gpointer*) array)[i]);
+ }
+ }
}
}
+static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) {
+ _vala_array_destroy (array, array_length, destroy_func);
+ g_free (array);
+}
+
+
diff --git a/src/book.vala b/src/book.vala
index 6740fcb..a4e6cdd 100644
--- a/src/book.vala
+++ b/src/book.vala
@@ -113,16 +113,18 @@ public class Book
suffix = basename.slice (extension_index, basename.length);
prefix = uri.slice (0, uri.length - suffix.length);
}
-
- return File.new_for_uri ("%s-%d%s".printf (prefix, i+1, suffix));
+ var width = get_n_pages ().to_string().length;
+ var number_format = "%%0%dd".printf (width);
+ var filename = prefix + "-" + number_format.printf (i + 1) + suffix;
+ return File.new_for_uri (filename);
}
- private void save_multi_file (string type, File file) throws Error
+ private void save_multi_file (string type, int quality, File file) throws Error
{
for (var i = 0; i < get_n_pages (); i++)
{
var page = get_page (i);
- page.save (type, make_indexed_file (file.get_uri (), i));
+ page.save (type, quality, make_indexed_file (file.get_uri (), i));
saving (i);
}
}
@@ -177,50 +179,33 @@ public class Book
return out_data;
}
- private static void jpeg_init_cb (JPEG.Compress info) {}
- private static bool jpeg_empty_cb (JPEG.Compress info) { return true; }
- private static void jpeg_term_cb (JPEG.Compress info) {}
+ private ByteArray jpeg_data;
- private uint8[] compress_jpeg (Gdk.Pixbuf image, out size_t n_written)
+ private uint8[] compress_jpeg (Gdk.Pixbuf image, int quality, int dpi)
{
- var info = JPEG.Compress ();
- var jerr = JPEG.ErrorManager ();
- var dest_mgr = JPEG.DestinationManager ();
-
- info.err = jerr.std_error ();
- info.create_compress ();
-
- info.image_width = image.get_width ();
- info.image_height = image.get_height ();
- info.input_components = 3;
- info.in_color_space = JPEG.ColorSpace.RGB; /* TODO: JCS_GRAYSCALE? */
- info.set_defaults ();
-
- var max_length = info.image_width * info.image_height * info.input_components;
- var data = new uint8[max_length];
- dest_mgr.next_output_byte = data;
- dest_mgr.free_in_buffer = max_length;
- dest_mgr.init_destination = jpeg_init_cb;
- dest_mgr.empty_output_buffer = jpeg_empty_cb;
- dest_mgr.term_destination = jpeg_term_cb;
- info.dest = &dest_mgr;
-
- info.start_compress (true);
- unowned uint8[] pixels = image.get_pixels ();
- for (var r = 0; r < info.image_height; r++)
+ jpeg_data = new ByteArray ();
+ string[] keys = { "quality", "density-unit", "x-density", "y-density", null };
+ string[] values = { "%d".printf (quality), "dots-per-inch", "%d".printf (dpi), "%d".printf (dpi), null };
+ try
+ {
+ image.save_to_callbackv (write_pixbuf_data, "jpeg", keys, values);
+ }
+ catch (Error e)
{
- uint8* row[1];
- row[0] = (uint8*) pixels + r * image.get_rowstride ();
- info.write_scanlines (row, 1);
}
- info.finish_compress ();
- n_written = max_length - dest_mgr.free_in_buffer;
- data.resize ((int) n_written);
+ var data = (owned) jpeg_data.data;
+ jpeg_data = null;
return data;
}
- private void save_pdf (File file) throws Error
+ private bool write_pixbuf_data (uint8[] buf) throws Error
+ {
+ jpeg_data.append (buf);
+ return true;
+ }
+
+ private void save_pdf (File file, int quality) throws Error
{
var stream = file.replace (null, false, FileCreateFlags.NONE, null);
var writer = new PDFWriter (stream);
@@ -412,9 +397,8 @@ public class Book
/* Try if JPEG compression is better */
if (depth > 1)
{
- size_t jpeg_length;
- var jpeg_data = compress_jpeg (image, out jpeg_length);
- if (jpeg_length < compressed_data.length)
+ var jpeg_data = compress_jpeg (image, quality, page.get_dpi ());
+ if (jpeg_data.length < compressed_data.length)
{
filter = "DCTDecode";
data = jpeg_data;
@@ -484,7 +468,7 @@ public class Book
var info_number = writer.start_object ();
writer.write_string ("%u 0 obj\n".printf (info_number));
writer.write_string ("<<\n");
- writer.write_string ("/Creator (Simple Scan %s)\n".printf (Config.VERSION));
+ writer.write_string ("/Creator (Simple Scan %s)\n".printf (VERSION));
writer.write_string (">>\n");
writer.write_string ("endobj\n");
@@ -508,20 +492,20 @@ public class Book
writer.write_string ("%%EOF\n");
}
- public void save (string type, File file) throws Error
+ public void save (string type, int quality, File file) throws Error
{
switch (type)
{
case "jpeg":
case "png":
case "tiff":
- save_multi_file (type, file);
+ save_multi_file (type, quality, file);
break;
case "ps":
save_ps (file);
break;
case "pdf":
- save_pdf (file);
+ save_pdf (file, quality);
break;
}
}
diff --git a/src/config.vapi b/src/config.vapi
index c326020..e6efeda 100644
--- a/src/config.vapi
+++ b/src/config.vapi
@@ -1,10 +1,7 @@
-[CCode (cprefix = "", lower_case_cprefix = "", cheader_filename = "config.h")]
-namespace Config
-{
- public const string PKGDATADIR;
- public const string LOCALE_DIR;
- public const string GETTEXT_PACKAGE;
- public const string VERSION;
- public const string UI_DIR;
- public const string ICON_DIR;
-}
+[CCode (cprefix = "", lower_case_cprefix = "")]
+public const string PKGDATADIR;
+public const string LOCALE_DIR;
+public const string GETTEXT_PACKAGE;
+public const string VERSION;
+public const string UI_DIR;
+public const string ICON_DIR;
diff --git a/src/jpeglib.vapi b/src/jpeglib.vapi
deleted file mode 100644
index 3022b5b..0000000
--- a/src/jpeglib.vapi
+++ /dev/null
@@ -1,57 +0,0 @@
-[CCode (cheader_filename = "jpeglib.h", cprefix = "jpeg_")]
-namespace JPEG {
- [CCode (cprefix = "JCS_")]
- public enum ColorSpace
- {
- UNKNOWN,
- GRAYSCALE,
- RGB,
- YCbCr,
- CMYK,
- YCCK
- }
-
- public ErrorManager std_error (out ErrorManager err);
-
- [CCode (cname = "struct jpeg_compress_struct", cprefix = "jpeg_", destroy_function = "jpeg_destroy_compress")]
- public struct Compress
- {
- public DestinationManager* dest;
- public int image_width;
- public int image_height;
- public int input_components;
- public ColorSpace in_color_space;
- public ErrorManager* err;
-
- public void create_compress ();
- public void set_defaults ();
- public void start_compress (bool write_all_tables);
- public void write_scanlines ([CCode (array_length = false)] uint8*[] scanlines, int num_Lines);
- public void finish_compress ();
- }
-
- [CCode (cname = "struct jpeg_error_mgr")]
- public struct ErrorManager
- {
- [CCode (cname = "jpeg_std_error")]
- public ErrorManager* std_error ();
- }
-
- [CCode (has_target = false)]
- public delegate void InitDestinationFunc (Compress cinfo);
- [CCode (has_target = false)]
- public delegate bool EmptyOutputBufferFunc (Compress cinfo);
- [CCode (has_target = false)]
- public delegate void TermDestinationFunc (Compress cinfo);
-
- [CCode (cname = "struct jpeg_destination_mgr")]
- public struct DestinationManager
- {
- [CCode (array_length = false)]
- public unowned uint8[] next_output_byte;
- public int free_in_buffer;
- public InitDestinationFunc init_destination;
- public EmptyOutputBufferFunc empty_output_buffer;
- public TermDestinationFunc term_destination;
- }
-}
diff --git a/src/page-view.c b/src/page-view.c
index e18691e..7e770a7 100644
--- a/src/page-view.c
+++ b/src/page-view.c
@@ -1,4 +1,4 @@
-/* page-view.c generated by valac 0.18.1, the Vala compiler
+/* page-view.c generated by valac 0.20.1, the Vala compiler
* generated from page-view.vala, do not modify */
/*
@@ -211,32 +211,44 @@ GType crop_location_get_type (void) {
static void _page_view_page_pixels_changed_cb_page_pixels_changed (Page* _sender, gpointer self) {
+#line 85 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
page_view_page_pixels_changed_cb (self, _sender);
+#line 217 "page-view.c"
}
static void _page_view_page_size_changed_cb_page_size_changed (Page* _sender, gpointer self) {
+#line 86 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
page_view_page_size_changed_cb (self, _sender);
+#line 224 "page-view.c"
}
static void _page_view_page_overlay_changed_cb_page_crop_changed (Page* _sender, gpointer self) {
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
page_view_page_overlay_changed_cb (self, _sender);
+#line 231 "page-view.c"
}
static void _page_view_page_overlay_changed_cb_page_scan_line_changed (Page* _sender, gpointer self) {
+#line 88 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
page_view_page_overlay_changed_cb (self, _sender);
+#line 238 "page-view.c"
}
static void _page_view_scan_direction_changed_cb_page_scan_direction_changed (Page* _sender, gpointer self) {
+#line 89 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
page_view_scan_direction_changed_cb (self, _sender);
+#line 245 "page-view.c"
}
static gpointer _page_ref0 (gpointer self) {
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
return self ? page_ref (self) : NULL;
+#line 252 "page-view.c"
}
@@ -249,28 +261,48 @@ PageView* page_view_construct (GType object_type, Page* page) {
Page* _tmp4_;
Page* _tmp5_;
Page* _tmp6_;
+#line 73 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_return_val_if_fail (page != NULL, NULL);
+#line 73 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
self = (PageView*) g_type_create_instance (object_type);
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp0_ = page;
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp1_ = _page_ref0 (_tmp0_);
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_page_unref0 (self->priv->page);
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
self->priv->page = _tmp1_;
+#line 76 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp2_ = page;
+#line 76 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_signal_connect (_tmp2_, "pixels-changed", (GCallback) _page_view_page_pixels_changed_cb_page_pixels_changed, self);
+#line 77 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp3_ = page;
+#line 77 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_signal_connect (_tmp3_, "size-changed", (GCallback) _page_view_page_size_changed_cb_page_size_changed, self);
+#line 78 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp4_ = page;
+#line 78 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_signal_connect (_tmp4_, "crop-changed", (GCallback) _page_view_page_overlay_changed_cb_page_crop_changed, self);
+#line 79 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp5_ = page;
+#line 79 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_signal_connect (_tmp5_, "scan-line-changed", (GCallback) _page_view_page_overlay_changed_cb_page_scan_line_changed, self);
+#line 80 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp6_ = page;
+#line 80 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_signal_connect (_tmp6_, "scan-direction-changed", (GCallback) _page_view_scan_direction_changed_cb_page_scan_direction_changed, self);
+#line 73 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
return self;
+#line 299 "page-view.c"
}
PageView* page_view_new (Page* page) {
+#line 73 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
return page_view_construct (TYPE_PAGE_VIEW, page);
+#line 306 "page-view.c"
}
@@ -278,11 +310,17 @@ Page* page_view_get_page (PageView* self) {
Page* result = NULL;
Page* _tmp0_;
Page* _tmp1_;
+#line 92 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_return_val_if_fail (self != NULL, NULL);
+#line 94 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp0_ = self->priv->page;
+#line 94 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp1_ = _page_ref0 (_tmp0_);
+#line 94 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
result = _tmp1_;
+#line 94 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
return result;
+#line 324 "page-view.c"
}
@@ -293,94 +331,153 @@ void page_view_set_selected (PageView* self, gboolean selected) {
gboolean _tmp4_;
gboolean _tmp9_;
gboolean _tmp10_;
+#line 97 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_return_if_fail (self != NULL);
+#line 99 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp2_ = self->priv->selected;
+#line 99 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp2_) {
+#line 341 "page-view.c"
gboolean _tmp3_;
+#line 99 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp3_ = selected;
+#line 99 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp1_ = _tmp3_;
+#line 347 "page-view.c"
} else {
+#line 99 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp1_ = FALSE;
+#line 351 "page-view.c"
}
+#line 99 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp4_ = _tmp1_;
+#line 99 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp4_) {
+#line 99 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp0_ = TRUE;
+#line 359 "page-view.c"
} else {
gboolean _tmp5_ = FALSE;
gboolean _tmp6_;
gboolean _tmp8_;
+#line 99 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp6_ = self->priv->selected;
+#line 99 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (!_tmp6_) {
+#line 368 "page-view.c"
gboolean _tmp7_;
+#line 99 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp7_ = selected;
+#line 99 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp5_ = !_tmp7_;
+#line 374 "page-view.c"
} else {
+#line 99 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp5_ = FALSE;
+#line 378 "page-view.c"
}
+#line 99 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp8_ = _tmp5_;
+#line 99 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp0_ = _tmp8_;
+#line 384 "page-view.c"
}
+#line 99 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp9_ = _tmp0_;
+#line 99 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp9_) {
+#line 100 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
return;
+#line 392 "page-view.c"
}
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp10_ = selected;
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
self->priv->selected = _tmp10_;
+#line 102 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_signal_emit_by_name (self, "changed");
+#line 400 "page-view.c"
}
gboolean page_view_get_selected (PageView* self) {
gboolean result = FALSE;
gboolean _tmp0_;
+#line 105 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_return_val_if_fail (self != NULL, FALSE);
+#line 107 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp0_ = self->priv->selected;
+#line 107 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
result = _tmp0_;
+#line 107 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
return result;
+#line 415 "page-view.c"
}
void page_view_set_x_offset (PageView* self, gint offset) {
gint _tmp0_;
+#line 110 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_return_if_fail (self != NULL);
+#line 112 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp0_ = offset;
+#line 112 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
self->priv->x_offset = _tmp0_;
+#line 427 "page-view.c"
}
void page_view_set_y_offset (PageView* self, gint offset) {
gint _tmp0_;
+#line 115 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_return_if_fail (self != NULL);
+#line 117 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp0_ = offset;
+#line 117 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
self->priv->y_offset = _tmp0_;
+#line 439 "page-view.c"
}
gint page_view_get_x_offset (PageView* self) {
gint result = 0;
gint _tmp0_;
+#line 120 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_return_val_if_fail (self != NULL, 0);
+#line 122 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp0_ = self->priv->x_offset;
+#line 122 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
result = _tmp0_;
+#line 122 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
return result;
+#line 454 "page-view.c"
}
gint page_view_get_y_offset (PageView* self) {
gint result = 0;
gint _tmp0_;
+#line 125 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_return_val_if_fail (self != NULL, 0);
+#line 127 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp0_ = self->priv->y_offset;
+#line 127 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
result = _tmp0_;
+#line 127 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
return result;
+#line 469 "page-view.c"
}
static guchar page_view_get_sample (PageView* self, guchar* pixels, int pixels_length1, gint offset, gint x, gint depth, gint sample) {
guchar result = '\0';
+#line 130 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_return_val_if_fail (self != NULL, '\0');
+#line 133 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
result = (guchar) 0xFF;
+#line 133 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
return result;
+#line 481 "page-view.c"
}
@@ -439,16 +536,27 @@ static void page_view_get_pixel (PageView* self, Page* page, gint x, gint y, guc
gint _tmp126_;
guchar _tmp127_ = '\0';
guchar _tmp128_;
+#line 136 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_return_if_fail (self != NULL);
+#line 136 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_return_if_fail (page != NULL);
+#line 138 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp0_ = page;
+#line 138 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp1_ = page_get_scan_direction (_tmp0_);
+#line 138 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
switch (_tmp1_) {
+#line 138 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
case SCAN_DIRECTION_TOP_TO_BOTTOM:
+#line 552 "page-view.c"
{
+#line 141 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
break;
+#line 556 "page-view.c"
}
+#line 138 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
case SCAN_DIRECTION_BOTTOM_TO_TOP:
+#line 560 "page-view.c"
{
Page* _tmp2_;
gint _tmp3_ = 0;
@@ -456,17 +564,29 @@ static void page_view_get_pixel (PageView* self, Page* page, gint x, gint y, guc
Page* _tmp5_;
gint _tmp6_ = 0;
gint _tmp7_;
+#line 143 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp2_ = page;
+#line 143 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp3_ = page_get_scan_width (_tmp2_);
+#line 143 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp4_ = x;
+#line 143 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
x = (_tmp3_ - _tmp4_) - 1;
+#line 144 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp5_ = page;
+#line 144 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp6_ = page_get_scan_height (_tmp5_);
+#line 144 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp7_ = y;
+#line 144 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
y = (_tmp6_ - _tmp7_) - 1;
+#line 145 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
break;
+#line 586 "page-view.c"
}
+#line 138 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
case SCAN_DIRECTION_LEFT_TO_RIGHT:
+#line 590 "page-view.c"
{
gint _tmp8_;
gint t;
@@ -474,17 +594,29 @@ static void page_view_get_pixel (PageView* self, Page* page, gint x, gint y, guc
gint _tmp10_ = 0;
gint _tmp11_;
gint _tmp12_;
+#line 147 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp8_ = x;
+#line 147 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
t = _tmp8_;
+#line 148 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp9_ = page;
+#line 148 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp10_ = page_get_scan_width (_tmp9_);
+#line 148 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp11_ = y;
+#line 148 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
x = (_tmp10_ - _tmp11_) - 1;
+#line 149 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp12_ = t;
+#line 149 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
y = _tmp12_;
+#line 150 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
break;
+#line 616 "page-view.c"
}
+#line 138 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
case SCAN_DIRECTION_RIGHT_TO_LEFT:
+#line 620 "page-view.c"
{
gint _tmp13_;
gint t;
@@ -492,44 +624,82 @@ static void page_view_get_pixel (PageView* self, Page* page, gint x, gint y, guc
Page* _tmp15_;
gint _tmp16_ = 0;
gint _tmp17_;
+#line 152 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp13_ = x;
+#line 152 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
t = _tmp13_;
+#line 153 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp14_ = y;
+#line 153 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
x = _tmp14_;
+#line 154 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp15_ = page;
+#line 154 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp16_ = page_get_scan_height (_tmp15_);
+#line 154 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp17_ = t;
+#line 154 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
y = (_tmp16_ - _tmp17_) - 1;
+#line 155 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
break;
+#line 646 "page-view.c"
}
default:
+#line 138 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
break;
+#line 651 "page-view.c"
}
+#line 158 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp18_ = page;
+#line 158 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp19_ = page_get_depth (_tmp18_);
+#line 158 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
depth = _tmp19_;
+#line 159 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp20_ = page;
+#line 159 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp21_ = page_get_n_channels (_tmp20_);
+#line 159 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
n_channels = _tmp21_;
+#line 160 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp22_ = page;
+#line 160 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp24_ = page_get_pixels (_tmp22_, &_tmp23_);
+#line 160 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
pixels = _tmp24_;
+#line 160 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
pixels_length1 = _tmp23_;
+#line 160 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_pixels_size_ = pixels_length1;
+#line 161 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp25_ = page;
+#line 161 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp26_ = page_get_rowstride (_tmp25_);
+#line 161 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp27_ = y;
+#line 161 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
offset = _tmp26_ * _tmp27_;
+#line 164 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp29_ = depth;
+#line 164 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp29_ == 8) {
+#line 687 "page-view.c"
gint _tmp30_;
+#line 164 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp30_ = n_channels;
+#line 164 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp28_ = _tmp30_ == 3;
+#line 693 "page-view.c"
} else {
+#line 164 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp28_ = FALSE;
+#line 697 "page-view.c"
}
+#line 164 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp31_ = _tmp28_;
+#line 164 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp31_) {
+#line 703 "page-view.c"
gint _tmp32_;
gint _tmp33_;
gint _tmp34_;
@@ -555,49 +725,90 @@ static void page_view_get_pixel (PageView* self, Page* page, gint x, gint y, guc
gint _tmp47_;
guchar _tmp48_;
guchar _tmp49_;
+#line 166 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp32_ = offset;
+#line 166 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp33_ = x;
+#line 166 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp34_ = n_channels;
+#line 166 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
o = _tmp32_ + (_tmp33_ * _tmp34_);
+#line 167 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp35_ = pixel;
+#line 167 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp35__length1 = pixel_length1;
+#line 167 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp36_ = pixels;
+#line 167 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp36__length1 = pixels_length1;
+#line 167 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp37_ = o;
+#line 167 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp38_ = _tmp36_[_tmp37_];
+#line 167 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp35_[0] = _tmp38_;
+#line 167 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp39_ = _tmp35_[0];
+#line 168 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp40_ = pixel;
+#line 168 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp40__length1 = pixel_length1;
+#line 168 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp41_ = pixels;
+#line 168 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp41__length1 = pixels_length1;
+#line 168 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp42_ = o;
+#line 168 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp43_ = _tmp41_[_tmp42_ + 1];
+#line 168 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp40_[1] = _tmp43_;
+#line 168 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp44_ = _tmp40_[1];
+#line 169 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp45_ = pixel;
+#line 169 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp45__length1 = pixel_length1;
+#line 169 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp46_ = pixels;
+#line 169 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp46__length1 = pixels_length1;
+#line 169 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp47_ = o;
+#line 169 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp48_ = _tmp46_[_tmp47_ + 2];
+#line 169 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp45_[2] = _tmp48_;
+#line 169 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp49_ = _tmp45_[2];
+#line 170 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
return;
+#line 787 "page-view.c"
} else {
gboolean _tmp50_ = FALSE;
gint _tmp51_;
gboolean _tmp53_;
+#line 172 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp51_ = depth;
+#line 172 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp51_ == 8) {
+#line 796 "page-view.c"
gint _tmp52_;
+#line 172 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp52_ = n_channels;
+#line 172 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp50_ = _tmp52_ == 1;
+#line 802 "page-view.c"
} else {
+#line 172 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp50_ = FALSE;
+#line 806 "page-view.c"
}
+#line 172 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp53_ = _tmp50_;
+#line 172 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp53_) {
+#line 812 "page-view.c"
guchar* _tmp54_;
gint _tmp54__length1;
guchar* _tmp55_;
@@ -612,38 +823,68 @@ static void page_view_get_pixel (PageView* self, Page* page, gint x, gint y, guc
guchar _tmp61_;
guchar _tmp62_;
guchar _tmp63_;
+#line 174 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp54_ = pixel;
+#line 174 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp54__length1 = pixel_length1;
+#line 174 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp55_ = pixel;
+#line 174 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp55__length1 = pixel_length1;
+#line 174 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp56_ = pixel;
+#line 174 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp56__length1 = pixel_length1;
+#line 174 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp57_ = pixels;
+#line 174 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp57__length1 = pixels_length1;
+#line 174 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp58_ = offset;
+#line 174 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp59_ = x;
+#line 174 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp60_ = _tmp57_[_tmp58_ + _tmp59_];
+#line 174 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp56_[2] = _tmp60_;
+#line 174 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp61_ = _tmp56_[2];
+#line 174 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp55_[1] = _tmp61_;
+#line 174 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp62_ = _tmp55_[1];
+#line 174 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp54_[0] = _tmp62_;
+#line 174 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp63_ = _tmp54_[0];
+#line 175 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
return;
+#line 863 "page-view.c"
} else {
gboolean _tmp64_ = FALSE;
gint _tmp65_;
gboolean _tmp67_;
+#line 179 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp65_ = depth;
+#line 179 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp65_ == 1) {
+#line 872 "page-view.c"
gint _tmp66_;
+#line 179 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp66_ = n_channels;
+#line 179 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp64_ = _tmp66_ == 1;
+#line 878 "page-view.c"
} else {
+#line 179 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp64_ = FALSE;
+#line 882 "page-view.c"
}
+#line 179 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp67_ = _tmp64_;
+#line 179 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp67_) {
+#line 888 "page-view.c"
gint _tmp68_;
gint _tmp69_;
gint o;
@@ -663,47 +904,86 @@ static void page_view_get_pixel (PageView* self, Page* page, gint x, gint y, guc
guchar _tmp79_;
guchar _tmp80_;
guchar _tmp81_;
+#line 181 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp68_ = offset;
+#line 181 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp69_ = x;
+#line 181 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
o = _tmp68_ + (_tmp69_ / 8);
+#line 182 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp71_ = pixels;
+#line 182 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp71__length1 = pixels_length1;
+#line 182 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp72_ = o;
+#line 182 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp73_ = _tmp71_[_tmp72_];
+#line 182 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp74_ = x;
+#line 182 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (((gint) (_tmp73_ & (0x80 >> (_tmp74_ % 8)))) != 0) {
+#line 182 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp70_ = 0x00;
+#line 928 "page-view.c"
} else {
+#line 182 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp70_ = 0xFF;
+#line 932 "page-view.c"
}
+#line 182 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp75_ = pixel;
+#line 182 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp75__length1 = pixel_length1;
+#line 182 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp76_ = pixel;
+#line 182 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp76__length1 = pixel_length1;
+#line 182 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp77_ = pixel;
+#line 182 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp77__length1 = pixel_length1;
+#line 182 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp78_ = _tmp70_;
+#line 182 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp77_[2] = (guchar) _tmp78_;
+#line 182 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp79_ = _tmp77_[2];
+#line 182 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp76_[1] = _tmp79_;
+#line 182 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp80_ = _tmp76_[1];
+#line 182 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp75_[0] = _tmp80_;
+#line 182 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp81_ = _tmp75_[0];
+#line 183 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
return;
+#line 962 "page-view.c"
} else {
gboolean _tmp82_ = FALSE;
gint _tmp83_;
gboolean _tmp85_;
+#line 187 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp83_ = depth;
+#line 187 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp83_ == 2) {
+#line 971 "page-view.c"
gint _tmp84_;
+#line 187 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp84_ = n_channels;
+#line 187 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp82_ = _tmp84_ == 1;
+#line 977 "page-view.c"
} else {
+#line 187 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp82_ = FALSE;
+#line 981 "page-view.c"
}
+#line 187 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp85_ = _tmp82_;
+#line 187 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp85_) {
+#line 987 "page-view.c"
gint _tmp86_[4] = {0};
gint block_shift[4];
gint _tmp87_;
@@ -727,77 +1007,146 @@ static void page_view_get_pixel (PageView* self, Page* page, gint x, gint y, guc
guchar _tmp99_;
guchar _tmp100_;
guchar _tmp101_;
+#line 189 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp86_[0] = 6;
+#line 189 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp86_[1] = 4;
+#line 189 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp86_[2] = 2;
+#line 189 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp86_[3] = 0;
+#line 189 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
memcpy (block_shift, _tmp86_, 4 * sizeof (gint));
+#line 191 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp87_ = offset;
+#line 191 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp88_ = x;
+#line 191 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
o = _tmp87_ + (_tmp88_ / 4);
+#line 192 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp89_ = pixels;
+#line 192 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp89__length1 = pixels_length1;
+#line 192 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp90_ = o;
+#line 192 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp91_ = _tmp89_[_tmp90_];
+#line 192 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp92_ = x;
+#line 192 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp93_ = block_shift[_tmp92_ % 4];
+#line 192 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
sample = (_tmp91_ >> _tmp93_) & 0x3;
+#line 193 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp94_ = sample;
+#line 193 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
sample = (_tmp94_ * 255) / 3;
+#line 195 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp95_ = pixel;
+#line 195 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp95__length1 = pixel_length1;
+#line 195 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp96_ = pixel;
+#line 195 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp96__length1 = pixel_length1;
+#line 195 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp97_ = pixel;
+#line 195 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp97__length1 = pixel_length1;
+#line 195 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp98_ = sample;
+#line 195 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp97_[2] = (guchar) _tmp98_;
+#line 195 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp99_ = _tmp97_[2];
+#line 195 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp96_[1] = _tmp99_;
+#line 195 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp100_ = _tmp96_[1];
+#line 195 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp95_[0] = _tmp100_;
+#line 195 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp101_ = _tmp95_[0];
+#line 196 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
return;
+#line 1073 "page-view.c"
}
}
}
}
+#line 200 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp102_ = pixel;
+#line 200 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp102__length1 = pixel_length1;
+#line 200 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp103_ = pixels;
+#line 200 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp103__length1 = pixels_length1;
+#line 200 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp104_ = offset;
+#line 200 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp105_ = x;
+#line 200 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp106_ = depth;
+#line 200 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp107_ = x;
+#line 200 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp108_ = n_channels;
+#line 200 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp109_ = page_view_get_sample (self, _tmp103_, _tmp103__length1, _tmp104_, _tmp105_, _tmp106_, _tmp107_ * _tmp108_);
+#line 200 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp102_[0] = _tmp109_;
+#line 200 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp110_ = _tmp102_[0];
+#line 201 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp111_ = pixel;
+#line 201 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp111__length1 = pixel_length1;
+#line 201 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp112_ = pixels;
+#line 201 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp112__length1 = pixels_length1;
+#line 201 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp113_ = offset;
+#line 201 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp114_ = x;
+#line 201 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp115_ = depth;
+#line 201 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp116_ = x;
+#line 201 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp117_ = n_channels;
+#line 201 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp118_ = page_view_get_sample (self, _tmp112_, _tmp112__length1, _tmp113_, _tmp114_, _tmp115_, (_tmp116_ * _tmp117_) + 1);
+#line 201 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp111_[1] = _tmp118_;
+#line 201 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp119_ = _tmp111_[1];
+#line 202 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp120_ = pixel;
+#line 202 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp120__length1 = pixel_length1;
+#line 202 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp121_ = pixels;
+#line 202 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp121__length1 = pixels_length1;
+#line 202 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp122_ = offset;
+#line 202 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp123_ = x;
+#line 202 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp124_ = depth;
+#line 202 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp125_ = x;
+#line 202 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp126_ = n_channels;
+#line 202 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp127_ = page_view_get_sample (self, _tmp121_, _tmp121__length1, _tmp122_, _tmp123_, _tmp124_, (_tmp125_ * _tmp126_) + 2);
+#line 202 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp120_[2] = _tmp127_;
+#line 202 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp128_ = _tmp120_[2];
+#line 1150 "page-view.c"
}
@@ -862,68 +1211,125 @@ static void page_view_set_pixel (PageView* self, Page* page, gdouble l, gdouble
gdouble _tmp417_;
gdouble _tmp418_;
guchar _tmp419_;
+#line 205 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_return_if_fail (self != NULL);
+#line 205 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_return_if_fail (page != NULL);
+#line 251 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp0_ = l;
+#line 251 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
L = (gint) _tmp0_;
+#line 252 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp1_ = L;
+#line 252 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp2_ = l;
+#line 252 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (((gdouble) _tmp1_) != _tmp2_) {
+#line 1229 "page-view.c"
gint _tmp3_;
+#line 253 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp3_ = L;
+#line 253 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
L = _tmp3_ + 1;
+#line 1235 "page-view.c"
}
+#line 254 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp4_ = r;
+#line 254 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
R = (gint) _tmp4_;
+#line 255 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp5_ = t;
+#line 255 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
T = (gint) _tmp5_;
+#line 256 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp6_ = T;
+#line 256 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp7_ = t;
+#line 256 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (((gdouble) _tmp6_) != _tmp7_) {
+#line 1251 "page-view.c"
gint _tmp8_;
+#line 257 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp8_ = T;
+#line 257 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
T = _tmp8_ + 1;
+#line 1257 "page-view.c"
}
+#line 258 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp9_ = b;
+#line 258 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
B = (gint) _tmp9_;
+#line 260 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
red = 0.0;
+#line 261 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
green = 0.0;
+#line 262 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
blue = 0.0;
+#line 273 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp12_ = r;
+#line 273 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp13_ = l;
+#line 273 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if ((_tmp12_ - _tmp13_) <= 1.0) {
+#line 1275 "page-view.c"
gdouble _tmp14_;
gdouble _tmp15_;
+#line 273 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp14_ = r;
+#line 273 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp15_ = l;
+#line 273 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp11_ = ((gint) _tmp14_) == ((gint) _tmp15_);
+#line 1284 "page-view.c"
} else {
+#line 273 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp11_ = FALSE;
+#line 1288 "page-view.c"
}
+#line 273 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp16_ = _tmp11_;
+#line 273 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp16_) {
+#line 273 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp10_ = TRUE;
+#line 1296 "page-view.c"
} else {
gboolean _tmp17_ = FALSE;
gdouble _tmp18_;
gdouble _tmp19_;
gboolean _tmp22_;
+#line 273 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp18_ = b;
+#line 273 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp19_ = t;
+#line 273 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if ((_tmp18_ - _tmp19_) <= 1.0) {
+#line 1308 "page-view.c"
gdouble _tmp20_;
gdouble _tmp21_;
+#line 273 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp20_ = b;
+#line 273 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp21_ = t;
+#line 273 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp17_ = ((gint) _tmp20_) == ((gint) _tmp21_);
+#line 1317 "page-view.c"
} else {
+#line 273 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp17_ = FALSE;
+#line 1321 "page-view.c"
}
+#line 273 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp22_ = _tmp17_;
+#line 273 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp10_ = _tmp22_;
+#line 1327 "page-view.c"
}
+#line 273 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp23_ = _tmp10_;
+#line 273 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp23_) {
+#line 1333 "page-view.c"
gboolean _tmp24_ = FALSE;
gdouble _tmp25_;
gdouble _tmp26_;
@@ -953,19 +1359,31 @@ static void page_view_set_pixel (PageView* self, Page* page, gdouble l, gdouble
gdouble _tmp189_;
gdouble _tmp190_;
guchar _tmp191_;
+#line 276 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp25_ = l;
+#line 276 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp26_ = r;
+#line 276 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (((gint) _tmp25_) == ((gint) _tmp26_)) {
+#line 276 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp24_ = TRUE;
+#line 1371 "page-view.c"
} else {
gdouble _tmp27_;
gdouble _tmp28_;
+#line 276 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp27_ = t;
+#line 276 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp28_ = b;
+#line 276 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp24_ = ((gint) _tmp27_) == ((gint) _tmp28_);
+#line 1381 "page-view.c"
}
+#line 276 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp29_ = _tmp24_;
+#line 276 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp29_) {
+#line 1387 "page-view.c"
guchar p[3] = {0};
Page* _tmp30_;
gdouble _tmp31_;
@@ -985,33 +1403,61 @@ static void page_view_set_pixel (PageView* self, Page* page, gdouble l, gdouble
gint _tmp42_;
guchar _tmp43_;
guchar _tmp44_;
+#line 279 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp30_ = page;
+#line 279 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp31_ = l;
+#line 279 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp32_ = t;
+#line 279 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
page_view_get_pixel (self, _tmp30_, (gint) _tmp31_, (gint) _tmp32_, p, 3);
+#line 280 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp33_ = output;
+#line 280 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp33__length1 = output_length1;
+#line 280 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp34_ = offset;
+#line 280 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp35_ = p[0];
+#line 280 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp33_[_tmp34_] = _tmp35_;
+#line 280 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp36_ = _tmp33_[_tmp34_];
+#line 281 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp37_ = output;
+#line 281 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp37__length1 = output_length1;
+#line 281 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp38_ = offset;
+#line 281 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp39_ = p[1];
+#line 281 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp37_[_tmp38_ + 1] = _tmp39_;
+#line 281 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp40_ = _tmp37_[_tmp38_ + 1];
+#line 282 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp41_ = output;
+#line 282 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp41__length1 = output_length1;
+#line 282 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp42_ = offset;
+#line 282 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp43_ = p[2];
+#line 282 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp41_[_tmp42_ + 2] = _tmp43_;
+#line 282 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp44_ = _tmp41_[_tmp42_ + 2];
+#line 283 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
return;
+#line 1453 "page-view.c"
}
+#line 287 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp45_ = L;
+#line 287 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp46_ = R;
+#line 287 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp45_ > _tmp46_) {
+#line 1461 "page-view.c"
guchar p[3] = {0};
Page* _tmp47_;
gint _tmp48_;
@@ -1055,40 +1501,72 @@ static void page_view_set_pixel (PageView* self, Page* page, gdouble l, gdouble
gdouble _tmp107_;
gdouble _tmp108_;
gint _tmp109_;
+#line 290 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp47_ = page;
+#line 290 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp48_ = R;
+#line 290 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp49_ = T;
+#line 290 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
page_view_get_pixel (self, _tmp47_, _tmp48_, _tmp49_ - 1, p, 3);
+#line 291 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp50_ = red;
+#line 291 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp51_ = p[0];
+#line 291 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp52_ = r;
+#line 291 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp53_ = l;
+#line 291 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp54_ = T;
+#line 291 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp55_ = t;
+#line 291 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
red = _tmp50_ + ((_tmp51_ * (_tmp52_ - _tmp53_)) * (_tmp54_ - _tmp55_));
+#line 292 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp56_ = green;
+#line 292 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp57_ = p[1];
+#line 292 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp58_ = r;
+#line 292 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp59_ = l;
+#line 292 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp60_ = T;
+#line 292 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp61_ = t;
+#line 292 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
green = _tmp56_ + ((_tmp57_ * (_tmp58_ - _tmp59_)) * (_tmp60_ - _tmp61_));
+#line 293 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp62_ = blue;
+#line 293 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp63_ = p[2];
+#line 293 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp64_ = r;
+#line 293 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp65_ = l;
+#line 293 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp66_ = T;
+#line 293 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp67_ = t;
+#line 293 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
blue = _tmp62_ + ((_tmp63_ * (_tmp64_ - _tmp65_)) * (_tmp66_ - _tmp67_));
+#line 1555 "page-view.c"
{
gint _tmp68_;
gint y;
+#line 294 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp68_ = T;
+#line 294 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
y = _tmp68_;
+#line 1563 "page-view.c"
{
gboolean _tmp69_;
+#line 294 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp69_ = TRUE;
+#line 294 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
while (TRUE) {
+#line 1570 "page-view.c"
gboolean _tmp70_;
gint _tmp72_;
gint _tmp73_;
@@ -1107,65 +1585,123 @@ static void page_view_set_pixel (PageView* self, Page* page, gdouble l, gdouble
guchar _tmp86_;
gdouble _tmp87_;
gdouble _tmp88_;
+#line 294 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp70_ = _tmp69_;
+#line 294 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (!_tmp70_) {
+#line 1593 "page-view.c"
gint _tmp71_;
+#line 294 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp71_ = y;
+#line 294 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
y = _tmp71_ + 1;
+#line 1599 "page-view.c"
}
+#line 294 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp69_ = FALSE;
+#line 294 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp72_ = y;
+#line 294 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp73_ = B;
+#line 294 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (!(_tmp72_ < _tmp73_)) {
+#line 294 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
break;
+#line 1611 "page-view.c"
}
+#line 296 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp74_ = page;
+#line 296 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp75_ = R;
+#line 296 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp76_ = y;
+#line 296 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
page_view_get_pixel (self, _tmp74_, _tmp75_, _tmp76_, p, 3);
+#line 297 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp77_ = red;
+#line 297 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp78_ = p[0];
+#line 297 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp79_ = r;
+#line 297 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp80_ = l;
+#line 297 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
red = _tmp77_ + (_tmp78_ * (_tmp79_ - _tmp80_));
+#line 298 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp81_ = green;
+#line 298 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp82_ = p[1];
+#line 298 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp83_ = r;
+#line 298 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp84_ = l;
+#line 298 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
green = _tmp81_ + (_tmp82_ * (_tmp83_ - _tmp84_));
+#line 299 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp85_ = blue;
+#line 299 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp86_ = p[2];
+#line 299 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp87_ = r;
+#line 299 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp88_ = l;
+#line 299 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
blue = _tmp85_ + (_tmp86_ * (_tmp87_ - _tmp88_));
+#line 1651 "page-view.c"
}
}
}
+#line 301 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp89_ = page;
+#line 301 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp90_ = R;
+#line 301 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp91_ = B;
+#line 301 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
page_view_get_pixel (self, _tmp89_, _tmp90_, _tmp91_, p, 3);
+#line 302 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp92_ = red;
+#line 302 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp93_ = p[0];
+#line 302 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp94_ = r;
+#line 302 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp95_ = l;
+#line 302 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp96_ = b;
+#line 302 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp97_ = B;
+#line 302 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
red = _tmp92_ + ((_tmp93_ * (_tmp94_ - _tmp95_)) * (_tmp96_ - _tmp97_));
+#line 303 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp98_ = green;
+#line 303 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp99_ = p[1];
+#line 303 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp100_ = r;
+#line 303 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp101_ = l;
+#line 303 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp102_ = b;
+#line 303 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp103_ = B;
+#line 303 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
green = _tmp98_ + ((_tmp99_ * (_tmp100_ - _tmp101_)) * (_tmp102_ - _tmp103_));
+#line 304 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp104_ = blue;
+#line 304 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp105_ = p[2];
+#line 304 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp106_ = r;
+#line 304 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp107_ = l;
+#line 304 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp108_ = b;
+#line 304 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp109_ = B;
+#line 304 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
blue = _tmp104_ + ((_tmp105_ * (_tmp106_ - _tmp107_)) * (_tmp108_ - _tmp109_));
+#line 1705 "page-view.c"
} else {
guchar p[3] = {0};
Page* _tmp110_;
@@ -1210,40 +1746,72 @@ static void page_view_set_pixel (PageView* self, Page* page, gdouble l, gdouble
gdouble _tmp170_;
gdouble _tmp171_;
gint _tmp172_;
+#line 310 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp110_ = page;
+#line 310 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp111_ = L;
+#line 310 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp112_ = B;
+#line 310 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
page_view_get_pixel (self, _tmp110_, _tmp111_ - 1, _tmp112_, p, 3);
+#line 311 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp113_ = red;
+#line 311 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp114_ = p[0];
+#line 311 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp115_ = b;
+#line 311 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp116_ = t;
+#line 311 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp117_ = L;
+#line 311 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp118_ = l;
+#line 311 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
red = _tmp113_ + ((_tmp114_ * (_tmp115_ - _tmp116_)) * (_tmp117_ - _tmp118_));
+#line 312 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp119_ = green;
+#line 312 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp120_ = p[1];
+#line 312 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp121_ = b;
+#line 312 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp122_ = t;
+#line 312 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp123_ = L;
+#line 312 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp124_ = l;
+#line 312 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
green = _tmp119_ + ((_tmp120_ * (_tmp121_ - _tmp122_)) * (_tmp123_ - _tmp124_));
+#line 313 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp125_ = blue;
+#line 313 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp126_ = p[2];
+#line 313 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp127_ = b;
+#line 313 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp128_ = t;
+#line 313 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp129_ = L;
+#line 313 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp130_ = l;
+#line 313 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
blue = _tmp125_ + ((_tmp126_ * (_tmp127_ - _tmp128_)) * (_tmp129_ - _tmp130_));
+#line 1800 "page-view.c"
{
gint _tmp131_;
gint x;
+#line 314 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp131_ = L;
+#line 314 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
x = _tmp131_;
+#line 1808 "page-view.c"
{
gboolean _tmp132_;
+#line 314 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp132_ = TRUE;
+#line 314 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
while (TRUE) {
+#line 1815 "page-view.c"
gboolean _tmp133_;
gint _tmp135_;
gint _tmp136_;
@@ -1262,127 +1830,237 @@ static void page_view_set_pixel (PageView* self, Page* page, gdouble l, gdouble
guchar _tmp149_;
gdouble _tmp150_;
gdouble _tmp151_;
+#line 314 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp133_ = _tmp132_;
+#line 314 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (!_tmp133_) {
+#line 1838 "page-view.c"
gint _tmp134_;
+#line 314 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp134_ = x;
+#line 314 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
x = _tmp134_ + 1;
+#line 1844 "page-view.c"
}
+#line 314 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp132_ = FALSE;
+#line 314 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp135_ = x;
+#line 314 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp136_ = R;
+#line 314 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (!(_tmp135_ < _tmp136_)) {
+#line 314 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
break;
+#line 1856 "page-view.c"
}
+#line 315 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp137_ = page;
+#line 315 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp138_ = x;
+#line 315 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp139_ = B;
+#line 315 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
page_view_get_pixel (self, _tmp137_, _tmp138_, _tmp139_, p, 3);
+#line 316 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp140_ = red;
+#line 316 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp141_ = p[0];
+#line 316 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp142_ = b;
+#line 316 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp143_ = t;
+#line 316 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
red = _tmp140_ + (_tmp141_ * (_tmp142_ - _tmp143_));
+#line 317 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp144_ = green;
+#line 317 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp145_ = p[1];
+#line 317 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp146_ = b;
+#line 317 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp147_ = t;
+#line 317 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
green = _tmp144_ + (_tmp145_ * (_tmp146_ - _tmp147_));
+#line 318 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp148_ = blue;
+#line 318 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp149_ = p[2];
+#line 318 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp150_ = b;
+#line 318 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp151_ = t;
+#line 318 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
blue = _tmp148_ + (_tmp149_ * (_tmp150_ - _tmp151_));
+#line 1896 "page-view.c"
}
}
}
+#line 320 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp152_ = page;
+#line 320 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp153_ = R;
+#line 320 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp154_ = B;
+#line 320 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
page_view_get_pixel (self, _tmp152_, _tmp153_, _tmp154_, p, 3);
+#line 321 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp155_ = red;
+#line 321 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp156_ = p[0];
+#line 321 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp157_ = b;
+#line 321 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp158_ = t;
+#line 321 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp159_ = r;
+#line 321 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp160_ = R;
+#line 321 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
red = _tmp155_ + ((_tmp156_ * (_tmp157_ - _tmp158_)) * (_tmp159_ - _tmp160_));
+#line 322 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp161_ = green;
+#line 322 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp162_ = p[1];
+#line 322 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp163_ = b;
+#line 322 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp164_ = t;
+#line 322 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp165_ = r;
+#line 322 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp166_ = R;
+#line 322 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
green = _tmp161_ + ((_tmp162_ * (_tmp163_ - _tmp164_)) * (_tmp165_ - _tmp166_));
+#line 323 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp167_ = blue;
+#line 323 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp168_ = p[2];
+#line 323 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp169_ = b;
+#line 323 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp170_ = t;
+#line 323 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp171_ = r;
+#line 323 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp172_ = R;
+#line 323 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
blue = _tmp167_ + ((_tmp168_ * (_tmp169_ - _tmp170_)) * (_tmp171_ - _tmp172_));
+#line 1950 "page-view.c"
}
+#line 326 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp173_ = r;
+#line 326 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp174_ = l;
+#line 326 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp175_ = b;
+#line 326 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp176_ = t;
+#line 326 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
scale = 1.0 / ((_tmp173_ - _tmp174_) * (_tmp175_ - _tmp176_));
+#line 327 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp177_ = output;
+#line 327 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp177__length1 = output_length1;
+#line 327 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp178_ = offset;
+#line 327 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp179_ = red;
+#line 327 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp180_ = scale;
+#line 327 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp177_[_tmp178_] = (guchar) ((_tmp179_ * _tmp180_) + 0.5);
+#line 327 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp181_ = _tmp177_[_tmp178_];
+#line 328 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp182_ = output;
+#line 328 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp182__length1 = output_length1;
+#line 328 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp183_ = offset;
+#line 328 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp184_ = green;
+#line 328 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp185_ = scale;
+#line 328 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp182_[_tmp183_ + 1] = (guchar) ((_tmp184_ * _tmp185_) + 0.5);
+#line 328 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp186_ = _tmp182_[_tmp183_ + 1];
+#line 329 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp187_ = output;
+#line 329 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp187__length1 = output_length1;
+#line 329 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp188_ = offset;
+#line 329 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp189_ = blue;
+#line 329 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp190_ = scale;
+#line 329 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp187_[_tmp188_ + 2] = (guchar) ((_tmp189_ * _tmp190_) + 0.5);
+#line 329 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp191_ = _tmp187_[_tmp188_ + 2];
+#line 330 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
return;
+#line 2006 "page-view.c"
}
{
gint _tmp192_;
gint x;
+#line 334 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp192_ = L;
+#line 334 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
x = _tmp192_;
+#line 2015 "page-view.c"
{
gboolean _tmp193_;
+#line 334 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp193_ = TRUE;
+#line 334 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
while (TRUE) {
+#line 2022 "page-view.c"
gboolean _tmp194_;
gint _tmp196_;
gint _tmp197_;
+#line 334 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp194_ = _tmp193_;
+#line 334 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (!_tmp194_) {
+#line 2030 "page-view.c"
gint _tmp195_;
+#line 334 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp195_ = x;
+#line 334 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
x = _tmp195_ + 1;
+#line 2036 "page-view.c"
}
+#line 334 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp193_ = FALSE;
+#line 334 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp196_ = x;
+#line 334 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp197_ = R;
+#line 334 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (!(_tmp196_ < _tmp197_)) {
+#line 334 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
break;
+#line 2048 "page-view.c"
}
{
gint _tmp198_;
gint y;
+#line 336 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp198_ = T;
+#line 336 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
y = _tmp198_;
+#line 2057 "page-view.c"
{
gboolean _tmp199_;
+#line 336 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp199_ = TRUE;
+#line 336 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
while (TRUE) {
+#line 2064 "page-view.c"
gboolean _tmp200_;
gint _tmp202_;
gint _tmp203_;
@@ -1396,31 +2074,57 @@ static void page_view_set_pixel (PageView* self, Page* page, gdouble l, gdouble
guchar _tmp210_;
gdouble _tmp211_;
guchar _tmp212_;
+#line 336 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp200_ = _tmp199_;
+#line 336 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (!_tmp200_) {
+#line 2082 "page-view.c"
gint _tmp201_;
+#line 336 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp201_ = y;
+#line 336 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
y = _tmp201_ + 1;
+#line 2088 "page-view.c"
}
+#line 336 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp199_ = FALSE;
+#line 336 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp202_ = y;
+#line 336 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp203_ = B;
+#line 336 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (!(_tmp202_ < _tmp203_)) {
+#line 336 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
break;
+#line 2100 "page-view.c"
}
+#line 339 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp204_ = page;
+#line 339 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp205_ = x;
+#line 339 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp206_ = y;
+#line 339 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
page_view_get_pixel (self, _tmp204_, _tmp205_, _tmp206_, p, 3);
+#line 340 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp207_ = red;
+#line 340 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp208_ = p[0];
+#line 340 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
red = _tmp207_ + _tmp208_;
+#line 341 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp209_ = green;
+#line 341 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp210_ = p[1];
+#line 341 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
green = _tmp209_ + _tmp210_;
+#line 342 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp211_ = blue;
+#line 342 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp212_ = p[2];
+#line 342 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
blue = _tmp211_ + _tmp212_;
+#line 2128 "page-view.c"
}
}
}
@@ -1430,12 +2134,18 @@ static void page_view_set_pixel (PageView* self, Page* page, gdouble l, gdouble
{
gint _tmp213_;
gint x;
+#line 347 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp213_ = L;
+#line 347 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
x = _tmp213_;
+#line 2142 "page-view.c"
{
gboolean _tmp214_;
+#line 347 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp214_ = TRUE;
+#line 347 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
while (TRUE) {
+#line 2149 "page-view.c"
gboolean _tmp215_;
gint _tmp217_;
gint _tmp218_;
@@ -1443,21 +2153,37 @@ static void page_view_set_pixel (PageView* self, Page* page, gdouble l, gdouble
gint _tmp220_;
gdouble _tmp236_;
gint _tmp237_;
+#line 347 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp215_ = _tmp214_;
+#line 347 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (!_tmp215_) {
+#line 2161 "page-view.c"
gint _tmp216_;
+#line 347 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp216_ = x;
+#line 347 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
x = _tmp216_ + 1;
+#line 2167 "page-view.c"
}
+#line 347 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp214_ = FALSE;
+#line 347 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp217_ = x;
+#line 347 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp218_ = R;
+#line 347 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (!(_tmp217_ < _tmp218_)) {
+#line 347 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
break;
+#line 2179 "page-view.c"
}
+#line 349 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp219_ = t;
+#line 349 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp220_ = T;
+#line 349 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp219_ != ((gdouble) _tmp220_)) {
+#line 2187 "page-view.c"
guchar p[3] = {0};
Page* _tmp221_;
gint _tmp222_;
@@ -1474,29 +2200,53 @@ static void page_view_set_pixel (PageView* self, Page* page, gdouble l, gdouble
guchar _tmp233_;
gint _tmp234_;
gdouble _tmp235_;
+#line 352 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp221_ = page;
+#line 352 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp222_ = x;
+#line 352 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp223_ = T;
+#line 352 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
page_view_get_pixel (self, _tmp221_, _tmp222_, _tmp223_ - 1, p, 3);
+#line 353 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp224_ = red;
+#line 353 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp225_ = p[0];
+#line 353 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp226_ = T;
+#line 353 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp227_ = t;
+#line 353 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
red = _tmp224_ + (_tmp225_ * (_tmp226_ - _tmp227_));
+#line 354 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp228_ = green;
+#line 354 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp229_ = p[1];
+#line 354 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp230_ = T;
+#line 354 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp231_ = t;
+#line 354 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
green = _tmp228_ + (_tmp229_ * (_tmp230_ - _tmp231_));
+#line 355 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp232_ = blue;
+#line 355 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp233_ = p[2];
+#line 355 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp234_ = T;
+#line 355 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp235_ = t;
+#line 355 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
blue = _tmp232_ + (_tmp233_ * (_tmp234_ - _tmp235_));
+#line 2242 "page-view.c"
}
+#line 358 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp236_ = b;
+#line 358 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp237_ = B;
+#line 358 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp236_ != ((gdouble) _tmp237_)) {
+#line 2250 "page-view.c"
guchar p[3] = {0};
Page* _tmp238_;
gint _tmp239_;
@@ -1513,25 +2263,45 @@ static void page_view_set_pixel (PageView* self, Page* page, gdouble l, gdouble
guchar _tmp250_;
gdouble _tmp251_;
gint _tmp252_;
+#line 361 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp238_ = page;
+#line 361 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp239_ = x;
+#line 361 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp240_ = B;
+#line 361 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
page_view_get_pixel (self, _tmp238_, _tmp239_, _tmp240_, p, 3);
+#line 362 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp241_ = red;
+#line 362 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp242_ = p[0];
+#line 362 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp243_ = b;
+#line 362 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp244_ = B;
+#line 362 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
red = _tmp241_ + (_tmp242_ * (_tmp243_ - _tmp244_));
+#line 363 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp245_ = green;
+#line 363 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp246_ = p[1];
+#line 363 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp247_ = b;
+#line 363 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp248_ = B;
+#line 363 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
green = _tmp245_ + (_tmp246_ * (_tmp247_ - _tmp248_));
+#line 364 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp249_ = blue;
+#line 364 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp250_ = p[2];
+#line 364 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp251_ = b;
+#line 364 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp252_ = B;
+#line 364 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
blue = _tmp249_ + (_tmp250_ * (_tmp251_ - _tmp252_));
+#line 2305 "page-view.c"
}
}
}
@@ -1539,12 +2309,18 @@ static void page_view_set_pixel (PageView* self, Page* page, gdouble l, gdouble
{
gint _tmp253_;
gint y;
+#line 369 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp253_ = T;
+#line 369 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
y = _tmp253_;
+#line 2317 "page-view.c"
{
gboolean _tmp254_;
+#line 369 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp254_ = TRUE;
+#line 369 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
while (TRUE) {
+#line 2324 "page-view.c"
gboolean _tmp255_;
gint _tmp257_;
gint _tmp258_;
@@ -1552,21 +2328,37 @@ static void page_view_set_pixel (PageView* self, Page* page, gdouble l, gdouble
gint _tmp260_;
gdouble _tmp276_;
gint _tmp277_;
+#line 369 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp255_ = _tmp254_;
+#line 369 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (!_tmp255_) {
+#line 2336 "page-view.c"
gint _tmp256_;
+#line 369 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp256_ = y;
+#line 369 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
y = _tmp256_ + 1;
+#line 2342 "page-view.c"
}
+#line 369 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp254_ = FALSE;
+#line 369 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp257_ = y;
+#line 369 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp258_ = B;
+#line 369 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (!(_tmp257_ < _tmp258_)) {
+#line 369 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
break;
+#line 2354 "page-view.c"
}
+#line 371 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp259_ = l;
+#line 371 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp260_ = L;
+#line 371 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp259_ != ((gdouble) _tmp260_)) {
+#line 2362 "page-view.c"
guchar p[3] = {0};
Page* _tmp261_;
gint _tmp262_;
@@ -1583,29 +2375,53 @@ static void page_view_set_pixel (PageView* self, Page* page, gdouble l, gdouble
guchar _tmp273_;
gint _tmp274_;
gdouble _tmp275_;
+#line 374 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp261_ = page;
+#line 374 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp262_ = L;
+#line 374 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp263_ = y;
+#line 374 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
page_view_get_pixel (self, _tmp261_, _tmp262_ - 1, _tmp263_, p, 3);
+#line 375 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp264_ = red;
+#line 375 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp265_ = p[0];
+#line 375 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp266_ = L;
+#line 375 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp267_ = l;
+#line 375 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
red = _tmp264_ + (_tmp265_ * (_tmp266_ - _tmp267_));
+#line 376 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp268_ = green;
+#line 376 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp269_ = p[1];
+#line 376 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp270_ = L;
+#line 376 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp271_ = l;
+#line 376 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
green = _tmp268_ + (_tmp269_ * (_tmp270_ - _tmp271_));
+#line 377 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp272_ = blue;
+#line 377 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp273_ = p[2];
+#line 377 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp274_ = L;
+#line 377 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp275_ = l;
+#line 377 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
blue = _tmp272_ + (_tmp273_ * (_tmp274_ - _tmp275_));
+#line 2417 "page-view.c"
}
+#line 380 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp276_ = r;
+#line 380 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp277_ = R;
+#line 380 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp276_ != ((gdouble) _tmp277_)) {
+#line 2425 "page-view.c"
guchar p[3] = {0};
Page* _tmp278_;
gint _tmp279_;
@@ -1622,42 +2438,75 @@ static void page_view_set_pixel (PageView* self, Page* page, gdouble l, gdouble
guchar _tmp290_;
gdouble _tmp291_;
gint _tmp292_;
+#line 383 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp278_ = page;
+#line 383 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp279_ = R;
+#line 383 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp280_ = y;
+#line 383 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
page_view_get_pixel (self, _tmp278_, _tmp279_, _tmp280_, p, 3);
+#line 384 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp281_ = red;
+#line 384 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp282_ = p[0];
+#line 384 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp283_ = r;
+#line 384 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp284_ = R;
+#line 384 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
red = _tmp281_ + (_tmp282_ * (_tmp283_ - _tmp284_));
+#line 385 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp285_ = green;
+#line 385 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp286_ = p[1];
+#line 385 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp287_ = r;
+#line 385 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp288_ = R;
+#line 385 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
green = _tmp285_ + (_tmp286_ * (_tmp287_ - _tmp288_));
+#line 386 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp289_ = blue;
+#line 386 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp290_ = p[2];
+#line 386 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp291_ = r;
+#line 386 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp292_ = R;
+#line 386 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
blue = _tmp289_ + (_tmp290_ * (_tmp291_ - _tmp292_));
+#line 2480 "page-view.c"
}
}
}
}
+#line 391 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp294_ = l;
+#line 391 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp295_ = L;
+#line 391 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp294_ != ((gdouble) _tmp295_)) {
+#line 2491 "page-view.c"
gdouble _tmp296_;
gint _tmp297_;
+#line 391 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp296_ = t;
+#line 391 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp297_ = T;
+#line 391 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp293_ = _tmp296_ != ((gdouble) _tmp297_);
+#line 2500 "page-view.c"
} else {
+#line 391 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp293_ = FALSE;
+#line 2504 "page-view.c"
}
+#line 391 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp298_ = _tmp293_;
+#line 391 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp298_) {
+#line 2510 "page-view.c"
guchar p[3] = {0};
Page* _tmp299_;
gint _tmp300_;
@@ -1680,45 +2529,84 @@ static void page_view_set_pixel (PageView* self, Page* page, gdouble l, gdouble
gdouble _tmp317_;
gint _tmp318_;
gdouble _tmp319_;
+#line 394 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp299_ = page;
+#line 394 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp300_ = L;
+#line 394 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp301_ = T;
+#line 394 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
page_view_get_pixel (self, _tmp299_, _tmp300_ - 1, _tmp301_ - 1, p, 3);
+#line 395 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp302_ = red;
+#line 395 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp303_ = p[0];
+#line 395 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp304_ = L;
+#line 395 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp305_ = l;
+#line 395 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp306_ = T;
+#line 395 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp307_ = t;
+#line 395 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
red = _tmp302_ + ((_tmp303_ * (_tmp304_ - _tmp305_)) * (_tmp306_ - _tmp307_));
+#line 396 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp308_ = green;
+#line 396 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp309_ = p[1];
+#line 396 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp310_ = L;
+#line 396 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp311_ = l;
+#line 396 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp312_ = T;
+#line 396 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp313_ = t;
+#line 396 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
green = _tmp308_ + ((_tmp309_ * (_tmp310_ - _tmp311_)) * (_tmp312_ - _tmp313_));
+#line 397 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp314_ = blue;
+#line 397 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp315_ = p[2];
+#line 397 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp316_ = L;
+#line 397 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp317_ = l;
+#line 397 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp318_ = T;
+#line 397 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp319_ = t;
+#line 397 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
blue = _tmp314_ + ((_tmp315_ * (_tmp316_ - _tmp317_)) * (_tmp318_ - _tmp319_));
+#line 2583 "page-view.c"
}
+#line 399 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp321_ = r;
+#line 399 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp322_ = R;
+#line 399 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp321_ != ((gdouble) _tmp322_)) {
+#line 2591 "page-view.c"
gdouble _tmp323_;
gint _tmp324_;
+#line 399 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp323_ = t;
+#line 399 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp324_ = T;
+#line 399 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp320_ = _tmp323_ != ((gdouble) _tmp324_);
+#line 2600 "page-view.c"
} else {
+#line 399 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp320_ = FALSE;
+#line 2604 "page-view.c"
}
+#line 399 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp325_ = _tmp320_;
+#line 399 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp325_) {
+#line 2610 "page-view.c"
guchar p[3] = {0};
Page* _tmp326_;
gint _tmp327_;
@@ -1741,45 +2629,84 @@ static void page_view_set_pixel (PageView* self, Page* page, gdouble l, gdouble
gint _tmp344_;
gint _tmp345_;
gdouble _tmp346_;
+#line 402 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp326_ = page;
+#line 402 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp327_ = R;
+#line 402 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp328_ = T;
+#line 402 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
page_view_get_pixel (self, _tmp326_, _tmp327_, _tmp328_ - 1, p, 3);
+#line 403 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp329_ = red;
+#line 403 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp330_ = p[0];
+#line 403 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp331_ = r;
+#line 403 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp332_ = R;
+#line 403 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp333_ = T;
+#line 403 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp334_ = t;
+#line 403 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
red = _tmp329_ + ((_tmp330_ * (_tmp331_ - _tmp332_)) * (_tmp333_ - _tmp334_));
+#line 404 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp335_ = green;
+#line 404 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp336_ = p[1];
+#line 404 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp337_ = r;
+#line 404 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp338_ = R;
+#line 404 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp339_ = T;
+#line 404 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp340_ = t;
+#line 404 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
green = _tmp335_ + ((_tmp336_ * (_tmp337_ - _tmp338_)) * (_tmp339_ - _tmp340_));
+#line 405 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp341_ = blue;
+#line 405 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp342_ = p[2];
+#line 405 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp343_ = r;
+#line 405 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp344_ = R;
+#line 405 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp345_ = T;
+#line 405 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp346_ = t;
+#line 405 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
blue = _tmp341_ + ((_tmp342_ * (_tmp343_ - _tmp344_)) * (_tmp345_ - _tmp346_));
+#line 2683 "page-view.c"
}
+#line 407 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp348_ = r;
+#line 407 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp349_ = R;
+#line 407 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp348_ != ((gdouble) _tmp349_)) {
+#line 2691 "page-view.c"
gdouble _tmp350_;
gint _tmp351_;
+#line 407 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp350_ = b;
+#line 407 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp351_ = B;
+#line 407 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp347_ = _tmp350_ != ((gdouble) _tmp351_);
+#line 2700 "page-view.c"
} else {
+#line 407 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp347_ = FALSE;
+#line 2704 "page-view.c"
}
+#line 407 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp352_ = _tmp347_;
+#line 407 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp352_) {
+#line 2710 "page-view.c"
guchar p[3] = {0};
Page* _tmp353_;
gint _tmp354_;
@@ -1802,45 +2729,84 @@ static void page_view_set_pixel (PageView* self, Page* page, gdouble l, gdouble
gint _tmp371_;
gdouble _tmp372_;
gint _tmp373_;
+#line 410 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp353_ = page;
+#line 410 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp354_ = R;
+#line 410 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp355_ = B;
+#line 410 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
page_view_get_pixel (self, _tmp353_, _tmp354_, _tmp355_, p, 3);
+#line 411 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp356_ = red;
+#line 411 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp357_ = p[0];
+#line 411 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp358_ = r;
+#line 411 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp359_ = R;
+#line 411 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp360_ = b;
+#line 411 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp361_ = B;
+#line 411 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
red = _tmp356_ + ((_tmp357_ * (_tmp358_ - _tmp359_)) * (_tmp360_ - _tmp361_));
+#line 412 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp362_ = green;
+#line 412 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp363_ = p[1];
+#line 412 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp364_ = r;
+#line 412 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp365_ = R;
+#line 412 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp366_ = b;
+#line 412 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp367_ = B;
+#line 412 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
green = _tmp362_ + ((_tmp363_ * (_tmp364_ - _tmp365_)) * (_tmp366_ - _tmp367_));
+#line 413 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp368_ = blue;
+#line 413 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp369_ = p[2];
+#line 413 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp370_ = r;
+#line 413 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp371_ = R;
+#line 413 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp372_ = b;
+#line 413 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp373_ = B;
+#line 413 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
blue = _tmp368_ + ((_tmp369_ * (_tmp370_ - _tmp371_)) * (_tmp372_ - _tmp373_));
+#line 2783 "page-view.c"
}
+#line 415 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp375_ = l;
+#line 415 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp376_ = L;
+#line 415 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp375_ != ((gdouble) _tmp376_)) {
+#line 2791 "page-view.c"
gdouble _tmp377_;
gint _tmp378_;
+#line 415 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp377_ = b;
+#line 415 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp378_ = B;
+#line 415 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp374_ = _tmp377_ != ((gdouble) _tmp378_);
+#line 2800 "page-view.c"
} else {
+#line 415 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp374_ = FALSE;
+#line 2804 "page-view.c"
}
+#line 415 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp379_ = _tmp374_;
+#line 415 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp379_) {
+#line 2810 "page-view.c"
guchar p[3] = {0};
Page* _tmp380_;
gint _tmp381_;
@@ -1863,58 +2829,111 @@ static void page_view_set_pixel (PageView* self, Page* page, gdouble l, gdouble
gdouble _tmp398_;
gdouble _tmp399_;
gint _tmp400_;
+#line 418 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp380_ = page;
+#line 418 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp381_ = L;
+#line 418 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp382_ = B;
+#line 418 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
page_view_get_pixel (self, _tmp380_, _tmp381_ - 1, _tmp382_, p, 3);
+#line 419 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp383_ = red;
+#line 419 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp384_ = p[0];
+#line 419 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp385_ = L;
+#line 419 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp386_ = l;
+#line 419 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp387_ = b;
+#line 419 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp388_ = B;
+#line 419 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
red = _tmp383_ + ((_tmp384_ * (_tmp385_ - _tmp386_)) * (_tmp387_ - _tmp388_));
+#line 420 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp389_ = green;
+#line 420 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp390_ = p[1];
+#line 420 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp391_ = L;
+#line 420 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp392_ = l;
+#line 420 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp393_ = b;
+#line 420 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp394_ = B;
+#line 420 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
green = _tmp389_ + ((_tmp390_ * (_tmp391_ - _tmp392_)) * (_tmp393_ - _tmp394_));
+#line 421 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp395_ = blue;
+#line 421 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp396_ = p[2];
+#line 421 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp397_ = L;
+#line 421 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp398_ = l;
+#line 421 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp399_ = b;
+#line 421 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp400_ = B;
+#line 421 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
blue = _tmp395_ + ((_tmp396_ * (_tmp397_ - _tmp398_)) * (_tmp399_ - _tmp400_));
+#line 2883 "page-view.c"
}
+#line 425 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp401_ = r;
+#line 425 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp402_ = l;
+#line 425 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp403_ = b;
+#line 425 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp404_ = t;
+#line 425 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
scale = 1.0 / ((_tmp401_ - _tmp402_) * (_tmp403_ - _tmp404_));
+#line 426 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp405_ = output;
+#line 426 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp405__length1 = output_length1;
+#line 426 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp406_ = offset;
+#line 426 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp407_ = red;
+#line 426 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp408_ = scale;
+#line 426 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp405_[_tmp406_] = (guchar) ((_tmp407_ * _tmp408_) + 0.5);
+#line 426 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp409_ = _tmp405_[_tmp406_];
+#line 427 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp410_ = output;
+#line 427 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp410__length1 = output_length1;
+#line 427 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp411_ = offset;
+#line 427 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp412_ = green;
+#line 427 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp413_ = scale;
+#line 427 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp410_[_tmp411_ + 1] = (guchar) ((_tmp412_ * _tmp413_) + 0.5);
+#line 427 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp414_ = _tmp410_[_tmp411_ + 1];
+#line 428 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp415_ = output;
+#line 428 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp415__length1 = output_length1;
+#line 428 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp416_ = offset;
+#line 428 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp417_ = blue;
+#line 428 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp418_ = scale;
+#line 428 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp415_[_tmp416_ + 2] = (guchar) ((_tmp417_ * _tmp418_) + 0.5);
+#line 428 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp419_ = _tmp415_[_tmp416_ + 2];
+#line 2937 "page-view.c"
}
@@ -1958,61 +2977,106 @@ static void page_view_update_preview (PageView* self, Page* page, GdkPixbuf** ou
gint output_n_channels;
Page* _tmp75_;
gboolean _tmp76_ = FALSE;
+#line 431 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_return_if_fail (self != NULL);
+#line 431 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_return_if_fail (page != NULL);
+#line 434 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp0_ = page;
+#line 434 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp1_ = page_get_width (_tmp0_);
+#line 434 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
input_width = _tmp1_;
+#line 435 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp2_ = page;
+#line 435 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp3_ = page_get_height (_tmp2_);
+#line 435 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
input_height = _tmp3_;
+#line 439 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp6_ = *output_image;
+#line 439 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp6_ == NULL) {
+#line 439 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp5_ = TRUE;
+#line 3003 "page-view.c"
} else {
GdkPixbuf* _tmp7_;
gint _tmp8_ = 0;
gint _tmp9_;
+#line 440 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp7_ = *output_image;
+#line 440 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp8_ = gdk_pixbuf_get_width (_tmp7_);
+#line 440 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp9_ = output_width;
+#line 440 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp5_ = _tmp8_ != _tmp9_;
+#line 3016 "page-view.c"
}
+#line 439 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp10_ = _tmp5_;
+#line 439 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp10_) {
+#line 439 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp4_ = TRUE;
+#line 3024 "page-view.c"
} else {
GdkPixbuf* _tmp11_;
gint _tmp12_ = 0;
gint _tmp13_;
+#line 441 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp11_ = *output_image;
+#line 441 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp12_ = gdk_pixbuf_get_height (_tmp11_);
+#line 441 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp13_ = output_height;
+#line 441 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp4_ = _tmp12_ != _tmp13_;
+#line 3037 "page-view.c"
}
+#line 439 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp14_ = _tmp4_;
+#line 439 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp14_) {
+#line 3043 "page-view.c"
gint _tmp15_;
gint _tmp16_;
GdkPixbuf* _tmp17_;
gint _tmp18_;
gint _tmp19_;
+#line 443 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp15_ = output_width;
+#line 443 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp16_ = output_height;
+#line 443 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp17_ = gdk_pixbuf_new (GDK_COLORSPACE_RGB, FALSE, 8, _tmp15_, _tmp16_);
+#line 443 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_g_object_unref0 (*output_image);
+#line 443 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
*output_image = _tmp17_;
+#line 450 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
L = 0;
+#line 451 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp18_ = output_width;
+#line 451 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
R = _tmp18_ - 1;
+#line 452 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
T = 0;
+#line 453 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp19_ = output_height;
+#line 453 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
B = _tmp19_ - 1;
+#line 3071 "page-view.c"
} else {
ScanDirection _tmp20_;
+#line 458 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp20_ = scan_direction;
+#line 458 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
switch (_tmp20_) {
+#line 458 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
case SCAN_DIRECTION_TOP_TO_BOTTOM:
+#line 3080 "page-view.c"
{
gint _tmp21_;
gint _tmp22_;
@@ -2021,20 +3085,35 @@ static void page_view_update_preview (PageView* self, Page* page, GdkPixbuf** ou
gint _tmp25_;
gint _tmp26_;
gint _tmp27_;
+#line 461 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
L = 0;
+#line 462 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp21_ = output_width;
+#line 462 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
R = _tmp21_ - 1;
+#line 463 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp22_ = old_scan_line;
+#line 463 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp23_ = output_height;
+#line 463 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp24_ = input_height;
+#line 463 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
T = (gint) ((((gdouble) _tmp22_) * _tmp23_) / _tmp24_);
+#line 464 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp25_ = scan_line;
+#line 464 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp26_ = output_height;
+#line 464 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp27_ = input_height;
+#line 464 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
B = (gint) (((((gdouble) _tmp25_) * _tmp26_) / _tmp27_) + 0.5);
+#line 465 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
break;
+#line 3113 "page-view.c"
}
+#line 458 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
case SCAN_DIRECTION_LEFT_TO_RIGHT:
+#line 3117 "page-view.c"
{
gint _tmp28_;
gint _tmp29_;
@@ -2043,20 +3122,35 @@ static void page_view_update_preview (PageView* self, Page* page, GdkPixbuf** ou
gint _tmp32_;
gint _tmp33_;
gint _tmp34_;
+#line 467 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp28_ = old_scan_line;
+#line 467 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp29_ = output_width;
+#line 467 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp30_ = input_width;
+#line 467 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
L = (gint) ((((gdouble) _tmp28_) * _tmp29_) / _tmp30_);
+#line 468 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp31_ = scan_line;
+#line 468 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp32_ = output_width;
+#line 468 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp33_ = input_width;
+#line 468 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
R = (gint) (((((gdouble) _tmp31_) * _tmp32_) / _tmp33_) + 0.5);
+#line 469 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
T = 0;
+#line 470 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp34_ = output_height;
+#line 470 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
B = _tmp34_ - 1;
+#line 471 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
break;
+#line 3150 "page-view.c"
}
+#line 458 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
case SCAN_DIRECTION_BOTTOM_TO_TOP:
+#line 3154 "page-view.c"
{
gint _tmp35_;
gint _tmp36_;
@@ -2067,22 +3161,39 @@ static void page_view_update_preview (PageView* self, Page* page, GdkPixbuf** ou
gint _tmp41_;
gint _tmp42_;
gint _tmp43_;
+#line 473 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
L = 0;
+#line 474 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp35_ = output_width;
+#line 474 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
R = _tmp35_ - 1;
+#line 475 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp36_ = input_height;
+#line 475 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp37_ = scan_line;
+#line 475 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp38_ = output_height;
+#line 475 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp39_ = input_height;
+#line 475 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
T = (gint) ((((gdouble) (_tmp36_ - _tmp37_)) * _tmp38_) / _tmp39_);
+#line 476 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp40_ = input_height;
+#line 476 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp41_ = old_scan_line;
+#line 476 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp42_ = output_height;
+#line 476 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp43_ = input_height;
+#line 476 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
B = (gint) (((((gdouble) (_tmp40_ - _tmp41_)) * _tmp42_) / _tmp43_) + 0.5);
+#line 477 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
break;
+#line 3193 "page-view.c"
}
+#line 458 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
case SCAN_DIRECTION_RIGHT_TO_LEFT:
+#line 3197 "page-view.c"
{
gint _tmp44_;
gint _tmp45_;
@@ -2093,110 +3204,199 @@ static void page_view_update_preview (PageView* self, Page* page, GdkPixbuf** ou
gint _tmp50_;
gint _tmp51_;
gint _tmp52_;
+#line 479 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp44_ = input_width;
+#line 479 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp45_ = scan_line;
+#line 479 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp46_ = output_width;
+#line 479 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp47_ = input_width;
+#line 479 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
L = (gint) ((((gdouble) (_tmp44_ - _tmp45_)) * _tmp46_) / _tmp47_);
+#line 480 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp48_ = input_width;
+#line 480 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp49_ = old_scan_line;
+#line 480 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp50_ = output_width;
+#line 480 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp51_ = input_width;
+#line 480 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
R = (gint) (((((gdouble) (_tmp48_ - _tmp49_)) * _tmp50_) / _tmp51_) + 0.5);
+#line 481 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
T = 0;
+#line 482 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp52_ = output_height;
+#line 482 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
B = _tmp52_ - 1;
+#line 483 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
break;
+#line 3236 "page-view.c"
}
default:
{
gint _tmp53_;
gint _tmp54_;
gint _tmp55_;
+#line 485 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
T = 0;
+#line 485 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp53_ = T;
+#line 485 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
B = _tmp53_;
+#line 485 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp54_ = B;
+#line 485 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
R = _tmp54_;
+#line 485 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp55_ = R;
+#line 485 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
L = _tmp55_;
+#line 486 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
break;
+#line 3259 "page-view.c"
}
}
}
+#line 491 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp56_ = R;
+#line 491 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp57_ = output_width;
+#line 491 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp56_ >= _tmp57_) {
+#line 3269 "page-view.c"
gint _tmp58_;
+#line 492 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp58_ = output_width;
+#line 492 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
R = _tmp58_ - 1;
+#line 3275 "page-view.c"
}
+#line 493 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp59_ = B;
+#line 493 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp60_ = output_height;
+#line 493 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp59_ >= _tmp60_) {
+#line 3283 "page-view.c"
gint _tmp61_;
+#line 494 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp61_ = output_height;
+#line 494 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
B = _tmp61_ - 1;
+#line 3289 "page-view.c"
}
+#line 496 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp62_ = L;
+#line 496 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_return_if_fail (_tmp62_ >= 0);
+#line 497 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp63_ = R;
+#line 497 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp64_ = output_width;
+#line 497 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_return_if_fail (_tmp63_ < _tmp64_);
+#line 498 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp65_ = T;
+#line 498 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_return_if_fail (_tmp65_ >= 0);
+#line 499 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp66_ = B;
+#line 499 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp67_ = output_height;
+#line 499 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_return_if_fail (_tmp66_ < _tmp67_);
+#line 500 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp68_ = *output_image;
+#line 500 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_return_if_fail (_tmp68_ != NULL);
+#line 502 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp69_ = *output_image;
+#line 502 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp70_ = gdk_pixbuf_get_pixels (_tmp69_);
+#line 502 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
output = _tmp70_;
+#line 502 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
output_length1 = -1;
+#line 502 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_output_size_ = output_length1;
+#line 503 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp71_ = *output_image;
+#line 503 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp72_ = gdk_pixbuf_get_rowstride (_tmp71_);
+#line 503 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
output_rowstride = _tmp72_;
+#line 504 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp73_ = *output_image;
+#line 504 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp74_ = gdk_pixbuf_get_n_channels (_tmp73_);
+#line 504 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
output_n_channels = _tmp74_;
+#line 506 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp75_ = page;
+#line 506 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp76_ = page_has_data (_tmp75_);
+#line 506 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (!_tmp76_) {
+#line 3343 "page-view.c"
{
gint _tmp77_;
gint x;
+#line 508 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp77_ = L;
+#line 508 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
x = _tmp77_;
+#line 3351 "page-view.c"
{
gboolean _tmp78_;
+#line 508 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp78_ = TRUE;
+#line 508 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
while (TRUE) {
+#line 3358 "page-view.c"
gboolean _tmp79_;
gint _tmp81_;
gint _tmp82_;
+#line 508 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp79_ = _tmp78_;
+#line 508 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (!_tmp79_) {
+#line 3366 "page-view.c"
gint _tmp80_;
+#line 508 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp80_ = x;
+#line 508 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
x = _tmp80_ + 1;
+#line 3372 "page-view.c"
}
+#line 508 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp78_ = FALSE;
+#line 508 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp81_ = x;
+#line 508 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp82_ = R;
+#line 508 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (!(_tmp81_ <= _tmp82_)) {
+#line 508 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
break;
+#line 3384 "page-view.c"
}
{
gint _tmp83_;
gint y;
+#line 509 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp83_ = T;
+#line 509 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
y = _tmp83_;
+#line 3393 "page-view.c"
{
gboolean _tmp84_;
+#line 509 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp84_ = TRUE;
+#line 509 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
while (TRUE) {
+#line 3400 "page-view.c"
gboolean _tmp85_;
gint _tmp87_;
gint _tmp88_;
@@ -2217,55 +3417,96 @@ static void page_view_update_preview (PageView* self, Page* page, GdkPixbuf** ou
guchar _tmp99_;
guchar _tmp100_;
guchar _tmp101_;
+#line 509 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp85_ = _tmp84_;
+#line 509 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (!_tmp85_) {
+#line 3425 "page-view.c"
gint _tmp86_;
+#line 509 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp86_ = y;
+#line 509 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
y = _tmp86_ + 1;
+#line 3431 "page-view.c"
}
+#line 509 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp84_ = FALSE;
+#line 509 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp87_ = y;
+#line 509 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp88_ = B;
+#line 509 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (!(_tmp87_ <= _tmp88_)) {
+#line 509 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
break;
+#line 3443 "page-view.c"
}
+#line 511 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp89_ = output_rowstride;
+#line 511 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp90_ = y;
+#line 511 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp91_ = x;
+#line 511 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp92_ = output_n_channels;
+#line 511 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
o = (_tmp89_ * _tmp90_) + (_tmp91_ * _tmp92_);
+#line 512 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp93_ = output;
+#line 512 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp93__length1 = output_length1;
+#line 512 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp94_ = o;
+#line 512 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp95_ = output;
+#line 512 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp95__length1 = output_length1;
+#line 512 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp96_ = o;
+#line 512 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp97_ = output;
+#line 512 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp97__length1 = output_length1;
+#line 512 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp98_ = o;
+#line 512 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp97_[_tmp98_ + 2] = (guchar) 0xFF;
+#line 512 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp99_ = _tmp97_[_tmp98_ + 2];
+#line 512 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp95_[_tmp96_ + 1] = _tmp99_;
+#line 512 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp100_ = _tmp95_[_tmp96_ + 1];
+#line 512 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp93_[_tmp94_] = _tmp100_;
+#line 512 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp101_ = _tmp93_[_tmp94_];
+#line 3485 "page-view.c"
}
}
}
}
}
}
+#line 514 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
return;
+#line 3494 "page-view.c"
}
{
gint _tmp102_;
gint x;
+#line 518 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp102_ = L;
+#line 518 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
x = _tmp102_;
+#line 3503 "page-view.c"
{
gboolean _tmp103_;
+#line 518 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp103_ = TRUE;
+#line 518 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
while (TRUE) {
+#line 3510 "page-view.c"
gboolean _tmp104_;
gint _tmp106_;
gint _tmp107_;
@@ -2277,35 +3518,62 @@ static void page_view_update_preview (PageView* self, Page* page, GdkPixbuf** ou
gint _tmp112_;
gint _tmp113_;
gdouble r;
+#line 518 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp104_ = _tmp103_;
+#line 518 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (!_tmp104_) {
+#line 3526 "page-view.c"
gint _tmp105_;
+#line 518 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp105_ = x;
+#line 518 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
x = _tmp105_ + 1;
+#line 3532 "page-view.c"
}
+#line 518 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp103_ = FALSE;
+#line 518 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp106_ = x;
+#line 518 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp107_ = R;
+#line 518 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (!(_tmp106_ <= _tmp107_)) {
+#line 518 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
break;
+#line 3544 "page-view.c"
}
+#line 520 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp108_ = x;
+#line 520 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp109_ = input_width;
+#line 520 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp110_ = output_width;
+#line 520 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
l = (((gdouble) _tmp108_) * _tmp109_) / _tmp110_;
+#line 521 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp111_ = x;
+#line 521 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp112_ = input_width;
+#line 521 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp113_ = output_width;
+#line 521 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
r = (((gdouble) (_tmp111_ + 1)) * _tmp112_) / _tmp113_;
+#line 3562 "page-view.c"
{
gint _tmp114_;
gint y;
+#line 523 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp114_ = T;
+#line 523 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
y = _tmp114_;
+#line 3570 "page-view.c"
{
gboolean _tmp115_;
+#line 523 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp115_ = TRUE;
+#line 523 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
while (TRUE) {
+#line 3577 "page-view.c"
gboolean _tmp116_;
gint _tmp118_;
gint _tmp119_;
@@ -2328,38 +3596,71 @@ static void page_view_update_preview (PageView* self, Page* page, GdkPixbuf** ou
gint _tmp133_;
gint _tmp134_;
gint _tmp135_;
+#line 523 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp116_ = _tmp115_;
+#line 523 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (!_tmp116_) {
+#line 3604 "page-view.c"
gint _tmp117_;
+#line 523 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp117_ = y;
+#line 523 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
y = _tmp117_ + 1;
+#line 3610 "page-view.c"
}
+#line 523 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp115_ = FALSE;
+#line 523 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp118_ = y;
+#line 523 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp119_ = B;
+#line 523 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (!(_tmp118_ <= _tmp119_)) {
+#line 523 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
break;
+#line 3622 "page-view.c"
}
+#line 525 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp120_ = y;
+#line 525 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp121_ = input_height;
+#line 525 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp122_ = output_height;
+#line 525 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
t = (((gdouble) _tmp120_) * _tmp121_) / _tmp122_;
+#line 526 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp123_ = y;
+#line 526 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp124_ = input_height;
+#line 526 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp125_ = output_height;
+#line 526 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
b = (((gdouble) (_tmp123_ + 1)) * _tmp124_) / _tmp125_;
+#line 528 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp126_ = page;
+#line 528 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp127_ = l;
+#line 528 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp128_ = r;
+#line 528 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp129_ = t;
+#line 528 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp130_ = b;
+#line 528 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp131_ = output;
+#line 528 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp131__length1 = output_length1;
+#line 528 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp132_ = output_rowstride;
+#line 528 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp133_ = y;
+#line 528 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp134_ = x;
+#line 528 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp135_ = output_n_channels;
+#line 528 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
page_view_set_pixel (self, _tmp126_, _tmp127_, _tmp128_, _tmp129_, _tmp130_, _tmp131_, _tmp131__length1, (_tmp132_ * _tmp133_) + (_tmp134_ * _tmp135_));
+#line 3664 "page-view.c"
}
}
}
@@ -2373,11 +3674,17 @@ static gint page_view_get_preview_width (PageView* self) {
gint result = 0;
gint _tmp0_;
gint _tmp1_;
+#line 535 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_return_val_if_fail (self != NULL, 0);
+#line 537 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp0_ = self->priv->width;
+#line 537 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp1_ = self->priv->border_width;
+#line 537 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
result = _tmp0_ - (_tmp1_ * 2);
+#line 537 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
return result;
+#line 3688 "page-view.c"
}
@@ -2385,11 +3692,17 @@ static gint page_view_get_preview_height (PageView* self) {
gint result = 0;
gint _tmp0_;
gint _tmp1_;
+#line 540 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_return_val_if_fail (self != NULL, 0);
+#line 542 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp0_ = self->priv->height;
+#line 542 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp1_ = self->priv->border_width;
+#line 542 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
result = _tmp0_ - (_tmp1_ * 2);
+#line 542 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
return result;
+#line 3706 "page-view.c"
}
@@ -2417,47 +3730,89 @@ static void page_view_update_page_view (PageView* self) {
gint _tmp18_;
gint _tmp19_;
gint _tmp20_;
+#line 545 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_return_if_fail (self != NULL);
+#line 547 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp0_ = self->priv->update_image;
+#line 547 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (!_tmp0_) {
+#line 548 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
return;
+#line 3742 "page-view.c"
}
+#line 550 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp1_ = self->priv->scan_line;
+#line 550 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
old_scan_line = _tmp1_;
+#line 551 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp2_ = self->priv->page;
+#line 551 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp3_ = page_get_scan_line (_tmp2_);
+#line 551 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
scan_line = _tmp3_;
+#line 554 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp4_ = self->priv->scan_direction;
+#line 554 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp5_ = self->priv->page;
+#line 554 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp6_ = page_get_scan_direction (_tmp5_);
+#line 554 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
left_steps = _tmp4_ - _tmp6_;
+#line 555 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp8_ = left_steps;
+#line 555 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp8_ != 0) {
+#line 3766 "page-view.c"
GdkPixbuf* _tmp9_;
+#line 555 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp9_ = self->priv->image;
+#line 555 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp7_ = _tmp9_ != NULL;
+#line 3772 "page-view.c"
} else {
+#line 555 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp7_ = FALSE;
+#line 3776 "page-view.c"
}
+#line 555 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp10_ = _tmp7_;
+#line 555 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp10_) {
+#line 556 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_g_object_unref0 (self->priv->image);
+#line 556 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
self->priv->image = NULL;
+#line 3786 "page-view.c"
}
+#line 557 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp11_ = self->priv->page;
+#line 557 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp12_ = page_get_scan_direction (_tmp11_);
+#line 557 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
self->priv->scan_direction = _tmp12_;
+#line 559 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp13_ = self->priv->page;
+#line 559 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp14_ = page_view_get_preview_width (self);
+#line 559 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp15_ = page_view_get_preview_height (self);
+#line 559 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp16_ = self->priv->page;
+#line 559 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp17_ = page_get_scan_direction (_tmp16_);
+#line 559 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp18_ = old_scan_line;
+#line 559 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp19_ = scan_line;
+#line 559 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
page_view_update_preview (self, _tmp13_, &self->priv->image, _tmp14_, _tmp15_, _tmp17_, _tmp18_, _tmp19_);
+#line 565 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
self->priv->update_image = FALSE;
+#line 566 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp20_ = scan_line;
+#line 566 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
self->priv->scan_line = _tmp20_;
+#line 3816 "page-view.c"
}
@@ -2467,13 +3822,21 @@ static gint page_view_page_to_screen_x (PageView* self, gint x) {
gint _tmp1_ = 0;
Page* _tmp2_;
gint _tmp3_ = 0;
+#line 569 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_return_val_if_fail (self != NULL, 0);
+#line 571 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp0_ = x;
+#line 571 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp1_ = page_view_get_preview_width (self);
+#line 571 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp2_ = self->priv->page;
+#line 571 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp3_ = page_get_width (_tmp2_);
+#line 571 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
result = (gint) (((((gdouble) _tmp0_) * _tmp1_) / _tmp3_) + 0.5);
+#line 571 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
return result;
+#line 3840 "page-view.c"
}
@@ -2483,13 +3846,21 @@ static gint page_view_page_to_screen_y (PageView* self, gint y) {
gint _tmp1_ = 0;
Page* _tmp2_;
gint _tmp3_ = 0;
+#line 574 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_return_val_if_fail (self != NULL, 0);
+#line 576 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp0_ = y;
+#line 576 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp1_ = page_view_get_preview_height (self);
+#line 576 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp2_ = self->priv->page;
+#line 576 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp3_ = page_get_height (_tmp2_);
+#line 576 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
result = (gint) (((((gdouble) _tmp0_) * _tmp1_) / _tmp3_) + 0.5);
+#line 576 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
return result;
+#line 3864 "page-view.c"
}
@@ -2499,13 +3870,21 @@ static gint page_view_screen_to_page_x (PageView* self, gint x) {
Page* _tmp1_;
gint _tmp2_ = 0;
gint _tmp3_ = 0;
+#line 579 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_return_val_if_fail (self != NULL, 0);
+#line 581 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp0_ = x;
+#line 581 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp1_ = self->priv->page;
+#line 581 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp2_ = page_get_width (_tmp1_);
+#line 581 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp3_ = page_view_get_preview_width (self);
+#line 581 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
result = (gint) (((((gdouble) _tmp0_) * _tmp2_) / _tmp3_) + 0.5);
+#line 581 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
return result;
+#line 3888 "page-view.c"
}
@@ -2515,13 +3894,21 @@ static gint page_view_screen_to_page_y (PageView* self, gint y) {
Page* _tmp1_;
gint _tmp2_ = 0;
gint _tmp3_ = 0;
+#line 584 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_return_val_if_fail (self != NULL, 0);
+#line 586 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp0_ = y;
+#line 586 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp1_ = self->priv->page;
+#line 586 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp2_ = page_get_height (_tmp1_);
+#line 586 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp3_ = page_view_get_preview_height (self);
+#line 586 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
result = (gint) (((((gdouble) _tmp0_) * _tmp2_) / _tmp3_) + 0.5);
+#line 586 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
return result;
+#line 3912 "page-view.c"
}
@@ -2600,201 +3987,386 @@ static CropLocation page_view_get_crop_location (PageView* self, gint x, gint y)
gint _tmp75_;
gint _tmp76_;
gint _tmp77_;
+#line 589 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_return_val_if_fail (self != NULL, 0);
+#line 591 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp0_ = self->priv->page;
+#line 591 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp1_ = page_has_crop (_tmp0_);
+#line 591 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (!_tmp1_) {
+#line 592 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
result = 0;
+#line 592 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
return result;
+#line 4003 "page-view.c"
}
+#line 595 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp2_ = self->priv->page;
+#line 595 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
page_get_crop (_tmp2_, &_tmp3_, &_tmp4_, &_tmp5_, &_tmp6_);
+#line 595 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
cx = _tmp3_;
+#line 595 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
cy = _tmp4_;
+#line 595 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
cw = _tmp5_;
+#line 595 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
ch = _tmp6_;
+#line 596 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp7_ = cx;
+#line 596 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp8_ = page_view_page_to_screen_x (self, _tmp7_);
+#line 596 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
dx = _tmp8_;
+#line 597 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp9_ = cy;
+#line 597 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp10_ = page_view_page_to_screen_y (self, _tmp9_);
+#line 597 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
dy = _tmp10_;
+#line 598 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp11_ = cw;
+#line 598 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp12_ = page_view_page_to_screen_x (self, _tmp11_);
+#line 598 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
dw = _tmp12_;
+#line 599 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp13_ = ch;
+#line 599 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp14_ = page_view_page_to_screen_y (self, _tmp13_);
+#line 599 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
dh = _tmp14_;
+#line 600 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp15_ = x;
+#line 600 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp16_ = dx;
+#line 600 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
ix = _tmp15_ - _tmp16_;
+#line 601 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp17_ = y;
+#line 601 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp18_ = dy;
+#line 601 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
iy = _tmp17_ - _tmp18_;
+#line 603 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp22_ = ix;
+#line 603 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp22_ < 0) {
+#line 603 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp21_ = TRUE;
+#line 4059 "page-view.c"
} else {
gint _tmp23_;
gint _tmp24_;
+#line 603 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp23_ = ix;
+#line 603 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp24_ = dw;
+#line 603 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp21_ = _tmp23_ > _tmp24_;
+#line 4069 "page-view.c"
}
+#line 603 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp25_ = _tmp21_;
+#line 603 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp25_) {
+#line 603 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp20_ = TRUE;
+#line 4077 "page-view.c"
} else {
gint _tmp26_;
+#line 603 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp26_ = iy;
+#line 603 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp20_ = _tmp26_ < 0;
+#line 4084 "page-view.c"
}
+#line 603 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp27_ = _tmp20_;
+#line 603 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp27_) {
+#line 603 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp19_ = TRUE;
+#line 4092 "page-view.c"
} else {
gint _tmp28_;
gint _tmp29_;
+#line 603 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp28_ = iy;
+#line 603 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp29_ = dh;
+#line 603 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp19_ = _tmp28_ > _tmp29_;
+#line 4102 "page-view.c"
}
+#line 603 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp30_ = _tmp19_;
+#line 603 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp30_) {
+#line 604 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
result = CROP_LOCATION_NONE;
+#line 604 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
return result;
+#line 4112 "page-view.c"
}
+#line 607 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp31_ = self->priv->page;
+#line 607 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp32_ = page_get_named_crop (_tmp31_);
+#line 607 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
name = _tmp32_;
+#line 608 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp33_ = name;
+#line 608 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp33_ != NULL) {
+#line 609 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
result = CROP_LOCATION_MIDDLE;
+#line 609 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_g_free0 (name);
+#line 609 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
return result;
+#line 4130 "page-view.c"
}
+#line 612 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
crop_border = 20;
+#line 613 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp34_ = dw;
+#line 613 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp35_ = crop_border;
+#line 613 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp34_ < (_tmp35_ * 3)) {
+#line 4140 "page-view.c"
gint _tmp36_;
+#line 614 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp36_ = dw;
+#line 614 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
crop_border = _tmp36_ / 3;
+#line 4146 "page-view.c"
}
+#line 615 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp37_ = dh;
+#line 615 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp38_ = crop_border;
+#line 615 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp37_ < (_tmp38_ * 3)) {
+#line 4154 "page-view.c"
gint _tmp39_;
+#line 616 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp39_ = dh;
+#line 616 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
crop_border = _tmp39_ / 3;
+#line 4160 "page-view.c"
}
+#line 619 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp41_ = ix;
+#line 619 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp42_ = crop_border;
+#line 619 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp41_ < _tmp42_) {
+#line 4168 "page-view.c"
gint _tmp43_;
gint _tmp44_;
+#line 619 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp43_ = iy;
+#line 619 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp44_ = crop_border;
+#line 619 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp40_ = _tmp43_ < _tmp44_;
+#line 4177 "page-view.c"
} else {
+#line 619 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp40_ = FALSE;
+#line 4181 "page-view.c"
}
+#line 619 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp45_ = _tmp40_;
+#line 619 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp45_) {
+#line 620 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
result = CROP_LOCATION_TOP_LEFT;
+#line 620 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_g_free0 (name);
+#line 620 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
return result;
+#line 4193 "page-view.c"
}
+#line 622 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp47_ = ix;
+#line 622 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp48_ = dw;
+#line 622 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp49_ = crop_border;
+#line 622 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp47_ > (_tmp48_ - _tmp49_)) {
+#line 4203 "page-view.c"
gint _tmp50_;
gint _tmp51_;
+#line 622 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp50_ = iy;
+#line 622 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp51_ = crop_border;
+#line 622 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp46_ = _tmp50_ < _tmp51_;
+#line 4212 "page-view.c"
} else {
+#line 622 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp46_ = FALSE;
+#line 4216 "page-view.c"
}
+#line 622 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp52_ = _tmp46_;
+#line 622 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp52_) {
+#line 623 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
result = CROP_LOCATION_TOP_RIGHT;
+#line 623 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_g_free0 (name);
+#line 623 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
return result;
+#line 4228 "page-view.c"
}
+#line 625 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp54_ = ix;
+#line 625 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp55_ = crop_border;
+#line 625 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp54_ < _tmp55_) {
+#line 4236 "page-view.c"
gint _tmp56_;
gint _tmp57_;
gint _tmp58_;
+#line 625 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp56_ = iy;
+#line 625 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp57_ = dh;
+#line 625 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp58_ = crop_border;
+#line 625 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp53_ = _tmp56_ > (_tmp57_ - _tmp58_);
+#line 4248 "page-view.c"
} else {
+#line 625 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp53_ = FALSE;
+#line 4252 "page-view.c"
}
+#line 625 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp59_ = _tmp53_;
+#line 625 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp59_) {
+#line 626 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
result = CROP_LOCATION_BOTTOM_LEFT;
+#line 626 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_g_free0 (name);
+#line 626 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
return result;
+#line 4264 "page-view.c"
}
+#line 628 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp61_ = ix;
+#line 628 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp62_ = dw;
+#line 628 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp63_ = crop_border;
+#line 628 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp61_ > (_tmp62_ - _tmp63_)) {
+#line 4274 "page-view.c"
gint _tmp64_;
gint _tmp65_;
gint _tmp66_;
+#line 628 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp64_ = iy;
+#line 628 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp65_ = dh;
+#line 628 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp66_ = crop_border;
+#line 628 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp60_ = _tmp64_ > (_tmp65_ - _tmp66_);
+#line 4286 "page-view.c"
} else {
+#line 628 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp60_ = FALSE;
+#line 4290 "page-view.c"
}
+#line 628 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp67_ = _tmp60_;
+#line 628 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp67_) {
+#line 629 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
result = CROP_LOCATION_BOTTOM_RIGHT;
+#line 629 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_g_free0 (name);
+#line 629 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
return result;
+#line 4302 "page-view.c"
}
+#line 632 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp68_ = ix;
+#line 632 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp69_ = crop_border;
+#line 632 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp68_ < _tmp69_) {
+#line 633 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
result = CROP_LOCATION_LEFT;
+#line 633 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_g_free0 (name);
+#line 633 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
return result;
+#line 4316 "page-view.c"
}
+#line 635 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp70_ = ix;
+#line 635 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp71_ = dw;
+#line 635 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp72_ = crop_border;
+#line 635 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp70_ > (_tmp71_ - _tmp72_)) {
+#line 636 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
result = CROP_LOCATION_RIGHT;
+#line 636 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_g_free0 (name);
+#line 636 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
return result;
+#line 4332 "page-view.c"
}
+#line 638 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp73_ = iy;
+#line 638 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp74_ = crop_border;
+#line 638 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp73_ < _tmp74_) {
+#line 639 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
result = CROP_LOCATION_TOP;
+#line 639 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_g_free0 (name);
+#line 639 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
return result;
+#line 4346 "page-view.c"
}
+#line 641 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp75_ = iy;
+#line 641 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp76_ = dh;
+#line 641 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp77_ = crop_border;
+#line 641 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp75_ > (_tmp76_ - _tmp77_)) {
+#line 642 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
result = CROP_LOCATION_BOTTOM;
+#line 642 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_g_free0 (name);
+#line 642 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
return result;
+#line 4362 "page-view.c"
}
+#line 645 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
result = CROP_LOCATION_MIDDLE;
+#line 645 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_g_free0 (name);
+#line 645 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
return result;
+#line 4370 "page-view.c"
}
@@ -2804,13 +4376,21 @@ void page_view_button_press (PageView* self, gint x, gint y) {
gint _tmp1_;
CropLocation _tmp2_ = 0;
CropLocation _tmp3_;
+#line 648 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_return_if_fail (self != NULL);
+#line 653 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp0_ = x;
+#line 653 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp1_ = y;
+#line 653 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp2_ = page_view_get_crop_location (self, _tmp0_, _tmp1_);
+#line 653 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
location = _tmp2_;
+#line 654 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp3_ = location;
+#line 654 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp3_ != CROP_LOCATION_NONE) {
+#line 4394 "page-view.c"
CropLocation _tmp4_;
gint _tmp5_;
gint _tmp6_;
@@ -2819,18 +4399,31 @@ void page_view_button_press (PageView* self, gint x, gint y) {
gint _tmp9_ = 0;
gint _tmp10_ = 0;
gint _tmp11_ = 0;
+#line 656 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp4_ = location;
+#line 656 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
self->priv->crop_location = _tmp4_;
+#line 657 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp5_ = x;
+#line 657 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
self->priv->selected_crop_px = (gdouble) _tmp5_;
+#line 658 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp6_ = y;
+#line 658 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
self->priv->selected_crop_py = (gdouble) _tmp6_;
+#line 659 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp7_ = self->priv->page;
+#line 659 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
page_get_crop (_tmp7_, &_tmp8_, &_tmp9_, &_tmp10_, &_tmp11_);
+#line 659 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
self->priv->selected_crop_x = _tmp8_;
+#line 659 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
self->priv->selected_crop_y = _tmp9_;
+#line 659 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
self->priv->selected_crop_w = _tmp10_;
+#line 659 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
self->priv->selected_crop_h = _tmp11_;
+#line 4427 "page-view.c"
}
}
@@ -2925,201 +4518,376 @@ void page_view_motion (PageView* self, gint x, gint y) {
gint _tmp164_;
gint _tmp165_;
gboolean _tmp168_;
+#line 666 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_return_if_fail (self != NULL);
+#line 668 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp0_ = x;
+#line 668 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp1_ = y;
+#line 668 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp2_ = page_view_get_crop_location (self, _tmp0_, _tmp1_);
+#line 668 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
location = _tmp2_;
+#line 670 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp3_ = location;
+#line 670 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
switch (_tmp3_) {
+#line 670 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
case CROP_LOCATION_MIDDLE:
+#line 4538 "page-view.c"
{
+#line 673 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
cursor = GDK_HAND1;
+#line 674 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
break;
+#line 4544 "page-view.c"
}
+#line 670 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
case CROP_LOCATION_TOP:
+#line 4548 "page-view.c"
{
+#line 676 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
cursor = GDK_TOP_SIDE;
+#line 677 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
break;
+#line 4554 "page-view.c"
}
+#line 670 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
case CROP_LOCATION_BOTTOM:
+#line 4558 "page-view.c"
{
+#line 679 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
cursor = GDK_BOTTOM_SIDE;
+#line 680 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
break;
+#line 4564 "page-view.c"
}
+#line 670 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
case CROP_LOCATION_LEFT:
+#line 4568 "page-view.c"
{
+#line 682 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
cursor = GDK_LEFT_SIDE;
+#line 683 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
break;
+#line 4574 "page-view.c"
}
+#line 670 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
case CROP_LOCATION_RIGHT:
+#line 4578 "page-view.c"
{
+#line 685 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
cursor = GDK_RIGHT_SIDE;
+#line 686 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
break;
+#line 4584 "page-view.c"
}
+#line 670 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
case CROP_LOCATION_TOP_LEFT:
+#line 4588 "page-view.c"
{
+#line 688 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
cursor = GDK_TOP_LEFT_CORNER;
+#line 689 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
break;
+#line 4594 "page-view.c"
}
+#line 670 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
case CROP_LOCATION_TOP_RIGHT:
+#line 4598 "page-view.c"
{
+#line 691 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
cursor = GDK_TOP_RIGHT_CORNER;
+#line 692 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
break;
+#line 4604 "page-view.c"
}
+#line 670 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
case CROP_LOCATION_BOTTOM_LEFT:
+#line 4608 "page-view.c"
{
+#line 694 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
cursor = GDK_BOTTOM_LEFT_CORNER;
+#line 695 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
break;
+#line 4614 "page-view.c"
}
+#line 670 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
case CROP_LOCATION_BOTTOM_RIGHT:
+#line 4618 "page-view.c"
{
+#line 697 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
cursor = GDK_BOTTOM_RIGHT_CORNER;
+#line 698 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
break;
+#line 4624 "page-view.c"
}
default:
{
+#line 700 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
cursor = GDK_ARROW;
+#line 701 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
break;
+#line 4632 "page-view.c"
}
}
+#line 704 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp4_ = self->priv->crop_location;
+#line 704 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp4_ == CROP_LOCATION_NONE) {
+#line 4639 "page-view.c"
GdkCursorType _tmp5_;
+#line 706 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp5_ = cursor;
+#line 706 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
self->priv->cursor = _tmp5_;
+#line 707 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
return;
+#line 4647 "page-view.c"
}
+#line 711 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp6_ = self->priv->page;
+#line 711 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp7_ = page_get_width (_tmp6_);
+#line 711 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
pw = _tmp7_;
+#line 712 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp8_ = self->priv->page;
+#line 712 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp9_ = page_get_height (_tmp8_);
+#line 712 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
ph = _tmp9_;
+#line 714 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp10_ = self->priv->page;
+#line 714 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
page_get_crop (_tmp10_, &_tmp11_, &_tmp12_, &_tmp13_, &_tmp14_);
+#line 714 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
cx = _tmp11_;
+#line 714 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
cy = _tmp12_;
+#line 714 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
cw = _tmp13_;
+#line 714 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
ch = _tmp14_;
+#line 716 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp15_ = x;
+#line 716 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp16_ = self->priv->selected_crop_px;
+#line 716 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp17_ = page_view_screen_to_page_x (self, _tmp15_ - ((gint) _tmp16_));
+#line 716 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
dx = _tmp17_;
+#line 717 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp18_ = y;
+#line 717 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp19_ = self->priv->selected_crop_py;
+#line 717 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp20_ = page_view_screen_to_page_y (self, _tmp18_ - ((gint) _tmp19_));
+#line 717 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
dy = _tmp20_;
+#line 719 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp21_ = self->priv->selected_crop_x;
+#line 719 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
new_x = _tmp21_;
+#line 720 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp22_ = self->priv->selected_crop_y;
+#line 720 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
new_y = _tmp22_;
+#line 721 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp23_ = self->priv->selected_crop_w;
+#line 721 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
new_w = _tmp23_;
+#line 722 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp24_ = self->priv->selected_crop_h;
+#line 722 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
new_h = _tmp24_;
+#line 725 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp25_ = page_view_screen_to_page_x (self, 15);
+#line 725 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
min_size = _tmp25_;
+#line 726 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp28_ = self->priv->crop_location;
+#line 726 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp28_ == CROP_LOCATION_TOP_LEFT) {
+#line 726 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp27_ = TRUE;
+#line 4715 "page-view.c"
} else {
CropLocation _tmp29_;
+#line 727 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp29_ = self->priv->crop_location;
+#line 727 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp27_ = _tmp29_ == CROP_LOCATION_LEFT;
+#line 4722 "page-view.c"
}
+#line 726 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp30_ = _tmp27_;
+#line 726 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp30_) {
+#line 726 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp26_ = TRUE;
+#line 4730 "page-view.c"
} else {
CropLocation _tmp31_;
+#line 728 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp31_ = self->priv->crop_location;
+#line 728 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp26_ = _tmp31_ == CROP_LOCATION_BOTTOM_LEFT;
+#line 4737 "page-view.c"
}
+#line 726 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp32_ = _tmp26_;
+#line 726 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp32_) {
+#line 4743 "page-view.c"
gint _tmp33_;
gint _tmp34_;
gint _tmp35_;
gint _tmp38_;
gint _tmp39_;
+#line 730 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp33_ = dx;
+#line 730 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp34_ = new_w;
+#line 730 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp35_ = min_size;
+#line 730 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp33_ > (_tmp34_ - _tmp35_)) {
+#line 4757 "page-view.c"
gint _tmp36_;
gint _tmp37_;
+#line 731 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp36_ = new_w;
+#line 731 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp37_ = min_size;
+#line 731 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
dx = _tmp36_ - _tmp37_;
+#line 4766 "page-view.c"
}
+#line 732 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp38_ = new_x;
+#line 732 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp39_ = dx;
+#line 732 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if ((_tmp38_ + _tmp39_) < 0) {
+#line 4774 "page-view.c"
gint _tmp40_;
+#line 733 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp40_ = new_x;
+#line 733 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
dx = -_tmp40_;
+#line 4780 "page-view.c"
}
}
+#line 735 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp43_ = self->priv->crop_location;
+#line 735 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp43_ == CROP_LOCATION_TOP_LEFT) {
+#line 735 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp42_ = TRUE;
+#line 4789 "page-view.c"
} else {
CropLocation _tmp44_;
+#line 736 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp44_ = self->priv->crop_location;
+#line 736 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp42_ = _tmp44_ == CROP_LOCATION_TOP;
+#line 4796 "page-view.c"
}
+#line 735 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp45_ = _tmp42_;
+#line 735 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp45_) {
+#line 735 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp41_ = TRUE;
+#line 4804 "page-view.c"
} else {
CropLocation _tmp46_;
+#line 737 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp46_ = self->priv->crop_location;
+#line 737 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp41_ = _tmp46_ == CROP_LOCATION_TOP_RIGHT;
+#line 4811 "page-view.c"
}
+#line 735 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp47_ = _tmp41_;
+#line 735 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp47_) {
+#line 4817 "page-view.c"
gint _tmp48_;
gint _tmp49_;
gint _tmp50_;
gint _tmp53_;
gint _tmp54_;
+#line 739 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp48_ = dy;
+#line 739 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp49_ = new_h;
+#line 739 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp50_ = min_size;
+#line 739 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp48_ > (_tmp49_ - _tmp50_)) {
+#line 4831 "page-view.c"
gint _tmp51_;
gint _tmp52_;
+#line 740 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp51_ = new_h;
+#line 740 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp52_ = min_size;
+#line 740 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
dy = _tmp51_ - _tmp52_;
+#line 4840 "page-view.c"
}
+#line 741 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp53_ = new_y;
+#line 741 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp54_ = dy;
+#line 741 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if ((_tmp53_ + _tmp54_) < 0) {
+#line 4848 "page-view.c"
gint _tmp55_;
+#line 742 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp55_ = new_y;
+#line 742 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
dy = -_tmp55_;
+#line 4854 "page-view.c"
}
}
+#line 745 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp58_ = self->priv->crop_location;
+#line 745 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp58_ == CROP_LOCATION_TOP_RIGHT) {
+#line 745 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp57_ = TRUE;
+#line 4863 "page-view.c"
} else {
CropLocation _tmp59_;
+#line 746 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp59_ = self->priv->crop_location;
+#line 746 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp57_ = _tmp59_ == CROP_LOCATION_RIGHT;
+#line 4870 "page-view.c"
}
+#line 745 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp60_ = _tmp57_;
+#line 745 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp60_) {
+#line 745 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp56_ = TRUE;
+#line 4878 "page-view.c"
} else {
CropLocation _tmp61_;
+#line 747 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp61_ = self->priv->crop_location;
+#line 747 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp56_ = _tmp61_ == CROP_LOCATION_BOTTOM_RIGHT;
+#line 4885 "page-view.c"
}
+#line 745 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp62_ = _tmp56_;
+#line 745 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp62_) {
+#line 4891 "page-view.c"
gint _tmp63_;
gint _tmp64_;
gint _tmp65_;
@@ -3127,48 +4895,85 @@ void page_view_motion (PageView* self, gint x, gint y) {
gint _tmp69_;
gint _tmp70_;
gint _tmp71_;
+#line 749 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp63_ = dx;
+#line 749 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp64_ = min_size;
+#line 749 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp65_ = new_w;
+#line 749 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp63_ < (_tmp64_ - _tmp65_)) {
+#line 4907 "page-view.c"
gint _tmp66_;
gint _tmp67_;
+#line 750 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp66_ = min_size;
+#line 750 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp67_ = new_w;
+#line 750 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
dx = _tmp66_ - _tmp67_;
+#line 4916 "page-view.c"
}
+#line 751 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp68_ = new_x;
+#line 751 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp69_ = new_w;
+#line 751 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp70_ = dx;
+#line 751 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp71_ = pw;
+#line 751 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (((_tmp68_ + _tmp69_) + _tmp70_) > _tmp71_) {
+#line 4928 "page-view.c"
gint _tmp72_;
gint _tmp73_;
gint _tmp74_;
+#line 752 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp72_ = pw;
+#line 752 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp73_ = new_x;
+#line 752 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp74_ = new_w;
+#line 752 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
dx = (_tmp72_ - _tmp73_) - _tmp74_;
+#line 4940 "page-view.c"
}
}
+#line 754 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp77_ = self->priv->crop_location;
+#line 754 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp77_ == CROP_LOCATION_BOTTOM_LEFT) {
+#line 754 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp76_ = TRUE;
+#line 4949 "page-view.c"
} else {
CropLocation _tmp78_;
+#line 755 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp78_ = self->priv->crop_location;
+#line 755 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp76_ = _tmp78_ == CROP_LOCATION_BOTTOM;
+#line 4956 "page-view.c"
}
+#line 754 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp79_ = _tmp76_;
+#line 754 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp79_) {
+#line 754 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp75_ = TRUE;
+#line 4964 "page-view.c"
} else {
CropLocation _tmp80_;
+#line 756 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp80_ = self->priv->crop_location;
+#line 756 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp75_ = _tmp80_ == CROP_LOCATION_BOTTOM_RIGHT;
+#line 4971 "page-view.c"
}
+#line 754 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp81_ = _tmp75_;
+#line 754 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp81_) {
+#line 4977 "page-view.c"
gint _tmp82_;
gint _tmp83_;
gint _tmp84_;
@@ -3176,32 +4981,55 @@ void page_view_motion (PageView* self, gint x, gint y) {
gint _tmp88_;
gint _tmp89_;
gint _tmp90_;
+#line 758 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp82_ = dy;
+#line 758 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp83_ = min_size;
+#line 758 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp84_ = new_h;
+#line 758 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp82_ < (_tmp83_ - _tmp84_)) {
+#line 4993 "page-view.c"
gint _tmp85_;
gint _tmp86_;
+#line 759 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp85_ = min_size;
+#line 759 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp86_ = new_h;
+#line 759 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
dy = _tmp85_ - _tmp86_;
+#line 5002 "page-view.c"
}
+#line 760 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp87_ = new_y;
+#line 760 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp88_ = new_h;
+#line 760 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp89_ = dy;
+#line 760 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp90_ = ph;
+#line 760 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (((_tmp87_ + _tmp88_) + _tmp89_) > _tmp90_) {
+#line 5014 "page-view.c"
gint _tmp91_;
gint _tmp92_;
gint _tmp93_;
+#line 761 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp91_ = ph;
+#line 761 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp92_ = new_y;
+#line 761 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp93_ = new_h;
+#line 761 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
dy = (_tmp91_ - _tmp92_) - _tmp93_;
+#line 5026 "page-view.c"
}
}
+#line 763 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp94_ = self->priv->crop_location;
+#line 763 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp94_ == CROP_LOCATION_MIDDLE) {
+#line 5033 "page-view.c"
gint _tmp95_;
gint _tmp96_;
gint _tmp97_;
@@ -3214,208 +5042,374 @@ void page_view_motion (PageView* self, gint x, gint y) {
gint _tmp108_;
gint _tmp112_;
gint _tmp113_;
+#line 765 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp95_ = new_x;
+#line 765 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp96_ = dx;
+#line 765 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp97_ = new_w;
+#line 765 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp98_ = pw;
+#line 765 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (((_tmp95_ + _tmp96_) + _tmp97_) > _tmp98_) {
+#line 5056 "page-view.c"
gint _tmp99_;
gint _tmp100_;
gint _tmp101_;
+#line 766 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp99_ = pw;
+#line 766 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp100_ = new_x;
+#line 766 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp101_ = new_w;
+#line 766 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
dx = (_tmp99_ - _tmp100_) - _tmp101_;
+#line 5068 "page-view.c"
}
+#line 767 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp102_ = new_x;
+#line 767 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp103_ = dx;
+#line 767 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if ((_tmp102_ + _tmp103_) < 0) {
+#line 5076 "page-view.c"
gint _tmp104_;
+#line 768 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp104_ = new_x;
+#line 768 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
dx = -_tmp104_;
+#line 5082 "page-view.c"
}
+#line 769 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp105_ = new_y;
+#line 769 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp106_ = dy;
+#line 769 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp107_ = new_h;
+#line 769 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp108_ = ph;
+#line 769 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (((_tmp105_ + _tmp106_) + _tmp107_) > _tmp108_) {
+#line 5094 "page-view.c"
gint _tmp109_;
gint _tmp110_;
gint _tmp111_;
+#line 770 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp109_ = ph;
+#line 770 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp110_ = new_y;
+#line 770 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp111_ = new_h;
+#line 770 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
dy = (_tmp109_ - _tmp110_) - _tmp111_;
+#line 5106 "page-view.c"
}
+#line 771 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp112_ = new_y;
+#line 771 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp113_ = dy;
+#line 771 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if ((_tmp112_ + _tmp113_) < 0) {
+#line 5114 "page-view.c"
gint _tmp114_;
+#line 772 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp114_ = new_y;
+#line 772 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
dy = -_tmp114_;
+#line 5120 "page-view.c"
}
}
+#line 776 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp115_ = self->priv->crop_location;
+#line 776 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp115_ == CROP_LOCATION_MIDDLE) {
+#line 5127 "page-view.c"
gint _tmp116_;
gint _tmp117_;
gint _tmp118_;
gint _tmp119_;
+#line 778 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp116_ = new_x;
+#line 778 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp117_ = dx;
+#line 778 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
new_x = _tmp116_ + _tmp117_;
+#line 779 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp118_ = new_y;
+#line 779 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp119_ = dy;
+#line 779 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
new_y = _tmp118_ + _tmp119_;
+#line 5144 "page-view.c"
}
+#line 781 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp122_ = self->priv->crop_location;
+#line 781 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp122_ == CROP_LOCATION_TOP_LEFT) {
+#line 781 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp121_ = TRUE;
+#line 5152 "page-view.c"
} else {
CropLocation _tmp123_;
+#line 782 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp123_ = self->priv->crop_location;
+#line 782 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp121_ = _tmp123_ == CROP_LOCATION_LEFT;
+#line 5159 "page-view.c"
}
+#line 781 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp124_ = _tmp121_;
+#line 781 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp124_) {
+#line 781 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp120_ = TRUE;
+#line 5167 "page-view.c"
} else {
CropLocation _tmp125_;
+#line 783 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp125_ = self->priv->crop_location;
+#line 783 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp120_ = _tmp125_ == CROP_LOCATION_BOTTOM_LEFT;
+#line 5174 "page-view.c"
}
+#line 781 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp126_ = _tmp120_;
+#line 781 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp126_) {
+#line 5180 "page-view.c"
gint _tmp127_;
gint _tmp128_;
gint _tmp129_;
gint _tmp130_;
+#line 785 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp127_ = new_x;
+#line 785 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp128_ = dx;
+#line 785 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
new_x = _tmp127_ + _tmp128_;
+#line 786 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp129_ = new_w;
+#line 786 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp130_ = dx;
+#line 786 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
new_w = _tmp129_ - _tmp130_;
+#line 5197 "page-view.c"
}
+#line 788 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp133_ = self->priv->crop_location;
+#line 788 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp133_ == CROP_LOCATION_TOP_LEFT) {
+#line 788 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp132_ = TRUE;
+#line 5205 "page-view.c"
} else {
CropLocation _tmp134_;
+#line 789 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp134_ = self->priv->crop_location;
+#line 789 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp132_ = _tmp134_ == CROP_LOCATION_TOP;
+#line 5212 "page-view.c"
}
+#line 788 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp135_ = _tmp132_;
+#line 788 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp135_) {
+#line 788 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp131_ = TRUE;
+#line 5220 "page-view.c"
} else {
CropLocation _tmp136_;
+#line 790 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp136_ = self->priv->crop_location;
+#line 790 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp131_ = _tmp136_ == CROP_LOCATION_TOP_RIGHT;
+#line 5227 "page-view.c"
}
+#line 788 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp137_ = _tmp131_;
+#line 788 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp137_) {
+#line 5233 "page-view.c"
gint _tmp138_;
gint _tmp139_;
gint _tmp140_;
gint _tmp141_;
+#line 792 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp138_ = new_y;
+#line 792 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp139_ = dy;
+#line 792 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
new_y = _tmp138_ + _tmp139_;
+#line 793 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp140_ = new_h;
+#line 793 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp141_ = dy;
+#line 793 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
new_h = _tmp140_ - _tmp141_;
+#line 5250 "page-view.c"
}
+#line 796 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp144_ = self->priv->crop_location;
+#line 796 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp144_ == CROP_LOCATION_TOP_RIGHT) {
+#line 796 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp143_ = TRUE;
+#line 5258 "page-view.c"
} else {
CropLocation _tmp145_;
+#line 797 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp145_ = self->priv->crop_location;
+#line 797 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp143_ = _tmp145_ == CROP_LOCATION_RIGHT;
+#line 5265 "page-view.c"
}
+#line 796 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp146_ = _tmp143_;
+#line 796 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp146_) {
+#line 796 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp142_ = TRUE;
+#line 5273 "page-view.c"
} else {
CropLocation _tmp147_;
+#line 798 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp147_ = self->priv->crop_location;
+#line 798 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp142_ = _tmp147_ == CROP_LOCATION_BOTTOM_RIGHT;
+#line 5280 "page-view.c"
}
+#line 796 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp148_ = _tmp142_;
+#line 796 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp148_) {
+#line 5286 "page-view.c"
gint _tmp149_;
gint _tmp150_;
+#line 799 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp149_ = new_w;
+#line 799 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp150_ = dx;
+#line 799 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
new_w = _tmp149_ + _tmp150_;
+#line 5295 "page-view.c"
}
+#line 800 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp153_ = self->priv->crop_location;
+#line 800 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp153_ == CROP_LOCATION_BOTTOM_LEFT) {
+#line 800 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp152_ = TRUE;
+#line 5303 "page-view.c"
} else {
CropLocation _tmp154_;
+#line 801 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp154_ = self->priv->crop_location;
+#line 801 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp152_ = _tmp154_ == CROP_LOCATION_BOTTOM;
+#line 5310 "page-view.c"
}
+#line 800 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp155_ = _tmp152_;
+#line 800 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp155_) {
+#line 800 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp151_ = TRUE;
+#line 5318 "page-view.c"
} else {
CropLocation _tmp156_;
+#line 802 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp156_ = self->priv->crop_location;
+#line 802 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp151_ = _tmp156_ == CROP_LOCATION_BOTTOM_RIGHT;
+#line 5325 "page-view.c"
}
+#line 800 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp157_ = _tmp151_;
+#line 800 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp157_) {
+#line 5331 "page-view.c"
gint _tmp158_;
gint _tmp159_;
+#line 803 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp158_ = new_h;
+#line 803 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp159_ = dy;
+#line 803 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
new_h = _tmp158_ + _tmp159_;
+#line 5340 "page-view.c"
}
+#line 805 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp160_ = self->priv->page;
+#line 805 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp161_ = new_x;
+#line 805 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp162_ = new_y;
+#line 805 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
page_move_crop (_tmp160_, _tmp161_, _tmp162_);
+#line 808 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp164_ = new_w;
+#line 808 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp165_ = cw;
+#line 808 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp164_ != _tmp165_) {
+#line 808 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp163_ = TRUE;
+#line 5358 "page-view.c"
} else {
gint _tmp166_;
gint _tmp167_;
+#line 808 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp166_ = new_h;
+#line 808 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp167_ = ch;
+#line 808 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp163_ = _tmp166_ != _tmp167_;
+#line 5368 "page-view.c"
}
+#line 808 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp168_ = _tmp163_;
+#line 808 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp168_) {
+#line 5374 "page-view.c"
Page* _tmp169_;
gint _tmp170_;
gint _tmp171_;
+#line 809 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp169_ = self->priv->page;
+#line 809 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp170_ = new_w;
+#line 809 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp171_ = new_h;
+#line 809 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
page_set_custom_crop (_tmp169_, _tmp170_, _tmp171_);
+#line 5386 "page-view.c"
}
}
void page_view_button_release (PageView* self, gint x, gint y) {
+#line 812 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_return_if_fail (self != NULL);
+#line 815 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
self->priv->crop_location = CROP_LOCATION_NONE;
+#line 816 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_signal_emit_by_name (self, "changed");
+#line 5398 "page-view.c"
}
GdkCursorType page_view_get_cursor (PageView* self) {
GdkCursorType result = 0;
GdkCursorType _tmp0_;
+#line 819 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_return_val_if_fail (self != NULL, 0);
+#line 821 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp0_ = self->priv->cursor;
+#line 821 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
result = _tmp0_;
+#line 821 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
return result;
+#line 5413 "page-view.c"
}
@@ -3423,20 +5417,30 @@ static gboolean page_view_animation_cb (PageView* self) {
gboolean result = FALSE;
gint _tmp0_;
gint _tmp1_;
+#line 824 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_return_val_if_fail (self != NULL, FALSE);
+#line 826 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp0_ = self->priv->animate_segment;
+#line 826 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp1_ = self->priv->animate_n_segments;
+#line 826 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
self->priv->animate_segment = (_tmp0_ + 1) % _tmp1_;
+#line 827 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_signal_emit_by_name (self, "changed");
+#line 828 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
result = TRUE;
+#line 828 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
return result;
+#line 5435 "page-view.c"
}
static gboolean _page_view_animation_cb_gsource_func (gpointer self) {
gboolean result;
result = page_view_animation_cb (self);
+#line 844 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
return result;
+#line 5444 "page-view.c"
}
@@ -3451,46 +5455,84 @@ static void page_view_update_animation (PageView* self) {
gboolean _tmp7_;
gboolean _tmp8_;
gboolean _tmp9_;
+#line 831 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_return_if_fail (self != NULL);
+#line 835 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp1_ = self->priv->page;
+#line 835 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp2_ = page_is_scanning (_tmp1_);
+#line 835 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp2_) {
+#line 5467 "page-view.c"
Page* _tmp3_;
gboolean _tmp4_ = FALSE;
+#line 835 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp3_ = self->priv->page;
+#line 835 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp4_ = page_has_data (_tmp3_);
+#line 835 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp0_ = !_tmp4_;
+#line 5476 "page-view.c"
} else {
+#line 835 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp0_ = FALSE;
+#line 5480 "page-view.c"
}
+#line 835 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp5_ = _tmp0_;
+#line 835 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
animate = _tmp5_;
+#line 836 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp6_ = self->priv->animate_timeout;
+#line 836 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
is_animating = _tmp6_ != ((guint) 0);
+#line 837 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp7_ = animate;
+#line 837 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp8_ = is_animating;
+#line 837 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp7_ == _tmp8_) {
+#line 838 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
return;
+#line 5498 "page-view.c"
}
+#line 840 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp9_ = animate;
+#line 840 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp9_) {
+#line 5504 "page-view.c"
guint _tmp10_;
+#line 842 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
self->priv->animate_segment = 0;
+#line 843 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp10_ = self->priv->animate_timeout;
+#line 843 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp10_ == ((guint) 0)) {
+#line 5512 "page-view.c"
guint _tmp11_ = 0U;
+#line 844 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp11_ = g_timeout_add_full (G_PRIORITY_DEFAULT, (guint) 150, _page_view_animation_cb_gsource_func, page_view_ref (self), page_view_unref);
+#line 844 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
self->priv->animate_timeout = _tmp11_;
+#line 5518 "page-view.c"
}
} else {
guint _tmp12_;
+#line 848 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp12_ = self->priv->animate_timeout;
+#line 848 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp12_ != ((guint) 0)) {
+#line 5526 "page-view.c"
guint _tmp13_;
+#line 849 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp13_ = self->priv->animate_timeout;
+#line 849 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_source_remove (_tmp13_);
+#line 5532 "page-view.c"
}
+#line 850 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
self->priv->animate_timeout = (guint) 0;
+#line 5536 "page-view.c"
}
}
@@ -3531,57 +5573,108 @@ void page_view_render (PageView* self, cairo_t* context) {
gboolean _tmp75_;
Page* _tmp115_;
gboolean _tmp116_ = FALSE;
+#line 854 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_return_if_fail (self != NULL);
+#line 854 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_return_if_fail (context != NULL);
+#line 856 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
page_view_update_animation (self);
+#line 857 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
page_view_update_page_view (self);
+#line 859 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp0_ = page_view_get_preview_width (self);
+#line 859 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
w = _tmp0_;
+#line 860 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp1_ = page_view_get_preview_height (self);
+#line 860 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
h = _tmp1_;
+#line 862 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp2_ = context;
+#line 862 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
cairo_set_line_width (_tmp2_, (gdouble) 1);
+#line 863 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp3_ = context;
+#line 863 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp4_ = self->priv->x_offset;
+#line 863 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp5_ = self->priv->y_offset;
+#line 863 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
cairo_translate (_tmp3_, (gdouble) _tmp4_, (gdouble) _tmp5_);
+#line 866 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp6_ = context;
+#line 866 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
cairo_set_source_rgb (_tmp6_, (gdouble) 0, (gdouble) 0, (gdouble) 0);
+#line 867 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp7_ = context;
+#line 867 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp8_ = self->priv->border_width;
+#line 867 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
cairo_set_line_width (_tmp7_, (gdouble) _tmp8_);
+#line 868 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp9_ = context;
+#line 868 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp10_ = self->priv->border_width;
+#line 868 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp11_ = self->priv->border_width;
+#line 868 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp12_ = self->priv->width;
+#line 868 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp13_ = self->priv->border_width;
+#line 868 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp14_ = self->priv->height;
+#line 868 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp15_ = self->priv->border_width;
+#line 868 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
cairo_rectangle (_tmp9_, ((gdouble) _tmp10_) / 2, ((gdouble) _tmp11_) / 2, (gdouble) (_tmp12_ - _tmp13_), (gdouble) (_tmp14_ - _tmp15_));
+#line 872 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp16_ = context;
+#line 872 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
cairo_stroke (_tmp16_);
+#line 875 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp17_ = context;
+#line 875 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp18_ = self->priv->border_width;
+#line 875 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp19_ = self->priv->border_width;
+#line 875 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
cairo_translate (_tmp17_, (gdouble) _tmp18_, (gdouble) _tmp19_);
+#line 876 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp20_ = context;
+#line 876 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp21_ = self->priv->image;
+#line 876 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
gdk_cairo_set_source_pixbuf (_tmp20_, _tmp21_, (gdouble) 0, (gdouble) 0);
+#line 877 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp22_ = context;
+#line 877 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
cairo_paint (_tmp22_);
+#line 880 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp24_ = self->priv->page;
+#line 880 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp25_ = page_is_scanning (_tmp24_);
+#line 880 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp25_) {
+#line 5659 "page-view.c"
Page* _tmp26_;
gboolean _tmp27_ = FALSE;
+#line 880 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp26_ = self->priv->page;
+#line 880 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp27_ = page_has_data (_tmp26_);
+#line 880 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp23_ = !_tmp27_;
+#line 5668 "page-view.c"
} else {
+#line 880 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp23_ = FALSE;
+#line 5672 "page-view.c"
}
+#line 880 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp28_ = _tmp23_;
+#line 880 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp28_) {
+#line 5678 "page-view.c"
gdouble outer_radius = 0.0;
gint _tmp29_;
gint _tmp30_;
@@ -3602,41 +5695,74 @@ void page_view_render (PageView* self, cairo_t* context) {
gdouble _tmp44_ = 0.0;
gdouble inner_radius;
gdouble offset;
+#line 883 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp29_ = w;
+#line 883 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp30_ = h;
+#line 883 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp29_ > _tmp30_) {
+#line 5705 "page-view.c"
gint _tmp31_;
+#line 884 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp31_ = w;
+#line 884 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
outer_radius = 0.15 * _tmp31_;
+#line 5711 "page-view.c"
} else {
gint _tmp32_;
+#line 886 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp32_ = h;
+#line 886 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
outer_radius = 0.15 * _tmp32_;
+#line 5718 "page-view.c"
}
+#line 887 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp33_ = self->priv->animate_n_segments;
+#line 887 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
arc = G_PI / _tmp33_;
+#line 890 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp34_ = outer_radius;
+#line 890 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp35_ = arc;
+#line 890 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp36_ = sin (_tmp35_);
+#line 890 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
x = _tmp34_ * _tmp36_;
+#line 891 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp37_ = outer_radius;
+#line 891 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp38_ = arc;
+#line 891 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp39_ = cos (_tmp38_);
+#line 891 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
y = _tmp37_ * (_tmp39_ - 1.0);
+#line 892 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp40_ = x;
+#line 892 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp41_ = x;
+#line 892 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp42_ = y;
+#line 892 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp43_ = y;
+#line 892 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp44_ = sqrt ((_tmp40_ * _tmp41_) + (_tmp42_ * _tmp43_));
+#line 892 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
inner_radius = 0.6 * _tmp44_;
+#line 894 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
offset = 0.0;
+#line 5754 "page-view.c"
{
gint i;
+#line 895 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
i = 0;
+#line 5759 "page-view.c"
{
gboolean _tmp45_;
+#line 895 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp45_ = TRUE;
+#line 895 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
while (TRUE) {
+#line 5766 "page-view.c"
gboolean _tmp46_;
gint _tmp50_;
gint _tmp51_;
@@ -3656,69 +5782,126 @@ void page_view_render (PageView* self, cairo_t* context) {
gint _tmp65_;
cairo_t* _tmp68_;
cairo_t* _tmp69_;
+#line 895 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp46_ = _tmp45_;
+#line 895 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (!_tmp46_) {
+#line 5790 "page-view.c"
gint _tmp47_;
gdouble _tmp48_;
gdouble _tmp49_;
+#line 895 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp47_ = i;
+#line 895 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
i = _tmp47_ + 1;
+#line 895 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp48_ = offset;
+#line 895 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp49_ = arc;
+#line 895 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
offset = _tmp48_ + (_tmp49_ * 2);
+#line 5804 "page-view.c"
}
+#line 895 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp45_ = FALSE;
+#line 895 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp50_ = i;
+#line 895 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp51_ = self->priv->animate_n_segments;
+#line 895 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (!(_tmp50_ < _tmp51_)) {
+#line 895 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
break;
+#line 5816 "page-view.c"
}
+#line 897 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp52_ = w;
+#line 897 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp53_ = outer_radius;
+#line 897 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp54_ = offset;
+#line 897 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp55_ = sin (_tmp54_);
+#line 897 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
x = (_tmp52_ / 2) + (_tmp53_ * _tmp55_);
+#line 898 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp56_ = h;
+#line 898 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp57_ = outer_radius;
+#line 898 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp58_ = offset;
+#line 898 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp59_ = cos (_tmp58_);
+#line 898 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
y = (_tmp56_ / 2) - (_tmp57_ * _tmp59_);
+#line 899 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp60_ = context;
+#line 899 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp61_ = x;
+#line 899 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp62_ = y;
+#line 899 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp63_ = inner_radius;
+#line 899 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
cairo_arc (_tmp60_, _tmp61_, _tmp62_, _tmp63_, (gdouble) 0, 2 * G_PI);
+#line 901 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp64_ = i;
+#line 901 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp65_ = self->priv->animate_segment;
+#line 901 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp64_ == _tmp65_) {
+#line 5854 "page-view.c"
cairo_t* _tmp66_;
cairo_t* _tmp67_;
+#line 903 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp66_ = context;
+#line 903 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
cairo_set_source_rgb (_tmp66_, 0.75, 0.75, 0.75);
+#line 904 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp67_ = context;
+#line 904 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
cairo_fill_preserve (_tmp67_);
+#line 5865 "page-view.c"
}
+#line 907 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp68_ = context;
+#line 907 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
cairo_set_source_rgb (_tmp68_, 0.5, 0.5, 0.5);
+#line 908 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp69_ = context;
+#line 908 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
cairo_stroke (_tmp69_);
+#line 5875 "page-view.c"
}
}
}
}
+#line 913 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp71_ = self->priv->page;
+#line 913 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp72_ = page_is_scanning (_tmp71_);
+#line 913 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp72_) {
+#line 5886 "page-view.c"
Page* _tmp73_;
gint _tmp74_ = 0;
+#line 913 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp73_ = self->priv->page;
+#line 913 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp74_ = page_get_scan_line (_tmp73_);
+#line 913 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp70_ = _tmp74_ > 0;
+#line 5895 "page-view.c"
} else {
+#line 913 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp70_ = FALSE;
+#line 5899 "page-view.c"
}
+#line 913 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp75_ = _tmp70_;
+#line 913 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp75_) {
+#line 5905 "page-view.c"
Page* _tmp76_;
gint _tmp77_ = 0;
gint scan_line;
@@ -3737,32 +5920,54 @@ void page_view_render (PageView* self, cairo_t* context) {
gdouble _tmp112_;
cairo_t* _tmp113_;
cairo_t* _tmp114_;
+#line 915 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp76_ = self->priv->page;
+#line 915 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp77_ = page_get_scan_line (_tmp76_);
+#line 915 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
scan_line = _tmp77_;
+#line 919 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp78_ = self->priv->page;
+#line 919 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp79_ = page_get_scan_direction (_tmp78_);
+#line 919 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
switch (_tmp79_) {
+#line 919 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
case SCAN_DIRECTION_TOP_TO_BOTTOM:
+#line 5938 "page-view.c"
{
gint _tmp80_;
gint _tmp81_ = 0;
gdouble _tmp82_;
gint _tmp83_;
gdouble _tmp84_;
+#line 922 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp80_ = scan_line;
+#line 922 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp81_ = page_view_page_to_screen_y (self, _tmp80_);
+#line 922 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
s = (gdouble) _tmp81_;
+#line 923 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
x1 = (gdouble) 0;
+#line 923 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp82_ = s;
+#line 923 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
y1 = _tmp82_ + 0.5;
+#line 924 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp83_ = w;
+#line 924 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
x2 = (gdouble) _tmp83_;
+#line 924 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp84_ = s;
+#line 924 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
y2 = _tmp84_ + 0.5;
+#line 925 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
break;
+#line 5967 "page-view.c"
}
+#line 919 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
case SCAN_DIRECTION_BOTTOM_TO_TOP:
+#line 5971 "page-view.c"
{
gint _tmp85_;
gint _tmp86_ = 0;
@@ -3771,40 +5976,70 @@ void page_view_render (PageView* self, cairo_t* context) {
gint _tmp89_;
gint _tmp90_;
gdouble _tmp91_;
+#line 927 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp85_ = scan_line;
+#line 927 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp86_ = page_view_page_to_screen_y (self, _tmp85_);
+#line 927 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
s = (gdouble) _tmp86_;
+#line 928 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
x1 = (gdouble) 0;
+#line 928 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp87_ = h;
+#line 928 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp88_ = s;
+#line 928 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
y1 = (_tmp87_ - _tmp88_) + 0.5;
+#line 929 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp89_ = w;
+#line 929 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
x2 = (gdouble) _tmp89_;
+#line 929 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp90_ = h;
+#line 929 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp91_ = s;
+#line 929 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
y2 = (_tmp90_ - _tmp91_) + 0.5;
+#line 930 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
break;
+#line 6006 "page-view.c"
}
+#line 919 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
case SCAN_DIRECTION_LEFT_TO_RIGHT:
+#line 6010 "page-view.c"
{
gint _tmp92_;
gint _tmp93_ = 0;
gdouble _tmp94_;
gdouble _tmp95_;
gint _tmp96_;
+#line 932 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp92_ = scan_line;
+#line 932 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp93_ = page_view_page_to_screen_x (self, _tmp92_);
+#line 932 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
s = (gdouble) _tmp93_;
+#line 933 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp94_ = s;
+#line 933 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
x1 = _tmp94_ + 0.5;
+#line 933 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
y1 = (gdouble) 0;
+#line 934 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp95_ = s;
+#line 934 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
x2 = _tmp95_ + 0.5;
+#line 934 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp96_ = h;
+#line 934 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
y2 = (gdouble) _tmp96_;
+#line 935 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
break;
+#line 6039 "page-view.c"
}
+#line 919 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
case SCAN_DIRECTION_RIGHT_TO_LEFT:
+#line 6043 "page-view.c"
{
gint _tmp97_;
gint _tmp98_ = 0;
@@ -3813,51 +6048,91 @@ void page_view_render (PageView* self, cairo_t* context) {
gint _tmp101_;
gdouble _tmp102_;
gint _tmp103_;
+#line 937 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp97_ = scan_line;
+#line 937 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp98_ = page_view_page_to_screen_x (self, _tmp97_);
+#line 937 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
s = (gdouble) _tmp98_;
+#line 938 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp99_ = w;
+#line 938 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp100_ = s;
+#line 938 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
x1 = (_tmp99_ - _tmp100_) + 0.5;
+#line 938 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
y1 = (gdouble) 0;
+#line 939 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp101_ = w;
+#line 939 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp102_ = s;
+#line 939 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
x2 = (_tmp101_ - _tmp102_) + 0.5;
+#line 939 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp103_ = h;
+#line 939 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
y2 = (gdouble) _tmp103_;
+#line 940 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
break;
+#line 6078 "page-view.c"
}
default:
{
gdouble _tmp104_;
gdouble _tmp105_;
gdouble _tmp106_;
+#line 942 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
y2 = (gdouble) 0;
+#line 942 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp104_ = y2;
+#line 942 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
x2 = _tmp104_;
+#line 942 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp105_ = x2;
+#line 942 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
y1 = _tmp105_;
+#line 942 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp106_ = y1;
+#line 942 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
x1 = _tmp106_;
+#line 943 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
break;
+#line 6101 "page-view.c"
}
}
+#line 946 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp107_ = context;
+#line 946 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp108_ = x1;
+#line 946 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp109_ = y1;
+#line 946 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
cairo_move_to (_tmp107_, _tmp108_, _tmp109_);
+#line 947 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp110_ = context;
+#line 947 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp111_ = x2;
+#line 947 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp112_ = y2;
+#line 947 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
cairo_line_to (_tmp110_, _tmp111_, _tmp112_);
+#line 948 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp113_ = context;
+#line 948 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
cairo_set_source_rgb (_tmp113_, 1.0, 0.0, 0.0);
+#line 949 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp114_ = context;
+#line 949 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
cairo_stroke (_tmp114_);
+#line 6128 "page-view.c"
}
+#line 953 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp115_ = self->priv->page;
+#line 953 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp116_ = page_has_crop (_tmp115_);
+#line 953 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp116_) {
+#line 6136 "page-view.c"
gint x = 0;
gint y = 0;
gint crop_width = 0;
@@ -3905,62 +6180,119 @@ void page_view_render (PageView* self, cairo_t* context) {
gint _tmp153_;
cairo_t* _tmp154_;
cairo_t* _tmp155_;
+#line 956 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp117_ = self->priv->page;
+#line 956 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
page_get_crop (_tmp117_, &_tmp118_, &_tmp119_, &_tmp120_, &_tmp121_);
+#line 956 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
x = _tmp118_;
+#line 956 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
y = _tmp119_;
+#line 956 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
crop_width = _tmp120_;
+#line 956 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
crop_height = _tmp121_;
+#line 958 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp122_ = x;
+#line 958 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp123_ = page_view_page_to_screen_x (self, _tmp122_);
+#line 958 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
dx = _tmp123_;
+#line 959 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp124_ = y;
+#line 959 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp125_ = page_view_page_to_screen_y (self, _tmp124_);
+#line 959 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
dy = _tmp125_;
+#line 960 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp126_ = crop_width;
+#line 960 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp127_ = page_view_page_to_screen_x (self, _tmp126_);
+#line 960 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
dw = _tmp127_;
+#line 961 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp128_ = crop_height;
+#line 961 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp129_ = page_view_page_to_screen_y (self, _tmp128_);
+#line 961 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
dh = _tmp129_;
+#line 964 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp130_ = context;
+#line 964 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp131_ = w;
+#line 964 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp132_ = h;
+#line 964 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
cairo_rectangle (_tmp130_, (gdouble) 0, (gdouble) 0, (gdouble) _tmp131_, (gdouble) _tmp132_);
+#line 965 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp133_ = context;
+#line 965 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
cairo_new_sub_path (_tmp133_);
+#line 966 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp134_ = context;
+#line 966 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp135_ = dx;
+#line 966 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp136_ = dy;
+#line 966 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp137_ = dw;
+#line 966 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp138_ = dh;
+#line 966 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
cairo_rectangle (_tmp134_, (gdouble) _tmp135_, (gdouble) _tmp136_, (gdouble) _tmp137_, (gdouble) _tmp138_);
+#line 967 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp139_ = context;
+#line 967 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
cairo_set_fill_rule (_tmp139_, CAIRO_FILL_RULE_EVEN_ODD);
+#line 968 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp140_ = context;
+#line 968 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
cairo_set_source_rgba (_tmp140_, 0.25, 0.25, 0.25, 0.2);
+#line 969 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp141_ = context;
+#line 969 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
cairo_fill (_tmp141_);
+#line 972 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp142_ = context;
+#line 972 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp143_ = dx;
+#line 972 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp144_ = dy;
+#line 972 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp145_ = dw;
+#line 972 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp146_ = dh;
+#line 972 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
cairo_rectangle (_tmp142_, _tmp143_ - 1.5, _tmp144_ - 1.5, (gdouble) (_tmp145_ + 3), (gdouble) (_tmp146_ + 3));
+#line 973 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp147_ = context;
+#line 973 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
cairo_set_source_rgb (_tmp147_, 1.0, 1.0, 1.0);
+#line 974 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp148_ = context;
+#line 974 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
cairo_stroke (_tmp148_);
+#line 975 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp149_ = context;
+#line 975 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp150_ = dx;
+#line 975 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp151_ = dy;
+#line 975 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp152_ = dw;
+#line 975 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp153_ = dh;
+#line 975 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
cairo_rectangle (_tmp149_, _tmp150_ - 0.5, _tmp151_ - 0.5, (gdouble) (_tmp152_ + 1), (gdouble) (_tmp153_ + 1));
+#line 976 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp154_ = context;
+#line 976 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
cairo_set_source_rgb (_tmp154_, 0.0, 0.0, 0.0);
+#line 977 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp155_ = context;
+#line 977 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
cairo_stroke (_tmp155_);
+#line 6296 "page-view.c"
}
}
@@ -3978,35 +6310,64 @@ void page_view_set_width (PageView* self, gint width) {
gboolean _tmp10_;
gint _tmp11_;
gint _tmp12_;
+#line 981 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_return_if_fail (self != NULL);
+#line 984 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp0_ = width;
+#line 984 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp1_ = self->priv->page;
+#line 984 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp2_ = page_get_height (_tmp1_);
+#line 984 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp3_ = self->priv->page;
+#line 984 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp4_ = page_get_width (_tmp3_);
+#line 984 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
height = (gint) ((((gdouble) _tmp0_) * _tmp2_) / _tmp4_);
+#line 985 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp6_ = self->priv->width;
+#line 985 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp7_ = width;
+#line 985 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp6_ == _tmp7_) {
+#line 6334 "page-view.c"
gint _tmp8_;
gint _tmp9_;
+#line 985 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp8_ = self->priv->height;
+#line 985 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp9_ = height;
+#line 985 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp5_ = _tmp8_ == _tmp9_;
+#line 6343 "page-view.c"
} else {
+#line 985 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp5_ = FALSE;
+#line 6347 "page-view.c"
}
+#line 985 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp10_ = _tmp5_;
+#line 985 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp10_) {
+#line 986 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
return;
+#line 6355 "page-view.c"
}
+#line 988 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp11_ = width;
+#line 988 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
self->priv->width = _tmp11_;
+#line 989 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp12_ = height;
+#line 989 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
self->priv->height = _tmp12_;
+#line 992 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
self->priv->update_image = TRUE;
+#line 994 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_signal_emit_by_name (self, "size-changed");
+#line 995 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_signal_emit_by_name (self, "changed");
+#line 6371 "page-view.c"
}
@@ -4023,218 +6384,362 @@ void page_view_set_height (PageView* self, gint height) {
gboolean _tmp10_;
gint _tmp11_;
gint _tmp12_;
+#line 998 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_return_if_fail (self != NULL);
+#line 1001 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp0_ = height;
+#line 1001 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp1_ = self->priv->page;
+#line 1001 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp2_ = page_get_width (_tmp1_);
+#line 1001 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp3_ = self->priv->page;
+#line 1001 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp4_ = page_get_height (_tmp3_);
+#line 1001 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
width = (gint) ((((gdouble) _tmp0_) * _tmp2_) / _tmp4_);
+#line 1002 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp6_ = self->priv->width;
+#line 1002 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp7_ = width;
+#line 1002 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp6_ == _tmp7_) {
+#line 6408 "page-view.c"
gint _tmp8_;
gint _tmp9_;
+#line 1002 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp8_ = self->priv->height;
+#line 1002 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp9_ = height;
+#line 1002 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp5_ = _tmp8_ == _tmp9_;
+#line 6417 "page-view.c"
} else {
+#line 1002 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp5_ = FALSE;
+#line 6421 "page-view.c"
}
+#line 1002 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp10_ = _tmp5_;
+#line 1002 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (_tmp10_) {
+#line 1003 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
return;
+#line 6429 "page-view.c"
}
+#line 1005 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp11_ = width;
+#line 1005 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
self->priv->width = _tmp11_;
+#line 1006 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp12_ = height;
+#line 1006 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
self->priv->height = _tmp12_;
+#line 1009 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
self->priv->update_image = TRUE;
+#line 1011 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_signal_emit_by_name (self, "size-changed");
+#line 1012 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_signal_emit_by_name (self, "changed");
+#line 6445 "page-view.c"
}
gint page_view_get_width (PageView* self) {
gint result = 0;
gint _tmp0_;
+#line 1015 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_return_val_if_fail (self != NULL, 0);
+#line 1017 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp0_ = self->priv->width;
+#line 1017 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
result = _tmp0_;
+#line 1017 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
return result;
+#line 6460 "page-view.c"
}
gint page_view_get_height (PageView* self) {
gint result = 0;
gint _tmp0_;
+#line 1020 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_return_val_if_fail (self != NULL, 0);
+#line 1022 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp0_ = self->priv->height;
+#line 1022 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
result = _tmp0_;
+#line 1022 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
return result;
+#line 6475 "page-view.c"
}
static void page_view_page_pixels_changed_cb (PageView* self, Page* p) {
+#line 1025 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_return_if_fail (self != NULL);
+#line 1025 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_return_if_fail (p != NULL);
+#line 1028 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
self->priv->update_image = TRUE;
+#line 1029 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_signal_emit_by_name (self, "changed");
+#line 6488 "page-view.c"
}
static void page_view_page_size_changed_cb (PageView* self, Page* p) {
+#line 1032 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_return_if_fail (self != NULL);
+#line 1032 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_return_if_fail (p != NULL);
+#line 1035 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
self->priv->update_image = TRUE;
+#line 1036 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_signal_emit_by_name (self, "size-changed");
+#line 1037 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_signal_emit_by_name (self, "changed");
+#line 6503 "page-view.c"
}
static void page_view_page_overlay_changed_cb (PageView* self, Page* p) {
+#line 1040 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_return_if_fail (self != NULL);
+#line 1040 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_return_if_fail (p != NULL);
+#line 1042 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_signal_emit_by_name (self, "changed");
+#line 6514 "page-view.c"
}
static void page_view_scan_direction_changed_cb (PageView* self, Page* p) {
+#line 1045 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_return_if_fail (self != NULL);
+#line 1045 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_return_if_fail (p != NULL);
+#line 1048 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
self->priv->update_image = TRUE;
+#line 1049 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_signal_emit_by_name (self, "size-changed");
+#line 1050 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_signal_emit_by_name (self, "changed");
+#line 6529 "page-view.c"
}
static void value_page_view_init (GValue* value) {
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
value->data[0].v_pointer = NULL;
+#line 6536 "page-view.c"
}
static void value_page_view_free_value (GValue* value) {
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (value->data[0].v_pointer) {
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
page_view_unref (value->data[0].v_pointer);
+#line 6545 "page-view.c"
}
}
static void value_page_view_copy_value (const GValue* src_value, GValue* dest_value) {
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (src_value->data[0].v_pointer) {
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
dest_value->data[0].v_pointer = page_view_ref (src_value->data[0].v_pointer);
+#line 6555 "page-view.c"
} else {
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
dest_value->data[0].v_pointer = NULL;
+#line 6559 "page-view.c"
}
}
static gpointer value_page_view_peek_pointer (const GValue* value) {
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
return value->data[0].v_pointer;
+#line 6567 "page-view.c"
}
static gchar* value_page_view_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (collect_values[0].v_pointer) {
+#line 6574 "page-view.c"
PageView* object;
object = collect_values[0].v_pointer;
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (object->parent_instance.g_class == NULL) {
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 6581 "page-view.c"
} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 6585 "page-view.c"
}
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
value->data[0].v_pointer = page_view_ref (object);
+#line 6589 "page-view.c"
} else {
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
value->data[0].v_pointer = NULL;
+#line 6593 "page-view.c"
}
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
return NULL;
+#line 6597 "page-view.c"
}
static gchar* value_page_view_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
PageView** object_p;
object_p = collect_values[0].v_pointer;
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (!object_p) {
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
+#line 6608 "page-view.c"
}
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (!value->data[0].v_pointer) {
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
*object_p = NULL;
+#line 6614 "page-view.c"
} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
*object_p = value->data[0].v_pointer;
+#line 6618 "page-view.c"
} else {
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
*object_p = page_view_ref (value->data[0].v_pointer);
+#line 6622 "page-view.c"
}
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
return NULL;
+#line 6626 "page-view.c"
}
GParamSpec* param_spec_page_view (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
ParamSpecPageView* spec;
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_return_val_if_fail (g_type_is_a (object_type, TYPE_PAGE_VIEW), NULL);
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
G_PARAM_SPEC (spec)->value_type = object_type;
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
return G_PARAM_SPEC (spec);
+#line 6640 "page-view.c"
}
gpointer value_get_page_view (const GValue* value) {
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PAGE_VIEW), NULL);
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
return value->data[0].v_pointer;
+#line 6649 "page-view.c"
}
void value_set_page_view (GValue* value, gpointer v_object) {
PageView* old;
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PAGE_VIEW));
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
old = value->data[0].v_pointer;
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (v_object) {
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PAGE_VIEW));
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
value->data[0].v_pointer = v_object;
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
page_view_ref (value->data[0].v_pointer);
+#line 6669 "page-view.c"
} else {
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
value->data[0].v_pointer = NULL;
+#line 6673 "page-view.c"
}
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (old) {
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
page_view_unref (old);
+#line 6679 "page-view.c"
}
}
void value_take_page_view (GValue* value, gpointer v_object) {
PageView* old;
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PAGE_VIEW));
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
old = value->data[0].v_pointer;
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (v_object) {
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PAGE_VIEW));
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
value->data[0].v_pointer = v_object;
+#line 6698 "page-view.c"
} else {
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
value->data[0].v_pointer = NULL;
+#line 6702 "page-view.c"
}
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (old) {
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
page_view_unref (old);
+#line 6708 "page-view.c"
}
}
static void page_view_class_init (PageViewClass * klass) {
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
page_view_parent_class = g_type_class_peek_parent (klass);
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
PAGE_VIEW_CLASS (klass)->finalize = page_view_finalize;
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_type_class_add_private (klass, sizeof (PageViewPrivate));
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_signal_new ("size_changed", TYPE_PAGE_VIEW, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_signal_new ("changed", TYPE_PAGE_VIEW, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
+#line 6724 "page-view.c"
}
static void page_view_instance_init (PageView * self) {
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
self->priv = PAGE_VIEW_GET_PRIVATE (self);
+#line 32 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
self->priv->image = NULL;
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
self->priv->border_width = 1;
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
self->priv->update_image = TRUE;
+#line 64 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
self->priv->cursor = GDK_ARROW;
+#line 66 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
self->priv->animate_n_segments = 7;
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
self->ref_count = 1;
+#line 6743 "page-view.c"
}
@@ -4250,24 +6755,43 @@ static void page_view_finalize (PageView* obj) {
guint _tmp7_ = 0U;
Page* _tmp8_;
guint _tmp9_ = 0U;
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PAGE_VIEW, PageView);
+#line 85 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp0_ = self->priv->page;
+#line 85 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_signal_parse_name ("pixels-changed", TYPE_PAGE, &_tmp1_, NULL, FALSE);
+#line 85 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _page_view_page_pixels_changed_cb_page_pixels_changed, self);
+#line 86 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp2_ = self->priv->page;
+#line 86 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_signal_parse_name ("size-changed", TYPE_PAGE, &_tmp3_, NULL, FALSE);
+#line 86 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _page_view_page_size_changed_cb_page_size_changed, self);
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp4_ = self->priv->page;
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_signal_parse_name ("crop-changed", TYPE_PAGE, &_tmp5_, NULL, FALSE);
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_signal_handlers_disconnect_matched (_tmp4_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _page_view_page_overlay_changed_cb_page_crop_changed, self);
+#line 88 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp6_ = self->priv->page;
+#line 88 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_signal_parse_name ("scan-line-changed", TYPE_PAGE, &_tmp7_, NULL, FALSE);
+#line 88 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_signal_handlers_disconnect_matched (_tmp6_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp7_, 0, NULL, (GCallback) _page_view_page_overlay_changed_cb_page_scan_line_changed, self);
+#line 89 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_tmp8_ = self->priv->page;
+#line 89 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_signal_parse_name ("scan-direction-changed", TYPE_PAGE, &_tmp9_, NULL, FALSE);
+#line 89 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_signal_handlers_disconnect_matched (_tmp8_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp9_, 0, NULL, (GCallback) _page_view_scan_direction_changed_cb_page_scan_direction_changed, self);
+#line 29 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_page_unref0 (self->priv->page);
+#line 32 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
_g_object_unref0 (self->priv->image);
+#line 6795 "page-view.c"
}
@@ -4288,17 +6812,24 @@ GType page_view_get_type (void) {
gpointer page_view_ref (gpointer instance) {
PageView* self;
self = instance;
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_atomic_int_inc (&self->ref_count);
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
return instance;
+#line 6820 "page-view.c"
}
void page_view_unref (gpointer instance) {
PageView* self;
self = instance;
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
if (g_atomic_int_dec_and_test (&self->ref_count)) {
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
PAGE_VIEW_GET_CLASS (self)->finalize (self);
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/page-view.vala"
g_type_free_instance ((GTypeInstance *) self);
+#line 6833 "page-view.c"
}
}
diff --git a/src/page.c b/src/page.c
index a3c28d5..eee78d1 100644
--- a/src/page.c
+++ b/src/page.c
@@ -1,4 +1,4 @@
-/* page.c generated by valac 0.18.1, the Vala compiler
+/* page.c generated by valac 0.20.1, the Vala compiler
* generated from page.vala, do not modify */
/*
@@ -20,6 +20,8 @@
#include <math.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <glib/gstdio.h>
+#include <gtk/gtk.h>
+#include <gdk/gdk.h>
#include <gio/gio.h>
#include <gobject/gvaluecollector.h>
@@ -239,11 +241,14 @@ gboolean page_has_crop (Page* self);
void page_get_crop (Page* self, gint* x, gint* y, gint* width, gint* height);
gchar* page_get_named_crop (Page* self);
guchar* page_get_pixels (Page* self, int* result_length1);
+void page_set_pixels (Page* self, guchar* new_pixels, int new_pixels_length1);
+static guchar* _vala_array_dup3 (guchar* self, int length);
static guchar page_get_sample (Page* self, guchar* pixels, int pixels_length1, gint offset, gint x, gint depth, gint n_channels, gint channel);
static void page_get_pixel (Page* self, gint x, gint y, guchar* pixel, int pixel_length1, gint offset);
GdkPixbuf* page_get_image (Page* self, gboolean apply_crop);
static gchar* page_get_icc_data_encoded (Page* self, const gchar* icc_profile_filename);
-void page_save (Page* self, const gchar* type, GFile* file, GError** error);
+void page_copy_to_clipboard (Page* self, GtkWindow* window);
+void page_save (Page* self, const gchar* type, gint quality, GFile* file, GError** error);
PixbufWriter* pixbuf_writer_new (GFileOutputStream* stream);
PixbufWriter* pixbuf_writer_construct (GType object_type, GFileOutputStream* stream);
gpointer pixbuf_writer_ref (gpointer instance);
@@ -284,41 +289,70 @@ Page* page_construct (GType object_type, gint width, gint height, gint dpi, Scan
gboolean _tmp3_;
gint _tmp8_;
ScanDirection _tmp9_;
+#line 68 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self = (Page*) g_type_create_instance (object_type);
+#line 70 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp1_ = scan_direction;
+#line 70 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (_tmp1_ == SCAN_DIRECTION_TOP_TO_BOTTOM) {
+#line 70 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp0_ = TRUE;
+#line 301 "page.c"
} else {
ScanDirection _tmp2_;
+#line 70 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp2_ = scan_direction;
+#line 70 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp0_ = _tmp2_ == SCAN_DIRECTION_BOTTOM_TO_TOP;
+#line 308 "page.c"
}
+#line 70 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp3_ = _tmp0_;
+#line 70 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (_tmp3_) {
+#line 314 "page.c"
gint _tmp4_;
gint _tmp5_;
+#line 72 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp4_ = width;
+#line 72 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->width = _tmp4_;
+#line 73 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp5_ = height;
+#line 73 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->n_rows = _tmp5_;
+#line 325 "page.c"
} else {
gint _tmp6_;
gint _tmp7_;
+#line 77 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp6_ = height;
+#line 77 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->width = _tmp6_;
+#line 78 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp7_ = width;
+#line 78 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->n_rows = _tmp7_;
+#line 337 "page.c"
}
+#line 80 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp8_ = dpi;
+#line 80 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->dpi = _tmp8_;
+#line 81 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp9_ = scan_direction;
+#line 81 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->scan_direction = _tmp9_;
+#line 68 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return self;
+#line 349 "page.c"
}
Page* page_new (gint width, gint height, gint dpi, ScanDirection scan_direction) {
+#line 68 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return page_construct (TYPE_PAGE, width, height, dpi, scan_direction);
+#line 356 "page.c"
}
@@ -345,117 +379,199 @@ void page_set_page_info (Page* self, ScanPageInfo* info) {
guchar* _tmp20_;
gint _tmp20__length1;
gint _tmp21_;
+#line 84 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_if_fail (self != NULL);
+#line 84 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_if_fail (info != NULL);
+#line 86 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp0_ = info;
+#line 86 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp1_ = _tmp0_->height;
+#line 86 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->expected_rows = _tmp1_;
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp2_ = info;
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp3_ = _tmp2_->dpi;
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->dpi = (gint) _tmp3_;
+#line 90 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp4_ = info;
+#line 90 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp5_ = _tmp4_->width;
+#line 90 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->width = _tmp5_;
+#line 91 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp6_ = info;
+#line 91 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp7_ = _tmp6_->height;
+#line 91 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->n_rows = _tmp7_;
+#line 93 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp8_ = self->priv->n_rows;
+#line 93 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (_tmp8_ < 0) {
+#line 415 "page.c"
gint _tmp9_;
+#line 94 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp9_ = self->priv->width;
+#line 94 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->n_rows = _tmp9_ / 2;
+#line 421 "page.c"
}
+#line 95 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp10_ = info;
+#line 95 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp11_ = _tmp10_->depth;
+#line 95 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->depth = _tmp11_;
+#line 96 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp12_ = info;
+#line 96 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp13_ = _tmp12_->n_channels;
+#line 96 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->n_channels = _tmp13_;
+#line 97 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp14_ = self->priv->width;
+#line 97 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp15_ = self->priv->depth;
+#line 97 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp16_ = self->priv->n_channels;
+#line 97 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->rowstride = (((_tmp14_ * _tmp15_) * _tmp16_) + 7) / 8;
+#line 98 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp17_ = self->priv->n_rows;
+#line 98 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp18_ = self->priv->rowstride;
+#line 98 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp19_ = _tmp17_ * _tmp18_;
+#line 98 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->pixels = g_renew (guchar, self->priv->pixels, _tmp17_ * _tmp18_);
+#line 98 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
(_tmp19_ > self->priv->pixels_length1) ? memset (self->priv->pixels + self->priv->pixels_length1, 0, sizeof (guchar) * (_tmp19_ - self->priv->pixels_length1)) : NULL;
+#line 98 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->pixels_length1 = _tmp19_;
+#line 98 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->_pixels_size_ = _tmp19_;
+#line 99 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp20_ = self->priv->pixels;
+#line 99 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp20__length1 = self->priv->pixels_length1;
+#line 99 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_if_fail (_tmp20_ != NULL);
+#line 102 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp21_ = self->priv->depth;
+#line 102 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (_tmp21_ == 1) {
+#line 467 "page.c"
guchar* _tmp22_;
gint _tmp22__length1;
gint _tmp23_;
gint _tmp24_;
+#line 103 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp22_ = self->priv->pixels;
+#line 103 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp22__length1 = self->priv->pixels_length1;
+#line 103 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp23_ = self->priv->n_rows;
+#line 103 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp24_ = self->priv->rowstride;
+#line 103 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
memset (_tmp22_, 0x00, (gsize) (_tmp23_ * _tmp24_));
+#line 482 "page.c"
} else {
guchar* _tmp25_;
gint _tmp25__length1;
gint _tmp26_;
gint _tmp27_;
+#line 105 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp25_ = self->priv->pixels;
+#line 105 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp25__length1 = self->priv->pixels_length1;
+#line 105 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp26_ = self->priv->n_rows;
+#line 105 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp27_ = self->priv->rowstride;
+#line 105 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
memset (_tmp25_, 0xFF, (gsize) (_tmp26_ * _tmp27_));
+#line 498 "page.c"
}
+#line 107 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_signal_emit_by_name (self, "size-changed");
+#line 108 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_signal_emit_by_name (self, "pixels-changed");
+#line 504 "page.c"
}
void page_start (Page* self) {
+#line 111 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_if_fail (self != NULL);
+#line 113 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->scanning = TRUE;
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_signal_emit_by_name (self, "scan-line-changed");
+#line 515 "page.c"
}
gboolean page_is_scanning (Page* self) {
gboolean result = FALSE;
gboolean _tmp0_;
+#line 117 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_val_if_fail (self != NULL, FALSE);
+#line 119 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp0_ = self->priv->scanning;
+#line 119 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
result = _tmp0_;
+#line 119 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return result;
+#line 530 "page.c"
}
gboolean page_has_data (Page* self) {
gboolean result = FALSE;
gboolean _tmp0_;
+#line 122 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_val_if_fail (self != NULL, FALSE);
+#line 124 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp0_ = self->priv->has_data_;
+#line 124 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
result = _tmp0_;
+#line 124 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return result;
+#line 545 "page.c"
}
gboolean page_is_color (Page* self) {
gboolean result = FALSE;
gint _tmp0_;
+#line 127 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_val_if_fail (self != NULL, FALSE);
+#line 129 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp0_ = self->priv->n_channels;
+#line 129 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
result = _tmp0_ > 1;
+#line 129 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return result;
+#line 560 "page.c"
}
gint page_get_scan_line (Page* self) {
gint result = 0;
gint _tmp0_;
+#line 132 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_val_if_fail (self != NULL, 0);
+#line 134 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp0_ = self->priv->scan_line;
+#line 134 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
result = _tmp0_;
+#line 134 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return result;
+#line 575 "page.c"
}
@@ -473,14 +589,23 @@ static void page_parse_line (Page* self, ScanLine* line, gint n, gboolean* size_
gint _tmp17_;
gint line_offset;
gint _tmp33_;
+#line 137 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_if_fail (self != NULL);
+#line 137 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_if_fail (line != NULL);
+#line 141 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp0_ = line;
+#line 141 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp1_ = _tmp0_->number;
+#line 141 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp2_ = n;
+#line 141 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
line_number = _tmp1_ + _tmp2_;
+#line 144 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_vala_size_changed = FALSE;
+#line 145 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
while (TRUE) {
+#line 609 "page.c"
gint _tmp3_;
gint _tmp4_ = 0;
gint rows = 0;
@@ -492,42 +617,77 @@ static void page_parse_line (Page* self, ScanLine* line, gint n, gboolean* size_
gint _tmp10_;
gint _tmp11_;
gint _tmp12_ = 0;
+#line 145 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp3_ = line_number;
+#line 145 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp4_ = page_get_scan_height (self);
+#line 145 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (!(_tmp3_ >= _tmp4_)) {
+#line 145 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
break;
+#line 629 "page.c"
}
+#line 150 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp5_ = self->priv->n_rows;
+#line 150 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
rows = _tmp5_;
+#line 151 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp6_ = rows;
+#line 151 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp7_ = self->priv->width;
+#line 151 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->n_rows = _tmp6_ + (_tmp7_ / 2);
+#line 152 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp8_ = rows;
+#line 152 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp9_ = self->priv->n_rows;
- g_debug ("page.vala:151: Extending image from %d lines to %d lines", _tmp8_, _tmp9_);
+#line 152 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ g_debug ("page.vala:152: Extending image from %d lines to %d lines", _tmp8_, _tmp9_);
+#line 153 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp10_ = self->priv->n_rows;
+#line 153 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp11_ = self->priv->rowstride;
+#line 153 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp12_ = _tmp10_ * _tmp11_;
+#line 153 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->pixels = g_renew (guchar, self->priv->pixels, _tmp10_ * _tmp11_);
+#line 153 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
(_tmp12_ > self->priv->pixels_length1) ? memset (self->priv->pixels + self->priv->pixels_length1, 0, sizeof (guchar) * (_tmp12_ - self->priv->pixels_length1)) : NULL;
+#line 153 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->pixels_length1 = _tmp12_;
+#line 153 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->_pixels_size_ = _tmp12_;
+#line 155 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_vala_size_changed = TRUE;
+#line 663 "page.c"
}
+#line 159 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp13_ = line_number;
+#line 159 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp14_ = self->priv->rowstride;
+#line 159 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
offset = _tmp13_ * _tmp14_;
+#line 160 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp15_ = n;
+#line 160 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp16_ = line;
+#line 160 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp17_ = _tmp16_->data_length;
+#line 160 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
line_offset = _tmp15_ * _tmp17_;
+#line 679 "page.c"
{
gint i;
+#line 161 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
i = 0;
+#line 684 "page.c"
{
gboolean _tmp18_;
+#line 161 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp18_ = TRUE;
+#line 161 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
while (TRUE) {
+#line 691 "page.c"
gboolean _tmp19_;
gint _tmp21_;
ScanLine* _tmp22_;
@@ -543,38 +703,69 @@ static void page_parse_line (Page* self, ScanLine* line, gint n, gboolean* size_
gint _tmp30_;
guchar _tmp31_;
guchar _tmp32_;
+#line 161 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp19_ = _tmp18_;
+#line 161 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (!_tmp19_) {
+#line 711 "page.c"
gint _tmp20_;
+#line 161 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp20_ = i;
+#line 161 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
i = _tmp20_ + 1;
+#line 717 "page.c"
}
+#line 161 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp18_ = FALSE;
+#line 161 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp21_ = i;
+#line 161 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp22_ = line;
+#line 161 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp23_ = _tmp22_->data_length;
+#line 161 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (!(_tmp21_ < _tmp23_)) {
+#line 161 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
break;
+#line 731 "page.c"
}
+#line 162 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp24_ = self->priv->pixels;
+#line 162 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp24__length1 = self->priv->pixels_length1;
+#line 162 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp25_ = offset;
+#line 162 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp26_ = i;
+#line 162 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp27_ = line;
+#line 162 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp28_ = _tmp27_->data;
+#line 162 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp28__length1 = _tmp27_->data_length1;
+#line 162 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp29_ = line_offset;
+#line 162 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp30_ = i;
+#line 162 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp31_ = _tmp28_[_tmp29_ + _tmp30_];
+#line 162 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp24_[_tmp25_ + _tmp26_] = _tmp31_;
+#line 162 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp32_ = _tmp24_[_tmp25_ + _tmp26_];
+#line 757 "page.c"
}
}
}
+#line 164 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp33_ = line_number;
+#line 164 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->scan_line = _tmp33_;
+#line 137 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (size_changed) {
+#line 137 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
*size_changed = _vala_size_changed;
+#line 769 "page.c"
}
}
@@ -582,16 +773,25 @@ static void page_parse_line (Page* self, ScanLine* line, gint n, gboolean* size_
void page_parse_scan_line (Page* self, ScanLine* line) {
gboolean size_has_changed;
gboolean _tmp9_;
+#line 167 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_if_fail (self != NULL);
+#line 167 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_if_fail (line != NULL);
+#line 169 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
size_has_changed = FALSE;
+#line 783 "page.c"
{
gint i;
+#line 170 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
i = 0;
+#line 788 "page.c"
{
gboolean _tmp0_;
+#line 170 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp0_ = TRUE;
+#line 170 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
while (TRUE) {
+#line 795 "page.c"
gboolean _tmp1_;
gint _tmp3_;
ScanLine* _tmp4_;
@@ -599,33 +799,59 @@ void page_parse_scan_line (Page* self, ScanLine* line) {
ScanLine* _tmp6_;
gint _tmp7_;
gboolean _tmp8_ = FALSE;
+#line 170 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp1_ = _tmp0_;
+#line 170 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (!_tmp1_) {
+#line 807 "page.c"
gint _tmp2_;
+#line 170 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp2_ = i;
+#line 170 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
i = _tmp2_ + 1;
+#line 813 "page.c"
}
+#line 170 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp0_ = FALSE;
+#line 170 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp3_ = i;
+#line 170 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp4_ = line;
+#line 170 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp5_ = _tmp4_->n_lines;
+#line 170 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (!(_tmp3_ < _tmp5_)) {
+#line 170 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
break;
+#line 827 "page.c"
}
+#line 171 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp6_ = line;
+#line 171 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp7_ = i;
+#line 171 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
page_parse_line (self, _tmp6_, _tmp7_, &_tmp8_);
+#line 171 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
size_has_changed = _tmp8_;
+#line 837 "page.c"
}
}
}
+#line 173 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->has_data_ = TRUE;
+#line 175 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp9_ = size_has_changed;
+#line 175 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (_tmp9_) {
+#line 176 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_signal_emit_by_name (self, "size-changed");
+#line 849 "page.c"
}
+#line 177 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_signal_emit_by_name (self, "scan-line-changed");
+#line 178 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_signal_emit_by_name (self, "pixels-changed");
+#line 855 "page.c"
}
@@ -635,20 +861,34 @@ void page_finish (Page* self) {
gint _tmp1_;
gboolean _tmp4_;
gboolean _tmp12_;
+#line 181 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_if_fail (self != NULL);
+#line 183 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
size_has_changed = FALSE;
+#line 186 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp1_ = self->priv->expected_rows;
+#line 186 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (_tmp1_ < 0) {
+#line 873 "page.c"
gint _tmp2_;
gint _tmp3_ = 0;
+#line 187 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp2_ = self->priv->scan_line;
+#line 187 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp3_ = page_get_scan_height (self);
+#line 187 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp0_ = _tmp2_ != _tmp3_;
+#line 882 "page.c"
} else {
+#line 186 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp0_ = FALSE;
+#line 886 "page.c"
}
+#line 186 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp4_ = _tmp0_;
+#line 186 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (_tmp4_) {
+#line 892 "page.c"
gint rows = 0;
gint _tmp5_;
gint _tmp6_;
@@ -657,38 +897,68 @@ void page_finish (Page* self) {
gint _tmp9_ = 0;
gint _tmp10_;
gint _tmp11_;
+#line 191 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp5_ = self->priv->n_rows;
+#line 191 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
rows = _tmp5_;
+#line 192 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp6_ = self->priv->scan_line;
+#line 192 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->n_rows = _tmp6_;
+#line 193 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp7_ = self->priv->n_rows;
+#line 193 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp8_ = self->priv->rowstride;
+#line 193 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp9_ = _tmp7_ * _tmp8_;
+#line 193 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->pixels = g_renew (guchar, self->priv->pixels, _tmp7_ * _tmp8_);
+#line 193 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
(_tmp9_ > self->priv->pixels_length1) ? memset (self->priv->pixels + self->priv->pixels_length1, 0, sizeof (guchar) * (_tmp9_ - self->priv->pixels_length1)) : NULL;
+#line 193 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->pixels_length1 = _tmp9_;
+#line 193 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->_pixels_size_ = _tmp9_;
+#line 194 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp10_ = rows;
+#line 194 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp11_ = self->priv->n_rows;
- g_debug ("page.vala:193: Trimming page from %d lines to %d lines", _tmp10_, _tmp11_);
+#line 194 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ g_debug ("page.vala:194: Trimming page from %d lines to %d lines", _tmp10_, _tmp11_);
+#line 196 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
size_has_changed = TRUE;
+#line 931 "page.c"
}
+#line 198 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->scanning = FALSE;
+#line 200 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp12_ = size_has_changed;
+#line 200 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (_tmp12_) {
+#line 201 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_signal_emit_by_name (self, "size-changed");
+#line 941 "page.c"
}
+#line 202 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_signal_emit_by_name (self, "scan-line-changed");
+#line 203 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ g_signal_emit_by_name (self, "scan-finished");
+#line 947 "page.c"
}
ScanDirection page_get_scan_direction (Page* self) {
ScanDirection result = 0;
ScanDirection _tmp0_;
+#line 206 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_val_if_fail (self != NULL, 0);
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp0_ = self->priv->scan_direction;
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
result = _tmp0_;
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return result;
+#line 962 "page.c"
}
@@ -710,36 +980,67 @@ static void page_set_scan_direction (Page* self, ScanDirection direction) {
ScanDirection _tmp33_;
gboolean _tmp34_;
gboolean _tmp35_;
+#line 211 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_if_fail (self != NULL);
+#line 214 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
size_has_changed = FALSE;
+#line 217 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp0_ = self->priv->scan_direction;
+#line 217 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp1_ = direction;
+#line 217 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (_tmp0_ == _tmp1_) {
+#line 218 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return;
+#line 996 "page.c"
}
+#line 221 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp2_ = direction;
+#line 221 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp3_ = self->priv->scan_direction;
+#line 221 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
left_steps = (gint) (_tmp2_ - _tmp3_);
+#line 222 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp4_ = left_steps;
+#line 222 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (_tmp4_ < 0) {
+#line 1008 "page.c"
gint _tmp5_;
+#line 223 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp5_ = left_steps;
+#line 223 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
left_steps = _tmp5_ + 4;
+#line 1014 "page.c"
}
+#line 224 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp6_ = left_steps;
+#line 224 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (_tmp6_ != 2) {
+#line 225 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
size_has_changed = TRUE;
+#line 1022 "page.c"
}
+#line 227 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp7_ = page_get_width (self);
+#line 227 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
width = _tmp7_;
+#line 228 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp8_ = page_get_height (self);
+#line 228 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
height = _tmp8_;
+#line 231 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp9_ = self->priv->has_crop_;
+#line 231 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (_tmp9_) {
+#line 1036 "page.c"
gint _tmp10_;
+#line 233 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp10_ = left_steps;
+#line 233 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
switch (_tmp10_) {
+#line 233 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
case 1:
+#line 1044 "page.c"
{
gint _tmp11_;
gint _tmp12_;
@@ -749,23 +1050,41 @@ static void page_set_scan_direction (Page* self, ScanDirection direction) {
gint _tmp16_;
gint _tmp17_;
gint _tmp18_;
+#line 237 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp11_ = self->priv->crop_x;
+#line 237 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
t = _tmp11_;
+#line 238 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp12_ = self->priv->crop_y;
+#line 238 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->crop_x = _tmp12_;
+#line 239 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp13_ = width;
+#line 239 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp14_ = t;
+#line 239 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp15_ = self->priv->crop_width;
+#line 239 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->crop_y = _tmp13_ - (_tmp14_ + _tmp15_);
+#line 240 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp16_ = self->priv->crop_width;
+#line 240 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
t = _tmp16_;
+#line 241 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp17_ = self->priv->crop_height;
+#line 241 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->crop_width = _tmp17_;
+#line 242 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp18_ = t;
+#line 242 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->crop_height = _tmp18_;
+#line 243 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
break;
+#line 1084 "page.c"
}
+#line 233 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
case 2:
+#line 1088 "page.c"
{
gint _tmp19_;
gint _tmp20_;
@@ -773,17 +1092,29 @@ static void page_set_scan_direction (Page* self, ScanDirection direction) {
gint _tmp22_;
gint _tmp23_;
gint _tmp24_;
+#line 246 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp19_ = width;
+#line 246 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp20_ = self->priv->crop_x;
+#line 246 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp21_ = self->priv->crop_width;
+#line 246 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->crop_x = _tmp19_ - (_tmp20_ + _tmp21_);
+#line 247 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp22_ = width;
+#line 247 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp23_ = self->priv->crop_y;
+#line 247 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp24_ = self->priv->crop_height;
+#line 247 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->crop_y = _tmp22_ - (_tmp23_ + _tmp24_);
+#line 248 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
break;
+#line 1114 "page.c"
}
+#line 233 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
case 3:
+#line 1118 "page.c"
{
gint _tmp25_;
gint _tmp26_;
@@ -793,36 +1124,65 @@ static void page_set_scan_direction (Page* self, ScanDirection direction) {
gint _tmp30_;
gint _tmp31_;
gint _tmp32_;
+#line 251 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp25_ = self->priv->crop_y;
+#line 251 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
t = _tmp25_;
+#line 252 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp26_ = self->priv->crop_x;
+#line 252 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->crop_y = _tmp26_;
+#line 253 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp27_ = height;
+#line 253 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp28_ = t;
+#line 253 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp29_ = self->priv->crop_height;
+#line 253 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->crop_x = _tmp27_ - (_tmp28_ + _tmp29_);
+#line 254 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp30_ = self->priv->crop_width;
+#line 254 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
t = _tmp30_;
+#line 255 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp31_ = self->priv->crop_height;
+#line 255 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->crop_width = _tmp31_;
+#line 256 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp32_ = t;
+#line 256 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->crop_height = _tmp32_;
+#line 257 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
break;
+#line 1158 "page.c"
}
default:
+#line 233 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
break;
+#line 1163 "page.c"
}
}
+#line 261 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp33_ = direction;
+#line 261 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->scan_direction = _tmp33_;
+#line 262 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp34_ = size_has_changed;
+#line 262 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (_tmp34_) {
+#line 263 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_signal_emit_by_name (self, "size-changed");
+#line 1176 "page.c"
}
+#line 264 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_signal_emit_by_name (self, "scan-direction-changed");
+#line 265 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp35_ = self->priv->has_crop_;
+#line 265 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (_tmp35_) {
+#line 266 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_signal_emit_by_name (self, "crop-changed");
+#line 1186 "page.c"
}
}
@@ -832,36 +1192,66 @@ void page_rotate_left (Page* self) {
ScanDirection direction;
ScanDirection _tmp1_;
ScanDirection _tmp2_;
+#line 269 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_if_fail (self != NULL);
+#line 271 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp0_ = self->priv->scan_direction;
+#line 271 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
direction = _tmp0_;
+#line 272 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp1_ = direction;
+#line 272 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
switch (_tmp1_) {
+#line 272 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
case SCAN_DIRECTION_TOP_TO_BOTTOM:
+#line 1208 "page.c"
{
+#line 275 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
direction = SCAN_DIRECTION_LEFT_TO_RIGHT;
+#line 276 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
break;
+#line 1214 "page.c"
}
+#line 272 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
case SCAN_DIRECTION_LEFT_TO_RIGHT:
+#line 1218 "page.c"
{
+#line 278 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
direction = SCAN_DIRECTION_BOTTOM_TO_TOP;
+#line 279 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
break;
+#line 1224 "page.c"
}
+#line 272 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
case SCAN_DIRECTION_BOTTOM_TO_TOP:
+#line 1228 "page.c"
{
+#line 281 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
direction = SCAN_DIRECTION_RIGHT_TO_LEFT;
+#line 282 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
break;
+#line 1234 "page.c"
}
+#line 272 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
case SCAN_DIRECTION_RIGHT_TO_LEFT:
+#line 1238 "page.c"
{
+#line 284 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
direction = SCAN_DIRECTION_TOP_TO_BOTTOM;
+#line 285 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
break;
+#line 1244 "page.c"
}
default:
+#line 272 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
break;
+#line 1249 "page.c"
}
+#line 287 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp2_ = direction;
+#line 287 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
page_set_scan_direction (self, _tmp2_);
+#line 1255 "page.c"
}
@@ -870,46 +1260,81 @@ void page_rotate_right (Page* self) {
ScanDirection direction;
ScanDirection _tmp1_;
ScanDirection _tmp2_;
+#line 290 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_if_fail (self != NULL);
+#line 292 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp0_ = self->priv->scan_direction;
+#line 292 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
direction = _tmp0_;
+#line 293 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp1_ = direction;
+#line 293 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
switch (_tmp1_) {
+#line 293 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
case SCAN_DIRECTION_TOP_TO_BOTTOM:
+#line 1276 "page.c"
{
+#line 296 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
direction = SCAN_DIRECTION_RIGHT_TO_LEFT;
+#line 297 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
break;
+#line 1282 "page.c"
}
+#line 293 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
case SCAN_DIRECTION_LEFT_TO_RIGHT:
+#line 1286 "page.c"
{
+#line 299 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
direction = SCAN_DIRECTION_TOP_TO_BOTTOM;
+#line 300 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
break;
+#line 1292 "page.c"
}
+#line 293 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
case SCAN_DIRECTION_BOTTOM_TO_TOP:
+#line 1296 "page.c"
{
+#line 302 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
direction = SCAN_DIRECTION_LEFT_TO_RIGHT;
+#line 303 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
break;
+#line 1302 "page.c"
}
+#line 293 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
case SCAN_DIRECTION_RIGHT_TO_LEFT:
+#line 1306 "page.c"
{
+#line 305 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
direction = SCAN_DIRECTION_BOTTOM_TO_TOP;
+#line 306 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
break;
+#line 1312 "page.c"
}
default:
+#line 293 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
break;
+#line 1317 "page.c"
}
+#line 308 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp2_ = direction;
+#line 308 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
page_set_scan_direction (self, _tmp2_);
+#line 1323 "page.c"
}
gint page_get_dpi (Page* self) {
gint result = 0;
gint _tmp0_;
+#line 311 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_val_if_fail (self != NULL, 0);
+#line 313 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp0_ = self->priv->dpi;
+#line 313 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
result = _tmp0_;
+#line 313 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return result;
+#line 1338 "page.c"
}
@@ -917,11 +1342,17 @@ gboolean page_is_landscape (Page* self) {
gboolean result = FALSE;
gint _tmp0_ = 0;
gint _tmp1_ = 0;
+#line 316 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_val_if_fail (self != NULL, FALSE);
+#line 318 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp0_ = page_get_width (self);
+#line 318 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp1_ = page_get_height (self);
+#line 318 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
result = _tmp0_ > _tmp1_;
+#line 318 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return result;
+#line 1356 "page.c"
}
@@ -930,26 +1361,45 @@ gint page_get_width (Page* self) {
gboolean _tmp0_ = FALSE;
ScanDirection _tmp1_;
gboolean _tmp3_;
+#line 321 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_val_if_fail (self != NULL, 0);
+#line 323 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp1_ = self->priv->scan_direction;
+#line 323 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (_tmp1_ == SCAN_DIRECTION_TOP_TO_BOTTOM) {
+#line 323 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp0_ = TRUE;
+#line 1373 "page.c"
} else {
ScanDirection _tmp2_;
+#line 323 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp2_ = self->priv->scan_direction;
+#line 323 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp0_ = _tmp2_ == SCAN_DIRECTION_BOTTOM_TO_TOP;
+#line 1380 "page.c"
}
+#line 323 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp3_ = _tmp0_;
+#line 323 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (_tmp3_) {
+#line 1386 "page.c"
gint _tmp4_;
+#line 324 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp4_ = self->priv->width;
+#line 324 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
result = _tmp4_;
+#line 324 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return result;
+#line 1394 "page.c"
} else {
gint _tmp5_;
+#line 326 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp5_ = self->priv->n_rows;
+#line 326 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
result = _tmp5_;
+#line 326 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return result;
+#line 1403 "page.c"
}
}
@@ -959,26 +1409,45 @@ gint page_get_height (Page* self) {
gboolean _tmp0_ = FALSE;
ScanDirection _tmp1_;
gboolean _tmp3_;
+#line 329 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_val_if_fail (self != NULL, 0);
+#line 331 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp1_ = self->priv->scan_direction;
+#line 331 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (_tmp1_ == SCAN_DIRECTION_TOP_TO_BOTTOM) {
+#line 331 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp0_ = TRUE;
+#line 1421 "page.c"
} else {
ScanDirection _tmp2_;
+#line 331 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp2_ = self->priv->scan_direction;
+#line 331 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp0_ = _tmp2_ == SCAN_DIRECTION_BOTTOM_TO_TOP;
+#line 1428 "page.c"
}
+#line 331 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp3_ = _tmp0_;
+#line 331 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (_tmp3_) {
+#line 1434 "page.c"
gint _tmp4_;
+#line 332 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp4_ = self->priv->n_rows;
+#line 332 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
result = _tmp4_;
+#line 332 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return result;
+#line 1442 "page.c"
} else {
gint _tmp5_;
+#line 334 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp5_ = self->priv->width;
+#line 334 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
result = _tmp5_;
+#line 334 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return result;
+#line 1451 "page.c"
}
}
@@ -986,61 +1455,92 @@ gint page_get_height (Page* self) {
gint page_get_depth (Page* self) {
gint result = 0;
gint _tmp0_;
+#line 337 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_val_if_fail (self != NULL, 0);
+#line 339 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp0_ = self->priv->depth;
+#line 339 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
result = _tmp0_;
+#line 339 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return result;
+#line 1467 "page.c"
}
gint page_get_n_channels (Page* self) {
gint result = 0;
gint _tmp0_;
+#line 342 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_val_if_fail (self != NULL, 0);
+#line 344 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp0_ = self->priv->n_channels;
+#line 344 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
result = _tmp0_;
+#line 344 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return result;
+#line 1482 "page.c"
}
gint page_get_rowstride (Page* self) {
gint result = 0;
gint _tmp0_;
+#line 347 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_val_if_fail (self != NULL, 0);
+#line 349 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp0_ = self->priv->rowstride;
+#line 349 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
result = _tmp0_;
+#line 349 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return result;
+#line 1497 "page.c"
}
gint page_get_scan_width (Page* self) {
gint result = 0;
gint _tmp0_;
+#line 352 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_val_if_fail (self != NULL, 0);
+#line 354 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp0_ = self->priv->width;
+#line 354 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
result = _tmp0_;
+#line 354 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return result;
+#line 1512 "page.c"
}
gint page_get_scan_height (Page* self) {
gint result = 0;
gint _tmp0_;
+#line 357 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_val_if_fail (self != NULL, 0);
+#line 359 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp0_ = self->priv->n_rows;
+#line 359 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
result = _tmp0_;
+#line 359 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return result;
+#line 1527 "page.c"
}
void page_set_color_profile (Page* self, const gchar* color_profile) {
const gchar* _tmp0_;
gchar* _tmp1_;
+#line 362 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_if_fail (self != NULL);
+#line 364 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp0_ = color_profile;
+#line 364 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp1_ = g_strdup (_tmp0_);
+#line 364 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_g_free0 (self->priv->color_profile);
+#line 364 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->color_profile = _tmp1_;
+#line 1544 "page.c"
}
@@ -1048,23 +1548,37 @@ gchar* page_get_color_profile (Page* self) {
gchar* result = NULL;
const gchar* _tmp0_;
gchar* _tmp1_;
+#line 367 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_val_if_fail (self != NULL, NULL);
+#line 369 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp0_ = self->priv->color_profile;
+#line 369 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp1_ = g_strdup (_tmp0_);
+#line 369 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
result = _tmp1_;
+#line 369 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return result;
+#line 1562 "page.c"
}
void page_set_no_crop (Page* self) {
gboolean _tmp0_;
+#line 372 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_if_fail (self != NULL);
+#line 374 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp0_ = self->priv->has_crop_;
+#line 374 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (!_tmp0_) {
+#line 375 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return;
+#line 1576 "page.c"
}
+#line 376 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->has_crop_ = FALSE;
+#line 377 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_signal_emit_by_name (self, "crop-changed");
+#line 1582 "page.c"
}
@@ -1080,51 +1594,95 @@ void page_set_custom_crop (Page* self, gint width, gint height) {
gboolean _tmp13_;
gint _tmp14_;
gint _tmp15_;
+#line 380 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_if_fail (self != NULL);
+#line 384 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp0_ = width;
+#line 384 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_if_fail (_tmp0_ >= 1);
+#line 385 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp1_ = height;
+#line 385 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_if_fail (_tmp1_ >= 1);
+#line 387 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp5_ = self->priv->crop_name;
+#line 387 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (_tmp5_ == NULL) {
+#line 1612 "page.c"
gboolean _tmp6_;
+#line 387 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp6_ = self->priv->has_crop_;
+#line 387 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp4_ = _tmp6_;
+#line 1618 "page.c"
} else {
+#line 387 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp4_ = FALSE;
+#line 1622 "page.c"
}
+#line 387 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp7_ = _tmp4_;
+#line 387 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (_tmp7_) {
+#line 1628 "page.c"
gint _tmp8_;
gint _tmp9_;
+#line 387 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp8_ = self->priv->crop_width;
+#line 387 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp9_ = width;
+#line 387 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp3_ = _tmp8_ == _tmp9_;
+#line 1637 "page.c"
} else {
+#line 387 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp3_ = FALSE;
+#line 1641 "page.c"
}
+#line 387 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp10_ = _tmp3_;
+#line 387 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (_tmp10_) {
+#line 1647 "page.c"
gint _tmp11_;
gint _tmp12_;
+#line 387 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp11_ = self->priv->crop_height;
+#line 387 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp12_ = height;
+#line 387 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp2_ = _tmp11_ == _tmp12_;
+#line 1656 "page.c"
} else {
+#line 387 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp2_ = FALSE;
+#line 1660 "page.c"
}
+#line 387 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp13_ = _tmp2_;
+#line 387 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (_tmp13_) {
+#line 388 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return;
+#line 1668 "page.c"
}
+#line 389 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_g_free0 (self->priv->crop_name);
+#line 389 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->crop_name = NULL;
+#line 390 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->has_crop_ = TRUE;
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp14_ = width;
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->crop_width = _tmp14_;
+#line 393 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp15_ = height;
+#line 393 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->crop_height = _tmp15_;
+#line 406 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_signal_emit_by_name (self, "crop-changed");
+#line 1686 "page.c"
}
@@ -1134,12 +1692,19 @@ void page_set_named_crop (Page* self, const gchar* name) {
const gchar* _tmp0_;
const gchar* _tmp1_;
GQuark _tmp3_ = 0U;
+#line 412 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
static GQuark _tmp2_label0 = 0;
+#line 412 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
static GQuark _tmp2_label1 = 0;
+#line 412 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
static GQuark _tmp2_label2 = 0;
+#line 412 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
static GQuark _tmp2_label3 = 0;
+#line 412 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
static GQuark _tmp2_label4 = 0;
+#line 412 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
static GQuark _tmp2_label5 = 0;
+#line 1708 "page.c"
const gchar* _tmp5_;
gchar* _tmp6_;
gint _tmp7_ = 0;
@@ -1156,128 +1721,224 @@ void page_set_named_crop (Page* self, const gchar* name) {
gint _tmp19_;
gint _tmp22_;
gint _tmp23_;
+#line 409 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_if_fail (self != NULL);
+#line 409 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_if_fail (name != NULL);
+#line 412 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp0_ = name;
+#line 412 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp1_ = _tmp0_;
+#line 412 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp3_ = (NULL == _tmp1_) ? 0 : g_quark_from_string (_tmp1_);
+#line 412 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (_tmp3_ == ((0 != _tmp2_label0) ? _tmp2_label0 : (_tmp2_label0 = g_quark_from_static_string ("A4")))) {
+#line 412 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
switch (0) {
+#line 1739 "page.c"
default:
{
+#line 415 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
width = 8.3;
+#line 416 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
height = 11.7;
+#line 417 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
break;
+#line 1748 "page.c"
}
}
} else if (_tmp3_ == ((0 != _tmp2_label1) ? _tmp2_label1 : (_tmp2_label1 = g_quark_from_static_string ("A5")))) {
+#line 412 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
switch (0) {
+#line 1754 "page.c"
default:
{
+#line 419 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
width = 5.8;
+#line 420 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
height = 8.3;
+#line 421 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
break;
+#line 1763 "page.c"
}
}
} else if (_tmp3_ == ((0 != _tmp2_label2) ? _tmp2_label2 : (_tmp2_label2 = g_quark_from_static_string ("A6")))) {
+#line 412 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
switch (0) {
+#line 1769 "page.c"
default:
{
+#line 423 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
width = 4.1;
+#line 424 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
height = 5.8;
+#line 425 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
break;
+#line 1778 "page.c"
}
}
} else if (_tmp3_ == ((0 != _tmp2_label3) ? _tmp2_label3 : (_tmp2_label3 = g_quark_from_static_string ("letter")))) {
+#line 412 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
switch (0) {
+#line 1784 "page.c"
default:
{
+#line 427 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
width = 8.5;
+#line 428 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
height = (gdouble) 11;
+#line 429 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
break;
+#line 1793 "page.c"
}
}
} else if (_tmp3_ == ((0 != _tmp2_label4) ? _tmp2_label4 : (_tmp2_label4 = g_quark_from_static_string ("legal")))) {
+#line 412 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
switch (0) {
+#line 1799 "page.c"
default:
{
+#line 431 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
width = 8.5;
+#line 432 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
height = (gdouble) 14;
+#line 433 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
break;
+#line 1808 "page.c"
}
}
} else if (_tmp3_ == ((0 != _tmp2_label5) ? _tmp2_label5 : (_tmp2_label5 = g_quark_from_static_string ("4x6")))) {
+#line 412 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
switch (0) {
+#line 1814 "page.c"
default:
{
+#line 435 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
width = (gdouble) 4;
+#line 436 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
height = (gdouble) 6;
+#line 437 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
break;
+#line 1823 "page.c"
}
}
} else {
+#line 412 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
switch (0) {
+#line 1829 "page.c"
default:
{
const gchar* _tmp4_;
+#line 439 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp4_ = name;
- g_warning ("page.vala:437: Unknown paper size '%s'", _tmp4_);
+#line 439 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ g_warning ("page.vala:439: Unknown paper size '%s'", _tmp4_);
+#line 440 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return;
+#line 1839 "page.c"
}
}
}
+#line 443 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp5_ = name;
+#line 443 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp6_ = g_strdup (_tmp5_);
+#line 443 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_g_free0 (self->priv->crop_name);
+#line 443 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->crop_name = _tmp6_;
+#line 444 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->has_crop_ = TRUE;
+#line 446 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp7_ = page_get_width (self);
+#line 446 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
pw = _tmp7_;
+#line 447 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp8_ = page_get_height (self);
+#line 447 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
ph = _tmp8_;
+#line 450 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp9_ = pw;
+#line 450 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp10_ = ph;
+#line 450 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (_tmp9_ > _tmp10_) {
+#line 1867 "page.c"
gdouble t = 0.0;
gdouble _tmp11_;
gdouble _tmp12_;
gdouble _tmp13_;
+#line 453 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp11_ = width;
+#line 453 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
t = _tmp11_;
+#line 454 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp12_ = height;
+#line 454 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
width = _tmp12_;
+#line 455 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp13_ = t;
+#line 455 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
height = _tmp13_;
+#line 1884 "page.c"
}
+#line 459 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp14_ = width;
+#line 459 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp15_ = self->priv->dpi;
+#line 459 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->crop_width = (gint) ((_tmp14_ * _tmp15_) + 0.5);
+#line 460 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp16_ = height;
+#line 460 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp17_ = self->priv->dpi;
+#line 460 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->crop_height = (gint) ((_tmp16_ * _tmp17_) + 0.5);
+#line 462 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp18_ = self->priv->crop_width;
+#line 462 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp19_ = pw;
+#line 462 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (_tmp18_ < _tmp19_) {
+#line 1904 "page.c"
gint _tmp20_;
gint _tmp21_;
+#line 463 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp20_ = pw;
+#line 463 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp21_ = self->priv->crop_width;
+#line 463 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->crop_x = (_tmp20_ - _tmp21_) / 2;
+#line 1913 "page.c"
} else {
+#line 465 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->crop_x = 0;
+#line 1917 "page.c"
}
+#line 466 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp22_ = self->priv->crop_height;
+#line 466 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp23_ = ph;
+#line 466 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (_tmp22_ < _tmp23_) {
+#line 1925 "page.c"
gint _tmp24_;
gint _tmp25_;
+#line 467 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp24_ = ph;
+#line 467 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp25_ = self->priv->crop_height;
+#line 467 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->crop_y = (_tmp24_ - _tmp25_) / 2;
+#line 1934 "page.c"
} else {
+#line 469 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->crop_y = 0;
+#line 1938 "page.c"
}
+#line 470 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_signal_emit_by_name (self, "crop-changed");
+#line 1942 "page.c"
}
@@ -1290,22 +1951,39 @@ void page_move_crop (Page* self, gint x, gint y) {
gint _tmp5_ = 0;
gint _tmp6_;
gint _tmp7_;
+#line 473 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_if_fail (self != NULL);
+#line 475 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp0_ = x;
+#line 475 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_if_fail (_tmp0_ >= 0);
+#line 476 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp1_ = y;
+#line 476 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_if_fail (_tmp1_ >= 0);
+#line 477 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp2_ = x;
+#line 477 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp3_ = page_get_width (self);
+#line 477 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_if_fail (_tmp2_ < _tmp3_);
+#line 478 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp4_ = y;
+#line 478 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp5_ = page_get_height (self);
+#line 478 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_if_fail (_tmp4_ < _tmp5_);
+#line 480 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp6_ = x;
+#line 480 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->crop_x = _tmp6_;
+#line 481 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp7_ = y;
+#line 481 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->crop_y = _tmp7_;
+#line 482 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_signal_emit_by_name (self, "crop-changed");
+#line 1987 "page.c"
}
@@ -1316,19 +1994,33 @@ void page_rotate_crop (Page* self) {
gint _tmp2_;
gint _tmp3_;
const gchar* _tmp4_;
+#line 485 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_if_fail (self != NULL);
+#line 489 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp0_ = self->priv->has_crop_;
+#line 489 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (!_tmp0_) {
+#line 490 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return;
+#line 2006 "page.c"
}
+#line 492 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp1_ = self->priv->crop_width;
+#line 492 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
t = _tmp1_;
+#line 493 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp2_ = self->priv->crop_height;
+#line 493 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->crop_width = _tmp2_;
+#line 494 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp3_ = t;
+#line 494 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->crop_height = _tmp3_;
+#line 497 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp4_ = self->priv->crop_name;
+#line 497 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (_tmp4_ == NULL) {
+#line 2024 "page.c"
gint w = 0;
gint h = 0;
gint _tmp5_ = 0;
@@ -1341,56 +2033,99 @@ void page_rotate_crop (Page* self) {
gint _tmp15_;
gint _tmp16_;
gint _tmp19_;
+#line 501 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp5_ = page_get_width (self);
+#line 501 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
w = _tmp5_;
+#line 502 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp6_ = page_get_height (self);
+#line 502 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
h = _tmp6_;
+#line 504 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp7_ = self->priv->crop_x;
+#line 504 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp8_ = self->priv->crop_width;
+#line 504 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp9_ = w;
+#line 504 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if ((_tmp7_ + _tmp8_) > _tmp9_) {
+#line 2053 "page.c"
gint _tmp10_;
gint _tmp11_;
+#line 505 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp10_ = w;
+#line 505 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp11_ = self->priv->crop_width;
+#line 505 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->crop_x = _tmp10_ - _tmp11_;
+#line 2062 "page.c"
}
+#line 506 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp12_ = self->priv->crop_x;
+#line 506 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (_tmp12_ < 0) {
+#line 2068 "page.c"
gint _tmp13_;
+#line 508 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->crop_x = 0;
+#line 509 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp13_ = w;
+#line 509 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->crop_width = _tmp13_;
+#line 2076 "page.c"
}
+#line 511 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp14_ = self->priv->crop_y;
+#line 511 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp15_ = self->priv->crop_height;
+#line 511 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp16_ = h;
+#line 511 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if ((_tmp14_ + _tmp15_) > _tmp16_) {
+#line 2086 "page.c"
gint _tmp17_;
gint _tmp18_;
+#line 512 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp17_ = h;
+#line 512 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp18_ = self->priv->crop_height;
+#line 512 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->crop_y = _tmp17_ - _tmp18_;
+#line 2095 "page.c"
}
+#line 513 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp19_ = self->priv->crop_y;
+#line 513 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (_tmp19_ < 0) {
+#line 2101 "page.c"
gint _tmp20_;
+#line 515 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->crop_y = 0;
+#line 516 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp20_ = h;
+#line 516 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->crop_height = _tmp20_;
+#line 2109 "page.c"
}
}
+#line 520 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_signal_emit_by_name (self, "crop-changed");
+#line 2114 "page.c"
}
gboolean page_has_crop (Page* self) {
gboolean result = FALSE;
gboolean _tmp0_;
+#line 523 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_val_if_fail (self != NULL, FALSE);
+#line 525 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp0_ = self->priv->has_crop_;
+#line 525 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
result = _tmp0_;
+#line 525 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return result;
+#line 2129 "page.c"
}
@@ -1403,26 +2138,47 @@ void page_get_crop (Page* self, gint* x, gint* y, gint* width, gint* height) {
gint _tmp1_;
gint _tmp2_;
gint _tmp3_;
+#line 528 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_if_fail (self != NULL);
+#line 530 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp0_ = self->priv->crop_x;
+#line 530 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_vala_x = _tmp0_;
+#line 531 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp1_ = self->priv->crop_y;
+#line 531 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_vala_y = _tmp1_;
+#line 532 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp2_ = self->priv->crop_width;
+#line 532 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_vala_width = _tmp2_;
+#line 533 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp3_ = self->priv->crop_height;
+#line 533 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_vala_height = _tmp3_;
+#line 528 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (x) {
+#line 528 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
*x = _vala_x;
+#line 2164 "page.c"
}
+#line 528 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (y) {
+#line 528 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
*y = _vala_y;
+#line 2170 "page.c"
}
+#line 528 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (width) {
+#line 528 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
*width = _vala_width;
+#line 2176 "page.c"
}
+#line 528 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (height) {
+#line 528 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
*height = _vala_height;
+#line 2182 "page.c"
}
}
@@ -1431,11 +2187,17 @@ gchar* page_get_named_crop (Page* self) {
gchar* result = NULL;
const gchar* _tmp0_;
gchar* _tmp1_;
+#line 536 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_val_if_fail (self != NULL, NULL);
+#line 538 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp0_ = self->priv->crop_name;
+#line 538 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp1_ = g_strdup (_tmp0_);
+#line 538 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
result = _tmp1_;
+#line 538 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return result;
+#line 2201 "page.c"
}
@@ -1445,24 +2207,83 @@ guchar* page_get_pixels (Page* self, int* result_length1) {
gint _tmp0__length1;
guchar* _tmp1_;
gint _tmp1__length1;
+#line 541 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_val_if_fail (self != NULL, NULL);
+#line 543 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp0_ = self->priv->pixels;
+#line 543 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp0__length1 = self->priv->pixels_length1;
+#line 543 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp1_ = _tmp0_;
+#line 543 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp1__length1 = _tmp0__length1;
+#line 543 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (result_length1) {
+#line 543 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
*result_length1 = _tmp1__length1;
+#line 2225 "page.c"
}
+#line 543 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
result = _tmp1_;
+#line 543 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return result;
+#line 2231 "page.c"
+}
+
+
+static guchar* _vala_array_dup3 (guchar* self, int length) {
+#line 548 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ return g_memdup (self, length * sizeof (guchar));
+#line 2238 "page.c"
+}
+
+
+void page_set_pixels (Page* self, guchar* new_pixels, int new_pixels_length1) {
+ guchar* _tmp0_;
+ gint _tmp0__length1;
+ guchar* _tmp1_;
+ gint _tmp1__length1;
+ guchar* _tmp2_;
+ gint _tmp2__length1;
+#line 546 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ g_return_if_fail (self != NULL);
+#line 548 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp0_ = new_pixels;
+#line 548 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp0__length1 = new_pixels_length1;
+#line 548 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp1_ = (_tmp0_ != NULL) ? _vala_array_dup3 (_tmp0_, _tmp0__length1) : ((gpointer) _tmp0_);
+#line 548 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp1__length1 = _tmp0__length1;
+#line 548 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ self->priv->pixels = (g_free (self->priv->pixels), NULL);
+#line 548 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ self->priv->pixels = _tmp1_;
+#line 548 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ self->priv->pixels_length1 = _tmp1__length1;
+#line 548 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ self->priv->_pixels_size_ = self->priv->pixels_length1;
+#line 549 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp2_ = new_pixels;
+#line 549 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp2__length1 = new_pixels_length1;
+#line 549 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ self->priv->has_data_ = _tmp2_ != NULL;
+#line 550 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ g_signal_emit_by_name (self, "pixels-changed");
+#line 2275 "page.c"
}
static guchar page_get_sample (Page* self, guchar* pixels, int pixels_length1, gint offset, gint x, gint depth, gint n_channels, gint channel) {
guchar result = '\0';
+#line 554 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_val_if_fail (self != NULL, '\0');
+#line 557 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
result = (guchar) 0xFF;
+#line 557 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return result;
+#line 2287 "page.c"
}
@@ -1511,79 +2332,138 @@ static void page_get_pixel (Page* self, gint x, gint y, guchar* pixel, int pixel
gint _tmp128_;
guchar _tmp129_ = '\0';
guchar _tmp130_;
+#line 561 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_if_fail (self != NULL);
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp0_ = page_get_scan_direction (self);
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
switch (_tmp0_) {
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
case SCAN_DIRECTION_TOP_TO_BOTTOM:
+#line 2344 "page.c"
{
+#line 566 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
break;
+#line 2348 "page.c"
}
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
case SCAN_DIRECTION_BOTTOM_TO_TOP:
+#line 2352 "page.c"
{
gint _tmp1_ = 0;
gint _tmp2_;
gint _tmp3_ = 0;
gint _tmp4_;
+#line 568 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp1_ = page_get_scan_width (self);
+#line 568 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp2_ = x;
+#line 568 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
x = (_tmp1_ - _tmp2_) - 1;
+#line 569 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp3_ = page_get_scan_height (self);
+#line 569 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp4_ = y;
+#line 569 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
y = (_tmp3_ - _tmp4_) - 1;
+#line 570 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
break;
+#line 2372 "page.c"
}
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
case SCAN_DIRECTION_LEFT_TO_RIGHT:
+#line 2376 "page.c"
{
gint _tmp5_;
gint t;
gint _tmp6_ = 0;
gint _tmp7_;
gint _tmp8_;
+#line 572 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp5_ = x;
+#line 572 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
t = _tmp5_;
+#line 573 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp6_ = page_get_scan_width (self);
+#line 573 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp7_ = y;
+#line 573 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
x = (_tmp6_ - _tmp7_) - 1;
+#line 574 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp8_ = t;
+#line 574 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
y = _tmp8_;
+#line 575 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
break;
+#line 2399 "page.c"
}
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
case SCAN_DIRECTION_RIGHT_TO_LEFT:
+#line 2403 "page.c"
{
gint _tmp9_;
gint t;
gint _tmp10_;
gint _tmp11_ = 0;
gint _tmp12_;
+#line 577 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp9_ = x;
+#line 577 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
t = _tmp9_;
+#line 578 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp10_ = y;
+#line 578 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
x = _tmp10_;
+#line 579 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp11_ = page_get_scan_height (self);
+#line 579 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp12_ = t;
+#line 579 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
y = (_tmp11_ - _tmp12_) - 1;
+#line 580 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
break;
+#line 2426 "page.c"
}
default:
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
break;
+#line 2431 "page.c"
}
+#line 583 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp13_ = page_get_depth (self);
+#line 583 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
depth = _tmp13_;
+#line 584 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp14_ = page_get_n_channels (self);
+#line 584 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
n_channels = _tmp14_;
+#line 585 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp15_ = page_get_rowstride (self);
+#line 585 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp16_ = y;
+#line 585 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
line_offset = _tmp15_ * _tmp16_;
+#line 588 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp18_ = depth;
+#line 588 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (_tmp18_ == 8) {
+#line 2451 "page.c"
gint _tmp19_;
+#line 588 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp19_ = n_channels;
+#line 588 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp17_ = _tmp19_ == 3;
+#line 2457 "page.c"
} else {
+#line 588 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp17_ = FALSE;
+#line 2461 "page.c"
}
+#line 588 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp20_ = _tmp17_;
+#line 588 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (_tmp20_) {
+#line 2467 "page.c"
gint _tmp21_;
gint _tmp22_;
gint _tmp23_;
@@ -1612,52 +2492,96 @@ static void page_get_pixel (Page* self, gint x, gint y, guchar* pixel, int pixel
gint _tmp39_;
guchar _tmp40_;
guchar _tmp41_;
+#line 590 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp21_ = line_offset;
+#line 590 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp22_ = x;
+#line 590 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp23_ = n_channels;
+#line 590 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
o = _tmp21_ + (_tmp22_ * _tmp23_);
+#line 591 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp24_ = pixel;
+#line 591 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp24__length1 = pixel_length1;
+#line 591 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp25_ = offset;
+#line 591 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp26_ = self->priv->pixels;
+#line 591 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp26__length1 = self->priv->pixels_length1;
+#line 591 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp27_ = o;
+#line 591 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp28_ = _tmp26_[_tmp27_];
+#line 591 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp24_[_tmp25_ + 0] = _tmp28_;
+#line 591 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp29_ = _tmp24_[_tmp25_ + 0];
+#line 592 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp30_ = pixel;
+#line 592 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp30__length1 = pixel_length1;
+#line 592 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp31_ = offset;
+#line 592 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp32_ = self->priv->pixels;
+#line 592 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp32__length1 = self->priv->pixels_length1;
+#line 592 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp33_ = o;
+#line 592 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp34_ = _tmp32_[_tmp33_ + 1];
+#line 592 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp30_[_tmp31_ + 1] = _tmp34_;
+#line 592 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp35_ = _tmp30_[_tmp31_ + 1];
+#line 593 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp36_ = pixel;
+#line 593 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp36__length1 = pixel_length1;
+#line 593 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp37_ = offset;
+#line 593 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp38_ = self->priv->pixels;
+#line 593 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp38__length1 = self->priv->pixels_length1;
+#line 593 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp39_ = o;
+#line 593 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp40_ = _tmp38_[_tmp39_ + 2];
+#line 593 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp36_[_tmp37_ + 2] = _tmp40_;
+#line 593 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp41_ = _tmp36_[_tmp37_ + 2];
+#line 594 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return;
+#line 2560 "page.c"
} else {
gboolean _tmp42_ = FALSE;
gint _tmp43_;
gboolean _tmp45_;
+#line 596 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp43_ = depth;
+#line 596 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (_tmp43_ == 8) {
+#line 2569 "page.c"
gint _tmp44_;
+#line 596 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp44_ = n_channels;
+#line 596 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp42_ = _tmp44_ == 1;
+#line 2575 "page.c"
} else {
+#line 596 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp42_ = FALSE;
+#line 2579 "page.c"
}
+#line 596 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp45_ = _tmp42_;
+#line 596 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (_tmp45_) {
+#line 2585 "page.c"
guchar* _tmp46_;
gint _tmp46__length1;
gint _tmp47_;
@@ -1677,43 +2601,78 @@ static void page_get_pixel (Page* self, gint x, gint y, guchar* pixel, int pixel
guchar _tmp57_;
guchar _tmp58_;
guchar _tmp59_;
+#line 598 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp46_ = self->priv->pixels;
+#line 598 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp46__length1 = self->priv->pixels_length1;
+#line 598 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp47_ = line_offset;
+#line 598 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp48_ = x;
+#line 598 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp49_ = _tmp46_[_tmp47_ + _tmp48_];
+#line 598 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
p = _tmp49_;
+#line 599 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp50_ = pixel;
+#line 599 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp50__length1 = pixel_length1;
+#line 599 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp51_ = offset;
+#line 599 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp52_ = pixel;
+#line 599 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp52__length1 = pixel_length1;
+#line 599 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp53_ = offset;
+#line 599 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp54_ = pixel;
+#line 599 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp54__length1 = pixel_length1;
+#line 599 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp55_ = offset;
+#line 599 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp56_ = p;
+#line 599 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp54_[_tmp55_ + 2] = _tmp56_;
+#line 599 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp57_ = _tmp54_[_tmp55_ + 2];
+#line 599 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp52_[_tmp53_ + 1] = _tmp57_;
+#line 599 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp58_ = _tmp52_[_tmp53_ + 1];
+#line 599 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp50_[_tmp51_ + 0] = _tmp58_;
+#line 599 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp59_ = _tmp50_[_tmp51_ + 0];
+#line 600 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return;
+#line 2651 "page.c"
} else {
gboolean _tmp60_ = FALSE;
gint _tmp61_;
gboolean _tmp63_;
+#line 604 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp61_ = depth;
+#line 604 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (_tmp61_ == 1) {
+#line 2660 "page.c"
gint _tmp62_;
+#line 604 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp62_ = n_channels;
+#line 604 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp60_ = _tmp62_ == 1;
+#line 2666 "page.c"
} else {
+#line 604 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp60_ = FALSE;
+#line 2670 "page.c"
}
+#line 604 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp63_ = _tmp60_;
+#line 604 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (_tmp63_) {
+#line 2676 "page.c"
guchar* _tmp64_;
gint _tmp64__length1;
gint _tmp65_;
@@ -1736,50 +2695,92 @@ static void page_get_pixel (Page* self, gint x, gint y, guchar* pixel, int pixel
guchar _tmp78_;
guchar _tmp79_;
guchar _tmp80_;
+#line 606 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp64_ = self->priv->pixels;
+#line 606 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp64__length1 = self->priv->pixels_length1;
+#line 606 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp65_ = line_offset;
+#line 606 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp66_ = x;
+#line 606 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp67_ = _tmp64_[_tmp65_ + (_tmp66_ / 8)];
+#line 606 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
p = _tmp67_;
+#line 607 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp69_ = p;
+#line 607 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp70_ = x;
+#line 607 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (((gint) (_tmp69_ & (0x80 >> (_tmp70_ % 8)))) != 0) {
+#line 607 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp68_ = 0x00;
+#line 2719 "page.c"
} else {
+#line 607 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp68_ = 0xFF;
+#line 2723 "page.c"
}
+#line 607 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp71_ = pixel;
+#line 607 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp71__length1 = pixel_length1;
+#line 607 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp72_ = offset;
+#line 607 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp73_ = pixel;
+#line 607 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp73__length1 = pixel_length1;
+#line 607 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp74_ = offset;
+#line 607 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp75_ = pixel;
+#line 607 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp75__length1 = pixel_length1;
+#line 607 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp76_ = offset;
+#line 607 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp77_ = _tmp68_;
+#line 607 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp75_[_tmp76_ + 2] = (guchar) _tmp77_;
+#line 607 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp78_ = _tmp75_[_tmp76_ + 2];
+#line 607 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp73_[_tmp74_ + 1] = _tmp78_;
+#line 607 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp79_ = _tmp73_[_tmp74_ + 1];
+#line 607 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp71_[_tmp72_ + 0] = _tmp79_;
+#line 607 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp80_ = _tmp71_[_tmp72_ + 0];
+#line 608 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return;
+#line 2759 "page.c"
} else {
gboolean _tmp81_ = FALSE;
gint _tmp82_;
gboolean _tmp84_;
+#line 612 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp82_ = depth;
+#line 612 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (_tmp82_ == 2) {
+#line 2768 "page.c"
gint _tmp83_;
+#line 612 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp83_ = n_channels;
+#line 612 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp81_ = _tmp83_ == 1;
+#line 2774 "page.c"
} else {
+#line 612 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp81_ = FALSE;
+#line 2778 "page.c"
}
+#line 612 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp84_ = _tmp81_;
+#line 612 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (_tmp84_) {
+#line 2784 "page.c"
gint _tmp85_[4] = {0};
gint block_shift[4];
guchar* _tmp86_;
@@ -1806,80 +2807,152 @@ static void page_get_pixel (Page* self, gint x, gint y, guchar* pixel, int pixel
guchar _tmp101_;
guchar _tmp102_;
guchar _tmp103_;
+#line 614 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp85_[0] = 6;
+#line 614 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp85_[1] = 4;
+#line 614 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp85_[2] = 2;
+#line 614 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp85_[3] = 0;
+#line 614 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
memcpy (block_shift, _tmp85_, 4 * sizeof (gint));
+#line 616 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp86_ = self->priv->pixels;
+#line 616 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp86__length1 = self->priv->pixels_length1;
+#line 616 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp87_ = line_offset;
+#line 616 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp88_ = x;
+#line 616 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp89_ = _tmp86_[_tmp87_ + (_tmp88_ / 4)];
+#line 616 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
p = _tmp89_;
+#line 617 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp90_ = p;
+#line 617 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp91_ = x;
+#line 617 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp92_ = block_shift[_tmp91_ % 4];
+#line 617 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
sample = (_tmp90_ >> _tmp92_) & 0x3;
+#line 618 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp93_ = sample;
+#line 618 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
sample = (_tmp93_ * 255) / 3;
+#line 620 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp94_ = pixel;
+#line 620 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp94__length1 = pixel_length1;
+#line 620 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp95_ = offset;
+#line 620 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp96_ = pixel;
+#line 620 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp96__length1 = pixel_length1;
+#line 620 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp97_ = offset;
+#line 620 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp98_ = pixel;
+#line 620 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp98__length1 = pixel_length1;
+#line 620 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp99_ = offset;
+#line 620 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp100_ = sample;
+#line 620 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp98_[_tmp99_ + 2] = (guchar) _tmp100_;
+#line 620 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp101_ = _tmp98_[_tmp99_ + 2];
+#line 620 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp96_[_tmp97_ + 1] = _tmp101_;
+#line 620 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp102_ = _tmp96_[_tmp97_ + 1];
+#line 620 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp94_[_tmp95_ + 0] = _tmp102_;
+#line 620 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp103_ = _tmp94_[_tmp95_ + 0];
+#line 621 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return;
+#line 2879 "page.c"
}
}
}
}
+#line 625 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp104_ = pixel;
+#line 625 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp104__length1 = pixel_length1;
+#line 625 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp105_ = offset;
+#line 625 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp106_ = self->priv->pixels;
+#line 625 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp106__length1 = self->priv->pixels_length1;
+#line 625 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp107_ = line_offset;
+#line 625 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp108_ = x;
+#line 625 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp109_ = depth;
+#line 625 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp110_ = n_channels;
+#line 625 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp111_ = page_get_sample (self, _tmp106_, _tmp106__length1, _tmp107_, _tmp108_, _tmp109_, _tmp110_, 0);
+#line 625 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp104_[_tmp105_ + 0] = _tmp111_;
+#line 625 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp112_ = _tmp104_[_tmp105_ + 0];
+#line 626 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp113_ = pixel;
+#line 626 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp113__length1 = pixel_length1;
+#line 626 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp114_ = offset;
+#line 626 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp115_ = self->priv->pixels;
+#line 626 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp115__length1 = self->priv->pixels_length1;
+#line 626 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp116_ = line_offset;
+#line 626 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp117_ = x;
+#line 626 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp118_ = depth;
+#line 626 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp119_ = n_channels;
+#line 626 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp120_ = page_get_sample (self, _tmp115_, _tmp115__length1, _tmp116_, _tmp117_, _tmp118_, _tmp119_, 1);
+#line 626 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp113_[_tmp114_ + 1] = _tmp120_;
+#line 626 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp121_ = _tmp113_[_tmp114_ + 1];
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp122_ = pixel;
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp122__length1 = pixel_length1;
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp123_ = offset;
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp124_ = self->priv->pixels;
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp124__length1 = self->priv->pixels_length1;
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp125_ = line_offset;
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp126_ = x;
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp127_ = depth;
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp128_ = n_channels;
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp129_ = page_get_sample (self, _tmp124_, _tmp124__length1, _tmp125_, _tmp126_, _tmp127_, _tmp128_, 2);
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp122_[_tmp123_ + 2] = _tmp129_;
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp130_ = _tmp122_[_tmp123_ + 2];
+#line 2956 "page.c"
}
@@ -1903,17 +2976,29 @@ GdkPixbuf* page_get_image (Page* self, gboolean apply_crop) {
guint8* image_pixels;
gint image_pixels_length1;
gint _image_pixels_size_;
+#line 630 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_val_if_fail (self != NULL, NULL);
+#line 633 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp1_ = apply_crop;
+#line 633 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (_tmp1_) {
+#line 2986 "page.c"
gboolean _tmp2_;
+#line 633 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp2_ = self->priv->has_crop_;
+#line 633 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp0_ = _tmp2_;
+#line 2992 "page.c"
} else {
+#line 633 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp0_ = FALSE;
+#line 2996 "page.c"
}
+#line 633 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp3_ = _tmp0_;
+#line 633 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (_tmp3_) {
+#line 3002 "page.c"
gint _tmp4_;
gint _tmp5_;
gint _tmp6_;
@@ -1926,68 +3011,125 @@ GdkPixbuf* page_get_image (Page* self, gboolean apply_crop) {
gint _tmp14_;
gint _tmp15_;
gint _tmp16_ = 0;
+#line 635 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp4_ = self->priv->crop_x;
+#line 635 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
l = _tmp4_;
+#line 636 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp5_ = l;
+#line 636 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp6_ = self->priv->crop_width;
+#line 636 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
r = _tmp5_ + _tmp6_;
+#line 637 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp7_ = self->priv->crop_y;
+#line 637 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
t = _tmp7_;
+#line 638 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp8_ = t;
+#line 638 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp9_ = self->priv->crop_height;
+#line 638 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
b = _tmp8_ + _tmp9_;
+#line 640 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp10_ = l;
+#line 640 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (_tmp10_ < 0) {
+#line 641 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
l = 0;
+#line 3041 "page.c"
}
+#line 642 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp11_ = r;
+#line 642 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp12_ = page_get_width (self);
+#line 642 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (_tmp11_ > _tmp12_) {
+#line 3049 "page.c"
gint _tmp13_ = 0;
+#line 643 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp13_ = page_get_width (self);
+#line 643 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
r = _tmp13_;
+#line 3055 "page.c"
}
+#line 644 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp14_ = t;
+#line 644 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (_tmp14_ < 0) {
+#line 645 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
t = 0;
+#line 3063 "page.c"
}
+#line 646 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp15_ = b;
+#line 646 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp16_ = page_get_height (self);
+#line 646 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (_tmp15_ > _tmp16_) {
+#line 3071 "page.c"
gint _tmp17_ = 0;
+#line 647 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp17_ = page_get_height (self);
+#line 647 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
b = _tmp17_;
+#line 3077 "page.c"
}
} else {
gint _tmp18_ = 0;
gint _tmp19_ = 0;
+#line 651 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
l = 0;
+#line 652 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp18_ = page_get_width (self);
+#line 652 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
r = _tmp18_;
+#line 653 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
t = 0;
+#line 654 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp19_ = page_get_height (self);
+#line 654 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
b = _tmp19_;
+#line 3094 "page.c"
}
+#line 657 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp20_ = r;
+#line 657 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp21_ = l;
+#line 657 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp22_ = b;
+#line 657 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp23_ = t;
+#line 657 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp24_ = gdk_pixbuf_new (GDK_COLORSPACE_RGB, FALSE, 8, _tmp20_ - _tmp21_, _tmp22_ - _tmp23_);
+#line 657 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
image = _tmp24_;
+#line 658 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp25_ = image;
+#line 658 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp26_ = gdk_pixbuf_get_pixels (_tmp25_);
+#line 658 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
image_pixels = _tmp26_;
+#line 658 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
image_pixels_length1 = -1;
+#line 658 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_image_pixels_size_ = image_pixels_length1;
+#line 3118 "page.c"
{
gint _tmp27_;
gint y;
+#line 659 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp27_ = t;
+#line 659 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
y = _tmp27_;
+#line 3126 "page.c"
{
gboolean _tmp28_;
+#line 659 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp28_ = TRUE;
+#line 659 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
while (TRUE) {
+#line 3133 "page.c"
gboolean _tmp29_;
gint _tmp31_;
gint _tmp32_;
@@ -1996,32 +3138,56 @@ GdkPixbuf* page_get_image (Page* self, gboolean apply_crop) {
gint _tmp35_;
gint _tmp36_;
gint offset;
+#line 659 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp29_ = _tmp28_;
+#line 659 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (!_tmp29_) {
+#line 3146 "page.c"
gint _tmp30_;
+#line 659 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp30_ = y;
+#line 659 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
y = _tmp30_ + 1;
+#line 3152 "page.c"
}
+#line 659 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp28_ = FALSE;
+#line 659 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp31_ = y;
+#line 659 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp32_ = b;
+#line 659 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (!(_tmp31_ < _tmp32_)) {
+#line 659 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
break;
+#line 3164 "page.c"
}
+#line 661 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp33_ = image;
+#line 661 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp34_ = gdk_pixbuf_get_rowstride (_tmp33_);
+#line 661 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp35_ = y;
+#line 661 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp36_ = t;
+#line 661 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
offset = _tmp34_ * (_tmp35_ - _tmp36_);
+#line 3176 "page.c"
{
gint _tmp37_;
gint x;
+#line 662 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp37_ = l;
+#line 662 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
x = _tmp37_;
+#line 3184 "page.c"
{
gboolean _tmp38_;
+#line 662 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp38_ = TRUE;
+#line 662 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
while (TRUE) {
+#line 3191 "page.c"
gboolean _tmp39_;
gint _tmp41_;
gint _tmp42_;
@@ -2032,34 +3198,58 @@ GdkPixbuf* page_get_image (Page* self, gboolean apply_crop) {
gint _tmp46_;
gint _tmp47_;
gint _tmp48_;
+#line 662 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp39_ = _tmp38_;
+#line 662 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (!_tmp39_) {
+#line 3206 "page.c"
gint _tmp40_;
+#line 662 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp40_ = x;
+#line 662 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
x = _tmp40_ + 1;
+#line 3212 "page.c"
}
+#line 662 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp38_ = FALSE;
+#line 662 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp41_ = x;
+#line 662 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp42_ = r;
+#line 662 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (!(_tmp41_ < _tmp42_)) {
+#line 662 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
break;
+#line 3224 "page.c"
}
+#line 663 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp43_ = x;
+#line 663 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp44_ = y;
+#line 663 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp45_ = image_pixels;
+#line 663 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp45__length1 = image_pixels_length1;
+#line 663 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp46_ = offset;
+#line 663 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp47_ = x;
+#line 663 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp48_ = l;
+#line 663 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
page_get_pixel (self, _tmp43_, _tmp44_, _tmp45_, _tmp45__length1, _tmp46_ + ((_tmp47_ - _tmp48_) * 3));
+#line 3242 "page.c"
}
}
}
}
}
}
+#line 666 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
result = image;
+#line 666 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return result;
+#line 3253 "page.c"
}
@@ -2078,27 +3268,49 @@ static gchar* string_to_utf8 (const gchar* self, int* result_length1) {
gint _tmp6_;
gchar* _tmp7_;
gint _tmp7__length1;
+#line 1267 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
g_return_val_if_fail (self != NULL, NULL);
+#line 1268 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp0_ = strlen (self);
+#line 1268 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp1_ = _tmp0_;
+#line 1268 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp2_ = g_new0 (gchar, _tmp1_ + 1);
+#line 1268 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_result_ = _tmp2_;
+#line 1268 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_result__length1 = _tmp1_ + 1;
+#line 1268 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
__result__size_ = _result__length1;
+#line 1269 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp3_ = _result__length1;
+#line 1269 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_result__length1 = _tmp3_ - 1;
+#line 1270 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp4_ = _result_;
+#line 1270 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp4__length1 = _result__length1;
+#line 1270 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp5_ = strlen (self);
+#line 1270 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp6_ = _tmp5_;
+#line 1270 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
memcpy (_tmp4_, self, (gsize) _tmp6_);
+#line 1271 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp7_ = _result_;
+#line 1271 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp7__length1 = _result__length1;
+#line 1271 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
if (result_length1) {
+#line 1271 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
*result_length1 = _tmp7__length1;
+#line 3308 "page.c"
}
+#line 1271 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
result = _tmp7_;
+#line 1271 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
return result;
+#line 3314 "page.c"
}
@@ -2113,56 +3325,143 @@ static gchar* page_get_icc_data_encoded (Page* self, const gchar* icc_profile_fi
gchar* _tmp8_ = NULL;
gchar* _tmp9_;
GError * _inner_error_ = NULL;
+#line 669 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_val_if_fail (self != NULL, NULL);
+#line 669 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_val_if_fail (icc_profile_filename != NULL, NULL);
+#line 3333 "page.c"
{
const gchar* _tmp0_;
gchar* _tmp1_ = NULL;
+#line 675 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp0_ = icc_profile_filename;
+#line 675 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_file_get_contents (_tmp0_, &_tmp1_, NULL, &_inner_error_);
+#line 675 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_g_free0 (contents);
+#line 675 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
contents = _tmp1_;
+#line 675 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (_inner_error_ != NULL) {
- goto __catch2_g_error;
+#line 3347 "page.c"
+ goto __catch3_g_error;
}
}
- goto __finally2;
- __catch2_g_error:
+ goto __finally3;
+ __catch3_g_error:
{
GError* e = NULL;
GError* _tmp2_;
const gchar* _tmp3_;
+#line 673 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
e = _inner_error_;
+#line 673 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_inner_error_ = NULL;
+#line 679 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp2_ = e;
+#line 679 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp3_ = _tmp2_->message;
- g_warning ("page.vala:670: failed to get icc profile data: %s", _tmp3_);
+#line 679 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ g_warning ("page.vala:679: failed to get icc profile data: %s", _tmp3_);
+#line 680 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
result = NULL;
+#line 680 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_g_error_free0 (e);
+#line 680 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_g_free0 (contents);
+#line 680 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return result;
+#line 3375 "page.c"
}
- __finally2:
+ __finally3:
+#line 673 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (_inner_error_ != NULL) {
+#line 673 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_g_free0 (contents);
+#line 673 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 673 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_clear_error (&_inner_error_);
+#line 673 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return NULL;
+#line 3388 "page.c"
}
+#line 684 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp4_ = contents;
+#line 684 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp6_ = string_to_utf8 (_tmp4_, &_tmp5_);
+#line 684 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp7_ = (guchar*) _tmp6_;
+#line 684 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp7__length1 = (_tmp5_ * sizeof (gchar)) / sizeof (guchar);
+#line 684 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp8_ = g_base64_encode (_tmp7_, (_tmp5_ * sizeof (gchar)) / sizeof (guchar));
+#line 684 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp9_ = _tmp8_;
+#line 684 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp7_ = (g_free (_tmp7_), NULL);
+#line 684 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
result = _tmp9_;
+#line 684 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_g_free0 (contents);
+#line 684 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return result;
+#line 3410 "page.c"
+}
+
+
+static gpointer _g_object_ref0 (gpointer self) {
+#line 689 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ return self ? g_object_ref (self) : NULL;
+#line 3417 "page.c"
}
-void page_save (Page* self, const gchar* type, GFile* file, GError** error) {
+void page_copy_to_clipboard (Page* self, GtkWindow* window) {
+ GtkWindow* _tmp0_;
+ GdkDisplay* _tmp1_ = NULL;
+ GdkDisplay* _tmp2_;
+ GdkDisplay* display;
+ GtkClipboard* _tmp3_ = NULL;
+ GtkClipboard* _tmp4_;
+ GtkClipboard* clipboard;
+ GdkPixbuf* _tmp5_ = NULL;
+ GdkPixbuf* image;
+#line 687 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ g_return_if_fail (self != NULL);
+#line 687 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ g_return_if_fail (window != NULL);
+#line 689 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp0_ = window;
+#line 689 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp1_ = gtk_widget_get_display ((GtkWidget*) _tmp0_);
+#line 689 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp2_ = _g_object_ref0 (_tmp1_);
+#line 689 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ display = _tmp2_;
+#line 690 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp3_ = gtk_clipboard_get_for_display (display, GDK_SELECTION_CLIPBOARD);
+#line 690 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp4_ = _g_object_ref0 (_tmp3_);
+#line 690 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ clipboard = _tmp4_;
+#line 691 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp5_ = page_get_image (self, TRUE);
+#line 691 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ image = _tmp5_;
+#line 692 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ gtk_clipboard_set_image (clipboard, image);
+#line 687 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _g_object_unref0 (image);
+#line 687 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _g_object_unref0 (clipboard);
+#line 687 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _g_object_unref0 (display);
+#line 3461 "page.c"
+}
+
+
+void page_save (Page* self, const gchar* type, gint quality, GFile* file, GError** error) {
GFile* _tmp0_;
GFileOutputStream* _tmp1_ = NULL;
GFileOutputStream* stream;
@@ -2177,378 +3476,711 @@ void page_save (Page* self, const gchar* type, GFile* file, GError** error) {
const gchar* _tmp9_;
gint _tmp10_ = 0;
GError * _inner_error_ = NULL;
+#line 695 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_if_fail (self != NULL);
+#line 695 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_if_fail (type != NULL);
+#line 695 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_if_fail (file != NULL);
+#line 697 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp0_ = file;
+#line 697 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp1_ = g_file_replace (_tmp0_, NULL, FALSE, G_FILE_CREATE_NONE, NULL, &_inner_error_);
+#line 697 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
stream = _tmp1_;
+#line 697 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (_inner_error_ != NULL) {
+#line 697 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_propagate_error (error, _inner_error_);
+#line 697 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return;
+#line 3498 "page.c"
}
+#line 698 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp2_ = stream;
+#line 698 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp3_ = pixbuf_writer_new (_tmp2_);
+#line 698 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
writer = _tmp3_;
+#line 699 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp4_ = page_get_image (self, TRUE);
+#line 699 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
image = _tmp4_;
+#line 701 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
icc_profile_data = NULL;
+#line 702 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp5_ = self->priv->color_profile;
+#line 702 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (_tmp5_ != NULL) {
+#line 3516 "page.c"
const gchar* _tmp6_;
gchar* _tmp7_ = NULL;
+#line 703 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp6_ = self->priv->color_profile;
+#line 703 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp7_ = page_get_icc_data_encoded (self, _tmp6_);
+#line 703 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_g_free0 (icc_profile_data);
+#line 703 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
icc_profile_data = _tmp7_;
+#line 3527 "page.c"
}
+#line 705 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp8_ = g_strcmp0;
+#line 705 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp9_ = type;
+#line 705 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp10_ = _tmp8_ (_tmp9_, "jpeg");
+#line 705 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (_tmp10_ == 0) {
+#line 3537 "page.c"
gchar* _tmp11_;
- gchar** _tmp12_ = NULL;
+ gchar* _tmp12_;
+ gchar* _tmp13_;
+ gchar* _tmp14_;
+ gchar* _tmp15_;
+ gchar** _tmp16_ = NULL;
gchar** keys;
gint keys_length1;
gint _keys_size_;
- gchar* _tmp13_;
- gchar** _tmp14_ = NULL;
+ gint _tmp17_;
+ gchar* _tmp18_ = NULL;
+ gchar* _tmp19_;
+ gint _tmp20_;
+ gchar* _tmp21_ = NULL;
+ gint _tmp22_;
+ gchar* _tmp23_ = NULL;
+ const gchar* _tmp24_;
+ gchar* _tmp25_;
+ gchar** _tmp26_ = NULL;
gchar** values;
gint values_length1;
gint _values_size_;
- PixbufWriter* _tmp15_;
- GdkPixbuf* _tmp16_;
- gchar** _tmp17_;
- gint _tmp17__length1;
- gchar** _tmp18_;
- gint _tmp18__length1;
+ const gchar* _tmp27_;
+ PixbufWriter* _tmp30_;
+ GdkPixbuf* _tmp31_;
+ gchar** _tmp32_;
+ gint _tmp32__length1;
+ gchar** _tmp33_;
+ gint _tmp33__length1;
+#line 707 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp11_ = g_strdup ("quality");
- _tmp12_ = g_new0 (gchar*, 2 + 1);
- _tmp12_[0] = _tmp11_;
- _tmp12_[1] = NULL;
- keys = _tmp12_;
- keys_length1 = 2;
+#line 707 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp12_ = g_strdup ("density-unit");
+#line 707 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp13_ = g_strdup ("x-density");
+#line 707 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp14_ = g_strdup ("y-density");
+#line 707 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp15_ = g_strdup ("icc-profile");
+#line 707 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp16_ = g_new0 (gchar*, 6 + 1);
+#line 707 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp16_[0] = _tmp11_;
+#line 707 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp16_[1] = _tmp12_;
+#line 707 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp16_[2] = _tmp13_;
+#line 707 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp16_[3] = _tmp14_;
+#line 707 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp16_[4] = _tmp15_;
+#line 707 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp16_[5] = NULL;
+#line 707 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ keys = _tmp16_;
+#line 707 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ keys_length1 = 6;
+#line 707 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_keys_size_ = keys_length1;
- _tmp13_ = g_strdup ("90");
- _tmp14_ = g_new0 (gchar*, 2 + 1);
- _tmp14_[0] = _tmp13_;
- _tmp14_[1] = NULL;
- values = _tmp14_;
- values_length1 = 2;
+#line 708 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp17_ = quality;
+#line 708 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp18_ = g_strdup_printf ("%d", _tmp17_);
+#line 708 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp19_ = g_strdup ("dots-per-inch");
+#line 708 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp20_ = self->priv->dpi;
+#line 708 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp21_ = g_strdup_printf ("%d", _tmp20_);
+#line 708 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp22_ = self->priv->dpi;
+#line 708 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp23_ = g_strdup_printf ("%d", _tmp22_);
+#line 708 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp24_ = icc_profile_data;
+#line 708 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp25_ = g_strdup (_tmp24_);
+#line 708 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp26_ = g_new0 (gchar*, 6 + 1);
+#line 708 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp26_[0] = _tmp18_;
+#line 708 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp26_[1] = _tmp19_;
+#line 708 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp26_[2] = _tmp21_;
+#line 708 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp26_[3] = _tmp23_;
+#line 708 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp26_[4] = _tmp25_;
+#line 708 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp26_[5] = NULL;
+#line 708 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ values = _tmp26_;
+#line 708 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ values_length1 = 6;
+#line 708 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_values_size_ = values_length1;
- _tmp15_ = writer;
- _tmp16_ = image;
- _tmp17_ = keys;
- _tmp17__length1 = keys_length1;
- _tmp18_ = values;
- _tmp18__length1 = values_length1;
- pixbuf_writer_save (_tmp15_, _tmp16_, "jpeg", _tmp17_, _tmp17__length1, _tmp18_, _tmp18__length1, &_inner_error_);
+#line 709 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp27_ = icc_profile_data;
+#line 709 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ if (_tmp27_ == NULL) {
+#line 3639 "page.c"
+ gchar** _tmp28_;
+ gint _tmp28__length1;
+ gchar* _tmp29_;
+#line 710 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp28_ = keys;
+#line 710 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp28__length1 = keys_length1;
+#line 710 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _g_free0 (_tmp28_[4]);
+#line 710 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp28_[4] = NULL;
+#line 710 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp29_ = _tmp28_[4];
+#line 3653 "page.c"
+ }
+#line 711 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp30_ = writer;
+#line 711 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp31_ = image;
+#line 711 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp32_ = keys;
+#line 711 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp32__length1 = keys_length1;
+#line 711 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp33_ = values;
+#line 711 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp33__length1 = values_length1;
+#line 711 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ pixbuf_writer_save (_tmp30_, _tmp31_, "jpeg", _tmp32_, _tmp32__length1, _tmp33_, _tmp33__length1, &_inner_error_);
+#line 711 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (_inner_error_ != NULL) {
+#line 711 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_propagate_error (error, _inner_error_);
+#line 711 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
values = (_vala_array_free (values, values_length1, (GDestroyNotify) g_free), NULL);
+#line 711 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
keys = (_vala_array_free (keys, keys_length1, (GDestroyNotify) g_free), NULL);
+#line 711 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_g_free0 (icc_profile_data);
+#line 711 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_g_object_unref0 (image);
+#line 711 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_pixbuf_writer_unref0 (writer);
+#line 711 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_g_object_unref0 (stream);
+#line 711 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return;
+#line 3687 "page.c"
}
+#line 705 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
values = (_vala_array_free (values, values_length1, (GDestroyNotify) g_free), NULL);
+#line 705 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
keys = (_vala_array_free (keys, keys_length1, (GDestroyNotify) g_free), NULL);
+#line 3693 "page.c"
} else {
- GCompareFunc _tmp19_;
- const gchar* _tmp20_;
- gint _tmp21_ = 0;
- _tmp19_ = g_strcmp0;
- _tmp20_ = type;
- _tmp21_ = _tmp19_ (_tmp20_, "png");
- if (_tmp21_ == 0) {
- gchar* _tmp22_;
- gchar** _tmp23_ = NULL;
+ GCompareFunc _tmp34_;
+ const gchar* _tmp35_;
+ gint _tmp36_ = 0;
+#line 713 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp34_ = g_strcmp0;
+#line 713 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp35_ = type;
+#line 713 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp36_ = _tmp34_ (_tmp35_, "png");
+#line 713 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ if (_tmp36_ == 0) {
+#line 3706 "page.c"
+ gchar* _tmp37_;
+ gchar** _tmp38_ = NULL;
gchar** keys;
gint keys_length1;
gint _keys_size_;
- const gchar* _tmp24_;
- gchar* _tmp25_;
- gchar** _tmp26_ = NULL;
+ const gchar* _tmp39_;
+ gchar* _tmp40_;
+ gchar** _tmp41_ = NULL;
gchar** values;
gint values_length1;
gint _values_size_;
- const gchar* _tmp27_;
- PixbufWriter* _tmp30_;
- GdkPixbuf* _tmp31_;
- gchar** _tmp32_;
- gint _tmp32__length1;
- gchar** _tmp33_;
- gint _tmp33__length1;
- _tmp22_ = g_strdup ("icc-profile");
- _tmp23_ = g_new0 (gchar*, 2 + 1);
- _tmp23_[0] = _tmp22_;
- _tmp23_[1] = NULL;
- keys = _tmp23_;
+ const gchar* _tmp42_;
+ PixbufWriter* _tmp45_;
+ GdkPixbuf* _tmp46_;
+ gchar** _tmp47_;
+ gint _tmp47__length1;
+ gchar** _tmp48_;
+ gint _tmp48__length1;
+#line 715 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp37_ = g_strdup ("icc-profile");
+#line 715 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp38_ = g_new0 (gchar*, 2 + 1);
+#line 715 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp38_[0] = _tmp37_;
+#line 715 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp38_[1] = NULL;
+#line 715 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ keys = _tmp38_;
+#line 715 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
keys_length1 = 2;
+#line 715 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_keys_size_ = keys_length1;
- _tmp24_ = icc_profile_data;
- _tmp25_ = g_strdup (_tmp24_);
- _tmp26_ = g_new0 (gchar*, 2 + 1);
- _tmp26_[0] = _tmp25_;
- _tmp26_[1] = NULL;
- values = _tmp26_;
+#line 716 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp39_ = icc_profile_data;
+#line 716 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp40_ = g_strdup (_tmp39_);
+#line 716 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp41_ = g_new0 (gchar*, 2 + 1);
+#line 716 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp41_[0] = _tmp40_;
+#line 716 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp41_[1] = NULL;
+#line 716 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ values = _tmp41_;
+#line 716 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
values_length1 = 2;
+#line 716 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_values_size_ = values_length1;
- _tmp27_ = icc_profile_data;
- if (_tmp27_ == NULL) {
- gchar** _tmp28_;
- gint _tmp28__length1;
- gchar* _tmp29_;
- _tmp28_ = keys;
- _tmp28__length1 = keys_length1;
- _g_free0 (_tmp28_[0]);
- _tmp28_[0] = NULL;
- _tmp29_ = _tmp28_[0];
+#line 717 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp42_ = icc_profile_data;
+#line 717 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ if (_tmp42_ == NULL) {
+#line 3759 "page.c"
+ gchar** _tmp43_;
+ gint _tmp43__length1;
+ gchar* _tmp44_;
+#line 718 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp43_ = keys;
+#line 718 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp43__length1 = keys_length1;
+#line 718 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _g_free0 (_tmp43_[0]);
+#line 718 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp43_[0] = NULL;
+#line 718 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp44_ = _tmp43_[0];
+#line 3773 "page.c"
}
- _tmp30_ = writer;
- _tmp31_ = image;
- _tmp32_ = keys;
- _tmp32__length1 = keys_length1;
- _tmp33_ = values;
- _tmp33__length1 = values_length1;
- pixbuf_writer_save (_tmp30_, _tmp31_, "png", _tmp32_, _tmp32__length1, _tmp33_, _tmp33__length1, &_inner_error_);
+#line 719 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp45_ = writer;
+#line 719 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp46_ = image;
+#line 719 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp47_ = keys;
+#line 719 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp47__length1 = keys_length1;
+#line 719 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp48_ = values;
+#line 719 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp48__length1 = values_length1;
+#line 719 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ pixbuf_writer_save (_tmp45_, _tmp46_, "png", _tmp47_, _tmp47__length1, _tmp48_, _tmp48__length1, &_inner_error_);
+#line 719 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (_inner_error_ != NULL) {
+#line 719 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_propagate_error (error, _inner_error_);
+#line 719 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
values = (_vala_array_free (values, values_length1, (GDestroyNotify) g_free), NULL);
+#line 719 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
keys = (_vala_array_free (keys, keys_length1, (GDestroyNotify) g_free), NULL);
+#line 719 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_g_free0 (icc_profile_data);
+#line 719 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_g_object_unref0 (image);
+#line 719 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_pixbuf_writer_unref0 (writer);
+#line 719 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_g_object_unref0 (stream);
+#line 719 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return;
+#line 3807 "page.c"
}
+#line 713 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
values = (_vala_array_free (values, values_length1, (GDestroyNotify) g_free), NULL);
+#line 713 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
keys = (_vala_array_free (keys, keys_length1, (GDestroyNotify) g_free), NULL);
+#line 3813 "page.c"
} else {
- GCompareFunc _tmp34_;
- const gchar* _tmp35_;
- gint _tmp36_ = 0;
- _tmp34_ = g_strcmp0;
- _tmp35_ = type;
- _tmp36_ = _tmp34_ (_tmp35_, "tiff");
- if (_tmp36_ == 0) {
- gchar* _tmp37_;
- gchar* _tmp38_;
- gchar** _tmp39_ = NULL;
+ GCompareFunc _tmp49_;
+ const gchar* _tmp50_;
+ gint _tmp51_ = 0;
+#line 721 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp49_ = g_strcmp0;
+#line 721 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp50_ = type;
+#line 721 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp51_ = _tmp49_ (_tmp50_, "tiff");
+#line 721 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ if (_tmp51_ == 0) {
+#line 3826 "page.c"
+ gchar* _tmp52_;
+ gchar* _tmp53_;
+ gchar** _tmp54_ = NULL;
gchar** keys;
gint keys_length1;
gint _keys_size_;
- gchar* _tmp40_;
- const gchar* _tmp41_;
- gchar* _tmp42_;
- gchar** _tmp43_ = NULL;
+ gchar* _tmp55_;
+ const gchar* _tmp56_;
+ gchar* _tmp57_;
+ gchar** _tmp58_ = NULL;
gchar** values;
gint values_length1;
gint _values_size_;
- const gchar* _tmp44_;
- PixbufWriter* _tmp47_;
- GdkPixbuf* _tmp48_;
- gchar** _tmp49_;
- gint _tmp49__length1;
- gchar** _tmp50_;
- gint _tmp50__length1;
- _tmp37_ = g_strdup ("compression");
- _tmp38_ = g_strdup ("icc-profile");
- _tmp39_ = g_new0 (gchar*, 3 + 1);
- _tmp39_[0] = _tmp37_;
- _tmp39_[1] = _tmp38_;
- _tmp39_[2] = NULL;
- keys = _tmp39_;
+ const gchar* _tmp59_;
+ PixbufWriter* _tmp62_;
+ GdkPixbuf* _tmp63_;
+ gchar** _tmp64_;
+ gint _tmp64__length1;
+ gchar** _tmp65_;
+ gint _tmp65__length1;
+#line 723 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp52_ = g_strdup ("compression");
+#line 723 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp53_ = g_strdup ("icc-profile");
+#line 723 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp54_ = g_new0 (gchar*, 3 + 1);
+#line 723 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp54_[0] = _tmp52_;
+#line 723 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp54_[1] = _tmp53_;
+#line 723 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp54_[2] = NULL;
+#line 723 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ keys = _tmp54_;
+#line 723 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
keys_length1 = 3;
+#line 723 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_keys_size_ = keys_length1;
- _tmp40_ = g_strdup ("8");
- _tmp41_ = icc_profile_data;
- _tmp42_ = g_strdup (_tmp41_);
- _tmp43_ = g_new0 (gchar*, 3 + 1);
- _tmp43_[0] = _tmp40_;
- _tmp43_[1] = _tmp42_;
- _tmp43_[2] = NULL;
- values = _tmp43_;
+#line 724 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp55_ = g_strdup ("8");
+#line 724 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp56_ = icc_profile_data;
+#line 724 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp57_ = g_strdup (_tmp56_);
+#line 724 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp58_ = g_new0 (gchar*, 3 + 1);
+#line 724 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp58_[0] = _tmp55_;
+#line 724 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp58_[1] = _tmp57_;
+#line 724 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp58_[2] = NULL;
+#line 724 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ values = _tmp58_;
+#line 724 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
values_length1 = 3;
+#line 724 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_values_size_ = values_length1;
- _tmp44_ = icc_profile_data;
- if (_tmp44_ == NULL) {
- gchar** _tmp45_;
- gint _tmp45__length1;
- gchar* _tmp46_;
- _tmp45_ = keys;
- _tmp45__length1 = keys_length1;
- _g_free0 (_tmp45_[1]);
- _tmp45_[1] = NULL;
- _tmp46_ = _tmp45_[1];
+#line 725 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp59_ = icc_profile_data;
+#line 725 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ if (_tmp59_ == NULL) {
+#line 3889 "page.c"
+ gchar** _tmp60_;
+ gint _tmp60__length1;
+ gchar* _tmp61_;
+#line 726 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp60_ = keys;
+#line 726 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp60__length1 = keys_length1;
+#line 726 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _g_free0 (_tmp60_[1]);
+#line 726 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp60_[1] = NULL;
+#line 726 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp61_ = _tmp60_[1];
+#line 3903 "page.c"
}
- _tmp47_ = writer;
- _tmp48_ = image;
- _tmp49_ = keys;
- _tmp49__length1 = keys_length1;
- _tmp50_ = values;
- _tmp50__length1 = values_length1;
- pixbuf_writer_save (_tmp47_, _tmp48_, "tiff", _tmp49_, _tmp49__length1, _tmp50_, _tmp50__length1, &_inner_error_);
+#line 727 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp62_ = writer;
+#line 727 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp63_ = image;
+#line 727 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp64_ = keys;
+#line 727 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp64__length1 = keys_length1;
+#line 727 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp65_ = values;
+#line 727 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ _tmp65__length1 = values_length1;
+#line 727 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ pixbuf_writer_save (_tmp62_, _tmp63_, "tiff", _tmp64_, _tmp64__length1, _tmp65_, _tmp65__length1, &_inner_error_);
+#line 727 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (_inner_error_ != NULL) {
+#line 727 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_propagate_error (error, _inner_error_);
+#line 727 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
values = (_vala_array_free (values, values_length1, (GDestroyNotify) g_free), NULL);
+#line 727 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
keys = (_vala_array_free (keys, keys_length1, (GDestroyNotify) g_free), NULL);
+#line 727 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_g_free0 (icc_profile_data);
+#line 727 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_g_object_unref0 (image);
+#line 727 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_pixbuf_writer_unref0 (writer);
+#line 727 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_g_object_unref0 (stream);
+#line 727 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return;
+#line 3937 "page.c"
}
+#line 721 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
values = (_vala_array_free (values, values_length1, (GDestroyNotify) g_free), NULL);
+#line 721 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
keys = (_vala_array_free (keys, keys_length1, (GDestroyNotify) g_free), NULL);
+#line 3943 "page.c"
} else {
}
}
}
+#line 695 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_g_free0 (icc_profile_data);
+#line 695 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_g_object_unref0 (image);
+#line 695 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_pixbuf_writer_unref0 (writer);
+#line 695 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_g_object_unref0 (stream);
+#line 3956 "page.c"
}
static void value_page_init (GValue* value) {
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
value->data[0].v_pointer = NULL;
+#line 3963 "page.c"
}
static void value_page_free_value (GValue* value) {
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (value->data[0].v_pointer) {
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
page_unref (value->data[0].v_pointer);
+#line 3972 "page.c"
}
}
static void value_page_copy_value (const GValue* src_value, GValue* dest_value) {
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (src_value->data[0].v_pointer) {
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
dest_value->data[0].v_pointer = page_ref (src_value->data[0].v_pointer);
+#line 3982 "page.c"
} else {
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
dest_value->data[0].v_pointer = NULL;
+#line 3986 "page.c"
}
}
static gpointer value_page_peek_pointer (const GValue* value) {
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return value->data[0].v_pointer;
+#line 3994 "page.c"
}
static gchar* value_page_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (collect_values[0].v_pointer) {
+#line 4001 "page.c"
Page* object;
object = collect_values[0].v_pointer;
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (object->parent_instance.g_class == NULL) {
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 4008 "page.c"
} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 4012 "page.c"
}
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
value->data[0].v_pointer = page_ref (object);
+#line 4016 "page.c"
} else {
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
value->data[0].v_pointer = NULL;
+#line 4020 "page.c"
}
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return NULL;
+#line 4024 "page.c"
}
static gchar* value_page_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
Page** object_p;
object_p = collect_values[0].v_pointer;
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (!object_p) {
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
+#line 4035 "page.c"
}
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (!value->data[0].v_pointer) {
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
*object_p = NULL;
+#line 4041 "page.c"
} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
*object_p = value->data[0].v_pointer;
+#line 4045 "page.c"
} else {
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
*object_p = page_ref (value->data[0].v_pointer);
+#line 4049 "page.c"
}
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return NULL;
+#line 4053 "page.c"
}
GParamSpec* param_spec_page (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
ParamSpecPage* spec;
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_val_if_fail (g_type_is_a (object_type, TYPE_PAGE), NULL);
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
G_PARAM_SPEC (spec)->value_type = object_type;
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return G_PARAM_SPEC (spec);
+#line 4067 "page.c"
}
gpointer value_get_page (const GValue* value) {
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PAGE), NULL);
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return value->data[0].v_pointer;
+#line 4076 "page.c"
}
void value_set_page (GValue* value, gpointer v_object) {
Page* old;
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PAGE));
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
old = value->data[0].v_pointer;
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (v_object) {
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PAGE));
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
value->data[0].v_pointer = v_object;
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
page_ref (value->data[0].v_pointer);
+#line 4096 "page.c"
} else {
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
value->data[0].v_pointer = NULL;
+#line 4100 "page.c"
}
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (old) {
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
page_unref (old);
+#line 4106 "page.c"
}
}
void value_take_page (GValue* value, gpointer v_object) {
Page* old;
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PAGE));
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
old = value->data[0].v_pointer;
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (v_object) {
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PAGE));
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
value->data[0].v_pointer = v_object;
+#line 4125 "page.c"
} else {
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
value->data[0].v_pointer = NULL;
+#line 4129 "page.c"
}
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (old) {
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
page_unref (old);
+#line 4135 "page.c"
}
}
static void page_class_init (PageClass * klass) {
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
page_parent_class = g_type_class_peek_parent (klass);
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
PAGE_CLASS (klass)->finalize = page_finalize;
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_type_class_add_private (klass, sizeof (PagePrivate));
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_signal_new ("pixels_changed", TYPE_PAGE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_signal_new ("size_changed", TYPE_PAGE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_signal_new ("scan_line_changed", TYPE_PAGE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_signal_new ("scan_direction_changed", TYPE_PAGE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_signal_new ("crop_changed", TYPE_PAGE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
+ g_signal_new ("scan_finished", TYPE_PAGE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
+#line 4159 "page.c"
}
static void page_instance_init (Page * self) {
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv = PAGE_GET_PRIVATE (self);
+#line 51 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->scan_direction = SCAN_DIRECTION_TOP_TO_BOTTOM;
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->ref_count = 1;
+#line 4170 "page.c"
}
static void page_finalize (Page* obj) {
Page * self;
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PAGE, Page);
+#line 32 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_g_free0 (self->priv->color_profile);
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->priv->pixels = (g_free (self->priv->pixels), NULL);
+#line 55 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_g_free0 (self->priv->crop_name);
+#line 4184 "page.c"
}
@@ -2569,49 +4201,63 @@ GType page_get_type (void) {
gpointer page_ref (gpointer instance) {
Page* self;
self = instance;
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_atomic_int_inc (&self->ref_count);
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return instance;
+#line 4209 "page.c"
}
void page_unref (gpointer instance) {
Page* self;
self = instance;
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (g_atomic_int_dec_and_test (&self->ref_count)) {
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
PAGE_GET_CLASS (self)->finalize (self);
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_type_free_instance ((GTypeInstance *) self);
+#line 4222 "page.c"
}
}
-static gpointer _g_object_ref0 (gpointer self) {
- return self ? g_object_ref (self) : NULL;
-}
-
-
PixbufWriter* pixbuf_writer_construct (GType object_type, GFileOutputStream* stream) {
PixbufWriter* self = NULL;
GFileOutputStream* _tmp0_;
GFileOutputStream* _tmp1_;
+#line 738 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_val_if_fail (stream != NULL, NULL);
+#line 738 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self = (PixbufWriter*) g_type_create_instance (object_type);
+#line 740 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp0_ = stream;
+#line 740 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp1_ = _g_object_ref0 (_tmp0_);
+#line 740 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_g_object_unref0 (self->stream);
+#line 740 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->stream = _tmp1_;
+#line 738 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return self;
+#line 4245 "page.c"
}
PixbufWriter* pixbuf_writer_new (GFileOutputStream* stream) {
+#line 738 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return pixbuf_writer_construct (TYPE_PIXBUF_WRITER, stream);
+#line 4252 "page.c"
}
static gboolean _pixbuf_writer_write_pixbuf_data_gdk_pixbuf_save_func (guint8* buf, gsize buf_length1, GError** error, gpointer self) {
gboolean result;
result = pixbuf_writer_write_pixbuf_data (self, buf, buf_length1, error);
+#line 745 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return result;
+#line 4261 "page.c"
}
@@ -2623,19 +4269,33 @@ void pixbuf_writer_save (PixbufWriter* self, GdkPixbuf* image, const gchar* type
gchar** _tmp3_;
gint _tmp3__length1;
GError * _inner_error_ = NULL;
+#line 743 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_if_fail (self != NULL);
+#line 743 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_if_fail (image != NULL);
+#line 743 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_if_fail (type != NULL);
+#line 745 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp0_ = image;
+#line 745 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp1_ = type;
+#line 745 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp2_ = option_keys;
+#line 745 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp2__length1 = option_keys_length1;
+#line 745 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp3_ = option_values;
+#line 745 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp3__length1 = option_values_length1;
+#line 745 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
gdk_pixbuf_save_to_callbackv (_tmp0_, _pixbuf_writer_write_pixbuf_data_gdk_pixbuf_save_func, self, _tmp1_, _tmp2_, _tmp3_, &_inner_error_);
+#line 745 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (_inner_error_ != NULL) {
+#line 745 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_propagate_error (error, _inner_error_);
+#line 745 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return;
+#line 4299 "page.c"
}
}
@@ -2646,145 +4306,235 @@ static gboolean pixbuf_writer_write_pixbuf_data (PixbufWriter* self, guint8* buf
guint8* _tmp1_;
gint _tmp1__length1;
GError * _inner_error_ = NULL;
+#line 748 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_val_if_fail (self != NULL, FALSE);
+#line 750 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp0_ = self->stream;
+#line 750 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp1_ = buf;
+#line 750 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_tmp1__length1 = buf_length1;
+#line 750 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_output_stream_write_all ((GOutputStream*) _tmp0_, _tmp1_, (gsize) _tmp1__length1, NULL, NULL, &_inner_error_);
+#line 750 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (_inner_error_ != NULL) {
+#line 750 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_propagate_error (error, _inner_error_);
+#line 750 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return FALSE;
+#line 4326 "page.c"
}
+#line 751 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
result = TRUE;
+#line 751 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return result;
+#line 4332 "page.c"
}
static void value_pixbuf_writer_init (GValue* value) {
+#line 734 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
value->data[0].v_pointer = NULL;
+#line 4339 "page.c"
}
static void value_pixbuf_writer_free_value (GValue* value) {
+#line 734 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (value->data[0].v_pointer) {
+#line 734 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
pixbuf_writer_unref (value->data[0].v_pointer);
+#line 4348 "page.c"
}
}
static void value_pixbuf_writer_copy_value (const GValue* src_value, GValue* dest_value) {
+#line 734 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (src_value->data[0].v_pointer) {
+#line 734 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
dest_value->data[0].v_pointer = pixbuf_writer_ref (src_value->data[0].v_pointer);
+#line 4358 "page.c"
} else {
+#line 734 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
dest_value->data[0].v_pointer = NULL;
+#line 4362 "page.c"
}
}
static gpointer value_pixbuf_writer_peek_pointer (const GValue* value) {
+#line 734 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return value->data[0].v_pointer;
+#line 4370 "page.c"
}
static gchar* value_pixbuf_writer_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+#line 734 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (collect_values[0].v_pointer) {
+#line 4377 "page.c"
PixbufWriter* object;
object = collect_values[0].v_pointer;
+#line 734 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (object->parent_instance.g_class == NULL) {
+#line 734 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 4384 "page.c"
} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
+#line 734 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 4388 "page.c"
}
+#line 734 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
value->data[0].v_pointer = pixbuf_writer_ref (object);
+#line 4392 "page.c"
} else {
+#line 734 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
value->data[0].v_pointer = NULL;
+#line 4396 "page.c"
}
+#line 734 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return NULL;
+#line 4400 "page.c"
}
static gchar* value_pixbuf_writer_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
PixbufWriter** object_p;
object_p = collect_values[0].v_pointer;
+#line 734 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (!object_p) {
+#line 734 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
+#line 4411 "page.c"
}
+#line 734 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (!value->data[0].v_pointer) {
+#line 734 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
*object_p = NULL;
+#line 4417 "page.c"
} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
+#line 734 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
*object_p = value->data[0].v_pointer;
+#line 4421 "page.c"
} else {
+#line 734 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
*object_p = pixbuf_writer_ref (value->data[0].v_pointer);
+#line 4425 "page.c"
}
+#line 734 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return NULL;
+#line 4429 "page.c"
}
GParamSpec* param_spec_pixbuf_writer (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
ParamSpecPixbufWriter* spec;
+#line 734 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_val_if_fail (g_type_is_a (object_type, TYPE_PIXBUF_WRITER), NULL);
+#line 734 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
+#line 734 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
G_PARAM_SPEC (spec)->value_type = object_type;
+#line 734 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return G_PARAM_SPEC (spec);
+#line 4443 "page.c"
}
gpointer value_get_pixbuf_writer (const GValue* value) {
+#line 734 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PIXBUF_WRITER), NULL);
+#line 734 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return value->data[0].v_pointer;
+#line 4452 "page.c"
}
void value_set_pixbuf_writer (GValue* value, gpointer v_object) {
PixbufWriter* old;
+#line 734 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PIXBUF_WRITER));
+#line 734 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
old = value->data[0].v_pointer;
+#line 734 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (v_object) {
+#line 734 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PIXBUF_WRITER));
+#line 734 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 734 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
value->data[0].v_pointer = v_object;
+#line 734 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
pixbuf_writer_ref (value->data[0].v_pointer);
+#line 4472 "page.c"
} else {
+#line 734 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
value->data[0].v_pointer = NULL;
+#line 4476 "page.c"
}
+#line 734 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (old) {
+#line 734 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
pixbuf_writer_unref (old);
+#line 4482 "page.c"
}
}
void value_take_pixbuf_writer (GValue* value, gpointer v_object) {
PixbufWriter* old;
+#line 734 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PIXBUF_WRITER));
+#line 734 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
old = value->data[0].v_pointer;
+#line 734 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (v_object) {
+#line 734 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PIXBUF_WRITER));
+#line 734 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 734 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
value->data[0].v_pointer = v_object;
+#line 4501 "page.c"
} else {
+#line 734 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
value->data[0].v_pointer = NULL;
+#line 4505 "page.c"
}
+#line 734 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (old) {
+#line 734 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
pixbuf_writer_unref (old);
+#line 4511 "page.c"
}
}
static void pixbuf_writer_class_init (PixbufWriterClass * klass) {
+#line 734 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
pixbuf_writer_parent_class = g_type_class_peek_parent (klass);
+#line 734 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
PIXBUF_WRITER_CLASS (klass)->finalize = pixbuf_writer_finalize;
+#line 4521 "page.c"
}
static void pixbuf_writer_instance_init (PixbufWriter * self) {
+#line 734 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->ref_count = 1;
+#line 4528 "page.c"
}
static void pixbuf_writer_finalize (PixbufWriter* obj) {
PixbufWriter * self;
+#line 734 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PIXBUF_WRITER, PixbufWriter);
+#line 736 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_g_object_unref0 (self->stream);
+#line 4538 "page.c"
}
@@ -2805,17 +4555,24 @@ GType pixbuf_writer_get_type (void) {
gpointer pixbuf_writer_ref (gpointer instance) {
PixbufWriter* self;
self = instance;
+#line 734 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_atomic_int_inc (&self->ref_count);
+#line 734 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return instance;
+#line 4563 "page.c"
}
void pixbuf_writer_unref (gpointer instance) {
PixbufWriter* self;
self = instance;
+#line 734 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (g_atomic_int_dec_and_test (&self->ref_count)) {
+#line 734 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
PIXBUF_WRITER_GET_CLASS (self)->finalize (self);
+#line 734 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_type_free_instance ((GTypeInstance *) self);
+#line 4576 "page.c"
}
}
diff --git a/src/page.vala b/src/page.vala
index 3bf34d7..f27258c 100644
--- a/src/page.vala
+++ b/src/page.vala
@@ -63,6 +63,7 @@ public class Page
public signal void scan_line_changed ();
public signal void scan_direction_changed ();
public signal void crop_changed ();
+ public signal void scan_finished ();
public Page (int width, int height, int dpi, ScanDirection scan_direction)
{
@@ -199,6 +200,7 @@ public class Page
if (size_has_changed)
size_changed ();
scan_line_changed ();
+ scan_finished ();
}
public ScanDirection get_scan_direction ()
@@ -541,6 +543,13 @@ public class Page
return pixels;
}
+ public void set_pixels (uchar[] new_pixels)
+ {
+ pixels = new_pixels;
+ has_data_ = new_pixels != null;
+ pixels_changed ();
+ }
+
// FIXME: Copied from page-view, should be shared code
private uchar get_sample (uchar[] pixels, int offset, int x, int depth, int n_channels, int channel)
{
@@ -674,8 +683,16 @@ public class Page
/* Encode into base64 */
return Base64.encode ((uchar[]) contents.to_utf8 ());
}
+
+ public void copy_to_clipboard (Gtk.Window window)
+ {
+ Gdk.Display display = window.get_display ();
+ Gtk.Clipboard clipboard = Gtk.Clipboard.get_for_display (display, Gdk.SELECTION_CLIPBOARD);
+ var image = get_image (true);
+ clipboard.set_image(image);
+ }
- public void save (string type, File file) throws Error
+ public void save (string type, int quality, File file) throws Error
{
var stream = file.replace (null, false, FileCreateFlags.NONE, null);
var writer = new PixbufWriter (stream);
@@ -687,9 +704,10 @@ public class Page
if (strcmp (type, "jpeg") == 0)
{
- /* ICC profile is awaiting review in gtk2+ bugzilla */
- string[] keys = { "quality", /* "icc-profile", */ null };
- string[] values = { "90", /* icc_profile_data, */ null };
+ string[] keys = { "quality", "density-unit", "x-density", "y-density", "icc-profile", null };
+ string[] values = { "%d".printf (quality), "dots-per-inch", "%d".printf (dpi), "%d".printf (dpi), icc_profile_data, null };
+ if (icc_profile_data == null)
+ keys[4] = null;
writer.save (image, "jpeg", keys, values);
}
else if (strcmp (type, "png") == 0)
diff --git a/src/resources.c b/src/resources.c
new file mode 100644
index 0000000..9354d37
--- /dev/null
+++ b/src/resources.c
@@ -0,0 +1,4953 @@
+#include <gio/gio.h>
+
+#if defined (__ELF__) && ( __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 6))
+# define SECTION __attribute__ ((section (".gresource.simple_scan"), aligned (8)))
+#else
+# define SECTION
+#endif
+
+static const SECTION union { const guint8 data[38553]; const double alignment; void * const ptr;} simple_scan_resource_data = { {
+ 0x47, 0x56, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x18, 0x00, 0x00, 0x00, 0xac, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x28, 0x05, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00,
+ 0x02, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00,
+ 0x05, 0x00, 0x00, 0x00, 0xd4, 0xb5, 0x02, 0x00,
+ 0xff, 0xff, 0xff, 0xff, 0xac, 0x00, 0x00, 0x00,
+ 0x01, 0x00, 0x4c, 0x00, 0xb0, 0x00, 0x00, 0x00,
+ 0xb4, 0x00, 0x00, 0x00, 0x4b, 0x50, 0x90, 0x0b,
+ 0x00, 0x00, 0x00, 0x00, 0xb4, 0x00, 0x00, 0x00,
+ 0x04, 0x00, 0x4c, 0x00, 0xb8, 0x00, 0x00, 0x00,
+ 0xbc, 0x00, 0x00, 0x00, 0x6e, 0xa3, 0x22, 0x37,
+ 0x03, 0x00, 0x00, 0x00, 0xbc, 0x00, 0x00, 0x00,
+ 0x0b, 0x00, 0x4c, 0x00, 0xc8, 0x00, 0x00, 0x00,
+ 0xcc, 0x00, 0x00, 0x00, 0xb0, 0xb7, 0x24, 0x30,
+ 0x01, 0x00, 0x00, 0x00, 0xcc, 0x00, 0x00, 0x00,
+ 0x06, 0x00, 0x4c, 0x00, 0xd4, 0x00, 0x00, 0x00,
+ 0xd8, 0x00, 0x00, 0x00, 0x76, 0x8d, 0xc8, 0xbd,
+ 0x02, 0x00, 0x00, 0x00, 0xd8, 0x00, 0x00, 0x00,
+ 0x0e, 0x00, 0x76, 0x00, 0xe8, 0x00, 0x00, 0x00,
+ 0x99, 0x96, 0x00, 0x00, 0x2f, 0x00, 0x00, 0x00,
+ 0x01, 0x00, 0x00, 0x00, 0x6f, 0x72, 0x67, 0x2f,
+ 0x03, 0x00, 0x00, 0x00, 0x53, 0x69, 0x6d, 0x70,
+ 0x6c, 0x65, 0x53, 0x63, 0x61, 0x6e, 0x2f, 0x00,
+ 0x04, 0x00, 0x00, 0x00, 0x67, 0x6e, 0x6f, 0x6d,
+ 0x65, 0x2f, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00,
+ 0x73, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x2d, 0x73,
+ 0x63, 0x61, 0x6e, 0x2e, 0x75, 0x69, 0x00, 0x00,
+ 0xa1, 0x95, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x3c, 0x3f, 0x78, 0x6d, 0x6c, 0x20, 0x76, 0x65,
+ 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x3d, 0x22, 0x31,
+ 0x2e, 0x30, 0x22, 0x3f, 0x3e, 0x0a, 0x3c, 0x69,
+ 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65,
+ 0x3e, 0x3c, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72,
+ 0x65, 0x73, 0x20, 0x6c, 0x69, 0x62, 0x3d, 0x22,
+ 0x67, 0x74, 0x6b, 0x2b, 0x22, 0x20, 0x76, 0x65,
+ 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x3d, 0x22, 0x32,
+ 0x2e, 0x31, 0x36, 0x22, 0x2f, 0x3e, 0x3c, 0x21,
+ 0x2d, 0x2d, 0x20, 0x69, 0x6e, 0x74, 0x65, 0x72,
+ 0x66, 0x61, 0x63, 0x65, 0x2d, 0x6e, 0x61, 0x6d,
+ 0x69, 0x6e, 0x67, 0x2d, 0x70, 0x6f, 0x6c, 0x69,
+ 0x63, 0x79, 0x20, 0x70, 0x72, 0x6f, 0x6a, 0x65,
+ 0x63, 0x74, 0x2d, 0x77, 0x69, 0x64, 0x65, 0x20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 0x42, 0x61, 0x72, 0x22, 0x20, 0x69, 0x64,
+ 0x3d, 0x22, 0x6d, 0x65, 0x6e, 0x75, 0x62, 0x61,
+ 0x72, 0x22, 0x3e, 0x3c, 0x70, 0x72, 0x6f, 0x70,
+ 0x65, 0x72, 0x74, 0x79, 0x20, 0x6e, 0x61, 0x6d,
+ 0x65, 0x3d, 0x22, 0x76, 0x69, 0x73, 0x69, 0x62,
+ 0x6c, 0x65, 0x22, 0x3e, 0x54, 0x72, 0x75, 0x65,
+ 0x3c, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72,
+ 0x74, 0x79, 0x3e, 0x3c, 0x63, 0x68, 0x69, 0x6c,
+ 0x64, 0x3e, 0x3c, 0x6f, 0x62, 0x6a, 0x65, 0x63,
+ 0x74, 0x20, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x3d,
+ 0x22, 0x47, 0x74, 0x6b, 0x4d, 0x65, 0x6e, 0x75,
+ 0x49, 0x74, 0x65, 0x6d, 0x22, 0x20, 0x69, 0x64,
+ 0x3d, 0x22, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65,
+ 0x6e, 0x74, 0x5f, 0x6d, 0x65, 0x6e, 0x75, 0x69,
+ 0x74, 0x65, 0x6d, 0x22, 0x3e, 0x3c, 0x70, 0x72,
+ 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x20, 0x6e,
+ 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x76, 0x69, 0x73,
+ 0x69, 0x62, 0x6c, 0x65, 0x22, 0x3e, 0x54, 0x72,
+ 0x75, 0x65, 0x3c, 0x2f, 0x70, 0x72, 0x6f, 0x70,
+ 0x65, 0x72, 0x74, 0x79, 0x3e, 0x3c, 0x70, 0x72,
+ 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x20, 0x6e,
+ 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x6c, 0x61, 0x62,
+ 0x65, 0x6c, 0x22, 0x20, 0x74, 0x72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0x74, 0x6b, 0x2d,
+ 0x6e, 0x65, 0x77, 0x3c, 0x2f, 0x70, 0x72, 0x6f,
+ 0x70, 0x65, 0x72, 0x74, 0x79, 0x3e, 0x3c, 0x70,
+ 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x20,
+ 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x76, 0x69,
+ 0x73, 0x69, 0x62, 0x6c, 0x65, 0x22, 0x3e, 0x54,
+ 0x72, 0x75, 0x65, 0x3c, 0x2f, 0x70, 0x72, 0x6f,
+ 0x70, 0x65, 0x72, 0x74, 0x79, 0x3e, 0x3c, 0x70,
+ 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x20,
+ 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x75, 0x73,
+ 0x65, 0x5f, 0x75, 0x6e, 0x64, 0x65, 0x72, 0x6c,
+ 0x69, 0x6e, 0x65, 0x22, 0x3e, 0x54, 0x72, 0x75,
+ 0x65, 0x3c, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x65,
+ 0x72, 0x74, 0x79, 0x3e, 0x3c, 0x70, 0x72, 0x6f,
+ 0x70, 0x65, 0x72, 0x74, 0x79, 0x20, 0x6e, 0x61,
+ 0x6d, 0x65, 0x3d, 0x22, 0x75, 0x73, 0x65, 0x5f,
+ 0x73, 0x74, 0x6f, 0x63, 0x6b, 0x22, 0x3e, 0x54,
+ 0x72, 0x75, 0x65, 0x3c, 0x2f, 0x70, 0x72, 0x6f,
+ 0x70, 0x65, 0x72, 0x74, 0x79, 0x3e, 0x3c, 0x61,
+ 0x63, 0x63, 0x65, 0x6c, 0x65, 0x72, 0x61, 0x74,
+ 0x6f, 0x72, 0x20, 0x6b, 0x65, 0x79, 0x3d, 0x22,
+ 0x6e, 0x22, 0x20, 0x73, 0x69, 0x67, 0x6e, 0x61,
+ 0x6c, 0x3d, 0x22, 0x61, 0x63, 0x74, 0x69, 0x76,
+ 0x61, 0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, 0x6d, 0x22, 0x3e, 0x3c,
+ 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79,
+ 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x76,
+ 0x69, 0x73, 0x69, 0x62, 0x6c, 0x65, 0x22, 0x3e,
+ 0x54, 0x72, 0x75, 0x65, 0x3c, 0x2f, 0x70, 0x72,
+ 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x3e, 0x3c,
+ 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79,
+ 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x6c,
+ 0x61, 0x62, 0x65, 0x6c, 0x22, 0x20, 0x74, 0x72,
+ 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x61, 0x62,
+ 0x6c, 0x65, 0x3d, 0x22, 0x79, 0x65, 0x73, 0x22,
+ 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74,
+ 0x73, 0x3d, 0x22, 0x53, 0x63, 0x61, 0x6e, 0x20,
+ 0x6d, 0x65, 0x6e, 0x75, 0x20, 0x69, 0x74, 0x65,
+ 0x6d, 0x20, 0x74, 0x6f, 0x20, 0x73, 0x63, 0x61,
+ 0x6e, 0x20, 0x61, 0x20, 0x73, 0x69, 0x6e, 0x67,
+ 0x6c, 0x65, 0x20, 0x70, 0x61, 0x67, 0x65, 0x20,
+ 0x66, 0x72, 0x6f, 0x6d, 0x20, 0x74, 0x68, 0x65,
+ 0x20, 0x73, 0x63, 0x61, 0x6e, 0x6e, 0x65, 0x72,
+ 0x22, 0x3e, 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65,
+ 0x20, 0x5f, 0x50, 0x61, 0x67, 0x65, 0x3c, 0x2f,
+ 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79,
+ 0x3e, 0x3c, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72,
+ 0x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
+ 0x70, 0x61, 0x67, 0x65, 0x73, 0x20, 0x66, 0x72,
+ 0x6f, 0x6d, 0x20, 0x61, 0x20, 0x64, 0x6f, 0x63,
+ 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x20, 0x66, 0x65,
+ 0x65, 0x64, 0x65, 0x72, 0x22, 0x3e, 0x41, 0x6c,
+ 0x6c, 0x20, 0x50, 0x61, 0x67, 0x65, 0x73, 0x20,
+ 0x46, 0x72, 0x6f, 0x6d, 0x20, 0x5f, 0x46, 0x65,
+ 0x65, 0x64, 0x65, 0x72, 0x3c, 0x2f, 0x70, 0x72,
+ 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x3e, 0x3c,
+ 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79,
+ 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x75,
+ 0x73, 0x65, 0x5f, 0x75, 0x6e, 0x64, 0x65, 0x72,
+ 0x6c, 0x69, 0x6e, 0x65, 0x22, 0x3e, 0x54, 0x72,
+ 0x75, 0x65, 0x3c, 0x2f, 0x70, 0x72, 0x6f, 0x70,
+ 0x65, 0x72, 0x74, 0x79, 0x3e, 0x3c, 0x61, 0x63,
+ 0x63, 0x65, 0x6c, 0x65, 0x72, 0x61, 0x74, 0x6f,
+ 0x72, 0x20, 0x6b, 0x65, 0x79, 0x3d, 0x22, 0x66,
+ 0x22, 0x20, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c,
+ 0x3d, 0x22, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61,
+ 0x74, 0x65, 0x22, 0x20, 0x6d, 0x6f, 0x64, 0x69,
+ 0x66, 0x69, 0x65, 0x72, 0x73, 0x3d, 0x22, 0x47,
+ 0x44, 0x4b, 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x52,
+ 0x4f, 0x4c, 0x5f, 0x4d, 0x41, 0x53, 0x4b, 0x22,
+ 0x2f, 0x3e, 0x3c, 0x73, 0x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72,
+ 0x74, 0x79, 0x3e, 0x3c, 0x70, 0x72, 0x6f, 0x70,
+ 0x65, 0x72, 0x74, 0x79, 0x20, 0x6e, 0x61, 0x6d,
+ 0x65, 0x3d, 0x22, 0x73, 0x65, 0x6e, 0x73, 0x69,
+ 0x74, 0x69, 0x76, 0x65, 0x22, 0x3e, 0x46, 0x61,
+ 0x6c, 0x73, 0x65, 0x3c, 0x2f, 0x70, 0x72, 0x6f,
+ 0x70, 0x65, 0x72, 0x74, 0x79, 0x3e, 0x3c, 0x70,
+ 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x20,
+ 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x6c, 0x61,
+ 0x62, 0x65, 0x6c, 0x22, 0x20, 0x74, 0x72, 0x61,
+ 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x61, 0x62, 0x6c,
+ 0x65, 0x3d, 0x22, 0x79, 0x65, 0x73, 0x22, 0x20,
+ 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73,
+ 0x3d, 0x22, 0x4d, 0x65, 0x6e, 0x75, 0x20, 0x65,
+ 0x6e, 0x74, 0x72, 0x79, 0x20, 0x74, 0x6f, 0x20,
+ 0x73, 0x74, 0x6f, 0x70, 0x20, 0x63, 0x75, 0x72,
+ 0x72, 0x65, 0x6e, 0x74, 0x20, 0x73, 0x63, 0x61,
+ 0x6e, 0x22, 0x3e, 0x5f, 0x53, 0x74, 0x6f, 0x70,
+ 0x20, 0x53, 0x63, 0x61, 0x6e, 0x3c, 0x2f, 0x70,
+ 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x3e,
+ 0x3c, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74,
+ 0x79, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x22,
+ 0x75, 0x73, 0x65, 0x5f, 0x75, 0x6e, 0x64, 0x65,
+ 0x72, 0x6c, 0x69, 0x6e,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, 0x72, 0x6f, 0x70, 0x65,
+ 0x72, 0x74, 0x79, 0x20, 0x6e, 0x61, 0x6d, 0x65,
+ 0x3d, 0x22, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x22,
+ 0x20, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61,
+ 0x74, 0x61, 0x62, 0x6c, 0x65, 0x3d, 0x22, 0x79,
+ 0x65, 0x73, 0x22, 0x3e, 0x54, 0x65, 0x78, 0x74,
+ 0x3c, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72,
+ 0x74, 0x79, 0x3e, 0x3c, 0x70, 0x72, 0x6f, 0x70,
+ 0x65, 0x72, 0x74, 0x79, 0x20, 0x6e, 0x61, 0x6d,
+ 0x65, 0x3d, 0x22, 0x75, 0x73, 0x65, 0x5f, 0x75,
+ 0x6e, 0x64, 0x65, 0x72, 0x6c, 0x69, 0x6e, 0x65,
+ 0x22, 0x3e, 0x54, 0x72, 0x75, 0x65, 0x3c, 0x2f,
+ 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79,
+ 0x3e, 0x3c, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72,
+ 0x74, 0x79, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d,
+ 0x22, 0x64, 0x72, 0x61, 0x77, 0x5f, 0x61, 0x73,
+ 0x5f, 0x72, 0x61, 0x64, 0x69, 0x6f, 0x22, 0x3e,
+ 0x54, 0x72, 0x75, 0x65, 0x3c, 0x2f, 0x70, 0x72,
+ 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x3e, 0x3c,
+ 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x20, 0x6e,
+ 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x74, 0x6f, 0x67,
+ 0x67, 0x6c, 0x65, 0x64, 0x22, 0x20, 0x68, 0x61,
+ 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x3d, 0x22, 0x74,
+ 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x22, 0x79, 0x65, 0x73, 0x22,
+ 0x3e, 0x50, 0x68, 0x6f, 0x74, 0x6f, 0x3c, 0x2f,
+ 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79,
+ 0x3e, 0x3c, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72,
+ 0x74, 0x79, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d,
+ 0x22, 0x75, 0x73, 0x65, 0x5f, 0x75, 0x6e, 0x64,
+ 0x65, 0x72, 0x6c, 0x69, 0x6e, 0x65, 0x22, 0x3e,
+ 0x54, 0x72, 0x75, 0x65, 0x3c, 0x2f, 0x70, 0x72,
+ 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x3e, 0x3c,
+ 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79,
+ 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x61,
+ 0x63, 0x74, 0x69, 0x76, 0x65, 0x22, 0x3e, 0x54,
+ 0x72, 0x75, 0x65, 0x3c, 0x2f, 0x70, 0x72, 0x6f,
+ 0x70, 0x65, 0x72, 0x74, 0x79, 0x3e, 0x3c, 0x70,
+ 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x20,
+ 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x64, 0x72,
+ 0x61, 0x77, 0x5f, 0x61, 0x73, 0x5f, 0x72, 0x61,
+ 0x64, 0x69, 0x6f, 0x22, 0x3e, 0x54, 0x72, 0x75,
+ 0x65, 0x3c, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x65,
+ 0x72, 0x74, 0x79, 0x3e, 0x3c, 0x70, 0x72, 0x6f,
+ 0x70, 0x65, 0x72, 0x74, 0x79, 0x20, 0x6e, 0x61,
+ 0x6d, 0x65, 0x3d, 0x22, 0x67, 0x72, 0x6f, 0x75,
+ 0x70, 0x22, 0x3e, 0x74, 0x65, 0x78, 0x74, 0x5f,
+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x65, 0x5f, 0x6d, 0x65, 0x6e, 0x75, 0x69,
+ 0x74, 0x65, 0x6d, 0x22, 0x3e, 0x3c, 0x70, 0x72,
+ 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x20, 0x6e,
+ 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x6c, 0x61, 0x62,
+ 0x65, 0x6c, 0x22, 0x3e, 0x67, 0x74, 0x6b, 0x2d,
+ 0x73, 0x61, 0x76, 0x65, 0x3c, 0x2f, 0x70, 0x72,
+ 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x3e, 0x3c,
+ 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79,
+ 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x76,
+ 0x69, 0x73, 0x69, 0x62, 0x6c, 0x65, 0x22, 0x3e,
+ 0x54, 0x72, 0x75, 0x65, 0x3c, 0x2f, 0x70, 0x72,
+ 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x3e, 0x3c,
+ 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79,
+ 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x73,
+ 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65,
+ 0x22, 0x3e, 0x46, 0x61, 0x6c, 0x73, 0x65, 0x3c,
+ 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74,
+ 0x79, 0x3e, 0x3c, 0x70, 0x72, 0x6f, 0x70, 0x65,
+ 0x72, 0x74, 0x79, 0x20, 0x6e, 0x61, 0x6d, 0x65,
+ 0x3d, 0x22, 0x75, 0x73, 0x65, 0x5f, 0x75, 0x6e,
+ 0x64, 0x65, 0x72, 0x6c, 0x69, 0x6e, 0x65, 0x22,
+ 0x3e, 0x54, 0x72, 0x75, 0x65, 0x3c, 0x2f, 0x70,
+ 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74,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0x73, 0x69, 0x74,
+ 0x69, 0x76, 0x65, 0x22, 0x3e, 0x46, 0x61, 0x6c,
+ 0x73, 0x65, 0x3c, 0x2f, 0x70, 0x72, 0x6f, 0x70,
+ 0x65, 0x72, 0x74, 0x79, 0x3e, 0x3c, 0x70, 0x72,
+ 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x20, 0x6e,
+ 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x75, 0x73, 0x65,
+ 0x5f, 0x75, 0x6e, 0x64, 0x65, 0x72, 0x6c, 0x69,
+ 0x6e, 0x65, 0x22, 0x3e, 0x54, 0x72, 0x75, 0x65,
+ 0x3c, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72,
+ 0x74, 0x79, 0x3e, 0x3c, 0x70, 0x72, 0x6f, 0x70,
+ 0x65, 0x72, 0x74, 0x79, 0x20, 0x6e, 0x61, 0x6d,
+ 0x65, 0x3d, 0x22, 0x75, 0x73, 0x65, 0x5f, 0x73,
+ 0x74, 0x6f, 0x63, 0x6b, 0x22, 0x3e, 0x54, 0x72,
+ 0x75, 0x65, 0x3c, 0x2f, 0x70, 0x72, 0x6f, 0x70,
+ 0x65, 0x72, 0x74, 0x79, 0x3e, 0x3c, 0x61, 0x63,
+ 0x63, 0x65, 0x6c, 0x65, 0x72, 0x61, 0x74, 0x6f,
+ 0x72, 0x20, 0x6b, 0x65, 0x79, 0x3d, 0x22, 0x73,
+ 0x22, 0x20, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c,
+ 0x3d, 0x22, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61,
+ 0x74, 0x65, 0x22, 0x20, 0x6d, 0x6f, 0x64, 0x69,
+ 0x66, 0x69, 0x65, 0x72, 0x73, 0x3d, 0x22, 0x47,
+ 0x44, 0x4b, 0x5f, 0x53, 0x48, 0x49, 0x46, 0x54,
+ 0x5f, 0x4d, 0x41, 0x53, 0x4b, 0x20, 0x7c, 0x20,
+ 0x47, 0x44, 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c, 0x64, 0x3e,
+ 0x3c, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x3e, 0x3c,
+ 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x20, 0x63,
+ 0x6c, 0x61, 0x73, 0x73, 0x3d, 0x22, 0x47, 0x74,
+ 0x6b, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x4d, 0x65,
+ 0x6e, 0x75, 0x49, 0x74, 0x65, 0x6d, 0x22, 0x20,
+ 0x69, 0x64, 0x3d, 0x22, 0x70, 0x72, 0x65, 0x66,
+ 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x5f,
+ 0x6d, 0x65, 0x6e, 0x75, 0x69, 0x74, 0x65, 0x6d,
+ 0x22, 0x3e, 0x3c, 0x70, 0x72, 0x6f, 0x70, 0x65,
+ 0x72, 0x74, 0x79, 0x20, 0x6e, 0x61, 0x6d, 0x65,
+ 0x3d, 0x22, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x22,
+ 0x3e, 0x67, 0x74, 0x6b, 0x2d, 0x70, 0x72, 0x65,
+ 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73,
+ 0x3c, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72,
+ 0x74, 0x79, 0x3e, 0x3c, 0x70, 0x72, 0x6f, 0x70,
+ 0x65, 0x72, 0x74, 0x79, 0x20, 0x6e, 0x61, 0x6d,
+ 0x65, 0x3d, 0x22, 0x76, 0x69, 0x73, 0x69, 0x62,
+ 0x6c, 0x65, 0x22, 0x3e, 0x54, 0x72, 0x75, 0x65,
+ 0x3c, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72,
+ 0x74, 0x79, 0x3e, 0x3c, 0x70, 0x72, 0x6f, 0x70,
+ 0x65, 0x72, 0x74, 0x79, 0x20, 0x6e, 0x61, 0x6d,
+ 0x65, 0x3d, 0x22, 0x75, 0x73, 0x65, 0x5f, 0x75,
+ 0x6e, 0x64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0x75, 0x69, 0x74, 0x3c, 0x2f, 0x70, 0x72,
+ 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x3e, 0x3c,
+ 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79,
+ 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x76,
+ 0x69, 0x73, 0x69, 0x62, 0x6c, 0x65, 0x22, 0x3e,
+ 0x54, 0x72, 0x75, 0x65, 0x3c, 0x2f, 0x70, 0x72,
+ 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x3e, 0x3c,
+ 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79,
+ 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x75,
+ 0x73, 0x65, 0x5f, 0x75, 0x6e, 0x64, 0x65, 0x72,
+ 0x6c, 0x69, 0x6e, 0x65, 0x22, 0x3e, 0x54, 0x72,
+ 0x75, 0x65, 0x3c, 0x2f, 0x70, 0x72, 0x6f, 0x70,
+ 0x65, 0x72, 0x74, 0x79, 0x3e, 0x3c, 0x70, 0x72,
+ 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x20, 0x6e,
+ 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x75, 0x73, 0x65,
+ 0x5f, 0x73, 0x74, 0x6f, 0x63, 0x6b, 0x22, 0x3e,
+ 0x54, 0x72, 0x75, 0x65, 0x3c, 0x2f, 0x70, 0x72,
+ 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x3e, 0x3c,
+ 0x61, 0x63, 0x63, 0x65, 0x6c, 0x65, 0x72, 0x61,
+ 0x74, 0x6f, 0x72, 0x20, 0x6b, 0x65, 0x79, 0x3d,
+ 0x22, 0x71, 0x22, 0x20, 0x73, 0x69, 0x67, 0x6e,
+ 0x61, 0x6c, 0x3d, 0x22, 0x61, 0x63, 0x74, 0x69,
+ 0x76, 0x61, 0x74, 0x65, 0x22, 0x20, 0x6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x61, 0x67, 0x65, 0x20,
+ 0x6d, 0x65, 0x6e, 0x75, 0x20, 0x28, 0x63, 0x6f,
+ 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73, 0x20, 0x61,
+ 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x66, 0x6f,
+ 0x72, 0x20, 0x65, 0x61, 0x63, 0x68, 0x20, 0x70,
+ 0x61, 0x67, 0x65, 0x2c, 0x20, 0x65, 0x2e, 0x67,
+ 0x2e, 0x20, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65,
+ 0x2c, 0x20, 0x63, 0x72, 0x6f, 0x70, 0x29, 0x22,
+ 0x3e, 0x5f, 0x50, 0x61, 0x67, 0x65, 0x3c, 0x2f,
+ 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79,
+ 0x3e, 0x3c, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72,
+ 0x74, 0x79, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d,
+ 0x22, 0x75, 0x73, 0x65, 0x5f, 0x75, 0x6e, 0x64,
+ 0x65, 0x72, 0x6c, 0x69, 0x6e, 0x65, 0x22, 0x3e,
+ 0x54, 0x72, 0x75, 0x65, 0x3c, 0x2f, 0x70, 0x72,
+ 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x3e, 0x3c,
+ 0x63, 0x68, 0x69, 0x6c, 0x64, 0x20, 0x74, 0x79,
+ 0x70, 0x65, 0x3d, 0x22, 0x73, 0x75, 0x62, 0x6d,
+ 0x65, 0x6e, 0x75, 0x22, 0x3e, 0x3c, 0x6f, 0x62,
+ 0x6a, 0x65, 0x63, 0x74, 0x20, 0x63, 0x6c, 0x61,
+ 0x73, 0x73, 0x3d, 0x22, 0x47, 0x74, 0x6b, 0x4d,
+ 0x65, 0x6e, 0x75, 0x22, 0x20, 0x69, 0x64, 0x3d,
+ 0x22, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x6d, 0x65,
+ 0x6e, 0x75, 0x22, 0x3e, 0x3c, 0x70, 0x72, 0x6f,
+ 0x70, 0x65, 0x72, 0x74, 0x79, 0x20, 0x6e, 0x61,
+ 0x6d, 0x65, 0x3d, 0x22, 0x76, 0x69, 0x73, 0x69,
+ 0x62, 0x6c, 0x65, 0x22, 0x3e, 0x54, 0x72, 0x75,
+ 0x65, 0x3c, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x65,
+ 0x72, 0x74, 0x79, 0x3e, 0x3c, 0x63, 0x68, 0x69,
+ 0x6c, 0x64, 0x3e, 0x3c, 0x6f, 0x62, 0x6a, 0x65,
+ 0x63, 0x74, 0x20, 0x63, 0x6c, 0x61, 0x73, 0x73,
+ 0x3d, 0x22, 0x47, 0x74, 0x6b, 0x4d, 0x65, 0x6e,
+ 0x75, 0x49, 0x74, 0x65, 0x6d, 0x22, 0x20, 0x69,
+ 0x64, 0x3d, 0x22, 0x72, 0x6f, 0x74, 0x61, 0x74,
+ 0x65, 0x5f, 0x6c, 0x65, 0x66, 0x74, 0x5f, 0x6d,
+ 0x65, 0x6e, 0x75, 0x69, 0x74, 0x65, 0x6d, 0x22,
+ 0x3e, 0x3c, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72,
+ 0x74, 0x79, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d,
+ 0x22, 0x76, 0x69, 0x73, 0x69, 0x62, 0x6c, 0x65,
+ 0x22, 0x3e, 0x54, 0x72, 0x75, 0x65, 0x3c, 0x2f,
+ 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79,
+ 0x3e, 0x3c, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72,
+ 0x74, 0x79, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d,
+ 0x22, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x22, 0x20,
+ 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74,
+ 0x61, 0x62, 0x6c, 0x65, 0x3d, 0x22, 0x79, 0x65,
+ 0x73, 0x22, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x65,
+ 0x6e, 0x74, 0x73, 0x3d, 0x22, 0x4d, 0x65, 0x6e,
+ 0x75, 0x20, 0x69, 0x74, 0x65, 0x6d, 0x20, 0x74,
+ 0x6f, 0x20, 0x72, 0x6f, 0x74, 0x61, 0x74, 0x65,
+ 0x20, 0x70, 0x61, 0x67, 0x65, 0x20, 0x74, 0x6f,
+ 0x20, 0x6c, 0x65, 0x66, 0x74, 0x20, 0x28, 0x61,
+ 0x6e, 0x74, 0x69, 0x2d, 0x63, 0x6c, 0x6f, 0x63,
+ 0x6b, 0x77, 0x69, 0x73, 0x65, 0x29, 0x22, 0x3e,
+ 0x52, 0x6f, 0x74, 0x61, 0x74, 0x65, 0x20, 0x5f,
+ 0x4c, 0x65, 0x66, 0x74, 0x3c, 0x2f, 0x70, 0x72,
+ 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x3e, 0x3c,
+ 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79,
+ 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x75,
+ 0x73, 0x65, 0x5f, 0x75, 0x6e, 0x64, 0x65, 0x72,
+ 0x6c, 0x69, 0x6e, 0x65, 0x22, 0x3e, 0x54, 0x72,
+ 0x75, 0x65, 0x3c, 0x2f, 0x70, 0x72, 0x6f, 0x70,
+ 0x65, 0x72, 0x74, 0x79, 0x3e, 0x3c, 0x61, 0x63,
+ 0x63, 0x65, 0x6c, 0x65, 0x72, 0x61, 0x74, 0x6f,
+ 0x72, 0x20, 0x6b, 0x65, 0x79, 0x3d, 0x22, 0x62,
+ 0x72, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x6c, 0x65,
+ 0x66, 0x74, 0x22, 0x20, 0x73, 0x69, 0x67, 0x6e,
+ 0x61, 0x6c, 0x3d, 0x22, 0x61, 0x63, 0x74, 0x69,
+ 0x76, 0x61, 0x74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0x70, 0x72,
+ 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x3e, 0x3c,
+ 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79,
+ 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x6c,
+ 0x61, 0x62, 0x65, 0x6c, 0x22, 0x20, 0x74, 0x72,
+ 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x61, 0x62,
+ 0x6c, 0x65, 0x3d, 0x22, 0x79, 0x65, 0x73, 0x22,
+ 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74,
+ 0x73, 0x3d, 0x22, 0x4d, 0x65, 0x6e, 0x75, 0x20,
+ 0x69, 0x74, 0x65, 0x6d, 0x20, 0x74, 0x6f, 0x20,
+ 0x72, 0x6f, 0x74, 0x61, 0x74, 0x65, 0x20, 0x70,
+ 0x61, 0x67, 0x65, 0x20, 0x74, 0x6f, 0x20, 0x72,
+ 0x69, 0x67, 0x68, 0x74, 0x20, 0x28, 0x63, 0x6c,
+ 0x6f, 0x63, 0x6b, 0x77, 0x69, 0x73, 0x65, 0x29,
+ 0x22, 0x3e, 0x52, 0x6f, 0x74, 0x61, 0x74, 0x65,
+ 0x20, 0x5f, 0x52, 0x69, 0x67, 0x68, 0x74, 0x3c,
+ 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74,
+ 0x79, 0x3e, 0x3c, 0x70, 0x72, 0x6f, 0x70, 0x65,
+ 0x72, 0x74, 0x79, 0x20, 0x6e, 0x61, 0x6d, 0x65,
+ 0x3d, 0x22, 0x75, 0x73, 0x65, 0x5f, 0x75, 0x6e,
+ 0x64, 0x65, 0x72, 0x6c, 0x69, 0x6e, 0x65, 0x22,
+ 0x3e, 0x54, 0x72, 0x75, 0x65, 0x3c, 0x2f, 0x70,
+ 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x3e,
+ 0x3c, 0x61, 0x63, 0x63, 0x65, 0x6c, 0x65, 0x72,
+ 0x61, 0x74, 0x6f, 0x72, 0x20, 0x6b, 0x65, 0x79,
+ 0x3d, 0x22, 0x62, 0x72, 0x61, 0x63, 0x6b, 0x65,
+ 0x74, 0x72, 0x69, 0x67, 0x68, 0x74, 0x22, 0x20,
+ 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x3d, 0x22,
+ 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65,
+ 0x22, 0x2f, 0x3e, 0x3c, 0x73, 0x69, 0x67, 0x6e,
+ 0x61, 0x6c, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d,
+ 0x22, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74,
+ 0x65, 0x22, 0x20, 0x68, 0x61, 0x6e, 0x64, 0x6c,
+ 0x65, 0x72, 0x3d, 0x22, 0x72, 0x6f, 0x74, 0x61,
+ 0x74, 0x65, 0x5f, 0x72, 0x69, 0x67, 0x68, 0x74,
+ 0x5f, 0x62, 0x75, 0x74, 0x74, 0x6f, 0x6e, 0x5f,
+ 0x63, 0x6c, 0x69, 0x63, 0x6b, 0x65, 0x64, 0x5f,
+ 0x63, 0x62, 0x22, 0x2f, 0x3e, 0x3c, 0x2f, 0x6f,
+ 0x62, 0x6a, 0x65, 0x63, 0x74, 0x3e, 0x3c, 0x2f,
+ 0x63, 0x68, 0x69, 0x6c, 0x64, 0x3e, 0x3c, 0x63,
+ 0x68, 0x69, 0x6c, 0x64, 0x3e, 0x3c, 0x6f, 0x62,
+ 0x6a, 0x65, 0x63, 0x74, 0x20, 0x63, 0x6c, 0x61,
+ 0x73, 0x73, 0x3d, 0x22, 0x47, 0x74, 0x6b, 0x4d,
+ 0x65, 0x6e, 0x75, 0x49, 0x74, 0x65, 0x6d, 0x22,
+ 0x20, 0x69, 0x64, 0x3d, 0x22, 0x63, 0x72, 0x6f,
+ 0x70, 0x5f, 0x6d, 0x65, 0x6e, 0x75, 0x69, 0x74,
+ 0x65, 0x6d, 0x22, 0x3e, 0x3c, 0x70, 0x72, 0x6f,
+ 0x70, 0x65, 0x72, 0x74, 0x79, 0x20, 0x6e, 0x61,
+ 0x6d, 0x65, 0x3d, 0x22, 0x76, 0x69, 0x73, 0x69,
+ 0x62, 0x6c, 0x65, 0x22, 0x3e, 0x54, 0x72, 0x75,
+ 0x65, 0x3c, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x65,
+ 0x72, 0x74, 0x79, 0x3e, 0x3c, 0x70, 0x72, 0x6f,
+ 0x70, 0x65, 0x72, 0x74, 0x79, 0x20, 0x6e, 0x61,
+ 0x6d, 0x65, 0x3d, 0x22, 0x6c, 0x61, 0x62, 0x65,
+ 0x6c, 0x22, 0x20, 0x74, 0x72, 0x61, 0x6e, 0x73,
+ 0x6c, 0x61, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x3d,
+ 0x22, 0x79, 0x65, 0x73, 0x22, 0x20, 0x63, 0x6f,
+ 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x3d, 0x22,
+ 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x20, 0x66, 0x6f,
+ 0x72, 0x20, 0x70, 0x61, 0x67, 0x65, 0x20, 0x63,
+ 0x72, 0x6f, 0x70, 0x20, 0x73, 0x75, 0x62, 0x6d,
+ 0x65, 0x6e, 0x75, 0x22, 0x3e, 0x5f, 0x43, 0x72,
+ 0x6f, 0x70, 0x3c, 0x2f, 0x70, 0x72, 0x6f, 0x70,
+ 0x65, 0x72, 0x74, 0x79, 0x3e, 0x3c, 0x70, 0x72,
+ 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x20, 0x6e,
+ 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x75, 0x73, 0x65,
+ 0x5f, 0x75, 0x6e, 0x64, 0x65, 0x72, 0x6c, 0x69,
+ 0x6e, 0x65, 0x22, 0x3e, 0x54, 0x72, 0x75, 0x65,
+ 0x3c, 0x2f, 0x70, 0x72,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6b, 0x52,
+ 0x61, 0x64, 0x69, 0x6f, 0x4d, 0x65, 0x6e, 0x75,
+ 0x49, 0x74, 0x65, 0x6d, 0x22, 0x20, 0x69, 0x64,
+ 0x3d, 0x22, 0x61, 0x34, 0x5f, 0x6d, 0x65, 0x6e,
+ 0x75, 0x69, 0x74, 0x65, 0x6d, 0x22, 0x3e, 0x3c,
+ 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79,
+ 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x76,
+ 0x69, 0x73, 0x69, 0x62, 0x6c, 0x65, 0x22, 0x3e,
+ 0x54, 0x72, 0x75, 0x65, 0x3c, 0x2f, 0x70, 0x72,
+ 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x3e, 0x3c,
+ 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79,
+ 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x6c,
+ 0x61, 0x62, 0x65, 0x6c, 0x22, 0x20, 0x74, 0x72,
+ 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x61, 0x62,
+ 0x6c, 0x65, 0x3d, 0x22, 0x79, 0x65, 0x73, 0x22,
+ 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74,
+ 0x73, 0x3d, 0x22, 0x52, 0x61, 0x64, 0x69, 0x6f,
+ 0x20, 0x62, 0x75, 0x74, 0x74, 0x6f, 0x6e, 0x20,
+ 0x66, 0x6f, 0x72, 0x20, 0x63, 0x72, 0x6f, 0x70,
+ 0x70, 0x69, 0x6e, 0x67, 0x20, 0x70, 0x61, 0x67,
+ 0x65, 0x20, 0x74, 0x6f, 0x20, 0x41, 0x34, 0x20,
+ 0x73, 0x69, 0x7a, 0x65, 0x22, 0x3e, 0x41, 0x5f,
+ 0x34, 0x3c, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x65,
+ 0x72, 0x74, 0x79, 0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 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x3d,
+ 0x22, 0x52, 0x61, 0x64, 0x69, 0x6f, 0x20, 0x62,
+ 0x75, 0x74, 0x74, 0x6f, 0x6e, 0x20, 0x66, 0x6f,
+ 0x72, 0x20, 0x63, 0x72, 0x6f, 0x70, 0x70, 0x69,
+ 0x6e, 0x67, 0x20, 0x70, 0x61, 0x67, 0x65, 0x20,
+ 0x74, 0x6f, 0x20, 0x41, 0x35, 0x20, 0x73, 0x69,
+ 0x7a, 0x65, 0x22, 0x3e, 0x41, 0x5f, 0x35, 0x3c,
+ 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74,
+ 0x79, 0x3e, 0x3c, 0x70, 0x72, 0x6f, 0x70, 0x65,
+ 0x72, 0x74, 0x79, 0x20, 0x6e, 0x61, 0x6d, 0x65,
+ 0x3d, 0x22, 0x75, 0x73, 0x65, 0x5f, 0x75, 0x6e,
+ 0x64, 0x65, 0x72, 0x6c, 0x69, 0x6e, 0x65, 0x22,
+ 0x3e, 0x54, 0x72, 0x75, 0x65, 0x3c, 0x2f, 0x70,
+ 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x3e,
+ 0x3c, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74,
+ 0x79, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x22,
+ 0x64, 0x72, 0x61, 0x77, 0x5f, 0x61, 0x73, 0x5f,
+ 0x72, 0x61, 0x64, 0x69, 0x6f, 0x22, 0x3e, 0x54,
+ 0x72, 0x75, 0x65, 0x3c, 0x2f, 0x70, 0x72, 0x6f,
+ 0x70, 0x65, 0x72, 0x74, 0x79, 0x3e, 0x3c, 0x70,
+ 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x20,
+ 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x67, 0x72,
+ 0x6f, 0x75, 0x70, 0x22, 0x3e, 0x6e, 0x6f,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 0x65, 0x22, 0x3e, 0x54, 0x72, 0x75, 0x65,
+ 0x3c, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72,
+ 0x74, 0x79, 0x3e, 0x3c, 0x70, 0x72, 0x6f, 0x70,
+ 0x65, 0x72, 0x74, 0x79, 0x20, 0x6e, 0x61, 0x6d,
+ 0x65, 0x3d, 0x22, 0x6c, 0x61, 0x62, 0x65, 0x6c,
+ 0x22, 0x20, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c,
+ 0x61, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x3d, 0x22,
+ 0x79, 0x65, 0x73, 0x22, 0x20, 0x63, 0x6f, 0x6d,
+ 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x3d, 0x22, 0x52,
+ 0x61, 0x64, 0x69, 0x6f, 0x20, 0x62, 0x75, 0x74,
+ 0x74, 0x6f, 0x6e, 0x20, 0x66, 0x6f, 0x72, 0x20,
+ 0x63, 0x72, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67,
+ 0x20, 0x70, 0x61, 0x67, 0x65, 0x20, 0x74, 0x6f,
+ 0x20, 0x41, 0x36, 0x20, 0x73, 0x69, 0x7a, 0x65,
+ 0x22, 0x3e, 0x41, 0x5f, 0x36, 0x3c, 0x2f, 0x70,
+ 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x3e,
+ 0x3c, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74,
+ 0x79, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x22,
+ 0x75, 0x73, 0x65, 0x5f, 0x75, 0x6e, 0x64, 0x65,
+ 0x72, 0x6c, 0x69, 0x6e, 0x65, 0x22, 0x3e, 0x54,
+ 0x72, 0x75, 0x65, 0x3c, 0x2f, 0x70, 0x72, 0x6f,
+ 0x70, 0x65, 0x72, 0x74, 0x79, 0x3e, 0x3c, 0x70,
+ 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0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0x6c, 0x61, 0x73, 0x73, 0x3d, 0x22, 0x47, 0x74,
+ 0x6b, 0x52, 0x61, 0x64, 0x69, 0x6f, 0x4d, 0x65,
+ 0x6e, 0x75, 0x49, 0x74, 0x65, 0x6d, 0x22, 0x20,
+ 0x69, 0x64, 0x3d, 0x22, 0x6c, 0x65, 0x74, 0x74,
+ 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x6e, 0x75, 0x69,
+ 0x74, 0x65, 0x6d, 0x22, 0x3e, 0x3c, 0x70, 0x72,
+ 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x20, 0x6e,
+ 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x76, 0x69, 0x73,
+ 0x69, 0x62, 0x6c, 0x65, 0x22, 0x3e, 0x54, 0x72,
+ 0x75, 0x65, 0x3c, 0x2f, 0x70, 0x72, 0x6f, 0x70,
+ 0x65, 0x72, 0x74, 0x79, 0x3e, 0x3c, 0x70, 0x72,
+ 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x20, 0x6e,
+ 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x6c, 0x61, 0x62,
+ 0x65, 0x6c, 0x22, 0x20, 0x74, 0x72, 0x61, 0x6e,
+ 0x73, 0x6c, 0x61, 0x74, 0x61, 0x62, 0x6c, 0x65,
+ 0x3d, 0x22, 0x79, 0x65, 0x73, 0x22, 0x20, 0x63,
+ 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x3d,
+ 0x22, 0x52, 0x61, 0x64, 0x69, 0x6f, 0x20, 0x62,
+ 0x75, 0x74, 0x74, 0x6f, 0x6e, 0x20, 0x66, 0x6f,
+ 0x72, 0x20, 0x63, 0x72, 0x6f, 0x70, 0x70, 0x69,
+ 0x6e, 0x67, 0x20, 0x70, 0x61, 0x67, 0x65, 0x20,
+ 0x74, 0x6f, 0x20, 0x55, 0x53, 0x20, 0x6c, 0x65,
+ 0x74, 0x74, 0x65, 0x72, 0x20, 0x73,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0x22, 0x6c, 0x61, 0x62,
+ 0x65, 0x6c, 0x22, 0x20, 0x74, 0x72, 0x61, 0x6e,
+ 0x73, 0x6c, 0x61, 0x74, 0x61, 0x62, 0x6c, 0x65,
+ 0x3d, 0x22, 0x79, 0x65, 0x73, 0x22, 0x20, 0x63,
+ 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x3d,
+ 0x22, 0x52, 0x61, 0x64, 0x69, 0x6f, 0x20, 0x62,
+ 0x75, 0x74, 0x74, 0x6f, 0x6e, 0x20, 0x66, 0x6f,
+ 0x72, 0x20, 0x63, 0x72, 0x6f, 0x70, 0x70, 0x69,
+ 0x6e, 0x67, 0x20, 0x74, 0x6f, 0x20, 0x70, 0x61,
+ 0x67, 0x65, 0x20, 0x74, 0x6f, 0x20, 0x55, 0x53,
+ 0x20, 0x6c, 0x65, 0x67, 0x61, 0x6c, 0x20, 0x73,
+ 0x69, 0x7a, 0x65, 0x22, 0x3e, 0x4c, 0x65, 0x5f,
+ 0x67, 0x61, 0x6c, 0x3c, 0x2f, 0x70, 0x72, 0x6f,
+ 0x70, 0x65, 0x72, 0x74, 0x79, 0x3e, 0x3c, 0x70,
+ 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x20,
+ 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x75, 0x73,
+ 0x65, 0x5f, 0x75, 0x6e, 0x64, 0x65, 0x72, 0x6c,
+ 0x69, 0x6e, 0x65, 0x22, 0x3e, 0x54, 0x72, 0x75,
+ 0x65, 0x3c, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x65,
+ 0x72, 0x74, 0x79, 0x3e, 0x3c, 0x70, 0x72, 0x6f,
+ 0x70, 0x65, 0x72, 0x74, 0x79, 0x20, 0x6e, 0x61,
+ 0x6d, 0x65, 0x3d, 0x22, 0x64, 0x72, 0x61, 0x77,
+ 0x5f, 0x61, 0x73, 0x5f, 0x72, 0x61, 0x64, 0x69,
+ 0x6f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, 0x49, 0x74, 0x65, 0x6d, 0x22,
+ 0x20, 0x69, 0x64, 0x3d, 0x22, 0x34, 0x78, 0x36,
+ 0x5f, 0x6d, 0x65, 0x6e, 0x75, 0x69, 0x74, 0x65,
+ 0x6d, 0x22, 0x3e, 0x3c, 0x70, 0x72, 0x6f, 0x70,
+ 0x65, 0x72, 0x74, 0x79, 0x20, 0x6e, 0x61, 0x6d,
+ 0x65, 0x3d, 0x22, 0x76, 0x69, 0x73, 0x69, 0x62,
+ 0x6c, 0x65, 0x22, 0x3e, 0x54, 0x72, 0x75, 0x65,
+ 0x3c, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72,
+ 0x74, 0x79, 0x3e, 0x3c, 0x70, 0x72, 0x6f, 0x70,
+ 0x65, 0x72, 0x74, 0x79, 0x20, 0x6e, 0x61, 0x6d,
+ 0x65, 0x3d, 0x22, 0x6c, 0x61, 0x62, 0x65, 0x6c,
+ 0x22, 0x20, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c,
+ 0x61, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x3d, 0x22,
+ 0x79, 0x65, 0x73, 0x22, 0x20, 0x63, 0x6f, 0x6d,
+ 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x3d, 0x22, 0x52,
+ 0x61, 0x64, 0x69, 0x6f, 0x20, 0x62, 0x75, 0x74,
+ 0x74, 0x6f, 0x6e, 0x20, 0x66, 0x6f, 0x72, 0x20,
+ 0x63, 0x72, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67,
+ 0x20, 0x70, 0x61, 0x67, 0x65, 0x20, 0x74, 0x6f,
+ 0x20, 0x34, 0x78, 0x36, 0x20, 0x69, 0x6e, 0x63,
+ 0x68, 0x22, 0x3e, 0x34, 0x26, 0x23, 0x78, 0x44,
+ 0x37, 0x3b, 0x36, 0x3c, 0x2f, 0x70, 0x72, 0x6f,
+ 0x70, 0x65, 0x72, 0x74, 0x79, 0x3e, 0x3c, 0x70,
+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 0x74,
+ 0x61, 0x62, 0x6c, 0x65, 0x3d, 0x22, 0x79, 0x65,
+ 0x73, 0x22, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x65,
+ 0x6e, 0x74, 0x73, 0x3d, 0x22, 0x52, 0x61, 0x64,
+ 0x69, 0x6f, 0x20, 0x62, 0x75, 0x74, 0x74, 0x6f,
+ 0x6e, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x63, 0x72,
+ 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x20, 0x74,
+ 0x6f, 0x20, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d,
+ 0x20, 0x70, 0x61, 0x67, 0x65, 0x20, 0x73, 0x69,
+ 0x7a, 0x65, 0x22, 0x3e, 0x5f, 0x43, 0x75, 0x73,
+ 0x74, 0x6f, 0x6d, 0x3c, 0x2f, 0x70, 0x72, 0x6f,
+ 0x70, 0x65, 0x72, 0x74, 0x79, 0x3e, 0x3c, 0x70,
+ 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x20,
+ 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x75, 0x73,
+ 0x65, 0x5f, 0x75, 0x6e, 0x64, 0x65, 0x72, 0x6c,
+ 0x69, 0x6e, 0x65, 0x22, 0x3e, 0x54, 0x72, 0x75,
+ 0x65, 0x3c, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x65,
+ 0x72, 0x74, 0x79, 0x3e, 0x3c, 0x70, 0x72, 0x6f,
+ 0x70, 0x65, 0x72, 0x74, 0x79, 0x20, 0x6e, 0x61,
+ 0x6d, 0x65, 0x3d, 0x22, 0x64, 0x72, 0x61, 0x77,
+ 0x5f, 0x61, 0x73, 0x5f, 0x72, 0x61, 0x64, 0x69,
+ 0x6f, 0x22, 0x3e, 0x54, 0x72, 0x75, 0x65, 0x3c,
+ 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74,
+ 0x79, 0x3e, 0x3c, 0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, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74,
+ 0x79, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x22,
+ 0x73, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76,
+ 0x65, 0x22, 0x3e, 0x46, 0x61, 0x6c, 0x73, 0x65,
+ 0x3c, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72,
+ 0x74, 0x79, 0x3e, 0x3c, 0x70, 0x72, 0x6f, 0x70,
+ 0x65, 0x72, 0x74, 0x79, 0x20, 0x6e, 0x61, 0x6d,
+ 0x65, 0x3d, 0x22, 0x6c, 0x61, 0x62, 0x65, 0x6c,
+ 0x22, 0x20, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c,
+ 0x61, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x3d, 0x22,
+ 0x79, 0x65, 0x73, 0x22, 0x20, 0x63, 0x6f, 0x6d,
+ 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x3d, 0x22, 0x4d,
+ 0x65, 0x6e, 0x75, 0x20, 0x69, 0x74, 0x65, 0x6d,
+ 0x20, 0x74, 0x6f, 0x20, 0x72, 0x6f, 0x74, 0x61,
+ 0x74, 0x65, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63,
+ 0x72, 0x6f, 0x70, 0x20, 0x61, 0x72, 0x65, 0x61,
+ 0x22, 0x3e, 0x5f, 0x52, 0x6f, 0x74, 0x61, 0x74,
+ 0x65, 0x20, 0x43, 0x72, 0x6f, 0x70, 0x3c, 0x2f,
+ 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79,
+ 0x3e, 0x3c, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72,
+ 0x74, 0x79, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d,
+ 0x22, 0x75, 0x73, 0x65, 0x5f, 0x75, 0x6e, 0x64,
+ 0x65, 0x72, 0x6c, 0x69, 0x6e, 0x65, 0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x65, 0x5f, 0x6d, 0x6f, 0x76, 0x65, 0x5f, 0x6c,
+ 0x65, 0x66, 0x74, 0x5f, 0x6d, 0x65, 0x6e, 0x75,
+ 0x69, 0x74, 0x65, 0x6d, 0x22, 0x3e, 0x3c, 0x70,
+ 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x20,
+ 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x76, 0x69,
+ 0x73, 0x69, 0x62, 0x6c, 0x65, 0x22, 0x3e, 0x54,
+ 0x72, 0x75, 0x65, 0x3c, 0x2f, 0x70, 0x72, 0x6f,
+ 0x70, 0x65, 0x72, 0x74, 0x79, 0x3e, 0x3c, 0x70,
+ 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x20,
+ 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x6c, 0x61,
+ 0x62, 0x65, 0x6c, 0x22, 0x20, 0x74, 0x72, 0x61,
+ 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x61, 0x62, 0x6c,
+ 0x65, 0x3d, 0x22, 0x79, 0x65, 0x73, 0x22, 0x20,
+ 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73,
+ 0x3d, 0x22, 0x4d, 0x65, 0x6e, 0x75, 0x20, 0x69,
+ 0x74, 0x65, 0x6d, 0x20, 0x74, 0x6f, 0x20, 0x6d,
+ 0x6f, 0x76, 0x65, 0x20, 0x74, 0x68, 0x65, 0x20,
+ 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x65, 0x64,
+ 0x20, 0x70, 0x61, 0x67, 0x65, 0x20, 0x74, 0x6f,
+ 0x20, 0x74, 0x68, 0x65, 0x20, 0x6c, 0x65, 0x66,
+ 0x74, 0x22, 0x3e, 0x4d, 0x6f, 0x76, 0x65, 0x20,
+ 0x4c, 0x65, 0x66, 0x74, 0x3c, 0x2f, 0x70, 0x72,
+ 0x6f, 0x70, 0x65, 0x72, 0x74, 0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76, 0x65, 0x5f, 0x72, 0x69, 0x67, 0x68, 0x74,
+ 0x5f, 0x6d, 0x65, 0x6e, 0x75, 0x69, 0x74, 0x65,
+ 0x6d, 0x22, 0x3e, 0x3c, 0x70, 0x72, 0x6f, 0x70,
+ 0x65, 0x72, 0x74, 0x79, 0x20, 0x6e, 0x61, 0x6d,
+ 0x65, 0x3d, 0x22, 0x76, 0x69, 0x73, 0x69, 0x62,
+ 0x6c, 0x65, 0x22, 0x3e, 0x54, 0x72, 0x75, 0x65,
+ 0x3c, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72,
+ 0x74, 0x79, 0x3e, 0x3c, 0x70, 0x72, 0x6f, 0x70,
+ 0x65, 0x72, 0x74, 0x79, 0x20, 0x6e, 0x61, 0x6d,
+ 0x65, 0x3d, 0x22, 0x6c, 0x61, 0x62, 0x65, 0x6c,
+ 0x22, 0x20, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c,
+ 0x61, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x3d, 0x22,
+ 0x79, 0x65, 0x73, 0x22, 0x20, 0x63, 0x6f, 0x6d,
+ 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x3d, 0x22, 0x4d,
+ 0x65, 0x6e, 0x75, 0x20, 0x69, 0x74, 0x65, 0x6d,
+ 0x20, 0x74, 0x6f, 0x20, 0x6d, 0x6f, 0x76, 0x65,
+ 0x20, 0x74, 0x68, 0x65, 0x20, 0x73, 0x65, 0x6c,
+ 0x65, 0x63, 0x74, 0x65, 0x64, 0x20, 0x70, 0x61,
+ 0x67, 0x65, 0x20, 0x74, 0x6f, 0x20, 0x74, 0x68,
+ 0x65, 0x20, 0x72, 0x69, 0x67, 0x68, 0x74, 0x22,
+ 0x3e, 0x4d, 0x6f, 0x76, 0x65, 0x20, 0x52, 0x69,
+ 0x67, 0x68, 0x74, 0x3c, 0x2f, 0x70, 0x72, 0x6f,
+ 0x70, 0x65, 0x72, 0x74, 0x79, 0x3e, 0x3c, 0x70,
+ 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x20,
+ 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x75, 0x73,
+ 0x65, 0x5f, 0x75, 0x6e, 0x64, 0x65, 0x72, 0x6c,
+ 0x69, 0x6e, 0x65, 0x22, 0x3e, 0x54, 0x72, 0x75,
+ 0x65, 0x3c, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x65,
+ 0x72, 0x74, 0x79, 0x3e, 0x3c, 0x61, 0x63, 0x63,
+ 0x65, 0x6c, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72,
+ 0x20, 0x6b, 0x65, 0x79, 0x3d, 0x22, 0x67, 0x72,
+ 0x65, 0x61, 0x74, 0x65, 0x72, 0x22, 0x20, 0x73,
+ 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x3d, 0x22, 0x61,
+ 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x22,
+ 0x2f, 0x3e, 0x3c, 0x73, 0x69, 0x67, 0x6e, 0x61,
+ 0x6c, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x22,
+ 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65,
+ 0x22, 0x20, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65,
+ 0x72, 0x3d, 0x22, 0x70, 0x61, 0x67, 0x65, 0x5f,
+ 0x6d, 0x6f, 0x76, 0x65, 0x5f, 0x72, 0x69, 0x67,
+ 0x68, 0x74, 0x5f, 0x6d, 0x65, 0x6e, 0x75, 0x69,
+ 0x74, 0x65, 0x6d, 0x5f, 0x61, 0x63, 0x74, 0x69,
+ 0x76, 0x61, 0x74, 0x65, 0x5f, 0x63, 0x62, 0x22,
+ 0x2f, 0x3e, 0x3c, 0x2f, 0x6f, 0x62, 0x6a, 0x65,
+ 0x63, 0x74, 0x3e, 0x3c, 0x2f, 0x63, 0x68, 0x69,
+ 0x6c, 0x64, 0x3e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65, 0x74, 0x65,
+ 0x3c, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72,
+ 0x74, 0x79, 0x3e, 0x3c, 0x70, 0x72, 0x6f, 0x70,
+ 0x65, 0x72, 0x74, 0x79, 0x20, 0x6e, 0x61, 0x6d,
+ 0x65, 0x3d, 0x22, 0x76, 0x69, 0x73, 0x69, 0x62,
+ 0x6c, 0x65, 0x22, 0x3e, 0x54, 0x72, 0x75, 0x65,
+ 0x3c, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72,
+ 0x74, 0x79, 0x3e, 0x3c, 0x70, 0x72, 0x6f, 0x70,
+ 0x65, 0x72, 0x74, 0x79, 0x20, 0x6e, 0x61, 0x6d,
+ 0x65, 0x3d, 0x22, 0x75, 0x73, 0x65, 0x5f, 0x75,
+ 0x6e, 0x64, 0x65, 0x72, 0x6c, 0x69, 0x6e, 0x65,
+ 0x22, 0x3e, 0x54, 0x72, 0x75, 0x65, 0x3c, 0x2f,
+ 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79,
+ 0x3e, 0x3c, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72,
+ 0x74, 0x79, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d,
+ 0x22, 0x75, 0x73, 0x65, 0x5f, 0x73, 0x74, 0x6f,
+ 0x63, 0x6b, 0x22, 0x3e, 0x54, 0x72, 0x75, 0x65,
+ 0x3c, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72,
+ 0x74, 0x79, 0x3e, 0x3c, 0x61, 0x63, 0x63, 0x65,
+ 0x6c, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x20,
+ 0x6b, 0x65, 0x79, 0x3d, 0x22, 0x44, 0x65, 0x6c,
+ 0x65, 0x74, 0x65, 0x22, 0x20, 0x73, 0x69, 0x67,
+ 0x6e, 0x61, 0x6c, 0x3d, 0x22, 0x61, 0x63, 0x74,
+ 0x69, 0x76, 0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+ 0x61, 0x67, 0x65, 0x22, 0x3e, 0x68, 0x65, 0x6c,
+ 0x70, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x3c,
+ 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74,
+ 0x79, 0x3e, 0x3c, 0x70, 0x72, 0x6f, 0x70, 0x65,
+ 0x72, 0x74, 0x79, 0x20, 0x6e, 0x61, 0x6d, 0x65,
+ 0x3d, 0x22, 0x75, 0x73, 0x65, 0x5f, 0x73, 0x74,
+ 0x6f, 0x63, 0x6b, 0x22, 0x3e, 0x46, 0x61, 0x6c,
+ 0x73, 0x65, 0x3c, 0x2f, 0x70, 0x72, 0x6f, 0x70,
+ 0x65, 0x72, 0x74, 0x79, 0x3e, 0x3c, 0x61, 0x63,
+ 0x63, 0x65, 0x6c, 0x65, 0x72, 0x61, 0x74, 0x6f,
+ 0x72, 0x20, 0x6b, 0x65, 0x79, 0x3d, 0x22, 0x46,
+ 0x31, 0x22, 0x20, 0x73, 0x69, 0x67, 0x6e, 0x61,
+ 0x6c, 0x3d, 0x22, 0x61, 0x63, 0x74, 0x69, 0x76,
+ 0x61, 0x74, 0x65, 0x22, 0x2f, 0x3e, 0x3c, 0x73,
+ 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x20, 0x6e, 0x61,
+ 0x6d, 0x65, 0x3d, 0x22, 0x61, 0x63, 0x74, 0x69,
+ 0x76, 0x61, 0x74, 0x65, 0x22, 0x20, 0x68, 0x61,
+ 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x3d, 0x22, 0x68,
+ 0x65, 0x6c, 0x70, 0x5f, 0x63, 0x6f, 0x6e, 0x74,
+ 0x65, 0x6e, 0x74, 0x73, 0x5f, 0x6d, 0x65, 0x6e,
+ 0x75, 0x69, 0x74, 0x65, 0x6d, 0x5f, 0x61, 0x63,
+ 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x63,
+ 0x62, 0x22, 0x2f, 0x3e, 0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20,
+ 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x74, 0x6f,
+ 0x6f, 0x6c, 0x74, 0x69, 0x70, 0x5f, 0x74, 0x65,
+ 0x78, 0x74, 0x22, 0x20, 0x74, 0x72, 0x61, 0x6e,
+ 0x73, 0x6c, 0x61, 0x74, 0x61, 0x62, 0x6c, 0x65,
+ 0x3d, 0x22, 0x79, 0x65, 0x73, 0x22, 0x20, 0x63,
+ 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x3d,
+ 0x22, 0x54, 0x6f, 0x6f, 0x6c, 0x74, 0x69, 0x70,
+ 0x20, 0x66, 0x6f, 0x72, 0x20, 0x6e, 0x65, 0x77,
+ 0x20, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e,
+ 0x74, 0x20, 0x62, 0x75, 0x74, 0x74, 0x6f, 0x6e,
+ 0x22, 0x3e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x20,
+ 0x61, 0x20, 0x6e, 0x65, 0x77, 0x20, 0x64, 0x6f,
+ 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x3c, 0x2f,
+ 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79,
+ 0x3e, 0x3c, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72,
+ 0x74, 0x79, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d,
+ 0x22, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x22, 0x20,
+ 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74,
+ 0x61, 0x62, 0x6c, 0x65, 0x3d, 0x22, 0x79, 0x65,
+ 0x73, 0x22, 0x3e, 0x4e, 0x65, 0x77, 0x3c, 0x2f,
+ 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79,
+ 0x3e, 0x3c, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72,
+ 0x74, 0x79, 0x20, 0x6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3e, 0x3c, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72,
+ 0x74, 0x79, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d,
+ 0x22, 0x74, 0x6f, 0x6f, 0x6c, 0x74, 0x69, 0x70,
+ 0x5f, 0x74, 0x65, 0x78, 0x74, 0x22, 0x20, 0x74,
+ 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x61,
+ 0x62, 0x6c, 0x65, 0x3d, 0x22, 0x79, 0x65, 0x73,
+ 0x22, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e,
+ 0x74, 0x73, 0x3d, 0x22, 0x54, 0x6f, 0x6f, 0x6c,
+ 0x74, 0x69, 0x70, 0x20, 0x66, 0x6f, 0x72, 0x20,
+ 0x73, 0x63, 0x61, 0x6e, 0x20, 0x74, 0x6f, 0x6f,
+ 0x6c, 0x62, 0x61, 0x72, 0x20, 0x62, 0x75, 0x74,
+ 0x74, 0x6f, 0x6e, 0x22, 0x3e, 0x53, 0x63, 0x61,
+ 0x6e, 0x20, 0x61, 0x20, 0x73, 0x69, 0x6e, 0x67,
+ 0x6c, 0x65, 0x20, 0x70, 0x61, 0x67, 0x65, 0x20,
+ 0x66, 0x72, 0x6f, 0x6d, 0x20, 0x74, 0x68, 0x65,
+ 0x20, 0x73, 0x63, 0x61, 0x6e, 0x6e, 0x65, 0x72,
+ 0x3c, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72,
+ 0x74, 0x79, 0x3e, 0x3c, 0x70, 0x72, 0x6f, 0x70,
+ 0x65, 0x72, 0x74, 0x79, 0x20, 0x6e, 0x61, 0x6d,
+ 0x65, 0x3d, 0x22, 0x69, 0x73, 0x5f, 0x69, 0x6d,
+ 0x70, 0x6f, 0x72, 0x74, 0x61, 0x6e, 0x74, 0x22,
+ 0x3e, 0x54, 0x72, 0x75, 0x65, 0x3c, 0x2f, 0x70,
+ 0x72, 0x6f, 0x70, 0x65, 0x72, 0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, 0x69, 0x70,
+ 0x5f, 0x74, 0x65, 0x78, 0x74, 0x22, 0x20, 0x74,
+ 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x61,
+ 0x62, 0x6c, 0x65, 0x3d, 0x22, 0x79, 0x65, 0x73,
+ 0x22, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e,
+ 0x74, 0x73, 0x3d, 0x22, 0x54, 0x6f, 0x6f, 0x6c,
+ 0x74, 0x69, 0x70, 0x20, 0x66, 0x6f, 0x72, 0x20,
+ 0x73, 0x61, 0x76, 0x65, 0x20, 0x74, 0x6f, 0x6f,
+ 0x6c, 0x62, 0x61, 0x72, 0x20, 0x62, 0x75, 0x74,
+ 0x74, 0x6f, 0x6e, 0x22, 0x3e, 0x53, 0x61, 0x76,
+ 0x65, 0x20, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65,
+ 0x6e, 0x74, 0x20, 0x74, 0x6f, 0x20, 0x61, 0x20,
+ 0x66, 0x69, 0x6c, 0x65, 0x3c, 0x2f, 0x70, 0x72,
+ 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x3e, 0x3c,
+ 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79,
+ 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x69,
+ 0x73, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74,
+ 0x61, 0x6e, 0x74, 0x22, 0x3e, 0x54, 0x72, 0x75,
+ 0x65, 0x3c, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x65,
+ 0x72, 0x74, 0x79, 0x3e, 0x3c, 0x70, 0x72, 0x6f,
+ 0x70, 0x65, 0x72, 0x74, 0x79, 0x20, 0x6e, 0x61,
+ 0x6d, 0x65, 0x3d, 0x22, 0x6c, 0x61, 0x62, 0x65,
+ 0x6c, 0x22, 0x20, 0x74, 0x72, 0x61, 0x6e, 0x73,
+ 0x6c, 0x61, 0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 0x3c, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74,
+ 0x79, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x22,
+ 0x76, 0x69, 0x73, 0x69, 0x62, 0x6c, 0x65, 0x22,
+ 0x3e, 0x54, 0x72, 0x75, 0x65, 0x3c, 0x2f, 0x70,
+ 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x3e,
+ 0x3c, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74,
+ 0x79, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x22,
+ 0x73, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76,
+ 0x65, 0x22, 0x3e, 0x46, 0x61, 0x6c, 0x73, 0x65,
+ 0x3c, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72,
+ 0x74, 0x79, 0x3e, 0x3c, 0x70, 0x72, 0x6f, 0x70,
+ 0x65, 0x72, 0x74, 0x79, 0x20, 0x6e, 0x61, 0x6d,
+ 0x65, 0x3d, 0x22, 0x74, 0x6f, 0x6f, 0x6c, 0x74,
+ 0x69, 0x70, 0x5f, 0x74, 0x65, 0x78, 0x74, 0x22,
+ 0x20, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61,
+ 0x74, 0x61, 0x62, 0x6c, 0x65, 0x3d, 0x22, 0x79,
+ 0x65, 0x73, 0x22, 0x20, 0x63, 0x6f, 0x6d, 0x6d,
+ 0x65, 0x6e, 0x74, 0x73, 0x3d, 0x22, 0x54, 0x6f,
+ 0x6f, 0x6c, 0x74, 0x69, 0x70, 0x20, 0x66, 0x6f,
+ 0x72, 0x20, 0x73, 0x74, 0x6f, 0x70, 0x20, 0x62,
+ 0x75, 0x74, 0x74, 0x6f, 0x6e, 0x22, 0x3e, 0x53,
+ 0x74, 0x6f, 0x70, 0x20, 0x74, 0x68, 0x65, 0x20,
+ 0x63, 0x75, 0x72, 0x72, 0x65, 0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x3d, 0x22, 0x79, 0x65, 0x73, 0x22, 0x20,
+ 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73,
+ 0x3d, 0x22, 0x54, 0x6f, 0x6f, 0x6c, 0x74, 0x69,
+ 0x70, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x72, 0x6f,
+ 0x74, 0x61, 0x74, 0x65, 0x20, 0x6c, 0x65, 0x66,
+ 0x74, 0x20, 0x28, 0x63, 0x6f, 0x75, 0x6e, 0x74,
+ 0x65, 0x72, 0x2d, 0x63, 0x6c, 0x6f, 0x63, 0x6b,
+ 0x77, 0x69, 0x73, 0x65, 0x29, 0x20, 0x62, 0x75,
+ 0x74, 0x74, 0x6f, 0x6e, 0x22, 0x3e, 0x52, 0x6f,
+ 0x74, 0x61, 0x74, 0x65, 0x20, 0x74, 0x68, 0x65,
+ 0x20, 0x70, 0x61, 0x67, 0x65, 0x20, 0x74, 0x6f,
+ 0x20, 0x74, 0x68, 0x65, 0x20, 0x6c, 0x65, 0x66,
+ 0x74, 0x20, 0x28, 0x63, 0x6f, 0x75, 0x6e, 0x74,
+ 0x65, 0x72, 0x2d, 0x63, 0x6c, 0x6f, 0x63, 0x6b,
+ 0x77, 0x69, 0x73, 0x65, 0x29, 0x3c, 0x2f, 0x70,
+ 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x3e,
+ 0x3c, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74,
+ 0x79, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x22,
+ 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x22, 0x20, 0x74,
+ 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x61,
+ 0x62, 0x6c, 0x65, 0x3d, 0x22, 0x79, 0x65, 0x73,
+ 0x22, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e,
+ 0x74, 0x73, 0x3d, 0x22, 0x4c, 0x61, 0x62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20, 0x72, 0x69, 0x67, 0x68, 0x74, 0x20, 0x28,
+ 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x77, 0x69, 0x73,
+ 0x65, 0x29, 0x20, 0x62, 0x75, 0x74, 0x74, 0x6f,
+ 0x6e, 0x22, 0x3e, 0x52, 0x6f, 0x74, 0x61, 0x74,
+ 0x65, 0x20, 0x74, 0x68, 0x65, 0x20, 0x70, 0x61,
+ 0x67, 0x65, 0x20, 0x74, 0x6f, 0x20, 0x74, 0x68,
+ 0x65, 0x20, 0x72, 0x69, 0x67, 0x68, 0x74, 0x20,
+ 0x28, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x77, 0x69,
+ 0x73, 0x65, 0x29, 0x3c, 0x2f, 0x70, 0x72, 0x6f,
+ 0x70, 0x65, 0x72, 0x74, 0x79, 0x3e, 0x3c, 0x70,
+ 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x20,
+ 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x6c, 0x61,
+ 0x62, 0x65, 0x6c, 0x22, 0x20, 0x74, 0x72, 0x61,
+ 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x61, 0x62, 0x6c,
+ 0x65, 0x3d, 0x22, 0x79, 0x65, 0x73, 0x22, 0x20,
+ 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73,
+ 0x3d, 0x22, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x20,
+ 0x6f, 0x6e, 0x20, 0x72, 0x6f, 0x74, 0x61, 0x74,
+ 0x65, 0x20, 0x70, 0x61, 0x67, 0x65, 0x20, 0x72,
+ 0x69, 0x67, 0x68, 0x74, 0x20, 0x28, 0x63, 0x6c,
+ 0x6f, 0x63, 0x6b, 0x77, 0x69, 0x73, 0x65, 0x29,
+ 0x20, 0x69, 0x74, 0x65, 0x6d, 0x22, 0x3e, 0x52,
+ 0x6f, 0x74, 0x61, 0x74, 0x65, 0x20, 0x52, 0x69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0x6c, 0x62, 0x75,
+ 0x74, 0x74, 0x6f, 0x6e, 0x22, 0x3e, 0x3c, 0x70,
+ 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x20,
+ 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x76, 0x69,
+ 0x73, 0x69, 0x62, 0x6c, 0x65, 0x22, 0x3e, 0x54,
+ 0x72, 0x75, 0x65, 0x3c, 0x2f, 0x70, 0x72, 0x6f,
+ 0x70, 0x65, 0x72, 0x74, 0x79, 0x3e, 0x3c, 0x70,
+ 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x20,
+ 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x74, 0x6f,
+ 0x6f, 0x6c, 0x74, 0x69, 0x70, 0x5f, 0x74, 0x65,
+ 0x78, 0x74, 0x22, 0x20, 0x74, 0x72, 0x61, 0x6e,
+ 0x73, 0x6c, 0x61, 0x74, 0x61, 0x62, 0x6c, 0x65,
+ 0x3d, 0x22, 0x79, 0x65, 0x73, 0x22, 0x3e, 0x43,
+ 0x72, 0x6f, 0x70, 0x20, 0x74, 0x68, 0x65, 0x20,
+ 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x65, 0x64,
+ 0x20, 0x70, 0x61, 0x67, 0x65, 0x3c, 0x2f, 0x70,
+ 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x3e,
+ 0x3c, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74,
+ 0x79, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x22,
+ 0x69, 0x73, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72,
+ 0x74, 0x61, 0x6e, 0x74, 0x22, 0x3e, 0x54, 0x72,
+ 0x75, 0x65, 0x3c, 0x2f, 0x70, 0x72, 0x6f, 0x70,
+ 0x65, 0x72, 0x74, 0x79, 0x3e, 0x3c, 0x70, 0x72,
+ 0x6f, 0x70,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x63, 0x6c, 0x61,
+ 0x73, 0x73, 0x3d, 0x22, 0x47, 0x74, 0x6b, 0x56,
+ 0x42, 0x6f, 0x78, 0x22, 0x20, 0x69, 0x64, 0x3d,
+ 0x22, 0x76, 0x62, 0x6f, 0x78, 0x35, 0x22, 0x3e,
+ 0x3c, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74,
+ 0x79, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x22,
+ 0x76, 0x69, 0x73, 0x69, 0x62, 0x6c, 0x65, 0x22,
+ 0x3e, 0x54, 0x72, 0x75, 0x65, 0x3c, 0x2f, 0x70,
+ 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x3e,
+ 0x3c, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74,
+ 0x79, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x22,
+ 0x62, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x77,
+ 0x69, 0x64, 0x74, 0x68, 0x22, 0x3e, 0x35, 0x3c,
+ 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74,
+ 0x79, 0x3e, 0x3c, 0x70, 0x72, 0x6f, 0x70, 0x65,
+ 0x72, 0x74, 0x79, 0x20, 0x6e, 0x61, 0x6d, 0x65,
+ 0x3d, 0x22, 0x73, 0x70, 0x61, 0x63, 0x69, 0x6e,
+ 0x67, 0x22, 0x3e, 0x31, 0x32, 0x3c, 0x2f, 0x70,
+ 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x3e,
+ 0x3c, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x3e, 0x3c,
+ 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x20, 0x63,
+ 0x6c, 0x61, 0x73, 0x73, 0x3d, 0x22, 0x47, 0x74,
+ 0x6b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x22, 0x20,
+ 0x69, 0x64, 0x3d, 0x22, 0x61, 0x75, 0x74, 0x68,
+ 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x5f, 0x6c, 0x61,
+ 0x62, 0x65, 0x6c, 0x22, 0x3e, 0x3c, 0x70, 0x72,
+ 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x20, 0x6e,
+ 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x76, 0x69, 0x73,
+ 0x69, 0x62, 0x6c, 0x65, 0x22, 0x3e, 0x54, 0x72,
+ 0x75, 0x65, 0x3c, 0x2f, 0x70, 0x72, 0x6f, 0x70,
+ 0x65, 0x72, 0x74, 0x79, 0x3e, 0x3c, 0x70, 0x72,
+ 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x20, 0x6e,
+ 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x6c, 0x61, 0x62,
+ 0x65, 0x6c, 0x22, 0x20, 0x63, 0x6f, 0x6d, 0x6d,
+ 0x65, 0x6e, 0x74, 0x73, 0x3d, 0x22, 0x54, 0x68,
+ 0x69, 0x73, 0x20, 0x6c, 0x61, 0x62, 0x65, 0x6c,
+ 0x20, 0x69, 0x73, 0x20, 0x73, 0x65, 0x74, 0x20,
+ 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x61,
+ 0x6c, 0x6c, 0x79, 0x20, 0x61, 0x6e, 0x64, 0x20,
+ 0x69, 0x73, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x74,
+ 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65,
+ 0x64, 0x22, 0x3e, 0x54, 0x6f, 0x20, 0x63, 0x6f,
+ 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x20, 0x74, 0x6f,
+ 0x20, 0x3f, 0x20, 0x79, 0x6f, 0x75, 0x20, 0x6e,
+ 0x65, 0x65, 0x64, 0x20, 0x74, 0x6f, 0x20, 0x61,
+ 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a,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 0x61, 0x73, 0x73, 0x77,
+ 0x6f, 0x72, 0x64, 0x5f, 0x65, 0x6e, 0x74, 0x72,
+ 0x79, 0x22, 0x3e, 0x3c, 0x70, 0x72, 0x6f, 0x70,
+ 0x65, 0x72, 0x74, 0x79, 0x20, 0x6e, 0x61, 0x6d,
+ 0x65, 0x3d, 0x22, 0x76, 0x69, 0x73, 0x69, 0x62,
+ 0x6c, 0x65, 0x22, 0x3e, 0x54, 0x72, 0x75, 0x65,
+ 0x3c, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72,
+ 0x74, 0x79, 0x3e, 0x3c, 0x70, 0x72, 0x6f, 0x70,
+ 0x65, 0x72, 0x74, 0x79, 0x20, 0x6e, 0x61, 0x6d,
+ 0x65, 0x3d, 0x22, 0x63, 0x61, 0x6e, 0x5f, 0x66,
+ 0x6f, 0x63, 0x75, 0x73, 0x22, 0x3e, 0x54, 0x72,
+ 0x75, 0x65, 0x3c, 0x2f, 0x70, 0x72, 0x6f, 0x70,
+ 0x65, 0x72, 0x74, 0x79, 0x3e, 0x3c, 0x70, 0x72,
+ 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x20, 0x6e,
+ 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x76, 0x69, 0x73,
+ 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x22,
+ 0x3e, 0x46, 0x61, 0x6c, 0x73, 0x65, 0x3c, 0x2f,
+ 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79,
+ 0x3e, 0x3c, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72,
+ 0x74, 0x79, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d,
+ 0x22, 0x69, 0x6e, 0x76, 0x69, 0x73, 0x69, 0x62,
+ 0x6c, 0x65, 0x5f, 0x63, 0x68, 0x61, 0x72, 0x22,
+ 0x3e, 0x26, 0x23, 0x78, 0x32, 0x35, 0x43, 0x46,
+ 0x3b,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, 0x73, 0x3d,
+ 0x22, 0x47, 0x74, 0x6b, 0x4c, 0x61, 0x62, 0x65,
+ 0x6c, 0x22, 0x20, 0x69, 0x64, 0x3d, 0x22, 0x70,
+ 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x5f,
+ 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x22, 0x3e, 0x3c,
+ 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79,
+ 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x76,
+ 0x69, 0x73, 0x69, 0x62, 0x6c, 0x65, 0x22, 0x3e,
+ 0x54, 0x72, 0x75, 0x65, 0x3c, 0x2f, 0x70, 0x72,
+ 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x3e, 0x3c,
+ 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79,
+ 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x6c,
+ 0x61, 0x62, 0x65, 0x6c, 0x22, 0x20, 0x74, 0x72,
+ 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x61, 0x62,
+ 0x6c, 0x65, 0x3d, 0x22, 0x79, 0x65, 0x73, 0x22,
+ 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74,
+ 0x73, 0x3d, 0x22, 0x4c, 0x61, 0x62, 0x65, 0x6c,
+ 0x20, 0x62, 0x65, 0x73, 0x69, 0x64, 0x65, 0x20,
+ 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64,
+ 0x20, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x22, 0x3e,
+ 0x5f, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72,
+ 0x64, 0x3a, 0x3c, 0x2f, 0x70, 0x72, 0x6f, 0x70,
+ 0x65, 0x72, 0x74, 0x79, 0x3e, 0x3c, 0x70, 0x72,
+ 0x6f, 0x70, 0x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0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x20,
+ 0x63, 0x6c, 0x61, 0x73, 0x73, 0x3d, 0x22, 0x47,
+ 0x74, 0x6b, 0x48, 0x42, 0x75, 0x74, 0x74, 0x6f,
+ 0x6e, 0x42, 0x6f, 0x78, 0x22, 0x20, 0x69, 0x64,
+ 0x3d, 0x22, 0x64, 0x69, 0x61, 0x6c, 0x6f, 0x67,
+ 0x2d, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f,
+ 0x61, 0x72, 0x65, 0x61, 0x31, 0x22, 0x3e, 0x3c,
+ 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79,
+ 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x76,
+ 0x69, 0x73, 0x69, 0x62, 0x6c, 0x65, 0x22, 0x3e,
+ 0x54, 0x72, 0x75, 0x65, 0x3c, 0x2f, 0x70, 0x72,
+ 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x3e, 0x3c,
+ 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79,
+ 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x6c,
+ 0x61, 0x79, 0x6f, 0x75, 0x74, 0x5f, 0x73, 0x74,
+ 0x79, 0x6c, 0x65, 0x22, 0x3e, 0x65, 0x6e, 0x64,
+ 0x3c, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72,
+ 0x74, 0x79, 0x3e, 0x3c, 0x63, 0x68, 0x69, 0x6c,
+ 0x64, 0x3e, 0x3c, 0x6f, 0x62, 0x6a, 0x65, 0x63,
+ 0x74, 0x20, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x3d,
+ 0x22, 0x47, 0x74, 0x6b, 0x42, 0x75, 0x74, 0x74,
+ 0x6f, 0x6e, 0x22, 0x20, 0x69, 0x64, 0x3d, 0x22,
+ 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72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0x3e, 0x3c, 0x2f, 0x6f, 0x62,
+ 0x6a, 0x65, 0x63, 0x74, 0x3e, 0x3c, 0x6f, 0x62,
+ 0x6a, 0x65, 0x63, 0x74, 0x20, 0x63, 0x6c, 0x61,
+ 0x73, 0x73, 0x3d, 0x22, 0x47, 0x74, 0x6b, 0x44,
+ 0x69, 0x61, 0x6c, 0x6f, 0x67, 0x22, 0x20, 0x69,
+ 0x64, 0x3d, 0x22, 0x70, 0x72, 0x65, 0x66, 0x65,
+ 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x5f, 0x64,
+ 0x69, 0x61, 0x6c, 0x6f, 0x67, 0x22, 0x3e, 0x3c,
+ 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79,
+ 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x62,
+ 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x77, 0x69,
+ 0x64, 0x74, 0x68, 0x22, 0x3e, 0x37, 0x3c, 0x2f,
+ 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79,
+ 0x3e, 0x3c, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72,
+ 0x74, 0x79, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d,
+ 0x22, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x22, 0x20,
+ 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74,
+ 0x61, 0x62, 0x6c, 0x65, 0x3d, 0x22, 0x79, 0x65,
+ 0x73, 0x22, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x65,
+ 0x6e, 0x74, 0x73, 0x3d, 0x22, 0x54, 0x69, 0x74,
+ 0x6c, 0x65, 0x20, 0x6f, 0x66, 0x20, 0x70, 0x72,
+ 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65,
+ 0x73, 0x20, 0x64, 0x69, 0x61, 0x6c, 0x6f, 0x67,
+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c, 0x69, 0x67, 0x6e, 0x22, 0x3e,
+ 0x30, 0x3c, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x65,
+ 0x72, 0x74, 0x79, 0x3e, 0x3c, 0x70, 0x72, 0x6f,
+ 0x70, 0x65, 0x72, 0x74, 0x79, 0x20, 0x6e, 0x61,
+ 0x6d, 0x65, 0x3d, 0x22, 0x6c, 0x61, 0x62, 0x65,
+ 0x6c, 0x22, 0x20, 0x74, 0x72, 0x61, 0x6e, 0x73,
+ 0x6c, 0x61, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x3d,
+ 0x22, 0x79, 0x65, 0x73, 0x22, 0x20, 0x63, 0x6f,
+ 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x3d, 0x22,
+ 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x20, 0x62, 0x65,
+ 0x73, 0x69, 0x64, 0x65, 0x20, 0x73, 0x63, 0x61,
+ 0x6e, 0x20, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
+ 0x20, 0x63, 0x6f, 0x6d, 0x62, 0x6f, 0x20, 0x62,
+ 0x6f, 0x78, 0x22, 0x3e, 0x53, 0x63, 0x61, 0x6e,
+ 0x20, 0x53, 0x5f, 0x6f, 0x75, 0x72, 0x63, 0x65,
+ 0x3a, 0x3c, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x65,
+ 0x72, 0x74, 0x79, 0x3e, 0x3c, 0x70, 0x72, 0x6f,
+ 0x70, 0x65, 0x72, 0x74, 0x79, 0x20, 0x6e, 0x61,
+ 0x6d, 0x65, 0x3d, 0x22, 0x75, 0x73, 0x65, 0x5f,
+ 0x75, 0x6e, 0x64, 0x65, 0x72, 0x6c, 0x69, 0x6e,
+ 0x65, 0x22, 0x3e, 0x54, 0x72, 0x75, 0x65, 0x3c,
+ 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74,
+ 0x79, 0x3e, 0x3c, 0x70, 0x72, 0x6f, 0x70, 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x74, 0x79, 0x3e, 0x3c, 0x70, 0x72,
+ 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x20, 0x6e,
+ 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x6c, 0x61, 0x62,
+ 0x65, 0x6c, 0x22, 0x20, 0x74, 0x72, 0x61, 0x6e,
+ 0x73, 0x6c, 0x61, 0x74, 0x61, 0x62, 0x6c, 0x65,
+ 0x3d, 0x22, 0x79, 0x65, 0x73, 0x22, 0x20, 0x63,
+ 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x3d,
+ 0x22, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x20, 0x62,
+ 0x65, 0x73, 0x69, 0x64, 0x65, 0x20, 0x73, 0x63,
+ 0x61, 0x6e, 0x20, 0x73, 0x6f, 0x75, 0x72, 0x63,
+ 0x65, 0x20, 0x63, 0x6f, 0x6d, 0x62, 0x6f, 0x20,
+ 0x62, 0x6f, 0x78, 0x22, 0x3e, 0x5f, 0x54, 0x65,
+ 0x78, 0x74, 0x20, 0x52, 0x65, 0x73, 0x6f, 0x6c,
+ 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x3c, 0x2f,
+ 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79,
+ 0x3e, 0x3c, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72,
+ 0x74, 0x79, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d,
+ 0x22, 0x75, 0x73, 0x65, 0x5f, 0x75, 0x6e, 0x64,
+ 0x65, 0x72, 0x6c, 0x69, 0x6e, 0x65, 0x22, 0x3e,
+ 0x54, 0x72, 0x75, 0x65, 0x3c, 0x2f, 0x70, 0x72,
+ 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x3e, 0x3c,
+ 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79,
+ 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x22,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 0x6a, 0x65, 0x63, 0x74, 0x20, 0x63, 0x6c, 0x61,
+ 0x73, 0x73, 0x3d, 0x22, 0x47, 0x74, 0x6b, 0x4c,
+ 0x61, 0x62, 0x65, 0x6c, 0x22, 0x20, 0x69, 0x64,
+ 0x3d, 0x22, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73,
+ 0x69, 0x64, 0x65, 0x5f, 0x6c, 0x61, 0x62, 0x65,
+ 0x6c, 0x22, 0x3e, 0x3c, 0x70, 0x72, 0x6f, 0x70,
+ 0x65, 0x72, 0x74, 0x79, 0x20, 0x6e, 0x61, 0x6d,
+ 0x65, 0x3d, 0x22, 0x76, 0x69, 0x73, 0x69, 0x62,
+ 0x6c, 0x65, 0x22, 0x3e, 0x54, 0x72, 0x75, 0x65,
+ 0x3c, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72,
+ 0x74, 0x79, 0x3e, 0x3c, 0x70, 0x72, 0x6f, 0x70,
+ 0x65, 0x72, 0x74, 0x79, 0x20, 0x6e, 0x61, 0x6d,
+ 0x65, 0x3d, 0x22, 0x78, 0x61, 0x6c, 0x69, 0x67,
+ 0x6e, 0x22, 0x3e, 0x30, 0x3c, 0x2f, 0x70, 0x72,
+ 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x3e, 0x3c,
+ 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79,
+ 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x6c,
+ 0x61, 0x62, 0x65, 0x6c, 0x22, 0x20, 0x74, 0x72,
+ 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x61, 0x62,
+ 0x6c, 0x65, 0x3d, 0x22, 0x79, 0x65, 0x73, 0x22,
+ 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74,
+ 0x73, 0x3d, 0x22, 0x4c, 0x61, 0x62, 0x65, 0x6c,
+ 0x20, 0x62, 0x65, 0x73, 0x69,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65, 0x72, 0x74, 0x79,
+ 0x3e, 0x3c, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72,
+ 0x74, 0x79, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d,
+ 0x22, 0x63, 0x61, 0x6e, 0x5f, 0x66, 0x6f, 0x63,
+ 0x75, 0x73, 0x22, 0x3e, 0x46, 0x61, 0x6c, 0x73,
+ 0x65, 0x3c, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x65,
+ 0x72, 0x74, 0x79, 0x3e, 0x3c, 0x70, 0x72, 0x6f,
+ 0x70, 0x65, 0x72, 0x74, 0x79, 0x20, 0x6e, 0x61,
+ 0x6d, 0x65, 0x3d, 0x22, 0x78, 0x61, 0x6c, 0x69,
+ 0x67, 0x6e, 0x22, 0x3e, 0x30, 0x3c, 0x2f, 0x70,
+ 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x3e,
+ 0x3c, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74,
+ 0x79, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x22,
+ 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x22, 0x20, 0x74,
+ 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x61,
+ 0x62, 0x6c, 0x65, 0x3d, 0x22, 0x79, 0x65, 0x73,
+ 0x22, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e,
+ 0x74, 0x73, 0x3d, 0x22, 0x4c, 0x61, 0x62, 0x65,
+ 0x6c, 0x20, 0x62, 0x65, 0x73, 0x69, 0x64, 0x65,
+ 0x20, 0x62, 0x72, 0x69, 0x67, 0x68, 0x74, 0x6e,
+ 0x65, 0x73, 0x73, 0x20, 0x73, 0x63, 0x61, 0x6c,
+ 0x65, 0x22, 0x3e, 0x42, 0x72, 0x69, 0x67, 0x68,
+ 0x74, 0x6e, 0x65, 0x73, 0x73, 0x3a, 0x3c, 0x2f,
+ 0x70, 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0x6c,
+ 0x65, 0x22, 0x20, 0x69, 0x64, 0x3d, 0x22, 0x62,
+ 0x72, 0x69, 0x67, 0x68, 0x74, 0x6e, 0x65, 0x73,
+ 0x73, 0x5f, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x22,
+ 0x3e, 0x3c, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72,
+ 0x74, 0x79, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d,
+ 0x22, 0x76, 0x69, 0x73, 0x69, 0x62, 0x6c, 0x65,
+ 0x22, 0x3e, 0x54, 0x72, 0x75, 0x65, 0x3c, 0x2f,
+ 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79,
+ 0x3e, 0x3c, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72,
+ 0x74, 0x79, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d,
+ 0x22, 0x63, 0x61, 0x6e, 0x5f, 0x66, 0x6f, 0x63,
+ 0x75, 0x73, 0x22, 0x3e, 0x54, 0x72, 0x75, 0x65,
+ 0x3c, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72,
+ 0x74, 0x79, 0x3e, 0x3c, 0x70, 0x72, 0x6f, 0x70,
+ 0x65, 0x72, 0x74, 0x79, 0x20, 0x6e, 0x61, 0x6d,
+ 0x65, 0x3d, 0x22, 0x61, 0x64, 0x6a, 0x75, 0x73,
+ 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x3e, 0x62,
+ 0x72, 0x69, 0x67, 0x68, 0x74, 0x6e, 0x65, 0x73,
+ 0x73, 0x5f, 0x61, 0x64, 0x6a, 0x75, 0x73, 0x74,
+ 0x6d, 0x65, 0x6e, 0x74, 0x3c, 0x2f, 0x70, 0x72,
+ 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x3e, 0x3c,
+ 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79,
+ 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x64,
+ 0x72, 0x61, 0x77, 0x5f, 0x76, 0x61, 0x6c, 0x75,
+ 0x65, 0x22, 0x3e, 0x46, 0x61, 0x6c, 0x73, 0x65,
+ 0x3c, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72,
+ 0x74, 0x79, 0x3e, 0x3c, 0x2f, 0x6f, 0x62, 0x6a,
+ 0x65, 0x63, 0x74, 0x3e, 0x3c, 0x70, 0x61, 0x63,
+ 0x6b, 0x69, 0x6e, 0x67, 0x3e, 0x3c, 0x70, 0x72,
+ 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x20, 0x6e,
+ 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x6c, 0x65, 0x66,
+ 0x74, 0x5f, 0x61, 0x74, 0x74, 0x61, 0x63, 0x68,
+ 0x22, 0x3e, 0x31, 0x3c, 0x2f, 0x70, 0x72, 0x6f,
+ 0x70, 0x65, 0x72, 0x74, 0x79, 0x3e, 0x3c, 0x70,
+ 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x20,
+ 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x72, 0x69,
+ 0x67, 0x68, 0x74, 0x5f, 0x61, 0x74, 0x74, 0x61,
+ 0x63, 0x68, 0x22, 0x3e, 0x32, 0x3c, 0x2f, 0x70,
+ 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x3e,
+ 0x3c, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74,
+ 0x79, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x22,
+ 0x74, 0x6f, 0x70, 0x5f, 0x61, 0x74, 0x74, 0x61,
+ 0x63, 0x68, 0x22, 0x3e, 0x35, 0x3c, 0x2f, 0x70,
+ 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x3e,
+ 0x3c, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74,
+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 0x70, 0x72, 0x6f, 0x70, 0x65,
+ 0x72, 0x74, 0x79, 0x3e, 0x3c, 0x70, 0x72, 0x6f,
+ 0x70, 0x65, 0x72, 0x74, 0x79, 0x20, 0x6e, 0x61,
+ 0x6d, 0x65, 0x3d, 0x22, 0x78, 0x61, 0x6c, 0x69,
+ 0x67, 0x6e, 0x22, 0x3e, 0x30, 0x3c, 0x2f, 0x70,
+ 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x3e,
+ 0x3c, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74,
+ 0x79, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x22,
+ 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x22, 0x20, 0x74,
+ 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x61,
+ 0x62, 0x6c, 0x65, 0x3d, 0x22, 0x79, 0x65, 0x73,
+ 0x22, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e,
+ 0x74, 0x73, 0x3d, 0x22, 0x4c, 0x61, 0x62, 0x65,
+ 0x6c, 0x20, 0x62, 0x65, 0x73, 0x69, 0x64, 0x65,
+ 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x73,
+ 0x74, 0x20, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x22,
+ 0x3e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x73,
+ 0x74, 0x3a, 0x3c, 0x2f, 0x70, 0x72, 0x6f, 0x70,
+ 0x65, 0x72, 0x74, 0x79, 0x3e, 0x3c, 0x70, 0x72,
+ 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x20, 0x6e,
+ 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x75, 0x73, 0x65,
+ 0x5f, 0x75, 0x6e, 0x64, 0x65, 0x72, 0x6c, 0x69,
+ 0x6e, 0x65, 0x22, 0x3e, 0x54, 0x72, 0x75, 0x65,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x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x20,
+ 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x6c, 0x65,
+ 0x66, 0x74, 0x5f, 0x61, 0x74, 0x74, 0x61, 0x63,
+ 0x68, 0x22, 0x3e, 0x31, 0x3c, 0x2f, 0x70, 0x72,
+ 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x3e, 0x3c,
+ 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79,
+ 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x72,
+ 0x69, 0x67, 0x68, 0x74, 0x5f, 0x61, 0x74, 0x74,
+ 0x61, 0x63, 0x68, 0x22, 0x3e, 0x32, 0x3c, 0x2f,
+ 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79,
+ 0x3e, 0x3c, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72,
+ 0x74, 0x79, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d,
+ 0x22, 0x74, 0x6f, 0x70, 0x5f, 0x61, 0x74, 0x74,
+ 0x61, 0x63, 0x68, 0x22, 0x3e, 0x36, 0x3c, 0x2f,
+ 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79,
+ 0x3e, 0x3c, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72,
+ 0x74, 0x79, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d,
+ 0x22, 0x62, 0x6f, 0x74, 0x74, 0x6f, 0x6d, 0x5f,
+ 0x61, 0x74, 0x74, 0x61, 0x63, 0x68, 0x22, 0x3e,
+ 0x37, 0x3c, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x65,
+ 0x72, 0x74, 0x79, 0x3e, 0x3c, 0x2f, 0x70, 0x61,
+ 0x63, 0x6b, 0x69, 0x6e, 0x67, 0x3e, 0x3c, 0x2f,
+ 0x63, 0x68, 0x69, 0x6c, 0x64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x79, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x22,
+ 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x22, 0x20, 0x74,
+ 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x61,
+ 0x62, 0x6c, 0x65, 0x3d, 0x22, 0x79, 0x65, 0x73,
+ 0x22, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e,
+ 0x74, 0x73, 0x3d, 0x22, 0x4c, 0x61, 0x62, 0x65,
+ 0x6c, 0x20, 0x62, 0x65, 0x73, 0x69, 0x64, 0x65,
+ 0x20, 0x71, 0x75, 0x61, 0x6c, 0x69, 0x74, 0x79,
+ 0x20, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x22, 0x3e,
+ 0x51, 0x75, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x3a,
+ 0x3c, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72,
+ 0x74, 0x79, 0x3e, 0x3c, 0x70, 0x72, 0x6f, 0x70,
+ 0x65, 0x72, 0x74, 0x79, 0x20, 0x6e, 0x61, 0x6d,
+ 0x65, 0x3d, 0x22, 0x75, 0x73, 0x65, 0x5f, 0x75,
+ 0x6e, 0x64, 0x65, 0x72, 0x6c, 0x69, 0x6e, 0x65,
+ 0x22, 0x3e, 0x54, 0x72, 0x75, 0x65, 0x3c, 0x2f,
+ 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79,
+ 0x3e, 0x3c, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72,
+ 0x74, 0x79, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d,
+ 0x22, 0x6d, 0x6e, 0x65, 0x6d, 0x6f, 0x6e, 0x69,
+ 0x63, 0x5f, 0x77, 0x69, 0x64, 0x67, 0x65, 0x74,
+ 0x22, 0x3e, 0x71, 0x75, 0x61, 0x6c, 0x69, 0x74,
+ 0x79, 0x5f, 0x73, 0x63, 0x61, 0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, 0x6f, 0x63, 0x75, 0x73, 0x22, 0x3e, 0x54,
+ 0x72, 0x75, 0x65, 0x3c, 0x2f, 0x70, 0x72, 0x6f,
+ 0x70, 0x65, 0x72, 0x74, 0x79, 0x3e, 0x3c, 0x70,
+ 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x20,
+ 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x72, 0x65,
+ 0x63, 0x65, 0x69, 0x76, 0x65, 0x73, 0x5f, 0x64,
+ 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x22, 0x3e,
+ 0x54, 0x72, 0x75, 0x65, 0x3c, 0x2f, 0x70, 0x72,
+ 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x3e, 0x3c,
+ 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79,
+ 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x75,
+ 0x73, 0x65, 0x5f, 0x73, 0x74, 0x6f, 0x63, 0x6b,
+ 0x22, 0x3e, 0x54, 0x72, 0x75, 0x65, 0x3c, 0x2f,
+ 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79,
+ 0x3e, 0x3c, 0x2f, 0x6f, 0x62, 0x6a, 0x65, 0x63,
+ 0x74, 0x3e, 0x3c, 0x70, 0x61, 0x63, 0x6b, 0x69,
+ 0x6e, 0x67, 0x3e, 0x3c, 0x70, 0x72, 0x6f, 0x70,
+ 0x65, 0x72, 0x74, 0x79, 0x20, 0x6e, 0x61, 0x6d,
+ 0x65, 0x3d, 0x22, 0x65, 0x78, 0x70, 0x61, 0x6e,
+ 0x64, 0x22, 0x3e, 0x46, 0x61, 0x6c, 0x73, 0x65,
+ 0x3c, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72,
+ 0x74, 0x79, 0x3e, 0x3c, 0x70, 0x72, 0x6f, 0x70,
+ 0x65, 0x72, 0x74, 0x79, 0x20, 0x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74, 0x79, 0x20, 0x6e,
+ 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x76, 0x69, 0x73,
+ 0x69, 0x62, 0x6c, 0x65, 0x22, 0x3e, 0x54, 0x72,
+ 0x75, 0x65, 0x3c, 0x2f, 0x70, 0x72, 0x6f, 0x70,
+ 0x65, 0x72, 0x74, 0x79, 0x3e, 0x3c, 0x70, 0x72,
+ 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x20, 0x6e,
+ 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x6c, 0x61, 0x62,
+ 0x65, 0x6c, 0x22, 0x20, 0x74, 0x72, 0x61, 0x6e,
+ 0x73, 0x6c, 0x61, 0x74, 0x61, 0x62, 0x6c, 0x65,
+ 0x3d, 0x22, 0x79, 0x65, 0x73, 0x22, 0x20, 0x63,
+ 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x3d,
+ 0x22, 0x54, 0x6f, 0x6f, 0x6c, 0x62, 0x61, 0x72,
+ 0x20, 0x73, 0x63, 0x61, 0x6e, 0x20, 0x6d, 0x65,
+ 0x6e, 0x75, 0x20, 0x69, 0x74, 0x65, 0x6d, 0x20,
+ 0x74, 0x6f, 0x20, 0x73, 0x63, 0x61, 0x6e, 0x20,
+ 0x61, 0x20, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65,
+ 0x20, 0x70, 0x61, 0x67, 0x65, 0x20, 0x66, 0x72,
+ 0x6f, 0x6d, 0x20, 0x74, 0x68, 0x65, 0x20, 0x73,
+ 0x63, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x22, 0x3e,
+ 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x20, 0x5f,
+ 0x50, 0x61, 0x67, 0x65, 0x3c, 0x2f, 0x70, 0x72,
+ 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x3e, 0x3c,
+ 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79,
+ 0x20, 0x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, 0x3e, 0x3c, 0x70, 0x72,
+ 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x20, 0x6e,
+ 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x76, 0x69, 0x73,
+ 0x69, 0x62, 0x6c, 0x65, 0x22, 0x3e, 0x54, 0x72,
+ 0x75, 0x65, 0x3c, 0x2f, 0x70, 0x72, 0x6f, 0x70,
+ 0x65, 0x72, 0x74, 0x79, 0x3e, 0x3c, 0x70, 0x72,
+ 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x20, 0x6e,
+ 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x6c, 0x61, 0x62,
+ 0x65, 0x6c, 0x22, 0x20, 0x74, 0x72, 0x61, 0x6e,
+ 0x73, 0x6c, 0x61, 0x74, 0x61, 0x62, 0x6c, 0x65,
+ 0x3d, 0x22, 0x79, 0x65, 0x73, 0x22, 0x20, 0x63,
+ 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x3d,
+ 0x22, 0x54, 0x6f, 0x6f, 0x6c, 0x62, 0x61, 0x72,
+ 0x20, 0x73, 0x63, 0x61, 0x6e, 0x20, 0x6d, 0x65,
+ 0x6e, 0x75, 0x20, 0x69, 0x74, 0x65, 0x6d, 0x20,
+ 0x74, 0x6f, 0x20, 0x73, 0x63, 0x61, 0x6e, 0x20,
+ 0x61, 0x6c, 0x6c, 0x20, 0x70, 0x61, 0x67, 0x65,
+ 0x73, 0x20, 0x66, 0x72, 0x6f, 0x6d, 0x20, 0x61,
+ 0x20, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e,
+ 0x74, 0x20, 0x66, 0x65, 0x65, 0x64, 0x65, 0x72,
+ 0x22, 0x3e, 0x41, 0x6c, 0x6c, 0x20, 0x50, 0x61,
+ 0x67, 0x65, 0x73, 0x20, 0x46, 0x72, 0x6f, 0x6d,
+ 0x20, 0x5f, 0x46, 0x65, 0x65, 0x64, 0x65, 0x72,
+ 0x3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2f,
+ 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79,
+ 0x3e, 0x3c, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72,
+ 0x74, 0x79, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d,
+ 0x22, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x22, 0x20,
+ 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74,
+ 0x61, 0x62, 0x6c, 0x65, 0x3d, 0x22, 0x79, 0x65,
+ 0x73, 0x22, 0x3e, 0x54, 0x65, 0x78, 0x74, 0x3c,
+ 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74,
+ 0x79, 0x3e, 0x3c, 0x70, 0x72, 0x6f, 0x70, 0x65,
+ 0x72, 0x74, 0x79, 0x20, 0x6e, 0x61, 0x6d, 0x65,
+ 0x3d, 0x22, 0x75, 0x73, 0x65, 0x5f, 0x75, 0x6e,
+ 0x64, 0x65, 0x72, 0x6c, 0x69, 0x6e, 0x65, 0x22,
+ 0x3e, 0x54, 0x72, 0x75, 0x65, 0x3c, 0x2f, 0x70,
+ 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x3e,
+ 0x3c, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74,
+ 0x79, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x22,
+ 0x64, 0x72, 0x61, 0x77, 0x5f, 0x61, 0x73, 0x5f,
+ 0x72, 0x61, 0x64, 0x69, 0x6f, 0x22, 0x3e, 0x54,
+ 0x72, 0x75, 0x65, 0x3c, 0x2f, 0x70, 0x72, 0x6f,
+ 0x70, 0x65, 0x72, 0x74, 0x79, 0x3e, 0x3c, 0x73,
+ 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x20, 0x6e, 0x61,
+ 0x6d, 0x65, 0x3d, 0x22, 0x74, 0x6f, 0x67, 0x67,
+ 0x6c, 0x65, 0x64, 0x22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65, 0x3d,
+ 0x22, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x22, 0x20,
+ 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74,
+ 0x61, 0x62, 0x6c, 0x65, 0x3d, 0x22, 0x79, 0x65,
+ 0x73, 0x22, 0x3e, 0x50, 0x68, 0x6f, 0x74, 0x6f,
+ 0x3c, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72,
+ 0x74, 0x79, 0x3e, 0x3c, 0x70, 0x72, 0x6f, 0x70,
+ 0x65, 0x72, 0x74, 0x79, 0x20, 0x6e, 0x61, 0x6d,
+ 0x65, 0x3d, 0x22, 0x75, 0x73, 0x65, 0x5f, 0x75,
+ 0x6e, 0x64, 0x65, 0x72, 0x6c, 0x69, 0x6e, 0x65,
+ 0x22, 0x3e, 0x54, 0x72, 0x75, 0x65, 0x3c, 0x2f,
+ 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79,
+ 0x3e, 0x3c, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72,
+ 0x74, 0x79, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d,
+ 0x22, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x22,
+ 0x3e, 0x54, 0x72, 0x75, 0x65, 0x3c, 0x2f, 0x70,
+ 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x3e,
+ 0x3c, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74,
+ 0x79, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x22,
+ 0x64, 0x72, 0x61, 0x77, 0x5f, 0x61, 0x73, 0x5f,
+ 0x72, 0x61, 0x64, 0x69, 0x6f, 0x22, 0x3e, 0x54,
+ 0x72, 0x75, 0x65, 0x3c, 0x2f, 0x70, 0x72, 0x6f,
+ 0x70, 0x65, 0x72, 0x74, 0x79, 0x3e, 0x3c, 0x70,
+ 0x72, 0x6f, 0x70,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63,
+ 0x74, 0x20, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x3d,
+ 0x22, 0x47, 0x74, 0x6b, 0x41, 0x64, 0x6a, 0x75,
+ 0x73, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x20,
+ 0x69, 0x64, 0x3d, 0x22, 0x62, 0x72, 0x69, 0x67,
+ 0x68, 0x74, 0x6e, 0x65, 0x73, 0x73, 0x5f, 0x61,
+ 0x64, 0x6a, 0x75, 0x73, 0x74, 0x6d, 0x65, 0x6e,
+ 0x74, 0x22, 0x3e, 0x3c, 0x70, 0x72, 0x6f, 0x70,
+ 0x65, 0x72, 0x74, 0x79, 0x20, 0x6e, 0x61, 0x6d,
+ 0x65, 0x3d, 0x22, 0x6c, 0x6f, 0x77, 0x65, 0x72,
+ 0x22, 0x3e, 0x2d, 0x31, 0x30, 0x30, 0x3c, 0x2f,
+ 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79,
+ 0x3e, 0x3c, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72,
+ 0x74, 0x79, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3d,
+ 0x22, 0x75, 0x70, 0x70, 0x65, 0x72, 0x22, 0x3e,
+ 0x31, 0x30, 0x30, 0x3c, 0x2f, 0x70, 0x72, 0x6f,
+ 0x70, 0x65, 0x72, 0x74, 0x79, 0x3e, 0x3c, 0x70,
+ 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x20,
+ 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x73, 0x74,
+ 0x65, 0x70, 0x5f, 0x69, 0x6e, 0x63, 0x72, 0x65,
+ 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x3e, 0x31, 0x3c,
+ 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74,
+ 0x79, 0x3e, 0x3c, 0x70, 0x72, 0x6f, 0x70, 0x65,
+ 0x72, 0x74, 0x79, 0x20, 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x79, 0x3e, 0x3c, 0x70, 0x72,
+ 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x20, 0x6e,
+ 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x75, 0x70, 0x70,
+ 0x65, 0x72, 0x22, 0x3e, 0x31, 0x30, 0x30, 0x3c,
+ 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74,
+ 0x79, 0x3e, 0x3c, 0x70, 0x72, 0x6f, 0x70, 0x65,
+ 0x72, 0x74, 0x79, 0x20, 0x6e, 0x61, 0x6d, 0x65,
+ 0x3d, 0x22, 0x73, 0x74, 0x65, 0x70, 0x5f, 0x69,
+ 0x6e, 0x63, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74,
+ 0x22, 0x3e, 0x31, 0x3c, 0x2f, 0x70, 0x72, 0x6f,
+ 0x70, 0x65, 0x72, 0x74, 0x79, 0x3e, 0x3c, 0x70,
+ 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x20,
+ 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x22, 0x70, 0x61,
+ 0x67, 0x65, 0x5f, 0x69, 0x6e, 0x63, 0x72, 0x65,
+ 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x3e, 0x31, 0x30,
+ 0x3c, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72,
+ 0x74, 0x79, 0x3e, 0x3c, 0x2f, 0x6f, 0x62, 0x6a,
+ 0x65, 0x63, 0x74, 0x3e, 0x3c, 0x2f, 0x69, 0x6e,
+ 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x3e,
+ 0x0a, 0x00, 0x00, 0x28, 0x75, 0x75, 0x61, 0x79,
+ 0x29
+} };
+
+static GStaticResource static_resource = { simple_scan_resource_data.data, sizeof (simple_scan_resource_data.data), NULL, NULL, NULL };
+extern GResource *simple_scan_get_resource (void);
+GResource *simple_scan_get_resource (void)
+{
+ return g_static_resource_get_resource (&static_resource);
+}
+/*
+ If G_HAS_CONSTRUCTORS is true then the compiler support *both* constructors and
+ destructors, in a sane way, including e.g. on library unload. If not you're on
+ your own.
+
+ Some compilers need #pragma to handle this, which does not work with macros,
+ so the way you need to use this is (for constructors):
+
+ #ifdef G_DEFINE_CONSTRUCTOR_NEEDS_PRAGMA
+ #pragma G_DEFINE_CONSTRUCTOR_PRAGMA_ARGS(my_constructor)
+ #endif
+ G_DEFINE_CONSTRUCTOR(my_constructor)
+ static void my_constructor(void) {
+ ...
+ }
+
+*/
+
+#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
+
+#define G_HAS_CONSTRUCTORS 1
+
+#define G_DEFINE_CONSTRUCTOR(_func) static void __attribute__((constructor)) _func (void);
+#define G_DEFINE_DESTRUCTOR(_func) static void __attribute__((destructor)) _func (void);
+
+#elif defined (_MSC_VER) && (_MSC_VER >= 1500)
+/* Visual studio 2008 and later has _Pragma */
+
+#define G_HAS_CONSTRUCTORS 1
+
+#define G_DEFINE_CONSTRUCTOR(_func) \
+ static void _func(void); \
+ static int _func ## _wrapper(void) { _func(); return 0; } \
+ __pragma(section(".CRT$XCU",read)) \
+ __declspec(allocate(".CRT$XCU")) static int (* _array ## _func)(void) = _func ## _wrapper;
+
+#define G_DEFINE_DESTRUCTOR(_func) \
+ static void _func(void); \
+ static int _func ## _constructor(void) { atexit (_func); return 0; } \
+ __pragma(section(".CRT$XCU",read)) \
+ __declspec(allocate(".CRT$XCU")) static int (* _array ## _func)(void) = _func ## _constructor;
+
+#elif defined (_MSC_VER)
+
+#define G_HAS_CONSTRUCTORS 1
+
+/* Pre Visual studio 2008 must use #pragma section */
+#define G_DEFINE_CONSTRUCTOR_NEEDS_PRAGMA 1
+#define G_DEFINE_DESTRUCTOR_NEEDS_PRAGMA 1
+
+#define G_DEFINE_CONSTRUCTOR_PRAGMA_ARGS(_func) \
+ section(".CRT$XCU",read)
+#define G_DEFINE_CONSTRUCTOR(_func) \
+ static void _func(void); \
+ static int _func ## _wrapper(void) { _func(); return 0; } \
+ __declspec(allocate(".CRT$XCU")) static int (*p)(void) = _func ## _wrapper;
+
+#define G_DEFINE_DESTRUCTOR_PRAGMA_ARGS(_func) \
+ section(".CRT$XCU",read)
+#define G_DEFINE_DESTRUCTOR(_func) \
+ static void _func(void); \
+ static int _func ## _constructor(void) { atexit (_func); return 0; } \
+ __declspec(allocate(".CRT$XCU")) static int (* _array ## _func)(void) = _func ## _constructor;
+
+#elif defined(__SUNPRO_C)
+
+/* This is not tested, but i believe it should work, based on:
+ * http://opensource.apple.com/source/OpenSSL098/OpenSSL098-35/src/fips/fips_premain.c
+ */
+
+#define G_HAS_CONSTRUCTORS 1
+
+#define G_DEFINE_CONSTRUCTOR_NEEDS_PRAGMA 1
+#define G_DEFINE_DESTRUCTOR_NEEDS_PRAGMA 1
+
+#define G_DEFINE_CONSTRUCTOR_PRAGMA_ARGS(_func) \
+ init(_func)
+#define G_DEFINE_CONSTRUCTOR(_func) \
+ static void _func(void);
+
+#define G_DEFINE_DESTRUCTOR_PRAGMA_ARGS(_func) \
+ fini(_func)
+#define G_DEFINE_DESTRUCTOR(_func) \
+ static void _func(void);
+
+#else
+
+/* constructors not supported for this compiler */
+
+#endif
+
+
+#ifdef G_HAS_CONSTRUCTORS
+
+#ifdef G_DEFINE_CONSTRUCTOR_NEEDS_PRAGMA
+#pragma G_DEFINE_CONSTRUCTOR_PRAGMA_ARGS(resource_constructor)
+#endif
+G_DEFINE_CONSTRUCTOR(resource_constructor)
+#ifdef G_DEFINE_DESTRUCTOR_NEEDS_PRAGMA
+#pragma G_DEFINE_DESTRUCTOR_PRAGMA_ARGS(resource_destructor)
+#endif
+G_DEFINE_DESTRUCTOR(resource_destructor)
+
+#else
+#warning "Constructor not supported on this compiler, linking in resources will not work"
+#endif
+
+static void resource_constructor (void)
+{
+ g_static_resource_init (&static_resource);
+}
+
+static void resource_destructor (void)
+{
+ g_static_resource_fini (&static_resource);
+}
diff --git a/src/scanner.c b/src/scanner.c
index d564732..b67db5e 100644
--- a/src/scanner.c
+++ b/src/scanner.c
@@ -1,4 +1,4 @@
-/* scanner.c generated by valac 0.18.1, the Vala compiler
+/* scanner.c generated by valac 0.20.1, the Vala compiler
* generated from scanner.vala, do not modify */
/*
@@ -285,6 +285,7 @@ typedef struct _NotifyGotLine NotifyGotLine;
typedef struct _NotifyGotLineClass NotifyGotLineClass;
typedef struct _NotifyGotLinePrivate NotifyGotLinePrivate;
#define _scan_line_unref0(var) ((var == NULL) ? NULL : (var = (scan_line_unref (var), NULL)))
+#define _g_thread_unref0(var) ((var == NULL) ? NULL : (var = (g_thread_unref (var), NULL)))
#define _g_async_queue_unref0(var) ((var == NULL) ? NULL : (var = (g_async_queue_unref (var), NULL)))
#define __g_list_free__scan_job_unref0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__scan_job_unref0_ (var), NULL)))
#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL)))
@@ -382,6 +383,8 @@ struct _ScanOptions {
ScanType type;
gint paper_width;
gint paper_height;
+ gint brightness;
+ gint contrast;
};
struct _ScanOptionsClass {
@@ -405,6 +408,8 @@ struct _ScanJob {
ScanType type;
gint page_width;
gint page_height;
+ gint brightness;
+ gint contrast;
};
struct _ScanJobClass {
@@ -926,6 +931,7 @@ static gint scanner_get_device_weight (const gchar* device);
static gint scanner_compare_devices (ScanDevice* device1, ScanDevice* device2);
static void scanner_do_redetect (Scanner* self);
static gint _scanner_compare_devices_gcompare_func (gconstpointer a, gconstpointer b);
+static gint scanner_scale_int (Scanner* self, gint source_min, gint source_max, SANE_Option_Descriptor* option, gint value);
static gboolean scanner_set_default_option (Scanner* self, SANE_Handle handle, SANE_Option_Descriptor* option, SANE_Int option_index);
static void scanner_set_bool_option (Scanner* self, SANE_Handle handle, SANE_Option_Descriptor* option, SANE_Int option_index, gboolean value, gboolean* _result_);
static void scanner_set_int_option (Scanner* self, SANE_Handle handle, SANE_Option_Descriptor* option, SANE_Int option_index, gint value, gint* _result_);
@@ -968,142 +974,226 @@ static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify
ScanDevice* scan_device_construct (GType object_type) {
ScanDevice* self = NULL;
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self = (ScanDevice*) g_type_create_instance (object_type);
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return self;
+#line 982 "scanner.c"
}
ScanDevice* scan_device_new (void) {
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return scan_device_construct (TYPE_SCAN_DEVICE);
+#line 989 "scanner.c"
}
static void value_scan_device_init (GValue* value) {
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = NULL;
+#line 996 "scanner.c"
}
static void value_scan_device_free_value (GValue* value) {
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (value->data[0].v_pointer) {
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scan_device_unref (value->data[0].v_pointer);
+#line 1005 "scanner.c"
}
}
static void value_scan_device_copy_value (const GValue* src_value, GValue* dest_value) {
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (src_value->data[0].v_pointer) {
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
dest_value->data[0].v_pointer = scan_device_ref (src_value->data[0].v_pointer);
+#line 1015 "scanner.c"
} else {
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
dest_value->data[0].v_pointer = NULL;
+#line 1019 "scanner.c"
}
}
static gpointer value_scan_device_peek_pointer (const GValue* value) {
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return value->data[0].v_pointer;
+#line 1027 "scanner.c"
}
static gchar* value_scan_device_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (collect_values[0].v_pointer) {
+#line 1034 "scanner.c"
ScanDevice* object;
object = collect_values[0].v_pointer;
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (object->parent_instance.g_class == NULL) {
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 1041 "scanner.c"
} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 1045 "scanner.c"
}
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = scan_device_ref (object);
+#line 1049 "scanner.c"
} else {
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = NULL;
+#line 1053 "scanner.c"
}
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return NULL;
+#line 1057 "scanner.c"
}
static gchar* value_scan_device_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
ScanDevice** object_p;
object_p = collect_values[0].v_pointer;
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (!object_p) {
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
+#line 1068 "scanner.c"
}
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (!value->data[0].v_pointer) {
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
*object_p = NULL;
+#line 1074 "scanner.c"
} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
*object_p = value->data[0].v_pointer;
+#line 1078 "scanner.c"
} else {
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
*object_p = scan_device_ref (value->data[0].v_pointer);
+#line 1082 "scanner.c"
}
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return NULL;
+#line 1086 "scanner.c"
}
GParamSpec* param_spec_scan_device (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
ParamSpecScanDevice* spec;
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_val_if_fail (g_type_is_a (object_type, TYPE_SCAN_DEVICE), NULL);
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
G_PARAM_SPEC (spec)->value_type = object_type;
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return G_PARAM_SPEC (spec);
+#line 1100 "scanner.c"
}
gpointer value_get_scan_device (const GValue* value) {
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SCAN_DEVICE), NULL);
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return value->data[0].v_pointer;
+#line 1109 "scanner.c"
}
void value_set_scan_device (GValue* value, gpointer v_object) {
ScanDevice* old;
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SCAN_DEVICE));
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
old = value->data[0].v_pointer;
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (v_object) {
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_SCAN_DEVICE));
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = v_object;
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scan_device_ref (value->data[0].v_pointer);
+#line 1129 "scanner.c"
} else {
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = NULL;
+#line 1133 "scanner.c"
}
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (old) {
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scan_device_unref (old);
+#line 1139 "scanner.c"
}
}
void value_take_scan_device (GValue* value, gpointer v_object) {
ScanDevice* old;
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SCAN_DEVICE));
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
old = value->data[0].v_pointer;
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (v_object) {
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_SCAN_DEVICE));
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = v_object;
+#line 1158 "scanner.c"
} else {
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = NULL;
+#line 1162 "scanner.c"
}
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (old) {
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scan_device_unref (old);
+#line 1168 "scanner.c"
}
}
static void scan_device_class_init (ScanDeviceClass * klass) {
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scan_device_parent_class = g_type_class_peek_parent (klass);
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
SCAN_DEVICE_CLASS (klass)->finalize = scan_device_finalize;
+#line 1178 "scanner.c"
}
static void scan_device_instance_init (ScanDevice * self) {
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->ref_count = 1;
+#line 1185 "scanner.c"
}
static void scan_device_finalize (ScanDevice* obj) {
ScanDevice * self;
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SCAN_DEVICE, ScanDevice);
+#line 16 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (self->name);
+#line 17 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (self->label);
+#line 1197 "scanner.c"
}
@@ -1124,158 +1214,248 @@ GType scan_device_get_type (void) {
gpointer scan_device_ref (gpointer instance) {
ScanDevice* self;
self = instance;
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_atomic_int_inc (&self->ref_count);
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return instance;
+#line 1222 "scanner.c"
}
void scan_device_unref (gpointer instance) {
ScanDevice* self;
self = instance;
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (g_atomic_int_dec_and_test (&self->ref_count)) {
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
SCAN_DEVICE_GET_CLASS (self)->finalize (self);
+#line 14 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_type_free_instance ((GTypeInstance *) self);
+#line 1235 "scanner.c"
}
}
ScanPageInfo* scan_page_info_construct (GType object_type) {
ScanPageInfo* self = NULL;
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self = (ScanPageInfo*) g_type_create_instance (object_type);
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return self;
+#line 1246 "scanner.c"
}
ScanPageInfo* scan_page_info_new (void) {
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return scan_page_info_construct (TYPE_SCAN_PAGE_INFO);
+#line 1253 "scanner.c"
}
static void value_scan_page_info_init (GValue* value) {
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = NULL;
+#line 1260 "scanner.c"
}
static void value_scan_page_info_free_value (GValue* value) {
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (value->data[0].v_pointer) {
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scan_page_info_unref (value->data[0].v_pointer);
+#line 1269 "scanner.c"
}
}
static void value_scan_page_info_copy_value (const GValue* src_value, GValue* dest_value) {
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (src_value->data[0].v_pointer) {
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
dest_value->data[0].v_pointer = scan_page_info_ref (src_value->data[0].v_pointer);
+#line 1279 "scanner.c"
} else {
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
dest_value->data[0].v_pointer = NULL;
+#line 1283 "scanner.c"
}
}
static gpointer value_scan_page_info_peek_pointer (const GValue* value) {
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return value->data[0].v_pointer;
+#line 1291 "scanner.c"
}
static gchar* value_scan_page_info_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (collect_values[0].v_pointer) {
+#line 1298 "scanner.c"
ScanPageInfo* object;
object = collect_values[0].v_pointer;
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (object->parent_instance.g_class == NULL) {
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 1305 "scanner.c"
} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 1309 "scanner.c"
}
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = scan_page_info_ref (object);
+#line 1313 "scanner.c"
} else {
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = NULL;
+#line 1317 "scanner.c"
}
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return NULL;
+#line 1321 "scanner.c"
}
static gchar* value_scan_page_info_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
ScanPageInfo** object_p;
object_p = collect_values[0].v_pointer;
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (!object_p) {
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
+#line 1332 "scanner.c"
}
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (!value->data[0].v_pointer) {
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
*object_p = NULL;
+#line 1338 "scanner.c"
} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
*object_p = value->data[0].v_pointer;
+#line 1342 "scanner.c"
} else {
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
*object_p = scan_page_info_ref (value->data[0].v_pointer);
+#line 1346 "scanner.c"
}
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return NULL;
+#line 1350 "scanner.c"
}
GParamSpec* param_spec_scan_page_info (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
ParamSpecScanPageInfo* spec;
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_val_if_fail (g_type_is_a (object_type, TYPE_SCAN_PAGE_INFO), NULL);
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
G_PARAM_SPEC (spec)->value_type = object_type;
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return G_PARAM_SPEC (spec);
+#line 1364 "scanner.c"
}
gpointer value_get_scan_page_info (const GValue* value) {
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SCAN_PAGE_INFO), NULL);
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return value->data[0].v_pointer;
+#line 1373 "scanner.c"
}
void value_set_scan_page_info (GValue* value, gpointer v_object) {
ScanPageInfo* old;
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SCAN_PAGE_INFO));
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
old = value->data[0].v_pointer;
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (v_object) {
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_SCAN_PAGE_INFO));
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = v_object;
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scan_page_info_ref (value->data[0].v_pointer);
+#line 1393 "scanner.c"
} else {
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = NULL;
+#line 1397 "scanner.c"
}
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (old) {
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scan_page_info_unref (old);
+#line 1403 "scanner.c"
}
}
void value_take_scan_page_info (GValue* value, gpointer v_object) {
ScanPageInfo* old;
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SCAN_PAGE_INFO));
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
old = value->data[0].v_pointer;
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (v_object) {
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_SCAN_PAGE_INFO));
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = v_object;
+#line 1422 "scanner.c"
} else {
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = NULL;
+#line 1426 "scanner.c"
}
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (old) {
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scan_page_info_unref (old);
+#line 1432 "scanner.c"
}
}
static void scan_page_info_class_init (ScanPageInfoClass * klass) {
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scan_page_info_parent_class = g_type_class_peek_parent (klass);
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
SCAN_PAGE_INFO_CLASS (klass)->finalize = scan_page_info_finalize;
+#line 1442 "scanner.c"
}
static void scan_page_info_instance_init (ScanPageInfo * self) {
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->ref_count = 1;
+#line 1449 "scanner.c"
}
static void scan_page_info_finalize (ScanPageInfo* obj) {
ScanPageInfo * self;
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SCAN_PAGE_INFO, ScanPageInfo);
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (self->device);
+#line 1459 "scanner.c"
}
@@ -1296,158 +1476,248 @@ GType scan_page_info_get_type (void) {
gpointer scan_page_info_ref (gpointer instance) {
ScanPageInfo* self;
self = instance;
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_atomic_int_inc (&self->ref_count);
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return instance;
+#line 1484 "scanner.c"
}
void scan_page_info_unref (gpointer instance) {
ScanPageInfo* self;
self = instance;
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (g_atomic_int_dec_and_test (&self->ref_count)) {
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
SCAN_PAGE_INFO_GET_CLASS (self)->finalize (self);
+#line 20 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_type_free_instance ((GTypeInstance *) self);
+#line 1497 "scanner.c"
}
}
ScanLine* scan_line_construct (GType object_type) {
ScanLine* self = NULL;
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self = (ScanLine*) g_type_create_instance (object_type);
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return self;
+#line 1508 "scanner.c"
}
ScanLine* scan_line_new (void) {
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return scan_line_construct (TYPE_SCAN_LINE);
+#line 1515 "scanner.c"
}
static void value_scan_line_init (GValue* value) {
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = NULL;
+#line 1522 "scanner.c"
}
static void value_scan_line_free_value (GValue* value) {
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (value->data[0].v_pointer) {
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scan_line_unref (value->data[0].v_pointer);
+#line 1531 "scanner.c"
}
}
static void value_scan_line_copy_value (const GValue* src_value, GValue* dest_value) {
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (src_value->data[0].v_pointer) {
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
dest_value->data[0].v_pointer = scan_line_ref (src_value->data[0].v_pointer);
+#line 1541 "scanner.c"
} else {
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
dest_value->data[0].v_pointer = NULL;
+#line 1545 "scanner.c"
}
}
static gpointer value_scan_line_peek_pointer (const GValue* value) {
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return value->data[0].v_pointer;
+#line 1553 "scanner.c"
}
static gchar* value_scan_line_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (collect_values[0].v_pointer) {
+#line 1560 "scanner.c"
ScanLine* object;
object = collect_values[0].v_pointer;
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (object->parent_instance.g_class == NULL) {
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 1567 "scanner.c"
} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 1571 "scanner.c"
}
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = scan_line_ref (object);
+#line 1575 "scanner.c"
} else {
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = NULL;
+#line 1579 "scanner.c"
}
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return NULL;
+#line 1583 "scanner.c"
}
static gchar* value_scan_line_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
ScanLine** object_p;
object_p = collect_values[0].v_pointer;
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (!object_p) {
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
+#line 1594 "scanner.c"
}
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (!value->data[0].v_pointer) {
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
*object_p = NULL;
+#line 1600 "scanner.c"
} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
*object_p = value->data[0].v_pointer;
+#line 1604 "scanner.c"
} else {
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
*object_p = scan_line_ref (value->data[0].v_pointer);
+#line 1608 "scanner.c"
}
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return NULL;
+#line 1612 "scanner.c"
}
GParamSpec* param_spec_scan_line (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
ParamSpecScanLine* spec;
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_val_if_fail (g_type_is_a (object_type, TYPE_SCAN_LINE), NULL);
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
G_PARAM_SPEC (spec)->value_type = object_type;
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return G_PARAM_SPEC (spec);
+#line 1626 "scanner.c"
}
gpointer value_get_scan_line (const GValue* value) {
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SCAN_LINE), NULL);
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return value->data[0].v_pointer;
+#line 1635 "scanner.c"
}
void value_set_scan_line (GValue* value, gpointer v_object) {
ScanLine* old;
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SCAN_LINE));
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
old = value->data[0].v_pointer;
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (v_object) {
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_SCAN_LINE));
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = v_object;
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scan_line_ref (value->data[0].v_pointer);
+#line 1655 "scanner.c"
} else {
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = NULL;
+#line 1659 "scanner.c"
}
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (old) {
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scan_line_unref (old);
+#line 1665 "scanner.c"
}
}
void value_take_scan_line (GValue* value, gpointer v_object) {
ScanLine* old;
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SCAN_LINE));
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
old = value->data[0].v_pointer;
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (v_object) {
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_SCAN_LINE));
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = v_object;
+#line 1684 "scanner.c"
} else {
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = NULL;
+#line 1688 "scanner.c"
}
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (old) {
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scan_line_unref (old);
+#line 1694 "scanner.c"
}
}
static void scan_line_class_init (ScanLineClass * klass) {
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scan_line_parent_class = g_type_class_peek_parent (klass);
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
SCAN_LINE_CLASS (klass)->finalize = scan_line_finalize;
+#line 1704 "scanner.c"
}
static void scan_line_instance_init (ScanLine * self) {
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->ref_count = 1;
+#line 1711 "scanner.c"
}
static void scan_line_finalize (ScanLine* obj) {
ScanLine * self;
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SCAN_LINE, ScanLine);
+#line 55 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->data = (g_free (self->data), NULL);
+#line 1721 "scanner.c"
}
@@ -1468,17 +1738,24 @@ GType scan_line_get_type (void) {
gpointer scan_line_ref (gpointer instance) {
ScanLine* self;
self = instance;
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_atomic_int_inc (&self->ref_count);
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return instance;
+#line 1746 "scanner.c"
}
void scan_line_unref (gpointer instance) {
ScanLine* self;
self = instance;
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (g_atomic_int_dec_and_test (&self->ref_count)) {
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
SCAN_LINE_GET_CLASS (self)->finalize (self);
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_type_free_instance ((GTypeInstance *) self);
+#line 1759 "scanner.c"
}
}
@@ -1509,140 +1786,222 @@ GType scan_type_get_type (void) {
ScanOptions* scan_options_construct (GType object_type) {
ScanOptions* self = NULL;
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self = (ScanOptions*) g_type_create_instance (object_type);
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return self;
+#line 1794 "scanner.c"
}
ScanOptions* scan_options_new (void) {
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return scan_options_construct (TYPE_SCAN_OPTIONS);
+#line 1801 "scanner.c"
}
static void value_scan_options_init (GValue* value) {
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = NULL;
+#line 1808 "scanner.c"
}
static void value_scan_options_free_value (GValue* value) {
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (value->data[0].v_pointer) {
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scan_options_unref (value->data[0].v_pointer);
+#line 1817 "scanner.c"
}
}
static void value_scan_options_copy_value (const GValue* src_value, GValue* dest_value) {
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (src_value->data[0].v_pointer) {
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
dest_value->data[0].v_pointer = scan_options_ref (src_value->data[0].v_pointer);
+#line 1827 "scanner.c"
} else {
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
dest_value->data[0].v_pointer = NULL;
+#line 1831 "scanner.c"
}
}
static gpointer value_scan_options_peek_pointer (const GValue* value) {
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return value->data[0].v_pointer;
+#line 1839 "scanner.c"
}
static gchar* value_scan_options_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (collect_values[0].v_pointer) {
+#line 1846 "scanner.c"
ScanOptions* object;
object = collect_values[0].v_pointer;
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (object->parent_instance.g_class == NULL) {
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 1853 "scanner.c"
} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 1857 "scanner.c"
}
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = scan_options_ref (object);
+#line 1861 "scanner.c"
} else {
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = NULL;
+#line 1865 "scanner.c"
}
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return NULL;
+#line 1869 "scanner.c"
}
static gchar* value_scan_options_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
ScanOptions** object_p;
object_p = collect_values[0].v_pointer;
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (!object_p) {
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
+#line 1880 "scanner.c"
}
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (!value->data[0].v_pointer) {
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
*object_p = NULL;
+#line 1886 "scanner.c"
} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
*object_p = value->data[0].v_pointer;
+#line 1890 "scanner.c"
} else {
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
*object_p = scan_options_ref (value->data[0].v_pointer);
+#line 1894 "scanner.c"
}
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return NULL;
+#line 1898 "scanner.c"
}
GParamSpec* param_spec_scan_options (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
ParamSpecScanOptions* spec;
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_val_if_fail (g_type_is_a (object_type, TYPE_SCAN_OPTIONS), NULL);
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
G_PARAM_SPEC (spec)->value_type = object_type;
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return G_PARAM_SPEC (spec);
+#line 1912 "scanner.c"
}
gpointer value_get_scan_options (const GValue* value) {
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SCAN_OPTIONS), NULL);
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return value->data[0].v_pointer;
+#line 1921 "scanner.c"
}
void value_set_scan_options (GValue* value, gpointer v_object) {
ScanOptions* old;
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SCAN_OPTIONS));
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
old = value->data[0].v_pointer;
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (v_object) {
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_SCAN_OPTIONS));
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = v_object;
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scan_options_ref (value->data[0].v_pointer);
+#line 1941 "scanner.c"
} else {
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = NULL;
+#line 1945 "scanner.c"
}
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (old) {
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scan_options_unref (old);
+#line 1951 "scanner.c"
}
}
void value_take_scan_options (GValue* value, gpointer v_object) {
ScanOptions* old;
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SCAN_OPTIONS));
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
old = value->data[0].v_pointer;
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (v_object) {
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_SCAN_OPTIONS));
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = v_object;
+#line 1970 "scanner.c"
} else {
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = NULL;
+#line 1974 "scanner.c"
}
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (old) {
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scan_options_unref (old);
+#line 1980 "scanner.c"
}
}
static void scan_options_class_init (ScanOptionsClass * klass) {
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scan_options_parent_class = g_type_class_peek_parent (klass);
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
SCAN_OPTIONS_CLASS (klass)->finalize = scan_options_finalize;
+#line 1990 "scanner.c"
}
static void scan_options_instance_init (ScanOptions * self) {
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->ref_count = 1;
+#line 1997 "scanner.c"
}
static void scan_options_finalize (ScanOptions* obj) {
ScanOptions * self;
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SCAN_OPTIONS, ScanOptions);
+#line 2005 "scanner.c"
}
@@ -1663,158 +2022,248 @@ GType scan_options_get_type (void) {
gpointer scan_options_ref (gpointer instance) {
ScanOptions* self;
self = instance;
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_atomic_int_inc (&self->ref_count);
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return instance;
+#line 2030 "scanner.c"
}
void scan_options_unref (gpointer instance) {
ScanOptions* self;
self = instance;
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (g_atomic_int_dec_and_test (&self->ref_count)) {
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
SCAN_OPTIONS_GET_CLASS (self)->finalize (self);
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_type_free_instance ((GTypeInstance *) self);
+#line 2043 "scanner.c"
}
}
ScanJob* scan_job_construct (GType object_type) {
ScanJob* self = NULL;
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self = (ScanJob*) g_type_create_instance (object_type);
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return self;
+#line 2054 "scanner.c"
}
ScanJob* scan_job_new (void) {
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return scan_job_construct (TYPE_SCAN_JOB);
+#line 2061 "scanner.c"
}
static void value_scan_job_init (GValue* value) {
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = NULL;
+#line 2068 "scanner.c"
}
static void value_scan_job_free_value (GValue* value) {
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (value->data[0].v_pointer) {
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scan_job_unref (value->data[0].v_pointer);
+#line 2077 "scanner.c"
}
}
static void value_scan_job_copy_value (const GValue* src_value, GValue* dest_value) {
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (src_value->data[0].v_pointer) {
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
dest_value->data[0].v_pointer = scan_job_ref (src_value->data[0].v_pointer);
+#line 2087 "scanner.c"
} else {
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
dest_value->data[0].v_pointer = NULL;
+#line 2091 "scanner.c"
}
}
static gpointer value_scan_job_peek_pointer (const GValue* value) {
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return value->data[0].v_pointer;
+#line 2099 "scanner.c"
}
static gchar* value_scan_job_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (collect_values[0].v_pointer) {
+#line 2106 "scanner.c"
ScanJob* object;
object = collect_values[0].v_pointer;
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (object->parent_instance.g_class == NULL) {
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 2113 "scanner.c"
} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 2117 "scanner.c"
}
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = scan_job_ref (object);
+#line 2121 "scanner.c"
} else {
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = NULL;
+#line 2125 "scanner.c"
}
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return NULL;
+#line 2129 "scanner.c"
}
static gchar* value_scan_job_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
ScanJob** object_p;
object_p = collect_values[0].v_pointer;
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (!object_p) {
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
+#line 2140 "scanner.c"
}
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (!value->data[0].v_pointer) {
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
*object_p = NULL;
+#line 2146 "scanner.c"
} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
*object_p = value->data[0].v_pointer;
+#line 2150 "scanner.c"
} else {
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
*object_p = scan_job_ref (value->data[0].v_pointer);
+#line 2154 "scanner.c"
}
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return NULL;
+#line 2158 "scanner.c"
}
GParamSpec* param_spec_scan_job (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
ParamSpecScanJob* spec;
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_val_if_fail (g_type_is_a (object_type, TYPE_SCAN_JOB), NULL);
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
G_PARAM_SPEC (spec)->value_type = object_type;
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return G_PARAM_SPEC (spec);
+#line 2172 "scanner.c"
}
gpointer value_get_scan_job (const GValue* value) {
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SCAN_JOB), NULL);
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return value->data[0].v_pointer;
+#line 2181 "scanner.c"
}
void value_set_scan_job (GValue* value, gpointer v_object) {
ScanJob* old;
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SCAN_JOB));
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
old = value->data[0].v_pointer;
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (v_object) {
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_SCAN_JOB));
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = v_object;
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scan_job_ref (value->data[0].v_pointer);
+#line 2201 "scanner.c"
} else {
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = NULL;
+#line 2205 "scanner.c"
}
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (old) {
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scan_job_unref (old);
+#line 2211 "scanner.c"
}
}
void value_take_scan_job (GValue* value, gpointer v_object) {
ScanJob* old;
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SCAN_JOB));
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
old = value->data[0].v_pointer;
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (v_object) {
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_SCAN_JOB));
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = v_object;
+#line 2230 "scanner.c"
} else {
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = NULL;
+#line 2234 "scanner.c"
}
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (old) {
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scan_job_unref (old);
+#line 2240 "scanner.c"
}
}
static void scan_job_class_init (ScanJobClass * klass) {
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scan_job_parent_class = g_type_class_peek_parent (klass);
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
SCAN_JOB_CLASS (klass)->finalize = scan_job_finalize;
+#line 2250 "scanner.c"
}
static void scan_job_instance_init (ScanJob * self) {
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->ref_count = 1;
+#line 2257 "scanner.c"
}
static void scan_job_finalize (ScanJob* obj) {
ScanJob * self;
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SCAN_JOB, ScanJob);
+#line 90 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (self->device);
+#line 2267 "scanner.c"
}
@@ -1835,157 +2284,246 @@ GType scan_job_get_type (void) {
gpointer scan_job_ref (gpointer instance) {
ScanJob* self;
self = instance;
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_atomic_int_inc (&self->ref_count);
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return instance;
+#line 2292 "scanner.c"
}
void scan_job_unref (gpointer instance) {
ScanJob* self;
self = instance;
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (g_atomic_int_dec_and_test (&self->ref_count)) {
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
SCAN_JOB_GET_CLASS (self)->finalize (self);
+#line 87 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_type_free_instance ((GTypeInstance *) self);
+#line 2305 "scanner.c"
}
}
Request* request_construct (GType object_type) {
Request* self = NULL;
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self = (Request*) g_type_create_instance (object_type);
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return self;
+#line 2316 "scanner.c"
}
Request* request_new (void) {
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return request_construct (TYPE_REQUEST);
+#line 2323 "scanner.c"
}
static void value_request_init (GValue* value) {
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = NULL;
+#line 2330 "scanner.c"
}
static void value_request_free_value (GValue* value) {
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (value->data[0].v_pointer) {
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
request_unref (value->data[0].v_pointer);
+#line 2339 "scanner.c"
}
}
static void value_request_copy_value (const GValue* src_value, GValue* dest_value) {
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (src_value->data[0].v_pointer) {
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
dest_value->data[0].v_pointer = request_ref (src_value->data[0].v_pointer);
+#line 2349 "scanner.c"
} else {
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
dest_value->data[0].v_pointer = NULL;
+#line 2353 "scanner.c"
}
}
static gpointer value_request_peek_pointer (const GValue* value) {
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return value->data[0].v_pointer;
+#line 2361 "scanner.c"
}
static gchar* value_request_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (collect_values[0].v_pointer) {
+#line 2368 "scanner.c"
Request* object;
object = collect_values[0].v_pointer;
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (object->parent_instance.g_class == NULL) {
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 2375 "scanner.c"
} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 2379 "scanner.c"
}
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = request_ref (object);
+#line 2383 "scanner.c"
} else {
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = NULL;
+#line 2387 "scanner.c"
}
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return NULL;
+#line 2391 "scanner.c"
}
static gchar* value_request_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
Request** object_p;
object_p = collect_values[0].v_pointer;
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (!object_p) {
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
+#line 2402 "scanner.c"
}
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (!value->data[0].v_pointer) {
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
*object_p = NULL;
+#line 2408 "scanner.c"
} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
*object_p = value->data[0].v_pointer;
+#line 2412 "scanner.c"
} else {
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
*object_p = request_ref (value->data[0].v_pointer);
+#line 2416 "scanner.c"
}
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return NULL;
+#line 2420 "scanner.c"
}
GParamSpec* param_spec_request (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
ParamSpecRequest* spec;
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_val_if_fail (g_type_is_a (object_type, TYPE_REQUEST), NULL);
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
G_PARAM_SPEC (spec)->value_type = object_type;
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return G_PARAM_SPEC (spec);
+#line 2434 "scanner.c"
}
gpointer value_get_request (const GValue* value) {
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_REQUEST), NULL);
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return value->data[0].v_pointer;
+#line 2443 "scanner.c"
}
void value_set_request (GValue* value, gpointer v_object) {
Request* old;
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_REQUEST));
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
old = value->data[0].v_pointer;
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (v_object) {
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_REQUEST));
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = v_object;
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
request_ref (value->data[0].v_pointer);
+#line 2463 "scanner.c"
} else {
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = NULL;
+#line 2467 "scanner.c"
}
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (old) {
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
request_unref (old);
+#line 2473 "scanner.c"
}
}
void value_take_request (GValue* value, gpointer v_object) {
Request* old;
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_REQUEST));
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
old = value->data[0].v_pointer;
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (v_object) {
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_REQUEST));
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = v_object;
+#line 2492 "scanner.c"
} else {
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = NULL;
+#line 2496 "scanner.c"
}
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (old) {
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
request_unref (old);
+#line 2502 "scanner.c"
}
}
static void request_class_init (RequestClass * klass) {
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
request_parent_class = g_type_class_peek_parent (klass);
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
REQUEST_CLASS (klass)->finalize = request_finalize;
+#line 2512 "scanner.c"
}
static void request_instance_init (Request * self) {
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->ref_count = 1;
+#line 2519 "scanner.c"
}
static void request_finalize (Request* obj) {
Request * self;
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_REQUEST, Request);
+#line 2527 "scanner.c"
}
@@ -2006,35 +2544,49 @@ GType request_get_type (void) {
gpointer request_ref (gpointer instance) {
Request* self;
self = instance;
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_atomic_int_inc (&self->ref_count);
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return instance;
+#line 2552 "scanner.c"
}
void request_unref (gpointer instance) {
Request* self;
self = instance;
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (g_atomic_int_dec_and_test (&self->ref_count)) {
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
REQUEST_GET_CLASS (self)->finalize (self);
+#line 101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_type_free_instance ((GTypeInstance *) self);
+#line 2565 "scanner.c"
}
}
RequestRedetect* request_redetect_construct (GType object_type) {
RequestRedetect* self = NULL;
+#line 103 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self = (RequestRedetect*) request_construct (object_type);
+#line 103 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return self;
+#line 2576 "scanner.c"
}
RequestRedetect* request_redetect_new (void) {
+#line 103 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return request_redetect_construct (TYPE_REQUEST_REDETECT);
+#line 2583 "scanner.c"
}
static void request_redetect_class_init (RequestRedetectClass * klass) {
+#line 103 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
request_redetect_parent_class = g_type_class_peek_parent (klass);
+#line 2590 "scanner.c"
}
@@ -2056,18 +2608,25 @@ GType request_redetect_get_type (void) {
RequestCancel* request_cancel_construct (GType object_type) {
RequestCancel* self = NULL;
+#line 105 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self = (RequestCancel*) request_construct (object_type);
+#line 105 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return self;
+#line 2616 "scanner.c"
}
RequestCancel* request_cancel_new (void) {
+#line 105 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return request_cancel_construct (TYPE_REQUEST_CANCEL);
+#line 2623 "scanner.c"
}
static void request_cancel_class_init (RequestCancelClass * klass) {
+#line 105 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
request_cancel_parent_class = g_type_class_peek_parent (klass);
+#line 2630 "scanner.c"
}
@@ -2089,19 +2648,27 @@ GType request_cancel_get_type (void) {
RequestStartScan* request_start_scan_construct (GType object_type) {
RequestStartScan* self = NULL;
+#line 107 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self = (RequestStartScan*) request_construct (object_type);
+#line 107 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return self;
+#line 2656 "scanner.c"
}
RequestStartScan* request_start_scan_new (void) {
+#line 107 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return request_start_scan_construct (TYPE_REQUEST_START_SCAN);
+#line 2663 "scanner.c"
}
static void request_start_scan_class_init (RequestStartScanClass * klass) {
+#line 107 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
request_start_scan_parent_class = g_type_class_peek_parent (klass);
+#line 107 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
REQUEST_CLASS (klass)->finalize = request_start_scan_finalize;
+#line 2672 "scanner.c"
}
@@ -2111,9 +2678,13 @@ static void request_start_scan_instance_init (RequestStartScan * self) {
static void request_start_scan_finalize (Request* obj) {
RequestStartScan * self;
+#line 107 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_REQUEST_START_SCAN, RequestStartScan);
+#line 109 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_scan_job_unref0 (self->job);
+#line 107 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
REQUEST_CLASS (request_start_scan_parent_class)->finalize (obj);
+#line 2688 "scanner.c"
}
@@ -2131,18 +2702,25 @@ GType request_start_scan_get_type (void) {
RequestQuit* request_quit_construct (GType object_type) {
RequestQuit* self = NULL;
+#line 112 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self = (RequestQuit*) request_construct (object_type);
+#line 112 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return self;
+#line 2710 "scanner.c"
}
RequestQuit* request_quit_new (void) {
+#line 112 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return request_quit_construct (TYPE_REQUEST_QUIT);
+#line 2717 "scanner.c"
}
static void request_quit_class_init (RequestQuitClass * klass) {
+#line 112 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
request_quit_parent_class = g_type_class_peek_parent (klass);
+#line 2724 "scanner.c"
}
@@ -2164,142 +2742,226 @@ GType request_quit_get_type (void) {
Credentials* credentials_construct (GType object_type) {
Credentials* self = NULL;
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self = (Credentials*) g_type_create_instance (object_type);
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return self;
+#line 2750 "scanner.c"
}
Credentials* credentials_new (void) {
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return credentials_construct (TYPE_CREDENTIALS);
+#line 2757 "scanner.c"
}
static void value_credentials_init (GValue* value) {
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = NULL;
+#line 2764 "scanner.c"
}
static void value_credentials_free_value (GValue* value) {
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (value->data[0].v_pointer) {
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
credentials_unref (value->data[0].v_pointer);
+#line 2773 "scanner.c"
}
}
static void value_credentials_copy_value (const GValue* src_value, GValue* dest_value) {
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (src_value->data[0].v_pointer) {
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
dest_value->data[0].v_pointer = credentials_ref (src_value->data[0].v_pointer);
+#line 2783 "scanner.c"
} else {
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
dest_value->data[0].v_pointer = NULL;
+#line 2787 "scanner.c"
}
}
static gpointer value_credentials_peek_pointer (const GValue* value) {
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return value->data[0].v_pointer;
+#line 2795 "scanner.c"
}
static gchar* value_credentials_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (collect_values[0].v_pointer) {
+#line 2802 "scanner.c"
Credentials* object;
object = collect_values[0].v_pointer;
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (object->parent_instance.g_class == NULL) {
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 2809 "scanner.c"
} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 2813 "scanner.c"
}
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = credentials_ref (object);
+#line 2817 "scanner.c"
} else {
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = NULL;
+#line 2821 "scanner.c"
}
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return NULL;
+#line 2825 "scanner.c"
}
static gchar* value_credentials_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
Credentials** object_p;
object_p = collect_values[0].v_pointer;
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (!object_p) {
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
+#line 2836 "scanner.c"
}
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (!value->data[0].v_pointer) {
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
*object_p = NULL;
+#line 2842 "scanner.c"
} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
*object_p = value->data[0].v_pointer;
+#line 2846 "scanner.c"
} else {
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
*object_p = credentials_ref (value->data[0].v_pointer);
+#line 2850 "scanner.c"
}
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return NULL;
+#line 2854 "scanner.c"
}
GParamSpec* param_spec_credentials (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
ParamSpecCredentials* spec;
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_val_if_fail (g_type_is_a (object_type, TYPE_CREDENTIALS), NULL);
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
G_PARAM_SPEC (spec)->value_type = object_type;
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return G_PARAM_SPEC (spec);
+#line 2868 "scanner.c"
}
gpointer value_get_credentials (const GValue* value) {
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_CREDENTIALS), NULL);
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return value->data[0].v_pointer;
+#line 2877 "scanner.c"
}
void value_set_credentials (GValue* value, gpointer v_object) {
Credentials* old;
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_CREDENTIALS));
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
old = value->data[0].v_pointer;
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (v_object) {
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_CREDENTIALS));
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = v_object;
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
credentials_ref (value->data[0].v_pointer);
+#line 2897 "scanner.c"
} else {
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = NULL;
+#line 2901 "scanner.c"
}
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (old) {
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
credentials_unref (old);
+#line 2907 "scanner.c"
}
}
void value_take_credentials (GValue* value, gpointer v_object) {
Credentials* old;
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_CREDENTIALS));
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
old = value->data[0].v_pointer;
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (v_object) {
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_CREDENTIALS));
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = v_object;
+#line 2926 "scanner.c"
} else {
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = NULL;
+#line 2930 "scanner.c"
}
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (old) {
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
credentials_unref (old);
+#line 2936 "scanner.c"
}
}
static void credentials_class_init (CredentialsClass * klass) {
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
credentials_parent_class = g_type_class_peek_parent (klass);
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
CREDENTIALS_CLASS (klass)->finalize = credentials_finalize;
+#line 2946 "scanner.c"
}
static void credentials_instance_init (Credentials * self) {
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->ref_count = 1;
+#line 2953 "scanner.c"
}
static void credentials_finalize (Credentials* obj) {
Credentials * self;
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_CREDENTIALS, Credentials);
+#line 116 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (self->username);
+#line 117 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (self->password);
+#line 2965 "scanner.c"
}
@@ -2320,17 +2982,24 @@ GType credentials_get_type (void) {
gpointer credentials_ref (gpointer instance) {
Credentials* self;
self = instance;
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_atomic_int_inc (&self->ref_count);
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return instance;
+#line 2990 "scanner.c"
}
void credentials_unref (gpointer instance) {
Credentials* self;
self = instance;
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (g_atomic_int_dec_and_test (&self->ref_count)) {
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
CREDENTIALS_GET_CLASS (self)->finalize (self);
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_type_free_instance ((GTypeInstance *) self);
+#line 3003 "scanner.c"
}
}
@@ -2348,153 +3017,241 @@ GType scan_state_get_type (void) {
static void notify_real_run (Notify* self, Scanner* scanner) {
+#line 133 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (scanner != NULL);
+#line 3023 "scanner.c"
}
void notify_run (Notify* self, Scanner* scanner) {
+#line 133 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (self != NULL);
+#line 133 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
NOTIFY_GET_CLASS (self)->run (self, scanner);
+#line 3032 "scanner.c"
}
Notify* notify_construct (GType object_type) {
Notify* self = NULL;
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self = (Notify*) g_type_create_instance (object_type);
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return self;
+#line 3042 "scanner.c"
}
Notify* notify_new (void) {
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return notify_construct (TYPE_NOTIFY);
+#line 3049 "scanner.c"
}
static void value_notify_init (GValue* value) {
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = NULL;
+#line 3056 "scanner.c"
}
static void value_notify_free_value (GValue* value) {
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (value->data[0].v_pointer) {
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
notify_unref (value->data[0].v_pointer);
+#line 3065 "scanner.c"
}
}
static void value_notify_copy_value (const GValue* src_value, GValue* dest_value) {
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (src_value->data[0].v_pointer) {
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
dest_value->data[0].v_pointer = notify_ref (src_value->data[0].v_pointer);
+#line 3075 "scanner.c"
} else {
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
dest_value->data[0].v_pointer = NULL;
+#line 3079 "scanner.c"
}
}
static gpointer value_notify_peek_pointer (const GValue* value) {
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return value->data[0].v_pointer;
+#line 3087 "scanner.c"
}
static gchar* value_notify_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (collect_values[0].v_pointer) {
+#line 3094 "scanner.c"
Notify* object;
object = collect_values[0].v_pointer;
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (object->parent_instance.g_class == NULL) {
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 3101 "scanner.c"
} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 3105 "scanner.c"
}
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = notify_ref (object);
+#line 3109 "scanner.c"
} else {
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = NULL;
+#line 3113 "scanner.c"
}
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return NULL;
+#line 3117 "scanner.c"
}
static gchar* value_notify_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
Notify** object_p;
object_p = collect_values[0].v_pointer;
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (!object_p) {
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
+#line 3128 "scanner.c"
}
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (!value->data[0].v_pointer) {
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
*object_p = NULL;
+#line 3134 "scanner.c"
} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
*object_p = value->data[0].v_pointer;
+#line 3138 "scanner.c"
} else {
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
*object_p = notify_ref (value->data[0].v_pointer);
+#line 3142 "scanner.c"
}
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return NULL;
+#line 3146 "scanner.c"
}
GParamSpec* param_spec_notify (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
ParamSpecNotify* spec;
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_val_if_fail (g_type_is_a (object_type, TYPE_NOTIFY), NULL);
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
G_PARAM_SPEC (spec)->value_type = object_type;
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return G_PARAM_SPEC (spec);
+#line 3160 "scanner.c"
}
gpointer value_get_notify (const GValue* value) {
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_NOTIFY), NULL);
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return value->data[0].v_pointer;
+#line 3169 "scanner.c"
}
void value_set_notify (GValue* value, gpointer v_object) {
Notify* old;
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_NOTIFY));
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
old = value->data[0].v_pointer;
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (v_object) {
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_NOTIFY));
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = v_object;
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
notify_ref (value->data[0].v_pointer);
+#line 3189 "scanner.c"
} else {
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = NULL;
+#line 3193 "scanner.c"
}
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (old) {
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
notify_unref (old);
+#line 3199 "scanner.c"
}
}
void value_take_notify (GValue* value, gpointer v_object) {
Notify* old;
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_NOTIFY));
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
old = value->data[0].v_pointer;
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (v_object) {
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_NOTIFY));
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = v_object;
+#line 3218 "scanner.c"
} else {
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = NULL;
+#line 3222 "scanner.c"
}
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (old) {
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
notify_unref (old);
+#line 3228 "scanner.c"
}
}
static void notify_class_init (NotifyClass * klass) {
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
notify_parent_class = g_type_class_peek_parent (klass);
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
NOTIFY_CLASS (klass)->finalize = notify_finalize;
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
NOTIFY_CLASS (klass)->run = notify_real_run;
+#line 3240 "scanner.c"
}
static void notify_instance_init (Notify * self) {
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->ref_count = 1;
+#line 3247 "scanner.c"
}
static void notify_finalize (Notify* obj) {
Notify * self;
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_NOTIFY, Notify);
+#line 3255 "scanner.c"
}
@@ -2515,17 +3272,24 @@ GType notify_get_type (void) {
gpointer notify_ref (gpointer instance) {
Notify* self;
self = instance;
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_atomic_int_inc (&self->ref_count);
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return instance;
+#line 3280 "scanner.c"
}
void notify_unref (gpointer instance) {
Notify* self;
self = instance;
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (g_atomic_int_dec_and_test (&self->ref_count)) {
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
NOTIFY_GET_CLASS (self)->finalize (self);
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_type_free_instance ((GTypeInstance *) self);
+#line 3293 "scanner.c"
}
}
@@ -2533,28 +3297,41 @@ void notify_unref (gpointer instance) {
static void notify_scanning_changed_real_run (Notify* base, Scanner* scanner) {
NotifyScanningChanged * self;
Scanner* _tmp0_;
+#line 138 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self = (NotifyScanningChanged*) base;
+#line 138 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (scanner != NULL);
+#line 138 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = scanner;
+#line 138 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_signal_emit_by_name (_tmp0_, "scanning-changed");
+#line 3309 "scanner.c"
}
NotifyScanningChanged* notify_scanning_changed_construct (GType object_type) {
NotifyScanningChanged* self = NULL;
+#line 136 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self = (NotifyScanningChanged*) notify_construct (object_type);
+#line 136 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return self;
+#line 3319 "scanner.c"
}
NotifyScanningChanged* notify_scanning_changed_new (void) {
+#line 136 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return notify_scanning_changed_construct (TYPE_NOTIFY_SCANNING_CHANGED);
+#line 3326 "scanner.c"
}
static void notify_scanning_changed_class_init (NotifyScanningChangedClass * klass) {
+#line 136 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
notify_scanning_changed_parent_class = g_type_class_peek_parent (klass);
+#line 136 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
NOTIFY_CLASS (klass)->run = notify_scanning_changed_real_run;
+#line 3335 "scanner.c"
}
@@ -2575,31 +3352,46 @@ GType notify_scanning_changed_get_type (void) {
static void _scan_device_unref0_ (gpointer var) {
+#line 144 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
(var == NULL) ? NULL : (var = (scan_device_unref (var), NULL));
+#line 3358 "scanner.c"
}
static void _g_list_free__scan_device_unref0_ (GList* self) {
+#line 144 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_list_foreach (self, (GFunc) _scan_device_unref0_, NULL);
+#line 144 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_list_free (self);
+#line 3367 "scanner.c"
}
NotifyUpdateDevices* notify_update_devices_construct (GType object_type, GList* devices) {
NotifyUpdateDevices* self = NULL;
GList* _tmp0_;
+#line 143 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self = (NotifyUpdateDevices*) notify_construct (object_type);
+#line 143 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = devices;
+#line 143 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
devices = NULL;
+#line 143 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
__g_list_free__scan_device_unref0_0 (self->priv->devices);
+#line 143 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->devices = _tmp0_;
+#line 143 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
__g_list_free__scan_device_unref0_0 (devices);
+#line 143 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return self;
+#line 3388 "scanner.c"
}
NotifyUpdateDevices* notify_update_devices_new (GList* devices) {
+#line 143 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return notify_update_devices_construct (TYPE_NOTIFY_UPDATE_DEVICES, devices);
+#line 3395 "scanner.c"
}
@@ -2607,32 +3399,49 @@ static void notify_update_devices_real_run (Notify* base, Scanner* scanner) {
NotifyUpdateDevices * self;
Scanner* _tmp0_;
GList* _tmp1_;
+#line 145 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self = (NotifyUpdateDevices*) base;
+#line 145 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (scanner != NULL);
+#line 145 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = scanner;
+#line 145 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp1_ = self->priv->devices;
+#line 145 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_signal_emit_by_name (_tmp0_, "update-devices", _tmp1_);
+#line 3413 "scanner.c"
}
static void notify_update_devices_class_init (NotifyUpdateDevicesClass * klass) {
+#line 141 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
notify_update_devices_parent_class = g_type_class_peek_parent (klass);
+#line 141 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
NOTIFY_CLASS (klass)->finalize = notify_update_devices_finalize;
+#line 141 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_type_class_add_private (klass, sizeof (NotifyUpdateDevicesPrivate));
+#line 141 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
NOTIFY_CLASS (klass)->run = notify_update_devices_real_run;
+#line 3426 "scanner.c"
}
static void notify_update_devices_instance_init (NotifyUpdateDevices * self) {
+#line 141 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv = NOTIFY_UPDATE_DEVICES_GET_PRIVATE (self);
+#line 3433 "scanner.c"
}
static void notify_update_devices_finalize (Notify* obj) {
NotifyUpdateDevices * self;
+#line 141 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_NOTIFY_UPDATE_DEVICES, NotifyUpdateDevices);
+#line 144 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
__g_list_free__scan_device_unref0_0 (self->priv->devices);
+#line 141 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
NOTIFY_CLASS (notify_update_devices_parent_class)->finalize (obj);
+#line 3445 "scanner.c"
}
@@ -2652,18 +3461,28 @@ NotifyRequestAuthorization* notify_request_authorization_construct (GType object
NotifyRequestAuthorization* self = NULL;
const gchar* _tmp0_;
gchar* _tmp1_;
+#line 150 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_val_if_fail (resource != NULL, NULL);
+#line 150 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self = (NotifyRequestAuthorization*) notify_construct (object_type);
+#line 150 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = resource;
+#line 150 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp1_ = g_strdup (_tmp0_);
+#line 150 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (self->priv->resource);
+#line 150 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->resource = _tmp1_;
+#line 150 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return self;
+#line 3479 "scanner.c"
}
NotifyRequestAuthorization* notify_request_authorization_new (const gchar* resource) {
+#line 150 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return notify_request_authorization_construct (TYPE_NOTIFY_REQUEST_AUTHORIZATION, resource);
+#line 3486 "scanner.c"
}
@@ -2671,32 +3490,49 @@ static void notify_request_authorization_real_run (Notify* base, Scanner* scanne
NotifyRequestAuthorization * self;
Scanner* _tmp0_;
const gchar* _tmp1_;
+#line 152 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self = (NotifyRequestAuthorization*) base;
+#line 152 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (scanner != NULL);
+#line 152 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = scanner;
+#line 152 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp1_ = self->priv->resource;
+#line 152 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_signal_emit_by_name (_tmp0_, "request-authorization", _tmp1_);
+#line 3504 "scanner.c"
}
static void notify_request_authorization_class_init (NotifyRequestAuthorizationClass * klass) {
+#line 148 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
notify_request_authorization_parent_class = g_type_class_peek_parent (klass);
+#line 148 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
NOTIFY_CLASS (klass)->finalize = notify_request_authorization_finalize;
+#line 148 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_type_class_add_private (klass, sizeof (NotifyRequestAuthorizationPrivate));
+#line 148 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
NOTIFY_CLASS (klass)->run = notify_request_authorization_real_run;
+#line 3517 "scanner.c"
}
static void notify_request_authorization_instance_init (NotifyRequestAuthorization * self) {
+#line 148 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv = NOTIFY_REQUEST_AUTHORIZATION_GET_PRIVATE (self);
+#line 3524 "scanner.c"
}
static void notify_request_authorization_finalize (Notify* obj) {
NotifyRequestAuthorization * self;
+#line 148 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_NOTIFY_REQUEST_AUTHORIZATION, NotifyRequestAuthorization);
+#line 151 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (self->priv->resource);
+#line 148 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
NOTIFY_CLASS (notify_request_authorization_parent_class)->finalize (obj);
+#line 3536 "scanner.c"
}
@@ -2717,20 +3553,32 @@ NotifyScanFailed* notify_scan_failed_construct (GType object_type, gint error_co
gint _tmp0_;
const gchar* _tmp1_;
gchar* _tmp2_;
+#line 157 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_val_if_fail (error_string != NULL, NULL);
+#line 157 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self = (NotifyScanFailed*) notify_construct (object_type);
+#line 157 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = error_code;
+#line 157 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->error_code = _tmp0_;
+#line 157 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp1_ = error_string;
+#line 157 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp2_ = g_strdup (_tmp1_);
+#line 157 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (self->priv->error_string);
+#line 157 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->error_string = _tmp2_;
+#line 157 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return self;
+#line 3575 "scanner.c"
}
NotifyScanFailed* notify_scan_failed_new (gint error_code, const gchar* error_string) {
+#line 157 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return notify_scan_failed_construct (TYPE_NOTIFY_SCAN_FAILED, error_code, error_string);
+#line 3582 "scanner.c"
}
@@ -2739,33 +3587,51 @@ static void notify_scan_failed_real_run (Notify* base, Scanner* scanner) {
Scanner* _tmp0_;
gint _tmp1_;
const gchar* _tmp2_;
+#line 160 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self = (NotifyScanFailed*) base;
+#line 160 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (scanner != NULL);
+#line 160 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = scanner;
+#line 160 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp1_ = self->priv->error_code;
+#line 160 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp2_ = self->priv->error_string;
+#line 160 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_signal_emit_by_name (_tmp0_, "scan-failed", _tmp1_, _tmp2_);
+#line 3603 "scanner.c"
}
static void notify_scan_failed_class_init (NotifyScanFailedClass * klass) {
+#line 155 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
notify_scan_failed_parent_class = g_type_class_peek_parent (klass);
+#line 155 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
NOTIFY_CLASS (klass)->finalize = notify_scan_failed_finalize;
+#line 155 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_type_class_add_private (klass, sizeof (NotifyScanFailedPrivate));
+#line 155 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
NOTIFY_CLASS (klass)->run = notify_scan_failed_real_run;
+#line 3616 "scanner.c"
}
static void notify_scan_failed_instance_init (NotifyScanFailed * self) {
+#line 155 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv = NOTIFY_SCAN_FAILED_GET_PRIVATE (self);
+#line 3623 "scanner.c"
}
static void notify_scan_failed_finalize (Notify* obj) {
NotifyScanFailed * self;
+#line 155 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_NOTIFY_SCAN_FAILED, NotifyScanFailed);
+#line 159 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (self->priv->error_string);
+#line 155 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
NOTIFY_CLASS (notify_scan_failed_parent_class)->finalize (obj);
+#line 3635 "scanner.c"
}
@@ -2784,28 +3650,41 @@ GType notify_scan_failed_get_type (void) {
static void notify_document_done_real_run (Notify* base, Scanner* scanner) {
NotifyDocumentDone * self;
Scanner* _tmp0_;
+#line 165 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self = (NotifyDocumentDone*) base;
+#line 165 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (scanner != NULL);
+#line 165 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = scanner;
+#line 165 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_signal_emit_by_name (_tmp0_, "document-done");
+#line 3662 "scanner.c"
}
NotifyDocumentDone* notify_document_done_construct (GType object_type) {
NotifyDocumentDone* self = NULL;
+#line 163 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self = (NotifyDocumentDone*) notify_construct (object_type);
+#line 163 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return self;
+#line 3672 "scanner.c"
}
NotifyDocumentDone* notify_document_done_new (void) {
+#line 163 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return notify_document_done_construct (TYPE_NOTIFY_DOCUMENT_DONE);
+#line 3679 "scanner.c"
}
static void notify_document_done_class_init (NotifyDocumentDoneClass * klass) {
+#line 163 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
notify_document_done_parent_class = g_type_class_peek_parent (klass);
+#line 163 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
NOTIFY_CLASS (klass)->run = notify_document_done_real_run;
+#line 3688 "scanner.c"
}
@@ -2828,28 +3707,41 @@ GType notify_document_done_get_type (void) {
static void notify_expect_page_real_run (Notify* base, Scanner* scanner) {
NotifyExpectPage * self;
Scanner* _tmp0_;
+#line 170 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self = (NotifyExpectPage*) base;
+#line 170 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (scanner != NULL);
+#line 170 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = scanner;
+#line 170 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_signal_emit_by_name (_tmp0_, "expect-page");
+#line 3719 "scanner.c"
}
NotifyExpectPage* notify_expect_page_construct (GType object_type) {
NotifyExpectPage* self = NULL;
+#line 168 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self = (NotifyExpectPage*) notify_construct (object_type);
+#line 168 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return self;
+#line 3729 "scanner.c"
}
NotifyExpectPage* notify_expect_page_new (void) {
+#line 168 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return notify_expect_page_construct (TYPE_NOTIFY_EXPECT_PAGE);
+#line 3736 "scanner.c"
}
static void notify_expect_page_class_init (NotifyExpectPageClass * klass) {
+#line 168 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
notify_expect_page_parent_class = g_type_class_peek_parent (klass);
+#line 168 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
NOTIFY_CLASS (klass)->run = notify_expect_page_real_run;
+#line 3745 "scanner.c"
}
@@ -2870,7 +3762,9 @@ GType notify_expect_page_get_type (void) {
static gpointer _scan_page_info_ref0 (gpointer self) {
+#line 175 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return self ? scan_page_info_ref (self) : NULL;
+#line 3768 "scanner.c"
}
@@ -2879,20 +3773,32 @@ NotifyGotPageInfo* notify_got_page_info_construct (GType object_type, gint job_i
gint _tmp0_;
ScanPageInfo* _tmp1_;
ScanPageInfo* _tmp2_;
+#line 175 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_val_if_fail (info != NULL, NULL);
+#line 175 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self = (NotifyGotPageInfo*) notify_construct (object_type);
+#line 175 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = job_id;
+#line 175 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->job_id = _tmp0_;
+#line 175 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp1_ = info;
+#line 175 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp2_ = _scan_page_info_ref0 (_tmp1_);
+#line 175 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_scan_page_info_unref0 (self->priv->info);
+#line 175 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->info = _tmp2_;
+#line 175 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return self;
+#line 3795 "scanner.c"
}
NotifyGotPageInfo* notify_got_page_info_new (gint job_id, ScanPageInfo* info) {
+#line 175 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return notify_got_page_info_construct (TYPE_NOTIFY_GOT_PAGE_INFO, job_id, info);
+#line 3802 "scanner.c"
}
@@ -2903,51 +3809,83 @@ static void notify_got_page_info_real_run (Notify* base, Scanner* scanner) {
Scanner* _tmp2_;
gint _tmp3_;
gboolean _tmp7_;
+#line 178 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self = (NotifyGotPageInfo*) base;
+#line 178 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (scanner != NULL);
+#line 180 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp1_ = self->priv->job_id;
+#line 180 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp2_ = scanner;
+#line 180 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp3_ = _tmp2_->first_job_id;
+#line 180 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp1_ >= _tmp3_) {
+#line 3825 "scanner.c"
gint _tmp4_;
Scanner* _tmp5_;
gint _tmp6_;
+#line 180 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp4_ = self->priv->job_id;
+#line 180 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp5_ = scanner;
+#line 180 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp6_ = _tmp5_->job_id;
+#line 180 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = _tmp4_ < _tmp6_;
+#line 3837 "scanner.c"
} else {
+#line 180 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = FALSE;
+#line 3841 "scanner.c"
}
+#line 180 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp7_ = _tmp0_;
+#line 180 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp7_) {
+#line 3847 "scanner.c"
Scanner* _tmp8_;
ScanPageInfo* _tmp9_;
+#line 181 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp8_ = scanner;
+#line 181 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp9_ = self->priv->info;
+#line 181 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_signal_emit_by_name (_tmp8_, "got-page-info", _tmp9_);
+#line 3856 "scanner.c"
}
}
static void notify_got_page_info_class_init (NotifyGotPageInfoClass * klass) {
+#line 173 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
notify_got_page_info_parent_class = g_type_class_peek_parent (klass);
+#line 173 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
NOTIFY_CLASS (klass)->finalize = notify_got_page_info_finalize;
+#line 173 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_type_class_add_private (klass, sizeof (NotifyGotPageInfoPrivate));
+#line 173 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
NOTIFY_CLASS (klass)->run = notify_got_page_info_real_run;
+#line 3870 "scanner.c"
}
static void notify_got_page_info_instance_init (NotifyGotPageInfo * self) {
+#line 173 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv = NOTIFY_GOT_PAGE_INFO_GET_PRIVATE (self);
+#line 3877 "scanner.c"
}
static void notify_got_page_info_finalize (Notify* obj) {
NotifyGotPageInfo * self;
+#line 173 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_NOTIFY_GOT_PAGE_INFO, NotifyGotPageInfo);
+#line 177 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_scan_page_info_unref0 (self->priv->info);
+#line 173 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
NOTIFY_CLASS (notify_got_page_info_parent_class)->finalize (obj);
+#line 3889 "scanner.c"
}
@@ -2966,15 +3904,22 @@ GType notify_got_page_info_get_type (void) {
NotifyPageDone* notify_page_done_construct (GType object_type, gint job_id) {
NotifyPageDone* self = NULL;
gint _tmp0_;
+#line 187 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self = (NotifyPageDone*) notify_construct (object_type);
+#line 187 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = job_id;
+#line 187 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->job_id = _tmp0_;
+#line 187 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return self;
+#line 3916 "scanner.c"
}
NotifyPageDone* notify_page_done_new (gint job_id) {
+#line 187 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return notify_page_done_construct (TYPE_NOTIFY_PAGE_DONE, job_id);
+#line 3923 "scanner.c"
}
@@ -2985,48 +3930,78 @@ static void notify_page_done_real_run (Notify* base, Scanner* scanner) {
Scanner* _tmp2_;
gint _tmp3_;
gboolean _tmp7_;
+#line 189 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self = (NotifyPageDone*) base;
+#line 189 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (scanner != NULL);
+#line 191 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp1_ = self->priv->job_id;
+#line 191 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp2_ = scanner;
+#line 191 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp3_ = _tmp2_->first_job_id;
+#line 191 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp1_ >= _tmp3_) {
+#line 3946 "scanner.c"
gint _tmp4_;
Scanner* _tmp5_;
gint _tmp6_;
+#line 191 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp4_ = self->priv->job_id;
+#line 191 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp5_ = scanner;
+#line 191 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp6_ = _tmp5_->job_id;
+#line 191 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = _tmp4_ < _tmp6_;
+#line 3958 "scanner.c"
} else {
+#line 191 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = FALSE;
+#line 3962 "scanner.c"
}
+#line 191 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp7_ = _tmp0_;
+#line 191 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp7_) {
+#line 3968 "scanner.c"
Scanner* _tmp8_;
+#line 192 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp8_ = scanner;
+#line 192 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_signal_emit_by_name (_tmp8_, "page-done");
+#line 3974 "scanner.c"
}
}
static void notify_page_done_class_init (NotifyPageDoneClass * klass) {
+#line 185 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
notify_page_done_parent_class = g_type_class_peek_parent (klass);
+#line 185 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
NOTIFY_CLASS (klass)->finalize = notify_page_done_finalize;
+#line 185 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_type_class_add_private (klass, sizeof (NotifyPageDonePrivate));
+#line 185 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
NOTIFY_CLASS (klass)->run = notify_page_done_real_run;
+#line 3988 "scanner.c"
}
static void notify_page_done_instance_init (NotifyPageDone * self) {
+#line 185 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv = NOTIFY_PAGE_DONE_GET_PRIVATE (self);
+#line 3995 "scanner.c"
}
static void notify_page_done_finalize (Notify* obj) {
NotifyPageDone * self;
+#line 185 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_NOTIFY_PAGE_DONE, NotifyPageDone);
+#line 185 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
NOTIFY_CLASS (notify_page_done_parent_class)->finalize (obj);
+#line 4005 "scanner.c"
}
@@ -3043,7 +4018,9 @@ GType notify_page_done_get_type (void) {
static gpointer _scan_line_ref0 (gpointer self) {
+#line 198 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return self ? scan_line_ref (self) : NULL;
+#line 4024 "scanner.c"
}
@@ -3052,20 +4029,32 @@ NotifyGotLine* notify_got_line_construct (GType object_type, gint job_id, ScanLi
gint _tmp0_;
ScanLine* _tmp1_;
ScanLine* _tmp2_;
+#line 198 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_val_if_fail (line != NULL, NULL);
+#line 198 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self = (NotifyGotLine*) notify_construct (object_type);
+#line 198 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = job_id;
+#line 198 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->job_id = _tmp0_;
+#line 198 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp1_ = line;
+#line 198 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp2_ = _scan_line_ref0 (_tmp1_);
+#line 198 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_scan_line_unref0 (self->priv->line);
+#line 198 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->line = _tmp2_;
+#line 198 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return self;
+#line 4051 "scanner.c"
}
NotifyGotLine* notify_got_line_new (gint job_id, ScanLine* line) {
+#line 198 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return notify_got_line_construct (TYPE_NOTIFY_GOT_LINE, job_id, line);
+#line 4058 "scanner.c"
}
@@ -3076,51 +4065,83 @@ static void notify_got_line_real_run (Notify* base, Scanner* scanner) {
Scanner* _tmp2_;
gint _tmp3_;
gboolean _tmp7_;
+#line 201 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self = (NotifyGotLine*) base;
+#line 201 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (scanner != NULL);
+#line 203 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp1_ = self->priv->job_id;
+#line 203 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp2_ = scanner;
+#line 203 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp3_ = _tmp2_->first_job_id;
+#line 203 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp1_ >= _tmp3_) {
+#line 4081 "scanner.c"
gint _tmp4_;
Scanner* _tmp5_;
gint _tmp6_;
+#line 203 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp4_ = self->priv->job_id;
+#line 203 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp5_ = scanner;
+#line 203 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp6_ = _tmp5_->job_id;
+#line 203 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = _tmp4_ < _tmp6_;
+#line 4093 "scanner.c"
} else {
+#line 203 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = FALSE;
+#line 4097 "scanner.c"
}
+#line 203 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp7_ = _tmp0_;
+#line 203 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp7_) {
+#line 4103 "scanner.c"
Scanner* _tmp8_;
ScanLine* _tmp9_;
+#line 204 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp8_ = scanner;
+#line 204 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp9_ = self->priv->line;
+#line 204 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_signal_emit_by_name (_tmp8_, "got-line", _tmp9_);
+#line 4112 "scanner.c"
}
}
static void notify_got_line_class_init (NotifyGotLineClass * klass) {
+#line 196 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
notify_got_line_parent_class = g_type_class_peek_parent (klass);
+#line 196 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
NOTIFY_CLASS (klass)->finalize = notify_got_line_finalize;
+#line 196 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_type_class_add_private (klass, sizeof (NotifyGotLinePrivate));
+#line 196 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
NOTIFY_CLASS (klass)->run = notify_got_line_real_run;
+#line 4126 "scanner.c"
}
static void notify_got_line_instance_init (NotifyGotLine * self) {
+#line 196 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv = NOTIFY_GOT_LINE_GET_PRIVATE (self);
+#line 4133 "scanner.c"
}
static void notify_got_line_finalize (Notify* obj) {
NotifyGotLine * self;
+#line 196 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_NOTIFY_GOT_LINE, NotifyGotLine);
+#line 200 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_scan_line_unref0 (self->priv->line);
+#line 196 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
NOTIFY_CLASS (notify_got_line_parent_class)->finalize (obj);
+#line 4145 "scanner.c"
}
@@ -3137,28 +4158,39 @@ GType notify_got_line_get_type (void) {
static void _scan_job_unref0_ (gpointer var) {
+#line 234 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
(var == NULL) ? NULL : (var = (scan_job_unref (var), NULL));
+#line 4164 "scanner.c"
}
static void _g_list_free__scan_job_unref0_ (GList* self) {
+#line 234 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_list_foreach (self, (GFunc) _scan_job_unref0_, NULL);
+#line 234 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_list_free (self);
+#line 4173 "scanner.c"
}
static void _request_unref0_ (gpointer var) {
+#line 273 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
(var == NULL) ? NULL : (var = (request_unref (var), NULL));
+#line 4180 "scanner.c"
}
static void _notify_unref0_ (gpointer var) {
+#line 274 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
(var == NULL) ? NULL : (var = (notify_unref (var), NULL));
+#line 4187 "scanner.c"
}
static void _credentials_unref0_ (gpointer var) {
+#line 275 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
(var == NULL) ? NULL : (var = (credentials_unref (var), NULL));
+#line 4194 "scanner.c"
}
@@ -3167,27 +4199,43 @@ static Scanner* scanner_construct (GType object_type) {
GAsyncQueue* _tmp0_;
GAsyncQueue* _tmp1_;
GAsyncQueue* _tmp2_;
+#line 271 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self = (Scanner*) g_type_create_instance (object_type);
+#line 273 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = g_async_queue_new_full (_request_unref0_);
+#line 273 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_async_queue_unref0 (self->priv->request_queue);
+#line 273 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->request_queue = _tmp0_;
+#line 274 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp1_ = g_async_queue_new_full (_notify_unref0_);
+#line 274 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_async_queue_unref0 (self->priv->notify_queue);
+#line 274 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->notify_queue = _tmp1_;
+#line 275 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp2_ = g_async_queue_new_full (_credentials_unref0_);
+#line 275 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_async_queue_unref0 (self->priv->authorize_queue);
+#line 275 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->authorize_queue = _tmp2_;
+#line 271 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return self;
+#line 4225 "scanner.c"
}
static Scanner* scanner_new (void) {
+#line 271 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return scanner_construct (TYPE_SCANNER);
+#line 4232 "scanner.c"
}
static gpointer _scanner_ref0 (gpointer self) {
+#line 282 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return self ? scanner_ref (self) : NULL;
+#line 4239 "scanner.c"
}
@@ -3196,17 +4244,29 @@ Scanner* scanner_get_instance (void) {
Scanner* _tmp0_;
Scanner* _tmp2_;
Scanner* _tmp3_;
+#line 280 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = scanner_scanner_object;
+#line 280 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp0_ == NULL) {
+#line 4252 "scanner.c"
Scanner* _tmp1_;
+#line 281 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp1_ = scanner_new ();
+#line 281 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_scanner_unref0 (scanner_scanner_object);
+#line 281 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scanner_scanner_object = _tmp1_;
+#line 4260 "scanner.c"
}
+#line 282 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp2_ = scanner_scanner_object;
+#line 282 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp3_ = _scanner_ref0 (_tmp2_);
+#line 282 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
result = _tmp3_;
+#line 282 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
+#line 4270 "scanner.c"
}
@@ -3215,26 +4275,39 @@ static gboolean scanner_notify_idle_cb (Scanner* self) {
GAsyncQueue* _tmp0_;
gpointer _tmp1_ = NULL;
Notify* notification;
+#line 285 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_val_if_fail (self != NULL, FALSE);
+#line 287 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = self->priv->notify_queue;
+#line 287 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp1_ = g_async_queue_pop (_tmp0_);
+#line 287 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
notification = (Notify*) _tmp1_;
+#line 288 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
notify_run (notification, self);
+#line 289 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
result = FALSE;
+#line 289 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_notify_unref0 (notification);
+#line 289 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
+#line 4295 "scanner.c"
}
static gpointer _notify_ref0 (gpointer self) {
+#line 294 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return self ? notify_ref (self) : NULL;
+#line 4302 "scanner.c"
}
static gboolean _scanner_notify_idle_cb_gsource_func (gpointer self) {
gboolean result;
result = scanner_notify_idle_cb (self);
+#line 295 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
+#line 4311 "scanner.c"
}
@@ -3242,13 +4315,21 @@ static void scanner_notify (Scanner* self, Notify* notification) {
GAsyncQueue* _tmp0_;
Notify* _tmp1_;
Notify* _tmp2_;
+#line 292 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (self != NULL);
+#line 292 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (notification != NULL);
+#line 294 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = self->priv->notify_queue;
+#line 294 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp1_ = notification;
+#line 294 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp2_ = _notify_ref0 (_tmp1_);
+#line 294 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_async_queue_push (_tmp0_, _tmp2_);
+#line 295 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, _scanner_notify_idle_cb_gsource_func, scanner_ref (self), scanner_unref);
+#line 4333 "scanner.c"
}
@@ -3258,44 +4339,78 @@ static void scanner_set_scanning (Scanner* self, gboolean is_scanning) {
gboolean _tmp2_;
gboolean _tmp4_;
gboolean _tmp9_;
+#line 298 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (self != NULL);
+#line 300 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp2_ = self->priv->scanning;
+#line 300 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp2_) {
+#line 4349 "scanner.c"
gboolean _tmp3_;
+#line 300 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp3_ = is_scanning;
+#line 300 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp1_ = !_tmp3_;
+#line 4355 "scanner.c"
} else {
+#line 300 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp1_ = FALSE;
+#line 4359 "scanner.c"
}
+#line 300 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp4_ = _tmp1_;
+#line 300 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp4_) {
+#line 300 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = TRUE;
+#line 4367 "scanner.c"
} else {
gboolean _tmp5_ = FALSE;
gboolean _tmp6_;
gboolean _tmp8_;
+#line 300 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp6_ = self->priv->scanning;
+#line 300 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (!_tmp6_) {
+#line 4376 "scanner.c"
gboolean _tmp7_;
+#line 300 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp7_ = is_scanning;
+#line 300 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp5_ = _tmp7_;
+#line 4382 "scanner.c"
} else {
+#line 300 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp5_ = FALSE;
+#line 4386 "scanner.c"
}
+#line 300 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp8_ = _tmp5_;
+#line 300 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = _tmp8_;
+#line 4392 "scanner.c"
}
+#line 300 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp9_ = _tmp0_;
+#line 300 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp9_) {
+#line 4398 "scanner.c"
gboolean _tmp10_;
NotifyScanningChanged* _tmp11_;
NotifyScanningChanged* _tmp12_;
+#line 302 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp10_ = is_scanning;
+#line 302 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->scanning = _tmp10_;
+#line 303 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp11_ = notify_scanning_changed_new ();
+#line 303 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp12_ = _tmp11_;
+#line 303 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scanner_notify (self, (Notify*) _tmp12_);
+#line 303 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_notify_unref0 (_tmp12_);
+#line 4414 "scanner.c"
}
}
@@ -3304,12 +4419,19 @@ static gboolean string_contains (const gchar* self, const gchar* needle) {
gboolean result = FALSE;
const gchar* _tmp0_;
gchar* _tmp1_ = NULL;
+#line 1238 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
g_return_val_if_fail (self != NULL, FALSE);
+#line 1238 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
g_return_val_if_fail (needle != NULL, FALSE);
+#line 1239 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp0_ = needle;
+#line 1239 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp1_ = strstr ((gchar*) self, (gchar*) _tmp0_);
+#line 1239 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
result = _tmp1_ != NULL;
+#line 1239 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
return result;
+#line 4435 "scanner.c"
}
@@ -3319,21 +4441,37 @@ static gint scanner_get_device_weight (const gchar* device) {
gboolean _tmp1_ = FALSE;
const gchar* _tmp2_;
gboolean _tmp3_ = FALSE;
+#line 307 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_val_if_fail (device != NULL, 0);
+#line 312 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = device;
+#line 312 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp1_ = g_str_has_prefix (_tmp0_, "vfl:");
+#line 312 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp1_) {
+#line 313 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
result = 2;
+#line 313 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
+#line 4457 "scanner.c"
}
+#line 316 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp2_ = device;
+#line 316 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp3_ = string_contains (_tmp2_, "usb");
+#line 316 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp3_) {
+#line 317 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
result = 0;
+#line 317 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
+#line 4469 "scanner.c"
}
+#line 319 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
result = 1;
+#line 319 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
+#line 4475 "scanner.c"
}
@@ -3355,134 +4493,241 @@ static gint scanner_compare_devices (ScanDevice* device1, ScanDevice* device2) {
ScanDevice* _tmp13_;
const gchar* _tmp14_;
gint _tmp15_ = 0;
+#line 322 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_val_if_fail (device1 != NULL, 0);
+#line 322 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_val_if_fail (device2 != NULL, 0);
+#line 326 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = device1;
+#line 326 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp1_ = _tmp0_->name;
+#line 326 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp2_ = scanner_get_device_weight (_tmp1_);
+#line 326 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
weight1 = _tmp2_;
+#line 327 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp3_ = device2;
+#line 327 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp4_ = _tmp3_->name;
+#line 327 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp5_ = scanner_get_device_weight (_tmp4_);
+#line 327 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
weight2 = _tmp5_;
+#line 328 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp6_ = weight1;
+#line 328 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp7_ = weight2;
+#line 328 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp6_ != _tmp7_) {
+#line 4523 "scanner.c"
gint _tmp8_;
gint _tmp9_;
+#line 329 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp8_ = weight1;
+#line 329 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp9_ = weight2;
+#line 329 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
result = _tmp8_ - _tmp9_;
+#line 329 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
+#line 4534 "scanner.c"
}
+#line 331 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp10_ = g_strcmp0;
+#line 331 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp11_ = device1;
+#line 331 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp12_ = _tmp11_->label;
+#line 331 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp13_ = device2;
+#line 331 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp14_ = _tmp13_->label;
+#line 331 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp15_ = _tmp10_ (_tmp12_, _tmp14_);
+#line 331 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
result = _tmp15_;
+#line 331 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
+#line 4552 "scanner.c"
}
static gchar* sane_status_to_string (SANE_Status status) {
gchar* result = NULL;
SANE_Status _tmp0_;
+#line 54 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
_tmp0_ = status;
+#line 54 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
switch (_tmp0_) {
+#line 54 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
case SANE_STATUS_GOOD:
+#line 4565 "scanner.c"
{
gchar* _tmp1_;
+#line 57 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
_tmp1_ = g_strdup ("SANE_STATUS_GOOD");
+#line 57 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
result = _tmp1_;
+#line 57 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
return result;
+#line 4574 "scanner.c"
}
+#line 54 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
case SANE_STATUS_UNSUPPORTED:
+#line 4578 "scanner.c"
{
gchar* _tmp2_;
+#line 59 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
_tmp2_ = g_strdup ("SANE_STATUS_UNSUPPORTED");
+#line 59 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
result = _tmp2_;
+#line 59 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
return result;
+#line 4587 "scanner.c"
}
+#line 54 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
case SANE_STATUS_CANCELLED:
+#line 4591 "scanner.c"
{
gchar* _tmp3_;
+#line 61 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
_tmp3_ = g_strdup ("SANE_STATUS_CANCELLED");
+#line 61 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
result = _tmp3_;
+#line 61 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
return result;
+#line 4600 "scanner.c"
}
+#line 54 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
case SANE_STATUS_DEVICE_BUSY:
+#line 4604 "scanner.c"
{
gchar* _tmp4_;
+#line 63 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
_tmp4_ = g_strdup ("SANE_STATUS_DEVICE_BUSY");
+#line 63 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
result = _tmp4_;
+#line 63 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
return result;
+#line 4613 "scanner.c"
}
+#line 54 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
case SANE_STATUS_INVAL:
+#line 4617 "scanner.c"
{
gchar* _tmp5_;
+#line 65 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
_tmp5_ = g_strdup ("SANE_STATUS_INVAL");
+#line 65 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
result = _tmp5_;
+#line 65 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
return result;
+#line 4626 "scanner.c"
}
+#line 54 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
case SANE_STATUS_EOF:
+#line 4630 "scanner.c"
{
gchar* _tmp6_;
+#line 67 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
_tmp6_ = g_strdup ("SANE_STATUS_EOF");
+#line 67 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
result = _tmp6_;
+#line 67 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
return result;
+#line 4639 "scanner.c"
}
+#line 54 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
case SANE_STATUS_JAMMED:
+#line 4643 "scanner.c"
{
gchar* _tmp7_;
+#line 69 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
_tmp7_ = g_strdup ("SANE_STATUS_JAMMED");
+#line 69 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
result = _tmp7_;
+#line 69 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
return result;
+#line 4652 "scanner.c"
}
+#line 54 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
case SANE_STATUS_NO_DOCS:
+#line 4656 "scanner.c"
{
gchar* _tmp8_;
+#line 71 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
_tmp8_ = g_strdup ("SANE_STATUS_NO_DOCS");
+#line 71 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
result = _tmp8_;
+#line 71 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
return result;
+#line 4665 "scanner.c"
}
+#line 54 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
case SANE_STATUS_COVER_OPEN:
+#line 4669 "scanner.c"
{
gchar* _tmp9_;
+#line 73 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
_tmp9_ = g_strdup ("SANE_STATUS_COVER_OPEN");
+#line 73 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
result = _tmp9_;
+#line 73 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
return result;
+#line 4678 "scanner.c"
}
+#line 54 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
case SANE_STATUS_IO_ERROR:
+#line 4682 "scanner.c"
{
gchar* _tmp10_;
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
_tmp10_ = g_strdup ("SANE_STATUS_IO_ERROR");
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
result = _tmp10_;
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
return result;
+#line 4691 "scanner.c"
}
+#line 54 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
case SANE_STATUS_NO_MEM:
+#line 4695 "scanner.c"
{
gchar* _tmp11_;
+#line 77 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
_tmp11_ = g_strdup ("SANE_STATUS_NO_MEM");
+#line 77 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
result = _tmp11_;
+#line 77 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
return result;
+#line 4704 "scanner.c"
}
+#line 54 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
case SANE_STATUS_ACCESS_DENIED:
+#line 4708 "scanner.c"
{
gchar* _tmp12_;
+#line 79 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
_tmp12_ = g_strdup ("SANE_STATUS_ACCESS_DENIED");
+#line 79 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
result = _tmp12_;
+#line 79 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
return result;
+#line 4717 "scanner.c"
}
default:
{
SANE_Status _tmp13_;
gchar* _tmp14_ = NULL;
+#line 81 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
_tmp13_ = status;
+#line 81 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
_tmp14_ = g_strdup_printf ("SANE_STATUS(%d)", (gint) _tmp13_);
+#line 81 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
result = _tmp14_;
+#line 81 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
return result;
+#line 4731 "scanner.c"
}
}
}
@@ -3491,9 +4736,13 @@ static gchar* sane_status_to_string (SANE_Status status) {
static gchar* string_replace (const gchar* self, const gchar* old, const gchar* replacement) {
gchar* result = NULL;
GError * _inner_error_ = NULL;
+#line 1242 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
g_return_val_if_fail (self != NULL, NULL);
+#line 1242 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
g_return_val_if_fail (old != NULL, NULL);
+#line 1242 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
g_return_val_if_fail (replacement != NULL, NULL);
+#line 4746 "scanner.c"
{
const gchar* _tmp0_;
gchar* _tmp1_ = NULL;
@@ -3505,66 +4754,111 @@ static gchar* string_replace (const gchar* self, const gchar* old, const gchar*
const gchar* _tmp6_;
gchar* _tmp7_ = NULL;
gchar* _tmp8_;
+#line 1244 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp0_ = old;
+#line 1244 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp1_ = g_regex_escape_string (_tmp0_, -1);
+#line 1244 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp2_ = _tmp1_;
+#line 1244 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp3_ = g_regex_new (_tmp2_, 0, 0, &_inner_error_);
+#line 1244 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp4_ = _tmp3_;
+#line 1244 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_g_free0 (_tmp2_);
+#line 1244 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
regex = _tmp4_;
+#line 1244 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
if (_inner_error_ != NULL) {
+#line 1244 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
if (_inner_error_->domain == G_REGEX_ERROR) {
- goto __catch13_g_regex_error;
+#line 4776 "scanner.c"
+ goto __catch14_g_regex_error;
}
+#line 1244 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 1244 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
g_clear_error (&_inner_error_);
+#line 1244 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
return NULL;
+#line 4785 "scanner.c"
}
+#line 1245 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp5_ = regex;
+#line 1245 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp6_ = replacement;
+#line 1245 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp7_ = g_regex_replace_literal (_tmp5_, self, (gssize) (-1), 0, _tmp6_, 0, &_inner_error_);
+#line 1245 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp8_ = _tmp7_;
+#line 1245 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
if (_inner_error_ != NULL) {
+#line 1245 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_g_regex_unref0 (regex);
+#line 1245 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
if (_inner_error_->domain == G_REGEX_ERROR) {
- goto __catch13_g_regex_error;
+#line 4801 "scanner.c"
+ goto __catch14_g_regex_error;
}
+#line 1245 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_g_regex_unref0 (regex);
+#line 1245 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 1245 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
g_clear_error (&_inner_error_);
+#line 1245 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
return NULL;
+#line 4812 "scanner.c"
}
+#line 1245 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
result = _tmp8_;
+#line 1245 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_g_regex_unref0 (regex);
+#line 1245 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
return result;
+#line 4820 "scanner.c"
}
- goto __finally13;
- __catch13_g_regex_error:
+ goto __finally14;
+ __catch14_g_regex_error:
{
GError* e = NULL;
+#line 1243 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
e = _inner_error_;
+#line 1243 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_inner_error_ = NULL;
+#line 1247 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
g_assert_not_reached ();
+#line 1243 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_g_error_free0 (e);
+#line 4834 "scanner.c"
}
- __finally13:
+ __finally14:
+#line 1243 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
if (_inner_error_ != NULL) {
+#line 1243 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 1243 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
g_clear_error (&_inner_error_);
+#line 1243 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
return NULL;
+#line 4845 "scanner.c"
}
}
static gpointer _scan_device_ref0 (gpointer self) {
+#line 365 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return self ? scan_device_ref (self) : NULL;
+#line 4853 "scanner.c"
}
static gint _scanner_compare_devices_gcompare_func (gconstpointer a, gconstpointer b) {
gint result;
result = scanner_compare_devices (a, b);
+#line 369 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
+#line 4862 "scanner.c"
}
@@ -3584,39 +4878,70 @@ static void scanner_do_redetect (Scanner* self) {
GList* _tmp64_;
NotifyUpdateDevices* _tmp65_;
NotifyUpdateDevices* _tmp66_;
+#line 334 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (self != NULL);
+#line 336 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
device_list = NULL;
+#line 336 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
device_list_length1 = 0;
+#line 336 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_device_list_size_ = device_list_length1;
+#line 337 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp1_ = sane_get_devices (&_tmp0_, FALSE);
+#line 337 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
device_list = _tmp0_;
+#line 337 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
device_list_length1 = -1;
+#line 337 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_device_list_size_ = device_list_length1;
+#line 337 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
status = _tmp1_;
+#line 338 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp2_ = status;
+#line 338 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp3_ = sane_status_to_string (_tmp2_);
+#line 338 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp4_ = _tmp3_;
- g_debug ("scanner.vala:334: sane_get_devices () -> %s", _tmp4_);
+#line 338 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ g_debug ("scanner.vala:338: sane_get_devices () -> %s", _tmp4_);
+#line 338 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (_tmp4_);
+#line 339 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp5_ = status;
+#line 339 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp5_ != SANE_STATUS_GOOD) {
+#line 4914 "scanner.c"
SANE_Status _tmp6_;
const gchar* _tmp7_ = NULL;
+#line 341 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp6_ = status;
+#line 341 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp7_ = sane_strstatus (_tmp6_);
- g_warning ("scanner.vala:337: Unable to get SANE devices: %s", _tmp7_);
+#line 341 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ g_warning ("scanner.vala:341: Unable to get SANE devices: %s", _tmp7_);
+#line 342 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->need_redetect = FALSE;
+#line 343 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->state = SCAN_STATE_IDLE;
+#line 344 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return;
+#line 4929 "scanner.c"
}
+#line 347 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
devices = NULL;
+#line 4933 "scanner.c"
{
gint i;
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
i = 0;
+#line 4938 "scanner.c"
{
gboolean _tmp8_;
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp8_ = TRUE;
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
while (TRUE) {
+#line 4945 "scanner.c"
gboolean _tmp9_;
SANE_Device** _tmp11_;
gint _tmp11__length1;
@@ -3673,95 +4998,182 @@ static void scanner_do_redetect (Scanner* self) {
gchar* _tmp54_;
ScanDevice* _tmp55_;
ScanDevice* _tmp56_;
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp9_ = _tmp8_;
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (!_tmp9_) {
+#line 5006 "scanner.c"
gint _tmp10_;
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp10_ = i;
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
i = _tmp10_ + 1;
+#line 5012 "scanner.c"
}
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp8_ = FALSE;
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp11_ = device_list;
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp11__length1 = device_list_length1;
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp12_ = i;
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp13_ = _tmp11_[_tmp12_];
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (!(_tmp13_ != NULL)) {
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
+#line 5028 "scanner.c"
}
+#line 350 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp14_ = device_list;
+#line 350 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp14__length1 = device_list_length1;
+#line 350 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp15_ = i;
+#line 350 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp16_ = _tmp14_[_tmp15_];
+#line 350 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp17_ = _tmp16_->name;
+#line 350 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp18_ = device_list;
+#line 350 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp18__length1 = device_list_length1;
+#line 350 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp19_ = i;
+#line 350 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp20_ = _tmp18_[_tmp19_];
+#line 350 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp21_ = _tmp20_->vendor;
+#line 350 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp22_ = device_list;
+#line 350 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp22__length1 = device_list_length1;
+#line 350 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp23_ = i;
+#line 350 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp24_ = _tmp22_[_tmp23_];
+#line 350 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp25_ = _tmp24_->model;
+#line 350 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp26_ = device_list;
+#line 350 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp26__length1 = device_list_length1;
+#line 350 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp27_ = i;
+#line 350 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp28_ = _tmp26_[_tmp27_];
+#line 350 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp29_ = _tmp28_->type;
- g_debug ("scanner.vala:346: Device: name=\"%s\" vendor=\"%s\" model=\"%s\" type=" \
+#line 350 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ g_debug ("scanner.vala:350: Device: name=\"%s\" vendor=\"%s\" model=\"%s\" type=" \
"\"%s\"", _tmp17_, _tmp21_, _tmp25_, _tmp29_);
+#line 353 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp30_ = scan_device_new ();
+#line 353 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scan_device = _tmp30_;
+#line 354 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp31_ = scan_device;
+#line 354 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp32_ = device_list;
+#line 354 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp32__length1 = device_list_length1;
+#line 354 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp33_ = i;
+#line 354 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp34_ = _tmp32_[_tmp33_];
+#line 354 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp35_ = _tmp34_->name;
+#line 354 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp36_ = g_strdup (_tmp35_);
+#line 354 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (_tmp31_->name);
+#line 354 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp31_->name = _tmp36_;
+#line 357 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp37_ = device_list;
+#line 357 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp37__length1 = device_list_length1;
+#line 357 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp38_ = i;
+#line 357 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp39_ = _tmp37_[_tmp38_];
+#line 357 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp40_ = _tmp39_->vendor;
+#line 357 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp41_ = g_strdup (_tmp40_);
+#line 357 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
vendor = _tmp41_;
+#line 358 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp42_ = vendor;
+#line 358 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (g_strcmp0 (_tmp42_, "Hewlett-Packard") == 0) {
+#line 5112 "scanner.c"
gchar* _tmp43_;
+#line 359 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp43_ = g_strdup ("HP");
+#line 359 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (vendor);
+#line 359 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
vendor = _tmp43_;
+#line 5120 "scanner.c"
}
+#line 361 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp44_ = scan_device;
+#line 361 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp45_ = vendor;
+#line 361 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp46_ = device_list;
+#line 361 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp46__length1 = device_list_length1;
+#line 361 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp47_ = i;
+#line 361 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp48_ = _tmp46_[_tmp47_];
+#line 361 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp49_ = _tmp48_->model;
+#line 361 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp50_ = g_strdup_printf ("%s %s", _tmp45_, _tmp49_);
+#line 361 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (_tmp44_->label);
+#line 361 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp44_->label = _tmp50_;
+#line 363 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp51_ = scan_device;
+#line 363 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp52_ = _tmp51_->label;
+#line 363 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp53_ = string_replace (_tmp52_, "_", " ");
+#line 363 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp54_ = _tmp53_;
+#line 363 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (_tmp54_);
+#line 365 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp55_ = scan_device;
+#line 365 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp56_ = _scan_device_ref0 (_tmp55_);
+#line 365 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
devices = g_list_append (devices, _tmp56_);
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (vendor);
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_scan_device_unref0 (scan_device);
+#line 5162 "scanner.c"
}
}
}
+#line 369 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
devices = g_list_sort (devices, _scanner_compare_devices_gcompare_func);
+#line 371 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->need_redetect = FALSE;
+#line 372 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->state = SCAN_STATE_IDLE;
+#line 374 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp57_ = devices;
+#line 374 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp57_ != NULL) {
+#line 5176 "scanner.c"
GList* _tmp58_;
gconstpointer _tmp59_ = NULL;
ScanDevice* _tmp60_;
@@ -3769,27 +5181,213 @@ static void scanner_do_redetect (Scanner* self) {
ScanDevice* _tmp61_;
const gchar* _tmp62_;
gchar* _tmp63_;
+#line 376 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp58_ = devices;
+#line 376 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp59_ = g_list_nth_data (_tmp58_, (guint) 0);
+#line 376 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp60_ = _scan_device_ref0 ((ScanDevice*) _tmp59_);
+#line 376 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
device = _tmp60_;
+#line 377 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp61_ = device;
+#line 377 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp62_ = _tmp61_->name;
+#line 377 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp63_ = g_strdup (_tmp62_);
+#line 377 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (self->priv->default_device);
+#line 377 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->default_device = _tmp63_;
+#line 374 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_scan_device_unref0 (device);
+#line 5204 "scanner.c"
} else {
+#line 380 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (self->priv->default_device);
+#line 380 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->default_device = NULL;
+#line 5210 "scanner.c"
}
+#line 382 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp64_ = devices;
+#line 382 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
devices = NULL;
+#line 382 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp65_ = notify_update_devices_new (_tmp64_);
+#line 382 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp66_ = _tmp65_;
+#line 382 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scanner_notify (self, (Notify*) _tmp66_);
+#line 382 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_notify_unref0 (_tmp66_);
+#line 334 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
__g_list_free__scan_device_unref0_0 (devices);
+#line 5226 "scanner.c"
+}
+
+
+static gint scanner_scale_int (Scanner* self, gint source_min, gint source_max, SANE_Option_Descriptor* option, gint value) {
+ gint result = 0;
+ gint _tmp0_;
+ gint v;
+ SANE_Option_Descriptor* _tmp1_;
+ SANE_Value_Type _tmp2_;
+ gint _tmp3_;
+ gboolean _tmp4_ = FALSE;
+ SANE_Option_Descriptor* _tmp5_;
+ SANE_Constraint_Type _tmp6_;
+ gboolean _tmp13_;
+#line 385 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ g_return_val_if_fail (self != NULL, 0);
+#line 385 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ g_return_val_if_fail (option != NULL, 0);
+#line 387 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp0_ = value;
+#line 387 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ v = _tmp0_;
+#line 389 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp1_ = option;
+#line 389 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp2_ = _tmp1_->type;
+#line 389 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp3_ = value;
+#line 389 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ g_return_val_if_fail (_tmp2_ == SANE_TYPE_INT, _tmp3_);
+#line 391 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp5_ = option;
+#line 391 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp6_ = _tmp5_->constraint_type;
+#line 391 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ if (_tmp6_ == SANE_CONSTRAINT_RANGE) {
+#line 5263 "scanner.c"
+ SANE_Option_Descriptor* _tmp7_;
+ SANE_Range* _tmp8_;
+ SANE_Word _tmp9_;
+ SANE_Option_Descriptor* _tmp10_;
+ SANE_Range* _tmp11_;
+ SANE_Word _tmp12_;
+#line 391 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp7_ = option;
+#line 391 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp8_ = _tmp7_->constraint.range;
+#line 391 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp9_ = _tmp8_->max;
+#line 391 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp10_ = option;
+#line 391 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp11_ = _tmp10_->constraint.range;
+#line 391 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp12_ = _tmp11_->min;
+#line 391 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp4_ = _tmp9_ != _tmp12_;
+#line 5284 "scanner.c"
+ } else {
+#line 391 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp4_ = FALSE;
+#line 5288 "scanner.c"
+ }
+#line 391 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp13_ = _tmp4_;
+#line 391 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ if (_tmp13_) {
+#line 5294 "scanner.c"
+ gint _tmp14_;
+ gint _tmp15_;
+ gint _tmp16_;
+ SANE_Option_Descriptor* _tmp17_;
+ SANE_Range* _tmp18_;
+ SANE_Word _tmp19_;
+ SANE_Option_Descriptor* _tmp20_;
+ SANE_Range* _tmp21_;
+ SANE_Word _tmp22_;
+ gint _tmp23_;
+ gint _tmp24_;
+ gint _tmp25_;
+ gint _tmp26_;
+ SANE_Option_Descriptor* _tmp27_;
+ SANE_Range* _tmp28_;
+ SANE_Word _tmp29_;
+ gint _tmp30_;
+ gint _tmp31_;
+ gint _tmp32_;
+ gint _tmp33_;
+ SANE_Option_Descriptor* _tmp34_;
+ SANE_Range* _tmp35_;
+ SANE_Word _tmp36_;
+ SANE_Option_Descriptor* _tmp37_;
+ SANE_Range* _tmp38_;
+ SANE_Word _tmp39_;
+#line 393 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp14_ = v;
+#line 393 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp15_ = source_min;
+#line 393 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ v = _tmp14_ - _tmp15_;
+#line 394 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp16_ = v;
+#line 394 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp17_ = option;
+#line 394 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp18_ = _tmp17_->constraint.range;
+#line 394 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp19_ = _tmp18_->max;
+#line 394 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp20_ = option;
+#line 394 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp21_ = _tmp20_->constraint.range;
+#line 394 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp22_ = _tmp21_->min;
+#line 394 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ v = _tmp16_ * ((gint) (_tmp19_ - _tmp22_));
+#line 395 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp23_ = v;
+#line 395 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp24_ = source_max;
+#line 395 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp25_ = source_min;
+#line 395 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ v = _tmp23_ / (_tmp24_ - _tmp25_);
+#line 396 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp26_ = v;
+#line 396 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp27_ = option;
+#line 396 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp28_ = _tmp27_->constraint.range;
+#line 396 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp29_ = _tmp28_->min;
+#line 396 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ v = _tmp26_ + ((gint) _tmp29_);
+#line 397 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp30_ = value;
+#line 397 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp31_ = source_min;
+#line 397 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp32_ = source_max;
+#line 397 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp33_ = v;
+#line 397 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp34_ = option;
+#line 397 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp35_ = _tmp34_->constraint.range;
+#line 397 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp36_ = _tmp35_->min;
+#line 397 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp37_ = option;
+#line 397 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp38_ = _tmp37_->constraint.range;
+#line 397 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp39_ = _tmp38_->max;
+#line 397 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ g_debug ("scanner.vala:397: scale_int: scaling %d [min: %d, max: %d] to %d [min:" \
+" %d, max: %d]", _tmp30_, _tmp31_, _tmp32_, _tmp33_, (gint) _tmp36_, (gint) _tmp39_);
+#line 5383 "scanner.c"
+ }
+#line 401 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ result = v;
+#line 401 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ return result;
+#line 5389 "scanner.c"
}
@@ -3807,39 +5405,70 @@ static gboolean scanner_set_default_option (Scanner* self, SANE_Handle handle, S
gchar* _tmp8_;
SANE_Status _tmp9_;
SANE_Status _tmp14_;
+#line 404 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_val_if_fail (self != NULL, FALSE);
+#line 404 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_val_if_fail (option != NULL, FALSE);
+#line 407 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = option;
+#line 407 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp1_ = _tmp0_->cap;
+#line 407 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if ((_tmp1_ & SANE_CAP_AUTOMATIC) == ((SANE_Int) 0)) {
+#line 408 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
result = FALSE;
+#line 408 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
+#line 5421 "scanner.c"
}
+#line 410 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp2_ = handle;
+#line 410 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp3_ = option_index;
+#line 410 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp4_ = sane_control_option (_tmp2_, _tmp3_, SANE_ACTION_SET_AUTO, NULL, NULL);
+#line 410 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
status = _tmp4_;
+#line 411 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp5_ = option_index;
+#line 411 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp6_ = status;
+#line 411 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp7_ = sane_status_to_string (_tmp6_);
+#line 411 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp8_ = _tmp7_;
- g_debug ("scanner.vala:388: sane_control_option (%d, SANE_ACTION_SET_AUTO) -> %s", (gint) _tmp5_, _tmp8_);
+#line 411 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ g_debug ("scanner.vala:411: sane_control_option (%d, SANE_ACTION_SET_AUTO) -> %s", (gint) _tmp5_, _tmp8_);
+#line 411 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (_tmp8_);
+#line 412 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp9_ = status;
+#line 412 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp9_ != SANE_STATUS_GOOD) {
+#line 5447 "scanner.c"
SANE_Option_Descriptor* _tmp10_;
const gchar* _tmp11_;
SANE_Status _tmp12_;
const gchar* _tmp13_ = NULL;
+#line 413 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp10_ = option;
+#line 413 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp11_ = _tmp10_->name;
+#line 413 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp12_ = status;
+#line 413 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp13_ = sane_strstatus (_tmp12_);
- g_warning ("scanner.vala:390: Error setting default option %s: %s", _tmp11_, _tmp13_);
+#line 413 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ g_warning ("scanner.vala:413: Error setting default option %s: %s", _tmp11_, _tmp13_);
+#line 5462 "scanner.c"
}
+#line 415 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp14_ = status;
+#line 415 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
result = _tmp14_ == SANE_STATUS_GOOD;
+#line 415 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
+#line 5470 "scanner.c"
}
@@ -3864,42 +5493,78 @@ static void scanner_set_bool_option (Scanner* self, SANE_Handle handle, SANE_Opt
gchar* _tmp14_ = NULL;
gchar* _tmp15_;
const gchar* _tmp16_;
+#line 418 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (self != NULL);
+#line 418 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (option != NULL);
+#line 420 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = option;
+#line 420 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp1_ = _tmp0_->type;
+#line 420 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (_tmp1_ == SANE_TYPE_BOOL);
+#line 422 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp2_ = value;
+#line 422 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
v = (SANE_Bool) _tmp2_;
+#line 423 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp3_ = handle;
+#line 423 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp4_ = option_index;
+#line 423 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp5_ = sane_control_option (_tmp3_, _tmp4_, SANE_ACTION_SET_VALUE, &v, NULL);
+#line 423 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
status = _tmp5_;
+#line 424 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp6_ = v;
+#line 424 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_vala_result = (gboolean) _tmp6_;
+#line 425 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp8_ = value;
+#line 425 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp8_) {
+#line 425 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp7_ = "SANE_TRUE";
+#line 5527 "scanner.c"
} else {
+#line 425 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp7_ = "SANE_FALSE";
+#line 5531 "scanner.c"
}
+#line 425 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp10_ = _vala_result;
+#line 425 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp10_) {
+#line 425 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp9_ = "SANE_TRUE";
+#line 5539 "scanner.c"
} else {
+#line 425 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp9_ = "SANE_FALSE";
+#line 5543 "scanner.c"
}
+#line 425 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp11_ = option_index;
+#line 425 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp12_ = _tmp7_;
+#line 425 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp13_ = status;
+#line 425 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp14_ = sane_status_to_string (_tmp13_);
+#line 425 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp15_ = _tmp14_;
+#line 425 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp16_ = _tmp9_;
- g_debug ("scanner.vala:402: sane_control_option (%d, SANE_ACTION_SET_VALUE, %s) " \
+#line 425 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ g_debug ("scanner.vala:425: sane_control_option (%d, SANE_ACTION_SET_VALUE, %s) " \
"-> (%s, %s)", (gint) _tmp11_, _tmp12_, _tmp15_, _tmp16_);
+#line 425 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (_tmp15_);
+#line 418 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_result_) {
+#line 418 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
*_result_ = _vala_result;
+#line 5565 "scanner.c"
}
}
@@ -3922,16 +5587,27 @@ static void scanner_set_int_option (Scanner* self, SANE_Handle handle, SANE_Opti
gchar* _tmp55_;
SANE_Int _tmp56_;
SANE_Int _tmp57_;
+#line 428 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (self != NULL);
+#line 428 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (option != NULL);
+#line 430 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = option;
+#line 430 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp1_ = _tmp0_->type;
+#line 430 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (_tmp1_ == SANE_TYPE_INT);
+#line 432 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp2_ = value;
+#line 432 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
v = (SANE_Int) _tmp2_;
+#line 433 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp3_ = option;
+#line 433 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp4_ = _tmp3_->constraint_type;
+#line 433 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp4_ == SANE_CONSTRAINT_RANGE) {
+#line 5608 "scanner.c"
SANE_Option_Descriptor* _tmp5_;
SANE_Range* _tmp6_;
SANE_Word _tmp7_;
@@ -3943,66 +5619,112 @@ static void scanner_set_int_option (Scanner* self, SANE_Handle handle, SANE_Opti
SANE_Option_Descriptor* _tmp20_;
SANE_Range* _tmp21_;
SANE_Word _tmp22_;
+#line 435 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp5_ = option;
+#line 435 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp6_ = _tmp5_->constraint.range;
+#line 435 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp7_ = _tmp6_->quant;
+#line 435 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp7_ != ((SANE_Word) 0)) {
+#line 5628 "scanner.c"
SANE_Int _tmp8_;
SANE_Option_Descriptor* _tmp9_;
SANE_Range* _tmp10_;
SANE_Word _tmp11_;
+#line 436 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp8_ = v;
+#line 436 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp9_ = option;
+#line 436 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp10_ = _tmp9_->constraint.range;
+#line 436 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp11_ = _tmp10_->quant;
+#line 436 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
v = _tmp8_ * _tmp11_;
+#line 5643 "scanner.c"
}
+#line 437 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp12_ = v;
+#line 437 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp13_ = option;
+#line 437 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp14_ = _tmp13_->constraint.range;
+#line 437 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp15_ = _tmp14_->min;
+#line 437 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp12_ < ((SANE_Int) _tmp15_)) {
+#line 5655 "scanner.c"
SANE_Option_Descriptor* _tmp16_;
SANE_Range* _tmp17_;
SANE_Word _tmp18_;
+#line 438 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp16_ = option;
+#line 438 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp17_ = _tmp16_->constraint.range;
+#line 438 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp18_ = _tmp17_->min;
+#line 438 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
v = (SANE_Int) _tmp18_;
+#line 5667 "scanner.c"
}
+#line 439 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp19_ = v;
+#line 439 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp20_ = option;
+#line 439 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp21_ = _tmp20_->constraint.range;
+#line 439 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp22_ = _tmp21_->max;
+#line 439 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp19_ > ((SANE_Int) _tmp22_)) {
+#line 5679 "scanner.c"
SANE_Option_Descriptor* _tmp23_;
SANE_Range* _tmp24_;
SANE_Word _tmp25_;
+#line 440 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp23_ = option;
+#line 440 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp24_ = _tmp23_->constraint.range;
+#line 440 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp25_ = _tmp24_->max;
+#line 440 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
v = (SANE_Int) _tmp25_;
+#line 5691 "scanner.c"
}
} else {
SANE_Option_Descriptor* _tmp26_;
SANE_Constraint_Type _tmp27_;
+#line 442 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp26_ = option;
+#line 442 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp27_ = _tmp26_->constraint_type;
+#line 442 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp27_ == SANE_CONSTRAINT_WORD_LIST) {
+#line 5702 "scanner.c"
gint _tmp28_;
gint distance;
gint nearest;
gint _tmp48_;
+#line 444 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp28_ = G_MAXINT;
+#line 444 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
distance = _tmp28_;
+#line 444 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
nearest = 0;
+#line 5713 "scanner.c"
{
gint i;
+#line 447 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
i = 0;
+#line 5718 "scanner.c"
{
gboolean _tmp29_;
+#line 447 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp29_ = TRUE;
+#line 447 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
while (TRUE) {
+#line 5725 "scanner.c"
gboolean _tmp30_;
gint _tmp32_;
SANE_Option_Descriptor* _tmp33_;
@@ -4022,66 +5744,121 @@ static void scanner_set_int_option (Scanner* self, SANE_Handle handle, SANE_Opti
gint _tmp43_ = 0;
gint _tmp44_;
gint _tmp45_;
+#line 447 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp30_ = _tmp29_;
+#line 447 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (!_tmp30_) {
+#line 5749 "scanner.c"
gint _tmp31_;
+#line 447 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp31_ = i;
+#line 447 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
i = _tmp31_ + 1;
+#line 5755 "scanner.c"
}
+#line 447 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp29_ = FALSE;
+#line 447 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp32_ = i;
+#line 447 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp33_ = option;
+#line 447 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp34_ = _tmp33_->constraint.word_list;
+#line 447 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp34__length1 = -1;
+#line 447 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp35_ = _tmp34_[0];
+#line 447 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (!(((SANE_Word) _tmp32_) < _tmp35_)) {
+#line 447 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
+#line 5773 "scanner.c"
}
+#line 449 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp36_ = option;
+#line 449 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp37_ = _tmp36_->constraint.word_list;
+#line 449 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp37__length1 = -1;
+#line 449 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp38_ = i;
+#line 449 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp39_ = _tmp37_[_tmp38_ + 1];
+#line 449 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
x = (gint) _tmp39_;
+#line 450 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp40_ = x;
+#line 450 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp41_ = v;
+#line 450 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
d = (gint) (_tmp40_ - _tmp41_);
+#line 451 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp42_ = d;
+#line 451 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp43_ = abs (_tmp42_);
+#line 451 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
d = _tmp43_;
+#line 452 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp44_ = d;
+#line 452 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp45_ = distance;
+#line 452 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp44_ < _tmp45_) {
+#line 5805 "scanner.c"
gint _tmp46_;
gint _tmp47_;
+#line 454 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp46_ = d;
+#line 454 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
distance = _tmp46_;
+#line 455 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp47_ = x;
+#line 455 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
nearest = _tmp47_;
+#line 5816 "scanner.c"
}
}
}
}
+#line 458 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp48_ = nearest;
+#line 458 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
v = (SANE_Int) _tmp48_;
+#line 5825 "scanner.c"
}
}
+#line 461 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp49_ = handle;
+#line 461 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp50_ = option_index;
+#line 461 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp51_ = sane_control_option (_tmp49_, _tmp50_, SANE_ACTION_SET_VALUE, &v, NULL);
+#line 461 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
status = _tmp51_;
+#line 462 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp52_ = option_index;
+#line 462 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp53_ = value;
+#line 462 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp54_ = sane_status_to_string (status);
+#line 462 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp55_ = _tmp54_;
+#line 462 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp56_ = v;
- g_debug ("scanner.vala:439: sane_control_option (%d, SANE_ACTION_SET_VALUE, %d) " \
+#line 462 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ g_debug ("scanner.vala:462: sane_control_option (%d, SANE_ACTION_SET_VALUE, %d) " \
"-> (%s, %d)", (gint) _tmp52_, _tmp53_, _tmp55_, (gint) _tmp56_);
+#line 462 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (_tmp55_);
+#line 463 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp57_ = v;
+#line 463 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_vala_result = (gint) _tmp57_;
+#line 428 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_result_) {
+#line 428 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
*_result_ = _vala_result;
+#line 5858 "scanner.c"
}
}
@@ -4107,16 +5884,27 @@ static void scanner_set_fixed_option (Scanner* self, SANE_Handle handle, SANE_Op
gchar* _tmp51_;
gdouble _tmp52_ = 0.0;
gdouble _tmp53_ = 0.0;
+#line 466 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (self != NULL);
+#line 466 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (option != NULL);
+#line 468 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = value;
+#line 468 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
v = _tmp0_;
+#line 471 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp1_ = option;
+#line 471 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp2_ = _tmp1_->type;
+#line 471 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (_tmp2_ == SANE_TYPE_FIXED);
+#line 473 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp3_ = option;
+#line 473 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp4_ = _tmp3_->constraint_type;
+#line 473 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp4_ == SANE_CONSTRAINT_RANGE) {
+#line 5904 "scanner.c"
SANE_Option_Descriptor* _tmp5_;
SANE_Range* _tmp6_;
SANE_Word _tmp7_;
@@ -4131,50 +5919,87 @@ static void scanner_set_fixed_option (Scanner* self, SANE_Handle handle, SANE_Op
gdouble _tmp14_;
gdouble _tmp16_;
gdouble _tmp17_;
+#line 475 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp5_ = option;
+#line 475 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp6_ = _tmp5_->constraint.range;
+#line 475 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp7_ = _tmp6_->min;
+#line 475 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp8_ = SANE_UNFIX ((SANE_Fixed) _tmp7_);
+#line 475 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
min = _tmp8_;
+#line 476 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp9_ = option;
+#line 476 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp10_ = _tmp9_->constraint.range;
+#line 476 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp11_ = _tmp10_->max;
+#line 476 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp12_ = SANE_UNFIX ((SANE_Fixed) _tmp11_);
+#line 476 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
max = _tmp12_;
+#line 478 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp13_ = v;
+#line 478 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp14_ = min;
+#line 478 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp13_ < _tmp14_) {
+#line 5945 "scanner.c"
gdouble _tmp15_;
+#line 479 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp15_ = min;
+#line 479 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
v = _tmp15_;
+#line 5951 "scanner.c"
}
+#line 480 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp16_ = v;
+#line 480 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp17_ = max;
+#line 480 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp16_ > _tmp17_) {
+#line 5959 "scanner.c"
gdouble _tmp18_;
+#line 481 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp18_ = max;
+#line 481 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
v = _tmp18_;
+#line 5965 "scanner.c"
}
} else {
SANE_Option_Descriptor* _tmp19_;
SANE_Constraint_Type _tmp20_;
+#line 483 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp19_ = option;
+#line 483 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp20_ = _tmp19_->constraint_type;
+#line 483 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp20_ == SANE_CONSTRAINT_WORD_LIST) {
+#line 5976 "scanner.c"
gdouble _tmp21_;
gdouble distance;
gdouble nearest;
gdouble _tmp42_;
+#line 485 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp21_ = DBL_MAX;
+#line 485 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
distance = _tmp21_;
+#line 485 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
nearest = 0.0;
+#line 5987 "scanner.c"
{
gint i;
+#line 488 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
i = 0;
+#line 5992 "scanner.c"
{
gboolean _tmp22_;
+#line 488 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp22_ = TRUE;
+#line 488 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
while (TRUE) {
+#line 5999 "scanner.c"
gboolean _tmp23_;
gint _tmp25_;
SANE_Option_Descriptor* _tmp26_;
@@ -4192,70 +6017,127 @@ static void scanner_set_fixed_option (Scanner* self, SANE_Handle handle, SANE_Op
gdouble _tmp35_;
gdouble _tmp36_ = 0.0;
gdouble _tmp37_;
+#line 488 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp23_ = _tmp22_;
+#line 488 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (!_tmp23_) {
+#line 6021 "scanner.c"
gint _tmp24_;
+#line 488 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp24_ = i;
+#line 488 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
i = _tmp24_ + 1;
+#line 6027 "scanner.c"
}
+#line 488 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp22_ = FALSE;
+#line 488 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp25_ = i;
+#line 488 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp26_ = option;
+#line 488 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp27_ = _tmp26_->constraint.word_list;
+#line 488 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp27__length1 = -1;
+#line 488 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp28_ = _tmp27_[0];
+#line 488 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (!(((SANE_Word) _tmp25_) < _tmp28_)) {
+#line 488 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
+#line 6045 "scanner.c"
}
+#line 490 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp29_ = option;
+#line 490 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp30_ = _tmp29_->constraint.word_list;
+#line 490 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp30__length1 = -1;
+#line 490 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp31_ = i;
+#line 490 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp32_ = _tmp30_[_tmp31_ + 1];
+#line 490 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp33_ = SANE_UNFIX ((SANE_Fixed) _tmp32_);
+#line 490 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
x = _tmp33_;
+#line 491 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp34_ = x;
+#line 491 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp35_ = v;
+#line 491 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp36_ = fabs (_tmp34_ - _tmp35_);
+#line 491 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp37_ = distance;
+#line 491 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp36_ < _tmp37_) {
+#line 6071 "scanner.c"
gdouble _tmp38_;
gdouble _tmp39_;
gdouble _tmp40_ = 0.0;
gdouble _tmp41_;
+#line 493 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp38_ = x;
+#line 493 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp39_ = v;
+#line 493 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp40_ = fabs (_tmp38_ - _tmp39_);
+#line 493 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
distance = _tmp40_;
+#line 494 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp41_ = x;
+#line 494 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
nearest = _tmp41_;
+#line 6088 "scanner.c"
}
}
}
}
+#line 497 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp42_ = nearest;
+#line 497 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
v = _tmp42_;
+#line 6097 "scanner.c"
}
}
+#line 500 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp43_ = v;
+#line 500 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp44_ = SANE_FIX (_tmp43_);
+#line 500 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
v_fixed = _tmp44_;
+#line 501 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp45_ = handle;
+#line 501 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp46_ = option_index;
+#line 501 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp47_ = sane_control_option (_tmp45_, _tmp46_, SANE_ACTION_SET_VALUE, &v_fixed, NULL);
+#line 501 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
status = _tmp47_;
+#line 502 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp48_ = option_index;
+#line 502 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp49_ = value;
+#line 502 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp50_ = sane_status_to_string (status);
+#line 502 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp51_ = _tmp50_;
+#line 502 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp52_ = SANE_UNFIX (v_fixed);
- g_debug ("scanner.vala:479: sane_control_option (%d, SANE_ACTION_SET_VALUE, %f) " \
+#line 502 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ g_debug ("scanner.vala:502: sane_control_option (%d, SANE_ACTION_SET_VALUE, %f) " \
"-> (%s, %f)", (gint) _tmp48_, _tmp49_, _tmp51_, _tmp52_);
+#line 502 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (_tmp51_);
+#line 504 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp53_ = SANE_UNFIX (v_fixed);
+#line 504 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_vala_result = _tmp53_;
+#line 466 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_result_) {
+#line 466 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
*_result_ = _vala_result;
+#line 6136 "scanner.c"
}
}
@@ -4264,11 +6146,17 @@ static gchar string_get (const gchar* self, glong index) {
gchar result = '\0';
glong _tmp0_;
gchar _tmp1_;
+#line 965 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
g_return_val_if_fail (self != NULL, '\0');
+#line 966 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp0_ = index;
+#line 966 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp1_ = ((gchar*) self)[_tmp0_];
+#line 966 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
result = _tmp1_;
+#line 966 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
return result;
+#line 6155 "scanner.c"
}
@@ -4303,26 +6191,46 @@ static gboolean scanner_set_string_option (Scanner* self, SANE_Handle handle, SA
gchar* _tmp34_ = NULL;
gchar* _tmp35_;
const gchar* _tmp36_;
+#line 507 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_val_if_fail (self != NULL, FALSE);
+#line 507 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_val_if_fail (option != NULL, FALSE);
+#line 507 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_val_if_fail (value != NULL, FALSE);
+#line 509 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = g_strdup ("");
+#line 509 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (_vala_result);
+#line 509 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_vala_result = _tmp0_;
+#line 511 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp1_ = option;
+#line 511 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp2_ = _tmp1_->type;
+#line 511 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_val_if_fail (_tmp2_ == SANE_TYPE_STRING, FALSE);
+#line 513 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp3_ = option;
+#line 513 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp4_ = _tmp3_->size;
+#line 513 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp5_ = g_new0 (gchar, _tmp4_);
+#line 513 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
s = _tmp5_;
+#line 513 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
s_length1 = _tmp4_;
+#line 513 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_s_size_ = s_length1;
+#line 514 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
i = 0;
+#line 6222 "scanner.c"
{
gboolean _tmp6_;
+#line 515 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp6_ = TRUE;
+#line 515 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
while (TRUE) {
+#line 6229 "scanner.c"
gboolean _tmp7_;
gboolean _tmp9_ = FALSE;
gint _tmp10_;
@@ -4336,73 +6244,137 @@ static gboolean scanner_set_string_option (Scanner* self, SANE_Handle handle, SA
gint _tmp20_;
gchar _tmp21_ = '\0';
gchar _tmp22_;
+#line 515 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp7_ = _tmp6_;
+#line 515 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (!_tmp7_) {
+#line 6247 "scanner.c"
gint _tmp8_;
+#line 515 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp8_ = i;
+#line 515 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
i = _tmp8_ + 1;
+#line 6253 "scanner.c"
}
+#line 515 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp6_ = FALSE;
+#line 515 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp10_ = i;
+#line 515 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp11_ = option;
+#line 515 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp12_ = _tmp11_->size;
+#line 515 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (((SANE_Int) _tmp10_) < (_tmp12_ - 1)) {
+#line 6265 "scanner.c"
const gchar* _tmp13_;
gint _tmp14_;
gchar _tmp15_ = '\0';
+#line 515 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp13_ = value;
+#line 515 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp14_ = i;
+#line 515 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp15_ = string_get (_tmp13_, (glong) _tmp14_);
+#line 515 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp9_ = _tmp15_ != '\0';
+#line 6277 "scanner.c"
} else {
+#line 515 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp9_ = FALSE;
+#line 6281 "scanner.c"
}
+#line 515 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp16_ = _tmp9_;
+#line 515 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (!_tmp16_) {
+#line 515 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
+#line 6289 "scanner.c"
}
+#line 516 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp17_ = s;
+#line 516 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp17__length1 = s_length1;
+#line 516 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp18_ = i;
+#line 516 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp19_ = value;
+#line 516 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp20_ = i;
+#line 516 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp21_ = string_get (_tmp19_, (glong) _tmp20_);
+#line 516 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp17_[_tmp18_] = _tmp21_;
+#line 516 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp22_ = _tmp17_[_tmp18_];
+#line 6307 "scanner.c"
}
}
+#line 517 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp23_ = s;
+#line 517 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp23__length1 = s_length1;
+#line 517 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp24_ = i;
+#line 517 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp23_[_tmp24_] = '\0';
+#line 517 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp25_ = _tmp23_[_tmp24_];
+#line 518 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp26_ = handle;
+#line 518 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp27_ = option_index;
+#line 518 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp28_ = s;
+#line 518 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp28__length1 = s_length1;
+#line 518 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp29_ = sane_control_option (_tmp26_, _tmp27_, SANE_ACTION_SET_VALUE, _tmp28_, NULL);
+#line 518 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
status = _tmp29_;
+#line 519 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp30_ = s;
+#line 519 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp30__length1 = s_length1;
+#line 519 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp31_ = g_strdup ((const gchar*) _tmp30_);
+#line 519 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (_vala_result);
+#line 519 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_vala_result = _tmp31_;
+#line 520 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp32_ = option_index;
+#line 520 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp33_ = value;
+#line 520 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp34_ = sane_status_to_string (status);
+#line 520 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp35_ = _tmp34_;
+#line 520 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp36_ = _vala_result;
- g_debug ("scanner.vala:497: sane_control_option (%d, SANE_ACTION_SET_VALUE, \"%s" \
+#line 520 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ g_debug ("scanner.vala:520: sane_control_option (%d, SANE_ACTION_SET_VALUE, \"%s" \
"\") -> (%s, \"%s\")", (gint) _tmp32_, _tmp33_, _tmp35_, _tmp36_);
+#line 520 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (_tmp35_);
+#line 522 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
result = status == SANE_STATUS_GOOD;
+#line 522 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
s = (g_free (s), NULL);
+#line 522 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_result_) {
+#line 522 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
*_result_ = _vala_result;
+#line 6364 "scanner.c"
} else {
+#line 522 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (_vala_result);
+#line 6368 "scanner.c"
}
+#line 522 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
+#line 6372 "scanner.c"
}
@@ -4414,21 +6386,35 @@ static gboolean scanner_set_constrained_string_option (Scanner* self, SANE_Handl
SANE_Option_Descriptor* _tmp2_;
SANE_Constraint_Type _tmp3_;
gchar* _tmp36_;
+#line 525 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_val_if_fail (self != NULL, FALSE);
+#line 525 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_val_if_fail (option != NULL, FALSE);
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = option;
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp1_ = _tmp0_->type;
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_val_if_fail (_tmp1_ == SANE_TYPE_STRING, FALSE);
+#line 528 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp2_ = option;
+#line 528 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp3_ = _tmp2_->constraint_type;
+#line 528 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_val_if_fail (_tmp3_ == SANE_CONSTRAINT_STRING_LIST, FALSE);
+#line 6400 "scanner.c"
{
gint i;
+#line 530 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
i = 0;
+#line 6405 "scanner.c"
{
gboolean _tmp4_;
+#line 530 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp4_ = TRUE;
+#line 530 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
while (TRUE) {
+#line 6412 "scanner.c"
gboolean _tmp5_;
gchar** _tmp7_;
gint _tmp7__length1;
@@ -4440,25 +6426,44 @@ static gboolean scanner_set_constrained_string_option (Scanner* self, SANE_Handl
gint _tmp25__length1;
gint _tmp26_;
const gchar* _tmp27_;
+#line 530 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp5_ = _tmp4_;
+#line 530 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (!_tmp5_) {
+#line 6428 "scanner.c"
gint _tmp6_;
+#line 530 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp6_ = i;
+#line 530 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
i = _tmp6_ + 1;
+#line 6434 "scanner.c"
}
+#line 530 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp4_ = FALSE;
+#line 530 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp7_ = values;
+#line 530 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp7__length1 = values_length1;
+#line 530 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp8_ = i;
+#line 530 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp9_ = _tmp7_[_tmp8_];
+#line 530 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (!(_tmp9_ != NULL)) {
+#line 530 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
+#line 6450 "scanner.c"
}
+#line 532 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
j = 0;
+#line 6454 "scanner.c"
{
gboolean _tmp10_;
+#line 533 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp10_ = TRUE;
+#line 533 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
while (TRUE) {
+#line 6461 "scanner.c"
gboolean _tmp11_;
SANE_Option_Descriptor* _tmp13_;
gchar** _tmp14_;
@@ -4474,41 +6479,75 @@ static gboolean scanner_set_constrained_string_option (Scanner* self, SANE_Handl
gint _tmp21__length1;
gint _tmp22_;
const gchar* _tmp23_;
+#line 533 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp11_ = _tmp10_;
+#line 533 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (!_tmp11_) {
+#line 6481 "scanner.c"
gint _tmp12_;
+#line 533 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp12_ = j;
+#line 533 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
j = _tmp12_ + 1;
+#line 6487 "scanner.c"
}
+#line 533 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp10_ = FALSE;
+#line 533 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp13_ = option;
+#line 533 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp14_ = _tmp13_->constraint.string_list;
+#line 533 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp14__length1 = -1;
+#line 533 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp15_ = j;
+#line 533 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp16_ = _tmp14_[_tmp15_];
+#line 533 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (!(_tmp16_ != NULL)) {
+#line 533 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
+#line 6505 "scanner.c"
}
+#line 535 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp17_ = values;
+#line 535 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp17__length1 = values_length1;
+#line 535 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp18_ = i;
+#line 535 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp19_ = _tmp17_[_tmp18_];
+#line 535 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp20_ = option;
+#line 535 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp21_ = _tmp20_->constraint.string_list;
+#line 535 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp21__length1 = -1;
+#line 535 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp22_ = j;
+#line 535 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp23_ = _tmp21_[_tmp22_];
+#line 535 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (g_strcmp0 (_tmp19_, _tmp23_) == 0) {
+#line 536 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
+#line 6529 "scanner.c"
}
}
}
+#line 539 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp24_ = option;
+#line 539 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp25_ = _tmp24_->constraint.string_list;
+#line 539 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp25__length1 = -1;
+#line 539 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp26_ = j;
+#line 539 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp27_ = _tmp25_[_tmp26_];
+#line 539 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp27_ != NULL) {
+#line 6545 "scanner.c"
SANE_Handle _tmp28_;
SANE_Option_Descriptor* _tmp29_;
SANE_Int _tmp30_;
@@ -4518,37 +6557,66 @@ static gboolean scanner_set_constrained_string_option (Scanner* self, SANE_Handl
const gchar* _tmp33_;
gchar* _tmp34_ = NULL;
gboolean _tmp35_ = FALSE;
+#line 540 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp28_ = handle;
+#line 540 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp29_ = option;
+#line 540 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp30_ = option_index;
+#line 540 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp31_ = values;
+#line 540 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp31__length1 = values_length1;
+#line 540 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp32_ = i;
+#line 540 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp33_ = _tmp31_[_tmp32_];
+#line 540 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp35_ = scanner_set_string_option (self, _tmp28_, _tmp29_, _tmp30_, _tmp33_, &_tmp34_);
+#line 540 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (_vala_result);
+#line 540 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_vala_result = _tmp34_;
+#line 540 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
result = _tmp35_;
+#line 540 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_result_) {
+#line 540 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
*_result_ = _vala_result;
+#line 6581 "scanner.c"
} else {
+#line 540 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (_vala_result);
+#line 6585 "scanner.c"
}
+#line 540 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
+#line 6589 "scanner.c"
}
}
}
}
+#line 543 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp36_ = g_strdup ("");
+#line 543 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (_vala_result);
+#line 543 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_vala_result = _tmp36_;
+#line 544 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
result = FALSE;
+#line 544 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_result_) {
+#line 544 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
*_result_ = _vala_result;
+#line 6606 "scanner.c"
} else {
+#line 544 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (_vala_result);
+#line 6610 "scanner.c"
}
+#line 544 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
+#line 6614 "scanner.c"
}
@@ -4579,111 +6647,195 @@ static void scanner_log_option (Scanner* self, SANE_Int index, SANE_Option_Descr
const gchar* _tmp214_;
SANE_Option_Descriptor* _tmp215_;
const gchar* _tmp216_;
+#line 547 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (self != NULL);
+#line 547 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (option != NULL);
+#line 549 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = index;
+#line 549 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp1_ = g_strdup_printf ("Option %d:", (gint) _tmp0_);
+#line 549 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
s = _tmp1_;
+#line 551 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp2_ = option;
+#line 551 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp3_ = _tmp2_->name;
+#line 551 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (g_strcmp0 (_tmp3_, "") != 0) {
+#line 6661 "scanner.c"
const gchar* _tmp4_;
SANE_Option_Descriptor* _tmp5_;
const gchar* _tmp6_;
gchar* _tmp7_ = NULL;
gchar* _tmp8_;
gchar* _tmp9_;
+#line 552 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp4_ = s;
+#line 552 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp5_ = option;
+#line 552 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp6_ = _tmp5_->name;
+#line 552 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp7_ = g_strdup_printf (" name='%s'", _tmp6_);
+#line 552 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp8_ = _tmp7_;
+#line 552 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp9_ = g_strconcat (_tmp4_, _tmp8_, NULL);
+#line 552 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
+#line 552 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
s = _tmp9_;
+#line 552 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (_tmp8_);
+#line 6686 "scanner.c"
}
+#line 554 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp10_ = option;
+#line 554 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp11_ = _tmp10_->title;
+#line 554 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (g_strcmp0 (_tmp11_, "") != 0) {
+#line 6694 "scanner.c"
const gchar* _tmp12_;
SANE_Option_Descriptor* _tmp13_;
const gchar* _tmp14_;
gchar* _tmp15_ = NULL;
gchar* _tmp16_;
gchar* _tmp17_;
+#line 555 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp12_ = s;
+#line 555 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp13_ = option;
+#line 555 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp14_ = _tmp13_->title;
+#line 555 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp15_ = g_strdup_printf (" title='%s'", _tmp14_);
+#line 555 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp16_ = _tmp15_;
+#line 555 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp17_ = g_strconcat (_tmp12_, _tmp16_, NULL);
+#line 555 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
+#line 555 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
s = _tmp17_;
+#line 555 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (_tmp16_);
+#line 6719 "scanner.c"
}
+#line 557 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp18_ = option;
+#line 557 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp19_ = _tmp18_->type;
+#line 557 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
switch (_tmp19_) {
+#line 557 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SANE_TYPE_BOOL:
+#line 6729 "scanner.c"
{
const gchar* _tmp20_;
gchar* _tmp21_;
+#line 560 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp20_ = s;
+#line 560 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp21_ = g_strconcat (_tmp20_, " type=bool", NULL);
+#line 560 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
+#line 560 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
s = _tmp21_;
+#line 561 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
+#line 6743 "scanner.c"
}
+#line 557 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SANE_TYPE_INT:
+#line 6747 "scanner.c"
{
const gchar* _tmp22_;
gchar* _tmp23_;
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp22_ = s;
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp23_ = g_strconcat (_tmp22_, " type=int", NULL);
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
s = _tmp23_;
+#line 564 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
+#line 6761 "scanner.c"
}
+#line 557 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SANE_TYPE_FIXED:
+#line 6765 "scanner.c"
{
const gchar* _tmp24_;
gchar* _tmp25_;
+#line 566 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp24_ = s;
+#line 566 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp25_ = g_strconcat (_tmp24_, " type=fixed", NULL);
+#line 566 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
+#line 566 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
s = _tmp25_;
+#line 567 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
+#line 6779 "scanner.c"
}
+#line 557 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SANE_TYPE_STRING:
+#line 6783 "scanner.c"
{
const gchar* _tmp26_;
gchar* _tmp27_;
+#line 569 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp26_ = s;
+#line 569 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp27_ = g_strconcat (_tmp26_, " type=string", NULL);
+#line 569 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
+#line 569 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
s = _tmp27_;
+#line 570 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
+#line 6797 "scanner.c"
}
+#line 557 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SANE_TYPE_BUTTON:
+#line 6801 "scanner.c"
{
const gchar* _tmp28_;
gchar* _tmp29_;
+#line 572 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp28_ = s;
+#line 572 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp29_ = g_strconcat (_tmp28_, " type=button", NULL);
+#line 572 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
+#line 572 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
s = _tmp29_;
+#line 573 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
+#line 6815 "scanner.c"
}
+#line 557 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SANE_TYPE_GROUP:
+#line 6819 "scanner.c"
{
const gchar* _tmp30_;
gchar* _tmp31_;
+#line 575 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp30_ = s;
+#line 575 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp31_ = g_strconcat (_tmp30_, " type=group", NULL);
+#line 575 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
+#line 575 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
s = _tmp31_;
+#line 576 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
+#line 6833 "scanner.c"
}
default:
{
@@ -4693,93 +6845,168 @@ static void scanner_log_option (Scanner* self, SANE_Int index, SANE_Option_Descr
gchar* _tmp35_ = NULL;
gchar* _tmp36_;
gchar* _tmp37_;
+#line 578 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp32_ = s;
+#line 578 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp33_ = option;
+#line 578 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp34_ = _tmp33_->type;
+#line 578 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp35_ = g_strdup_printf (" type=%d", (gint) _tmp34_);
+#line 578 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp36_ = _tmp35_;
+#line 578 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp37_ = g_strconcat (_tmp32_, _tmp36_, NULL);
+#line 578 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
+#line 578 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
s = _tmp37_;
+#line 578 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (_tmp36_);
+#line 579 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
+#line 6863 "scanner.c"
}
}
+#line 582 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp38_ = s;
+#line 582 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp39_ = option;
+#line 582 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp40_ = _tmp39_->size;
+#line 582 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp41_ = g_strdup_printf (" size=%d", (gint) _tmp40_);
+#line 582 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp42_ = _tmp41_;
+#line 582 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp43_ = g_strconcat (_tmp38_, _tmp42_, NULL);
+#line 582 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
+#line 582 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
s = _tmp43_;
+#line 582 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (_tmp42_);
+#line 584 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp44_ = option;
+#line 584 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp45_ = _tmp44_->unit;
+#line 584 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
switch (_tmp45_) {
+#line 584 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SANE_UNIT_NONE:
+#line 6892 "scanner.c"
{
+#line 587 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
+#line 6896 "scanner.c"
}
+#line 584 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SANE_UNIT_PIXEL:
+#line 6900 "scanner.c"
{
const gchar* _tmp46_;
gchar* _tmp47_;
+#line 589 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp46_ = s;
+#line 589 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp47_ = g_strconcat (_tmp46_, " unit=pixels", NULL);
+#line 589 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
+#line 589 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
s = _tmp47_;
+#line 590 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
+#line 6914 "scanner.c"
}
+#line 584 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SANE_UNIT_BIT:
+#line 6918 "scanner.c"
{
const gchar* _tmp48_;
gchar* _tmp49_;
+#line 592 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp48_ = s;
+#line 592 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp49_ = g_strconcat (_tmp48_, " unit=bits", NULL);
+#line 592 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
+#line 592 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
s = _tmp49_;
+#line 593 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
+#line 6932 "scanner.c"
}
+#line 584 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SANE_UNIT_MM:
+#line 6936 "scanner.c"
{
const gchar* _tmp50_;
gchar* _tmp51_;
+#line 595 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp50_ = s;
+#line 595 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp51_ = g_strconcat (_tmp50_, " unit=mm", NULL);
+#line 595 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
+#line 595 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
s = _tmp51_;
+#line 596 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
+#line 6950 "scanner.c"
}
+#line 584 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SANE_UNIT_DPI:
+#line 6954 "scanner.c"
{
const gchar* _tmp52_;
gchar* _tmp53_;
+#line 598 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp52_ = s;
+#line 598 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp53_ = g_strconcat (_tmp52_, " unit=dpi", NULL);
+#line 598 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
+#line 598 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
s = _tmp53_;
+#line 599 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
+#line 6968 "scanner.c"
}
+#line 584 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SANE_UNIT_PERCENT:
+#line 6972 "scanner.c"
{
const gchar* _tmp54_;
gchar* _tmp55_;
+#line 601 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp54_ = s;
+#line 601 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp55_ = g_strconcat (_tmp54_, " unit=percent", NULL);
+#line 601 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
+#line 601 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
s = _tmp55_;
+#line 602 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
+#line 6986 "scanner.c"
}
+#line 584 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SANE_UNIT_MICROSECOND:
+#line 6990 "scanner.c"
{
const gchar* _tmp56_;
gchar* _tmp57_;
+#line 604 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp56_ = s;
+#line 604 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp57_ = g_strconcat (_tmp56_, " unit=microseconds", NULL);
+#line 604 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
+#line 604 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
s = _tmp57_;
+#line 605 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
+#line 7004 "scanner.c"
}
default:
{
@@ -4789,28 +7016,48 @@ static void scanner_log_option (Scanner* self, SANE_Int index, SANE_Option_Descr
gchar* _tmp61_ = NULL;
gchar* _tmp62_;
gchar* _tmp63_;
+#line 607 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp58_ = s;
+#line 607 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp59_ = option;
+#line 607 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp60_ = _tmp59_->unit;
+#line 607 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp61_ = g_strdup_printf (" unit=%d", (gint) _tmp60_);
+#line 607 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp62_ = _tmp61_;
+#line 607 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp63_ = g_strconcat (_tmp58_, _tmp62_, NULL);
+#line 607 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
+#line 607 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
s = _tmp63_;
+#line 607 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (_tmp62_);
+#line 608 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
+#line 7034 "scanner.c"
}
}
+#line 611 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp64_ = option;
+#line 611 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp65_ = _tmp64_->constraint_type;
+#line 611 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
switch (_tmp65_) {
+#line 611 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SANE_CONSTRAINT_RANGE:
+#line 7045 "scanner.c"
{
SANE_Option_Descriptor* _tmp66_;
SANE_Value_Type _tmp67_;
+#line 614 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp66_ = option;
+#line 614 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp67_ = _tmp66_->type;
+#line 614 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp67_ == SANE_TYPE_FIXED) {
+#line 7055 "scanner.c"
const gchar* _tmp68_;
SANE_Option_Descriptor* _tmp69_;
SANE_Range* _tmp70_;
@@ -4826,24 +7073,43 @@ static void scanner_log_option (Scanner* self, SANE_Int index, SANE_Option_Descr
gchar* _tmp80_ = NULL;
gchar* _tmp81_;
gchar* _tmp82_;
+#line 615 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp68_ = s;
+#line 615 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp69_ = option;
+#line 615 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp70_ = _tmp69_->constraint.range;
+#line 615 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp71_ = _tmp70_->min;
+#line 615 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp72_ = SANE_UNFIX ((SANE_Fixed) _tmp71_);
+#line 615 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp73_ = option;
+#line 615 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp74_ = _tmp73_->constraint.range;
+#line 615 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp75_ = _tmp74_->max;
+#line 615 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp76_ = SANE_UNFIX ((SANE_Fixed) _tmp75_);
+#line 615 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp77_ = option;
+#line 615 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp78_ = _tmp77_->constraint.range;
+#line 615 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp79_ = _tmp78_->quant;
+#line 615 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp80_ = g_strdup_printf (" min=%f, max=%f, quant=%d", _tmp72_, _tmp76_, (gint) _tmp79_);
+#line 615 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp81_ = _tmp80_;
+#line 615 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp82_ = g_strconcat (_tmp68_, _tmp81_, NULL);
+#line 615 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
+#line 615 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
s = _tmp82_;
+#line 615 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (_tmp81_);
+#line 7107 "scanner.c"
} else {
const gchar* _tmp83_;
SANE_Option_Descriptor* _tmp84_;
@@ -4858,42 +7124,73 @@ static void scanner_log_option (Scanner* self, SANE_Int index, SANE_Option_Descr
gchar* _tmp93_ = NULL;
gchar* _tmp94_;
gchar* _tmp95_;
+#line 617 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp83_ = s;
+#line 617 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp84_ = option;
+#line 617 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp85_ = _tmp84_->constraint.range;
+#line 617 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp86_ = _tmp85_->min;
+#line 617 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp87_ = option;
+#line 617 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp88_ = _tmp87_->constraint.range;
+#line 617 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp89_ = _tmp88_->max;
+#line 617 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp90_ = option;
+#line 617 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp91_ = _tmp90_->constraint.range;
+#line 617 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp92_ = _tmp91_->quant;
+#line 617 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp93_ = g_strdup_printf (" min=%d, max=%d, quant=%d", (gint) _tmp86_, (gint) _tmp89_, (gint) _tmp92_);
+#line 617 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp94_ = _tmp93_;
+#line 617 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp95_ = g_strconcat (_tmp83_, _tmp94_, NULL);
+#line 617 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
+#line 617 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
s = _tmp95_;
+#line 617 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (_tmp94_);
+#line 7154 "scanner.c"
}
+#line 618 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
+#line 7158 "scanner.c"
}
+#line 611 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SANE_CONSTRAINT_WORD_LIST:
+#line 7162 "scanner.c"
{
const gchar* _tmp96_;
gchar* _tmp97_;
const gchar* _tmp127_;
gchar* _tmp128_;
+#line 620 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp96_ = s;
+#line 620 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp97_ = g_strconcat (_tmp96_, " values=[", NULL);
+#line 620 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
+#line 620 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
s = _tmp97_;
+#line 7176 "scanner.c"
{
gint i;
+#line 621 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
i = 0;
+#line 7181 "scanner.c"
{
gboolean _tmp98_;
+#line 621 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp98_ = TRUE;
+#line 621 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
while (TRUE) {
+#line 7188 "scanner.c"
gboolean _tmp99_;
gint _tmp101_;
SANE_Option_Descriptor* _tmp102_;
@@ -4903,33 +7200,60 @@ static void scanner_log_option (Scanner* self, SANE_Int index, SANE_Option_Descr
gint _tmp105_;
SANE_Option_Descriptor* _tmp108_;
SANE_Value_Type _tmp109_;
+#line 621 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp99_ = _tmp98_;
+#line 621 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (!_tmp99_) {
+#line 7202 "scanner.c"
gint _tmp100_;
+#line 621 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp100_ = i;
+#line 621 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
i = _tmp100_ + 1;
+#line 7208 "scanner.c"
}
+#line 621 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp98_ = FALSE;
+#line 621 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp101_ = i;
+#line 621 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp102_ = option;
+#line 621 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp103_ = _tmp102_->constraint.word_list;
+#line 621 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp103__length1 = -1;
+#line 621 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp104_ = _tmp103_[0];
+#line 621 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (!(((SANE_Word) _tmp101_) < _tmp104_)) {
+#line 621 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
+#line 7226 "scanner.c"
}
+#line 623 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp105_ = i;
+#line 623 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp105_ != 0) {
+#line 7232 "scanner.c"
const gchar* _tmp106_;
gchar* _tmp107_;
+#line 624 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp106_ = s;
+#line 624 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp107_ = g_strconcat (_tmp106_, ", ", NULL);
+#line 624 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
+#line 624 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
s = _tmp107_;
+#line 7243 "scanner.c"
}
+#line 625 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp108_ = option;
+#line 625 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp109_ = _tmp108_->type;
+#line 625 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp109_ == SANE_TYPE_INT) {
+#line 7251 "scanner.c"
const gchar* _tmp110_;
SANE_Option_Descriptor* _tmp111_;
SANE_Word* _tmp112_;
@@ -4939,18 +7263,31 @@ static void scanner_log_option (Scanner* self, SANE_Int index, SANE_Option_Descr
gchar* _tmp115_ = NULL;
gchar* _tmp116_;
gchar* _tmp117_;
+#line 626 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp110_ = s;
+#line 626 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp111_ = option;
+#line 626 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp112_ = _tmp111_->constraint.word_list;
+#line 626 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp112__length1 = -1;
+#line 626 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp113_ = i;
+#line 626 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp114_ = _tmp112_[_tmp113_ + 1];
+#line 626 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp115_ = g_strdup_printf ("%d", (gint) _tmp114_);
+#line 626 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp116_ = _tmp115_;
+#line 626 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp117_ = g_strconcat (_tmp110_, _tmp116_, NULL);
+#line 626 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
+#line 626 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
s = _tmp117_;
+#line 626 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (_tmp116_);
+#line 7285 "scanner.c"
} else {
const gchar* _tmp118_;
SANE_Option_Descriptor* _tmp119_;
@@ -4962,46 +7299,78 @@ static void scanner_log_option (Scanner* self, SANE_Int index, SANE_Option_Descr
gchar* _tmp124_ = NULL;
gchar* _tmp125_;
gchar* _tmp126_;
+#line 628 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp118_ = s;
+#line 628 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp119_ = option;
+#line 628 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp120_ = _tmp119_->constraint.word_list;
+#line 628 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp120__length1 = -1;
+#line 628 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp121_ = i;
+#line 628 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp122_ = _tmp120_[_tmp121_ + 1];
+#line 628 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp123_ = SANE_UNFIX ((SANE_Fixed) _tmp122_);
+#line 628 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp124_ = g_strdup_printf ("%f", _tmp123_);
+#line 628 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp125_ = _tmp124_;
+#line 628 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp126_ = g_strconcat (_tmp118_, _tmp125_, NULL);
+#line 628 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
+#line 628 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
s = _tmp126_;
+#line 628 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (_tmp125_);
+#line 7323 "scanner.c"
}
}
}
}
+#line 630 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp127_ = s;
+#line 630 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp128_ = g_strconcat (_tmp127_, "]", NULL);
+#line 630 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
+#line 630 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
s = _tmp128_;
+#line 631 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
+#line 7338 "scanner.c"
}
+#line 611 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SANE_CONSTRAINT_STRING_LIST:
+#line 7342 "scanner.c"
{
const gchar* _tmp129_;
gchar* _tmp130_;
const gchar* _tmp149_;
gchar* _tmp150_;
+#line 633 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp129_ = s;
+#line 633 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp130_ = g_strconcat (_tmp129_, " values=[", NULL);
+#line 633 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
+#line 633 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
s = _tmp130_;
+#line 7356 "scanner.c"
{
gint i;
+#line 634 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
i = 0;
+#line 7361 "scanner.c"
{
gboolean _tmp131_;
+#line 634 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp131_ = TRUE;
+#line 634 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
while (TRUE) {
+#line 7368 "scanner.c"
gboolean _tmp132_;
SANE_Option_Descriptor* _tmp134_;
gchar** _tmp135_;
@@ -5018,61 +7387,111 @@ static void scanner_log_option (Scanner* self, SANE_Int index, SANE_Option_Descr
gchar* _tmp146_ = NULL;
gchar* _tmp147_;
gchar* _tmp148_;
+#line 634 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp132_ = _tmp131_;
+#line 634 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (!_tmp132_) {
+#line 7389 "scanner.c"
gint _tmp133_;
+#line 634 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp133_ = i;
+#line 634 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
i = _tmp133_ + 1;
+#line 7395 "scanner.c"
}
+#line 634 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp131_ = FALSE;
+#line 634 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp134_ = option;
+#line 634 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp135_ = _tmp134_->constraint.string_list;
+#line 634 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp135__length1 = -1;
+#line 634 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp136_ = i;
+#line 634 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp137_ = _tmp135_[_tmp136_];
+#line 634 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (!(_tmp137_ != NULL)) {
+#line 634 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
+#line 7413 "scanner.c"
}
+#line 636 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp138_ = i;
+#line 636 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp138_ != 0) {
+#line 7419 "scanner.c"
const gchar* _tmp139_;
gchar* _tmp140_;
+#line 637 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp139_ = s;
+#line 637 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp140_ = g_strconcat (_tmp139_, ", ", NULL);
+#line 637 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
+#line 637 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
s = _tmp140_;
+#line 7430 "scanner.c"
}
+#line 638 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp141_ = s;
+#line 638 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp142_ = option;
+#line 638 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp143_ = _tmp142_->constraint.string_list;
+#line 638 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp143__length1 = -1;
+#line 638 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp144_ = i;
+#line 638 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp145_ = _tmp143_[_tmp144_];
+#line 638 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp146_ = g_strdup_printf ("\"%s\"", _tmp145_);
+#line 638 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp147_ = _tmp146_;
+#line 638 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp148_ = g_strconcat (_tmp141_, _tmp147_, NULL);
+#line 638 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
+#line 638 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
s = _tmp148_;
+#line 638 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (_tmp147_);
+#line 7456 "scanner.c"
}
}
}
+#line 640 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp149_ = s;
+#line 640 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp150_ = g_strconcat (_tmp149_, "]", NULL);
+#line 640 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
+#line 640 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
s = _tmp150_;
+#line 641 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
+#line 7470 "scanner.c"
}
default:
{
+#line 643 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
+#line 7476 "scanner.c"
}
}
+#line 646 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp151_ = option;
+#line 646 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp152_ = _tmp151_->cap;
+#line 646 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
cap = _tmp152_;
+#line 647 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp153_ = cap;
+#line 647 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp153_ != ((SANE_Int) 0)) {
+#line 7489 "scanner.c"
const gchar* _tmp154_;
gchar* _tmp155_;
SANE_Int _tmp156_;
@@ -5083,203 +7502,365 @@ static void scanner_log_option (Scanner* self, SANE_Int index, SANE_Option_Descr
SANE_Int _tmp191_;
SANE_Int _tmp198_;
SANE_Int _tmp205_;
+#line 649 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp154_ = s;
+#line 649 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp155_ = g_strconcat (_tmp154_, " cap=", NULL);
+#line 649 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
+#line 649 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
s = _tmp155_;
+#line 650 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp156_ = cap;
+#line 650 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if ((_tmp156_ & SANE_CAP_SOFT_SELECT) != ((SANE_Int) 0)) {
+#line 7512 "scanner.c"
const gchar* _tmp157_;
const gchar* _tmp160_;
gchar* _tmp161_;
SANE_Int _tmp162_;
+#line 652 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp157_ = s;
+#line 652 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (g_strcmp0 (_tmp157_, "") != 0) {
+#line 7521 "scanner.c"
const gchar* _tmp158_;
gchar* _tmp159_;
+#line 653 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp158_ = s;
+#line 653 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp159_ = g_strconcat (_tmp158_, ",", NULL);
+#line 653 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
+#line 653 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
s = _tmp159_;
+#line 7532 "scanner.c"
}
+#line 654 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp160_ = s;
+#line 654 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp161_ = g_strconcat (_tmp160_, "soft-select", NULL);
+#line 654 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
+#line 654 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
s = _tmp161_;
+#line 655 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp162_ = cap;
+#line 655 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
cap = _tmp162_ & (~SANE_CAP_SOFT_SELECT);
+#line 7546 "scanner.c"
}
+#line 657 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp163_ = cap;
+#line 657 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if ((_tmp163_ & SANE_CAP_HARD_SELECT) != ((SANE_Int) 0)) {
+#line 7552 "scanner.c"
const gchar* _tmp164_;
const gchar* _tmp167_;
gchar* _tmp168_;
SANE_Int _tmp169_;
+#line 659 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp164_ = s;
+#line 659 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (g_strcmp0 (_tmp164_, "") != 0) {
+#line 7561 "scanner.c"
const gchar* _tmp165_;
gchar* _tmp166_;
+#line 660 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp165_ = s;
+#line 660 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp166_ = g_strconcat (_tmp165_, ",", NULL);
+#line 660 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
+#line 660 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
s = _tmp166_;
+#line 7572 "scanner.c"
}
+#line 661 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp167_ = s;
+#line 661 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp168_ = g_strconcat (_tmp167_, "hard-select", NULL);
+#line 661 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
+#line 661 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
s = _tmp168_;
+#line 662 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp169_ = cap;
+#line 662 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
cap = _tmp169_ & (~SANE_CAP_HARD_SELECT);
+#line 7586 "scanner.c"
}
+#line 664 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp170_ = cap;
+#line 664 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if ((_tmp170_ & SANE_CAP_SOFT_DETECT) != ((SANE_Int) 0)) {
+#line 7592 "scanner.c"
const gchar* _tmp171_;
const gchar* _tmp174_;
gchar* _tmp175_;
SANE_Int _tmp176_;
+#line 666 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp171_ = s;
+#line 666 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (g_strcmp0 (_tmp171_, "") != 0) {
+#line 7601 "scanner.c"
const gchar* _tmp172_;
gchar* _tmp173_;
+#line 667 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp172_ = s;
+#line 667 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp173_ = g_strconcat (_tmp172_, ",", NULL);
+#line 667 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
+#line 667 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
s = _tmp173_;
+#line 7612 "scanner.c"
}
+#line 668 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp174_ = s;
+#line 668 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp175_ = g_strconcat (_tmp174_, "soft-detect", NULL);
+#line 668 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
+#line 668 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
s = _tmp175_;
+#line 669 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp176_ = cap;
+#line 669 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
cap = _tmp176_ & (~SANE_CAP_SOFT_DETECT);
+#line 7626 "scanner.c"
}
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp177_ = cap;
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if ((_tmp177_ & SANE_CAP_EMULATED) != ((SANE_Int) 0)) {
+#line 7632 "scanner.c"
const gchar* _tmp178_;
const gchar* _tmp181_;
gchar* _tmp182_;
SANE_Int _tmp183_;
+#line 673 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp178_ = s;
+#line 673 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (g_strcmp0 (_tmp178_, "") != 0) {
+#line 7641 "scanner.c"
const gchar* _tmp179_;
gchar* _tmp180_;
+#line 674 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp179_ = s;
+#line 674 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp180_ = g_strconcat (_tmp179_, ",", NULL);
+#line 674 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
+#line 674 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
s = _tmp180_;
+#line 7652 "scanner.c"
}
+#line 675 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp181_ = s;
+#line 675 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp182_ = g_strconcat (_tmp181_, "emulated", NULL);
+#line 675 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
+#line 675 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
s = _tmp182_;
+#line 676 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp183_ = cap;
+#line 676 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
cap = _tmp183_ & (~SANE_CAP_EMULATED);
+#line 7666 "scanner.c"
}
+#line 678 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp184_ = cap;
+#line 678 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if ((_tmp184_ & SANE_CAP_AUTOMATIC) != ((SANE_Int) 0)) {
+#line 7672 "scanner.c"
const gchar* _tmp185_;
const gchar* _tmp188_;
gchar* _tmp189_;
SANE_Int _tmp190_;
+#line 680 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp185_ = s;
+#line 680 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (g_strcmp0 (_tmp185_, "") != 0) {
+#line 7681 "scanner.c"
const gchar* _tmp186_;
gchar* _tmp187_;
+#line 681 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp186_ = s;
+#line 681 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp187_ = g_strconcat (_tmp186_, ",", NULL);
+#line 681 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
+#line 681 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
s = _tmp187_;
+#line 7692 "scanner.c"
}
+#line 682 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp188_ = s;
+#line 682 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp189_ = g_strconcat (_tmp188_, "automatic", NULL);
+#line 682 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
+#line 682 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
s = _tmp189_;
+#line 683 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp190_ = cap;
+#line 683 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
cap = _tmp190_ & (~SANE_CAP_AUTOMATIC);
+#line 7706 "scanner.c"
}
+#line 685 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp191_ = cap;
+#line 685 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if ((_tmp191_ & SANE_CAP_INACTIVE) != ((SANE_Int) 0)) {
+#line 7712 "scanner.c"
const gchar* _tmp192_;
const gchar* _tmp195_;
gchar* _tmp196_;
SANE_Int _tmp197_;
+#line 687 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp192_ = s;
+#line 687 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (g_strcmp0 (_tmp192_, "") != 0) {
+#line 7721 "scanner.c"
const gchar* _tmp193_;
gchar* _tmp194_;
+#line 688 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp193_ = s;
+#line 688 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp194_ = g_strconcat (_tmp193_, ",", NULL);
+#line 688 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
+#line 688 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
s = _tmp194_;
+#line 7732 "scanner.c"
}
+#line 689 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp195_ = s;
+#line 689 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp196_ = g_strconcat (_tmp195_, "inactive", NULL);
+#line 689 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
+#line 689 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
s = _tmp196_;
+#line 690 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp197_ = cap;
+#line 690 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
cap = _tmp197_ & (~SANE_CAP_INACTIVE);
+#line 7746 "scanner.c"
}
+#line 692 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp198_ = cap;
+#line 692 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if ((_tmp198_ & SANE_CAP_ADVANCED) != ((SANE_Int) 0)) {
+#line 7752 "scanner.c"
const gchar* _tmp199_;
const gchar* _tmp202_;
gchar* _tmp203_;
SANE_Int _tmp204_;
+#line 694 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp199_ = s;
+#line 694 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (g_strcmp0 (_tmp199_, "") != 0) {
+#line 7761 "scanner.c"
const gchar* _tmp200_;
gchar* _tmp201_;
+#line 695 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp200_ = s;
+#line 695 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp201_ = g_strconcat (_tmp200_, ",", NULL);
+#line 695 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
+#line 695 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
s = _tmp201_;
+#line 7772 "scanner.c"
}
+#line 696 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp202_ = s;
+#line 696 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp203_ = g_strconcat (_tmp202_, "advanced", NULL);
+#line 696 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
+#line 696 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
s = _tmp203_;
+#line 697 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp204_ = cap;
+#line 697 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
cap = _tmp204_ & (~SANE_CAP_ADVANCED);
+#line 7786 "scanner.c"
}
+#line 700 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp205_ = cap;
+#line 700 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp205_ != ((SANE_Int) 0)) {
+#line 7792 "scanner.c"
const gchar* _tmp206_;
const gchar* _tmp209_;
SANE_Int _tmp210_;
gchar* _tmp211_ = NULL;
gchar* _tmp212_;
gchar* _tmp213_;
+#line 702 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp206_ = s;
+#line 702 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (g_strcmp0 (_tmp206_, "") != 0) {
+#line 7803 "scanner.c"
const gchar* _tmp207_;
gchar* _tmp208_;
+#line 703 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp207_ = s;
+#line 703 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp208_ = g_strconcat (_tmp207_, ",", NULL);
+#line 703 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
+#line 703 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
s = _tmp208_;
+#line 7814 "scanner.c"
}
+#line 704 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp209_ = s;
+#line 704 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp210_ = cap;
+#line 704 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp211_ = g_strdup_printf ("%x", (guint) ((gint) _tmp210_));
+#line 704 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp212_ = _tmp211_;
+#line 704 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp213_ = g_strconcat (_tmp209_, _tmp212_, NULL);
+#line 704 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
+#line 704 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
s = _tmp213_;
+#line 704 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (_tmp212_);
+#line 7832 "scanner.c"
}
}
+#line 708 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp214_ = s;
- g_debug ("scanner.vala:685: %s", _tmp214_);
+#line 708 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ g_debug ("scanner.vala:708: %s", _tmp214_);
+#line 710 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp215_ = option;
+#line 710 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp216_ = _tmp215_->desc;
+#line 710 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp216_ != NULL) {
+#line 7845 "scanner.c"
SANE_Option_Descriptor* _tmp217_;
const gchar* _tmp218_;
+#line 711 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp217_ = option;
+#line 711 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp218_ = _tmp217_->desc;
- g_debug ("scanner.vala:688: Description: %s", _tmp218_);
+#line 711 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ g_debug ("scanner.vala:711: Description: %s", _tmp218_);
+#line 7854 "scanner.c"
}
+#line 547 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
+#line 7858 "scanner.c"
}
@@ -5292,24 +7873,41 @@ static void scanner_authorization_cb (const gchar* resource, gchar* username, in
GAsyncQueue* _tmp5_;
gpointer _tmp6_ = NULL;
Credentials* credentials;
+#line 714 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (resource != NULL);
+#line 716 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = scanner_scanner_object;
+#line 716 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp1_ = resource;
+#line 716 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp2_ = notify_request_authorization_new (_tmp1_);
+#line 716 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp3_ = _tmp2_;
+#line 716 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scanner_notify (_tmp0_, (Notify*) _tmp3_);
+#line 716 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_notify_unref0 (_tmp3_);
+#line 718 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp4_ = scanner_scanner_object;
+#line 718 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp5_ = _tmp4_->priv->authorize_queue;
+#line 718 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp6_ = g_async_queue_pop (_tmp5_);
+#line 718 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
credentials = (Credentials*) _tmp6_;
+#line 7893 "scanner.c"
{
gint i;
+#line 719 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
i = 0;
+#line 7898 "scanner.c"
{
gboolean _tmp7_;
+#line 719 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp7_ = TRUE;
+#line 719 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
while (TRUE) {
+#line 7905 "scanner.c"
gboolean _tmp8_;
gboolean _tmp10_ = FALSE;
Credentials* _tmp11_;
@@ -5325,49 +7923,87 @@ static void scanner_authorization_cb (const gchar* resource, gchar* username, in
gint _tmp22_;
gchar _tmp23_ = '\0';
gchar _tmp24_;
+#line 719 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp8_ = _tmp7_;
+#line 719 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (!_tmp8_) {
+#line 7925 "scanner.c"
gint _tmp9_;
+#line 719 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp9_ = i;
+#line 719 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
i = _tmp9_ + 1;
+#line 7931 "scanner.c"
}
+#line 719 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp7_ = FALSE;
+#line 719 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp11_ = credentials;
+#line 719 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp12_ = _tmp11_->username;
+#line 719 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp13_ = i;
+#line 719 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp14_ = string_get (_tmp12_, (glong) _tmp13_);
+#line 719 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp14_ != '\0') {
+#line 7945 "scanner.c"
gint _tmp15_;
gint _tmp16_;
+#line 719 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp15_ = i;
+#line 719 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp16_ = SANE_MAX_USERNAME_LEN;
+#line 719 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp10_ = _tmp15_ < _tmp16_;
+#line 7954 "scanner.c"
} else {
+#line 719 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp10_ = FALSE;
+#line 7958 "scanner.c"
}
+#line 719 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp17_ = _tmp10_;
+#line 719 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (!_tmp17_) {
+#line 719 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
+#line 7966 "scanner.c"
}
+#line 720 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp18_ = username;
+#line 720 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp18__length1 = username_length1;
+#line 720 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp19_ = i;
+#line 720 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp20_ = credentials;
+#line 720 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp21_ = _tmp20_->username;
+#line 720 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp22_ = i;
+#line 720 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp23_ = string_get (_tmp21_, (glong) _tmp22_);
+#line 720 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp18_[_tmp19_] = _tmp23_;
+#line 720 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp24_ = _tmp18_[_tmp19_];
+#line 7986 "scanner.c"
}
}
}
{
gint i;
+#line 721 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
i = 0;
+#line 7994 "scanner.c"
{
gboolean _tmp25_;
+#line 721 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp25_ = TRUE;
+#line 721 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
while (TRUE) {
+#line 8001 "scanner.c"
gboolean _tmp26_;
gboolean _tmp28_ = FALSE;
Credentials* _tmp29_;
@@ -5383,48 +8019,85 @@ static void scanner_authorization_cb (const gchar* resource, gchar* username, in
gint _tmp40_;
gchar _tmp41_ = '\0';
gchar _tmp42_;
+#line 721 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp26_ = _tmp25_;
+#line 721 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (!_tmp26_) {
+#line 8021 "scanner.c"
gint _tmp27_;
+#line 721 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp27_ = i;
+#line 721 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
i = _tmp27_ + 1;
+#line 8027 "scanner.c"
}
+#line 721 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp25_ = FALSE;
+#line 721 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp29_ = credentials;
+#line 721 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp30_ = _tmp29_->password;
+#line 721 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp31_ = i;
+#line 721 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp32_ = string_get (_tmp30_, (glong) _tmp31_);
+#line 721 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp32_ != '\0') {
+#line 8041 "scanner.c"
gint _tmp33_;
gint _tmp34_;
+#line 721 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp33_ = i;
+#line 721 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp34_ = SANE_MAX_USERNAME_LEN;
+#line 721 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp28_ = _tmp33_ < _tmp34_;
+#line 8050 "scanner.c"
} else {
+#line 721 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp28_ = FALSE;
+#line 8054 "scanner.c"
}
+#line 721 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp35_ = _tmp28_;
+#line 721 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (!_tmp35_) {
+#line 721 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
+#line 8062 "scanner.c"
}
+#line 722 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp36_ = password;
+#line 722 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp36__length1 = password_length1;
+#line 722 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp37_ = i;
+#line 722 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp38_ = credentials;
+#line 722 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp39_ = _tmp38_->password;
+#line 722 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp40_ = i;
+#line 722 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp41_ = string_get (_tmp39_, (glong) _tmp40_);
+#line 722 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp36_[_tmp37_] = _tmp41_;
+#line 722 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp42_ = _tmp36_[_tmp37_];
+#line 8082 "scanner.c"
}
}
}
+#line 714 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_credentials_unref0 (credentials);
+#line 8088 "scanner.c"
}
static gpointer _credentials_ref0 (gpointer self) {
+#line 730 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return self ? credentials_ref (self) : NULL;
+#line 8095 "scanner.c"
}
@@ -5437,50 +8110,90 @@ void scanner_authorize (Scanner* self, const gchar* username, const gchar* passw
gchar* _tmp4_;
GAsyncQueue* _tmp5_;
Credentials* _tmp6_;
+#line 725 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (self != NULL);
+#line 725 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (username != NULL);
+#line 725 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (password != NULL);
+#line 727 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = credentials_new ();
+#line 727 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
credentials = _tmp0_;
+#line 728 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp1_ = username;
+#line 728 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp2_ = g_strdup (_tmp1_);
+#line 728 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (credentials->username);
+#line 728 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
credentials->username = _tmp2_;
+#line 729 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp3_ = password;
+#line 729 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp4_ = g_strdup (_tmp3_);
+#line 729 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (credentials->password);
+#line 729 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
credentials->password = _tmp4_;
+#line 730 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp5_ = self->priv->authorize_queue;
+#line 730 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp6_ = _credentials_ref0 (credentials);
+#line 730 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_async_queue_push (_tmp5_, _tmp6_);
+#line 725 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_credentials_unref0 (credentials);
+#line 8142 "scanner.c"
}
static void scanner_close_device (Scanner* self) {
gboolean _tmp0_;
+#line 733 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (self != NULL);
+#line 735 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = self->priv->have_handle;
+#line 735 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp0_) {
+#line 8154 "scanner.c"
SANE_Handle _tmp1_;
SANE_Handle _tmp2_;
+#line 737 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp1_ = self->priv->handle;
+#line 737 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
sane_cancel (_tmp1_);
- g_debug ("scanner.vala:715: sane_cancel ()");
+#line 738 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ g_debug ("scanner.vala:738: sane_cancel ()");
+#line 740 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp2_ = self->priv->handle;
+#line 740 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
sane_close (_tmp2_);
- g_debug ("scanner.vala:718: sane_close ()");
+#line 741 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ g_debug ("scanner.vala:741: sane_close ()");
+#line 742 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->have_handle = FALSE;
+#line 743 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_hash_table_unref0 (self->priv->options);
+#line 743 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->options = NULL;
+#line 8175 "scanner.c"
}
+#line 746 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->buffer = (g_free (self->priv->buffer), NULL);
+#line 746 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->buffer = NULL;
+#line 746 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->buffer_length1 = 0;
+#line 746 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->_buffer_size_ = self->priv->buffer_length1;
+#line 747 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
__g_list_free__scan_job_unref0_0 (self->priv->job_queue);
+#line 747 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->job_queue = NULL;
+#line 749 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scanner_set_scanning (self, FALSE);
+#line 8191 "scanner.c"
}
@@ -5489,26 +8202,41 @@ static void scanner_fail_scan (Scanner* self, gint error_code, const gchar* erro
const gchar* _tmp1_;
NotifyScanFailed* _tmp2_;
NotifyScanFailed* _tmp3_;
+#line 752 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (self != NULL);
+#line 752 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (error_string != NULL);
+#line 754 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scanner_close_device (self);
+#line 755 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->state = SCAN_STATE_IDLE;
+#line 756 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = error_code;
+#line 756 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp1_ = error_string;
+#line 756 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp2_ = notify_scan_failed_new (_tmp0_, _tmp1_);
+#line 756 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp3_ = _tmp2_;
+#line 756 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scanner_notify (self, (Notify*) _tmp3_);
+#line 756 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_notify_unref0 (_tmp3_);
+#line 8220 "scanner.c"
}
static gpointer _request_ref0 (gpointer self) {
+#line 781 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return self ? request_ref (self) : NULL;
+#line 8227 "scanner.c"
}
static gpointer _scan_job_ref0 (gpointer self) {
+#line 782 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return self ? scan_job_ref (self) : NULL;
+#line 8234 "scanner.c"
}
@@ -5518,21 +8246,37 @@ static gboolean scanner_handle_requests (Scanner* self) {
ScanState _tmp1_;
gboolean _tmp3_;
gint request_count;
+#line 759 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_val_if_fail (self != NULL, FALSE);
+#line 762 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp1_ = self->priv->state;
+#line 762 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp1_ == SCAN_STATE_IDLE) {
+#line 8250 "scanner.c"
gboolean _tmp2_;
+#line 762 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp2_ = self->priv->need_redetect;
+#line 762 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = _tmp2_;
+#line 8256 "scanner.c"
} else {
+#line 762 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = FALSE;
+#line 8260 "scanner.c"
}
+#line 762 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp3_ = _tmp0_;
+#line 762 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp3_) {
+#line 763 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->state = SCAN_STATE_REDETECT;
+#line 8268 "scanner.c"
}
+#line 766 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
request_count = 0;
+#line 767 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
while (TRUE) {
+#line 8274 "scanner.c"
Request* request = NULL;
gboolean _tmp4_ = FALSE;
gboolean _tmp5_ = FALSE;
@@ -5541,79 +8285,137 @@ static gboolean scanner_handle_requests (Scanner* self) {
gboolean _tmp11_;
gint _tmp14_;
Request* _tmp15_;
+#line 770 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp6_ = self->priv->state;
+#line 770 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp6_ == SCAN_STATE_IDLE) {
+#line 8287 "scanner.c"
gint _tmp7_;
+#line 770 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp7_ = request_count;
+#line 770 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp5_ = _tmp7_ == 0;
+#line 8293 "scanner.c"
} else {
+#line 770 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp5_ = FALSE;
+#line 8297 "scanner.c"
}
+#line 770 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp8_ = _tmp5_;
+#line 770 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp8_) {
+#line 770 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp4_ = TRUE;
+#line 8305 "scanner.c"
} else {
GAsyncQueue* _tmp9_;
gint _tmp10_ = 0;
+#line 771 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp9_ = self->priv->request_queue;
+#line 771 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp10_ = g_async_queue_length (_tmp9_);
+#line 771 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp4_ = _tmp10_ > 0;
+#line 8315 "scanner.c"
}
+#line 770 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp11_ = _tmp4_;
+#line 770 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp11_) {
+#line 8321 "scanner.c"
GAsyncQueue* _tmp12_;
gpointer _tmp13_ = NULL;
+#line 772 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp12_ = self->priv->request_queue;
+#line 772 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp13_ = g_async_queue_pop (_tmp12_);
+#line 772 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_request_unref0 (request);
+#line 772 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
request = (Request*) _tmp13_;
+#line 8332 "scanner.c"
} else {
+#line 774 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
result = TRUE;
+#line 774 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_request_unref0 (request);
+#line 774 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
+#line 8340 "scanner.c"
}
- g_debug ("scanner.vala:753: Processing request");
+#line 776 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ g_debug ("scanner.vala:776: Processing request");
+#line 777 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp14_ = request_count;
+#line 777 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
request_count = _tmp14_ + 1;
+#line 779 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp15_ = request;
+#line 779 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp15_, TYPE_REQUEST_START_SCAN)) {
+#line 8352 "scanner.c"
Request* _tmp16_;
RequestStartScan* _tmp17_;
RequestStartScan* r;
RequestStartScan* _tmp18_;
ScanJob* _tmp19_;
ScanJob* _tmp20_;
+#line 781 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp16_ = request;
+#line 781 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp17_ = _request_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_REQUEST_START_SCAN, RequestStartScan));
+#line 781 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
r = _tmp17_;
+#line 782 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp18_ = r;
+#line 782 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp19_ = _tmp18_->job;
+#line 782 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp20_ = _scan_job_ref0 (_tmp19_);
+#line 782 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->job_queue = g_list_append (self->priv->job_queue, _tmp20_);
+#line 779 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_request_unref0 (r);
+#line 8375 "scanner.c"
} else {
Request* _tmp21_;
+#line 784 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp21_ = request;
+#line 784 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp21_, TYPE_REQUEST_CANCEL)) {
+#line 786 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scanner_fail_scan (self, (gint) SANE_STATUS_CANCELLED, "Scan cancelled - do not report this error");
+#line 8384 "scanner.c"
} else {
Request* _tmp22_;
+#line 788 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp22_ = request;
+#line 788 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp22_, TYPE_REQUEST_QUIT)) {
+#line 790 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scanner_close_device (self);
+#line 791 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
result = FALSE;
+#line 791 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_request_unref0 (request);
+#line 791 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
+#line 8399 "scanner.c"
}
}
}
+#line 767 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_request_unref0 (request);
+#line 8405 "scanner.c"
}
}
static void _g_free0_ (gpointer var) {
+#line 835 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
var = (g_free (var), NULL);
+#line 8413 "scanner.c"
}
@@ -5646,108 +8448,203 @@ static void scanner_do_open (Scanner* self) {
ScanJob* _tmp36_;
const gchar* _tmp37_;
gchar* _tmp38_;
+#line 796 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (self != NULL);
+#line 798 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = self->priv->job_queue;
+#line 798 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp1_ = _tmp0_->data;
+#line 798 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp2_ = _scan_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST ((ScanJob*) _tmp1_, TYPE_SCAN_JOB, ScanJob));
+#line 798 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
job = _tmp2_;
+#line 800 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->line_count = 0;
+#line 801 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->pass_number = 0;
+#line 802 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->page_number = 0;
+#line 803 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->notified_page = -1;
+#line 804 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->option_index = (SANE_Int) 0;
+#line 806 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp4_ = job;
+#line 806 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp5_ = _tmp4_->device;
+#line 806 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp5_ == NULL) {
+#line 8472 "scanner.c"
const gchar* _tmp6_;
+#line 806 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp6_ = self->priv->default_device;
+#line 806 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp3_ = _tmp6_ != NULL;
+#line 8478 "scanner.c"
} else {
+#line 806 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp3_ = FALSE;
+#line 8482 "scanner.c"
}
+#line 806 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp7_ = _tmp3_;
+#line 806 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp7_) {
+#line 8488 "scanner.c"
ScanJob* _tmp8_;
const gchar* _tmp9_;
gchar* _tmp10_;
+#line 807 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp8_ = job;
+#line 807 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp9_ = self->priv->default_device;
+#line 807 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp10_ = g_strdup (_tmp9_);
+#line 807 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (_tmp8_->device);
+#line 807 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp8_->device = _tmp10_;
+#line 8502 "scanner.c"
}
+#line 809 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp11_ = job;
+#line 809 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp12_ = _tmp11_->device;
+#line 809 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp12_ == NULL) {
+#line 8510 "scanner.c"
const gchar* _tmp13_ = NULL;
- g_warning ("scanner.vala:788: No scan device available");
+#line 811 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ g_warning ("scanner.vala:811: No scan device available");
+#line 812 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp13_ = _ ("No scanners available. Please connect a scanner.");
+#line 812 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scanner_fail_scan (self, 0, _tmp13_);
+#line 815 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_scan_job_unref0 (job);
+#line 815 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return;
+#line 8522 "scanner.c"
}
+#line 819 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp14_ = self->priv->have_handle;
+#line 819 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp14_) {
+#line 8528 "scanner.c"
const gchar* _tmp15_;
ScanJob* _tmp16_;
const gchar* _tmp17_;
SANE_Handle _tmp18_;
+#line 821 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp15_ = self->priv->current_device;
+#line 821 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp16_ = job;
+#line 821 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp17_ = _tmp16_->device;
+#line 821 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (g_strcmp0 (_tmp15_, _tmp17_) == 0) {
+#line 823 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->state = SCAN_STATE_GET_OPTION;
+#line 824 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_scan_job_unref0 (job);
+#line 824 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return;
+#line 8547 "scanner.c"
}
+#line 827 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp18_ = self->priv->handle;
+#line 827 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
sane_close (_tmp18_);
- g_debug ("scanner.vala:805: sane_close ()");
+#line 828 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ g_debug ("scanner.vala:828: sane_close ()");
+#line 829 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->have_handle = FALSE;
+#line 8557 "scanner.c"
}
+#line 832 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (self->priv->current_device);
+#line 832 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->current_device = NULL;
+#line 834 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->have_handle = FALSE;
+#line 835 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp19_ = g_str_hash;
+#line 835 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp20_ = g_str_equal;
+#line 835 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp21_ = g_hash_table_new_full (_tmp19_, _tmp20_, _g_free0_, NULL);
+#line 835 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_hash_table_unref0 (self->priv->options);
+#line 835 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->options = _tmp21_;
+#line 836 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp22_ = job;
+#line 836 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp23_ = _tmp22_->device;
+#line 836 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp25_ = sane_open (_tmp23_, &_tmp24_);
+#line 836 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->handle = _tmp24_;
+#line 836 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
status = _tmp25_;
+#line 837 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp26_ = job;
+#line 837 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp27_ = _tmp26_->device;
+#line 837 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp28_ = status;
+#line 837 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp29_ = sane_status_to_string (_tmp28_);
+#line 837 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp30_ = _tmp29_;
- g_debug ("scanner.vala:814: sane_open (\"%s\") -> %s", _tmp27_, _tmp30_);
+#line 837 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ g_debug ("scanner.vala:837: sane_open (\"%s\") -> %s", _tmp27_, _tmp30_);
+#line 837 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (_tmp30_);
+#line 839 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp31_ = status;
+#line 839 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp31_ != SANE_STATUS_GOOD) {
+#line 8603 "scanner.c"
SANE_Status _tmp32_;
const gchar* _tmp33_ = NULL;
SANE_Status _tmp34_;
const gchar* _tmp35_ = NULL;
+#line 841 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp32_ = status;
+#line 841 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp33_ = sane_strstatus (_tmp32_);
- g_warning ("scanner.vala:818: Unable to get open device: %s", _tmp33_);
+#line 841 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ g_warning ("scanner.vala:841: Unable to get open device: %s", _tmp33_);
+#line 842 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp34_ = status;
+#line 842 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp35_ = _ ("Unable to connect to scanner");
+#line 842 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scanner_fail_scan (self, (gint) _tmp34_, _tmp35_);
+#line 845 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_scan_job_unref0 (job);
+#line 845 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return;
+#line 8624 "scanner.c"
}
+#line 847 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->have_handle = TRUE;
+#line 849 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp36_ = job;
+#line 849 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp37_ = _tmp36_->device;
+#line 849 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp38_ = g_strdup (_tmp37_);
+#line 849 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (self->priv->current_device);
+#line 849 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->current_device = _tmp38_;
+#line 850 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->state = SCAN_STATE_GET_OPTION;
+#line 796 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_scan_job_unref0 (job);
+#line 8642 "scanner.c"
}
@@ -5765,50 +8662,65 @@ static void scanner_do_get_option (Scanner* self) {
SANE_Int index;
SANE_Int _tmp8_;
SANE_Option_Descriptor* _tmp9_;
- SANE_Int _tmp332_;
- SANE_Option_Descriptor* _tmp333_;
- SANE_Option_Descriptor* _tmp334_;
- SANE_Value_Type _tmp335_;
- SANE_Option_Descriptor* _tmp336_;
- SANE_Int _tmp337_;
- SANE_Option_Descriptor* _tmp338_;
- const gchar* _tmp339_;
- GHashTable* _tmp340_;
- SANE_Option_Descriptor* _tmp341_;
- const gchar* _tmp342_;
- gchar* _tmp343_;
- SANE_Int _tmp344_;
+ SANE_Int _tmp373_;
+ SANE_Option_Descriptor* _tmp374_;
+ SANE_Option_Descriptor* _tmp375_;
+ SANE_Value_Type _tmp376_;
+ SANE_Option_Descriptor* _tmp377_;
+ SANE_Int _tmp378_;
+ SANE_Option_Descriptor* _tmp379_;
+ const gchar* _tmp380_;
+ GHashTable* _tmp381_;
+ SANE_Option_Descriptor* _tmp382_;
+ const gchar* _tmp383_;
+ gchar* _tmp384_;
+ SANE_Int _tmp385_;
+#line 853 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (self != NULL);
+#line 855 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = self->priv->job_queue;
+#line 855 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp1_ = _tmp0_->data;
+#line 855 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp2_ = _scan_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST ((ScanJob*) _tmp1_, TYPE_SCAN_JOB, ScanJob));
+#line 855 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
job = _tmp2_;
+#line 857 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp3_ = self->priv->handle;
+#line 857 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp4_ = self->priv->option_index;
+#line 857 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp5_ = sane_get_option_descriptor (_tmp3_, _tmp4_);
+#line 857 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
option = _tmp5_;
+#line 858 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp6_ = self->priv->option_index;
- g_debug ("scanner.vala:835: sane_get_option_descriptor (%d)", (gint) _tmp6_);
+#line 858 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ g_debug ("scanner.vala:858: sane_get_option_descriptor (%d)", (gint) _tmp6_);
+#line 859 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp7_ = self->priv->option_index;
+#line 859 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
index = _tmp7_;
+#line 860 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp8_ = self->priv->option_index;
+#line 860 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->option_index = _tmp8_ + 1;
+#line 863 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp9_ = option;
+#line 863 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp9_ == NULL) {
+#line 8707 "scanner.c"
SANE_Handle _tmp10_;
const gchar* _tmp11_;
gint _tmp12_ = 0;
SANE_Option_Descriptor* _tmp13_ = NULL;
SANE_Option_Descriptor* _tmp14_;
- SANE_Handle _tmp86_;
- const gchar* _tmp87_;
- gint _tmp88_ = 0;
- SANE_Option_Descriptor* _tmp89_ = NULL;
- SANE_Option_Descriptor* _tmp90_;
- SANE_Handle _tmp142_;
- gint _tmp143_ = 0;
- SANE_Option_Descriptor* _tmp144_ = NULL;
- SANE_Option_Descriptor* _tmp145_;
+ SANE_Option_Descriptor* _tmp18_;
+ SANE_Handle _tmp93_;
+ const gchar* _tmp94_;
+ gint _tmp95_ = 0;
+ SANE_Option_Descriptor* _tmp96_ = NULL;
+ SANE_Option_Descriptor* _tmp97_;
SANE_Handle _tmp153_;
gint _tmp154_ = 0;
SANE_Option_Descriptor* _tmp155_ = NULL;
@@ -5817,315 +8729,527 @@ static void scanner_do_get_option (Scanner* self) {
gint _tmp165_ = 0;
SANE_Option_Descriptor* _tmp166_ = NULL;
SANE_Option_Descriptor* _tmp167_;
- SANE_Handle _tmp180_;
- const gchar* _tmp181_;
- gint _tmp182_ = 0;
- SANE_Option_Descriptor* _tmp183_ = NULL;
- SANE_Option_Descriptor* _tmp184_;
- SANE_Handle _tmp214_;
- const gchar* _tmp215_;
- gint _tmp216_ = 0;
- SANE_Option_Descriptor* _tmp217_ = NULL;
- SANE_Option_Descriptor* _tmp218_;
- SANE_Handle _tmp236_;
- const gchar* _tmp237_;
- gint _tmp238_ = 0;
- SANE_Option_Descriptor* _tmp239_ = NULL;
- SANE_Option_Descriptor* _tmp240_;
- SANE_Handle _tmp258_;
- const gchar* _tmp259_;
- gint _tmp260_ = 0;
- SANE_Option_Descriptor* _tmp261_ = NULL;
- SANE_Option_Descriptor* _tmp262_;
- SANE_Handle _tmp277_;
- const gchar* _tmp278_;
- gint _tmp279_ = 0;
- SANE_Option_Descriptor* _tmp280_ = NULL;
- SANE_Option_Descriptor* _tmp281_;
- const gchar* _tmp296_;
+ SANE_Handle _tmp175_;
+ gint _tmp176_ = 0;
+ SANE_Option_Descriptor* _tmp177_ = NULL;
+ SANE_Option_Descriptor* _tmp178_;
+ SANE_Handle _tmp191_;
+ const gchar* _tmp192_;
+ gint _tmp193_ = 0;
+ SANE_Option_Descriptor* _tmp194_ = NULL;
+ SANE_Option_Descriptor* _tmp195_;
+ SANE_Handle _tmp225_;
+ const gchar* _tmp226_;
+ gint _tmp227_ = 0;
+ SANE_Option_Descriptor* _tmp228_ = NULL;
+ SANE_Option_Descriptor* _tmp229_;
+ SANE_Handle _tmp247_;
+ const gchar* _tmp248_;
+ gint _tmp249_ = 0;
+ SANE_Option_Descriptor* _tmp250_ = NULL;
+ SANE_Option_Descriptor* _tmp251_;
+ SANE_Handle _tmp269_;
+ const gchar* _tmp270_;
+ gint _tmp271_ = 0;
+ SANE_Option_Descriptor* _tmp272_ = NULL;
+ SANE_Option_Descriptor* _tmp273_;
+ SANE_Handle _tmp288_;
+ const gchar* _tmp289_;
+ gint _tmp290_ = 0;
+ SANE_Option_Descriptor* _tmp291_ = NULL;
+ SANE_Option_Descriptor* _tmp292_;
+ SANE_Handle _tmp307_;
+ const gchar* _tmp308_;
+ gint _tmp309_ = 0;
+ SANE_Option_Descriptor* _tmp310_ = NULL;
+ SANE_Option_Descriptor* _tmp311_;
+ SANE_Handle _tmp322_;
+ const gchar* _tmp323_;
+ gint _tmp324_ = 0;
+ SANE_Option_Descriptor* _tmp325_ = NULL;
+ SANE_Option_Descriptor* _tmp326_;
+ const gchar* _tmp337_;
+#line 866 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp10_ = self->priv->handle;
+#line 866 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp11_ = SANE_NAME_SCAN_SOURCE;
+#line 866 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp13_ = scanner_get_option_by_name (self, _tmp10_, _tmp11_, &_tmp12_);
+#line 866 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
index = (SANE_Int) _tmp12_;
+#line 866 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
option = _tmp13_;
+#line 867 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp14_ = option;
- if (_tmp14_ != NULL) {
- gchar* _tmp15_;
- const gchar* _tmp16_ = NULL;
- gchar* _tmp17_;
- gchar* _tmp18_;
- const gchar* _tmp19_ = NULL;
- gchar* _tmp20_;
+#line 867 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ if (_tmp14_ == NULL) {
+#line 8781 "scanner.c"
+ SANE_Handle _tmp15_;
+ gint _tmp16_ = 0;
+ SANE_Option_Descriptor* _tmp17_ = NULL;
+#line 869 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ g_debug ("scanner.vala:869: SCAN_SOURCE not available, trying alternative \"doc-" \
+"source\"");
+#line 870 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp15_ = self->priv->handle;
+#line 870 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp17_ = scanner_get_option_by_name (self, _tmp15_, "doc-source", &_tmp16_);
+#line 870 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ index = (SANE_Int) _tmp16_;
+#line 870 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ option = _tmp17_;
+#line 8795 "scanner.c"
+ }
+#line 872 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp18_ = option;
+#line 872 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ if (_tmp18_ != NULL) {
+#line 8801 "scanner.c"
+ gchar* _tmp19_;
+ const gchar* _tmp20_ = NULL;
gchar* _tmp21_;
gchar* _tmp22_;
const gchar* _tmp23_ = NULL;
gchar* _tmp24_;
- gchar** _tmp25_ = NULL;
- gchar** flatbed_sources;
- gint flatbed_sources_length1;
- gint _flatbed_sources_size_;
+ gchar* _tmp25_;
gchar* _tmp26_;
const gchar* _tmp27_ = NULL;
gchar* _tmp28_;
- gchar* _tmp29_;
+ gchar** _tmp29_ = NULL;
+ gchar** flatbed_sources;
+ gint flatbed_sources_length1;
+ gint _flatbed_sources_size_;
gchar* _tmp30_;
- gchar* _tmp31_;
- gchar** _tmp32_ = NULL;
+ const gchar* _tmp31_ = NULL;
+ gchar* _tmp32_;
+ gchar* _tmp33_;
+ gchar* _tmp34_;
+ gchar* _tmp35_;
+ gchar* _tmp36_;
+ gchar** _tmp37_ = NULL;
gchar** adf_sources;
gint adf_sources_length1;
gint _adf_sources_size_;
- gchar* _tmp33_;
- const gchar* _tmp34_ = NULL;
- gchar* _tmp35_;
- gchar** _tmp36_ = NULL;
+ gchar* _tmp38_;
+ const gchar* _tmp39_ = NULL;
+ gchar* _tmp40_;
+ gchar** _tmp41_ = NULL;
gchar** adf_front_sources;
gint adf_front_sources_length1;
gint _adf_front_sources_size_;
- gchar* _tmp37_;
- const gchar* _tmp38_ = NULL;
- gchar* _tmp39_;
- gchar** _tmp40_ = NULL;
+ gchar* _tmp42_;
+ const gchar* _tmp43_ = NULL;
+ gchar* _tmp44_;
+ gchar** _tmp45_ = NULL;
gchar** adf_back_sources;
gint adf_back_sources_length1;
gint _adf_back_sources_size_;
- gchar* _tmp41_;
- const gchar* _tmp42_ = NULL;
- gchar* _tmp43_;
- gchar** _tmp44_ = NULL;
+ gchar* _tmp46_;
+ const gchar* _tmp47_ = NULL;
+ gchar* _tmp48_;
+ gchar* _tmp49_;
+ gchar* _tmp50_;
+ gchar** _tmp51_ = NULL;
gchar** adf_duplex_sources;
gint adf_duplex_sources_length1;
gint _adf_duplex_sources_size_;
- ScanJob* _tmp45_;
- ScanType _tmp46_;
- _tmp15_ = g_strdup ("Auto");
- _tmp16_ = SANE_I18N ("Auto");
- _tmp17_ = g_strdup (_tmp16_);
- _tmp18_ = g_strdup ("Flatbed");
- _tmp19_ = SANE_I18N ("Flatbed");
- _tmp20_ = g_strdup (_tmp19_);
- _tmp21_ = g_strdup ("FlatBed");
- _tmp22_ = g_strdup ("Normal");
- _tmp23_ = SANE_I18N ("Normal");
+ ScanJob* _tmp52_;
+ ScanType _tmp53_;
+#line 874 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp19_ = g_strdup ("Auto");
+#line 874 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp20_ = SANE_I18N ("Auto");
+#line 874 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp21_ = g_strdup (_tmp20_);
+#line 874 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp22_ = g_strdup ("Flatbed");
+#line 874 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp23_ = SANE_I18N ("Flatbed");
+#line 874 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp24_ = g_strdup (_tmp23_);
- _tmp25_ = g_new0 (gchar*, 7 + 1);
- _tmp25_[0] = _tmp15_;
- _tmp25_[1] = _tmp17_;
- _tmp25_[2] = _tmp18_;
- _tmp25_[3] = _tmp20_;
- _tmp25_[4] = _tmp21_;
- _tmp25_[5] = _tmp22_;
- _tmp25_[6] = _tmp24_;
- flatbed_sources = _tmp25_;
+#line 874 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp25_ = g_strdup ("FlatBed");
+#line 874 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp26_ = g_strdup ("Normal");
+#line 874 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp27_ = SANE_I18N ("Normal");
+#line 874 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp28_ = g_strdup (_tmp27_);
+#line 874 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp29_ = g_new0 (gchar*, 7 + 1);
+#line 874 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp29_[0] = _tmp19_;
+#line 874 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp29_[1] = _tmp21_;
+#line 874 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp29_[2] = _tmp22_;
+#line 874 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp29_[3] = _tmp24_;
+#line 874 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp29_[4] = _tmp25_;
+#line 874 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp29_[5] = _tmp26_;
+#line 874 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp29_[6] = _tmp28_;
+#line 874 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ flatbed_sources = _tmp29_;
+#line 874 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
flatbed_sources_length1 = 7;
+#line 874 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_flatbed_sources_size_ = flatbed_sources_length1;
- _tmp26_ = g_strdup ("Automatic Document Feeder");
- _tmp27_ = SANE_I18N ("Automatic Document Feeder");
- _tmp28_ = g_strdup (_tmp27_);
- _tmp29_ = g_strdup ("ADF");
- _tmp30_ = g_strdup ("Automatic Document Feeder(left aligned)");
- _tmp31_ = g_strdup ("Automatic Document Feeder(centrally aligned)");
- _tmp32_ = g_new0 (gchar*, 5 + 1);
- _tmp32_[0] = _tmp26_;
- _tmp32_[1] = _tmp28_;
- _tmp32_[2] = _tmp29_;
- _tmp32_[3] = _tmp30_;
- _tmp32_[4] = _tmp31_;
- adf_sources = _tmp32_;
- adf_sources_length1 = 5;
+#line 885 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp30_ = g_strdup ("Automatic Document Feeder");
+#line 885 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp31_ = SANE_I18N ("Automatic Document Feeder");
+#line 885 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp32_ = g_strdup (_tmp31_);
+#line 885 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp33_ = g_strdup ("ADF");
+#line 885 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp34_ = g_strdup ("Automatic Document Feeder(left aligned)");
+#line 885 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp35_ = g_strdup ("Automatic Document Feeder(centrally aligned)");
+#line 885 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp36_ = g_strdup ("ADF Simplex");
+#line 885 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp37_ = g_new0 (gchar*, 6 + 1);
+#line 885 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp37_[0] = _tmp30_;
+#line 885 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp37_[1] = _tmp32_;
+#line 885 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp37_[2] = _tmp33_;
+#line 885 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp37_[3] = _tmp34_;
+#line 885 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp37_[4] = _tmp35_;
+#line 885 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp37_[5] = _tmp36_;
+#line 885 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ adf_sources = _tmp37_;
+#line 885 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ adf_sources_length1 = 6;
+#line 885 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_adf_sources_size_ = adf_sources_length1;
- _tmp33_ = g_strdup ("ADF Front");
- _tmp34_ = SANE_I18N ("ADF Front");
- _tmp35_ = g_strdup (_tmp34_);
- _tmp36_ = g_new0 (gchar*, 2 + 1);
- _tmp36_[0] = _tmp33_;
- _tmp36_[1] = _tmp35_;
- adf_front_sources = _tmp36_;
+#line 895 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp38_ = g_strdup ("ADF Front");
+#line 895 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp39_ = SANE_I18N ("ADF Front");
+#line 895 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp40_ = g_strdup (_tmp39_);
+#line 895 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp41_ = g_new0 (gchar*, 2 + 1);
+#line 895 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp41_[0] = _tmp38_;
+#line 895 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp41_[1] = _tmp40_;
+#line 895 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ adf_front_sources = _tmp41_;
+#line 895 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
adf_front_sources_length1 = 2;
+#line 895 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_adf_front_sources_size_ = adf_front_sources_length1;
- _tmp37_ = g_strdup ("ADF Back");
- _tmp38_ = SANE_I18N ("ADF Back");
- _tmp39_ = g_strdup (_tmp38_);
- _tmp40_ = g_new0 (gchar*, 2 + 1);
- _tmp40_[0] = _tmp37_;
- _tmp40_[1] = _tmp39_;
- adf_back_sources = _tmp40_;
+#line 901 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp42_ = g_strdup ("ADF Back");
+#line 901 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp43_ = SANE_I18N ("ADF Back");
+#line 901 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp44_ = g_strdup (_tmp43_);
+#line 901 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp45_ = g_new0 (gchar*, 2 + 1);
+#line 901 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp45_[0] = _tmp42_;
+#line 901 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp45_[1] = _tmp44_;
+#line 901 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ adf_back_sources = _tmp45_;
+#line 901 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
adf_back_sources_length1 = 2;
+#line 901 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_adf_back_sources_size_ = adf_back_sources_length1;
- _tmp41_ = g_strdup ("ADF Duplex");
- _tmp42_ = SANE_I18N ("ADF Duplex");
- _tmp43_ = g_strdup (_tmp42_);
- _tmp44_ = g_new0 (gchar*, 2 + 1);
- _tmp44_[0] = _tmp41_;
- _tmp44_[1] = _tmp43_;
- adf_duplex_sources = _tmp44_;
- adf_duplex_sources_length1 = 2;
+#line 907 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp46_ = g_strdup ("ADF Duplex");
+#line 907 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp47_ = SANE_I18N ("ADF Duplex");
+#line 907 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp48_ = g_strdup (_tmp47_);
+#line 907 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp49_ = g_strdup ("ADF Duplex - Long-Edge Binding");
+#line 907 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp50_ = g_strdup ("ADF Duplex - Short-Edge Binding");
+#line 907 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp51_ = g_new0 (gchar*, 4 + 1);
+#line 907 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp51_[0] = _tmp46_;
+#line 907 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp51_[1] = _tmp48_;
+#line 907 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp51_[2] = _tmp49_;
+#line 907 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp51_[3] = _tmp50_;
+#line 907 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ adf_duplex_sources = _tmp51_;
+#line 907 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ adf_duplex_sources_length1 = 4;
+#line 907 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_adf_duplex_sources_size_ = adf_duplex_sources_length1;
- _tmp45_ = job;
- _tmp46_ = _tmp45_->type;
- switch (_tmp46_) {
+#line 915 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp52_ = job;
+#line 915 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp53_ = _tmp52_->type;
+#line 915 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ switch (_tmp53_) {
+#line 915 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SCAN_TYPE_SINGLE:
+#line 8998 "scanner.c"
{
- SANE_Handle _tmp47_;
- SANE_Option_Descriptor* _tmp48_;
- SANE_Int _tmp49_;
- gboolean _tmp50_ = FALSE;
- _tmp47_ = self->priv->handle;
- _tmp48_ = option;
- _tmp49_ = index;
- _tmp50_ = scanner_set_default_option (self, _tmp47_, _tmp48_, _tmp49_);
- if (!_tmp50_) {
- SANE_Handle _tmp51_;
- SANE_Option_Descriptor* _tmp52_;
- SANE_Int _tmp53_;
- gchar** _tmp54_;
- gint _tmp54__length1;
- gboolean _tmp55_ = FALSE;
- _tmp51_ = self->priv->handle;
- _tmp52_ = option;
- _tmp53_ = index;
- _tmp54_ = flatbed_sources;
- _tmp54__length1 = flatbed_sources_length1;
- _tmp55_ = scanner_set_constrained_string_option (self, _tmp51_, _tmp52_, _tmp53_, _tmp54_, _tmp54__length1, NULL);
- if (!_tmp55_) {
- g_warning ("scanner.vala:889: Unable to set single page source, please file a bug");
+ SANE_Handle _tmp54_;
+ SANE_Option_Descriptor* _tmp55_;
+ SANE_Int _tmp56_;
+ gboolean _tmp57_ = FALSE;
+#line 918 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp54_ = self->priv->handle;
+#line 918 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp55_ = option;
+#line 918 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp56_ = index;
+#line 918 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp57_ = scanner_set_default_option (self, _tmp54_, _tmp55_, _tmp56_);
+#line 918 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ if (!_tmp57_) {
+#line 9014 "scanner.c"
+ SANE_Handle _tmp58_;
+ SANE_Option_Descriptor* _tmp59_;
+ SANE_Int _tmp60_;
+ gchar** _tmp61_;
+ gint _tmp61__length1;
+ gboolean _tmp62_ = FALSE;
+#line 919 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp58_ = self->priv->handle;
+#line 919 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp59_ = option;
+#line 919 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp60_ = index;
+#line 919 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp61_ = flatbed_sources;
+#line 919 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp61__length1 = flatbed_sources_length1;
+#line 919 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp62_ = scanner_set_constrained_string_option (self, _tmp58_, _tmp59_, _tmp60_, _tmp61_, _tmp61__length1, NULL);
+#line 919 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ if (!_tmp62_) {
+#line 920 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ g_warning ("scanner.vala:920: Unable to set single page source, please file a bug");
+#line 9037 "scanner.c"
}
}
+#line 921 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
+#line 9042 "scanner.c"
}
+#line 915 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SCAN_TYPE_ADF_FRONT:
+#line 9046 "scanner.c"
{
- SANE_Handle _tmp56_;
- SANE_Option_Descriptor* _tmp57_;
- SANE_Int _tmp58_;
- gchar** _tmp59_;
- gint _tmp59__length1;
- gboolean _tmp60_ = FALSE;
- _tmp56_ = self->priv->handle;
- _tmp57_ = option;
- _tmp58_ = index;
- _tmp59_ = adf_front_sources;
- _tmp59__length1 = adf_front_sources_length1;
- _tmp60_ = scanner_set_constrained_string_option (self, _tmp56_, _tmp57_, _tmp58_, _tmp59_, _tmp59__length1, NULL);
- if (!_tmp60_) {
- SANE_Handle _tmp61_;
- SANE_Option_Descriptor* _tmp62_;
- SANE_Int _tmp63_;
- gchar** _tmp64_;
- gint _tmp64__length1;
- gboolean _tmp65_ = FALSE;
- _tmp61_ = self->priv->handle;
- _tmp62_ = option;
- _tmp63_ = index;
- _tmp64_ = adf_sources;
- _tmp64__length1 = adf_sources_length1;
- _tmp65_ = scanner_set_constrained_string_option (self, _tmp61_, _tmp62_, _tmp63_, _tmp64_, _tmp64__length1, NULL);
- if (!_tmp65_) {
- g_warning ("scanner.vala:894: Unable to set front ADF source, please file a bug");
+ SANE_Handle _tmp63_;
+ SANE_Option_Descriptor* _tmp64_;
+ SANE_Int _tmp65_;
+ gchar** _tmp66_;
+ gint _tmp66__length1;
+ gboolean _tmp67_ = FALSE;
+#line 923 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp63_ = self->priv->handle;
+#line 923 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp64_ = option;
+#line 923 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp65_ = index;
+#line 923 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp66_ = adf_front_sources;
+#line 923 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp66__length1 = adf_front_sources_length1;
+#line 923 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp67_ = scanner_set_constrained_string_option (self, _tmp63_, _tmp64_, _tmp65_, _tmp66_, _tmp66__length1, NULL);
+#line 923 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ if (!_tmp67_) {
+#line 9068 "scanner.c"
+ SANE_Handle _tmp68_;
+ SANE_Option_Descriptor* _tmp69_;
+ SANE_Int _tmp70_;
+ gchar** _tmp71_;
+ gint _tmp71__length1;
+ gboolean _tmp72_ = FALSE;
+#line 924 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp68_ = self->priv->handle;
+#line 924 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp69_ = option;
+#line 924 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp70_ = index;
+#line 924 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp71_ = adf_sources;
+#line 924 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp71__length1 = adf_sources_length1;
+#line 924 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp72_ = scanner_set_constrained_string_option (self, _tmp68_, _tmp69_, _tmp70_, _tmp71_, _tmp71__length1, NULL);
+#line 924 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ if (!_tmp72_) {
+#line 925 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ g_warning ("scanner.vala:925: Unable to set front ADF source, please file a bug");
+#line 9091 "scanner.c"
}
}
+#line 926 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
+#line 9096 "scanner.c"
}
+#line 915 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SCAN_TYPE_ADF_BACK:
+#line 9100 "scanner.c"
{
- SANE_Handle _tmp66_;
- SANE_Option_Descriptor* _tmp67_;
- SANE_Int _tmp68_;
- gchar** _tmp69_;
- gint _tmp69__length1;
- gboolean _tmp70_ = FALSE;
- _tmp66_ = self->priv->handle;
- _tmp67_ = option;
- _tmp68_ = index;
- _tmp69_ = adf_back_sources;
- _tmp69__length1 = adf_back_sources_length1;
- _tmp70_ = scanner_set_constrained_string_option (self, _tmp66_, _tmp67_, _tmp68_, _tmp69_, _tmp69__length1, NULL);
- if (!_tmp70_) {
- SANE_Handle _tmp71_;
- SANE_Option_Descriptor* _tmp72_;
- SANE_Int _tmp73_;
- gchar** _tmp74_;
- gint _tmp74__length1;
- gboolean _tmp75_ = FALSE;
- _tmp71_ = self->priv->handle;
- _tmp72_ = option;
- _tmp73_ = index;
- _tmp74_ = adf_sources;
- _tmp74__length1 = adf_sources_length1;
- _tmp75_ = scanner_set_constrained_string_option (self, _tmp71_, _tmp72_, _tmp73_, _tmp74_, _tmp74__length1, NULL);
- if (!_tmp75_) {
- g_warning ("scanner.vala:899: Unable to set back ADF source, please file a bug");
+ SANE_Handle _tmp73_;
+ SANE_Option_Descriptor* _tmp74_;
+ SANE_Int _tmp75_;
+ gchar** _tmp76_;
+ gint _tmp76__length1;
+ gboolean _tmp77_ = FALSE;
+#line 928 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp73_ = self->priv->handle;
+#line 928 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp74_ = option;
+#line 928 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp75_ = index;
+#line 928 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp76_ = adf_back_sources;
+#line 928 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp76__length1 = adf_back_sources_length1;
+#line 928 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp77_ = scanner_set_constrained_string_option (self, _tmp73_, _tmp74_, _tmp75_, _tmp76_, _tmp76__length1, NULL);
+#line 928 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ if (!_tmp77_) {
+#line 9122 "scanner.c"
+ SANE_Handle _tmp78_;
+ SANE_Option_Descriptor* _tmp79_;
+ SANE_Int _tmp80_;
+ gchar** _tmp81_;
+ gint _tmp81__length1;
+ gboolean _tmp82_ = FALSE;
+#line 929 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp78_ = self->priv->handle;
+#line 929 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp79_ = option;
+#line 929 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp80_ = index;
+#line 929 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp81_ = adf_sources;
+#line 929 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp81__length1 = adf_sources_length1;
+#line 929 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp82_ = scanner_set_constrained_string_option (self, _tmp78_, _tmp79_, _tmp80_, _tmp81_, _tmp81__length1, NULL);
+#line 929 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ if (!_tmp82_) {
+#line 930 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ g_warning ("scanner.vala:930: Unable to set back ADF source, please file a bug");
+#line 9145 "scanner.c"
}
}
+#line 931 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
+#line 9150 "scanner.c"
}
+#line 915 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SCAN_TYPE_ADF_BOTH:
+#line 9154 "scanner.c"
{
- SANE_Handle _tmp76_;
- SANE_Option_Descriptor* _tmp77_;
- SANE_Int _tmp78_;
- gchar** _tmp79_;
- gint _tmp79__length1;
- gboolean _tmp80_ = FALSE;
- _tmp76_ = self->priv->handle;
- _tmp77_ = option;
- _tmp78_ = index;
- _tmp79_ = adf_duplex_sources;
- _tmp79__length1 = adf_duplex_sources_length1;
- _tmp80_ = scanner_set_constrained_string_option (self, _tmp76_, _tmp77_, _tmp78_, _tmp79_, _tmp79__length1, NULL);
- if (!_tmp80_) {
- SANE_Handle _tmp81_;
- SANE_Option_Descriptor* _tmp82_;
- SANE_Int _tmp83_;
- gchar** _tmp84_;
- gint _tmp84__length1;
- gboolean _tmp85_ = FALSE;
- _tmp81_ = self->priv->handle;
- _tmp82_ = option;
- _tmp83_ = index;
- _tmp84_ = adf_sources;
- _tmp84__length1 = adf_sources_length1;
- _tmp85_ = scanner_set_constrained_string_option (self, _tmp81_, _tmp82_, _tmp83_, _tmp84_, _tmp84__length1, NULL);
- if (!_tmp85_) {
- g_warning ("scanner.vala:904: Unable to set duplex ADF source, please file a bug");
+ SANE_Handle _tmp83_;
+ SANE_Option_Descriptor* _tmp84_;
+ SANE_Int _tmp85_;
+ gchar** _tmp86_;
+ gint _tmp86__length1;
+ gboolean _tmp87_ = FALSE;
+#line 933 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp83_ = self->priv->handle;
+#line 933 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp84_ = option;
+#line 933 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp85_ = index;
+#line 933 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp86_ = adf_duplex_sources;
+#line 933 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp86__length1 = adf_duplex_sources_length1;
+#line 933 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp87_ = scanner_set_constrained_string_option (self, _tmp83_, _tmp84_, _tmp85_, _tmp86_, _tmp86__length1, NULL);
+#line 933 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ if (!_tmp87_) {
+#line 9176 "scanner.c"
+ SANE_Handle _tmp88_;
+ SANE_Option_Descriptor* _tmp89_;
+ SANE_Int _tmp90_;
+ gchar** _tmp91_;
+ gint _tmp91__length1;
+ gboolean _tmp92_ = FALSE;
+#line 934 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp88_ = self->priv->handle;
+#line 934 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp89_ = option;
+#line 934 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp90_ = index;
+#line 934 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp91_ = adf_sources;
+#line 934 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp91__length1 = adf_sources_length1;
+#line 934 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp92_ = scanner_set_constrained_string_option (self, _tmp88_, _tmp89_, _tmp90_, _tmp91_, _tmp91__length1, NULL);
+#line 934 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ if (!_tmp92_) {
+#line 935 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ g_warning ("scanner.vala:935: Unable to set duplex ADF source, please file a bug");
+#line 9199 "scanner.c"
}
}
+#line 936 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
+#line 9204 "scanner.c"
}
default:
+#line 915 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
+#line 9209 "scanner.c"
}
+#line 872 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
adf_duplex_sources = (_vala_array_free (adf_duplex_sources, adf_duplex_sources_length1, (GDestroyNotify) g_free), NULL);
+#line 872 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
adf_back_sources = (_vala_array_free (adf_back_sources, adf_back_sources_length1, (GDestroyNotify) g_free), NULL);
+#line 872 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
adf_front_sources = (_vala_array_free (adf_front_sources, adf_front_sources_length1, (GDestroyNotify) g_free), NULL);
+#line 872 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
adf_sources = (_vala_array_free (adf_sources, adf_sources_length1, (GDestroyNotify) g_free), NULL);
+#line 872 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
flatbed_sources = (_vala_array_free (flatbed_sources, flatbed_sources_length1, (GDestroyNotify) g_free), NULL);
+#line 9221 "scanner.c"
}
- _tmp86_ = self->priv->handle;
- _tmp87_ = SANE_NAME_SCAN_MODE;
- _tmp89_ = scanner_get_option_by_name (self, _tmp86_, _tmp87_, &_tmp88_);
- index = (SANE_Int) _tmp88_;
- option = _tmp89_;
- _tmp90_ = option;
- if (_tmp90_ != NULL) {
- const gchar* _tmp91_;
- gchar* _tmp92_;
- gchar* _tmp93_;
- gchar* _tmp94_;
- gchar** _tmp95_ = NULL;
- gchar** color_scan_modes;
- gint color_scan_modes_length1;
- gint _color_scan_modes_size_;
- const gchar* _tmp96_;
- gchar* _tmp97_;
- gchar* _tmp98_;
+#line 941 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp93_ = self->priv->handle;
+#line 941 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp94_ = SANE_NAME_SCAN_MODE;
+#line 941 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp96_ = scanner_get_option_by_name (self, _tmp93_, _tmp94_, &_tmp95_);
+#line 941 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ index = (SANE_Int) _tmp95_;
+#line 941 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ option = _tmp96_;
+#line 942 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp97_ = option;
+#line 942 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ if (_tmp97_ != NULL) {
+#line 9237 "scanner.c"
+ const gchar* _tmp98_;
gchar* _tmp99_;
- const gchar* _tmp100_ = NULL;
+ gchar* _tmp100_;
gchar* _tmp101_;
gchar* _tmp102_;
gchar** _tmp103_ = NULL;
- gchar** gray_scan_modes;
- gint gray_scan_modes_length1;
- gint _gray_scan_modes_size_;
+ gchar** color_scan_modes;
+ gint color_scan_modes_length1;
+ gint _color_scan_modes_size_;
const gchar* _tmp104_;
gchar* _tmp105_;
gchar* _tmp106_;
@@ -6133,642 +9257,1238 @@ static void scanner_do_get_option (Scanner* self) {
const gchar* _tmp108_ = NULL;
gchar* _tmp109_;
gchar* _tmp110_;
- const gchar* _tmp111_ = NULL;
- gchar* _tmp112_;
- gchar* _tmp113_;
- const gchar* _tmp114_ = NULL;
+ gchar* _tmp111_;
+ gchar** _tmp112_ = NULL;
+ gchar** gray_scan_modes;
+ gint gray_scan_modes_length1;
+ gint _gray_scan_modes_size_;
+ const gchar* _tmp113_;
+ gchar* _tmp114_;
gchar* _tmp115_;
gchar* _tmp116_;
- const gchar* _tmp117_;
+ const gchar* _tmp117_ = NULL;
gchar* _tmp118_;
gchar* _tmp119_;
- gchar* _tmp120_;
- const gchar* _tmp121_ = NULL;
+ const gchar* _tmp120_ = NULL;
+ gchar* _tmp121_;
gchar* _tmp122_;
- gchar* _tmp123_;
- gchar** _tmp124_ = NULL;
+ const gchar* _tmp123_ = NULL;
+ gchar* _tmp124_;
+ gchar* _tmp125_;
+ const gchar* _tmp126_;
+ gchar* _tmp127_;
+ gchar* _tmp128_;
+ gchar* _tmp129_;
+ const gchar* _tmp130_ = NULL;
+ gchar* _tmp131_;
+ gchar* _tmp132_;
+ gchar* _tmp133_;
+ gchar* _tmp134_;
+ gchar** _tmp135_ = NULL;
gchar** lineart_scan_modes;
gint lineart_scan_modes_length1;
gint _lineart_scan_modes_size_;
- ScanJob* _tmp125_;
- ScanMode _tmp126_;
- _tmp91_ = SANE_VALUE_SCAN_MODE_COLOR;
- _tmp92_ = g_strdup (_tmp91_);
- _tmp93_ = g_strdup ("Color");
- _tmp94_ = g_strdup ("24bit Color");
- _tmp95_ = g_new0 (gchar*, 3 + 1);
- _tmp95_[0] = _tmp92_;
- _tmp95_[1] = _tmp93_;
- _tmp95_[2] = _tmp94_;
- color_scan_modes = _tmp95_;
- color_scan_modes_length1 = 3;
+ ScanJob* _tmp136_;
+ ScanMode _tmp137_;
+#line 945 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp98_ = SANE_VALUE_SCAN_MODE_COLOR;
+#line 945 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp99_ = g_strdup (_tmp98_);
+#line 945 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp100_ = g_strdup ("Color");
+#line 945 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp101_ = g_strdup ("24bit Color");
+#line 945 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp102_ = g_strdup ("Color - 16 Million Colors");
+#line 945 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp103_ = g_new0 (gchar*, 4 + 1);
+#line 945 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp103_[0] = _tmp99_;
+#line 945 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp103_[1] = _tmp100_;
+#line 945 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp103_[2] = _tmp101_;
+#line 945 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp103_[3] = _tmp102_;
+#line 945 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ color_scan_modes = _tmp103_;
+#line 945 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ color_scan_modes_length1 = 4;
+#line 945 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_color_scan_modes_size_ = color_scan_modes_length1;
- _tmp96_ = SANE_VALUE_SCAN_MODE_GRAY;
- _tmp97_ = g_strdup (_tmp96_);
- _tmp98_ = g_strdup ("Gray");
- _tmp99_ = g_strdup ("Grayscale");
- _tmp100_ = SANE_I18N ("Grayscale");
- _tmp101_ = g_strdup (_tmp100_);
- _tmp102_ = g_strdup ("True Gray");
- _tmp103_ = g_new0 (gchar*, 5 + 1);
- _tmp103_[0] = _tmp97_;
- _tmp103_[1] = _tmp98_;
- _tmp103_[2] = _tmp99_;
- _tmp103_[3] = _tmp101_;
- _tmp103_[4] = _tmp102_;
- gray_scan_modes = _tmp103_;
- gray_scan_modes_length1 = 5;
- _gray_scan_modes_size_ = gray_scan_modes_length1;
- _tmp104_ = SANE_VALUE_SCAN_MODE_LINEART;
+#line 952 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp104_ = SANE_VALUE_SCAN_MODE_GRAY;
+#line 952 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp105_ = g_strdup (_tmp104_);
- _tmp106_ = g_strdup ("Lineart");
- _tmp107_ = g_strdup ("LineArt");
- _tmp108_ = SANE_I18N ("LineArt");
+#line 952 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp106_ = g_strdup ("Gray");
+#line 952 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp107_ = g_strdup ("Grayscale");
+#line 952 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp108_ = SANE_I18N ("Grayscale");
+#line 952 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp109_ = g_strdup (_tmp108_);
- _tmp110_ = g_strdup ("Black & White");
- _tmp111_ = SANE_I18N ("Black & White");
- _tmp112_ = g_strdup (_tmp111_);
- _tmp113_ = g_strdup ("Binary");
- _tmp114_ = SANE_I18N ("Binary");
- _tmp115_ = g_strdup (_tmp114_);
- _tmp116_ = g_strdup ("Thresholded");
- _tmp117_ = SANE_VALUE_SCAN_MODE_GRAY;
+#line 952 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp110_ = g_strdup ("True Gray");
+#line 952 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp111_ = g_strdup ("Grayscale - 256 Levels");
+#line 952 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp112_ = g_new0 (gchar*, 6 + 1);
+#line 952 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp112_[0] = _tmp105_;
+#line 952 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp112_[1] = _tmp106_;
+#line 952 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp112_[2] = _tmp107_;
+#line 952 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp112_[3] = _tmp109_;
+#line 952 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp112_[4] = _tmp110_;
+#line 952 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp112_[5] = _tmp111_;
+#line 952 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ gray_scan_modes = _tmp112_;
+#line 952 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ gray_scan_modes_length1 = 6;
+#line 952 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _gray_scan_modes_size_ = gray_scan_modes_length1;
+#line 961 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp113_ = SANE_VALUE_SCAN_MODE_LINEART;
+#line 961 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp114_ = g_strdup (_tmp113_);
+#line 961 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp115_ = g_strdup ("Lineart");
+#line 961 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp116_ = g_strdup ("LineArt");
+#line 961 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp117_ = SANE_I18N ("LineArt");
+#line 961 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp118_ = g_strdup (_tmp117_);
- _tmp119_ = g_strdup ("Gray");
- _tmp120_ = g_strdup ("Grayscale");
- _tmp121_ = SANE_I18N ("Grayscale");
- _tmp122_ = g_strdup (_tmp121_);
- _tmp123_ = g_strdup ("True Gray");
- _tmp124_ = g_new0 (gchar*, 14 + 1);
- _tmp124_[0] = _tmp105_;
- _tmp124_[1] = _tmp106_;
- _tmp124_[2] = _tmp107_;
- _tmp124_[3] = _tmp109_;
- _tmp124_[4] = _tmp110_;
- _tmp124_[5] = _tmp112_;
- _tmp124_[6] = _tmp113_;
- _tmp124_[7] = _tmp115_;
- _tmp124_[8] = _tmp116_;
- _tmp124_[9] = _tmp118_;
- _tmp124_[10] = _tmp119_;
- _tmp124_[11] = _tmp120_;
- _tmp124_[12] = _tmp122_;
- _tmp124_[13] = _tmp123_;
- lineart_scan_modes = _tmp124_;
- lineart_scan_modes_length1 = 14;
+#line 961 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp119_ = g_strdup ("Black & White");
+#line 961 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp120_ = SANE_I18N ("Black & White");
+#line 961 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp121_ = g_strdup (_tmp120_);
+#line 961 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp122_ = g_strdup ("Binary");
+#line 961 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp123_ = SANE_I18N ("Binary");
+#line 961 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp124_ = g_strdup (_tmp123_);
+#line 961 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp125_ = g_strdup ("Thresholded");
+#line 961 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp126_ = SANE_VALUE_SCAN_MODE_GRAY;
+#line 961 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp127_ = g_strdup (_tmp126_);
+#line 961 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp128_ = g_strdup ("Gray");
+#line 961 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp129_ = g_strdup ("Grayscale");
+#line 961 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp130_ = SANE_I18N ("Grayscale");
+#line 961 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp131_ = g_strdup (_tmp130_);
+#line 961 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp132_ = g_strdup ("True Gray");
+#line 961 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp133_ = g_strdup ("Black and White - Line Art");
+#line 961 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp134_ = g_strdup ("Black and White - Halftone");
+#line 961 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp135_ = g_new0 (gchar*, 16 + 1);
+#line 961 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp135_[0] = _tmp114_;
+#line 961 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp135_[1] = _tmp115_;
+#line 961 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp135_[2] = _tmp116_;
+#line 961 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp135_[3] = _tmp118_;
+#line 961 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp135_[4] = _tmp119_;
+#line 961 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp135_[5] = _tmp121_;
+#line 961 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp135_[6] = _tmp122_;
+#line 961 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp135_[7] = _tmp124_;
+#line 961 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp135_[8] = _tmp125_;
+#line 961 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp135_[9] = _tmp127_;
+#line 961 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp135_[10] = _tmp128_;
+#line 961 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp135_[11] = _tmp129_;
+#line 961 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp135_[12] = _tmp131_;
+#line 961 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp135_[13] = _tmp132_;
+#line 961 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp135_[14] = _tmp133_;
+#line 961 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp135_[15] = _tmp134_;
+#line 961 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ lineart_scan_modes = _tmp135_;
+#line 961 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ lineart_scan_modes_length1 = 16;
+#line 961 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_lineart_scan_modes_size_ = lineart_scan_modes_length1;
- _tmp125_ = job;
- _tmp126_ = _tmp125_->scan_mode;
- switch (_tmp126_) {
+#line 981 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp136_ = job;
+#line 981 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp137_ = _tmp136_->scan_mode;
+#line 981 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ switch (_tmp137_) {
+#line 981 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SCAN_MODE_COLOR:
+#line 9441 "scanner.c"
{
- SANE_Handle _tmp127_;
- SANE_Option_Descriptor* _tmp128_;
- SANE_Int _tmp129_;
- gchar** _tmp130_;
- gint _tmp130__length1;
- gboolean _tmp131_ = FALSE;
- _tmp127_ = self->priv->handle;
- _tmp128_ = option;
- _tmp129_ = index;
- _tmp130_ = color_scan_modes;
- _tmp130__length1 = color_scan_modes_length1;
- _tmp131_ = scanner_set_constrained_string_option (self, _tmp127_, _tmp128_, _tmp129_, _tmp130_, _tmp130__length1, NULL);
- if (!_tmp131_) {
- g_warning ("scanner.vala:950: Unable to set Color mode, please file a bug");
+ SANE_Handle _tmp138_;
+ SANE_Option_Descriptor* _tmp139_;
+ SANE_Int _tmp140_;
+ gchar** _tmp141_;
+ gint _tmp141__length1;
+ gboolean _tmp142_ = FALSE;
+#line 984 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp138_ = self->priv->handle;
+#line 984 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp139_ = option;
+#line 984 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp140_ = index;
+#line 984 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp141_ = color_scan_modes;
+#line 984 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp141__length1 = color_scan_modes_length1;
+#line 984 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp142_ = scanner_set_constrained_string_option (self, _tmp138_, _tmp139_, _tmp140_, _tmp141_, _tmp141__length1, NULL);
+#line 984 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ if (!_tmp142_) {
+#line 985 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ g_warning ("scanner.vala:985: Unable to set Color mode, please file a bug");
+#line 9465 "scanner.c"
}
+#line 986 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
+#line 9469 "scanner.c"
}
+#line 981 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SCAN_MODE_GRAY:
+#line 9473 "scanner.c"
{
- SANE_Handle _tmp132_;
- SANE_Option_Descriptor* _tmp133_;
- SANE_Int _tmp134_;
- gchar** _tmp135_;
- gint _tmp135__length1;
- gboolean _tmp136_ = FALSE;
- _tmp132_ = self->priv->handle;
- _tmp133_ = option;
- _tmp134_ = index;
- _tmp135_ = gray_scan_modes;
- _tmp135__length1 = gray_scan_modes_length1;
- _tmp136_ = scanner_set_constrained_string_option (self, _tmp132_, _tmp133_, _tmp134_, _tmp135_, _tmp135__length1, NULL);
- if (!_tmp136_) {
- g_warning ("scanner.vala:954: Unable to set Gray mode, please file a bug");
+ SANE_Handle _tmp143_;
+ SANE_Option_Descriptor* _tmp144_;
+ SANE_Int _tmp145_;
+ gchar** _tmp146_;
+ gint _tmp146__length1;
+ gboolean _tmp147_ = FALSE;
+#line 988 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp143_ = self->priv->handle;
+#line 988 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp144_ = option;
+#line 988 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp145_ = index;
+#line 988 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp146_ = gray_scan_modes;
+#line 988 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp146__length1 = gray_scan_modes_length1;
+#line 988 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp147_ = scanner_set_constrained_string_option (self, _tmp143_, _tmp144_, _tmp145_, _tmp146_, _tmp146__length1, NULL);
+#line 988 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ if (!_tmp147_) {
+#line 989 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ g_warning ("scanner.vala:989: Unable to set Gray mode, please file a bug");
+#line 9497 "scanner.c"
}
+#line 990 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
+#line 9501 "scanner.c"
}
+#line 981 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SCAN_MODE_LINEART:
+#line 9505 "scanner.c"
{
- SANE_Handle _tmp137_;
- SANE_Option_Descriptor* _tmp138_;
- SANE_Int _tmp139_;
- gchar** _tmp140_;
- gint _tmp140__length1;
- gboolean _tmp141_ = FALSE;
- _tmp137_ = self->priv->handle;
- _tmp138_ = option;
- _tmp139_ = index;
- _tmp140_ = lineart_scan_modes;
- _tmp140__length1 = lineart_scan_modes_length1;
- _tmp141_ = scanner_set_constrained_string_option (self, _tmp137_, _tmp138_, _tmp139_, _tmp140_, _tmp140__length1, NULL);
- if (!_tmp141_) {
- g_warning ("scanner.vala:958: Unable to set Lineart mode, please file a bug");
+ SANE_Handle _tmp148_;
+ SANE_Option_Descriptor* _tmp149_;
+ SANE_Int _tmp150_;
+ gchar** _tmp151_;
+ gint _tmp151__length1;
+ gboolean _tmp152_ = FALSE;
+#line 992 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp148_ = self->priv->handle;
+#line 992 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp149_ = option;
+#line 992 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp150_ = index;
+#line 992 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp151_ = lineart_scan_modes;
+#line 992 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp151__length1 = lineart_scan_modes_length1;
+#line 992 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp152_ = scanner_set_constrained_string_option (self, _tmp148_, _tmp149_, _tmp150_, _tmp151_, _tmp151__length1, NULL);
+#line 992 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ if (!_tmp152_) {
+#line 993 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ g_warning ("scanner.vala:993: Unable to set Lineart mode, please file a bug");
+#line 9529 "scanner.c"
}
+#line 994 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
+#line 9533 "scanner.c"
}
default:
{
+#line 996 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
+#line 9539 "scanner.c"
}
}
+#line 942 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
lineart_scan_modes = (_vala_array_free (lineart_scan_modes, lineart_scan_modes_length1, (GDestroyNotify) g_free), NULL);
+#line 942 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
gray_scan_modes = (_vala_array_free (gray_scan_modes, gray_scan_modes_length1, (GDestroyNotify) g_free), NULL);
+#line 942 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
color_scan_modes = (_vala_array_free (color_scan_modes, color_scan_modes_length1, (GDestroyNotify) g_free), NULL);
+#line 9548 "scanner.c"
}
- _tmp142_ = self->priv->handle;
- _tmp144_ = scanner_get_option_by_name (self, _tmp142_, "duplex", &_tmp143_);
- index = (SANE_Int) _tmp143_;
- option = _tmp144_;
- _tmp145_ = option;
- if (_tmp145_ != NULL) {
- SANE_Option_Descriptor* _tmp146_;
- SANE_Value_Type _tmp147_;
- _tmp146_ = option;
- _tmp147_ = _tmp146_->type;
- if (_tmp147_ == SANE_TYPE_BOOL) {
- SANE_Handle _tmp148_;
- SANE_Option_Descriptor* _tmp149_;
- SANE_Int _tmp150_;
- ScanJob* _tmp151_;
- ScanType _tmp152_;
- _tmp148_ = self->priv->handle;
- _tmp149_ = option;
- _tmp150_ = index;
- _tmp151_ = job;
- _tmp152_ = _tmp151_->type;
- scanner_set_bool_option (self, _tmp148_, _tmp149_, _tmp150_, _tmp152_ == SCAN_TYPE_ADF_BOTH, NULL);
- }
- }
+#line 1001 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp153_ = self->priv->handle;
- _tmp155_ = scanner_get_option_by_name (self, _tmp153_, "batch-scan", &_tmp154_);
+#line 1001 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp155_ = scanner_get_option_by_name (self, _tmp153_, "duplex", &_tmp154_);
+#line 1001 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
index = (SANE_Int) _tmp154_;
+#line 1001 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
option = _tmp155_;
+#line 1002 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp156_ = option;
+#line 1002 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp156_ != NULL) {
+#line 9562 "scanner.c"
SANE_Option_Descriptor* _tmp157_;
SANE_Value_Type _tmp158_;
+#line 1004 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp157_ = option;
+#line 1004 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp158_ = _tmp157_->type;
+#line 1004 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp158_ == SANE_TYPE_BOOL) {
+#line 9571 "scanner.c"
SANE_Handle _tmp159_;
SANE_Option_Descriptor* _tmp160_;
SANE_Int _tmp161_;
ScanJob* _tmp162_;
ScanType _tmp163_;
+#line 1005 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp159_ = self->priv->handle;
+#line 1005 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp160_ = option;
+#line 1005 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp161_ = index;
+#line 1005 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp162_ = job;
+#line 1005 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp163_ = _tmp162_->type;
- scanner_set_bool_option (self, _tmp159_, _tmp160_, _tmp161_, _tmp163_ != SCAN_TYPE_SINGLE, NULL);
+#line 1005 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ scanner_set_bool_option (self, _tmp159_, _tmp160_, _tmp161_, _tmp163_ == SCAN_TYPE_ADF_BOTH, NULL);
+#line 9589 "scanner.c"
}
}
+#line 1009 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp164_ = self->priv->handle;
- _tmp166_ = scanner_get_option_by_name (self, _tmp164_, "compression", &_tmp165_);
+#line 1009 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp166_ = scanner_get_option_by_name (self, _tmp164_, "batch-scan", &_tmp165_);
+#line 1009 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
index = (SANE_Int) _tmp165_;
+#line 1009 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
option = _tmp166_;
+#line 1010 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp167_ = option;
+#line 1010 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp167_ != NULL) {
- const gchar* _tmp168_ = NULL;
- gchar* _tmp169_;
- const gchar* _tmp170_ = NULL;
- gchar* _tmp171_;
- gchar* _tmp172_;
- gchar* _tmp173_;
- gchar** _tmp174_ = NULL;
+#line 9604 "scanner.c"
+ SANE_Option_Descriptor* _tmp168_;
+ SANE_Value_Type _tmp169_;
+#line 1012 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp168_ = option;
+#line 1012 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp169_ = _tmp168_->type;
+#line 1012 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ if (_tmp169_ == SANE_TYPE_BOOL) {
+#line 9613 "scanner.c"
+ SANE_Handle _tmp170_;
+ SANE_Option_Descriptor* _tmp171_;
+ SANE_Int _tmp172_;
+ ScanJob* _tmp173_;
+ ScanType _tmp174_;
+#line 1013 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp170_ = self->priv->handle;
+#line 1013 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp171_ = option;
+#line 1013 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp172_ = index;
+#line 1013 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp173_ = job;
+#line 1013 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp174_ = _tmp173_->type;
+#line 1013 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ scanner_set_bool_option (self, _tmp170_, _tmp171_, _tmp172_, _tmp174_ != SCAN_TYPE_SINGLE, NULL);
+#line 9631 "scanner.c"
+ }
+ }
+#line 1017 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp175_ = self->priv->handle;
+#line 1017 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp177_ = scanner_get_option_by_name (self, _tmp175_, "compression", &_tmp176_);
+#line 1017 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ index = (SANE_Int) _tmp176_;
+#line 1017 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ option = _tmp177_;
+#line 1018 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp178_ = option;
+#line 1018 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ if (_tmp178_ != NULL) {
+#line 9646 "scanner.c"
+ const gchar* _tmp179_ = NULL;
+ gchar* _tmp180_;
+ const gchar* _tmp181_ = NULL;
+ gchar* _tmp182_;
+ gchar* _tmp183_;
+ gchar* _tmp184_;
+ gchar** _tmp185_ = NULL;
gchar** disable_compression_names;
gint disable_compression_names_length1;
gint _disable_compression_names_size_;
- SANE_Handle _tmp175_;
- SANE_Option_Descriptor* _tmp176_;
- SANE_Int _tmp177_;
- gchar** _tmp178_;
- gint _tmp178__length1;
- gboolean _tmp179_ = FALSE;
- _tmp168_ = SANE_I18N ("None");
- _tmp169_ = g_strdup (_tmp168_);
- _tmp170_ = SANE_I18N ("none");
- _tmp171_ = g_strdup (_tmp170_);
- _tmp172_ = g_strdup ("None");
- _tmp173_ = g_strdup ("none");
- _tmp174_ = g_new0 (gchar*, 4 + 1);
- _tmp174_[0] = _tmp169_;
- _tmp174_[1] = _tmp171_;
- _tmp174_[2] = _tmp172_;
- _tmp174_[3] = _tmp173_;
- disable_compression_names = _tmp174_;
+ SANE_Handle _tmp186_;
+ SANE_Option_Descriptor* _tmp187_;
+ SANE_Int _tmp188_;
+ gchar** _tmp189_;
+ gint _tmp189__length1;
+ gboolean _tmp190_ = FALSE;
+#line 1020 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp179_ = SANE_I18N ("None");
+#line 1020 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp180_ = g_strdup (_tmp179_);
+#line 1020 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp181_ = SANE_I18N ("none");
+#line 1020 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp182_ = g_strdup (_tmp181_);
+#line 1020 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp183_ = g_strdup ("None");
+#line 1020 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp184_ = g_strdup ("none");
+#line 1020 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp185_ = g_new0 (gchar*, 4 + 1);
+#line 1020 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp185_[0] = _tmp180_;
+#line 1020 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp185_[1] = _tmp182_;
+#line 1020 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp185_[2] = _tmp183_;
+#line 1020 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp185_[3] = _tmp184_;
+#line 1020 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ disable_compression_names = _tmp185_;
+#line 1020 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
disable_compression_names_length1 = 4;
+#line 1020 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_disable_compression_names_size_ = disable_compression_names_length1;
- _tmp175_ = self->priv->handle;
- _tmp176_ = option;
- _tmp177_ = index;
- _tmp178_ = disable_compression_names;
- _tmp178__length1 = disable_compression_names_length1;
- _tmp179_ = scanner_set_constrained_string_option (self, _tmp175_, _tmp176_, _tmp177_, _tmp178_, _tmp178__length1, NULL);
- if (!_tmp179_) {
- g_warning ("scanner.vala:994: Unable to disable compression, please file a bug");
+#line 1028 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp186_ = self->priv->handle;
+#line 1028 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp187_ = option;
+#line 1028 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp188_ = index;
+#line 1028 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp189_ = disable_compression_names;
+#line 1028 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp189__length1 = disable_compression_names_length1;
+#line 1028 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp190_ = scanner_set_constrained_string_option (self, _tmp186_, _tmp187_, _tmp188_, _tmp189_, _tmp189__length1, NULL);
+#line 1028 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ if (!_tmp190_) {
+#line 1029 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ g_warning ("scanner.vala:1029: Unable to disable compression, please file a bug");
+#line 9707 "scanner.c"
}
+#line 1018 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
disable_compression_names = (_vala_array_free (disable_compression_names, disable_compression_names_length1, (GDestroyNotify) g_free), NULL);
+#line 9711 "scanner.c"
}
- _tmp180_ = self->priv->handle;
- _tmp181_ = SANE_NAME_SCAN_RESOLUTION;
- _tmp183_ = scanner_get_option_by_name (self, _tmp180_, _tmp181_, &_tmp182_);
- index = (SANE_Int) _tmp182_;
- option = _tmp183_;
- _tmp184_ = option;
- if (_tmp184_ != NULL) {
- SANE_Option_Descriptor* _tmp185_;
- SANE_Value_Type _tmp186_;
- SANE_Handle _tmp202_;
- const gchar* _tmp203_;
- gint _tmp204_ = 0;
- SANE_Option_Descriptor* _tmp205_ = NULL;
- SANE_Option_Descriptor* _tmp206_;
- _tmp185_ = option;
- _tmp186_ = _tmp185_->type;
- if (_tmp186_ == SANE_TYPE_FIXED) {
- SANE_Handle _tmp187_;
- SANE_Option_Descriptor* _tmp188_;
- SANE_Int _tmp189_;
- ScanJob* _tmp190_;
- gdouble _tmp191_;
- ScanJob* _tmp192_;
- gdouble _tmp193_ = 0.0;
- _tmp187_ = self->priv->handle;
- _tmp188_ = option;
- _tmp189_ = index;
- _tmp190_ = job;
- _tmp191_ = _tmp190_->dpi;
- _tmp192_ = job;
- scanner_set_fixed_option (self, _tmp187_, _tmp188_, _tmp189_, _tmp191_, &_tmp193_);
- _tmp192_->dpi = _tmp193_;
+#line 1033 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp191_ = self->priv->handle;
+#line 1033 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp192_ = SANE_NAME_SCAN_RESOLUTION;
+#line 1033 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp194_ = scanner_get_option_by_name (self, _tmp191_, _tmp192_, &_tmp193_);
+#line 1033 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ index = (SANE_Int) _tmp193_;
+#line 1033 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ option = _tmp194_;
+#line 1034 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp195_ = option;
+#line 1034 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ if (_tmp195_ != NULL) {
+#line 9727 "scanner.c"
+ SANE_Option_Descriptor* _tmp196_;
+ SANE_Value_Type _tmp197_;
+ SANE_Handle _tmp213_;
+ const gchar* _tmp214_;
+ gint _tmp215_ = 0;
+ SANE_Option_Descriptor* _tmp216_ = NULL;
+ SANE_Option_Descriptor* _tmp217_;
+#line 1036 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp196_ = option;
+#line 1036 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp197_ = _tmp196_->type;
+#line 1036 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ if (_tmp197_ == SANE_TYPE_FIXED) {
+#line 9741 "scanner.c"
+ SANE_Handle _tmp198_;
+ SANE_Option_Descriptor* _tmp199_;
+ SANE_Int _tmp200_;
+ ScanJob* _tmp201_;
+ gdouble _tmp202_;
+ ScanJob* _tmp203_;
+ gdouble _tmp204_ = 0.0;
+#line 1037 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp198_ = self->priv->handle;
+#line 1037 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp199_ = option;
+#line 1037 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp200_ = index;
+#line 1037 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp201_ = job;
+#line 1037 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp202_ = _tmp201_->dpi;
+#line 1037 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp203_ = job;
+#line 1037 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ scanner_set_fixed_option (self, _tmp198_, _tmp199_, _tmp200_, _tmp202_, &_tmp204_);
+#line 1037 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp203_->dpi = _tmp204_;
+#line 9765 "scanner.c"
} else {
gint dpi = 0;
- SANE_Handle _tmp194_;
- SANE_Option_Descriptor* _tmp195_;
- SANE_Int _tmp196_;
- ScanJob* _tmp197_;
- gdouble _tmp198_;
- gint _tmp199_ = 0;
- ScanJob* _tmp200_;
- gint _tmp201_;
- _tmp194_ = self->priv->handle;
- _tmp195_ = option;
- _tmp196_ = index;
- _tmp197_ = job;
- _tmp198_ = _tmp197_->dpi;
- scanner_set_int_option (self, _tmp194_, _tmp195_, _tmp196_, (gint) _tmp198_, &_tmp199_);
- dpi = _tmp199_;
- _tmp200_ = job;
- _tmp201_ = dpi;
- _tmp200_->dpi = (gdouble) _tmp201_;
+ SANE_Handle _tmp205_;
+ SANE_Option_Descriptor* _tmp206_;
+ SANE_Int _tmp207_;
+ ScanJob* _tmp208_;
+ gdouble _tmp209_;
+ gint _tmp210_ = 0;
+ ScanJob* _tmp211_;
+ gint _tmp212_;
+#line 1041 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp205_ = self->priv->handle;
+#line 1041 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp206_ = option;
+#line 1041 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp207_ = index;
+#line 1041 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp208_ = job;
+#line 1041 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp209_ = _tmp208_->dpi;
+#line 1041 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ scanner_set_int_option (self, _tmp205_, _tmp206_, _tmp207_, (gint) _tmp209_, &_tmp210_);
+#line 1041 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ dpi = _tmp210_;
+#line 1042 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp211_ = job;
+#line 1042 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp212_ = dpi;
+#line 1042 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp211_->dpi = (gdouble) _tmp212_;
+#line 9796 "scanner.c"
}
- _tmp202_ = self->priv->handle;
- _tmp203_ = SANE_NAME_BIT_DEPTH;
- _tmp205_ = scanner_get_option_by_name (self, _tmp202_, _tmp203_, &_tmp204_);
- index = (SANE_Int) _tmp204_;
- option = _tmp205_;
- _tmp206_ = option;
- if (_tmp206_ != NULL) {
- ScanJob* _tmp207_;
- gint _tmp208_;
- _tmp207_ = job;
- _tmp208_ = _tmp207_->depth;
- if (_tmp208_ > 0) {
- SANE_Handle _tmp209_;
- SANE_Option_Descriptor* _tmp210_;
- SANE_Int _tmp211_;
- ScanJob* _tmp212_;
- gint _tmp213_;
- _tmp209_ = self->priv->handle;
- _tmp210_ = option;
- _tmp211_ = index;
- _tmp212_ = job;
- _tmp213_ = _tmp212_->depth;
- scanner_set_int_option (self, _tmp209_, _tmp210_, _tmp211_, _tmp213_, NULL);
+#line 1044 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp213_ = self->priv->handle;
+#line 1044 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp214_ = SANE_NAME_BIT_DEPTH;
+#line 1044 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp216_ = scanner_get_option_by_name (self, _tmp213_, _tmp214_, &_tmp215_);
+#line 1044 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ index = (SANE_Int) _tmp215_;
+#line 1044 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ option = _tmp216_;
+#line 1045 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp217_ = option;
+#line 1045 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ if (_tmp217_ != NULL) {
+#line 9812 "scanner.c"
+ ScanJob* _tmp218_;
+ gint _tmp219_;
+#line 1047 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp218_ = job;
+#line 1047 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp219_ = _tmp218_->depth;
+#line 1047 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ if (_tmp219_ > 0) {
+#line 9821 "scanner.c"
+ SANE_Handle _tmp220_;
+ SANE_Option_Descriptor* _tmp221_;
+ SANE_Int _tmp222_;
+ ScanJob* _tmp223_;
+ gint _tmp224_;
+#line 1048 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp220_ = self->priv->handle;
+#line 1048 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp221_ = option;
+#line 1048 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp222_ = index;
+#line 1048 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp223_ = job;
+#line 1048 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp224_ = _tmp223_->depth;
+#line 1048 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ scanner_set_int_option (self, _tmp220_, _tmp221_, _tmp222_, _tmp224_, NULL);
+#line 9839 "scanner.c"
}
}
}
- _tmp214_ = self->priv->handle;
- _tmp215_ = SANE_NAME_SCAN_BR_X;
- _tmp217_ = scanner_get_option_by_name (self, _tmp214_, _tmp215_, &_tmp216_);
- index = (SANE_Int) _tmp216_;
- option = _tmp217_;
- _tmp218_ = option;
- if (_tmp218_ != NULL) {
- SANE_Option_Descriptor* _tmp219_;
- SANE_Constraint_Type _tmp220_;
- _tmp219_ = option;
- _tmp220_ = _tmp219_->constraint_type;
- if (_tmp220_ == SANE_CONSTRAINT_RANGE) {
- SANE_Option_Descriptor* _tmp221_;
- SANE_Value_Type _tmp222_;
- _tmp221_ = option;
- _tmp222_ = _tmp221_->type;
- if (_tmp222_ == SANE_TYPE_FIXED) {
- SANE_Handle _tmp223_;
- SANE_Option_Descriptor* _tmp224_;
- SANE_Int _tmp225_;
- SANE_Option_Descriptor* _tmp226_;
- SANE_Range* _tmp227_;
- SANE_Word _tmp228_;
- gdouble _tmp229_ = 0.0;
- _tmp223_ = self->priv->handle;
- _tmp224_ = option;
- _tmp225_ = index;
- _tmp226_ = option;
- _tmp227_ = _tmp226_->constraint.range;
- _tmp228_ = _tmp227_->max;
- _tmp229_ = SANE_UNFIX ((SANE_Fixed) _tmp228_);
- scanner_set_fixed_option (self, _tmp223_, _tmp224_, _tmp225_, _tmp229_, NULL);
+#line 1053 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp225_ = self->priv->handle;
+#line 1053 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp226_ = SANE_NAME_SCAN_BR_X;
+#line 1053 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp228_ = scanner_get_option_by_name (self, _tmp225_, _tmp226_, &_tmp227_);
+#line 1053 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ index = (SANE_Int) _tmp227_;
+#line 1053 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ option = _tmp228_;
+#line 1054 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp229_ = option;
+#line 1054 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ if (_tmp229_ != NULL) {
+#line 9857 "scanner.c"
+ SANE_Option_Descriptor* _tmp230_;
+ SANE_Constraint_Type _tmp231_;
+#line 1056 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp230_ = option;
+#line 1056 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp231_ = _tmp230_->constraint_type;
+#line 1056 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ if (_tmp231_ == SANE_CONSTRAINT_RANGE) {
+#line 9866 "scanner.c"
+ SANE_Option_Descriptor* _tmp232_;
+ SANE_Value_Type _tmp233_;
+#line 1058 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp232_ = option;
+#line 1058 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp233_ = _tmp232_->type;
+#line 1058 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ if (_tmp233_ == SANE_TYPE_FIXED) {
+#line 9875 "scanner.c"
+ SANE_Handle _tmp234_;
+ SANE_Option_Descriptor* _tmp235_;
+ SANE_Int _tmp236_;
+ SANE_Option_Descriptor* _tmp237_;
+ SANE_Range* _tmp238_;
+ SANE_Word _tmp239_;
+ gdouble _tmp240_ = 0.0;
+#line 1059 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp234_ = self->priv->handle;
+#line 1059 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp235_ = option;
+#line 1059 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp236_ = index;
+#line 1059 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp237_ = option;
+#line 1059 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp238_ = _tmp237_->constraint.range;
+#line 1059 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp239_ = _tmp238_->max;
+#line 1059 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp240_ = SANE_UNFIX ((SANE_Fixed) _tmp239_);
+#line 1059 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ scanner_set_fixed_option (self, _tmp234_, _tmp235_, _tmp236_, _tmp240_, NULL);
+#line 9899 "scanner.c"
} else {
- SANE_Handle _tmp230_;
- SANE_Option_Descriptor* _tmp231_;
- SANE_Int _tmp232_;
- SANE_Option_Descriptor* _tmp233_;
- SANE_Range* _tmp234_;
- SANE_Word _tmp235_;
- _tmp230_ = self->priv->handle;
- _tmp231_ = option;
- _tmp232_ = index;
- _tmp233_ = option;
- _tmp234_ = _tmp233_->constraint.range;
- _tmp235_ = _tmp234_->max;
- scanner_set_int_option (self, _tmp230_, _tmp231_, _tmp232_, (gint) _tmp235_, NULL);
+ SANE_Handle _tmp241_;
+ SANE_Option_Descriptor* _tmp242_;
+ SANE_Int _tmp243_;
+ SANE_Option_Descriptor* _tmp244_;
+ SANE_Range* _tmp245_;
+ SANE_Word _tmp246_;
+#line 1061 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp241_ = self->priv->handle;
+#line 1061 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp242_ = option;
+#line 1061 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp243_ = index;
+#line 1061 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp244_ = option;
+#line 1061 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp245_ = _tmp244_->constraint.range;
+#line 1061 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp246_ = _tmp245_->max;
+#line 1061 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ scanner_set_int_option (self, _tmp241_, _tmp242_, _tmp243_, (gint) _tmp246_, NULL);
+#line 9921 "scanner.c"
}
}
}
- _tmp236_ = self->priv->handle;
- _tmp237_ = SANE_NAME_SCAN_BR_Y;
- _tmp239_ = scanner_get_option_by_name (self, _tmp236_, _tmp237_, &_tmp238_);
- index = (SANE_Int) _tmp238_;
- option = _tmp239_;
- _tmp240_ = option;
- if (_tmp240_ != NULL) {
- SANE_Option_Descriptor* _tmp241_;
- SANE_Constraint_Type _tmp242_;
- _tmp241_ = option;
- _tmp242_ = _tmp241_->constraint_type;
- if (_tmp242_ == SANE_CONSTRAINT_RANGE) {
- SANE_Option_Descriptor* _tmp243_;
- SANE_Value_Type _tmp244_;
- _tmp243_ = option;
- _tmp244_ = _tmp243_->type;
- if (_tmp244_ == SANE_TYPE_FIXED) {
- SANE_Handle _tmp245_;
- SANE_Option_Descriptor* _tmp246_;
- SANE_Int _tmp247_;
- SANE_Option_Descriptor* _tmp248_;
- SANE_Range* _tmp249_;
- SANE_Word _tmp250_;
- gdouble _tmp251_ = 0.0;
- _tmp245_ = self->priv->handle;
- _tmp246_ = option;
- _tmp247_ = index;
- _tmp248_ = option;
- _tmp249_ = _tmp248_->constraint.range;
- _tmp250_ = _tmp249_->max;
- _tmp251_ = SANE_UNFIX ((SANE_Fixed) _tmp250_);
- scanner_set_fixed_option (self, _tmp245_, _tmp246_, _tmp247_, _tmp251_, NULL);
+#line 1064 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp247_ = self->priv->handle;
+#line 1064 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp248_ = SANE_NAME_SCAN_BR_Y;
+#line 1064 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp250_ = scanner_get_option_by_name (self, _tmp247_, _tmp248_, &_tmp249_);
+#line 1064 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ index = (SANE_Int) _tmp249_;
+#line 1064 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ option = _tmp250_;
+#line 1065 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp251_ = option;
+#line 1065 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ if (_tmp251_ != NULL) {
+#line 9939 "scanner.c"
+ SANE_Option_Descriptor* _tmp252_;
+ SANE_Constraint_Type _tmp253_;
+#line 1067 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp252_ = option;
+#line 1067 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp253_ = _tmp252_->constraint_type;
+#line 1067 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ if (_tmp253_ == SANE_CONSTRAINT_RANGE) {
+#line 9948 "scanner.c"
+ SANE_Option_Descriptor* _tmp254_;
+ SANE_Value_Type _tmp255_;
+#line 1069 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp254_ = option;
+#line 1069 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp255_ = _tmp254_->type;
+#line 1069 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ if (_tmp255_ == SANE_TYPE_FIXED) {
+#line 9957 "scanner.c"
+ SANE_Handle _tmp256_;
+ SANE_Option_Descriptor* _tmp257_;
+ SANE_Int _tmp258_;
+ SANE_Option_Descriptor* _tmp259_;
+ SANE_Range* _tmp260_;
+ SANE_Word _tmp261_;
+ gdouble _tmp262_ = 0.0;
+#line 1070 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp256_ = self->priv->handle;
+#line 1070 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp257_ = option;
+#line 1070 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp258_ = index;
+#line 1070 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp259_ = option;
+#line 1070 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp260_ = _tmp259_->constraint.range;
+#line 1070 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp261_ = _tmp260_->max;
+#line 1070 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp262_ = SANE_UNFIX ((SANE_Fixed) _tmp261_);
+#line 1070 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ scanner_set_fixed_option (self, _tmp256_, _tmp257_, _tmp258_, _tmp262_, NULL);
+#line 9981 "scanner.c"
} else {
- SANE_Handle _tmp252_;
- SANE_Option_Descriptor* _tmp253_;
- SANE_Int _tmp254_;
- SANE_Option_Descriptor* _tmp255_;
- SANE_Range* _tmp256_;
- SANE_Word _tmp257_;
- _tmp252_ = self->priv->handle;
- _tmp253_ = option;
- _tmp254_ = index;
- _tmp255_ = option;
- _tmp256_ = _tmp255_->constraint.range;
- _tmp257_ = _tmp256_->max;
- scanner_set_int_option (self, _tmp252_, _tmp253_, _tmp254_, (gint) _tmp257_, NULL);
+ SANE_Handle _tmp263_;
+ SANE_Option_Descriptor* _tmp264_;
+ SANE_Int _tmp265_;
+ SANE_Option_Descriptor* _tmp266_;
+ SANE_Range* _tmp267_;
+ SANE_Word _tmp268_;
+#line 1072 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp263_ = self->priv->handle;
+#line 1072 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp264_ = option;
+#line 1072 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp265_ = index;
+#line 1072 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp266_ = option;
+#line 1072 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp267_ = _tmp266_->constraint.range;
+#line 1072 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp268_ = _tmp267_->max;
+#line 1072 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ scanner_set_int_option (self, _tmp263_, _tmp264_, _tmp265_, (gint) _tmp268_, NULL);
+#line 10003 "scanner.c"
}
}
}
- _tmp258_ = self->priv->handle;
- _tmp259_ = SANE_NAME_PAGE_WIDTH;
- _tmp261_ = scanner_get_option_by_name (self, _tmp258_, _tmp259_, &_tmp260_);
- index = (SANE_Int) _tmp260_;
- option = _tmp261_;
- _tmp262_ = option;
- if (_tmp262_ != NULL) {
- ScanJob* _tmp263_;
- gint _tmp264_;
- _tmp263_ = job;
- _tmp264_ = _tmp263_->page_width;
- if (((gdouble) _tmp264_) > 0.0) {
- SANE_Option_Descriptor* _tmp265_;
- SANE_Value_Type _tmp266_;
- _tmp265_ = option;
- _tmp266_ = _tmp265_->type;
- if (_tmp266_ == SANE_TYPE_FIXED) {
- SANE_Handle _tmp267_;
- SANE_Option_Descriptor* _tmp268_;
- SANE_Int _tmp269_;
- ScanJob* _tmp270_;
- gint _tmp271_;
- _tmp267_ = self->priv->handle;
- _tmp268_ = option;
- _tmp269_ = index;
- _tmp270_ = job;
- _tmp271_ = _tmp270_->page_width;
- scanner_set_fixed_option (self, _tmp267_, _tmp268_, _tmp269_, _tmp271_ / 10.0, NULL);
+#line 1076 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp269_ = self->priv->handle;
+#line 1076 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp270_ = SANE_NAME_PAGE_WIDTH;
+#line 1076 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp272_ = scanner_get_option_by_name (self, _tmp269_, _tmp270_, &_tmp271_);
+#line 1076 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ index = (SANE_Int) _tmp271_;
+#line 1076 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ option = _tmp272_;
+#line 1077 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp273_ = option;
+#line 1077 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ if (_tmp273_ != NULL) {
+#line 10021 "scanner.c"
+ ScanJob* _tmp274_;
+ gint _tmp275_;
+#line 1079 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp274_ = job;
+#line 1079 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp275_ = _tmp274_->page_width;
+#line 1079 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ if (((gdouble) _tmp275_) > 0.0) {
+#line 10030 "scanner.c"
+ SANE_Option_Descriptor* _tmp276_;
+ SANE_Value_Type _tmp277_;
+#line 1081 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp276_ = option;
+#line 1081 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp277_ = _tmp276_->type;
+#line 1081 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ if (_tmp277_ == SANE_TYPE_FIXED) {
+#line 10039 "scanner.c"
+ SANE_Handle _tmp278_;
+ SANE_Option_Descriptor* _tmp279_;
+ SANE_Int _tmp280_;
+ ScanJob* _tmp281_;
+ gint _tmp282_;
+#line 1082 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp278_ = self->priv->handle;
+#line 1082 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp279_ = option;
+#line 1082 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp280_ = index;
+#line 1082 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp281_ = job;
+#line 1082 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp282_ = _tmp281_->page_width;
+#line 1082 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ scanner_set_fixed_option (self, _tmp278_, _tmp279_, _tmp280_, _tmp282_ / 10.0, NULL);
+#line 10057 "scanner.c"
} else {
- SANE_Handle _tmp272_;
- SANE_Option_Descriptor* _tmp273_;
- SANE_Int _tmp274_;
- ScanJob* _tmp275_;
- gint _tmp276_;
- _tmp272_ = self->priv->handle;
- _tmp273_ = option;
- _tmp274_ = index;
- _tmp275_ = job;
- _tmp276_ = _tmp275_->page_width;
- scanner_set_int_option (self, _tmp272_, _tmp273_, _tmp274_, _tmp276_ / 10, NULL);
+ SANE_Handle _tmp283_;
+ SANE_Option_Descriptor* _tmp284_;
+ SANE_Int _tmp285_;
+ ScanJob* _tmp286_;
+ gint _tmp287_;
+#line 1084 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp283_ = self->priv->handle;
+#line 1084 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp284_ = option;
+#line 1084 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp285_ = index;
+#line 1084 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp286_ = job;
+#line 1084 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp287_ = _tmp286_->page_width;
+#line 1084 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ scanner_set_int_option (self, _tmp283_, _tmp284_, _tmp285_, _tmp287_ / 10, NULL);
+#line 10076 "scanner.c"
}
}
}
- _tmp277_ = self->priv->handle;
- _tmp278_ = SANE_NAME_PAGE_HEIGHT;
- _tmp280_ = scanner_get_option_by_name (self, _tmp277_, _tmp278_, &_tmp279_);
- index = (SANE_Int) _tmp279_;
- option = _tmp280_;
- _tmp281_ = option;
- if (_tmp281_ != NULL) {
- ScanJob* _tmp282_;
- gint _tmp283_;
- _tmp282_ = job;
- _tmp283_ = _tmp282_->page_height;
- if (((gdouble) _tmp283_) > 0.0) {
- SANE_Option_Descriptor* _tmp284_;
- SANE_Value_Type _tmp285_;
- _tmp284_ = option;
- _tmp285_ = _tmp284_->type;
- if (_tmp285_ == SANE_TYPE_FIXED) {
- SANE_Handle _tmp286_;
- SANE_Option_Descriptor* _tmp287_;
- SANE_Int _tmp288_;
- ScanJob* _tmp289_;
- gint _tmp290_;
- _tmp286_ = self->priv->handle;
- _tmp287_ = option;
- _tmp288_ = index;
- _tmp289_ = job;
- _tmp290_ = _tmp289_->page_height;
- scanner_set_fixed_option (self, _tmp286_, _tmp287_, _tmp288_, _tmp290_ / 10.0, NULL);
+#line 1087 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp288_ = self->priv->handle;
+#line 1087 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp289_ = SANE_NAME_PAGE_HEIGHT;
+#line 1087 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp291_ = scanner_get_option_by_name (self, _tmp288_, _tmp289_, &_tmp290_);
+#line 1087 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ index = (SANE_Int) _tmp290_;
+#line 1087 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ option = _tmp291_;
+#line 1088 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp292_ = option;
+#line 1088 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ if (_tmp292_ != NULL) {
+#line 10094 "scanner.c"
+ ScanJob* _tmp293_;
+ gint _tmp294_;
+#line 1090 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp293_ = job;
+#line 1090 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp294_ = _tmp293_->page_height;
+#line 1090 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ if (((gdouble) _tmp294_) > 0.0) {
+#line 10103 "scanner.c"
+ SANE_Option_Descriptor* _tmp295_;
+ SANE_Value_Type _tmp296_;
+#line 1092 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp295_ = option;
+#line 1092 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp296_ = _tmp295_->type;
+#line 1092 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ if (_tmp296_ == SANE_TYPE_FIXED) {
+#line 10112 "scanner.c"
+ SANE_Handle _tmp297_;
+ SANE_Option_Descriptor* _tmp298_;
+ SANE_Int _tmp299_;
+ ScanJob* _tmp300_;
+ gint _tmp301_;
+#line 1093 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp297_ = self->priv->handle;
+#line 1093 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp298_ = option;
+#line 1093 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp299_ = index;
+#line 1093 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp300_ = job;
+#line 1093 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp301_ = _tmp300_->page_height;
+#line 1093 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ scanner_set_fixed_option (self, _tmp297_, _tmp298_, _tmp299_, _tmp301_ / 10.0, NULL);
+#line 10130 "scanner.c"
} else {
- SANE_Handle _tmp291_;
- SANE_Option_Descriptor* _tmp292_;
- SANE_Int _tmp293_;
- ScanJob* _tmp294_;
- gint _tmp295_;
- _tmp291_ = self->priv->handle;
- _tmp292_ = option;
- _tmp293_ = index;
- _tmp294_ = job;
- _tmp295_ = _tmp294_->page_height;
- scanner_set_int_option (self, _tmp291_, _tmp292_, _tmp293_, _tmp295_ / 10, NULL);
+ SANE_Handle _tmp302_;
+ SANE_Option_Descriptor* _tmp303_;
+ SANE_Int _tmp304_;
+ ScanJob* _tmp305_;
+ gint _tmp306_;
+#line 1095 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp302_ = self->priv->handle;
+#line 1095 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp303_ = option;
+#line 1095 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp304_ = index;
+#line 1095 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp305_ = job;
+#line 1095 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp306_ = _tmp305_->page_height;
+#line 1095 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ scanner_set_int_option (self, _tmp302_, _tmp303_, _tmp304_, _tmp306_ / 10, NULL);
+#line 10149 "scanner.c"
}
}
}
- _tmp296_ = self->priv->current_device;
- if (g_strcmp0 (_tmp296_, "test") == 0) {
- SANE_Handle _tmp297_;
- gint _tmp298_ = 0;
- SANE_Option_Descriptor* _tmp299_ = NULL;
- SANE_Option_Descriptor* _tmp300_;
- SANE_Handle _tmp304_;
- gint _tmp305_ = 0;
- SANE_Option_Descriptor* _tmp306_ = NULL;
- SANE_Option_Descriptor* _tmp307_;
- SANE_Handle _tmp311_;
- gint _tmp312_ = 0;
- SANE_Option_Descriptor* _tmp313_ = NULL;
- SANE_Option_Descriptor* _tmp314_;
- SANE_Handle _tmp318_;
- gint _tmp319_ = 0;
- SANE_Option_Descriptor* _tmp320_ = NULL;
- SANE_Option_Descriptor* _tmp321_;
- SANE_Handle _tmp325_;
- gint _tmp326_ = 0;
- SANE_Option_Descriptor* _tmp327_ = NULL;
- SANE_Option_Descriptor* _tmp328_;
- _tmp297_ = self->priv->handle;
- _tmp299_ = scanner_get_option_by_name (self, _tmp297_, "hand-scanner", &_tmp298_);
- index = (SANE_Int) _tmp298_;
- option = _tmp299_;
- _tmp300_ = option;
- if (_tmp300_ != NULL) {
- SANE_Handle _tmp301_;
- SANE_Option_Descriptor* _tmp302_;
- SANE_Int _tmp303_;
- _tmp301_ = self->priv->handle;
- _tmp302_ = option;
- _tmp303_ = index;
- scanner_set_bool_option (self, _tmp301_, _tmp302_, _tmp303_, FALSE, NULL);
+#line 1098 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp307_ = self->priv->handle;
+#line 1098 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp308_ = SANE_NAME_BRIGHTNESS;
+#line 1098 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp310_ = scanner_get_option_by_name (self, _tmp307_, _tmp308_, &_tmp309_);
+#line 1098 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ index = (SANE_Int) _tmp309_;
+#line 1098 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ option = _tmp310_;
+#line 1099 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp311_ = option;
+#line 1099 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ if (_tmp311_ != NULL) {
+#line 10167 "scanner.c"
+ ScanJob* _tmp312_;
+ gint _tmp313_;
+#line 1101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp312_ = job;
+#line 1101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp313_ = _tmp312_->brightness;
+#line 1101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ if (_tmp313_ != 0) {
+#line 10176 "scanner.c"
+ SANE_Option_Descriptor* _tmp314_;
+ ScanJob* _tmp315_;
+ gint _tmp316_;
+ gint _tmp317_ = 0;
+ gint brightness;
+ SANE_Handle _tmp318_;
+ SANE_Option_Descriptor* _tmp319_;
+ SANE_Int _tmp320_;
+ gint _tmp321_;
+#line 1103 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp314_ = option;
+#line 1103 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp315_ = job;
+#line 1103 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp316_ = _tmp315_->brightness;
+#line 1103 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp317_ = scanner_scale_int (self, -100, 100, _tmp314_, _tmp316_);
+#line 1103 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ brightness = _tmp317_;
+#line 1104 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp318_ = self->priv->handle;
+#line 1104 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp319_ = option;
+#line 1104 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp320_ = index;
+#line 1104 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp321_ = brightness;
+#line 1104 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ scanner_set_int_option (self, _tmp318_, _tmp319_, _tmp320_, _tmp321_, NULL);
+#line 10206 "scanner.c"
}
- _tmp304_ = self->priv->handle;
- _tmp306_ = scanner_get_option_by_name (self, _tmp304_, "three-pass", &_tmp305_);
- index = (SANE_Int) _tmp305_;
- option = _tmp306_;
- _tmp307_ = option;
- if (_tmp307_ != NULL) {
- SANE_Handle _tmp308_;
- SANE_Option_Descriptor* _tmp309_;
- SANE_Int _tmp310_;
- _tmp308_ = self->priv->handle;
- _tmp309_ = option;
- _tmp310_ = index;
- scanner_set_bool_option (self, _tmp308_, _tmp309_, _tmp310_, FALSE, NULL);
+ }
+#line 1107 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp322_ = self->priv->handle;
+#line 1107 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp323_ = SANE_NAME_CONTRAST;
+#line 1107 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp325_ = scanner_get_option_by_name (self, _tmp322_, _tmp323_, &_tmp324_);
+#line 1107 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ index = (SANE_Int) _tmp324_;
+#line 1107 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ option = _tmp325_;
+#line 1108 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp326_ = option;
+#line 1108 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ if (_tmp326_ != NULL) {
+#line 10223 "scanner.c"
+ ScanJob* _tmp327_;
+ gint _tmp328_;
+#line 1110 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp327_ = job;
+#line 1110 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp328_ = _tmp327_->contrast;
+#line 1110 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ if (_tmp328_ != 0) {
+#line 10232 "scanner.c"
+ SANE_Option_Descriptor* _tmp329_;
+ ScanJob* _tmp330_;
+ gint _tmp331_;
+ gint _tmp332_ = 0;
+ gint contrast;
+ SANE_Handle _tmp333_;
+ SANE_Option_Descriptor* _tmp334_;
+ SANE_Int _tmp335_;
+ gint _tmp336_;
+#line 1112 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp329_ = option;
+#line 1112 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp330_ = job;
+#line 1112 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp331_ = _tmp330_->contrast;
+#line 1112 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp332_ = scanner_scale_int (self, -100, 100, _tmp329_, _tmp331_);
+#line 1112 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ contrast = _tmp332_;
+#line 1113 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp333_ = self->priv->handle;
+#line 1113 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp334_ = option;
+#line 1113 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp335_ = index;
+#line 1113 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp336_ = contrast;
+#line 1113 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ scanner_set_int_option (self, _tmp333_, _tmp334_, _tmp335_, _tmp336_, NULL);
+#line 10262 "scanner.c"
+ }
+ }
+#line 1118 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp337_ = self->priv->current_device;
+#line 1118 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ if (g_strcmp0 (_tmp337_, "test") == 0) {
+#line 10269 "scanner.c"
+ SANE_Handle _tmp338_;
+ gint _tmp339_ = 0;
+ SANE_Option_Descriptor* _tmp340_ = NULL;
+ SANE_Option_Descriptor* _tmp341_;
+ SANE_Handle _tmp345_;
+ gint _tmp346_ = 0;
+ SANE_Option_Descriptor* _tmp347_ = NULL;
+ SANE_Option_Descriptor* _tmp348_;
+ SANE_Handle _tmp352_;
+ gint _tmp353_ = 0;
+ SANE_Option_Descriptor* _tmp354_ = NULL;
+ SANE_Option_Descriptor* _tmp355_;
+ SANE_Handle _tmp359_;
+ gint _tmp360_ = 0;
+ SANE_Option_Descriptor* _tmp361_ = NULL;
+ SANE_Option_Descriptor* _tmp362_;
+ SANE_Handle _tmp366_;
+ gint _tmp367_ = 0;
+ SANE_Option_Descriptor* _tmp368_ = NULL;
+ SANE_Option_Descriptor* _tmp369_;
+#line 1120 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp338_ = self->priv->handle;
+#line 1120 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp340_ = scanner_get_option_by_name (self, _tmp338_, "hand-scanner", &_tmp339_);
+#line 1120 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ index = (SANE_Int) _tmp339_;
+#line 1120 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ option = _tmp340_;
+#line 1121 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp341_ = option;
+#line 1121 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ if (_tmp341_ != NULL) {
+#line 10302 "scanner.c"
+ SANE_Handle _tmp342_;
+ SANE_Option_Descriptor* _tmp343_;
+ SANE_Int _tmp344_;
+#line 1122 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp342_ = self->priv->handle;
+#line 1122 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp343_ = option;
+#line 1122 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp344_ = index;
+#line 1122 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ scanner_set_bool_option (self, _tmp342_, _tmp343_, _tmp344_, FALSE, NULL);
+#line 10314 "scanner.c"
}
- _tmp311_ = self->priv->handle;
- _tmp313_ = scanner_get_option_by_name (self, _tmp311_, "test-picture", &_tmp312_);
- index = (SANE_Int) _tmp312_;
- option = _tmp313_;
- _tmp314_ = option;
- if (_tmp314_ != NULL) {
- SANE_Handle _tmp315_;
- SANE_Option_Descriptor* _tmp316_;
- SANE_Int _tmp317_;
- _tmp315_ = self->priv->handle;
- _tmp316_ = option;
- _tmp317_ = index;
- scanner_set_string_option (self, _tmp315_, _tmp316_, _tmp317_, "Color pattern", NULL);
+#line 1123 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp345_ = self->priv->handle;
+#line 1123 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp347_ = scanner_get_option_by_name (self, _tmp345_, "three-pass", &_tmp346_);
+#line 1123 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ index = (SANE_Int) _tmp346_;
+#line 1123 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ option = _tmp347_;
+#line 1124 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp348_ = option;
+#line 1124 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ if (_tmp348_ != NULL) {
+#line 10328 "scanner.c"
+ SANE_Handle _tmp349_;
+ SANE_Option_Descriptor* _tmp350_;
+ SANE_Int _tmp351_;
+#line 1125 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp349_ = self->priv->handle;
+#line 1125 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp350_ = option;
+#line 1125 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp351_ = index;
+#line 1125 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ scanner_set_bool_option (self, _tmp349_, _tmp350_, _tmp351_, FALSE, NULL);
+#line 10340 "scanner.c"
}
- _tmp318_ = self->priv->handle;
- _tmp320_ = scanner_get_option_by_name (self, _tmp318_, "read-delay", &_tmp319_);
- index = (SANE_Int) _tmp319_;
- option = _tmp320_;
- _tmp321_ = option;
- if (_tmp321_ != NULL) {
- SANE_Handle _tmp322_;
- SANE_Option_Descriptor* _tmp323_;
- SANE_Int _tmp324_;
- _tmp322_ = self->priv->handle;
- _tmp323_ = option;
- _tmp324_ = index;
- scanner_set_bool_option (self, _tmp322_, _tmp323_, _tmp324_, TRUE, NULL);
+#line 1126 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp352_ = self->priv->handle;
+#line 1126 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp354_ = scanner_get_option_by_name (self, _tmp352_, "test-picture", &_tmp353_);
+#line 1126 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ index = (SANE_Int) _tmp353_;
+#line 1126 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ option = _tmp354_;
+#line 1127 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp355_ = option;
+#line 1127 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ if (_tmp355_ != NULL) {
+#line 10354 "scanner.c"
+ SANE_Handle _tmp356_;
+ SANE_Option_Descriptor* _tmp357_;
+ SANE_Int _tmp358_;
+#line 1128 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp356_ = self->priv->handle;
+#line 1128 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp357_ = option;
+#line 1128 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp358_ = index;
+#line 1128 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ scanner_set_string_option (self, _tmp356_, _tmp357_, _tmp358_, "Color pattern", NULL);
+#line 10366 "scanner.c"
}
- _tmp325_ = self->priv->handle;
- _tmp327_ = scanner_get_option_by_name (self, _tmp325_, "read-delay-duration", &_tmp326_);
- index = (SANE_Int) _tmp326_;
- option = _tmp327_;
- _tmp328_ = option;
- if (_tmp328_ != NULL) {
- SANE_Handle _tmp329_;
- SANE_Option_Descriptor* _tmp330_;
- SANE_Int _tmp331_;
- _tmp329_ = self->priv->handle;
- _tmp330_ = option;
- _tmp331_ = index;
- scanner_set_int_option (self, _tmp329_, _tmp330_, _tmp331_, 200000, NULL);
+#line 1129 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp359_ = self->priv->handle;
+#line 1129 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp361_ = scanner_get_option_by_name (self, _tmp359_, "read-delay", &_tmp360_);
+#line 1129 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ index = (SANE_Int) _tmp360_;
+#line 1129 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ option = _tmp361_;
+#line 1130 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp362_ = option;
+#line 1130 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ if (_tmp362_ != NULL) {
+#line 10380 "scanner.c"
+ SANE_Handle _tmp363_;
+ SANE_Option_Descriptor* _tmp364_;
+ SANE_Int _tmp365_;
+#line 1131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp363_ = self->priv->handle;
+#line 1131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp364_ = option;
+#line 1131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp365_ = index;
+#line 1131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ scanner_set_bool_option (self, _tmp363_, _tmp364_, _tmp365_, TRUE, NULL);
+#line 10392 "scanner.c"
+ }
+#line 1132 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp366_ = self->priv->handle;
+#line 1132 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp368_ = scanner_get_option_by_name (self, _tmp366_, "read-delay-duration", &_tmp367_);
+#line 1132 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ index = (SANE_Int) _tmp367_;
+#line 1132 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ option = _tmp368_;
+#line 1133 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp369_ = option;
+#line 1133 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ if (_tmp369_ != NULL) {
+#line 10406 "scanner.c"
+ SANE_Handle _tmp370_;
+ SANE_Option_Descriptor* _tmp371_;
+ SANE_Int _tmp372_;
+#line 1134 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp370_ = self->priv->handle;
+#line 1134 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp371_ = option;
+#line 1134 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp372_ = index;
+#line 1134 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ scanner_set_int_option (self, _tmp370_, _tmp371_, _tmp372_, 200000, NULL);
+#line 10418 "scanner.c"
}
}
+#line 1137 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->state = SCAN_STATE_START;
+#line 1138 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_scan_job_unref0 (job);
+#line 1138 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return;
- }
- _tmp332_ = index;
- _tmp333_ = option;
- scanner_log_option (self, _tmp332_, _tmp333_);
- _tmp334_ = option;
- _tmp335_ = _tmp334_->type;
- if (_tmp335_ == SANE_TYPE_GROUP) {
+#line 10427 "scanner.c"
+ }
+#line 1141 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp373_ = index;
+#line 1141 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp374_ = option;
+#line 1141 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ scanner_log_option (self, _tmp373_, _tmp374_);
+#line 1144 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp375_ = option;
+#line 1144 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp376_ = _tmp375_->type;
+#line 1144 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ if (_tmp376_ == SANE_TYPE_GROUP) {
+#line 1145 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_scan_job_unref0 (job);
+#line 1145 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return;
- }
- _tmp336_ = option;
- _tmp337_ = _tmp336_->cap;
- if ((_tmp337_ & SANE_CAP_INACTIVE) != ((SANE_Int) 0)) {
+#line 10445 "scanner.c"
+ }
+#line 1148 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp377_ = option;
+#line 1148 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp378_ = _tmp377_->cap;
+#line 1148 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ if ((_tmp378_ & SANE_CAP_INACTIVE) != ((SANE_Int) 0)) {
+#line 1149 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_scan_job_unref0 (job);
+#line 1149 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return;
- }
- _tmp338_ = option;
- _tmp339_ = _tmp338_->name;
- if (_tmp339_ == NULL) {
+#line 10457 "scanner.c"
+ }
+#line 1152 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp379_ = option;
+#line 1152 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp380_ = _tmp379_->name;
+#line 1152 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ if (_tmp380_ == NULL) {
+#line 1153 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_scan_job_unref0 (job);
+#line 1153 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return;
- }
- _tmp340_ = self->priv->options;
- _tmp341_ = option;
- _tmp342_ = _tmp341_->name;
- _tmp343_ = g_strdup (_tmp342_);
- _tmp344_ = index;
- g_hash_table_insert (_tmp340_, _tmp343_, (gpointer) ((gintptr) ((gint) _tmp344_)));
+#line 10469 "scanner.c"
+ }
+#line 1155 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp381_ = self->priv->options;
+#line 1155 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp382_ = option;
+#line 1155 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp383_ = _tmp382_->name;
+#line 1155 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp384_ = g_strdup (_tmp383_);
+#line 1155 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp385_ = index;
+#line 1155 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ g_hash_table_insert (_tmp381_, _tmp384_, (gpointer) ((gintptr) ((gint) _tmp385_)));
+#line 853 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_scan_job_unref0 (job);
+#line 10485 "scanner.c"
}
@@ -6782,28 +10502,51 @@ static SANE_Option_Descriptor* scanner_get_option_by_name (Scanner* self, SANE_H
SANE_Handle _tmp4_;
gint _tmp5_;
SANE_Option_Descriptor* _tmp6_ = NULL;
+#line 1158 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_val_if_fail (self != NULL, NULL);
+#line 1158 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_val_if_fail (name != NULL, NULL);
+#line 1160 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = self->priv->options;
+#line 1160 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp1_ = name;
+#line 1160 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp2_ = g_hash_table_lookup (_tmp0_, _tmp1_);
+#line 1160 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_vala_index = (gint) ((gintptr) _tmp2_);
+#line 1161 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp3_ = _vala_index;
+#line 1161 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp3_ == 0) {
+#line 1162 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
result = NULL;
+#line 1162 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (index) {
+#line 1162 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
*index = _vala_index;
+#line 10521 "scanner.c"
}
+#line 1162 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
+#line 10525 "scanner.c"
}
+#line 1164 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp4_ = handle;
+#line 1164 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp5_ = _vala_index;
+#line 1164 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp6_ = sane_get_option_descriptor (_tmp4_, (SANE_Int) _tmp5_);
+#line 1164 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
result = _tmp6_;
+#line 1164 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (index) {
+#line 1164 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
*index = _vala_index;
+#line 10539 "scanner.c"
}
+#line 1164 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
+#line 10543 "scanner.c"
}
@@ -6813,23 +10556,41 @@ static void scanner_do_complete_document (Scanner* self) {
GList* _tmp2_;
NotifyDocumentDone* _tmp3_;
NotifyDocumentDone* _tmp4_;
+#line 1167 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (self != NULL);
+#line 1169 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = self->priv->handle;
+#line 1169 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
sane_cancel (_tmp0_);
- g_debug ("scanner.vala:1117: sane_cancel ()");
+#line 1170 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ g_debug ("scanner.vala:1170: sane_cancel ()");
+#line 1172 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp1_ = self->priv->job_queue;
+#line 1172 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->job_queue = g_list_remove_link (self->priv->job_queue, _tmp1_);
+#line 1174 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->state = SCAN_STATE_IDLE;
+#line 1177 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp2_ = self->priv->job_queue;
+#line 1177 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp2_ != NULL) {
+#line 1179 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->state = SCAN_STATE_OPEN;
+#line 1180 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return;
+#line 10575 "scanner.c"
}
+#line 1186 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp3_ = notify_document_done_new ();
+#line 1186 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp4_ = _tmp3_;
+#line 1186 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scanner_notify (self, (Notify*) _tmp4_);
+#line 1186 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_notify_unref0 (_tmp4_);
+#line 1187 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scanner_set_scanning (self, FALSE);
+#line 10587 "scanner.c"
}
@@ -6845,40 +10606,70 @@ static void scanner_do_start (Scanner* self) {
gchar* _tmp7_ = NULL;
gchar* _tmp8_;
SANE_Status _tmp9_;
+#line 1190 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (self != NULL);
+#line 1194 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = notify_expect_page_new ();
+#line 1194 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp1_ = _tmp0_;
+#line 1194 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scanner_notify (self, (Notify*) _tmp1_);
+#line 1194 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_notify_unref0 (_tmp1_);
+#line 1196 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp2_ = self->priv->handle;
+#line 1196 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp3_ = sane_start (_tmp2_);
+#line 1196 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
status = _tmp3_;
+#line 1197 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp4_ = self->priv->page_number;
+#line 1197 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp5_ = self->priv->pass_number;
+#line 1197 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp6_ = status;
+#line 1197 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp7_ = sane_status_to_string (_tmp6_);
+#line 1197 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp8_ = _tmp7_;
- g_debug ("scanner.vala:1144: sane_start (page=%d, pass=%d) -> %s", _tmp4_, _tmp5_, _tmp8_);
+#line 1197 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ g_debug ("scanner.vala:1197: sane_start (page=%d, pass=%d) -> %s", _tmp4_, _tmp5_, _tmp8_);
+#line 1197 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (_tmp8_);
+#line 1198 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp9_ = status;
+#line 1198 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp9_ == SANE_STATUS_GOOD) {
+#line 1199 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->state = SCAN_STATE_GET_PARAMETERS;
+#line 10639 "scanner.c"
} else {
SANE_Status _tmp10_;
+#line 1200 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp10_ = status;
+#line 1200 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp10_ == SANE_STATUS_NO_DOCS) {
+#line 1201 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scanner_do_complete_document (self);
+#line 10648 "scanner.c"
} else {
SANE_Status _tmp11_;
const gchar* _tmp12_ = NULL;
SANE_Status _tmp13_;
const gchar* _tmp14_ = NULL;
+#line 1204 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp11_ = status;
+#line 1204 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp12_ = sane_strstatus (_tmp11_);
- g_warning ("scanner.vala:1151: Unable to start device: %s", _tmp12_);
+#line 1204 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ g_warning ("scanner.vala:1204: Unable to start device: %s", _tmp12_);
+#line 1205 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp13_ = status;
+#line 1205 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp14_ = _ ("Unable to start scan");
+#line 1205 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scanner_fail_scan (self, (gint) _tmp13_, _tmp14_);
+#line 10666 "scanner.c"
}
}
}
@@ -6887,51 +10678,88 @@ static void scanner_do_start (Scanner* self) {
static gchar* sane_frame_to_string (SANE_Frame frame) {
gchar* result = NULL;
SANE_Frame _tmp0_;
+#line 103 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
_tmp0_ = frame;
+#line 103 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
switch (_tmp0_) {
+#line 103 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
case SANE_FRAME_GRAY:
+#line 10681 "scanner.c"
{
gchar* _tmp1_;
+#line 106 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
_tmp1_ = g_strdup ("SANE_FRAME_GRAY");
+#line 106 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
result = _tmp1_;
+#line 106 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
return result;
+#line 10690 "scanner.c"
}
+#line 103 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
case SANE_FRAME_RGB:
+#line 10694 "scanner.c"
{
gchar* _tmp2_;
+#line 108 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
_tmp2_ = g_strdup ("SANE_FRAME_RGB");
+#line 108 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
result = _tmp2_;
+#line 108 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
return result;
+#line 10703 "scanner.c"
}
+#line 103 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
case SANE_FRAME_RED:
+#line 10707 "scanner.c"
{
gchar* _tmp3_;
+#line 110 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
_tmp3_ = g_strdup ("SANE_FRAME_RED");
+#line 110 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
result = _tmp3_;
+#line 110 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
return result;
+#line 10716 "scanner.c"
}
+#line 103 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
case SANE_FRAME_GREEN:
+#line 10720 "scanner.c"
{
gchar* _tmp4_;
+#line 112 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
_tmp4_ = g_strdup ("SANE_FRAME_GREEN");
+#line 112 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
result = _tmp4_;
+#line 112 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
return result;
+#line 10729 "scanner.c"
}
+#line 103 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
case SANE_FRAME_BLUE:
+#line 10733 "scanner.c"
{
gchar* _tmp5_;
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
_tmp5_ = g_strdup ("SANE_FRAME_BLUE");
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
result = _tmp5_;
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
return result;
+#line 10742 "scanner.c"
}
default:
{
SANE_Frame _tmp6_;
gchar* _tmp7_ = NULL;
+#line 116 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
_tmp6_ = frame;
+#line 116 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
_tmp7_ = g_strdup_printf ("SANE_FRAME(%d)", (gint) _tmp6_);
+#line 116 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
result = _tmp7_;
+#line 116 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
return result;
+#line 10756 "scanner.c"
}
}
}
@@ -7003,165 +10831,311 @@ static void scanner_do_get_parameters (Scanner* self) {
gint buffer_size;
gint _tmp78_;
guchar* _tmp79_ = NULL;
+#line 1211 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (self != NULL);
+#line 1213 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = self->priv->handle;
+#line 1213 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp2_ = sane_get_parameters (_tmp0_, &_tmp1_);
+#line 1213 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->parameters = _tmp1_;
+#line 1213 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
status = _tmp2_;
+#line 1214 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp3_ = status;
+#line 1214 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp4_ = sane_status_to_string (_tmp3_);
+#line 1214 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp5_ = _tmp4_;
- g_debug ("scanner.vala:1161: sane_get_parameters () -> %s", _tmp5_);
+#line 1214 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ g_debug ("scanner.vala:1214: sane_get_parameters () -> %s", _tmp5_);
+#line 1214 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (_tmp5_);
+#line 1215 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp6_ = status;
+#line 1215 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp6_ != SANE_STATUS_GOOD) {
+#line 10852 "scanner.c"
SANE_Status _tmp7_;
const gchar* _tmp8_ = NULL;
SANE_Status _tmp9_;
const gchar* _tmp10_ = NULL;
+#line 1217 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp7_ = status;
+#line 1217 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp8_ = sane_strstatus (_tmp7_);
- g_warning ("scanner.vala:1164: Unable to get device parameters: %s", _tmp8_);
+#line 1217 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ g_warning ("scanner.vala:1217: Unable to get device parameters: %s", _tmp8_);
+#line 1218 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp9_ = status;
+#line 1218 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp10_ = _ ("Error communicating with scanner");
+#line 1218 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scanner_fail_scan (self, (gint) _tmp9_, _tmp10_);
+#line 1221 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return;
+#line 10871 "scanner.c"
}
+#line 1224 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp11_ = self->priv->job_queue;
+#line 1224 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp12_ = _tmp11_->data;
+#line 1224 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp13_ = _scan_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST ((ScanJob*) _tmp12_, TYPE_SCAN_JOB, ScanJob));
+#line 1224 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
job = _tmp13_;
+#line 1228 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp15_ = self->priv->parameters;
+#line 1228 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp16_ = _tmp15_.last_frame;
+#line 1228 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp16_) {
+#line 1228 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp14_ = "SANE_TRUE";
+#line 10889 "scanner.c"
} else {
+#line 1228 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp14_ = "SANE_FALSE";
+#line 10893 "scanner.c"
}
+#line 1226 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp17_ = self->priv->parameters;
+#line 1226 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp18_ = _tmp17_.format;
+#line 1226 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp19_ = sane_frame_to_string (_tmp18_);
+#line 1226 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp20_ = _tmp19_;
+#line 1226 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp21_ = _tmp14_;
+#line 1226 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp22_ = self->priv->parameters;
+#line 1226 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp23_ = _tmp22_.bytes_per_line;
+#line 1226 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp24_ = self->priv->parameters;
+#line 1226 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp25_ = _tmp24_.pixels_per_line;
+#line 1226 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp26_ = self->priv->parameters;
+#line 1226 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp27_ = _tmp26_.lines;
+#line 1226 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp28_ = self->priv->parameters;
+#line 1226 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp29_ = _tmp28_.depth;
- g_debug ("scanner.vala:1173: Parameters: format=%s last_frame=%s bytes_per_line=" \
+#line 1226 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ g_debug ("scanner.vala:1226: Parameters: format=%s last_frame=%s bytes_per_line=" \
"%d pixels_per_line=%d lines=%d depth=%d", _tmp20_, _tmp21_, _tmp23_, _tmp25_, _tmp27_, _tmp29_);
+#line 1226 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (_tmp20_);
+#line 1234 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp30_ = scan_page_info_new ();
+#line 1234 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
info = _tmp30_;
+#line 1235 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp31_ = info;
+#line 1235 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp32_ = self->priv->parameters;
+#line 1235 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp33_ = _tmp32_.pixels_per_line;
+#line 1235 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp31_->width = _tmp33_;
+#line 1236 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp34_ = info;
+#line 1236 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp35_ = self->priv->parameters;
+#line 1236 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp36_ = _tmp35_.lines;
+#line 1236 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp34_->height = _tmp36_;
+#line 1237 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp37_ = info;
+#line 1237 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp38_ = self->priv->parameters;
+#line 1237 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp39_ = _tmp38_.depth;
+#line 1237 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp37_->depth = _tmp39_;
+#line 1240 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp43_ = self->priv->parameters;
+#line 1240 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp44_ = _tmp43_.depth;
+#line 1240 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp44_ == 8) {
+#line 10959 "scanner.c"
SANE_Parameters _tmp45_;
SANE_Frame _tmp46_;
+#line 1240 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp45_ = self->priv->parameters;
+#line 1240 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp46_ = _tmp45_.format;
+#line 1240 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp42_ = _tmp46_ == SANE_FRAME_GRAY;
+#line 10968 "scanner.c"
} else {
+#line 1240 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp42_ = FALSE;
+#line 10972 "scanner.c"
}
+#line 1240 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp47_ = _tmp42_;
+#line 1240 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp47_) {
+#line 10978 "scanner.c"
ScanJob* _tmp48_;
gint _tmp49_;
+#line 1240 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp48_ = job;
+#line 1240 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp49_ = _tmp48_->depth;
+#line 1240 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp41_ = _tmp49_ == 2;
+#line 10987 "scanner.c"
} else {
+#line 1240 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp41_ = FALSE;
+#line 10991 "scanner.c"
}
+#line 1240 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp50_ = _tmp41_;
+#line 1240 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp50_) {
+#line 10997 "scanner.c"
ScanJob* _tmp51_;
ScanMode _tmp52_;
+#line 1240 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp51_ = job;
+#line 1240 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp52_ = _tmp51_->scan_mode;
+#line 1240 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp40_ = _tmp52_ == SCAN_MODE_GRAY;
+#line 11006 "scanner.c"
} else {
+#line 1240 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp40_ = FALSE;
+#line 11010 "scanner.c"
}
+#line 1240 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp53_ = _tmp40_;
+#line 1240 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp53_) {
+#line 11016 "scanner.c"
ScanPageInfo* _tmp54_;
ScanJob* _tmp55_;
gint _tmp56_;
+#line 1241 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp54_ = info;
+#line 1241 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp55_ = job;
+#line 1241 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp56_ = _tmp55_->depth;
+#line 1241 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp54_->depth = _tmp56_;
+#line 11028 "scanner.c"
}
+#line 1242 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp58_ = self->priv->parameters;
+#line 1242 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp59_ = _tmp58_.format;
+#line 1242 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp59_ == SANE_FRAME_GRAY) {
+#line 1242 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp57_ = 1;
+#line 11038 "scanner.c"
} else {
+#line 1242 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp57_ = 3;
+#line 11042 "scanner.c"
}
+#line 1242 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp60_ = info;
+#line 1242 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp61_ = _tmp57_;
+#line 1242 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp60_->n_channels = _tmp61_;
+#line 1243 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp62_ = info;
+#line 1243 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp63_ = job;
+#line 1243 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp64_ = _tmp63_->dpi;
+#line 1243 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp62_->dpi = _tmp64_;
+#line 1244 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp65_ = info;
+#line 1244 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp66_ = self->priv->current_device;
+#line 1244 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp67_ = g_strdup (_tmp66_);
+#line 1244 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (_tmp65_->device);
+#line 1244 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp65_->device = _tmp67_;
+#line 1246 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp68_ = self->priv->page_number;
+#line 1246 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp69_ = self->priv->notified_page;
+#line 1246 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp68_ != _tmp69_) {
+#line 11074 "scanner.c"
ScanJob* _tmp70_;
gint _tmp71_;
ScanPageInfo* _tmp72_;
NotifyGotPageInfo* _tmp73_;
NotifyGotPageInfo* _tmp74_;
gint _tmp75_;
+#line 1248 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp70_ = job;
+#line 1248 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp71_ = _tmp70_->id;
+#line 1248 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp72_ = info;
+#line 1248 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp73_ = notify_got_page_info_new (_tmp71_, _tmp72_);
+#line 1248 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp74_ = _tmp73_;
+#line 1248 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scanner_notify (self, (Notify*) _tmp74_);
+#line 1248 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_notify_unref0 (_tmp74_);
+#line 1249 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp75_ = self->priv->page_number;
+#line 1249 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->notified_page = _tmp75_;
+#line 11099 "scanner.c"
}
+#line 1253 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp76_ = self->priv->parameters;
+#line 1253 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp77_ = _tmp76_.bytes_per_line;
+#line 1253 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
buffer_size = _tmp77_ + 1;
+#line 1254 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp78_ = buffer_size;
+#line 1254 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp79_ = g_new0 (guchar, _tmp78_);
+#line 1254 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->buffer = (g_free (self->priv->buffer), NULL);
+#line 1254 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->buffer = _tmp79_;
+#line 1254 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->buffer_length1 = _tmp78_;
+#line 1254 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->_buffer_size_ = self->priv->buffer_length1;
+#line 1255 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->n_used = 0;
+#line 1256 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->line_count = 0;
+#line 1257 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->pass_number = 0;
+#line 1258 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->state = SCAN_STATE_READ;
+#line 1211 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_scan_page_info_unref0 (info);
+#line 1211 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_scan_job_unref0 (job);
+#line 11131 "scanner.c"
}
@@ -7178,50 +11152,91 @@ static void scanner_do_complete_page (Scanner* self) {
gboolean _tmp8_;
ScanJob* _tmp10_;
ScanType _tmp11_;
+#line 1261 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (self != NULL);
+#line 1263 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = self->priv->job_queue;
+#line 1263 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp1_ = _tmp0_->data;
+#line 1263 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp2_ = _scan_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST ((ScanJob*) _tmp1_, TYPE_SCAN_JOB, ScanJob));
+#line 1263 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
job = _tmp2_;
+#line 1265 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp3_ = job;
+#line 1265 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp4_ = _tmp3_->id;
+#line 1265 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp5_ = notify_page_done_new (_tmp4_);
+#line 1265 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp6_ = _tmp5_;
+#line 1265 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scanner_notify (self, (Notify*) _tmp6_);
+#line 1265 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_notify_unref0 (_tmp6_);
+#line 1268 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp7_ = self->priv->parameters;
+#line 1268 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp8_ = _tmp7_.last_frame;
+#line 1268 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (!_tmp8_) {
+#line 11176 "scanner.c"
gint _tmp9_;
+#line 1270 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp9_ = self->priv->pass_number;
+#line 1270 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->pass_number = _tmp9_ + 1;
+#line 1271 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->state = SCAN_STATE_START;
+#line 1272 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_scan_job_unref0 (job);
+#line 1272 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return;
+#line 11188 "scanner.c"
}
+#line 1276 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp10_ = job;
+#line 1276 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp11_ = _tmp10_->type;
+#line 1276 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp11_ != SCAN_TYPE_SINGLE) {
+#line 11196 "scanner.c"
gint _tmp12_;
ScanJob* _tmp13_;
gint _tmp14_;
NotifyPageDone* _tmp15_;
NotifyPageDone* _tmp16_;
+#line 1278 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp12_ = self->priv->page_number;
+#line 1278 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->page_number = _tmp12_ + 1;
+#line 1279 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->pass_number = 0;
+#line 1280 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp13_ = job;
+#line 1280 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp14_ = _tmp13_->id;
+#line 1280 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp15_ = notify_page_done_new (_tmp14_);
+#line 1280 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp16_ = _tmp15_;
+#line 1280 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scanner_notify (self, (Notify*) _tmp16_);
+#line 1280 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_notify_unref0 (_tmp16_);
+#line 1281 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->state = SCAN_STATE_START;
+#line 1282 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_scan_job_unref0 (job);
+#line 1282 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return;
+#line 11226 "scanner.c"
}
+#line 1285 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scanner_do_complete_document (self);
+#line 1261 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_scan_job_unref0 (job);
+#line 11232 "scanner.c"
}
@@ -7261,111 +11276,204 @@ static void scanner_do_read (Scanner* self) {
gint _tmp42_;
SANE_Parameters _tmp43_;
gint _tmp44_;
+#line 1288 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (self != NULL);
+#line 1290 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = self->priv->job_queue;
+#line 1290 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp1_ = _tmp0_->data;
+#line 1290 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp2_ = _scan_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST ((ScanJob*) _tmp1_, TYPE_SCAN_JOB, ScanJob));
+#line 1290 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
job = _tmp2_;
+#line 1293 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp3_ = self->priv->buffer;
+#line 1293 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp3__length1 = self->priv->buffer_length1;
+#line 1293 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp4_ = self->priv->n_used;
+#line 1293 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
n_to_read = _tmp3__length1 - _tmp4_;
+#line 1296 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp5_ = self->priv->buffer;
+#line 1296 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp5__length1 = self->priv->buffer_length1;
+#line 1296 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
b = (guchar*) _tmp5_;
+#line 1297 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp6_ = self->priv->handle;
+#line 1297 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp7_ = b;
+#line 1297 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp8_ = self->priv->n_used;
+#line 1297 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp9_ = n_to_read;
+#line 1297 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp11_ = sane_read (_tmp6_, (guint8*) (_tmp7_ + _tmp8_), (SANE_Int) _tmp9_, &_tmp10_);
+#line 1297 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
n_read = _tmp10_;
+#line 1297 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
status = _tmp11_;
+#line 1298 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp12_ = n_to_read;
+#line 1298 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp13_ = status;
+#line 1298 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp14_ = sane_status_to_string (_tmp13_);
+#line 1298 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp15_ = _tmp14_;
+#line 1298 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp16_ = n_read;
- g_debug ("scanner.vala:1245: sane_read (%d) -> (%s, %d)", _tmp12_, _tmp15_, (gint) _tmp16_);
+#line 1298 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ g_debug ("scanner.vala:1298: sane_read (%d) -> (%s, %d)", _tmp12_, _tmp15_, (gint) _tmp16_);
+#line 1298 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (_tmp15_);
+#line 1301 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp17_ = status;
+#line 1301 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp17_ == SANE_STATUS_EOF) {
+#line 11328 "scanner.c"
gboolean _tmp18_ = FALSE;
SANE_Parameters _tmp19_;
gint _tmp20_;
gboolean _tmp24_;
gint _tmp28_;
+#line 1303 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp19_ = self->priv->parameters;
+#line 1303 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp20_ = _tmp19_.lines;
+#line 1303 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp20_ > 0) {
+#line 11340 "scanner.c"
gint _tmp21_;
SANE_Parameters _tmp22_;
gint _tmp23_;
+#line 1303 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp21_ = self->priv->line_count;
+#line 1303 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp22_ = self->priv->parameters;
+#line 1303 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp23_ = _tmp22_.lines;
+#line 1303 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp18_ = _tmp21_ != _tmp23_;
+#line 11352 "scanner.c"
} else {
+#line 1303 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp18_ = FALSE;
+#line 11356 "scanner.c"
}
+#line 1303 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp24_ = _tmp18_;
+#line 1303 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp24_) {
+#line 11362 "scanner.c"
gint _tmp25_;
SANE_Parameters _tmp26_;
gint _tmp27_;
+#line 1304 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp25_ = self->priv->line_count;
+#line 1304 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp26_ = self->priv->parameters;
+#line 1304 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp27_ = _tmp26_.lines;
- g_warning ("scanner.vala:1251: Scan completed with %d lines, expected %d lines", _tmp25_, _tmp27_);
+#line 1304 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ g_warning ("scanner.vala:1304: Scan completed with %d lines, expected %d lines", _tmp25_, _tmp27_);
+#line 11374 "scanner.c"
}
+#line 1305 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp28_ = self->priv->n_used;
+#line 1305 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp28_ > 0) {
+#line 11380 "scanner.c"
gint _tmp29_;
+#line 1306 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp29_ = self->priv->n_used;
- g_warning ("scanner.vala:1253: Scan complete with %d bytes of unused data", _tmp29_);
+#line 1306 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ g_warning ("scanner.vala:1306: Scan complete with %d bytes of unused data", _tmp29_);
+#line 11386 "scanner.c"
}
+#line 1307 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scanner_do_complete_page (self);
+#line 1308 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_scan_job_unref0 (job);
+#line 1308 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return;
+#line 11394 "scanner.c"
}
+#line 1312 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp30_ = status;
+#line 1312 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp30_ != SANE_STATUS_GOOD) {
+#line 11400 "scanner.c"
SANE_Status _tmp31_;
const gchar* _tmp32_ = NULL;
SANE_Status _tmp33_;
const gchar* _tmp34_ = NULL;
+#line 1314 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp31_ = status;
+#line 1314 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp32_ = sane_strstatus (_tmp31_);
- g_warning ("scanner.vala:1261: Unable to read frame from device: %s", _tmp32_);
+#line 1314 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ g_warning ("scanner.vala:1314: Unable to read frame from device: %s", _tmp32_);
+#line 1315 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp33_ = status;
+#line 1315 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp34_ = _ ("Error communicating with scanner");
+#line 1315 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scanner_fail_scan (self, (gint) _tmp33_, _tmp34_);
+#line 1318 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_scan_job_unref0 (job);
+#line 1318 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return;
+#line 11421 "scanner.c"
}
+#line 1321 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
full_read = FALSE;
+#line 1322 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp36_ = self->priv->n_used;
+#line 1322 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp36_ == 0) {
+#line 11429 "scanner.c"
SANE_Int _tmp37_;
guchar* _tmp38_;
gint _tmp38__length1;
+#line 1322 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp37_ = n_read;
+#line 1322 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp38_ = self->priv->buffer;
+#line 1322 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp38__length1 = self->priv->buffer_length1;
+#line 1322 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp35_ = _tmp37_ == ((SANE_Int) _tmp38__length1);
+#line 11441 "scanner.c"
} else {
+#line 1322 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp35_ = FALSE;
+#line 11445 "scanner.c"
}
+#line 1322 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp39_ = _tmp35_;
+#line 1322 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp39_) {
+#line 1323 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
full_read = TRUE;
+#line 11453 "scanner.c"
}
+#line 1324 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp40_ = self->priv->n_used;
+#line 1324 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp41_ = n_read;
+#line 1324 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->n_used = _tmp40_ + ((gint) _tmp41_);
+#line 1327 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp42_ = self->priv->n_used;
+#line 1327 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp43_ = self->priv->parameters;
+#line 1327 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp44_ = _tmp43_.bytes_per_line;
+#line 1327 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp42_ >= _tmp44_) {
+#line 11469 "scanner.c"
ScanLine* _tmp45_;
ScanLine* line;
SANE_Parameters _tmp46_;
@@ -7416,113 +11524,211 @@ static void scanner_do_read (Scanner* self) {
ScanLine* _tmp162_;
NotifyGotLine* _tmp163_;
NotifyGotLine* _tmp164_;
+#line 1329 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp45_ = scan_line_new ();
+#line 1329 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
line = _tmp45_;
+#line 1330 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp46_ = self->priv->parameters;
+#line 1330 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp47_ = _tmp46_.format;
+#line 1330 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
switch (_tmp47_) {
+#line 1330 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SANE_FRAME_GRAY:
+#line 11532 "scanner.c"
{
ScanLine* _tmp48_;
+#line 1333 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp48_ = line;
+#line 1333 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp48_->channel = 0;
+#line 1334 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
+#line 11541 "scanner.c"
}
+#line 1330 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SANE_FRAME_RGB:
+#line 11545 "scanner.c"
{
ScanLine* _tmp49_;
+#line 1336 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp49_ = line;
+#line 1336 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp49_->channel = -1;
+#line 1337 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
+#line 11554 "scanner.c"
}
+#line 1330 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SANE_FRAME_RED:
+#line 11558 "scanner.c"
{
ScanLine* _tmp50_;
+#line 1339 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp50_ = line;
+#line 1339 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp50_->channel = 0;
+#line 1340 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
+#line 11567 "scanner.c"
}
+#line 1330 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SANE_FRAME_GREEN:
+#line 11571 "scanner.c"
{
ScanLine* _tmp51_;
+#line 1342 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp51_ = line;
+#line 1342 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp51_->channel = 1;
+#line 1343 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
+#line 11580 "scanner.c"
}
+#line 1330 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SANE_FRAME_BLUE:
+#line 11584 "scanner.c"
{
ScanLine* _tmp52_;
+#line 1345 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp52_ = line;
+#line 1345 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp52_->channel = 2;
+#line 1346 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
+#line 11593 "scanner.c"
}
default:
+#line 1330 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
+#line 11598 "scanner.c"
}
+#line 1348 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp53_ = line;
+#line 1348 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp54_ = self->priv->parameters;
+#line 1348 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp55_ = _tmp54_.pixels_per_line;
+#line 1348 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp53_->width = _tmp55_;
+#line 1349 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp56_ = line;
+#line 1349 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp57_ = self->priv->parameters;
+#line 1349 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp58_ = _tmp57_.depth;
+#line 1349 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp56_->depth = _tmp58_;
+#line 1350 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp59_ = line;
+#line 1350 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp60_ = self->priv->buffer;
+#line 1350 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp60__length1 = self->priv->buffer_length1;
+#line 1350 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->buffer = NULL;
+#line 1350 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp59_->data = (g_free (_tmp59_->data), NULL);
+#line 1350 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp59_->data = _tmp60_;
+#line 1350 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp59_->data_length1 = _tmp60__length1;
+#line 1351 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp61_ = line;
+#line 1351 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp62_ = self->priv->parameters;
+#line 1351 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp63_ = _tmp62_.bytes_per_line;
+#line 1351 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp61_->data_length = _tmp63_;
+#line 1352 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp64_ = line;
+#line 1352 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp65_ = self->priv->line_count;
+#line 1352 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp64_->number = _tmp65_;
+#line 1353 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp66_ = line;
+#line 1353 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp67_ = self->priv->n_used;
+#line 1353 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp68_ = line;
+#line 1353 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp69_ = _tmp68_->data_length;
+#line 1353 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp66_->n_lines = _tmp67_ / _tmp69_;
+#line 1355 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp70_ = self->priv->line_count;
+#line 1355 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp71_ = line;
+#line 1355 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp72_ = _tmp71_->n_lines;
+#line 1355 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->line_count = _tmp70_ + _tmp72_;
+#line 1358 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp73_ = self->priv->buffer;
+#line 1358 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp73__length1 = self->priv->buffer_length1;
+#line 1358 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
buffer_size = _tmp73__length1;
+#line 1359 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp74_ = full_read;
+#line 1359 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp74_) {
+#line 11672 "scanner.c"
gint _tmp75_;
SANE_Parameters _tmp76_;
gint _tmp77_;
+#line 1360 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp75_ = buffer_size;
+#line 1360 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp76_ = self->priv->parameters;
+#line 1360 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp77_ = _tmp76_.bytes_per_line;
+#line 1360 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
buffer_size = _tmp75_ + _tmp77_;
+#line 11684 "scanner.c"
}
+#line 1362 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp78_ = buffer_size;
+#line 1362 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp79_ = g_new0 (guchar, _tmp78_);
+#line 1362 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->buffer = (g_free (self->priv->buffer), NULL);
+#line 1362 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->buffer = _tmp79_;
+#line 1362 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->buffer_length1 = _tmp78_;
+#line 1362 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->_buffer_size_ = self->priv->buffer_length1;
+#line 1363 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp80_ = self->priv->n_used;
+#line 1363 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp81_ = line;
+#line 1363 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp82_ = _tmp81_->n_lines;
+#line 1363 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp83_ = line;
+#line 1363 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp84_ = _tmp83_->data_length;
+#line 1363 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
n_remaining = _tmp80_ - (_tmp82_ * _tmp84_);
+#line 1364 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->n_used = 0;
+#line 11712 "scanner.c"
{
gint i;
+#line 1365 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
i = 0;
+#line 11717 "scanner.c"
{
gboolean _tmp85_;
+#line 1365 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp85_ = TRUE;
+#line 1365 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
while (TRUE) {
+#line 11724 "scanner.c"
gboolean _tmp86_;
gint _tmp88_;
gint _tmp89_;
@@ -7540,86 +11746,155 @@ static void scanner_do_read (Scanner* self) {
guchar _tmp99_;
guchar _tmp100_;
gint _tmp101_;
+#line 1365 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp86_ = _tmp85_;
+#line 1365 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (!_tmp86_) {
+#line 11746 "scanner.c"
gint _tmp87_;
+#line 1365 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp87_ = i;
+#line 1365 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
i = _tmp87_ + 1;
+#line 11752 "scanner.c"
}
+#line 1365 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp85_ = FALSE;
+#line 1365 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp88_ = i;
+#line 1365 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp89_ = n_remaining;
+#line 1365 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (!(_tmp88_ < _tmp89_)) {
+#line 1365 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
+#line 11764 "scanner.c"
}
+#line 1367 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp90_ = self->priv->buffer;
+#line 1367 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp90__length1 = self->priv->buffer_length1;
+#line 1367 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp91_ = i;
+#line 1367 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp92_ = line;
+#line 1367 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp93_ = _tmp92_->data;
+#line 1367 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp93__length1 = _tmp92_->data_length1;
+#line 1367 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp94_ = i;
+#line 1367 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp95_ = line;
+#line 1367 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp96_ = _tmp95_->n_lines;
+#line 1367 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp97_ = line;
+#line 1367 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp98_ = _tmp97_->data_length;
+#line 1367 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp99_ = _tmp93_[_tmp94_ + (_tmp96_ * _tmp98_)];
+#line 1367 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp90_[_tmp91_] = _tmp99_;
+#line 1367 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp100_ = _tmp90_[_tmp91_];
+#line 1368 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp101_ = self->priv->n_used;
+#line 1368 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->n_used = _tmp101_ + 1;
+#line 11798 "scanner.c"
}
}
}
+#line 1373 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp105_ = self->priv->parameters;
+#line 1373 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp106_ = _tmp105_.depth;
+#line 1373 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp106_ == 8) {
+#line 11808 "scanner.c"
SANE_Parameters _tmp107_;
SANE_Frame _tmp108_;
+#line 1373 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp107_ = self->priv->parameters;
+#line 1373 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp108_ = _tmp107_.format;
+#line 1373 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp104_ = _tmp108_ == SANE_FRAME_GRAY;
+#line 11817 "scanner.c"
} else {
+#line 1373 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp104_ = FALSE;
+#line 11821 "scanner.c"
}
+#line 1373 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp109_ = _tmp104_;
+#line 1373 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp109_) {
+#line 11827 "scanner.c"
ScanJob* _tmp110_;
gint _tmp111_;
+#line 1374 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp110_ = job;
+#line 1374 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp111_ = _tmp110_->depth;
+#line 1374 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp103_ = _tmp111_ == 2;
+#line 11836 "scanner.c"
} else {
+#line 1373 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp103_ = FALSE;
+#line 11840 "scanner.c"
}
+#line 1373 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp112_ = _tmp103_;
+#line 1373 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp112_) {
+#line 11846 "scanner.c"
ScanJob* _tmp113_;
ScanMode _tmp114_;
+#line 1374 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp113_ = job;
+#line 1374 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp114_ = _tmp113_->scan_mode;
+#line 1374 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp102_ = _tmp114_ == SCAN_MODE_GRAY;
+#line 11855 "scanner.c"
} else {
+#line 1373 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp102_ = FALSE;
+#line 11859 "scanner.c"
}
+#line 1373 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp115_ = _tmp102_;
+#line 1373 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp115_) {
+#line 11865 "scanner.c"
guchar block;
gint write_offset;
gint block_shift;
ScanLine* _tmp157_;
ScanLine* _tmp158_;
gint _tmp159_;
+#line 1376 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
block = (guchar) 0;
+#line 1377 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
write_offset = 0;
+#line 1378 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
block_shift = 6;
+#line 11878 "scanner.c"
{
gint i;
+#line 1379 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
i = 0;
+#line 11883 "scanner.c"
{
gboolean _tmp116_;
+#line 1379 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp116_ = TRUE;
+#line 1379 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
while (TRUE) {
+#line 11890 "scanner.c"
gboolean _tmp117_;
gint _tmp119_;
ScanLine* _tmp120_;
@@ -7629,30 +11904,53 @@ static void scanner_do_read (Scanner* self) {
gint _tmp124_;
gint offset;
gint _tmp150_;
+#line 1379 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp117_ = _tmp116_;
+#line 1379 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (!_tmp117_) {
+#line 11904 "scanner.c"
gint _tmp118_;
+#line 1379 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp118_ = i;
+#line 1379 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
i = _tmp118_ + 1;
+#line 11910 "scanner.c"
}
+#line 1379 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp116_ = FALSE;
+#line 1379 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp119_ = i;
+#line 1379 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp120_ = line;
+#line 1379 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp121_ = _tmp120_->n_lines;
+#line 1379 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (!(_tmp119_ < _tmp121_)) {
+#line 1379 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
+#line 11924 "scanner.c"
}
+#line 1381 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp122_ = i;
+#line 1381 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp123_ = line;
+#line 1381 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp124_ = _tmp123_->data_length;
+#line 1381 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
offset = _tmp122_ * _tmp124_;
+#line 11934 "scanner.c"
{
gint x;
+#line 1382 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
x = 0;
+#line 11939 "scanner.c"
{
gboolean _tmp125_;
+#line 1382 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp125_ = TRUE;
+#line 1382 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
while (TRUE) {
+#line 11946 "scanner.c"
gboolean _tmp126_;
gint _tmp128_;
ScanLine* _tmp129_;
@@ -7670,50 +11968,91 @@ static void scanner_do_read (Scanner* self) {
guchar _tmp140_;
gint _tmp141_;
gint _tmp142_;
+#line 1382 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp126_ = _tmp125_;
+#line 1382 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (!_tmp126_) {
+#line 11968 "scanner.c"
gint _tmp127_;
+#line 1382 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp127_ = x;
+#line 1382 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
x = _tmp127_ + 1;
+#line 11974 "scanner.c"
}
+#line 1382 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp125_ = FALSE;
+#line 1382 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp128_ = x;
+#line 1382 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp129_ = line;
+#line 1382 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp130_ = _tmp129_->width;
+#line 1382 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (!(_tmp128_ < _tmp130_)) {
+#line 1382 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
+#line 11988 "scanner.c"
}
+#line 1384 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp131_ = line;
+#line 1384 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp132_ = _tmp131_->data;
+#line 1384 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp132__length1 = _tmp131_->data_length1;
+#line 1384 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp133_ = offset;
+#line 1384 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp134_ = x;
+#line 1384 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp135_ = _tmp132_[_tmp133_ + _tmp134_];
+#line 1384 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
p = _tmp135_;
+#line 1387 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp136_ = p;
+#line 1387 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (((gint) _tmp136_) >= 192) {
+#line 1388 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
sample = (guchar) 3;
+#line 12010 "scanner.c"
} else {
guchar _tmp137_;
+#line 1389 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp137_ = p;
+#line 1389 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (((gint) _tmp137_) >= 128) {
+#line 1390 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
sample = (guchar) 2;
+#line 12019 "scanner.c"
} else {
guchar _tmp138_;
+#line 1391 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp138_ = p;
+#line 1391 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (((gint) _tmp138_) >= 64) {
+#line 1392 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
sample = (guchar) 1;
+#line 12028 "scanner.c"
} else {
+#line 1394 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
sample = (guchar) 0;
+#line 12032 "scanner.c"
}
}
}
+#line 1396 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp139_ = block;
+#line 1396 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp140_ = sample;
+#line 1396 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp141_ = block_shift;
+#line 1396 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
block = _tmp139_ | (_tmp140_ << _tmp141_);
+#line 1397 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp142_ = block_shift;
+#line 1397 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp142_ == 0) {
+#line 12048 "scanner.c"
ScanLine* _tmp143_;
guchar* _tmp144_;
gint _tmp144__length1;
@@ -7721,27 +12060,45 @@ static void scanner_do_read (Scanner* self) {
guchar _tmp146_;
guchar _tmp147_;
gint _tmp148_;
+#line 1399 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp143_ = line;
+#line 1399 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp144_ = _tmp143_->data;
+#line 1399 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp144__length1 = _tmp143_->data_length1;
+#line 1399 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp145_ = write_offset;
+#line 1399 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp146_ = block;
+#line 1399 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp144_[_tmp145_] = _tmp146_;
+#line 1399 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp147_ = _tmp144_[_tmp145_];
+#line 1400 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp148_ = write_offset;
+#line 1400 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
write_offset = _tmp148_ + 1;
+#line 1401 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
block = (guchar) 0;
+#line 1402 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
block_shift = 6;
+#line 12078 "scanner.c"
} else {
gint _tmp149_;
+#line 1405 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp149_ = block_shift;
+#line 1405 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
block_shift = _tmp149_ - 2;
+#line 12085 "scanner.c"
}
}
}
}
+#line 1409 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp150_ = block_shift;
+#line 1409 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp150_ != 6) {
+#line 12094 "scanner.c"
ScanLine* _tmp151_;
guchar* _tmp152_;
gint _tmp152__length1;
@@ -7749,41 +12106,71 @@ static void scanner_do_read (Scanner* self) {
guchar _tmp154_;
guchar _tmp155_;
gint _tmp156_;
+#line 1411 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp151_ = line;
+#line 1411 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp152_ = _tmp151_->data;
+#line 1411 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp152__length1 = _tmp151_->data_length1;
+#line 1411 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp153_ = write_offset;
+#line 1411 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp154_ = block;
+#line 1411 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp152_[_tmp153_] = _tmp154_;
+#line 1411 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp155_ = _tmp152_[_tmp153_];
+#line 1412 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp156_ = write_offset;
+#line 1412 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
write_offset = _tmp156_ + 1;
+#line 1413 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
block = (guchar) 0;
+#line 1414 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
block_shift = 6;
+#line 12124 "scanner.c"
}
}
}
}
+#line 1418 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp157_ = line;
+#line 1418 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp158_ = line;
+#line 1418 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp159_ = _tmp158_->width;
+#line 1418 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp157_->data_length = ((_tmp159_ * 2) + 7) / 8;
+#line 12137 "scanner.c"
}
+#line 1421 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp160_ = job;
+#line 1421 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp161_ = _tmp160_->id;
+#line 1421 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp162_ = line;
+#line 1421 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp163_ = notify_got_line_new (_tmp161_, _tmp162_);
+#line 1421 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp164_ = _tmp163_;
+#line 1421 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scanner_notify (self, (Notify*) _tmp164_);
+#line 1421 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_notify_unref0 (_tmp164_);
+#line 1327 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_scan_line_unref0 (line);
+#line 12155 "scanner.c"
}
+#line 1288 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_scan_job_unref0 (job);
+#line 12159 "scanner.c"
}
static void _scanner_authorization_cb_sane_authcallback (const gchar* resource, gchar* username, gchar* password) {
+#line 1430 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scanner_authorization_cb (resource, username, -1, password, -1);
+#line 12166 "scanner.c"
}
@@ -7803,131 +12190,235 @@ static void* scanner_scan_thread (Scanner* self) {
gint _tmp11_ = 0;
SANE_Int _tmp12_;
gint _tmp13_ = 0;
+#line 1425 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_val_if_fail (self != NULL, NULL);
+#line 1427 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->state = SCAN_STATE_IDLE;
+#line 1430 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp1_ = sane_init (&_tmp0_, _scanner_authorization_cb_sane_authcallback);
+#line 1430 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
version_code = _tmp0_;
+#line 1430 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
status = _tmp1_;
+#line 1431 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp2_ = status;
+#line 1431 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp3_ = sane_status_to_string (_tmp2_);
+#line 1431 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp4_ = _tmp3_;
- g_debug ("scanner.vala:1378: sane_init () -> %s", _tmp4_);
+#line 1431 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ g_debug ("scanner.vala:1431: sane_init () -> %s", _tmp4_);
+#line 1431 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (_tmp4_);
+#line 1432 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp5_ = status;
+#line 1432 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp5_ != SANE_STATUS_GOOD) {
+#line 12210 "scanner.c"
SANE_Status _tmp6_;
const gchar* _tmp7_ = NULL;
+#line 1434 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp6_ = status;
+#line 1434 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp7_ = sane_strstatus (_tmp6_);
- g_warning ("scanner.vala:1381: Unable to initialize SANE backend: %s", _tmp7_);
+#line 1434 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ g_warning ("scanner.vala:1434: Unable to initialize SANE backend: %s", _tmp7_);
+#line 1435 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
result = NULL;
+#line 1435 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
+#line 12223 "scanner.c"
}
+#line 1437 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp8_ = version_code;
+#line 1437 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp9_ = SANE_VERSION_MAJOR (_tmp8_);
+#line 1437 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp10_ = version_code;
+#line 1437 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp11_ = SANE_VERSION_MINOR (_tmp10_);
+#line 1437 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp12_ = version_code;
+#line 1437 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp13_ = SANE_VERSION_BUILD (_tmp12_);
- g_debug ("scanner.vala:1384: SANE version %d.%d.%d", _tmp9_, _tmp11_, _tmp13_);
+#line 1437 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ g_debug ("scanner.vala:1437: SANE version %d.%d.%d", _tmp9_, _tmp11_, _tmp13_);
+#line 1443 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scanner_redetect (self);
+#line 1445 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
while (TRUE) {
+#line 12243 "scanner.c"
gboolean _tmp14_ = FALSE;
ScanState _tmp15_;
+#line 1445 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp14_ = scanner_handle_requests (self);
+#line 1445 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (!_tmp14_) {
+#line 1445 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
+#line 12252 "scanner.c"
}
+#line 1447 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp15_ = self->priv->state;
+#line 1447 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
switch (_tmp15_) {
+#line 1447 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SCAN_STATE_IDLE:
+#line 12260 "scanner.c"
{
GList* _tmp16_;
+#line 1450 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp16_ = self->priv->job_queue;
+#line 1450 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp16_ != NULL) {
+#line 1452 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scanner_set_scanning (self, TRUE);
+#line 1453 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->state = SCAN_STATE_OPEN;
+#line 12271 "scanner.c"
}
+#line 1455 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
+#line 12275 "scanner.c"
}
+#line 1447 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SCAN_STATE_REDETECT:
+#line 12279 "scanner.c"
{
+#line 1457 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scanner_do_redetect (self);
+#line 1458 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
+#line 12285 "scanner.c"
}
+#line 1447 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SCAN_STATE_OPEN:
+#line 12289 "scanner.c"
{
+#line 1460 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scanner_do_open (self);
+#line 1461 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
+#line 12295 "scanner.c"
}
+#line 1447 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SCAN_STATE_GET_OPTION:
+#line 12299 "scanner.c"
{
+#line 1463 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scanner_do_get_option (self);
+#line 1464 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
+#line 12305 "scanner.c"
}
+#line 1447 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SCAN_STATE_START:
+#line 12309 "scanner.c"
{
+#line 1466 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scanner_do_start (self);
+#line 1467 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
+#line 12315 "scanner.c"
}
+#line 1447 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SCAN_STATE_GET_PARAMETERS:
+#line 12319 "scanner.c"
{
+#line 1469 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scanner_do_get_parameters (self);
+#line 1470 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
+#line 12325 "scanner.c"
}
+#line 1447 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SCAN_STATE_READ:
+#line 12329 "scanner.c"
{
+#line 1472 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scanner_do_read (self);
+#line 1473 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
+#line 12335 "scanner.c"
}
default:
+#line 1447 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
+#line 12340 "scanner.c"
}
}
+#line 1477 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
result = NULL;
+#line 1477 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
+#line 12347 "scanner.c"
}
static gpointer _scanner_scan_thread_gthread_func (gpointer self) {
gpointer result;
result = scanner_scan_thread (self);
+#line 1484 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scanner_unref (self);
+#line 1484 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
+#line 12358 "scanner.c"
}
void scanner_start (Scanner* self) {
GError * _inner_error_ = NULL;
+#line 1480 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (self != NULL);
+#line 12366 "scanner.c"
{
- GThread* _tmp0_ = NULL;
+ GThread* _tmp0_;
GThread* _tmp1_;
- _tmp0_ = g_thread_create (_scanner_scan_thread_gthread_func, scanner_ref (self), TRUE, &_inner_error_);
+#line 1484 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp0_ = g_thread_try_new ("scan-thread", _scanner_scan_thread_gthread_func, scanner_ref (self), &_inner_error_);
+#line 1484 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp1_ = _tmp0_;
+#line 1484 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_inner_error_ != NULL) {
- goto __catch14_g_error;
+#line 12376 "scanner.c"
+ goto __catch15_g_error;
}
+#line 1484 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _g_thread_unref0 (self->priv->thread);
+#line 1484 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->thread = _tmp1_;
+#line 12383 "scanner.c"
}
- goto __finally14;
- __catch14_g_error:
+ goto __finally15;
+ __catch15_g_error:
{
GError* e = NULL;
GError* _tmp2_;
const gchar* _tmp3_;
+#line 1482 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
e = _inner_error_;
+#line 1482 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_inner_error_ = NULL;
+#line 1488 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp2_ = e;
+#line 1488 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp3_ = _tmp2_->message;
- g_critical ("scanner.vala:1435: Unable to create thread: %s", _tmp3_);
+#line 1488 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ g_critical ("scanner.vala:1488: Unable to create thread: %s", _tmp3_);
+#line 1482 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_error_free0 (e);
+#line 12403 "scanner.c"
}
- __finally14:
+ __finally15:
+#line 1482 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_inner_error_ != NULL) {
+#line 1482 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 1482 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_clear_error (&_inner_error_);
+#line 1482 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return;
+#line 12414 "scanner.c"
}
}
@@ -7936,71 +12427,119 @@ void scanner_redetect (Scanner* self) {
gboolean _tmp0_;
GAsyncQueue* _tmp1_;
RequestRedetect* _tmp2_;
+#line 1492 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (self != NULL);
+#line 1494 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = self->priv->need_redetect;
+#line 1494 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp0_) {
+#line 1495 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return;
+#line 12431 "scanner.c"
}
+#line 1496 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->need_redetect = TRUE;
- g_debug ("scanner.vala:1445: Requesting redetection of scan devices");
+#line 1498 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ g_debug ("scanner.vala:1498: Requesting redetection of scan devices");
+#line 1500 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp1_ = self->priv->request_queue;
+#line 1500 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp2_ = request_redetect_new ();
+#line 1500 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_async_queue_push (_tmp1_, (Request*) _tmp2_);
+#line 12443 "scanner.c"
}
gboolean scanner_is_scanning (Scanner* self) {
gboolean result = FALSE;
gboolean _tmp0_;
+#line 1503 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_val_if_fail (self != NULL, FALSE);
+#line 1505 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = self->priv->scanning;
+#line 1505 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
result = _tmp0_;
+#line 1505 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
+#line 12458 "scanner.c"
}
static gchar* scanner_get_scan_mode_string (Scanner* self, ScanMode mode) {
gchar* result = NULL;
ScanMode _tmp0_;
+#line 1508 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_val_if_fail (self != NULL, NULL);
+#line 1510 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = mode;
+#line 1510 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
switch (_tmp0_) {
+#line 1510 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SCAN_MODE_DEFAULT:
+#line 12473 "scanner.c"
{
gchar* _tmp1_;
+#line 1513 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp1_ = g_strdup ("ScanMode.DEFAULT");
+#line 1513 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
result = _tmp1_;
+#line 1513 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
+#line 12482 "scanner.c"
}
+#line 1510 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SCAN_MODE_COLOR:
+#line 12486 "scanner.c"
{
gchar* _tmp2_;
+#line 1515 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp2_ = g_strdup ("ScanMode.COLOR");
+#line 1515 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
result = _tmp2_;
+#line 1515 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
+#line 12495 "scanner.c"
}
+#line 1510 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SCAN_MODE_GRAY:
+#line 12499 "scanner.c"
{
gchar* _tmp3_;
+#line 1517 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp3_ = g_strdup ("ScanMode.GRAY");
+#line 1517 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
result = _tmp3_;
+#line 1517 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
+#line 12508 "scanner.c"
}
+#line 1510 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SCAN_MODE_LINEART:
+#line 12512 "scanner.c"
{
gchar* _tmp4_;
+#line 1519 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp4_ = g_strdup ("ScanMode.LINEART");
+#line 1519 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
result = _tmp4_;
+#line 1519 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
+#line 12521 "scanner.c"
}
default:
{
ScanMode _tmp5_;
gchar* _tmp6_ = NULL;
+#line 1521 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp5_ = mode;
+#line 1521 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp6_ = g_strdup_printf ("%d", (gint) _tmp5_);
+#line 1521 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
result = _tmp6_;
+#line 1521 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
+#line 12535 "scanner.c"
}
}
}
@@ -8009,45 +12548,77 @@ static gchar* scanner_get_scan_mode_string (Scanner* self, ScanMode mode) {
static gchar* scanner_get_scan_type_string (Scanner* self, ScanType type) {
gchar* result = NULL;
ScanType _tmp0_;
+#line 1525 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_val_if_fail (self != NULL, NULL);
+#line 1527 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = type;
+#line 1527 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
switch (_tmp0_) {
+#line 1527 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SCAN_TYPE_SINGLE:
+#line 12552 "scanner.c"
{
gchar* _tmp1_;
+#line 1530 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp1_ = g_strdup ("ScanType.SINGLE");
+#line 1530 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
result = _tmp1_;
+#line 1530 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
+#line 12561 "scanner.c"
}
+#line 1527 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SCAN_TYPE_ADF_FRONT:
+#line 12565 "scanner.c"
{
gchar* _tmp2_;
+#line 1532 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp2_ = g_strdup ("ScanType.ADF_FRONT");
+#line 1532 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
result = _tmp2_;
+#line 1532 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
+#line 12574 "scanner.c"
}
+#line 1527 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SCAN_TYPE_ADF_BACK:
+#line 12578 "scanner.c"
{
gchar* _tmp3_;
+#line 1534 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp3_ = g_strdup ("ScanType.ADF_BACK");
+#line 1534 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
result = _tmp3_;
+#line 1534 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
+#line 12587 "scanner.c"
}
+#line 1527 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SCAN_TYPE_ADF_BOTH:
+#line 12591 "scanner.c"
{
gchar* _tmp4_;
+#line 1536 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp4_ = g_strdup ("ScanType.ADF_BOTH");
+#line 1536 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
result = _tmp4_;
+#line 1536 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
+#line 12600 "scanner.c"
}
default:
{
ScanType _tmp5_;
gchar* _tmp6_ = NULL;
+#line 1538 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp5_ = type;
+#line 1538 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp6_ = g_strdup_printf ("%d", (gint) _tmp5_);
+#line 1538 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
result = _tmp6_;
+#line 1538 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
+#line 12614 "scanner.c"
}
}
}
@@ -8073,107 +12644,215 @@ void scanner_scan (Scanner* self, const gchar* device, ScanOptions* options) {
gint _tmp17_;
ScanOptions* _tmp18_;
gint _tmp19_;
- RequestStartScan* _tmp20_;
- RequestStartScan* request;
- ScanJob* _tmp21_;
- ScanJob* _tmp22_;
+ ScanOptions* _tmp20_;
+ gint _tmp21_;
+ ScanOptions* _tmp22_;
gint _tmp23_;
- ScanJob* _tmp24_;
- const gchar* _tmp25_;
- gchar* _tmp26_;
- ScanJob* _tmp27_;
- ScanOptions* _tmp28_;
- gint _tmp29_;
- ScanJob* _tmp30_;
- ScanOptions* _tmp31_;
- ScanMode _tmp32_;
- ScanJob* _tmp33_;
- ScanOptions* _tmp34_;
- gint _tmp35_;
- ScanJob* _tmp36_;
- ScanOptions* _tmp37_;
- ScanType _tmp38_;
- ScanJob* _tmp39_;
- ScanOptions* _tmp40_;
- gint _tmp41_;
- ScanJob* _tmp42_;
- ScanOptions* _tmp43_;
- gint _tmp44_;
- GAsyncQueue* _tmp45_;
- Request* _tmp46_;
+ RequestStartScan* _tmp24_;
+ RequestStartScan* request;
+ ScanJob* _tmp25_;
+ ScanJob* _tmp26_;
+ gint _tmp27_;
+ ScanJob* _tmp28_;
+ const gchar* _tmp29_;
+ gchar* _tmp30_;
+ ScanJob* _tmp31_;
+ ScanOptions* _tmp32_;
+ gint _tmp33_;
+ ScanJob* _tmp34_;
+ ScanOptions* _tmp35_;
+ ScanMode _tmp36_;
+ ScanJob* _tmp37_;
+ ScanOptions* _tmp38_;
+ gint _tmp39_;
+ ScanJob* _tmp40_;
+ ScanOptions* _tmp41_;
+ ScanType _tmp42_;
+ ScanJob* _tmp43_;
+ ScanOptions* _tmp44_;
+ gint _tmp45_;
+ ScanJob* _tmp46_;
+ ScanOptions* _tmp47_;
+ gint _tmp48_;
+ ScanJob* _tmp49_;
+ ScanOptions* _tmp50_;
+ gint _tmp51_;
+ ScanJob* _tmp52_;
+ ScanOptions* _tmp53_;
+ gint _tmp54_;
+ GAsyncQueue* _tmp55_;
+ Request* _tmp56_;
+#line 1542 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (self != NULL);
+#line 1542 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (options != NULL);
+#line 1545 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp1_ = device;
+#line 1545 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp1_ != NULL) {
+#line 12686 "scanner.c"
const gchar* _tmp2_;
+#line 1545 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp2_ = device;
+#line 1545 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = _tmp2_;
+#line 12692 "scanner.c"
} else {
+#line 1545 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = "(null)";
+#line 12696 "scanner.c"
}
+#line 1544 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp3_ = _tmp0_;
+#line 1544 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp4_ = options;
+#line 1544 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp5_ = _tmp4_->dpi;
+#line 1544 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp6_ = options;
+#line 1544 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp7_ = _tmp6_->scan_mode;
+#line 1544 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp8_ = scanner_get_scan_mode_string (self, _tmp7_);
+#line 1544 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp9_ = _tmp8_;
+#line 1544 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp10_ = options;
+#line 1544 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp11_ = _tmp10_->depth;
+#line 1544 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp12_ = options;
+#line 1544 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp13_ = _tmp12_->type;
+#line 1544 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp14_ = scanner_get_scan_type_string (self, _tmp13_);
+#line 1544 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp15_ = _tmp14_;
+#line 1544 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp16_ = options;
+#line 1544 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp17_ = _tmp16_->paper_width;
+#line 1544 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp18_ = options;
+#line 1544 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp19_ = _tmp18_->paper_height;
- g_debug ("scanner.vala:1491: Scanner.scan (\"%s\", dpi=%d, scan_mode=%s, depth=%" \
-"d, type=%s, paper_width=%d, paper_height=%d)", _tmp3_, _tmp5_, _tmp9_, _tmp11_, _tmp15_, _tmp17_, _tmp19_);
+#line 1544 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp20_ = options;
+#line 1544 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp21_ = _tmp20_->brightness;
+#line 1544 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp22_ = options;
+#line 1544 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp23_ = _tmp22_->contrast;
+#line 1544 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ g_debug ("scanner.vala:1544: Scanner.scan (\"%s\", dpi=%d, scan_mode=%s, depth=%" \
+"d, type=%s, paper_width=%d, paper_height=%d, brightness=%d, contrast=%" \
+"d)", _tmp3_, _tmp5_, _tmp9_, _tmp11_, _tmp15_, _tmp17_, _tmp19_, _tmp21_, _tmp23_);
+#line 1544 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (_tmp15_);
+#line 1544 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (_tmp9_);
- _tmp20_ = request_start_scan_new ();
- request = _tmp20_;
- _tmp21_ = scan_job_new ();
+#line 1548 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp24_ = request_start_scan_new ();
+#line 1548 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ request = _tmp24_;
+#line 1549 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp25_ = scan_job_new ();
+#line 1549 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_scan_job_unref0 (request->job);
- request->job = _tmp21_;
- _tmp22_ = request->job;
- _tmp23_ = self->job_id;
- self->job_id = _tmp23_ + 1;
- _tmp22_->id = _tmp23_;
- _tmp24_ = request->job;
- _tmp25_ = device;
- _tmp26_ = g_strdup (_tmp25_);
- _g_free0 (_tmp24_->device);
- _tmp24_->device = _tmp26_;
- _tmp27_ = request->job;
- _tmp28_ = options;
- _tmp29_ = _tmp28_->dpi;
- _tmp27_->dpi = (gdouble) _tmp29_;
- _tmp30_ = request->job;
- _tmp31_ = options;
- _tmp32_ = _tmp31_->scan_mode;
- _tmp30_->scan_mode = _tmp32_;
- _tmp33_ = request->job;
- _tmp34_ = options;
- _tmp35_ = _tmp34_->depth;
- _tmp33_->depth = _tmp35_;
- _tmp36_ = request->job;
- _tmp37_ = options;
- _tmp38_ = _tmp37_->type;
- _tmp36_->type = _tmp38_;
- _tmp39_ = request->job;
- _tmp40_ = options;
- _tmp41_ = _tmp40_->paper_width;
- _tmp39_->page_width = _tmp41_;
- _tmp42_ = request->job;
- _tmp43_ = options;
- _tmp44_ = _tmp43_->paper_height;
- _tmp42_->page_height = _tmp44_;
- _tmp45_ = self->priv->request_queue;
- _tmp46_ = _request_ref0 ((Request*) request);
- g_async_queue_push (_tmp45_, _tmp46_);
+#line 1549 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ request->job = _tmp25_;
+#line 1550 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp26_ = request->job;
+#line 1550 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp27_ = self->job_id;
+#line 1550 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ self->job_id = _tmp27_ + 1;
+#line 1550 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp26_->id = _tmp27_;
+#line 1551 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp28_ = request->job;
+#line 1551 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp29_ = device;
+#line 1551 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp30_ = g_strdup (_tmp29_);
+#line 1551 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _g_free0 (_tmp28_->device);
+#line 1551 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp28_->device = _tmp30_;
+#line 1552 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp31_ = request->job;
+#line 1552 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp32_ = options;
+#line 1552 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp33_ = _tmp32_->dpi;
+#line 1552 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp31_->dpi = (gdouble) _tmp33_;
+#line 1553 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp34_ = request->job;
+#line 1553 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp35_ = options;
+#line 1553 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp36_ = _tmp35_->scan_mode;
+#line 1553 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp34_->scan_mode = _tmp36_;
+#line 1554 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp37_ = request->job;
+#line 1554 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp38_ = options;
+#line 1554 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp39_ = _tmp38_->depth;
+#line 1554 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp37_->depth = _tmp39_;
+#line 1555 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp40_ = request->job;
+#line 1555 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp41_ = options;
+#line 1555 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp42_ = _tmp41_->type;
+#line 1555 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp40_->type = _tmp42_;
+#line 1556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp43_ = request->job;
+#line 1556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp44_ = options;
+#line 1556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp45_ = _tmp44_->paper_width;
+#line 1556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp43_->page_width = _tmp45_;
+#line 1557 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp46_ = request->job;
+#line 1557 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp47_ = options;
+#line 1557 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp48_ = _tmp47_->paper_height;
+#line 1557 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp46_->page_height = _tmp48_;
+#line 1558 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp49_ = request->job;
+#line 1558 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp50_ = options;
+#line 1558 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp51_ = _tmp50_->brightness;
+#line 1558 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp49_->brightness = _tmp51_;
+#line 1559 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp52_ = request->job;
+#line 1559 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp53_ = options;
+#line 1559 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp54_ = _tmp53_->contrast;
+#line 1559 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp52_->contrast = _tmp54_;
+#line 1560 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp55_ = self->priv->request_queue;
+#line 1560 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp56_ = _request_ref0 ((Request*) request);
+#line 1560 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ g_async_queue_push (_tmp55_, _tmp56_);
+#line 1542 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_request_unref0 (request);
+#line 12846 "scanner.c"
}
@@ -8181,12 +12860,19 @@ void scanner_cancel (Scanner* self) {
gint _tmp0_;
GAsyncQueue* _tmp1_;
RequestCancel* _tmp2_;
+#line 1563 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (self != NULL);
+#line 1565 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = self->job_id;
+#line 1565 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->first_job_id = _tmp0_;
+#line 1566 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp1_ = self->priv->request_queue;
+#line 1566 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp2_ = request_cancel_new ();
+#line 1566 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_async_queue_push (_tmp1_, (Request*) _tmp2_);
+#line 12866 "scanner.c"
}
@@ -8194,19 +12880,37 @@ void scanner_free (Scanner* self) {
GAsyncQueue* _tmp0_;
RequestQuit* _tmp1_;
GThread* _tmp2_;
+#line 1569 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (self != NULL);
- g_debug ("scanner.vala:1515: Stopping scan thread");
+#line 1571 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ g_debug ("scanner.vala:1571: Stopping scan thread");
+#line 1573 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = self->priv->request_queue;
+#line 1573 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp1_ = request_quit_new ();
+#line 1573 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_async_queue_push (_tmp0_, (Request*) _tmp1_);
+#line 1575 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp2_ = self->priv->thread;
+#line 1575 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp2_ != NULL) {
+#line 12888 "scanner.c"
GThread* _tmp3_;
+#line 1577 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp3_ = self->priv->thread;
+#line 1577 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_thread_join (_tmp3_);
+#line 1578 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _g_thread_unref0 (self->priv->thread);
+#line 1578 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ self->priv->thread = NULL;
+#line 12898 "scanner.c"
}
+#line 1581 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
sane_exit ();
- g_debug ("scanner.vala:1523: sane_exit ()");
+#line 1582 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ g_debug ("scanner.vala:1582: sane_exit ()");
+#line 12904 "scanner.c"
}
@@ -8217,16 +12921,27 @@ static void g_cclosure_user_marshal_VOID__SCAN_PAGE_INFO (GClosure * closure, GV
register gpointer data1;
register gpointer data2;
cc = (GCClosure *) closure;
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (n_param_values == 2);
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (G_CCLOSURE_SWAP_DATA (closure)) {
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
data1 = closure->data;
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
data2 = param_values->data[0].v_pointer;
+#line 12923 "scanner.c"
} else {
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
data1 = param_values->data[0].v_pointer;
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
data2 = closure->data;
+#line 12929 "scanner.c"
}
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
callback = (GMarshalFunc_VOID__SCAN_PAGE_INFO) (marshal_data ? marshal_data : cc->callback);
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
callback (data1, value_get_scan_page_info (param_values + 1), data2);
+#line 12935 "scanner.c"
}
@@ -8237,16 +12952,27 @@ static void g_cclosure_user_marshal_VOID__SCAN_LINE (GClosure * closure, GValue
register gpointer data1;
register gpointer data2;
cc = (GCClosure *) closure;
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (n_param_values == 2);
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (G_CCLOSURE_SWAP_DATA (closure)) {
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
data1 = closure->data;
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
data2 = param_values->data[0].v_pointer;
+#line 12954 "scanner.c"
} else {
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
data1 = param_values->data[0].v_pointer;
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
data2 = closure->data;
+#line 12960 "scanner.c"
}
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
callback = (GMarshalFunc_VOID__SCAN_LINE) (marshal_data ? marshal_data : cc->callback);
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
callback (data1, value_get_scan_line (param_values + 1), data2);
+#line 12966 "scanner.c"
}
@@ -8257,162 +12983,271 @@ static void g_cclosure_user_marshal_VOID__INT_STRING (GClosure * closure, GValue
register gpointer data1;
register gpointer data2;
cc = (GCClosure *) closure;
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (n_param_values == 3);
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (G_CCLOSURE_SWAP_DATA (closure)) {
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
data1 = closure->data;
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
data2 = param_values->data[0].v_pointer;
+#line 12985 "scanner.c"
} else {
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
data1 = param_values->data[0].v_pointer;
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
data2 = closure->data;
+#line 12991 "scanner.c"
}
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
callback = (GMarshalFunc_VOID__INT_STRING) (marshal_data ? marshal_data : cc->callback);
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
callback (data1, g_value_get_int (param_values + 1), g_value_get_string (param_values + 2), data2);
+#line 12997 "scanner.c"
}
static void value_scanner_init (GValue* value) {
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = NULL;
+#line 13004 "scanner.c"
}
static void value_scanner_free_value (GValue* value) {
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (value->data[0].v_pointer) {
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scanner_unref (value->data[0].v_pointer);
+#line 13013 "scanner.c"
}
}
static void value_scanner_copy_value (const GValue* src_value, GValue* dest_value) {
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (src_value->data[0].v_pointer) {
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
dest_value->data[0].v_pointer = scanner_ref (src_value->data[0].v_pointer);
+#line 13023 "scanner.c"
} else {
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
dest_value->data[0].v_pointer = NULL;
+#line 13027 "scanner.c"
}
}
static gpointer value_scanner_peek_pointer (const GValue* value) {
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return value->data[0].v_pointer;
+#line 13035 "scanner.c"
}
static gchar* value_scanner_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (collect_values[0].v_pointer) {
+#line 13042 "scanner.c"
Scanner* object;
object = collect_values[0].v_pointer;
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (object->parent_instance.g_class == NULL) {
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 13049 "scanner.c"
} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 13053 "scanner.c"
}
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = scanner_ref (object);
+#line 13057 "scanner.c"
} else {
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = NULL;
+#line 13061 "scanner.c"
}
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return NULL;
+#line 13065 "scanner.c"
}
static gchar* value_scanner_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
Scanner** object_p;
object_p = collect_values[0].v_pointer;
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (!object_p) {
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
+#line 13076 "scanner.c"
}
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (!value->data[0].v_pointer) {
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
*object_p = NULL;
+#line 13082 "scanner.c"
} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
*object_p = value->data[0].v_pointer;
+#line 13086 "scanner.c"
} else {
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
*object_p = scanner_ref (value->data[0].v_pointer);
+#line 13090 "scanner.c"
}
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return NULL;
+#line 13094 "scanner.c"
}
GParamSpec* param_spec_scanner (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
ParamSpecScanner* spec;
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_val_if_fail (g_type_is_a (object_type, TYPE_SCANNER), NULL);
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
G_PARAM_SPEC (spec)->value_type = object_type;
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return G_PARAM_SPEC (spec);
+#line 13108 "scanner.c"
}
gpointer value_get_scanner (const GValue* value) {
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SCANNER), NULL);
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return value->data[0].v_pointer;
+#line 13117 "scanner.c"
}
void value_set_scanner (GValue* value, gpointer v_object) {
Scanner* old;
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SCANNER));
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
old = value->data[0].v_pointer;
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (v_object) {
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_SCANNER));
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = v_object;
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scanner_ref (value->data[0].v_pointer);
+#line 13137 "scanner.c"
} else {
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = NULL;
+#line 13141 "scanner.c"
}
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (old) {
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scanner_unref (old);
+#line 13147 "scanner.c"
}
}
void value_take_scanner (GValue* value, gpointer v_object) {
Scanner* old;
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SCANNER));
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
old = value->data[0].v_pointer;
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (v_object) {
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_SCANNER));
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = v_object;
+#line 13166 "scanner.c"
} else {
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = NULL;
+#line 13170 "scanner.c"
}
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (old) {
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scanner_unref (old);
+#line 13176 "scanner.c"
}
}
static void scanner_class_init (ScannerClass * klass) {
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scanner_parent_class = g_type_class_peek_parent (klass);
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
SCANNER_CLASS (klass)->finalize = scanner_finalize;
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_type_class_add_private (klass, sizeof (ScannerPrivate));
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_signal_new ("update_devices", TYPE_SCANNER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1, G_TYPE_POINTER);
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_signal_new ("request_authorization", TYPE_SCANNER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING);
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_signal_new ("expect_page", TYPE_SCANNER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_signal_new ("got_page_info", TYPE_SCANNER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__SCAN_PAGE_INFO, G_TYPE_NONE, 1, TYPE_SCAN_PAGE_INFO);
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_signal_new ("got_line", TYPE_SCANNER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__SCAN_LINE, G_TYPE_NONE, 1, TYPE_SCAN_LINE);
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_signal_new ("scan_failed", TYPE_SCANNER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__INT_STRING, G_TYPE_NONE, 2, G_TYPE_INT, G_TYPE_STRING);
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_signal_new ("page_done", TYPE_SCANNER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_signal_new ("document_done", TYPE_SCANNER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_signal_new ("scanning_changed", TYPE_SCANNER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
+#line 13206 "scanner.c"
}
static void scanner_instance_init (Scanner * self) {
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv = SCANNER_GET_PRIVATE (self);
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->ref_count = 1;
+#line 13215 "scanner.c"
}
static void scanner_finalize (Scanner* obj) {
Scanner * self;
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SCANNER, Scanner);
+#line 214 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _g_thread_unref0 (self->priv->thread);
+#line 217 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_async_queue_unref0 (self->priv->request_queue);
+#line 220 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_async_queue_unref0 (self->priv->notify_queue);
+#line 223 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_async_queue_unref0 (self->priv->authorize_queue);
+#line 229 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (self->priv->default_device);
+#line 234 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
__g_list_free__scan_job_unref0_0 (self->priv->job_queue);
+#line 239 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (self->priv->current_device);
+#line 247 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_hash_table_unref0 (self->priv->options);
+#line 250 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->buffer = (g_free (self->priv->buffer), NULL);
+#line 13241 "scanner.c"
}
@@ -8433,17 +13268,24 @@ GType scanner_get_type (void) {
gpointer scanner_ref (gpointer instance) {
Scanner* self;
self = instance;
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_atomic_int_inc (&self->ref_count);
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return instance;
+#line 13266 "scanner.c"
}
void scanner_unref (gpointer instance) {
Scanner* self;
self = instance;
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (g_atomic_int_dec_and_test (&self->ref_count)) {
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
SCANNER_GET_CLASS (self)->finalize (self);
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_type_free_instance ((GTypeInstance *) self);
+#line 13279 "scanner.c"
}
}
diff --git a/src/scanner.vala b/src/scanner.vala
index 722f308..4233337 100644
--- a/src/scanner.vala
+++ b/src/scanner.vala
@@ -80,6 +80,8 @@ public class ScanOptions
public ScanType type;
public int paper_width;
public int paper_height;
+ public int brightness;
+ public int contrast;
}
private class ScanJob
@@ -92,6 +94,8 @@ private class ScanJob
public ScanType type;
public int page_width;
public int page_height;
+ public int brightness;
+ public int contrast;
}
private class Request {}
@@ -207,7 +211,7 @@ public class Scanner
private static Scanner scanner_object = null;
/* Thread communicating with SANE */
- private unowned Thread<void*> thread;
+ private Thread<void*> thread;
/* Queue of requests from main thread */
private AsyncQueue<Request> request_queue;
@@ -340,7 +344,7 @@ public class Scanner
return;
}
- List<ScanDevice> devices = null;
+ var devices = new List<ScanDevice> ();
for (var i = 0; device_list[i] != null; i++)
{
debug ("Device: name=\"%s\" vendor=\"%s\" model=\"%s\" type=\"%s\"",
@@ -378,6 +382,25 @@ public class Scanner
notify (new NotifyUpdateDevices ((owned) devices));
}
+ private int scale_int (int source_min, int source_max, Sane.OptionDescriptor option, int value)
+ {
+ var v = value;
+
+ return_val_if_fail (option.type == Sane.ValueType.INT, value);
+
+ if (option.constraint_type == Sane.ConstraintType.RANGE && option.range.max != option.range.min)
+ {
+ v -= source_min;
+ v *= (int) (option.range.max - option.range.min);
+ v /= (source_max - source_min);
+ v += (int) option.range.min;
+ debug ("scale_int: scaling %d [min: %d, max: %d] to %d [min: %d, max: %d]",
+ value, source_min, source_max, v, (int) option.range.min, (int) option.range.max);
+ }
+
+ return v;
+ }
+
private bool set_default_option (Sane.Handle handle, Sane.OptionDescriptor option, Sane.Int option_index)
{
/* Check if supports automatic option */
@@ -841,6 +864,11 @@ public class Scanner
{
/* Pick source */
option = get_option_by_name (handle, Sane.NAME_SCAN_SOURCE, out index);
+ if (option == null)
+ {
+ debug ("SCAN_SOURCE not available, trying alternative \"doc-source\"");
+ option = get_option_by_name (handle, "doc-source", out index); /* Samsung unified driver. LP: #892915 */
+ }
if (option != null)
{
string[] flatbed_sources =
@@ -860,7 +888,8 @@ public class Scanner
Sane.I18N ("Automatic Document Feeder"),
"ADF",
"Automatic Document Feeder(left aligned)", /* Seen in the proprietary brother3 driver */
- "Automatic Document Feeder(centrally aligned)" /* Seen in the proprietary brother3 driver */
+ "Automatic Document Feeder(centrally aligned)", /* Seen in the proprietary brother3 driver */
+ "ADF Simplex" /* Samsung unified driver. LP: # 892915 */
};
string[] adf_front_sources =
@@ -878,7 +907,9 @@ public class Scanner
string[] adf_duplex_sources =
{
"ADF Duplex",
- Sane.I18N ("ADF Duplex")
+ Sane.I18N ("ADF Duplex"),
+ "ADF Duplex - Long-Edge Binding", /* Samsung unified driver. LP: # 892915 */
+ "ADF Duplex - Short-Edge Binding"
};
switch (job.type)
@@ -915,7 +946,8 @@ public class Scanner
{
Sane.VALUE_SCAN_MODE_COLOR,
"Color",
- "24bit Color" /* Seen in the proprietary brother3 driver */
+ "24bit Color", /* Seen in the proprietary brother3 driver */
+ "Color - 16 Million Colors" /* Samsung unified driver. LP: 892915 */
};
string[] gray_scan_modes =
{
@@ -923,7 +955,8 @@ public class Scanner
"Gray",
"Grayscale",
Sane.I18N ("Grayscale"),
- "True Gray" /* Seen in the proprietary brother3 driver */
+ "True Gray", /* Seen in the proprietary brother3 driver */
+ "Grayscale - 256 Levels" /* Samsung unified driver. LP: 892915 */
};
string[] lineart_scan_modes =
{
@@ -940,7 +973,9 @@ public class Scanner
"Gray",
"Grayscale",
Sane.I18N ("Grayscale"),
- "True Gray" /* Seen in the proprietary brother3 driver */
+ "True Gray", /* Seen in the proprietary brother3 driver */
+ "Black and White - Line Art", /* Samsung unified driver. LP: 892915 */
+ "Black and White - Halftone"
};
switch (job.scan_mode)
@@ -1060,6 +1095,24 @@ public class Scanner
set_int_option (handle, option, index, job.page_height / 10, null);
}
}
+ option = get_option_by_name (handle, Sane.NAME_BRIGHTNESS, out index);
+ if (option != null)
+ {
+ if (job.brightness != 0)
+ {
+ var brightness = scale_int (-100, 100, option, job.brightness);
+ set_int_option (handle, option, index, brightness, null);
+ }
+ }
+ option = get_option_by_name (handle, Sane.NAME_CONTRAST, out index);
+ if (option != null)
+ {
+ if (job.contrast != 0)
+ {
+ var contrast = scale_int (-100, 100, option, job.contrast);
+ set_int_option (handle, option, index, contrast, null);
+ }
+ }
/* Test scanner options (hoping will not effect other scanners...) */
if (current_device == "test")
@@ -1428,7 +1481,7 @@ public class Scanner
{
try
{
- thread = Thread.create<void*> (scan_thread, true);
+ thread = new Thread<void*>.try ("scan-thread", scan_thread);
}
catch (Error e)
{
@@ -1488,9 +1541,10 @@ public class Scanner
public void scan (string? device, ScanOptions options)
{
- debug ("Scanner.scan (\"%s\", dpi=%d, scan_mode=%s, depth=%d, type=%s, paper_width=%d, paper_height=%d)",
+ debug ("Scanner.scan (\"%s\", dpi=%d, scan_mode=%s, depth=%d, type=%s, paper_width=%d, paper_height=%d, brightness=%d, contrast=%d)",
device != null ? device : "(null)", options.dpi, get_scan_mode_string (options.scan_mode), options.depth,
- get_scan_type_string (options.type), options.paper_width, options.paper_height);
+ get_scan_type_string (options.type), options.paper_width, options.paper_height,
+ options.brightness, options.contrast);
var request = new RequestStartScan ();
request.job = new ScanJob ();
request.job.id = job_id++;
@@ -1501,6 +1555,8 @@ public class Scanner
request.job.type = options.type;
request.job.page_width = options.paper_width;
request.job.page_height = options.paper_height;
+ request.job.brightness = options.brightness;
+ request.job.contrast = options.contrast;
request_queue.push (request);
}
@@ -1517,8 +1573,11 @@ public class Scanner
request_queue.push (new RequestQuit ());
if (thread != null)
+ {
thread.join ();
-
+ thread = null;
+ }
+
Sane.exit ();
debug ("sane_exit ()");
}
diff --git a/src/simple-scan.c b/src/simple-scan.c
index ee347c7..b75f90d 100644
--- a/src/simple-scan.c
+++ b/src/simple-scan.c
@@ -1,4 +1,4 @@
-/* simple-scan.c generated by valac 0.18.1, the Vala compiler
+/* simple-scan.c generated by valac 0.20.1, the Vala compiler
* generated from simple-scan.vala, do not modify */
/*
@@ -28,7 +28,6 @@
#include <glib/gstdio.h>
#include <unistd.h>
#include <locale.h>
-#include "config.h"
#define TYPE_SIMPLE_SCAN (simple_scan_get_type ())
@@ -226,6 +225,8 @@ struct _ScanOptions {
ScanType type;
gint paper_width;
gint paper_height;
+ gint brightness;
+ gint contrast;
};
struct _ScanOptionsClass {
@@ -296,8 +297,8 @@ static void simple_scan_scan_cb (SimpleScan* self, UserInterface* ui, const gcha
static void _simple_scan_scan_cb_user_interface_start_scan (UserInterface* _sender, const gchar* device, ScanOptions* options, gpointer self);
static void simple_scan_cancel_cb (SimpleScan* self, UserInterface* ui);
static void _simple_scan_cancel_cb_user_interface_stop_scan (UserInterface* _sender, gpointer self);
-static void simple_scan_email_cb (SimpleScan* self, UserInterface* ui, const gchar* profile);
-static void _simple_scan_email_cb_user_interface_email (UserInterface* _sender, const gchar* profile, gpointer self);
+static void simple_scan_email_cb (SimpleScan* self, UserInterface* ui, const gchar* profile, gint quality);
+static void _simple_scan_email_cb_user_interface_email (UserInterface* _sender, const gchar* profile, gint quality, gpointer self);
Scanner* scanner_get_instance (void);
static void simple_scan_update_scan_devices_cb (SimpleScan* self, Scanner* scanner, GList* devices);
static void _simple_scan_update_scan_devices_cb_scanner_update_devices (Scanner* _sender, GList* devices, gpointer self);
@@ -386,9 +387,9 @@ void scanner_scan (Scanner* self, const gchar* device, ScanOptions* options);
void scanner_cancel (Scanner* self);
static gchar* simple_scan_get_temporary_filename (SimpleScan* self, const gchar* prefix, const gchar* extension);
void user_interface_show_progress_dialog (UserInterface* self);
-void book_save (Book* self, const gchar* type, GFile* file, GError** error);
+void book_save (Book* self, const gchar* type, gint quality, GFile* file, GError** error);
void user_interface_hide_progress_dialog (UserInterface* self);
-void page_save (Page* self, const gchar* type, GFile* file, GError** error);
+void page_save (Page* self, const gchar* type, gint quality, GFile* file, GError** error);
static void simple_scan_log_cb (const gchar* log_domain, GLogLevelFlags log_level, const gchar* message);
void scanner_redetect (Scanner* self);
static void simple_scan_fix_pdf (const gchar* filename, GError** error);
@@ -403,7 +404,9 @@ static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify
const GOptionEntry SIMPLE_SCAN_options[4] = {{"version", 'v', 0, G_OPTION_ARG_NONE, &simple_scan_show_version, "Show release version", NULL}, {"debug", 'd', 0, G_OPTION_ARG_NONE, &simple_scan_debug_enabled, "Print debugging messages", NULL}, {"fix-pdf", (gchar) 0, 0, G_OPTION_ARG_STRING, &simple_scan_fix_pdf_filename, "Fix PDF files generated with older versions of Simple Scan", "FILENAME..."}, {NULL}};
static gpointer _scan_device_ref0 (gpointer self) {
+#line 41 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return self ? scan_device_ref (self) : NULL;
+#line 410 "simple-scan.c"
}
@@ -411,93 +414,133 @@ SimpleScan* simple_scan_construct (GType object_type, ScanDevice* device) {
SimpleScan * self = NULL;
ScanDevice* _tmp0_;
ScanDevice* _tmp1_;
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
self = (SimpleScan*) g_object_new (object_type, NULL);
+#line 41 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp0_ = device;
+#line 41 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp1_ = _scan_device_ref0 (_tmp0_);
+#line 41 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_scan_device_unref0 (self->priv->default_device);
+#line 41 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
self->priv->default_device = _tmp1_;
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return self;
+#line 430 "simple-scan.c"
}
SimpleScan* simple_scan_new (ScanDevice* device) {
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return simple_scan_construct (TYPE_SIMPLE_SCAN, device);
+#line 437 "simple-scan.c"
}
static void _simple_scan_scan_cb_user_interface_start_scan (UserInterface* _sender, const gchar* device, ScanOptions* options, gpointer self) {
+#line 50 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
simple_scan_scan_cb (self, _sender, device, options);
+#line 444 "simple-scan.c"
}
static void _simple_scan_cancel_cb_user_interface_stop_scan (UserInterface* _sender, gpointer self) {
+#line 51 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
simple_scan_cancel_cb (self, _sender);
+#line 451 "simple-scan.c"
}
-static void _simple_scan_email_cb_user_interface_email (UserInterface* _sender, const gchar* profile, gpointer self) {
- simple_scan_email_cb (self, _sender, profile);
+static void _simple_scan_email_cb_user_interface_email (UserInterface* _sender, const gchar* profile, gint quality, gpointer self) {
+#line 52 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ simple_scan_email_cb (self, _sender, profile, quality);
+#line 458 "simple-scan.c"
}
static void _simple_scan_update_scan_devices_cb_scanner_update_devices (Scanner* _sender, GList* devices, gpointer self) {
+#line 55 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
simple_scan_update_scan_devices_cb (self, _sender, devices);
+#line 465 "simple-scan.c"
}
static void _simple_scan_authorize_cb_scanner_request_authorization (Scanner* _sender, const gchar* resource, gpointer self) {
+#line 56 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
simple_scan_authorize_cb (self, _sender, resource);
+#line 472 "simple-scan.c"
}
static void _simple_scan_scanner_new_page_cb_scanner_expect_page (Scanner* _sender, gpointer self) {
+#line 57 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
simple_scan_scanner_new_page_cb (self, _sender);
+#line 479 "simple-scan.c"
}
static void _simple_scan_scanner_page_info_cb_scanner_got_page_info (Scanner* _sender, ScanPageInfo* info, gpointer self) {
+#line 58 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
simple_scan_scanner_page_info_cb (self, _sender, info);
+#line 486 "simple-scan.c"
}
static void _simple_scan_scanner_line_cb_scanner_got_line (Scanner* _sender, ScanLine* line, gpointer self) {
+#line 59 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
simple_scan_scanner_line_cb (self, _sender, line);
+#line 493 "simple-scan.c"
}
static void _simple_scan_scanner_page_done_cb_scanner_page_done (Scanner* _sender, gpointer self) {
+#line 60 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
simple_scan_scanner_page_done_cb (self, _sender);
+#line 500 "simple-scan.c"
}
static void _simple_scan_scanner_document_done_cb_scanner_document_done (Scanner* _sender, gpointer self) {
+#line 61 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
simple_scan_scanner_document_done_cb (self, _sender);
+#line 507 "simple-scan.c"
}
static void _simple_scan_scanner_failed_cb_scanner_scan_failed (Scanner* _sender, gint error_code, const gchar* error_string, gpointer self) {
+#line 62 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
simple_scan_scanner_failed_cb (self, _sender, error_code, error_string);
+#line 514 "simple-scan.c"
}
static void _simple_scan_scanner_scanning_changed_cb_scanner_scanning_changed (Scanner* _sender, gpointer self) {
+#line 63 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
simple_scan_scanner_scanning_changed_cb (self, _sender);
+#line 521 "simple-scan.c"
}
static void _simple_scan_on_uevent_g_udev_client_uevent (GUdevClient* _sender, const gchar* action, GUdevDevice* device, gpointer self) {
+#line 67 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
simple_scan_on_uevent (self, _sender, action, device);
+#line 528 "simple-scan.c"
}
static void _scan_device_unref0_ (gpointer var) {
+#line 69 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
(var == NULL) ? NULL : (var = (scan_device_unref (var), NULL));
+#line 535 "simple-scan.c"
}
static void _g_list_free__scan_device_unref0_ (GList* self) {
+#line 69 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_list_foreach (self, (GFunc) _scan_device_unref0_, NULL);
+#line 69 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_list_free (self);
+#line 544 "simple-scan.c"
}
@@ -529,58 +572,111 @@ static void simple_scan_real_startup (GApplication* base) {
GUdevClient* _tmp19_;
GUdevClient* _tmp20_;
ScanDevice* _tmp21_;
+#line 44 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
self = (SimpleScan*) base;
+#line 46 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
G_APPLICATION_CLASS (simple_scan_parent_class)->startup ((GApplication*) G_TYPE_CHECK_INSTANCE_CAST (self, GTK_TYPE_APPLICATION, GtkApplication));
+#line 48 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp0_ = user_interface_new ();
+#line 48 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_user_interface_unref0 (self->priv->ui);
+#line 48 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
self->priv->ui = _tmp0_;
+#line 49 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp1_ = self->priv->ui;
+#line 49 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp2_ = user_interface_get_book (_tmp1_);
+#line 49 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_book_unref0 (self->priv->book);
+#line 49 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
self->priv->book = _tmp2_;
+#line 50 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp3_ = self->priv->ui;
+#line 50 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_signal_connect_object (_tmp3_, "start-scan", (GCallback) _simple_scan_scan_cb_user_interface_start_scan, self, 0);
+#line 51 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp4_ = self->priv->ui;
+#line 51 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_signal_connect_object (_tmp4_, "stop-scan", (GCallback) _simple_scan_cancel_cb_user_interface_stop_scan, self, 0);
+#line 52 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp5_ = self->priv->ui;
+#line 52 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_signal_connect_object (_tmp5_, "email", (GCallback) _simple_scan_email_cb_user_interface_email, self, 0);
+#line 54 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp6_ = scanner_get_instance ();
+#line 54 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_scanner_unref0 (self->priv->scanner);
+#line 54 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
self->priv->scanner = _tmp6_;
+#line 55 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp7_ = self->priv->scanner;
+#line 55 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_signal_connect_object (_tmp7_, "update-devices", (GCallback) _simple_scan_update_scan_devices_cb_scanner_update_devices, self, 0);
+#line 56 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp8_ = self->priv->scanner;
+#line 56 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_signal_connect_object (_tmp8_, "request-authorization", (GCallback) _simple_scan_authorize_cb_scanner_request_authorization, self, 0);
+#line 57 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp9_ = self->priv->scanner;
+#line 57 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_signal_connect_object (_tmp9_, "expect-page", (GCallback) _simple_scan_scanner_new_page_cb_scanner_expect_page, self, 0);
+#line 58 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp10_ = self->priv->scanner;
+#line 58 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_signal_connect_object (_tmp10_, "got-page-info", (GCallback) _simple_scan_scanner_page_info_cb_scanner_got_page_info, self, 0);
+#line 59 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp11_ = self->priv->scanner;
+#line 59 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_signal_connect_object (_tmp11_, "got-line", (GCallback) _simple_scan_scanner_line_cb_scanner_got_line, self, 0);
+#line 60 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp12_ = self->priv->scanner;
+#line 60 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_signal_connect_object (_tmp12_, "page-done", (GCallback) _simple_scan_scanner_page_done_cb_scanner_page_done, self, 0);
+#line 61 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp13_ = self->priv->scanner;
+#line 61 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_signal_connect_object (_tmp13_, "document-done", (GCallback) _simple_scan_scanner_document_done_cb_scanner_document_done, self, 0);
+#line 62 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp14_ = self->priv->scanner;
+#line 62 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_signal_connect_object (_tmp14_, "scan-failed", (GCallback) _simple_scan_scanner_failed_cb_scanner_scan_failed, self, 0);
+#line 63 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp15_ = self->priv->scanner;
+#line 63 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_signal_connect_object (_tmp15_, "scanning-changed", (GCallback) _simple_scan_scanner_scanning_changed_cb_scanner_scanning_changed, self, 0);
+#line 65 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp16_ = g_strdup ("usb");
+#line 65 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp17_ = g_new0 (gchar*, 2 + 1);
+#line 65 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp17_[0] = _tmp16_;
+#line 65 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp17_[1] = NULL;
+#line 65 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
subsystems = _tmp17_;
+#line 65 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
subsystems_length1 = 2;
+#line 65 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_subsystems_size_ = subsystems_length1;
+#line 66 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp18_ = subsystems;
+#line 66 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp18__length1 = subsystems_length1;
+#line 66 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp19_ = g_udev_client_new (_tmp18_);
+#line 66 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (self->priv->udev_client);
+#line 66 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
self->priv->udev_client = _tmp19_;
+#line 67 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp20_ = self->priv->udev_client;
+#line 67 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_signal_connect_object (_tmp20_, "uevent", (GCallback) _simple_scan_on_uevent_g_udev_client_uevent, self, 0);
+#line 69 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp21_ = self->priv->default_device;
+#line 69 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_tmp21_ != NULL) {
+#line 680 "simple-scan.c"
GList* device_list;
ScanDevice* _tmp22_;
ScanDevice* _tmp23_;
@@ -589,20 +685,35 @@ static void simple_scan_real_startup (GApplication* base) {
UserInterface* _tmp26_;
ScanDevice* _tmp27_;
const gchar* _tmp28_;
+#line 71 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
device_list = NULL;
+#line 73 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp22_ = self->priv->default_device;
+#line 73 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp23_ = _scan_device_ref0 (_tmp22_);
+#line 73 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
device_list = g_list_append (device_list, _tmp23_);
+#line 74 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp24_ = self->priv->ui;
+#line 74 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp25_ = device_list;
+#line 74 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
user_interface_set_scan_devices (_tmp24_, _tmp25_);
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp26_ = self->priv->ui;
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp27_ = self->priv->default_device;
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp28_ = _tmp27_->name;
+#line 75 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
user_interface_set_selected_device (_tmp26_, _tmp28_);
+#line 69 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
__g_list_free__scan_device_unref0_0 (device_list);
+#line 713 "simple-scan.c"
}
+#line 44 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
subsystems = (_vala_array_free (subsystems, subsystems_length1, (GDestroyNotify) g_free), NULL);
+#line 717 "simple-scan.c"
}
@@ -610,28 +721,46 @@ static void simple_scan_real_activate (GApplication* base) {
SimpleScan * self;
UserInterface* _tmp0_;
Scanner* _tmp1_;
+#line 79 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
self = (SimpleScan*) base;
+#line 81 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
G_APPLICATION_CLASS (simple_scan_parent_class)->activate ((GApplication*) G_TYPE_CHECK_INSTANCE_CAST (self, GTK_TYPE_APPLICATION, GtkApplication));
+#line 82 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp0_ = self->priv->ui;
+#line 82 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
user_interface_start (_tmp0_);
+#line 83 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp1_ = self->priv->scanner;
+#line 83 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
scanner_start (_tmp1_);
+#line 737 "simple-scan.c"
}
static void simple_scan_real_shutdown (GApplication* base) {
SimpleScan * self;
Scanner* _tmp0_;
+#line 86 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
self = (SimpleScan*) base;
+#line 88 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
G_APPLICATION_CLASS (simple_scan_parent_class)->shutdown ((GApplication*) G_TYPE_CHECK_INSTANCE_CAST (self, GTK_TYPE_APPLICATION, GtkApplication));
+#line 89 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_book_unref0 (self->priv->book);
+#line 89 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
self->priv->book = NULL;
+#line 90 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_user_interface_unref0 (self->priv->ui);
+#line 90 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
self->priv->ui = NULL;
+#line 91 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (self->priv->udev_client);
+#line 91 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
self->priv->udev_client = NULL;
+#line 92 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp0_ = self->priv->scanner;
+#line 92 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
scanner_free (_tmp0_);
+#line 764 "simple-scan.c"
}
@@ -644,55 +773,93 @@ static void simple_scan_update_scan_devices_cb (SimpleScan* self, Scanner* scann
guint _tmp11_ = 0U;
UserInterface* _tmp12_;
GList* _tmp13_;
+#line 95 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (self != NULL);
+#line 95 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (scanner != NULL);
+#line 97 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp0_ = devices;
+#line 97 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp1_ = g_list_copy (_tmp0_);
+#line 97 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
devices_copy = _tmp1_;
+#line 100 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp2_ = self->priv->default_device;
+#line 100 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_tmp2_ != NULL) {
+#line 791 "simple-scan.c"
gboolean default_in_list;
GList* _tmp3_;
gboolean _tmp8_;
+#line 102 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
default_in_list = FALSE;
+#line 103 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp3_ = devices_copy;
+#line 799 "simple-scan.c"
{
GList* device_collection = NULL;
GList* device_it = NULL;
+#line 103 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
device_collection = _tmp3_;
+#line 103 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
for (device_it = device_collection; device_it != NULL; device_it = device_it->next) {
+#line 807 "simple-scan.c"
ScanDevice* device = NULL;
+#line 103 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
device = (ScanDevice*) device_it->data;
+#line 811 "simple-scan.c"
{
ScanDevice* _tmp4_;
const gchar* _tmp5_;
ScanDevice* _tmp6_;
const gchar* _tmp7_;
+#line 105 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp4_ = device;
+#line 105 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp5_ = _tmp4_->name;
+#line 105 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp6_ = self->priv->default_device;
+#line 105 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp7_ = _tmp6_->name;
+#line 105 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (g_strcmp0 (_tmp5_, _tmp7_) == 0) {
+#line 107 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
default_in_list = TRUE;
+#line 108 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
break;
+#line 831 "simple-scan.c"
}
}
}
}
+#line 112 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp8_ = default_in_list;
+#line 112 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (!_tmp8_) {
+#line 840 "simple-scan.c"
ScanDevice* _tmp9_;
+#line 113 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp9_ = self->priv->default_device;
+#line 113 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
devices_copy = g_list_prepend (devices_copy, _tmp9_);
+#line 846 "simple-scan.c"
}
}
+#line 116 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp10_ = devices_copy;
+#line 116 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp11_ = g_list_length (_tmp10_);
+#line 116 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
self->priv->have_devices = _tmp11_ > ((guint) 0);
+#line 117 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp12_ = self->priv->ui;
+#line 117 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp13_ = devices_copy;
+#line 117 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
user_interface_set_scan_devices (_tmp12_, _tmp13_);
+#line 95 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_list_free0 (devices_copy);
+#line 863 "simple-scan.c"
}
@@ -704,20 +871,35 @@ static void simple_scan_authorize_cb (SimpleScan* self, Scanner* scanner, const
gchar* _tmp2_ = NULL;
gchar* _tmp3_ = NULL;
Scanner* _tmp4_;
+#line 120 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (self != NULL);
+#line 120 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (scanner != NULL);
+#line 120 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (resource != NULL);
+#line 123 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp0_ = self->priv->ui;
+#line 123 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp1_ = resource;
+#line 123 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
user_interface_authorize (_tmp0_, _tmp1_, &_tmp2_, &_tmp3_);
+#line 123 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (username);
+#line 123 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
username = _tmp2_;
+#line 123 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (password);
+#line 123 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
password = _tmp3_;
+#line 124 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp4_ = scanner;
+#line 124 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
scanner_authorize (_tmp4_, username, password);
+#line 120 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (password);
+#line 120 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (username);
+#line 903 "simple-scan.c"
}
@@ -750,45 +932,82 @@ static Page* simple_scan_append_page (SimpleScan* self) {
UserInterface* _tmp45_;
Page* _tmp46_;
Page* _tmp47_;
+#line 127 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_val_if_fail (self != NULL, NULL);
+#line 130 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp0_ = self->priv->book;
+#line 130 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp1_ = book_get_page (_tmp0_, -1);
+#line 130 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
page = _tmp1_;
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp3_ = page;
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_tmp3_ != NULL) {
+#line 948 "simple-scan.c"
Page* _tmp4_;
gboolean _tmp5_ = FALSE;
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp4_ = page;
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp5_ = page_has_data (_tmp4_);
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp2_ = !_tmp5_;
+#line 957 "simple-scan.c"
} else {
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp2_ = FALSE;
+#line 961 "simple-scan.c"
}
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp6_ = _tmp2_;
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_tmp6_) {
+#line 967 "simple-scan.c"
UserInterface* _tmp7_;
Page* _tmp8_;
Page* _tmp9_;
+#line 133 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp7_ = self->priv->ui;
+#line 133 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp8_ = page;
+#line 133 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
user_interface_set_selected_page (_tmp7_, _tmp8_);
+#line 134 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp9_ = page;
+#line 134 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
page_start (_tmp9_);
+#line 135 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
result = page;
+#line 135 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return result;
+#line 985 "simple-scan.c"
}
+#line 139 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
scan_direction = SCAN_DIRECTION_TOP_TO_BOTTOM;
+#line 140 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
do_crop = FALSE;
+#line 141 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
named_crop = NULL;
+#line 142 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
width = 100;
+#line 142 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
height = 100;
+#line 142 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
dpi = 100;
+#line 142 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
cx = 0;
+#line 142 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
cy = 0;
+#line 142 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
cw = 0;
+#line 142 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
ch = 0;
+#line 143 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp10_ = page;
+#line 143 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_tmp10_ != NULL) {
+#line 1011 "simple-scan.c"
Page* _tmp11_;
ScanDirection _tmp12_ = 0;
Page* _tmp13_;
@@ -800,23 +1019,41 @@ static Page* simple_scan_append_page (SimpleScan* self) {
Page* _tmp19_;
gboolean _tmp20_ = FALSE;
gboolean _tmp21_;
+#line 145 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp11_ = page;
+#line 145 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp12_ = page_get_scan_direction (_tmp11_);
+#line 145 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
scan_direction = _tmp12_;
+#line 146 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp13_ = page;
+#line 146 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp14_ = page_get_width (_tmp13_);
+#line 146 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
width = _tmp14_;
+#line 147 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp15_ = page;
+#line 147 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp16_ = page_get_height (_tmp15_);
+#line 147 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
height = _tmp16_;
+#line 148 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp17_ = page;
+#line 148 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp18_ = page_get_dpi (_tmp17_);
+#line 148 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
dpi = _tmp18_;
+#line 150 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp19_ = page;
+#line 150 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp20_ = page_has_crop (_tmp19_);
+#line 150 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
do_crop = _tmp20_;
+#line 151 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp21_ = do_crop;
+#line 151 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_tmp21_) {
+#line 1057 "simple-scan.c"
Page* _tmp22_;
gchar* _tmp23_ = NULL;
Page* _tmp24_;
@@ -824,72 +1061,126 @@ static Page* simple_scan_append_page (SimpleScan* self) {
gint _tmp26_ = 0;
gint _tmp27_ = 0;
gint _tmp28_ = 0;
+#line 153 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp22_ = page;
+#line 153 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp23_ = page_get_named_crop (_tmp22_);
+#line 153 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (named_crop);
+#line 153 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
named_crop = _tmp23_;
+#line 154 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp24_ = page;
+#line 154 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
page_get_crop (_tmp24_, &_tmp25_, &_tmp26_, &_tmp27_, &_tmp28_);
+#line 154 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
cx = _tmp25_;
+#line 154 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
cy = _tmp26_;
+#line 154 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
cw = _tmp27_;
+#line 154 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
ch = _tmp28_;
+#line 1085 "simple-scan.c"
}
}
+#line 158 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp29_ = self->priv->book;
+#line 158 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp30_ = width;
+#line 158 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp31_ = height;
+#line 158 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp32_ = dpi;
+#line 158 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp33_ = scan_direction;
+#line 158 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp34_ = book_append_page (_tmp29_, _tmp30_, _tmp31_, _tmp32_, _tmp33_);
+#line 158 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_page_unref0 (page);
+#line 158 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
page = _tmp34_;
+#line 159 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp35_ = do_crop;
+#line 159 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_tmp35_) {
+#line 1108 "simple-scan.c"
const gchar* _tmp36_;
Page* _tmp42_;
gint _tmp43_;
gint _tmp44_;
+#line 161 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp36_ = named_crop;
+#line 161 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_tmp36_ != NULL) {
+#line 1117 "simple-scan.c"
Page* _tmp37_;
const gchar* _tmp38_;
+#line 163 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp37_ = page;
+#line 163 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp38_ = named_crop;
+#line 163 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
page_set_named_crop (_tmp37_, _tmp38_);
+#line 1126 "simple-scan.c"
} else {
Page* _tmp39_;
gint _tmp40_;
gint _tmp41_;
+#line 166 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp39_ = page;
+#line 166 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp40_ = cw;
+#line 166 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp41_ = ch;
+#line 166 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
page_set_custom_crop (_tmp39_, _tmp40_, _tmp41_);
+#line 1139 "simple-scan.c"
}
+#line 167 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp42_ = page;
+#line 167 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp43_ = cx;
+#line 167 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp44_ = cy;
+#line 167 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
page_move_crop (_tmp42_, _tmp43_, _tmp44_);
+#line 1149 "simple-scan.c"
}
+#line 169 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp45_ = self->priv->ui;
+#line 169 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp46_ = page;
+#line 169 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
user_interface_set_selected_page (_tmp45_, _tmp46_);
+#line 170 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp47_ = page;
+#line 170 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
page_start (_tmp47_);
+#line 172 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
result = page;
+#line 172 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (named_crop);
+#line 172 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return result;
+#line 1167 "simple-scan.c"
}
static void simple_scan_scanner_new_page_cb (SimpleScan* self, Scanner* scanner) {
Page* _tmp0_ = NULL;
Page* _tmp1_;
+#line 175 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (self != NULL);
+#line 175 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (scanner != NULL);
+#line 177 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp0_ = simple_scan_append_page (self);
+#line 177 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp1_ = _tmp0_;
+#line 177 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_page_unref0 (_tmp1_);
+#line 1184 "simple-scan.c"
}
@@ -918,212 +1209,371 @@ static gchar* simple_scan_get_profile_for_device (SimpleScan* self, const gchar*
const gchar* _tmp36_;
gchar* _tmp37_;
GError * _inner_error_ = NULL;
+#line 180 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_val_if_fail (self != NULL, NULL);
+#line 180 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_val_if_fail (device_name != NULL, NULL);
+#line 183 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp0_ = device_name;
+#line 183 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp1_ = g_strdup_printf ("sane:%s", _tmp0_);
+#line 183 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
device_id = _tmp1_;
+#line 184 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp2_ = device_name;
+#line 184 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_debug ("simple-scan.vala:184: Getting color profile for device %s", _tmp2_);
+#line 186 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp3_ = cd_client_new ();
+#line 186 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
client = _tmp3_;
+#line 1231 "simple-scan.c"
{
CdClient* _tmp4_;
+#line 189 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp4_ = client;
+#line 189 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
cd_client_connect_sync (_tmp4_, NULL, &_inner_error_);
+#line 189 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_inner_error_ != NULL) {
- goto __catch3_g_error;
+#line 1240 "simple-scan.c"
+ goto __catch4_g_error;
}
}
- goto __finally3;
- __catch3_g_error:
+ goto __finally4;
+ __catch4_g_error:
{
GError* e = NULL;
GError* _tmp5_;
const gchar* _tmp6_;
+#line 187 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
e = _inner_error_;
+#line 187 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_inner_error_ = NULL;
+#line 193 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp5_ = e;
+#line 193 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp6_ = _tmp5_->message;
+#line 193 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_debug ("simple-scan.vala:193: Failed to connect to colord: %s", _tmp6_);
+#line 194 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
result = NULL;
+#line 194 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_error_free0 (e);
+#line 194 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (client);
+#line 194 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (device_id);
+#line 194 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return result;
+#line 1270 "simple-scan.c"
}
- __finally3:
+ __finally4:
+#line 187 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_inner_error_ != NULL) {
+#line 187 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (client);
+#line 187 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (device_id);
+#line 187 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 187 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_clear_error (&_inner_error_);
+#line 187 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return NULL;
+#line 1285 "simple-scan.c"
}
{
CdClient* _tmp7_;
const gchar* _tmp8_;
CdDevice* _tmp9_ = NULL;
CdDevice* _tmp10_;
+#line 200 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp7_ = client;
+#line 200 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp8_ = device_id;
+#line 200 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp9_ = cd_client_find_device_by_property_sync (_tmp7_, CD_DEVICE_PROPERTY_SERIAL, _tmp8_, NULL, &_inner_error_);
+#line 200 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp10_ = _tmp9_;
+#line 200 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_inner_error_ != NULL) {
- goto __catch4_g_error;
+#line 1302 "simple-scan.c"
+ goto __catch5_g_error;
}
+#line 200 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (device);
+#line 200 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
device = _tmp10_;
+#line 1309 "simple-scan.c"
}
- goto __finally4;
- __catch4_g_error:
+ goto __finally5;
+ __catch5_g_error:
{
GError* e = NULL;
const gchar* _tmp11_;
GError* _tmp12_;
const gchar* _tmp13_;
+#line 198 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
e = _inner_error_;
+#line 198 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_inner_error_ = NULL;
+#line 204 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp11_ = device_name;
+#line 204 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp12_ = e;
+#line 204 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp13_ = _tmp12_->message;
+#line 204 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_debug ("simple-scan.vala:204: Unable to find colord device %s: %s", _tmp11_, _tmp13_);
+#line 205 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
result = NULL;
+#line 205 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_error_free0 (e);
+#line 205 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (device);
+#line 205 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (client);
+#line 205 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (device_id);
+#line 205 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return result;
+#line 1342 "simple-scan.c"
}
- __finally4:
+ __finally5:
+#line 198 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_inner_error_ != NULL) {
+#line 198 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (device);
+#line 198 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (client);
+#line 198 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (device_id);
+#line 198 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 198 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_clear_error (&_inner_error_);
+#line 198 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return NULL;
+#line 1359 "simple-scan.c"
}
{
CdDevice* _tmp14_;
+#line 210 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp14_ = device;
+#line 210 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
cd_device_connect_sync (_tmp14_, NULL, &_inner_error_);
+#line 210 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_inner_error_ != NULL) {
- goto __catch5_g_error;
+#line 1369 "simple-scan.c"
+ goto __catch6_g_error;
}
}
- goto __finally5;
- __catch5_g_error:
+ goto __finally6;
+ __catch6_g_error:
{
GError* e = NULL;
const gchar* _tmp15_;
GError* _tmp16_;
const gchar* _tmp17_;
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
e = _inner_error_;
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_inner_error_ = NULL;
+#line 214 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp15_ = device_name;
+#line 214 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp16_ = e;
+#line 214 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp17_ = _tmp16_->message;
+#line 214 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_debug ("simple-scan.vala:214: Failed to get properties from the device %s: %s", _tmp15_, _tmp17_);
+#line 215 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
result = NULL;
+#line 215 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_error_free0 (e);
+#line 215 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (device);
+#line 215 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (client);
+#line 215 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (device_id);
+#line 215 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return result;
+#line 1404 "simple-scan.c"
}
- __finally5:
+ __finally6:
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_inner_error_ != NULL) {
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (device);
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (client);
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (device_id);
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_clear_error (&_inner_error_);
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return NULL;
+#line 1421 "simple-scan.c"
}
+#line 218 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp18_ = device;
+#line 218 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp19_ = cd_device_get_default_profile (_tmp18_);
+#line 218 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
profile = _tmp19_;
+#line 219 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp20_ = profile;
+#line 219 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_tmp20_ == NULL) {
+#line 1433 "simple-scan.c"
const gchar* _tmp21_;
+#line 221 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp21_ = device_name;
+#line 221 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_debug ("simple-scan.vala:221: No default color profile for device: %s", _tmp21_);
+#line 222 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
result = NULL;
+#line 222 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (profile);
+#line 222 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (device);
+#line 222 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (client);
+#line 222 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (device_id);
+#line 222 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return result;
+#line 1451 "simple-scan.c"
}
{
CdProfile* _tmp22_;
+#line 227 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp22_ = profile;
+#line 227 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
cd_profile_connect_sync (_tmp22_, NULL, &_inner_error_);
+#line 227 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_inner_error_ != NULL) {
- goto __catch6_g_error;
+#line 1461 "simple-scan.c"
+ goto __catch7_g_error;
}
}
- goto __finally6;
- __catch6_g_error:
+ goto __finally7;
+ __catch7_g_error:
{
GError* e = NULL;
const gchar* _tmp23_;
GError* _tmp24_;
const gchar* _tmp25_;
+#line 225 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
e = _inner_error_;
+#line 225 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_inner_error_ = NULL;
+#line 231 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp23_ = device_name;
+#line 231 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp24_ = e;
+#line 231 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp25_ = _tmp24_->message;
+#line 231 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_debug ("simple-scan.vala:231: Failed to get properties from the profile %s: %s", _tmp23_, _tmp25_);
+#line 232 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
result = NULL;
+#line 232 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_error_free0 (e);
+#line 232 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (profile);
+#line 232 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (device);
+#line 232 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (client);
+#line 232 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (device_id);
+#line 232 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return result;
+#line 1498 "simple-scan.c"
}
- __finally6:
+ __finally7:
+#line 225 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_inner_error_ != NULL) {
+#line 225 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (profile);
+#line 225 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (device);
+#line 225 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (client);
+#line 225 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (device_id);
+#line 225 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 225 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_clear_error (&_inner_error_);
+#line 225 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return NULL;
+#line 1517 "simple-scan.c"
}
+#line 235 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp26_ = profile;
+#line 235 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp27_ = cd_profile_get_filename (_tmp26_);
+#line 235 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp28_ = _tmp27_;
+#line 235 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_tmp28_ == NULL) {
+#line 1527 "simple-scan.c"
const gchar* _tmp29_;
+#line 237 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp29_ = device_name;
+#line 237 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_debug ("simple-scan.vala:237: No icc color profile for the device %s", _tmp29_);
+#line 238 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
result = NULL;
+#line 238 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (profile);
+#line 238 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (device);
+#line 238 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (client);
+#line 238 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (device_id);
+#line 238 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return result;
+#line 1545 "simple-scan.c"
}
+#line 241 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp30_ = profile;
+#line 241 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp31_ = cd_profile_get_filename (_tmp30_);
+#line 241 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp32_ = _tmp31_;
+#line 241 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp33_ = device_name;
+#line 241 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_debug ("simple-scan.vala:241: Using color profile %s for device %s", _tmp32_, _tmp33_);
+#line 242 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp34_ = profile;
+#line 242 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp35_ = cd_profile_get_filename (_tmp34_);
+#line 242 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp36_ = _tmp35_;
+#line 242 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp37_ = g_strdup (_tmp36_);
+#line 242 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
result = _tmp37_;
+#line 242 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (profile);
+#line 242 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (device);
+#line 242 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (client);
+#line 242 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (device_id);
+#line 242 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return result;
+#line 1577 "simple-scan.c"
}
@@ -1141,28 +1591,50 @@ static void simple_scan_scanner_page_info_cb (SimpleScan* self, Scanner* scanner
const gchar* _tmp9_;
gchar* _tmp10_ = NULL;
gchar* _tmp11_;
+#line 248 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (self != NULL);
+#line 248 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (scanner != NULL);
+#line 248 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (info != NULL);
+#line 250 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp0_ = info;
+#line 250 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp1_ = _tmp0_->width;
+#line 250 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp2_ = info;
+#line 250 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp3_ = _tmp2_->height;
+#line 250 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp4_ = info;
+#line 250 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp5_ = _tmp4_->depth;
+#line 250 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_debug ("simple-scan.vala:250: Page is %d pixels wide, %d pixels high, %d bits " \
"per pixel", _tmp1_, _tmp3_, _tmp5_);
+#line 254 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp6_ = simple_scan_append_page (self);
+#line 254 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
page = _tmp6_;
+#line 255 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp7_ = info;
+#line 255 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
page_set_page_info (page, _tmp7_);
+#line 260 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp8_ = info;
+#line 260 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp9_ = _tmp8_->device;
+#line 260 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp10_ = simple_scan_get_profile_for_device (self, _tmp9_);
+#line 260 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp11_ = _tmp10_;
+#line 260 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
page_set_color_profile (page, _tmp11_);
+#line 260 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (_tmp11_);
+#line 248 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_page_unref0 (page);
+#line 1637 "simple-scan.c"
}
@@ -1173,17 +1645,29 @@ static void simple_scan_scanner_line_cb (SimpleScan* self, Scanner* scanner, Sca
Page* _tmp3_ = NULL;
Page* page;
ScanLine* _tmp4_;
+#line 263 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (self != NULL);
+#line 263 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (scanner != NULL);
+#line 263 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (line != NULL);
+#line 265 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp0_ = self->priv->book;
+#line 265 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp1_ = self->priv->book;
+#line 265 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp2_ = book_get_n_pages (_tmp1_);
+#line 265 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp3_ = book_get_page (_tmp0_, ((gint) _tmp2_) - 1);
+#line 265 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
page = _tmp3_;
+#line 266 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp4_ = line;
+#line 266 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
page_parse_scan_line (page, _tmp4_);
+#line 263 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_page_unref0 (page);
+#line 1670 "simple-scan.c"
}
@@ -1193,15 +1677,25 @@ static void simple_scan_scanner_page_done_cb (SimpleScan* self, Scanner* scanner
guint _tmp2_ = 0U;
Page* _tmp3_ = NULL;
Page* page;
+#line 269 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (self != NULL);
+#line 269 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (scanner != NULL);
+#line 271 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp0_ = self->priv->book;
+#line 271 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp1_ = self->priv->book;
+#line 271 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp2_ = book_get_n_pages (_tmp1_);
+#line 271 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp3_ = book_get_page (_tmp0_, ((gint) _tmp2_) - 1);
+#line 271 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
page = _tmp3_;
+#line 272 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
page_finish (page);
+#line 269 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_page_unref0 (page);
+#line 1698 "simple-scan.c"
}
@@ -1213,53 +1707,89 @@ static void simple_scan_remove_empty_page (SimpleScan* self) {
Page* page;
Page* _tmp4_;
gboolean _tmp5_ = FALSE;
+#line 275 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (self != NULL);
+#line 277 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp0_ = self->priv->book;
+#line 277 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp1_ = self->priv->book;
+#line 277 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp2_ = book_get_n_pages (_tmp1_);
+#line 277 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp3_ = book_get_page (_tmp0_, ((gint) _tmp2_) - 1);
+#line 277 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
page = _tmp3_;
+#line 280 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp4_ = page;
+#line 280 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp5_ = page_has_data (_tmp4_);
+#line 280 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_tmp5_) {
+#line 1728 "simple-scan.c"
Page* _tmp6_;
+#line 281 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp6_ = page;
+#line 281 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
page_finish (_tmp6_);
+#line 1734 "simple-scan.c"
} else {
Book* _tmp7_;
Page* _tmp8_;
+#line 283 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp7_ = self->priv->book;
+#line 283 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp8_ = page;
+#line 283 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
book_delete_page (_tmp7_, _tmp8_);
+#line 1744 "simple-scan.c"
}
+#line 275 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_page_unref0 (page);
+#line 1748 "simple-scan.c"
}
static void simple_scan_scanner_document_done_cb (SimpleScan* self, Scanner* scanner) {
+#line 286 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (self != NULL);
+#line 286 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (scanner != NULL);
+#line 288 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
simple_scan_remove_empty_page (self);
+#line 1759 "simple-scan.c"
}
static void simple_scan_scanner_failed_cb (SimpleScan* self, Scanner* scanner, gint error_code, const gchar* error_string) {
gint _tmp0_;
+#line 291 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (self != NULL);
+#line 291 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (scanner != NULL);
+#line 291 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (error_string != NULL);
+#line 293 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
simple_scan_remove_empty_page (self);
+#line 294 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp0_ = error_code;
+#line 294 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_tmp0_ != ((gint) SANE_STATUS_CANCELLED)) {
+#line 1777 "simple-scan.c"
UserInterface* _tmp1_;
const gchar* _tmp2_ = NULL;
const gchar* _tmp3_;
gboolean _tmp4_;
+#line 296 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp1_ = self->priv->ui;
+#line 296 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp2_ = _ ("Failed to scan");
+#line 296 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp3_ = error_string;
+#line 296 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp4_ = self->priv->have_devices;
+#line 296 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
user_interface_show_error (_tmp1_, _tmp2_, _tmp3_, _tmp4_);
+#line 1792 "simple-scan.c"
}
}
@@ -1268,12 +1798,19 @@ static void simple_scan_scanner_scanning_changed_cb (SimpleScan* self, Scanner*
UserInterface* _tmp0_;
Scanner* _tmp1_;
gboolean _tmp2_ = FALSE;
+#line 303 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (self != NULL);
+#line 303 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (scanner != NULL);
+#line 305 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp0_ = self->priv->ui;
+#line 305 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp1_ = scanner;
+#line 305 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp2_ = scanner_is_scanning (_tmp1_);
+#line 305 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
user_interface_set_scanning (_tmp0_, _tmp2_);
+#line 1813 "simple-scan.c"
}
@@ -1297,60 +1834,109 @@ static void simple_scan_scan_cb (SimpleScan* self, UserInterface* ui, const gcha
Scanner* _tmp17_;
const gchar* _tmp18_;
ScanOptions* _tmp19_;
+#line 308 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (self != NULL);
+#line 308 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (ui != NULL);
+#line 308 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (options != NULL);
+#line 310 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp0_ = options;
+#line 310 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp1_ = _tmp0_->dpi;
+#line 310 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp2_ = device;
+#line 310 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_debug ("simple-scan.vala:310: Requesting scan at %d dpi from device '%s'", _tmp1_, _tmp2_);
+#line 312 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp3_ = self->priv->scanner;
+#line 312 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp4_ = scanner_is_scanning (_tmp3_);
+#line 312 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (!_tmp4_) {
+#line 1857 "simple-scan.c"
Page* _tmp5_ = NULL;
Page* _tmp6_;
+#line 313 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp5_ = simple_scan_append_page (self);
+#line 313 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp6_ = _tmp5_;
+#line 313 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_page_unref0 (_tmp6_);
+#line 1866 "simple-scan.c"
}
+#line 316 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp7_ = _ ("Scanned Document");
+#line 316 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp8_ = g_strdup (_tmp7_);
+#line 316 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
filename_prefix = _tmp8_;
+#line 318 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp9_ = options;
+#line 318 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp10_ = _tmp9_->scan_mode;
+#line 318 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_tmp10_ == SCAN_MODE_COLOR) {
+#line 1880 "simple-scan.c"
gchar* _tmp11_;
+#line 319 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp11_ = g_strdup ("jpg");
+#line 319 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (extension);
+#line 319 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
extension = _tmp11_;
+#line 1888 "simple-scan.c"
} else {
gchar* _tmp12_;
+#line 321 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp12_ = g_strdup ("pdf");
+#line 321 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (extension);
+#line 321 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
extension = _tmp12_;
+#line 1897 "simple-scan.c"
}
+#line 322 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp13_ = filename_prefix;
+#line 322 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp14_ = extension;
+#line 322 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp15_ = g_strdup_printf ("%s.%s", _tmp13_, _tmp14_);
+#line 322 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
filename = _tmp15_;
+#line 323 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp16_ = ui;
+#line 323 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
user_interface_set_default_file_name (_tmp16_, filename);
+#line 324 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp17_ = self->priv->scanner;
+#line 324 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp18_ = device;
+#line 324 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp19_ = options;
+#line 324 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
scanner_scan (_tmp17_, _tmp18_, _tmp19_);
+#line 308 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (filename);
+#line 308 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (extension);
+#line 308 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (filename_prefix);
+#line 1925 "simple-scan.c"
}
static void simple_scan_cancel_cb (SimpleScan* self, UserInterface* ui) {
Scanner* _tmp0_;
+#line 327 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (self != NULL);
+#line 327 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (ui != NULL);
+#line 329 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp0_ = self->priv->scanner;
+#line 329 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
scanner_cancel (_tmp0_);
+#line 1939 "simple-scan.c"
}
@@ -1362,289 +1948,490 @@ static gchar* simple_scan_get_temporary_filename (SimpleScan* self, const gchar*
gchar* filename;
gchar* path = NULL;
GError * _inner_error_ = NULL;
+#line 332 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_val_if_fail (self != NULL, NULL);
+#line 332 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_val_if_fail (prefix != NULL, NULL);
+#line 332 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_val_if_fail (extension != NULL, NULL);
+#line 337 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp0_ = prefix;
+#line 337 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp1_ = extension;
+#line 337 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp2_ = g_strdup_printf ("%sXXXXXX.%s", _tmp0_, _tmp1_);
+#line 337 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
filename = _tmp2_;
+#line 1965 "simple-scan.c"
{
const gchar* _tmp3_;
gchar* _tmp4_ = NULL;
gint _tmp5_ = 0;
gint fd;
gint _tmp6_;
+#line 341 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp3_ = filename;
+#line 341 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp5_ = g_file_open_tmp (_tmp3_, &_tmp4_, &_inner_error_);
+#line 341 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (path);
+#line 341 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
path = _tmp4_;
+#line 341 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
fd = _tmp5_;
+#line 341 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_inner_error_ != NULL) {
- goto __catch7_g_error;
+#line 1984 "simple-scan.c"
+ goto __catch8_g_error;
}
+#line 342 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp6_ = fd;
+#line 342 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
close (_tmp6_);
+#line 1991 "simple-scan.c"
}
- goto __finally7;
- __catch7_g_error:
+ goto __finally8;
+ __catch8_g_error:
{
GError* e = NULL;
GError* _tmp7_;
const gchar* _tmp8_;
+#line 339 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
e = _inner_error_;
+#line 339 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_inner_error_ = NULL;
+#line 346 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp7_ = e;
+#line 346 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp8_ = _tmp7_->message;
+#line 346 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_warning ("simple-scan.vala:346: Error saving email attachment: %s", _tmp8_);
+#line 347 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
result = NULL;
+#line 347 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_error_free0 (e);
+#line 347 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (path);
+#line 347 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (filename);
+#line 347 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return result;
+#line 2019 "simple-scan.c"
}
- __finally7:
+ __finally8:
+#line 339 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_inner_error_ != NULL) {
+#line 339 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (path);
+#line 339 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (filename);
+#line 339 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 339 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_clear_error (&_inner_error_);
+#line 339 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return NULL;
+#line 2034 "simple-scan.c"
}
+#line 350 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
result = path;
+#line 350 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (filename);
+#line 350 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return result;
+#line 2042 "simple-scan.c"
}
-static void simple_scan_email_cb (SimpleScan* self, UserInterface* ui, const gchar* profile) {
+static void simple_scan_email_cb (SimpleScan* self, UserInterface* ui, const gchar* profile, gint quality) {
gboolean saved;
gchar* _tmp0_;
gchar* command_line;
const gchar* _tmp1_;
- const gchar* _tmp40_;
+ const gchar* _tmp42_;
GError * _inner_error_ = NULL;
+#line 353 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (self != NULL);
+#line 353 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (ui != NULL);
+#line 353 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (profile != NULL);
+#line 355 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
saved = FALSE;
+#line 356 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp0_ = g_strdup ("xdg-email");
+#line 356 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
command_line = _tmp0_;
+#line 359 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp1_ = profile;
+#line 359 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (g_strcmp0 (_tmp1_, "text") == 0) {
+#line 2069 "simple-scan.c"
gchar* _tmp2_ = NULL;
gchar* path;
const gchar* _tmp3_;
+#line 362 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp2_ = simple_scan_get_temporary_filename (self, "scan", "pdf");
+#line 362 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
path = _tmp2_;
+#line 363 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp3_ = path;
+#line 363 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_tmp3_ != NULL) {
+#line 2081 "simple-scan.c"
const gchar* _tmp4_;
GFile* _tmp5_ = NULL;
GFile* file;
UserInterface* _tmp6_;
- const gchar* _tmp12_;
const gchar* _tmp13_;
- gchar* _tmp14_ = NULL;
- gchar* _tmp15_;
+ const gchar* _tmp14_;
+ gchar* _tmp15_ = NULL;
gchar* _tmp16_;
+ gchar* _tmp17_;
+#line 365 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp4_ = path;
+#line 365 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp5_ = g_file_new_for_path (_tmp4_);
+#line 365 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
file = _tmp5_;
+#line 366 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp6_ = ui;
+#line 366 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
user_interface_show_progress_dialog (_tmp6_);
+#line 2101 "simple-scan.c"
{
Book* _tmp7_;
- GFile* _tmp8_;
+ gint _tmp8_;
+ GFile* _tmp9_;
+#line 369 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp7_ = self->priv->book;
- _tmp8_ = file;
- book_save (_tmp7_, "pdf", _tmp8_, &_inner_error_);
+#line 369 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp8_ = quality;
+#line 369 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp9_ = file;
+#line 369 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ book_save (_tmp7_, "pdf", _tmp8_, _tmp9_, &_inner_error_);
+#line 369 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_inner_error_ != NULL) {
- goto __catch8_g_error;
+#line 2116 "simple-scan.c"
+ goto __catch9_g_error;
}
}
- goto __finally8;
- __catch8_g_error:
+ goto __finally9;
+ __catch9_g_error:
{
GError* e = NULL;
- UserInterface* _tmp9_;
- GError* _tmp10_;
- const gchar* _tmp11_;
+ UserInterface* _tmp10_;
+ GError* _tmp11_;
+ const gchar* _tmp12_;
+#line 367 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
e = _inner_error_;
+#line 367 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_inner_error_ = NULL;
- _tmp9_ = ui;
- user_interface_hide_progress_dialog (_tmp9_);
- _tmp10_ = e;
- _tmp11_ = _tmp10_->message;
- g_warning ("simple-scan.vala:374: Unable to save email file: %s", _tmp11_);
+#line 373 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp10_ = ui;
+#line 373 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ user_interface_hide_progress_dialog (_tmp10_);
+#line 374 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp11_ = e;
+#line 374 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp12_ = _tmp11_->message;
+#line 374 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ g_warning ("simple-scan.vala:374: Unable to save email file: %s", _tmp12_);
+#line 375 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_error_free0 (e);
+#line 375 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (file);
+#line 375 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (path);
+#line 375 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (command_line);
+#line 375 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return;
+#line 2151 "simple-scan.c"
}
- __finally8:
+ __finally9:
+#line 367 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_inner_error_ != NULL) {
+#line 367 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (file);
+#line 367 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (path);
+#line 367 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (command_line);
+#line 367 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 367 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_clear_error (&_inner_error_);
+#line 367 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return;
+#line 2168 "simple-scan.c"
}
- _tmp12_ = command_line;
- _tmp13_ = path;
- _tmp14_ = g_strdup_printf (" --attach %s", _tmp13_);
- _tmp15_ = _tmp14_;
- _tmp16_ = g_strconcat (_tmp12_, _tmp15_, NULL);
+#line 377 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp13_ = command_line;
+#line 377 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp14_ = path;
+#line 377 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp15_ = g_strdup_printf (" --attach %s", _tmp14_);
+#line 377 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp16_ = _tmp15_;
+#line 377 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp17_ = g_strconcat (_tmp13_, _tmp16_, NULL);
+#line 377 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (command_line);
- command_line = _tmp16_;
- _g_free0 (_tmp15_);
+#line 377 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ command_line = _tmp17_;
+#line 377 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _g_free0 (_tmp16_);
+#line 363 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (file);
+#line 2188 "simple-scan.c"
}
+#line 359 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (path);
+#line 2192 "simple-scan.c"
} else {
{
gint i;
+#line 382 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
i = 0;
+#line 2198 "simple-scan.c"
{
- gboolean _tmp17_;
- _tmp17_ = TRUE;
+ gboolean _tmp18_;
+#line 382 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp18_ = TRUE;
+#line 382 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
while (TRUE) {
- gboolean _tmp18_;
- gint _tmp20_;
- Book* _tmp21_;
- guint _tmp22_ = 0U;
- gchar* _tmp23_ = NULL;
+#line 2205 "simple-scan.c"
+ gboolean _tmp19_;
+ gint _tmp21_;
+ Book* _tmp22_;
+ guint _tmp23_ = 0U;
+ gchar* _tmp24_ = NULL;
gchar* path;
- const gchar* _tmp24_;
const gchar* _tmp25_;
- GFile* _tmp26_ = NULL;
+ const gchar* _tmp26_;
+ GFile* _tmp27_ = NULL;
GFile* file;
- const gchar* _tmp34_;
- const gchar* _tmp35_;
- gchar* _tmp36_ = NULL;
- gchar* _tmp37_;
- gchar* _tmp38_;
- gboolean _tmp39_;
- _tmp18_ = _tmp17_;
- if (!_tmp18_) {
- gint _tmp19_;
- _tmp19_ = i;
- i = _tmp19_ + 1;
+ const gchar* _tmp36_;
+ const gchar* _tmp37_;
+ gchar* _tmp38_ = NULL;
+ gchar* _tmp39_;
+ gchar* _tmp40_;
+ gboolean _tmp41_;
+#line 382 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp19_ = _tmp18_;
+#line 382 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ if (!_tmp19_) {
+#line 2226 "simple-scan.c"
+ gint _tmp20_;
+#line 382 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp20_ = i;
+#line 382 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ i = _tmp20_ + 1;
+#line 2232 "simple-scan.c"
}
- _tmp17_ = FALSE;
- _tmp20_ = i;
- _tmp21_ = self->priv->book;
- _tmp22_ = book_get_n_pages (_tmp21_);
- if (!(((guint) _tmp20_) < _tmp22_)) {
+#line 382 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp18_ = FALSE;
+#line 382 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp21_ = i;
+#line 382 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp22_ = self->priv->book;
+#line 382 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp23_ = book_get_n_pages (_tmp22_);
+#line 382 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ if (!(((guint) _tmp21_) < _tmp23_)) {
+#line 382 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
break;
+#line 2246 "simple-scan.c"
}
- _tmp23_ = simple_scan_get_temporary_filename (self, "scan", "jpg");
- path = _tmp23_;
- _tmp24_ = path;
- if (_tmp24_ == NULL) {
+#line 384 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp24_ = simple_scan_get_temporary_filename (self, "scan", "jpg");
+#line 384 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ path = _tmp24_;
+#line 385 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp25_ = path;
+#line 385 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ if (_tmp25_ == NULL) {
+#line 387 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
saved = FALSE;
+#line 388 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (path);
+#line 388 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
break;
+#line 2262 "simple-scan.c"
}
- _tmp25_ = path;
- _tmp26_ = g_file_new_for_path (_tmp25_);
- file = _tmp26_;
+#line 391 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp26_ = path;
+#line 391 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp27_ = g_file_new_for_path (_tmp26_);
+#line 391 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ file = _tmp27_;
+#line 2270 "simple-scan.c"
{
- Book* _tmp27_;
- gint _tmp28_;
- Page* _tmp29_ = NULL;
- Page* _tmp30_;
- GFile* _tmp31_;
- _tmp27_ = self->priv->book;
- _tmp28_ = i;
- _tmp29_ = book_get_page (_tmp27_, _tmp28_);
- _tmp30_ = _tmp29_;
- _tmp31_ = file;
- page_save (_tmp30_, "jpeg", _tmp31_, &_inner_error_);
- _page_unref0 (_tmp30_);
+ Book* _tmp28_;
+ gint _tmp29_;
+ Page* _tmp30_ = NULL;
+ Page* _tmp31_;
+ gint _tmp32_;
+ GFile* _tmp33_;
+#line 394 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp28_ = self->priv->book;
+#line 394 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp29_ = i;
+#line 394 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp30_ = book_get_page (_tmp28_, _tmp29_);
+#line 394 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp31_ = _tmp30_;
+#line 394 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp32_ = quality;
+#line 394 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp33_ = file;
+#line 394 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ page_save (_tmp31_, "jpeg", _tmp32_, _tmp33_, &_inner_error_);
+#line 394 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _page_unref0 (_tmp31_);
+#line 394 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_inner_error_ != NULL) {
- goto __catch9_g_error;
+#line 2296 "simple-scan.c"
+ goto __catch10_g_error;
}
}
- goto __finally9;
- __catch9_g_error:
+ goto __finally10;
+ __catch10_g_error:
{
GError* e = NULL;
- GError* _tmp32_;
- const gchar* _tmp33_;
+ GError* _tmp34_;
+ const gchar* _tmp35_;
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
e = _inner_error_;
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_inner_error_ = NULL;
- _tmp32_ = e;
- _tmp33_ = _tmp32_->message;
- g_warning ("simple-scan.vala:398: Unable to save email file: %s", _tmp33_);
+#line 398 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp34_ = e;
+#line 398 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp35_ = _tmp34_->message;
+#line 398 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ g_warning ("simple-scan.vala:398: Unable to save email file: %s", _tmp35_);
+#line 399 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_error_free0 (e);
+#line 399 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (file);
+#line 399 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (path);
+#line 399 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (command_line);
+#line 399 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return;
+#line 2326 "simple-scan.c"
}
- __finally9:
+ __finally10:
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_inner_error_ != NULL) {
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (file);
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (path);
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (command_line);
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_clear_error (&_inner_error_);
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return;
+#line 2343 "simple-scan.c"
}
- _tmp34_ = command_line;
- _tmp35_ = path;
- _tmp36_ = g_strdup_printf (" --attach %s", _tmp35_);
- _tmp37_ = _tmp36_;
- _tmp38_ = g_strconcat (_tmp34_, _tmp37_, NULL);
+#line 401 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp36_ = command_line;
+#line 401 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp37_ = path;
+#line 401 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp38_ = g_strdup_printf (" --attach %s", _tmp37_);
+#line 401 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp39_ = _tmp38_;
+#line 401 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp40_ = g_strconcat (_tmp36_, _tmp39_, NULL);
+#line 401 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (command_line);
- command_line = _tmp38_;
- _g_free0 (_tmp37_);
- _tmp39_ = saved;
- if (!_tmp39_) {
+#line 401 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ command_line = _tmp40_;
+#line 401 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _g_free0 (_tmp39_);
+#line 403 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp41_ = saved;
+#line 403 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ if (!_tmp41_) {
+#line 404 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (file);
+#line 404 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (path);
+#line 404 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
break;
+#line 2371 "simple-scan.c"
}
+#line 382 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (file);
+#line 382 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (path);
+#line 2377 "simple-scan.c"
}
}
}
}
- _tmp40_ = command_line;
- g_debug ("simple-scan.vala:408: Launching email client: %s", _tmp40_);
+#line 408 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp42_ = command_line;
+#line 408 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ g_debug ("simple-scan.vala:408: Launching email client: %s", _tmp42_);
+#line 2386 "simple-scan.c"
{
- const gchar* _tmp41_;
- _tmp41_ = command_line;
- g_spawn_command_line_async (_tmp41_, &_inner_error_);
+ const gchar* _tmp43_;
+#line 411 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp43_ = command_line;
+#line 411 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ g_spawn_command_line_async (_tmp43_, &_inner_error_);
+#line 411 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_inner_error_ != NULL) {
- goto __catch10_g_error;
+#line 2395 "simple-scan.c"
+ goto __catch11_g_error;
}
}
- goto __finally10;
- __catch10_g_error:
+ goto __finally11;
+ __catch11_g_error:
{
GError* e = NULL;
- GError* _tmp42_;
- const gchar* _tmp43_;
+ GError* _tmp44_;
+ const gchar* _tmp45_;
+#line 409 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
e = _inner_error_;
+#line 409 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_inner_error_ = NULL;
- _tmp42_ = e;
- _tmp43_ = _tmp42_->message;
- g_warning ("simple-scan.vala:415: Unable to start email: %s", _tmp43_);
+#line 415 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp44_ = e;
+#line 415 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp45_ = _tmp44_->message;
+#line 415 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ g_warning ("simple-scan.vala:415: Unable to start email: %s", _tmp45_);
+#line 409 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_error_free0 (e);
+#line 2417 "simple-scan.c"
}
- __finally10:
+ __finally11:
+#line 409 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_inner_error_ != NULL) {
+#line 409 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (command_line);
+#line 409 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 409 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_clear_error (&_inner_error_);
+#line 409 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return;
+#line 2430 "simple-scan.c"
}
+#line 353 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (command_line);
+#line 2434 "simple-scan.c"
}
@@ -1657,98 +2444,173 @@ static void simple_scan_log_cb (const gchar* log_domain, GLogLevelFlags log_leve
const gchar* _tmp11_;
const gchar* _tmp12_;
gboolean _tmp13_;
+#line 419 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (message != NULL);
+#line 423 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp0_ = log_level;
+#line 423 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
switch (_tmp0_ & G_LOG_LEVEL_MASK) {
+#line 423 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
case G_LOG_LEVEL_ERROR:
+#line 2455 "simple-scan.c"
{
gchar* _tmp1_;
+#line 426 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp1_ = g_strdup ("ERROR:");
+#line 426 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (prefix);
+#line 426 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
prefix = _tmp1_;
+#line 427 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
break;
+#line 2466 "simple-scan.c"
}
+#line 423 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
case G_LOG_LEVEL_CRITICAL:
+#line 2470 "simple-scan.c"
{
gchar* _tmp2_;
+#line 429 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp2_ = g_strdup ("CRITICAL:");
+#line 429 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (prefix);
+#line 429 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
prefix = _tmp2_;
+#line 430 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
break;
+#line 2481 "simple-scan.c"
}
+#line 423 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
case G_LOG_LEVEL_WARNING:
+#line 2485 "simple-scan.c"
{
gchar* _tmp3_;
+#line 432 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp3_ = g_strdup ("WARNING:");
+#line 432 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (prefix);
+#line 432 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
prefix = _tmp3_;
+#line 433 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
break;
+#line 2496 "simple-scan.c"
}
+#line 423 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
case G_LOG_LEVEL_MESSAGE:
+#line 2500 "simple-scan.c"
{
gchar* _tmp4_;
+#line 435 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp4_ = g_strdup ("MESSAGE:");
+#line 435 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (prefix);
+#line 435 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
prefix = _tmp4_;
+#line 436 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
break;
+#line 2511 "simple-scan.c"
}
+#line 423 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
case G_LOG_LEVEL_INFO:
+#line 2515 "simple-scan.c"
{
gchar* _tmp5_;
+#line 438 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp5_ = g_strdup ("INFO:");
+#line 438 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (prefix);
+#line 438 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
prefix = _tmp5_;
+#line 439 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
break;
+#line 2526 "simple-scan.c"
}
+#line 423 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
case G_LOG_LEVEL_DEBUG:
+#line 2530 "simple-scan.c"
{
gchar* _tmp6_;
+#line 441 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp6_ = g_strdup ("DEBUG:");
+#line 441 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (prefix);
+#line 441 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
prefix = _tmp6_;
+#line 442 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
break;
+#line 2541 "simple-scan.c"
}
default:
{
gchar* _tmp7_;
+#line 444 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp7_ = g_strdup ("LOG:");
+#line 444 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (prefix);
+#line 444 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
prefix = _tmp7_;
+#line 445 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
break;
+#line 2554 "simple-scan.c"
}
}
+#line 448 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp8_ = simple_scan_log_file;
+#line 448 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp9_ = simple_scan_log_timer;
+#line 448 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp10_ = g_timer_elapsed (_tmp9_, NULL);
+#line 448 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp11_ = prefix;
+#line 448 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp12_ = message;
+#line 448 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
fprintf (_tmp8_, "[%+.2fs] %s %s\n", _tmp10_, _tmp11_, _tmp12_);
+#line 449 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp13_ = simple_scan_debug_enabled;
+#line 449 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_tmp13_) {
+#line 2573 "simple-scan.c"
FILE* _tmp14_;
GTimer* _tmp15_;
gdouble _tmp16_ = 0.0;
const gchar* _tmp17_;
const gchar* _tmp18_;
+#line 450 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp14_ = stderr;
+#line 450 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp15_ = simple_scan_log_timer;
+#line 450 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp16_ = g_timer_elapsed (_tmp15_, NULL);
+#line 450 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp17_ = prefix;
+#line 450 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp18_ = message;
+#line 450 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
fprintf (_tmp14_, "[%+.2fs] %s %s\n", _tmp16_, _tmp17_, _tmp18_);
+#line 2591 "simple-scan.c"
}
+#line 419 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (prefix);
+#line 2595 "simple-scan.c"
}
static void simple_scan_on_uevent (SimpleScan* self, GUdevClient* client, const gchar* action, GUdevDevice* device) {
Scanner* _tmp0_;
+#line 453 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (self != NULL);
+#line 453 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (client != NULL);
+#line 453 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (action != NULL);
+#line 453 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (device != NULL);
+#line 455 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp0_ = self->priv->scanner;
+#line 455 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
scanner_redetect (_tmp0_);
+#line 2613 "simple-scan.c"
}
@@ -1759,23 +2621,39 @@ static glong string_strnlen (gchar* str, glong maxlen) {
gchar* _tmp2_ = NULL;
gchar* end;
gchar* _tmp3_;
+#line 1157 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp0_ = str;
+#line 1157 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp1_ = maxlen;
+#line 1157 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp2_ = memchr (_tmp0_, 0, (gsize) _tmp1_);
+#line 1157 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
end = _tmp2_;
+#line 1158 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp3_ = end;
+#line 1158 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
if (_tmp3_ == NULL) {
+#line 2636 "simple-scan.c"
glong _tmp4_;
+#line 1159 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp4_ = maxlen;
+#line 1159 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
result = _tmp4_;
+#line 1159 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
return result;
+#line 2644 "simple-scan.c"
} else {
gchar* _tmp5_;
gchar* _tmp6_;
+#line 1161 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp5_ = end;
+#line 1161 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp6_ = str;
+#line 1161 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
result = (glong) (_tmp5_ - _tmp6_);
+#line 1161 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
return result;
+#line 2656 "simple-scan.c"
}
}
@@ -1794,65 +2672,116 @@ static gchar* string_substring (const gchar* self, glong offset, glong len) {
glong _tmp21_;
glong _tmp22_;
gchar* _tmp23_ = NULL;
+#line 1168 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
g_return_val_if_fail (self != NULL, NULL);
+#line 1170 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp1_ = offset;
+#line 1170 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
if (_tmp1_ >= ((glong) 0)) {
+#line 2681 "simple-scan.c"
glong _tmp2_;
+#line 1170 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp2_ = len;
+#line 1170 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp0_ = _tmp2_ >= ((glong) 0);
+#line 2687 "simple-scan.c"
} else {
+#line 1170 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp0_ = FALSE;
+#line 2691 "simple-scan.c"
}
+#line 1170 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp3_ = _tmp0_;
+#line 1170 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
if (_tmp3_) {
+#line 2697 "simple-scan.c"
glong _tmp4_;
glong _tmp5_;
glong _tmp6_ = 0L;
+#line 1172 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp4_ = offset;
+#line 1172 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp5_ = len;
+#line 1172 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp6_ = string_strnlen ((gchar*) self, _tmp4_ + _tmp5_);
+#line 1172 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
string_length = _tmp6_;
+#line 2709 "simple-scan.c"
} else {
gint _tmp7_;
gint _tmp8_;
+#line 1174 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp7_ = strlen (self);
+#line 1174 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp8_ = _tmp7_;
+#line 1174 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
string_length = (glong) _tmp8_;
+#line 2719 "simple-scan.c"
}
+#line 1177 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp9_ = offset;
+#line 1177 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
if (_tmp9_ < ((glong) 0)) {
+#line 2725 "simple-scan.c"
glong _tmp10_;
glong _tmp11_;
glong _tmp12_;
+#line 1178 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp10_ = string_length;
+#line 1178 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp11_ = offset;
+#line 1178 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
offset = _tmp10_ + _tmp11_;
+#line 1179 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp12_ = offset;
+#line 1179 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
g_return_val_if_fail (_tmp12_ >= ((glong) 0), NULL);
+#line 2739 "simple-scan.c"
} else {
glong _tmp13_;
glong _tmp14_;
+#line 1181 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp13_ = offset;
+#line 1181 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp14_ = string_length;
+#line 1181 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
g_return_val_if_fail (_tmp13_ <= _tmp14_, NULL);
+#line 2749 "simple-scan.c"
}
+#line 1183 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp15_ = len;
+#line 1183 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
if (_tmp15_ < ((glong) 0)) {
+#line 2755 "simple-scan.c"
glong _tmp16_;
glong _tmp17_;
+#line 1184 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp16_ = string_length;
+#line 1184 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp17_ = offset;
+#line 1184 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
len = _tmp16_ - _tmp17_;
+#line 2764 "simple-scan.c"
}
+#line 1186 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp18_ = offset;
+#line 1186 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp19_ = len;
+#line 1186 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp20_ = string_length;
+#line 1186 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
g_return_val_if_fail ((_tmp18_ + _tmp19_) <= _tmp20_, NULL);
+#line 1187 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp21_ = offset;
+#line 1187 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp22_ = len;
+#line 1187 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp23_ = g_strndup (((gchar*) self) + _tmp21_, (gsize) _tmp22_);
+#line 1187 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
result = _tmp23_;
+#line 1187 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
return result;
+#line 2784 "simple-scan.c"
}
@@ -1885,40 +2814,75 @@ static void simple_scan_fix_pdf (const gchar* filename, GError** error) {
gint _tmp88_ = 0;
gboolean _tmp89_;
GError * _inner_error_ = NULL;
+#line 458 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (filename != NULL);
+#line 461 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp0_ = filename;
+#line 461 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_file_get_contents (_tmp0_, (gchar**) (&_tmp1_), &_tmp2_, &_inner_error_);
+#line 461 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
data = (g_free (data), NULL);
+#line 461 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
data = _tmp1_;
+#line 461 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
data_length1 = _tmp2_;
+#line 461 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_data_size_ = data_length1;
+#line 461 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_inner_error_ != NULL) {
+#line 461 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_propagate_error (error, _inner_error_);
+#line 461 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
data = (g_free (data), NULL);
+#line 461 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return;
+#line 2839 "simple-scan.c"
}
+#line 463 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp3_ = filename;
+#line 463 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp4_ = g_strconcat (_tmp3_, ".fixed", NULL);
+#line 463 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp5_ = _tmp4_;
- _tmp6_ = fopen (_tmp5_, "w");
+#line 463 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp6_ = g_fopen (_tmp5_, "w");
+#line 463 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp7_ = _tmp6_;
+#line 463 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (_tmp5_);
+#line 463 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
fixed_file = _tmp7_;
+#line 465 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
offset = 0;
+#line 466 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
line_number = 0;
+#line 467 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
xref_offset = 0;
+#line 468 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
xref_line = -1;
- _tmp8_ = g_regex_new ("^\\d\\d\\d\\d\\d\\d\\d\\d\\d\\d 0000 n$", 0, 0, &_inner_error_);
+#line 469 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp8_ = g_regex_new ("^\\d\\d\\d\\d\\d\\d\\d\\d\\d\\d 0000 n$", G_REGEX_RAW, 0, &_inner_error_);
+#line 469 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
xref_regex = _tmp8_;
+#line 469 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_inner_error_ != NULL) {
+#line 469 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_propagate_error (error, _inner_error_);
+#line 469 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_fclose0 (fixed_file);
+#line 469 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
data = (g_free (data), NULL);
+#line 469 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return;
+#line 2877 "simple-scan.c"
}
+#line 471 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp9_ = g_string_new ("");
+#line 471 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
line = _tmp9_;
+#line 472 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
while (TRUE) {
+#line 2885 "simple-scan.c"
gint _tmp10_;
guint8* _tmp11_;
gint _tmp11__length1;
@@ -1932,17 +2896,29 @@ static void simple_scan_fix_pdf (const gchar* filename, GError** error) {
gboolean _tmp31_;
gint _tmp82_;
gint _tmp83_;
+#line 472 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp10_ = offset;
+#line 472 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp11_ = data;
+#line 472 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp11__length1 = data_length1;
+#line 472 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (!(_tmp10_ < _tmp11__length1)) {
+#line 472 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
break;
+#line 2909 "simple-scan.c"
}
+#line 474 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp12_ = offset;
+#line 474 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
end_offset = _tmp12_;
+#line 475 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp13_ = line;
+#line 475 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_string_assign (_tmp13_, "");
+#line 476 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
while (TRUE) {
+#line 2921 "simple-scan.c"
gint _tmp14_;
guint8* _tmp15_;
gint _tmp15__length1;
@@ -1955,103 +2931,180 @@ static void simple_scan_fix_pdf (const gchar* filename, GError** error) {
guint8 _tmp20_;
gint _tmp21_;
guint8 _tmp22_;
+#line 476 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp14_ = end_offset;
+#line 476 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp15_ = data;
+#line 476 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp15__length1 = data_length1;
+#line 476 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (!(_tmp14_ < _tmp15__length1)) {
+#line 476 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
break;
+#line 2944 "simple-scan.c"
}
+#line 478 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp16_ = data;
+#line 478 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp16__length1 = data_length1;
+#line 478 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp17_ = end_offset;
+#line 478 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp18_ = _tmp16_[_tmp17_];
+#line 478 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
c = _tmp18_;
+#line 479 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp19_ = line;
+#line 479 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp20_ = c;
+#line 479 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_string_append_c (_tmp19_, (gchar) _tmp20_);
+#line 480 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp21_ = end_offset;
+#line 480 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
end_offset = _tmp21_ + 1;
+#line 481 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp22_ = c;
+#line 481 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_tmp22_ == ((guint8) '\n')) {
+#line 482 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
break;
+#line 2972 "simple-scan.c"
}
}
+#line 485 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp23_ = line;
+#line 485 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp24_ = _tmp23_->str;
+#line 485 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (g_strcmp0 (_tmp24_, "startxref\n") == 0) {
+#line 2981 "simple-scan.c"
gint _tmp25_;
+#line 486 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp25_ = line_number;
+#line 486 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
xref_line = _tmp25_;
+#line 2987 "simple-scan.c"
}
+#line 489 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp27_ = line_number;
+#line 489 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_tmp27_ < 2) {
+#line 2993 "simple-scan.c"
GString* _tmp28_;
const gchar* _tmp29_;
gboolean _tmp30_ = FALSE;
+#line 489 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp28_ = line;
+#line 489 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp29_ = _tmp28_->str;
+#line 489 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp30_ = g_str_has_prefix (_tmp29_, "%%");
+#line 489 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp26_ = _tmp30_;
+#line 3005 "simple-scan.c"
} else {
+#line 489 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp26_ = FALSE;
+#line 3009 "simple-scan.c"
}
+#line 489 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp31_ = _tmp26_;
+#line 489 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_tmp31_) {
+#line 3015 "simple-scan.c"
gint _tmp32_;
FILE* _tmp33_;
GString* _tmp34_;
const gchar* _tmp35_;
gchar* _tmp36_ = NULL;
gchar* _tmp37_;
+#line 491 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp32_ = xref_offset;
+#line 491 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
xref_offset = _tmp32_ - 1;
+#line 492 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp33_ = fixed_file;
+#line 492 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp34_ = line;
+#line 492 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp35_ = _tmp34_->str;
+#line 492 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp36_ = string_substring (_tmp35_, (glong) 1, (glong) (-1));
+#line 492 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp37_ = _tmp36_;
+#line 492 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
fprintf (_tmp33_, "%s", _tmp37_);
+#line 492 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (_tmp37_);
+#line 3040 "simple-scan.c"
} else {
GRegex* _tmp38_;
GString* _tmp39_;
const gchar* _tmp40_;
GMatchInfo* _tmp41_ = NULL;
gboolean _tmp42_ = FALSE;
+#line 496 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp38_ = xref_regex;
+#line 496 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp39_ = line;
+#line 496 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp40_ = _tmp39_->str;
+#line 496 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp42_ = g_regex_match (_tmp38_, _tmp40_, 0, &_tmp41_);
+#line 496 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_match_info_free0 (xref_match);
+#line 496 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
xref_match = _tmp41_;
+#line 496 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_tmp42_) {
+#line 3061 "simple-scan.c"
FILE* _tmp43_;
GMatchInfo* _tmp44_;
const gchar* _tmp45_ = NULL;
gint _tmp46_ = 0;
gint _tmp47_;
+#line 497 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp43_ = fixed_file;
+#line 497 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp44_ = xref_match;
+#line 497 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp45_ = g_match_info_get_string (_tmp44_);
+#line 497 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp46_ = atoi (_tmp45_);
+#line 497 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp47_ = xref_offset;
+#line 497 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
fprintf (_tmp43_, "%010d 00000 n \n", _tmp46_ + _tmp47_);
+#line 3079 "simple-scan.c"
} else {
gboolean _tmp48_ = FALSE;
gint _tmp49_;
gboolean _tmp52_;
+#line 500 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp49_ = xref_line;
+#line 500 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_tmp49_ > 0) {
+#line 3088 "simple-scan.c"
gint _tmp50_;
gint _tmp51_;
+#line 500 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp50_ = line_number;
+#line 500 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp51_ = xref_line;
+#line 500 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp48_ = _tmp50_ == (_tmp51_ + 1);
+#line 3097 "simple-scan.c"
} else {
+#line 500 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp48_ = FALSE;
+#line 3101 "simple-scan.c"
}
+#line 500 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp52_ = _tmp48_;
+#line 500 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_tmp52_) {
+#line 3107 "simple-scan.c"
FILE* _tmp53_;
GString* _tmp54_;
const gchar* _tmp55_;
@@ -2059,57 +3112,95 @@ static void simple_scan_fix_pdf (const gchar* filename, GError** error) {
gint _tmp57_;
gchar* _tmp58_ = NULL;
gchar* _tmp59_;
+#line 501 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp53_ = fixed_file;
+#line 501 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp54_ = line;
+#line 501 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp55_ = _tmp54_->str;
+#line 501 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp56_ = atoi (_tmp55_);
+#line 501 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp57_ = xref_offset;
+#line 501 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp58_ = g_strdup_printf ("%d\n", _tmp56_ + _tmp57_);
+#line 501 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp59_ = _tmp58_;
+#line 501 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
fprintf (_tmp53_, "%s", _tmp59_);
+#line 501 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (_tmp59_);
+#line 3133 "simple-scan.c"
} else {
gboolean _tmp60_ = FALSE;
gint _tmp61_;
gint _tmp62_;
gboolean _tmp66_;
+#line 504 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp61_ = line_number;
+#line 504 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp62_ = xref_line;
+#line 504 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_tmp61_ == (_tmp62_ + 2)) {
+#line 3145 "simple-scan.c"
GString* _tmp63_;
const gchar* _tmp64_;
gboolean _tmp65_ = FALSE;
+#line 504 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp63_ = line;
+#line 504 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp64_ = _tmp63_->str;
+#line 504 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp65_ = g_str_has_prefix (_tmp64_, "%%%%");
+#line 504 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp60_ = _tmp65_;
+#line 3157 "simple-scan.c"
} else {
+#line 504 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp60_ = FALSE;
+#line 3161 "simple-scan.c"
}
+#line 504 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp66_ = _tmp60_;
+#line 504 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_tmp66_) {
+#line 3167 "simple-scan.c"
FILE* _tmp67_;
GString* _tmp68_;
const gchar* _tmp69_;
gchar* _tmp70_ = NULL;
gchar* _tmp71_;
+#line 505 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp67_ = fixed_file;
+#line 505 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp68_ = line;
+#line 505 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp69_ = _tmp68_->str;
+#line 505 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp70_ = string_substring (_tmp69_, (glong) 2, (glong) (-1));
+#line 505 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp71_ = _tmp70_;
+#line 505 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
fprintf (_tmp67_, "%s", _tmp71_);
+#line 505 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (_tmp71_);
+#line 3187 "simple-scan.c"
} else {
{
gint _tmp72_;
gint i;
+#line 508 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp72_ = offset;
+#line 508 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
i = _tmp72_;
+#line 3196 "simple-scan.c"
{
gboolean _tmp73_;
+#line 508 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp73_ = TRUE;
+#line 508 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
while (TRUE) {
+#line 3203 "simple-scan.c"
gboolean _tmp74_;
gint _tmp76_;
gint _tmp77_;
@@ -2118,24 +3209,43 @@ static void simple_scan_fix_pdf (const gchar* filename, GError** error) {
gint _tmp79__length1;
gint _tmp80_;
guint8 _tmp81_;
+#line 508 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp74_ = _tmp73_;
+#line 508 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (!_tmp74_) {
+#line 3216 "simple-scan.c"
gint _tmp75_;
+#line 508 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp75_ = i;
+#line 508 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
i = _tmp75_ + 1;
+#line 3222 "simple-scan.c"
}
+#line 508 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp73_ = FALSE;
+#line 508 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp76_ = i;
+#line 508 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp77_ = end_offset;
+#line 508 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (!(_tmp76_ < _tmp77_)) {
+#line 508 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
break;
+#line 3234 "simple-scan.c"
}
+#line 509 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp78_ = fixed_file;
+#line 509 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp79_ = data;
+#line 509 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp79__length1 = data_length1;
+#line 509 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp80_ = i;
+#line 509 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp81_ = _tmp79_[_tmp80_];
+#line 509 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
fputc ((gchar) _tmp81_, _tmp78_);
+#line 3248 "simple-scan.c"
}
}
}
@@ -2143,40 +3253,69 @@ static void simple_scan_fix_pdf (const gchar* filename, GError** error) {
}
}
}
+#line 511 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp82_ = line_number;
+#line 511 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
line_number = _tmp82_ + 1;
+#line 512 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp83_ = end_offset;
+#line 512 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
offset = _tmp83_;
+#line 3264 "simple-scan.c"
}
+#line 515 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp84_ = filename;
+#line 515 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp85_ = filename;
+#line 515 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp86_ = g_strconcat (_tmp85_, "~", NULL);
+#line 515 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp87_ = _tmp86_;
+#line 515 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp88_ = g_rename (_tmp84_, _tmp87_);
+#line 515 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp89_ = _tmp88_ >= 0;
+#line 515 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (_tmp87_);
+#line 515 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_tmp89_) {
+#line 3282 "simple-scan.c"
const gchar* _tmp90_;
gchar* _tmp91_;
gchar* _tmp92_;
const gchar* _tmp93_;
+#line 516 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp90_ = filename;
+#line 516 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp91_ = g_strconcat (_tmp90_, ".fixed", NULL);
+#line 516 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp92_ = _tmp91_;
+#line 516 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp93_ = filename;
+#line 516 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_rename (_tmp92_, _tmp93_);
+#line 516 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (_tmp92_);
+#line 3299 "simple-scan.c"
}
+#line 458 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_string_free0 (line);
+#line 458 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_match_info_free0 (xref_match);
+#line 458 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_regex_unref0 (xref_regex);
+#line 458 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_fclose0 (fixed_file);
+#line 458 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
data = (g_free (data), NULL);
+#line 3311 "simple-scan.c"
}
static void _simple_scan_log_cb_glog_func (const gchar* log_domain, GLogLevelFlags log_levels, const gchar* message, gpointer self) {
+#line 580 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
simple_scan_log_cb (log_domain, log_levels, message);
+#line 3318 "simple-scan.c"
}
@@ -2209,29 +3348,47 @@ gint simple_scan_main (gchar** args, int args_length1) {
SimpleScan* _tmp50_;
gint _tmp51_ = 0;
GError * _inner_error_ = NULL;
+#line 521 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
setlocale (LC_ALL, "");
+#line 522 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
bindtextdomain (GETTEXT_PACKAGE, LOCALE_DIR);
+#line 523 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+#line 524 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
textdomain (GETTEXT_PACKAGE);
+#line 526 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
gtk_init (&args_length1, &args);
+#line 528 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp0_ = _ ("[DEVICE...] - Scanning utility");
+#line 528 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp1_ = g_option_context_new (_tmp0_);
+#line 528 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
c = _tmp1_;
+#line 530 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp2_ = c;
+#line 530 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_option_context_add_main_entries (_tmp2_, SIMPLE_SCAN_options, GETTEXT_PACKAGE);
+#line 531 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp3_ = c;
+#line 531 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp4_ = gtk_get_option_group (TRUE);
+#line 531 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_option_context_add_group (_tmp3_, _tmp4_);
+#line 3377 "simple-scan.c"
{
GOptionContext* _tmp5_;
+#line 534 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp5_ = c;
+#line 534 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_option_context_parse (_tmp5_, &args_length1, &args, &_inner_error_);
+#line 534 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_inner_error_ != NULL) {
- goto __catch11_g_error;
+#line 3386 "simple-scan.c"
+ goto __catch12_g_error;
}
}
- goto __finally11;
- __catch11_g_error:
+ goto __finally12;
+ __catch12_g_error:
{
GError* e = NULL;
FILE* _tmp6_;
@@ -2243,57 +3400,103 @@ gint simple_scan_main (gchar** args, int args_length1) {
gint _tmp11__length1;
const gchar* _tmp12_;
FILE* _tmp13_;
+#line 532 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
e = _inner_error_;
+#line 532 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_inner_error_ = NULL;
+#line 538 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp6_ = stderr;
+#line 538 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp7_ = e;
+#line 538 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp8_ = _tmp7_->message;
+#line 538 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
fprintf (_tmp6_, "%s\n", _tmp8_);
+#line 539 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp9_ = stderr;
+#line 539 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp10_ = _ ("Run '%s --help' to see a full list of available command line options.");
+#line 539 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp11_ = args;
+#line 539 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp11__length1 = args_length1;
+#line 539 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp12_ = _tmp11_[0];
+#line 539 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
fprintf (_tmp9_, _tmp10_, _tmp12_);
+#line 541 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp13_ = stderr;
+#line 541 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
fprintf (_tmp13_, "\n");
+#line 542 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
result = EXIT_FAILURE;
+#line 542 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_error_free0 (e);
+#line 542 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_option_context_free0 (c);
+#line 542 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return result;
+#line 3439 "simple-scan.c"
}
- __finally11:
+ __finally12:
+#line 532 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_inner_error_ != NULL) {
+#line 532 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_option_context_free0 (c);
+#line 532 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 532 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_clear_error (&_inner_error_);
+#line 532 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return 0;
+#line 3452 "simple-scan.c"
}
+#line 544 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp14_ = simple_scan_show_version;
+#line 544 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_tmp14_) {
+#line 3458 "simple-scan.c"
FILE* _tmp15_;
+#line 547 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp15_ = stderr;
+#line 547 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
fprintf (_tmp15_, "simple-scan %s\n", VERSION);
+#line 548 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
result = EXIT_SUCCESS;
+#line 548 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_option_context_free0 (c);
+#line 548 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return result;
+#line 3470 "simple-scan.c"
}
+#line 550 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp16_ = simple_scan_fix_pdf_filename;
+#line 550 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_tmp16_ != NULL) {
+#line 3476 "simple-scan.c"
{
const gchar* _tmp17_;
+#line 554 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp17_ = simple_scan_fix_pdf_filename;
+#line 554 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
simple_scan_fix_pdf (_tmp17_, &_inner_error_);
+#line 554 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_inner_error_ != NULL) {
- goto __catch12_g_error;
+#line 3485 "simple-scan.c"
+ goto __catch13_g_error;
}
{
gint i;
+#line 555 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
i = 1;
+#line 3492 "simple-scan.c"
{
gboolean _tmp18_;
+#line 555 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp18_ = TRUE;
+#line 555 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
while (TRUE) {
+#line 3499 "simple-scan.c"
gboolean _tmp19_;
gint _tmp21_;
gchar** _tmp22_;
@@ -2302,64 +3505,110 @@ gint simple_scan_main (gchar** args, int args_length1) {
gint _tmp23__length1;
gint _tmp24_;
const gchar* _tmp25_;
+#line 555 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp19_ = _tmp18_;
+#line 555 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (!_tmp19_) {
+#line 3512 "simple-scan.c"
gint _tmp20_;
+#line 555 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp20_ = i;
+#line 555 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
i = _tmp20_ + 1;
+#line 3518 "simple-scan.c"
}
+#line 555 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp18_ = FALSE;
+#line 555 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp21_ = i;
+#line 555 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp22_ = args;
+#line 555 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp22__length1 = args_length1;
+#line 555 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (!(_tmp21_ < _tmp22__length1)) {
+#line 555 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
break;
+#line 3532 "simple-scan.c"
}
+#line 556 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp23_ = args;
+#line 556 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp23__length1 = args_length1;
+#line 556 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp24_ = i;
+#line 556 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp25_ = _tmp23_[_tmp24_];
+#line 556 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
simple_scan_fix_pdf (_tmp25_, &_inner_error_);
+#line 556 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_inner_error_ != NULL) {
- goto __catch12_g_error;
+#line 3546 "simple-scan.c"
+ goto __catch13_g_error;
}
}
}
}
}
- goto __finally12;
- __catch12_g_error:
+ goto __finally13;
+ __catch13_g_error:
{
GError* e = NULL;
FILE* _tmp26_;
GError* _tmp27_;
const gchar* _tmp28_;
+#line 552 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
e = _inner_error_;
+#line 552 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_inner_error_ = NULL;
+#line 560 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp26_ = stderr;
+#line 560 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp27_ = e;
+#line 560 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp28_ = _tmp27_->message;
+#line 560 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
fprintf (_tmp26_, "Error fixing PDF file: %s", _tmp28_);
+#line 561 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
result = EXIT_FAILURE;
+#line 561 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_error_free0 (e);
+#line 561 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_option_context_free0 (c);
+#line 561 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return result;
+#line 3580 "simple-scan.c"
}
- __finally12:
+ __finally13:
+#line 552 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_inner_error_ != NULL) {
+#line 552 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_option_context_free0 (c);
+#line 552 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 552 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_clear_error (&_inner_error_);
+#line 552 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return 0;
+#line 3593 "simple-scan.c"
}
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
result = EXIT_SUCCESS;
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_option_context_free0 (c);
+#line 563 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return result;
+#line 3601 "simple-scan.c"
}
+#line 566 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
device = NULL;
+#line 567 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp29_ = args;
+#line 567 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp29__length1 = args_length1;
+#line 567 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_tmp29__length1 > 1) {
+#line 3611 "simple-scan.c"
ScanDevice* _tmp30_;
ScanDevice* _tmp31_;
gchar** _tmp32_;
@@ -2371,89 +3620,160 @@ gint simple_scan_main (gchar** args, int args_length1) {
gint _tmp36__length1;
const gchar* _tmp37_;
gchar* _tmp38_;
+#line 569 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp30_ = scan_device_new ();
+#line 569 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_scan_device_unref0 (device);
+#line 569 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
device = _tmp30_;
+#line 570 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp31_ = device;
+#line 570 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp32_ = args;
+#line 570 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp32__length1 = args_length1;
+#line 570 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp33_ = _tmp32_[1];
+#line 570 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp34_ = g_strdup (_tmp33_);
+#line 570 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (_tmp31_->name);
+#line 570 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp31_->name = _tmp34_;
+#line 571 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp35_ = device;
+#line 571 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp36_ = args;
+#line 571 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp36__length1 = args_length1;
+#line 571 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp37_ = _tmp36_[1];
+#line 571 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp38_ = g_strdup (_tmp37_);
+#line 571 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (_tmp35_->label);
+#line 571 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp35_->label = _tmp38_;
+#line 3657 "simple-scan.c"
}
+#line 575 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp39_ = g_timer_new ();
+#line 575 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_timer_destroy0 (simple_scan_log_timer);
+#line 575 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
simple_scan_log_timer = _tmp39_;
+#line 576 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp40_ = g_get_user_cache_dir ();
+#line 576 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp41_ = g_build_filename (_tmp40_, "simple-scan", NULL, NULL);
+#line 576 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
path = _tmp41_;
+#line 577 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp42_ = path;
+#line 577 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_mkdir_with_parents (_tmp42_, 0700);
+#line 578 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp43_ = g_get_user_cache_dir ();
+#line 578 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp44_ = g_build_filename (_tmp43_, "simple-scan", "simple-scan.log", NULL, NULL);
+#line 578 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (path);
+#line 578 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
path = _tmp44_;
+#line 579 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp45_ = path;
- _tmp46_ = fopen (_tmp45_, "w");
+#line 579 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp46_ = g_fopen (_tmp45_, "w");
+#line 579 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_fclose0 (simple_scan_log_file);
+#line 579 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
simple_scan_log_file = _tmp46_;
+#line 580 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_log_set_default_handler (_simple_scan_log_cb_glog_func, NULL);
+#line 582 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp47_ = getpid ();
+#line 582 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_debug ("simple-scan.vala:582: Starting Simple Scan %s, PID=%i", VERSION, (gint) _tmp47_);
+#line 584 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp48_ = device;
+#line 584 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp49_ = simple_scan_new (_tmp48_);
+#line 584 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
app = _tmp49_;
+#line 585 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp50_ = app;
+#line 585 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp51_ = g_application_run ((GApplication*) _tmp50_, 0, NULL);
+#line 585 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
result = _tmp51_;
+#line 585 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (app);
+#line 585 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (path);
+#line 585 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_scan_device_unref0 (device);
+#line 585 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_option_context_free0 (c);
+#line 585 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return result;
+#line 3719 "simple-scan.c"
}
int main (int argc, char ** argv) {
+#line 519 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_type_init ();
+#line 519 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return simple_scan_main (argv, argc);
+#line 3728 "simple-scan.c"
}
static void simple_scan_class_init (SimpleScanClass * klass) {
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
simple_scan_parent_class = g_type_class_peek_parent (klass);
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_type_class_add_private (klass, sizeof (SimpleScanPrivate));
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
G_APPLICATION_CLASS (klass)->startup = simple_scan_real_startup;
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
G_APPLICATION_CLASS (klass)->activate = simple_scan_real_activate;
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
G_APPLICATION_CLASS (klass)->shutdown = simple_scan_real_shutdown;
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
G_OBJECT_CLASS (klass)->finalize = simple_scan_finalize;
+#line 3745 "simple-scan.c"
}
static void simple_scan_instance_init (SimpleScan * self) {
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
self->priv = SIMPLE_SCAN_GET_PRIVATE (self);
+#line 32 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
self->priv->default_device = NULL;
+#line 33 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
self->priv->have_devices = FALSE;
+#line 3756 "simple-scan.c"
}
static void simple_scan_finalize (GObject* obj) {
SimpleScan * self;
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SIMPLE_SCAN, SimpleScan);
+#line 32 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_scan_device_unref0 (self->priv->default_device);
+#line 34 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (self->priv->udev_client);
+#line 35 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_user_interface_unref0 (self->priv->ui);
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_scanner_unref0 (self->priv->scanner);
+#line 37 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_book_unref0 (self->priv->book);
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
G_OBJECT_CLASS (simple_scan_parent_class)->finalize (obj);
+#line 3776 "simple-scan.c"
}
diff --git a/src/simple-scan.vala b/src/simple-scan.vala
index 1176053..14e70ea 100644
--- a/src/simple-scan.vala
+++ b/src/simple-scan.vala
@@ -350,7 +350,7 @@ public class SimpleScan : Gtk.Application
return path;
}
- private void email_cb (UserInterface ui, string profile)
+ private void email_cb (UserInterface ui, string profile, int quality)
{
var saved = false;
var command_line = "xdg-email";
@@ -366,7 +366,7 @@ public class SimpleScan : Gtk.Application
ui.show_progress_dialog ();
try
{
- book.save ("pdf", file);
+ book.save ("pdf", quality, file);
}
catch (Error e)
{
@@ -391,7 +391,7 @@ public class SimpleScan : Gtk.Application
var file = File.new_for_path (path);
try
{
- book.get_page (i).save ("jpeg", file);
+ book.get_page (i).save ("jpeg", quality, file);
}
catch (Error e)
{
@@ -466,7 +466,7 @@ public class SimpleScan : Gtk.Application
var line_number = 0;
var xref_offset = 0;
var xref_line = -1;
- var xref_regex = new Regex ("^\\d\\d\\d\\d\\d\\d\\d\\d\\d\\d 0000 n$");
+ var xref_regex = new Regex ("^\\d\\d\\d\\d\\d\\d\\d\\d\\d\\d 0000 n$", RegexCompileFlags.RAW);
MatchInfo xref_match;
var line = new StringBuilder ();
while (offset < data.length)
@@ -519,15 +519,15 @@ public class SimpleScan : Gtk.Application
public static int main (string[] args)
{
Intl.setlocale (LocaleCategory.ALL, "");
- Intl.bindtextdomain (Config.GETTEXT_PACKAGE, Config.LOCALE_DIR);
- Intl.bind_textdomain_codeset (Config.GETTEXT_PACKAGE, "UTF-8");
- Intl.textdomain (Config.GETTEXT_PACKAGE);
+ Intl.bindtextdomain (GETTEXT_PACKAGE, LOCALE_DIR);
+ Intl.bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+ Intl.textdomain (GETTEXT_PACKAGE);
Gtk.init (ref args);
var c = new OptionContext (/* Arguments and description for --help text */
_("[DEVICE...] - Scanning utility"));
- c.add_main_entries (options, Config.GETTEXT_PACKAGE);
+ c.add_main_entries (options, GETTEXT_PACKAGE);
c.add_group (Gtk.get_option_group (true));
try
{
@@ -544,7 +544,7 @@ public class SimpleScan : Gtk.Application
if (show_version)
{
/* Note, not translated so can be easily parsed */
- stderr.printf ("simple-scan %s\n", Config.VERSION);
+ stderr.printf ("simple-scan %s\n", VERSION);
return Posix.EXIT_SUCCESS;
}
if (fix_pdf_filename != null)
@@ -579,7 +579,7 @@ public class SimpleScan : Gtk.Application
log_file = FileStream.open (path, "w");
Log.set_default_handler (log_cb);
- debug ("Starting Simple Scan %s, PID=%i", Config.VERSION, Posix.getpid ());
+ debug ("Starting Simple Scan %s, PID=%i", VERSION, Posix.getpid ());
var app = new SimpleScan (device);
return app.run ();
diff --git a/src/ui.c b/src/ui.c
index 63d0613..4c0d0b5 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -1,4 +1,4 @@
-/* ui.c generated by valac 0.18.1, the Vala compiler
+/* ui.c generated by valac 0.20.1, the Vala compiler
* generated from ui.vala, do not modify */
/*
@@ -19,12 +19,11 @@
#include <stdlib.h>
#include <string.h>
#include <glib/gi18n-lib.h>
-#include <cairo.h>
#include <float.h>
#include <math.h>
+#include <cairo.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <gdk/gdk.h>
-#include "config.h"
#include <glib/gstdio.h>
#include <unistd.h>
#include <gobject/gvaluecollector.h>
@@ -61,6 +60,16 @@ typedef struct _ProgressBarDialogClass ProgressBarDialogClass;
typedef struct _Book Book;
typedef struct _BookClass BookClass;
+#define TYPE_AUTOSAVE_MANAGER (autosave_manager_get_type ())
+#define AUTOSAVE_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_AUTOSAVE_MANAGER, AutosaveManager))
+#define AUTOSAVE_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_AUTOSAVE_MANAGER, AutosaveManagerClass))
+#define IS_AUTOSAVE_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_AUTOSAVE_MANAGER))
+#define IS_AUTOSAVE_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_AUTOSAVE_MANAGER))
+#define AUTOSAVE_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_AUTOSAVE_MANAGER, AutosaveManagerClass))
+
+typedef struct _AutosaveManager AutosaveManager;
+typedef struct _AutosaveManagerClass AutosaveManagerClass;
+
#define TYPE_BOOK_VIEW (book_view_get_type ())
#define BOOK_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BOOK_VIEW, BookView))
#define BOOK_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BOOK_VIEW, BookViewClass))
@@ -85,6 +94,7 @@ typedef struct _PageClass PageClass;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
#define _book_unref0(var) ((var == NULL) ? NULL : (var = (book_unref (var), NULL)))
+#define _autosave_manager_unref0(var) ((var == NULL) ? NULL : (var = (autosave_manager_unref (var), NULL)))
#define TYPE_SCAN_DEVICE (scan_device_get_type ())
#define SCAN_DEVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SCAN_DEVICE, ScanDevice))
@@ -153,6 +163,7 @@ struct _UserInterfacePrivate {
GtkMenuItem* crop_rotate_menuitem;
GtkMenuItem* save_menuitem;
GtkMenuItem* save_as_menuitem;
+ GtkMenuItem* copy_to_clipboard_menuitem;
GtkToolButton* save_toolbutton;
GtkMenuItem* stop_menuitem;
GtkToolButton* stop_toolbutton;
@@ -170,11 +181,17 @@ struct _UserInterfacePrivate {
GtkComboBox* photo_dpi_combo;
GtkComboBox* page_side_combo;
GtkComboBox* paper_size_combo;
+ GtkScale* brightness_scale;
+ GtkScale* contrast_scale;
+ GtkScale* quality_scale;
GtkListStore* device_model;
GtkListStore* text_dpi_model;
GtkListStore* photo_dpi_model;
GtkListStore* page_side_model;
GtkListStore* paper_size_model;
+ GtkAdjustment* brightness_adjustment;
+ GtkAdjustment* contrast_adjustment;
+ GtkAdjustment* quality_adjustment;
gboolean setting_devices;
gboolean user_selected_device;
GtkFileChooserDialog* save_dialog;
@@ -185,6 +202,7 @@ struct _UserInterfacePrivate {
gboolean error_change_scanner_hint;
Book* book;
gchar* book_uri;
+ AutosaveManager* autosave_manager;
BookView* book_view;
gboolean updating_page_menu;
gint default_page_width;
@@ -236,6 +254,8 @@ struct _ScanOptions {
ScanType type;
gint paper_width;
gint paper_height;
+ gint brightness;
+ gint contrast;
};
struct _ScanOptionsClass {
@@ -279,6 +299,13 @@ void value_set_book (GValue* value, gpointer v_object);
void value_take_book (GValue* value, gpointer v_object);
gpointer value_get_book (const GValue* value);
GType book_get_type (void) G_GNUC_CONST;
+gpointer autosave_manager_ref (gpointer instance);
+void autosave_manager_unref (gpointer instance);
+GParamSpec* param_spec_autosave_manager (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void value_set_autosave_manager (GValue* value, gpointer v_object);
+void value_take_autosave_manager (GValue* value, gpointer v_object);
+gpointer value_get_autosave_manager (const GValue* value);
+GType autosave_manager_get_type (void) G_GNUC_CONST;
GType book_view_get_type (void) G_GNUC_CONST;
GType scan_direction_get_type (void) G_GNUC_CONST;
#define USER_INTERFACE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_USER_INTERFACE, UserInterfacePrivate))
@@ -303,6 +330,7 @@ UserInterface* user_interface_construct (GType object_type);
Book* book_new (void);
Book* book_construct (GType object_type);
static void user_interface_load (UserInterface* self);
+AutosaveManager* autosave_manager_create (Book** book);
static gboolean user_interface_find_scan_device (UserInterface* self, const gchar* device, GtkTreeIter* iter);
static void user_interface_show_error_dialog (UserInterface* self, const gchar* error_title, const gchar* error_text);
void user_interface_set_default_file_name (UserInterface* self, const gchar* default_file_name);
@@ -323,11 +351,13 @@ static void user_interface_add_default_page (UserInterface* self);
Page* book_append_page (Book* self, gint width, gint height, gint dpi, ScanDirection scan_direction);
void book_view_select_page (BookView* self, Page* page);
static void user_interface_on_file_type_changed (UserInterface* self, GtkTreeSelection* selection);
+static gchar* user_interface_get_selected_extension (UserInterface* self, GtkTreeSelection* selection);
static gchar* user_interface_choose_file_location (UserInterface* self);
static void _user_interface_on_file_type_changed_gtk_tree_selection_changed (GtkTreeSelection* _sender, gpointer self);
static gboolean user_interface_save_document (UserInterface* self, gboolean force_choose_location);
void user_interface_show_progress_dialog (UserInterface* self);
-void book_save (Book* self, const gchar* type, GFile* file, GError** error);
+void book_save (Book* self, const gchar* type, gint quality, GFile* file, GError** error);
+static gint user_interface_get_quality (UserInterface* self);
void user_interface_hide_progress_dialog (UserInterface* self);
void user_interface_show_error (UserInterface* self, const gchar* error_title, const gchar* error_text, gboolean change_scanner_hint);
void book_set_needs_saving (Book* self, gboolean needs_saving);
@@ -342,10 +372,15 @@ void G_MODULE_EXPORT photo_menuitem_toggled_cb (GtkCheckMenuItem* widget, UserIn
GType scan_type_get_type (void) G_GNUC_CONST;
static void user_interface_set_page_side (UserInterface* self, ScanType page_side);
static void user_interface_set_paper_size (UserInterface* self, gint width, gint height);
+static void user_interface_set_brightness (UserInterface* self, gint brightness);
+static void user_interface_set_contrast (UserInterface* self, gint contrast);
+static void user_interface_set_quality (UserInterface* self, gint quality);
static gint user_interface_get_text_dpi (UserInterface* self);
static gint user_interface_get_photo_dpi (UserInterface* self);
static ScanType user_interface_get_page_side (UserInterface* self);
static gboolean user_interface_get_paper_size (UserInterface* self, gint* width, gint* height);
+static gint user_interface_get_brightness (UserInterface* self);
+static gint user_interface_get_contrast (UserInterface* self);
gpointer scan_options_ref (gpointer instance);
void scan_options_unref (gpointer instance);
GParamSpec* param_spec_scan_options (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
@@ -372,7 +407,7 @@ gboolean page_has_crop (Page* self);
gchar* page_get_named_crop (Page* self);
static void user_interface_show_page_cb (UserInterface* self, BookView* view, Page* page);
gchar* get_temporary_filename (const gchar* prefix, const gchar* extension);
-void page_save (Page* self, const gchar* type, GFile* file, GError** error);
+void page_save (Page* self, const gchar* type, gint quality, GFile* file, GError** error);
static void user_interface_show_page_menu_cb (UserInterface* self, BookView* view);
void G_MODULE_EXPORT rotate_left_button_clicked_cb (GtkWidget* widget, UserInterface* self);
void page_rotate_left (Page* self);
@@ -403,6 +438,8 @@ void G_MODULE_EXPORT page_delete_menuitem_activate_cb (GtkWidget* widget, UserIn
Book* book_view_get_book (BookView* self);
void book_delete_page (Book* self, Page* page);
void G_MODULE_EXPORT save_file_button_clicked_cb (GtkWidget* widget, UserInterface* self);
+void G_MODULE_EXPORT copy_to_clipboard_button_clicked_cb (GtkWidget* widget, UserInterface* self);
+void page_copy_to_clipboard (Page* self, GtkWindow* window);
void G_MODULE_EXPORT save_as_file_button_clicked_cb (GtkWidget* widget, UserInterface* self);
static void user_interface_draw_page (UserInterface* self, GtkPrintOperation* operation, GtkPrintContext* print_context, gint page_number);
Page* book_get_page (Book* self, gint page_number);
@@ -415,6 +452,7 @@ static void _user_interface_draw_page_gtk_print_operation_draw_page (GtkPrintOpe
void G_MODULE_EXPORT help_contents_menuitem_activate_cb (GtkWidget* widget, UserInterface* self);
void G_MODULE_EXPORT about_menuitem_activate_cb (GtkWidget* widget, UserInterface* self);
static gboolean user_interface_on_quit (UserInterface* self);
+void autosave_manager_cleanup (AutosaveManager* self);
void G_MODULE_EXPORT quit_menuitem_activate_cb (GtkWidget* widget, UserInterface* self);
gboolean G_MODULE_EXPORT simple_scan_window_configure_event_cb (GtkWidget* widget, GdkEventConfigure* event, UserInterface* self);
static void user_interface_info_bar_response_cb (UserInterface* self, GtkInfoBar* widget, gint response_id);
@@ -438,8 +476,8 @@ ProgressBarDialog* progress_bar_dialog_new (GtkWindow* parent, const gchar* titl
ProgressBarDialog* progress_bar_dialog_construct (GType object_type, GtkWindow* parent, const gchar* title);
static void user_interface_book_saving_cb (UserInterface* self, gint page_number);
static void _user_interface_book_saving_cb_book_saving (Book* _sender, gint i, gpointer self);
-static gboolean ___lambda2_ (UserInterface* self);
-static gboolean ____lambda2__gsource_func (gpointer self);
+static gboolean ___lambda3_ (UserInterface* self);
+static gboolean ____lambda3__gsource_func (gpointer self);
void progress_bar_dialog_set_fraction (ProgressBarDialog* self, gdouble percent);
void progress_bar_dialog_set_message (ProgressBarDialog* self, const gchar* message);
Book* user_interface_get_book (UserInterface* self);
@@ -448,6 +486,7 @@ Page* user_interface_get_selected_page (UserInterface* self);
void user_interface_set_scanning (UserInterface* self, gboolean scanning);
void user_interface_start (UserInterface* self);
static void g_cclosure_user_marshal_VOID__STRING_SCAN_OPTIONS (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data);
+static void g_cclosure_user_marshal_VOID__STRING_INT (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data);
static void user_interface_finalize (UserInterface* obj);
#define PROGRESS_BAR_DIALOG_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_PROGRESS_BAR_DIALOG, ProgressBarDialogPrivate))
enum {
@@ -459,39 +498,66 @@ static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify
static void _user_interface_page_removed_cb_book_page_removed (Book* _sender, Page* page, gpointer self) {
+#line 117 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_page_removed_cb (self, _sender, page);
+#line 504 "ui.c"
}
static void _user_interface_page_added_cb_book_page_added (Book* _sender, Page* page, gpointer self) {
+#line 118 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_page_added_cb (self, _sender, page);
+#line 511 "ui.c"
}
UserInterface* user_interface_construct (GType object_type) {
UserInterface* self = NULL;
- Book* _tmp0_;
+ GSettings* _tmp0_;
Book* _tmp1_;
Book* _tmp2_;
- GSettings* _tmp3_;
+ Book* _tmp3_;
+ AutosaveManager* _tmp4_ = NULL;
+#line 102 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self = (UserInterface*) g_type_create_instance (object_type);
- _tmp0_ = book_new ();
+#line 104 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp0_ = g_settings_new ("org.gnome.SimpleScan");
+#line 104 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _g_object_unref0 (self->priv->settings);
+#line 104 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ self->priv->settings = _tmp0_;
+#line 106 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp1_ = book_new ();
+#line 106 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_book_unref0 (self->priv->book);
- self->priv->book = _tmp0_;
- _tmp1_ = self->priv->book;
- g_signal_connect (_tmp1_, "page-removed", (GCallback) _user_interface_page_removed_cb_book_page_removed, self);
+#line 106 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ self->priv->book = _tmp1_;
+#line 107 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = self->priv->book;
- g_signal_connect (_tmp2_, "page-added", (GCallback) _user_interface_page_added_cb_book_page_added, self);
- _tmp3_ = g_settings_new ("org.gnome.SimpleScan");
- _g_object_unref0 (self->priv->settings);
- self->priv->settings = _tmp3_;
+#line 107 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ g_signal_connect (_tmp2_, "page-removed", (GCallback) _user_interface_page_removed_cb_book_page_removed, self);
+#line 108 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp3_ = self->priv->book;
+#line 108 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ g_signal_connect (_tmp3_, "page-added", (GCallback) _user_interface_page_added_cb_book_page_added, self);
+#line 110 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_load (self);
+#line 112 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp4_ = autosave_manager_create (&self->priv->book);
+#line 112 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _autosave_manager_unref0 (self->priv->autosave_manager);
+#line 112 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ self->priv->autosave_manager = _tmp4_;
+#line 102 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return self;
+#line 554 "ui.c"
}
UserInterface* user_interface_new (void) {
+#line 102 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return user_interface_construct (TYPE_USER_INTERFACE);
+#line 561 "ui.c"
}
@@ -502,61 +568,105 @@ static gboolean user_interface_find_scan_device (UserInterface* self, const gcha
GtkListStore* _tmp0_;
GtkTreeIter _tmp1_ = {0};
gboolean _tmp2_ = FALSE;
+#line 121 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (self != NULL, FALSE);
+#line 121 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (device != NULL, FALSE);
+#line 123 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
have_iter = FALSE;
+#line 125 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = self->priv->device_model;
+#line 125 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = gtk_tree_model_get_iter_first ((GtkTreeModel*) _tmp0_, &_tmp1_);
+#line 125 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_vala_iter = _tmp1_;
+#line 125 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp2_) {
+#line 586 "ui.c"
{
gboolean _tmp3_;
+#line 127 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = TRUE;
+#line 127 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
while (TRUE) {
+#line 593 "ui.c"
gboolean _tmp4_;
gchar* d = NULL;
GtkListStore* _tmp10_;
GtkTreeIter _tmp11_;
const gchar* _tmp12_;
const gchar* _tmp13_;
+#line 127 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = _tmp3_;
+#line 127 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (!_tmp4_) {
+#line 604 "ui.c"
gboolean _tmp5_ = FALSE;
gboolean _tmp6_;
gboolean _tmp9_;
+#line 133 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp6_ = have_iter;
+#line 133 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (!_tmp6_) {
+#line 612 "ui.c"
GtkListStore* _tmp7_;
gboolean _tmp8_ = FALSE;
+#line 133 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp7_ = self->priv->device_model;
+#line 133 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp8_ = gtk_tree_model_iter_next ((GtkTreeModel*) _tmp7_, &_vala_iter);
+#line 133 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_ = _tmp8_;
+#line 621 "ui.c"
} else {
+#line 133 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_ = FALSE;
+#line 625 "ui.c"
}
+#line 133 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp9_ = _tmp5_;
+#line 133 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (!_tmp9_) {
+#line 133 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
+#line 633 "ui.c"
}
}
+#line 127 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = FALSE;
+#line 130 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp10_ = self->priv->device_model;
+#line 130 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp11_ = _vala_iter;
+#line 130 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_tree_model_get ((GtkTreeModel*) _tmp10_, &_tmp11_, 0, &d, -1, -1);
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp12_ = d;
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp13_ = device;
+#line 131 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (g_strcmp0 (_tmp12_, _tmp13_) == 0) {
+#line 132 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
have_iter = TRUE;
+#line 652 "ui.c"
}
+#line 127 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (d);
+#line 656 "ui.c"
}
}
}
+#line 136 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = have_iter;
+#line 136 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (iter) {
+#line 136 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
*iter = _vala_iter;
+#line 666 "ui.c"
}
+#line 136 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
+#line 670 "ui.c"
}
@@ -566,31 +676,52 @@ static void user_interface_show_error_dialog (UserInterface* self, const gchar*
GtkMessageDialog* _tmp2_;
GtkMessageDialog* dialog;
const gchar* _tmp3_;
+#line 139 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 139 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (error_title != NULL);
+#line 139 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (error_text != NULL);
+#line 141 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = self->priv->window;
+#line 141 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = error_title;
+#line 141 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = (GtkMessageDialog*) gtk_message_dialog_new (_tmp0_, GTK_DIALOG_MODAL, GTK_MESSAGE_WARNING, GTK_BUTTONS_NONE, "%s", _tmp1_);
+#line 141 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_object_ref_sink (_tmp2_);
+#line 141 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
dialog = _tmp2_;
+#line 146 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_dialog_add_button ((GtkDialog*) dialog, GTK_STOCK_CLOSE, 0);
+#line 147 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = error_text;
+#line 147 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_message_dialog_format_secondary_text (dialog, "%s", _tmp3_);
+#line 148 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_destroy ((GtkWidget*) dialog);
+#line 139 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (dialog);
+#line 706 "ui.c"
}
void user_interface_set_default_file_name (UserInterface* self, const gchar* default_file_name) {
const gchar* _tmp0_;
gchar* _tmp1_;
+#line 151 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 151 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (default_file_name != NULL);
+#line 153 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = default_file_name;
+#line 153 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = g_strdup (_tmp0_);
+#line 153 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (self->priv->default_file_name);
+#line 153 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->default_file_name = _tmp1_;
+#line 725 "ui.c"
}
@@ -613,57 +744,104 @@ void user_interface_authorize (UserInterface* self, const gchar* resource, gchar
GtkEntry* _tmp12_;
const gchar* _tmp13_ = NULL;
gchar* _tmp14_;
+#line 156 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 156 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (resource != NULL);
+#line 159 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = _ ("Username and password required to access '%s'");
+#line 159 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = resource;
+#line 159 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = g_strdup_printf (_tmp0_, _tmp1_);
+#line 159 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
description = _tmp2_;
+#line 161 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = self->priv->username_entry;
+#line 161 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_entry_set_text (_tmp3_, "");
+#line 162 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = self->priv->password_entry;
+#line 162 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_entry_set_text (_tmp4_, "");
+#line 163 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_ = self->priv->authorize_label;
+#line 163 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_label_set_text (_tmp5_, description);
+#line 165 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp6_ = self->priv->authorize_dialog;
+#line 165 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_show ((GtkWidget*) _tmp6_);
+#line 166 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp7_ = self->priv->authorize_dialog;
+#line 166 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_dialog_run (_tmp7_);
+#line 167 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp8_ = self->priv->authorize_dialog;
+#line 167 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_hide ((GtkWidget*) _tmp8_);
+#line 169 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp9_ = self->priv->username_entry;
+#line 169 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp10_ = gtk_entry_get_text (_tmp9_);
+#line 169 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp11_ = g_strdup (_tmp10_);
+#line 169 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (_vala_username);
+#line 169 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_vala_username = _tmp11_;
+#line 170 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp12_ = self->priv->password_entry;
+#line 170 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp13_ = gtk_entry_get_text (_tmp12_);
+#line 170 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp14_ = g_strdup (_tmp13_);
+#line 170 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (_vala_password);
+#line 170 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_vala_password = _tmp14_;
+#line 156 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (description);
+#line 156 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (username) {
+#line 156 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
*username = _vala_username;
+#line 810 "ui.c"
} else {
+#line 156 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (_vala_username);
+#line 814 "ui.c"
}
+#line 156 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (password) {
+#line 156 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
*password = _vala_password;
+#line 820 "ui.c"
} else {
+#line 156 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (_vala_password);
+#line 824 "ui.c"
}
}
void G_MODULE_EXPORT device_combo_changed_cb (GtkWidget* widget, UserInterface* self) {
gboolean _tmp0_;
+#line 174 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 174 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (widget != NULL);
+#line 176 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = self->priv->setting_devices;
+#line 176 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp0_) {
+#line 177 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
+#line 841 "ui.c"
}
+#line 178 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->user_selected_device = TRUE;
+#line 845 "ui.c"
}
@@ -690,95 +868,169 @@ static void user_interface_update_info_bar (UserInterface* self) {
GtkButton* _tmp26_;
gboolean _tmp27_;
GtkInfoBar* _tmp28_;
+#line 181 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 185 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
show_close_button = FALSE;
+#line 186 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
show_change_scanner_button = FALSE;
+#line 188 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = self->priv->have_error;
+#line 188 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp0_) {
+#line 882 "ui.c"
gchar* _tmp1_;
const gchar* _tmp2_;
gchar* _tmp3_;
const gchar* _tmp4_;
gchar* _tmp5_;
gboolean _tmp6_;
+#line 190 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
type = GTK_MESSAGE_ERROR;
+#line 191 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = g_strdup (GTK_STOCK_DIALOG_ERROR);
+#line 191 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (image_id);
+#line 191 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
image_id = _tmp1_;
+#line 192 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = self->priv->error_title;
+#line 192 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = g_strdup (_tmp2_);
+#line 192 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (title);
+#line 192 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
title = _tmp3_;
+#line 193 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = self->priv->error_text;
+#line 193 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_ = g_strdup (_tmp4_);
+#line 193 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (text);
+#line 193 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
text = _tmp5_;
+#line 194 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
show_close_button = TRUE;
+#line 195 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp6_ = self->priv->error_change_scanner_hint;
+#line 195 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
show_change_scanner_button = _tmp6_;
+#line 919 "ui.c"
} else {
GtkListStore* _tmp7_;
gint _tmp8_ = 0;
+#line 197 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp7_ = self->priv->device_model;
+#line 197 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp8_ = gtk_tree_model_iter_n_children ((GtkTreeModel*) _tmp7_, NULL);
+#line 197 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp8_ == 0) {
+#line 929 "ui.c"
gchar* _tmp9_;
const gchar* _tmp10_ = NULL;
gchar* _tmp11_;
const gchar* _tmp12_ = NULL;
gchar* _tmp13_;
+#line 199 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
type = GTK_MESSAGE_WARNING;
+#line 200 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp9_ = g_strdup (GTK_STOCK_DIALOG_WARNING);
+#line 200 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (image_id);
+#line 200 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
image_id = _tmp9_;
+#line 202 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp10_ = _ ("No scanners detected");
+#line 202 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp11_ = g_strdup (_tmp10_);
+#line 202 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (title);
+#line 202 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
title = _tmp11_;
+#line 204 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp12_ = _ ("Please check your scanner is connected and powered on");
+#line 204 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp13_ = g_strdup (_tmp12_);
+#line 204 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (text);
+#line 204 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
text = _tmp13_;
+#line 959 "ui.c"
} else {
GtkInfoBar* _tmp14_;
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp14_ = self->priv->info_bar;
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_hide ((GtkWidget*) _tmp14_);
+#line 209 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (image_id);
+#line 209 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (text);
+#line 209 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (title);
+#line 209 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
+#line 974 "ui.c"
}
}
+#line 212 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp15_ = self->priv->info_bar;
+#line 212 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp16_ = type;
+#line 212 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_info_bar_set_message_type (_tmp15_, _tmp16_);
+#line 213 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp17_ = self->priv->info_bar_image;
+#line 213 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp18_ = image_id;
+#line 213 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_image_set_from_stock (_tmp17_, _tmp18_, GTK_ICON_SIZE_DIALOG);
+#line 214 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp19_ = title;
+#line 214 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp20_ = text;
+#line 214 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp21_ = g_strdup_printf ("<big><b>%s</b></big>\n\n%s", _tmp19_, _tmp20_);
+#line 214 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
message = _tmp21_;
+#line 215 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp22_ = self->priv->info_bar_label;
+#line 215 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp23_ = message;
+#line 215 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_label_set_markup (_tmp22_, _tmp23_);
+#line 216 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp24_ = self->priv->info_bar_close_button;
+#line 216 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp25_ = show_close_button;
+#line 216 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_set_visible ((GtkWidget*) _tmp24_, _tmp25_);
+#line 217 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp26_ = self->priv->info_bar_change_scanner_button;
+#line 217 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp27_ = show_change_scanner_button;
+#line 217 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_set_visible ((GtkWidget*) _tmp26_, _tmp27_);
+#line 218 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp28_ = self->priv->info_bar;
+#line 218 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_show ((GtkWidget*) _tmp28_);
+#line 181 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (message);
+#line 181 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (image_id);
+#line 181 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (text);
+#line 181 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (title);
+#line 1027 "ui.c"
}
static gpointer _scan_device_ref0 (gpointer self) {
+#line 235 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return self ? scan_device_ref (self) : NULL;
+#line 1034 "ui.c"
}
@@ -791,28 +1043,47 @@ void user_interface_set_scan_devices (UserInterface* self, GList* devices) {
gboolean _tmp52_ = FALSE;
gboolean _tmp53_;
gboolean _tmp55_;
+#line 221 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 223 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
have_selection = FALSE;
+#line 227 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->setting_devices = TRUE;
+#line 230 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = self->priv->user_selected_device;
+#line 230 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp0_) {
+#line 1057 "ui.c"
GtkComboBox* _tmp1_;
gint _tmp2_ = 0;
+#line 231 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = self->priv->device_combo;
+#line 231 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = gtk_combo_box_get_active (_tmp1_);
+#line 231 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
have_selection = _tmp2_ >= 0;
+#line 1066 "ui.c"
}
+#line 234 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
index = 0;
+#line 235 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = devices;
+#line 1072 "ui.c"
{
GList* device_collection = NULL;
GList* device_it = NULL;
+#line 235 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
device_collection = _tmp3_;
+#line 235 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
for (device_it = device_collection; device_it != NULL; device_it = device_it->next) {
+#line 1080 "ui.c"
ScanDevice* _tmp4_;
ScanDevice* device = NULL;
+#line 235 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = _scan_device_ref0 ((ScanDevice*) device_it->data);
+#line 235 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
device = _tmp4_;
+#line 1087 "ui.c"
{
gint n_delete;
GtkListStore* _tmp5_;
@@ -821,18 +1092,30 @@ void user_interface_set_scan_devices (UserInterface* self, GList* devices) {
gboolean _tmp8_ = FALSE;
gint _tmp21_;
gint _tmp45_;
+#line 237 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
n_delete = -1;
+#line 240 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_ = self->priv->device_model;
+#line 240 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp6_ = index;
+#line 240 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp8_ = gtk_tree_model_iter_nth_child ((GtkTreeModel*) _tmp5_, &_tmp7_, NULL, _tmp6_);
+#line 240 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
iter = _tmp7_;
+#line 240 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp8_) {
+#line 1108 "ui.c"
gint i;
+#line 242 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
i = 0;
+#line 1112 "ui.c"
{
gboolean _tmp9_;
+#line 243 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp9_ = TRUE;
+#line 243 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
while (TRUE) {
+#line 1119 "ui.c"
gboolean _tmp10_;
gchar* name = NULL;
gboolean matched = FALSE;
@@ -843,55 +1126,96 @@ void user_interface_set_scan_devices (UserInterface* self, GList* devices) {
const gchar* _tmp17_;
gboolean _tmp18_;
gint _tmp20_;
+#line 243 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp10_ = _tmp9_;
+#line 243 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (!_tmp10_) {
+#line 1134 "ui.c"
GtkListStore* _tmp11_;
gboolean _tmp12_ = FALSE;
+#line 257 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp11_ = self->priv->device_model;
+#line 257 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp12_ = gtk_tree_model_iter_next ((GtkTreeModel*) _tmp11_, &iter);
+#line 257 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (!_tmp12_) {
+#line 257 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
+#line 1145 "ui.c"
}
}
+#line 243 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp9_ = FALSE;
+#line 248 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp13_ = self->priv->device_model;
+#line 248 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp14_ = iter;
+#line 248 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_tree_model_get ((GtkTreeModel*) _tmp13_, &_tmp14_, 0, &name, -1, -1);
+#line 249 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp15_ = name;
+#line 249 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp16_ = device;
+#line 249 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp17_ = _tmp16_->name;
+#line 249 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
matched = g_strcmp0 (_tmp15_, _tmp17_) == 0;
+#line 251 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp18_ = matched;
+#line 251 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp18_) {
+#line 1168 "ui.c"
gint _tmp19_;
+#line 253 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp19_ = i;
+#line 253 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
n_delete = _tmp19_;
+#line 254 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (name);
+#line 254 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
+#line 1178 "ui.c"
}
+#line 256 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp20_ = i;
+#line 256 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
i = _tmp20_ + 1;
+#line 243 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (name);
+#line 1186 "ui.c"
}
}
}
+#line 261 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp21_ = n_delete;
+#line 261 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp21_ >= 0) {
+#line 1194 "ui.c"
gint i = 0;
GtkListStore* _tmp22_;
GtkTreeIter _tmp23_;
ScanDevice* _tmp24_;
const gchar* _tmp25_;
+#line 266 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp22_ = self->priv->device_model;
+#line 266 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp23_ = iter;
+#line 266 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp24_ = device;
+#line 266 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp25_ = _tmp24_->label;
+#line 266 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_list_store_set (_tmp22_, &_tmp23_, 1, _tmp25_, -1, -1);
+#line 1210 "ui.c"
{
gboolean _tmp26_;
+#line 268 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
i = 0;
+#line 268 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp26_ = TRUE;
+#line 268 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
while (TRUE) {
+#line 1219 "ui.c"
gboolean _tmp27_;
gint _tmp29_;
gint _tmp30_;
@@ -900,25 +1224,45 @@ void user_interface_set_scan_devices (UserInterface* self, GList* devices) {
GtkTreeIter _tmp33_ = {0};
GtkListStore* _tmp34_;
GtkTreeIter _tmp35_;
+#line 268 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp27_ = _tmp26_;
+#line 268 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (!_tmp27_) {
+#line 1232 "ui.c"
gint _tmp28_;
+#line 268 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp28_ = i;
+#line 268 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
i = _tmp28_ + 1;
+#line 1238 "ui.c"
}
+#line 268 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp26_ = FALSE;
+#line 268 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp29_ = i;
+#line 268 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp30_ = n_delete;
+#line 268 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (!(_tmp29_ < _tmp30_)) {
+#line 268 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
+#line 1250 "ui.c"
}
+#line 270 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp31_ = self->priv->device_model;
+#line 270 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp32_ = index;
+#line 270 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_tree_model_iter_nth_child ((GtkTreeModel*) _tmp31_, &_tmp33_, NULL, _tmp32_);
+#line 270 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
iter = _tmp33_;
+#line 271 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp34_ = self->priv->device_model;
+#line 271 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp35_ = iter;
+#line 271 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_list_store_remove (_tmp34_, &_tmp35_);
+#line 1266 "ui.c"
}
}
} else {
@@ -931,58 +1275,104 @@ void user_interface_set_scan_devices (UserInterface* self, GList* devices) {
const gchar* _tmp42_;
ScanDevice* _tmp43_;
const gchar* _tmp44_;
+#line 276 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp36_ = self->priv->device_model;
+#line 276 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp37_ = index;
+#line 276 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_list_store_insert (_tmp36_, &_tmp38_, _tmp37_);
+#line 276 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
iter = _tmp38_;
+#line 277 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp39_ = self->priv->device_model;
+#line 277 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp40_ = iter;
+#line 277 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp41_ = device;
+#line 277 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp42_ = _tmp41_->name;
+#line 277 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp43_ = device;
+#line 277 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp44_ = _tmp43_->label;
+#line 277 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_list_store_set (_tmp39_, &_tmp40_, 0, _tmp42_, 1, _tmp44_, -1, -1);
+#line 1301 "ui.c"
}
+#line 279 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp45_ = index;
+#line 279 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
index = _tmp45_ + 1;
+#line 235 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_scan_device_unref0 (device);
+#line 1309 "ui.c"
}
}
}
+#line 283 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
while (TRUE) {
+#line 1315 "ui.c"
GtkListStore* _tmp46_;
gint _tmp47_;
GtkTreeIter _tmp48_ = {0};
gboolean _tmp49_ = FALSE;
GtkListStore* _tmp50_;
GtkTreeIter _tmp51_;
+#line 283 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp46_ = self->priv->device_model;
+#line 283 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp47_ = index;
+#line 283 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp49_ = gtk_tree_model_iter_nth_child ((GtkTreeModel*) _tmp46_, &_tmp48_, NULL, _tmp47_);
+#line 283 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
iter = _tmp48_;
+#line 283 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (!_tmp49_) {
+#line 283 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
+#line 1334 "ui.c"
}
+#line 284 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp50_ = self->priv->device_model;
+#line 284 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp51_ = iter;
+#line 284 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_list_store_remove (_tmp50_, &_tmp51_);
+#line 1342 "ui.c"
}
+#line 287 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp53_ = have_selection;
+#line 287 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (!_tmp53_) {
+#line 1348 "ui.c"
GList* _tmp54_;
+#line 287 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp54_ = devices;
+#line 287 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp52_ = _tmp54_ != NULL;
+#line 1354 "ui.c"
} else {
+#line 287 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp52_ = FALSE;
+#line 1358 "ui.c"
}
+#line 287 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp55_ = _tmp52_;
+#line 287 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp55_) {
+#line 1364 "ui.c"
GtkComboBox* _tmp56_;
+#line 288 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp56_ = self->priv->device_combo;
+#line 288 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_combo_box_set_active (_tmp56_, 0);
+#line 1370 "ui.c"
}
+#line 290 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->setting_devices = FALSE;
+#line 292 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_update_info_bar (self);
+#line 1376 "ui.c"
}
@@ -992,22 +1382,37 @@ static gchar* user_interface_get_selected_device (UserInterface* self) {
GtkComboBox* _tmp0_;
GtkTreeIter _tmp1_ = {0};
gboolean _tmp2_ = FALSE;
+#line 295 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (self != NULL, NULL);
+#line 299 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = self->priv->device_combo;
+#line 299 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = gtk_combo_box_get_active_iter (_tmp0_, &_tmp1_);
+#line 299 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
iter = _tmp1_;
+#line 299 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp2_) {
+#line 1396 "ui.c"
gchar* device = NULL;
GtkListStore* _tmp3_;
GtkTreeIter _tmp4_;
+#line 302 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = self->priv->device_model;
+#line 302 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = iter;
+#line 302 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_tree_model_get ((GtkTreeModel*) _tmp3_, &_tmp4_, 0, &device, -1, -1);
+#line 303 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = device;
+#line 303 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
+#line 1410 "ui.c"
}
+#line 306 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = NULL;
+#line 306 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
+#line 1416 "ui.c"
}
@@ -1018,18 +1423,31 @@ void user_interface_set_selected_device (UserInterface* self, const gchar* devic
gboolean _tmp2_ = FALSE;
GtkComboBox* _tmp3_;
GtkTreeIter _tmp4_;
+#line 309 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 309 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (device != NULL);
+#line 312 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = device;
+#line 312 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = user_interface_find_scan_device (self, _tmp0_, &_tmp1_);
+#line 312 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
iter = _tmp1_;
+#line 312 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (!_tmp2_) {
+#line 313 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
+#line 1441 "ui.c"
}
+#line 315 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = self->priv->device_combo;
+#line 315 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = iter;
+#line 315 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_combo_box_set_active_iter (_tmp3_, &_tmp4_);
+#line 316 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->user_selected_device = TRUE;
+#line 1451 "ui.c"
}
@@ -1042,22 +1460,29 @@ static void user_interface_add_default_page (UserInterface* self) {
Page* _tmp5_ = NULL;
Page* page;
BookView* _tmp6_;
+#line 319 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 321 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = self->priv->book;
+#line 321 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = self->priv->default_page_width;
+#line 321 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = self->priv->default_page_height;
+#line 321 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = self->priv->default_page_dpi;
+#line 321 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = self->priv->default_page_scan_direction;
+#line 321 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_ = book_append_page (_tmp0_, _tmp1_, _tmp2_, _tmp3_, _tmp4_);
+#line 321 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
page = _tmp5_;
+#line 325 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp6_ = self->priv->book_view;
+#line 325 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
book_view_select_page (_tmp6_, page);
+#line 319 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_page_unref0 (page);
-}
-
-
-static gpointer _g_object_ref0 (gpointer self) {
- return self ? g_object_ref (self) : NULL;
+#line 1486 "ui.c"
}
@@ -1068,20 +1493,35 @@ static gint string_last_index_of_char (const gchar* self, gunichar c, gint start
gchar* _tmp2_ = NULL;
gchar* _result_;
gchar* _tmp3_;
+#line 928 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
g_return_val_if_fail (self != NULL, 0);
+#line 929 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp0_ = start_index;
+#line 929 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp1_ = c;
+#line 929 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp2_ = g_utf8_strrchr (((gchar*) self) + _tmp0_, (gssize) (-1), _tmp1_);
+#line 929 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_result_ = _tmp2_;
+#line 931 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp3_ = _result_;
+#line 931 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
if (_tmp3_ != NULL) {
+#line 1511 "ui.c"
gchar* _tmp4_;
+#line 932 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp4_ = _result_;
+#line 932 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
result = (gint) (_tmp4_ - ((gchar*) self));
+#line 932 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
return result;
+#line 1519 "ui.c"
} else {
+#line 934 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
result = -1;
+#line 934 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
return result;
+#line 1525 "ui.c"
}
}
@@ -1105,140 +1545,441 @@ static gchar* string_slice (const gchar* self, glong start, glong end) {
glong _tmp21_;
glong _tmp22_;
gchar* _tmp23_ = NULL;
+#line 1190 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
g_return_val_if_fail (self != NULL, NULL);
+#line 1191 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp0_ = strlen (self);
+#line 1191 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp1_ = _tmp0_;
+#line 1191 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
string_length = (glong) _tmp1_;
+#line 1192 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp2_ = start;
+#line 1192 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
if (_tmp2_ < ((glong) 0)) {
+#line 1561 "ui.c"
glong _tmp3_;
glong _tmp4_;
+#line 1193 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp3_ = string_length;
+#line 1193 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp4_ = start;
+#line 1193 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
start = _tmp3_ + _tmp4_;
+#line 1570 "ui.c"
}
+#line 1195 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp5_ = end;
+#line 1195 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
if (_tmp5_ < ((glong) 0)) {
+#line 1576 "ui.c"
glong _tmp6_;
glong _tmp7_;
+#line 1196 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp6_ = string_length;
+#line 1196 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp7_ = end;
+#line 1196 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
end = _tmp6_ + _tmp7_;
+#line 1585 "ui.c"
}
+#line 1198 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp9_ = start;
+#line 1198 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
if (_tmp9_ >= ((glong) 0)) {
+#line 1591 "ui.c"
glong _tmp10_;
glong _tmp11_;
+#line 1198 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp10_ = start;
+#line 1198 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp11_ = string_length;
+#line 1198 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp8_ = _tmp10_ <= _tmp11_;
+#line 1600 "ui.c"
} else {
+#line 1198 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp8_ = FALSE;
+#line 1604 "ui.c"
}
+#line 1198 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp12_ = _tmp8_;
+#line 1198 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
g_return_val_if_fail (_tmp12_, NULL);
+#line 1199 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp14_ = end;
+#line 1199 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
if (_tmp14_ >= ((glong) 0)) {
+#line 1614 "ui.c"
glong _tmp15_;
glong _tmp16_;
+#line 1199 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp15_ = end;
+#line 1199 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp16_ = string_length;
+#line 1199 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp13_ = _tmp15_ <= _tmp16_;
+#line 1623 "ui.c"
} else {
+#line 1199 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp13_ = FALSE;
+#line 1627 "ui.c"
}
+#line 1199 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp17_ = _tmp13_;
+#line 1199 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
g_return_val_if_fail (_tmp17_, NULL);
+#line 1200 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp18_ = start;
+#line 1200 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp19_ = end;
+#line 1200 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
g_return_val_if_fail (_tmp18_ <= _tmp19_, NULL);
+#line 1201 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp20_ = start;
+#line 1201 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp21_ = end;
+#line 1201 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp22_ = start;
+#line 1201 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
_tmp23_ = g_strndup (((gchar*) self) + _tmp20_, (gsize) (_tmp21_ - _tmp22_));
+#line 1201 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
result = _tmp23_;
+#line 1201 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
return result;
+#line 1651 "ui.c"
}
static void user_interface_on_file_type_changed (UserInterface* self, GtkTreeSelection* selection) {
- GtkTreeModel* model = NULL;
- GtkTreeIter iter = {0};
GtkTreeSelection* _tmp0_;
- GtkTreeModel* _tmp1_ = NULL;
- GtkTreeIter _tmp2_ = {0};
- gboolean _tmp3_ = FALSE;
- GtkTreeModel* _tmp4_;
- gchar* extension = NULL;
- GtkTreeModel* _tmp5_;
- GtkTreeIter _tmp6_;
- GtkFileChooserDialog* _tmp7_;
- gchar* _tmp8_ = NULL;
+ gchar* _tmp1_ = NULL;
+ gchar* extension;
+ GtkFileChooserDialog* _tmp2_;
+ gchar* _tmp3_ = NULL;
gchar* path;
- const gchar* _tmp9_;
- gchar* _tmp10_ = NULL;
+ const gchar* _tmp4_;
+ gchar* _tmp5_ = NULL;
gchar* filename;
- const gchar* _tmp11_;
- gint _tmp12_ = 0;
+ const gchar* _tmp6_;
+ gint _tmp7_ = 0;
gint extension_index;
- gint _tmp13_;
- const gchar* _tmp17_;
- const gchar* _tmp18_;
- gchar* _tmp19_;
- GtkFileChooserDialog* _tmp20_;
- const gchar* _tmp21_;
+ gint _tmp8_;
+ const gchar* _tmp12_;
+ const gchar* _tmp13_;
+ gchar* _tmp14_;
+ GtkFileChooserDialog* _tmp15_;
+ const gchar* _tmp16_;
+#line 328 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 328 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (selection != NULL);
+#line 330 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = selection;
- _tmp3_ = gtk_tree_selection_get_selected (_tmp0_, &_tmp1_, &_tmp2_);
- _g_object_unref0 (model);
- _tmp4_ = _g_object_ref0 (_tmp1_);
- model = _tmp4_;
- iter = _tmp2_;
- if (!_tmp3_) {
- _g_object_unref0 (model);
- return;
- }
- _tmp5_ = model;
- _tmp6_ = iter;
- gtk_tree_model_get (_tmp5_, &_tmp6_, 1, &extension, -1, -1);
- _tmp7_ = self->priv->save_dialog;
- _tmp8_ = gtk_file_chooser_get_filename ((GtkFileChooser*) _tmp7_);
- path = _tmp8_;
- _tmp9_ = path;
- _tmp10_ = g_path_get_basename (_tmp9_);
- filename = _tmp10_;
- _tmp11_ = filename;
- _tmp12_ = string_last_index_of_char (_tmp11_, (gunichar) '.', 0);
- extension_index = _tmp12_;
- _tmp13_ = extension_index;
- if (_tmp13_ >= 0) {
- const gchar* _tmp14_;
- gint _tmp15_;
- gchar* _tmp16_ = NULL;
- _tmp14_ = filename;
- _tmp15_ = extension_index;
- _tmp16_ = string_slice (_tmp14_, (glong) 0, (glong) _tmp15_);
+#line 330 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp1_ = user_interface_get_selected_extension (self, _tmp0_);
+#line 330 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ extension = _tmp1_;
+#line 331 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp2_ = self->priv->save_dialog;
+#line 331 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp3_ = gtk_file_chooser_get_filename ((GtkFileChooser*) _tmp2_);
+#line 331 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ path = _tmp3_;
+#line 332 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp4_ = path;
+#line 332 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp5_ = g_path_get_basename (_tmp4_);
+#line 332 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ filename = _tmp5_;
+#line 335 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp6_ = filename;
+#line 335 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp7_ = string_last_index_of_char (_tmp6_, (gunichar) '.', 0);
+#line 335 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ extension_index = _tmp7_;
+#line 336 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp8_ = extension_index;
+#line 336 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ if (_tmp8_ >= 0) {
+#line 1706 "ui.c"
+ const gchar* _tmp9_;
+ gint _tmp10_;
+ gchar* _tmp11_ = NULL;
+#line 337 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp9_ = filename;
+#line 337 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp10_ = extension_index;
+#line 337 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp11_ = string_slice (_tmp9_, (glong) 0, (glong) _tmp10_);
+#line 337 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (filename);
- filename = _tmp16_;
- }
- _tmp17_ = filename;
- _tmp18_ = extension;
- _tmp19_ = g_strconcat (_tmp17_, _tmp18_, NULL);
+#line 337 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ filename = _tmp11_;
+#line 1720 "ui.c"
+ }
+#line 338 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp12_ = filename;
+#line 338 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp13_ = extension;
+#line 338 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp14_ = g_strconcat (_tmp12_, _tmp13_, NULL);
+#line 338 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (filename);
- filename = _tmp19_;
- _tmp20_ = self->priv->save_dialog;
- _tmp21_ = filename;
- gtk_file_chooser_set_current_name ((GtkFileChooser*) _tmp20_, _tmp21_);
+#line 338 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ filename = _tmp14_;
+#line 339 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp15_ = self->priv->save_dialog;
+#line 339 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp16_ = filename;
+#line 339 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ gtk_file_chooser_set_current_name ((GtkFileChooser*) _tmp15_, _tmp16_);
+#line 328 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (filename);
+#line 328 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (path);
+#line 328 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (extension);
+#line 1744 "ui.c"
+}
+
+
+static gpointer _g_object_ref0 (gpointer self) {
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ return self ? g_object_ref (self) : NULL;
+#line 1751 "ui.c"
+}
+
+
+static gchar* user_interface_get_selected_extension (UserInterface* self, GtkTreeSelection* selection) {
+ gchar* result = NULL;
+ GtkTreeModel* model = NULL;
+ GtkTreeIter iter = {0};
+ gchar* _tmp0_;
+ gchar* extension;
+ GtkTreeSelection* _tmp1_;
+ GtkTreeModel* _tmp2_ = NULL;
+ GtkTreeIter _tmp3_ = {0};
+ gboolean _tmp4_ = FALSE;
+ GtkTreeModel* _tmp5_;
+#line 342 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ g_return_val_if_fail (self != NULL, NULL);
+#line 342 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ g_return_val_if_fail (selection != NULL, NULL);
+#line 346 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp0_ = g_strdup ("");
+#line 346 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ extension = _tmp0_;
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp1_ = selection;
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp4_ = gtk_tree_selection_get_selected (_tmp1_, &_tmp2_, &_tmp3_);
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _g_object_unref0 (model);
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp5_ = _g_object_ref0 (_tmp2_);
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ model = _tmp5_;
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ iter = _tmp3_;
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ if (_tmp4_) {
+#line 1788 "ui.c"
+ GtkTreeModel* _tmp6_;
+ GtkTreeIter _tmp7_;
+#line 349 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp6_ = model;
+#line 349 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp7_ = iter;
+#line 349 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ gtk_tree_model_get (_tmp6_, &_tmp7_, 1, &extension, -1, -1);
+#line 1797 "ui.c"
+ }
+#line 350 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ result = extension;
+#line 350 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (model);
+#line 350 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ return result;
+#line 1805 "ui.c"
+}
+
+
+static glong string_strnlen (gchar* str, glong maxlen) {
+ glong result = 0L;
+ gchar* _tmp0_;
+ glong _tmp1_;
+ gchar* _tmp2_ = NULL;
+ gchar* end;
+ gchar* _tmp3_;
+#line 1157 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ _tmp0_ = str;
+#line 1157 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ _tmp1_ = maxlen;
+#line 1157 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ _tmp2_ = memchr (_tmp0_, 0, (gsize) _tmp1_);
+#line 1157 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ end = _tmp2_;
+#line 1158 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ _tmp3_ = end;
+#line 1158 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ if (_tmp3_ == NULL) {
+#line 1828 "ui.c"
+ glong _tmp4_;
+#line 1159 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ _tmp4_ = maxlen;
+#line 1159 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ result = _tmp4_;
+#line 1159 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ return result;
+#line 1836 "ui.c"
+ } else {
+ gchar* _tmp5_;
+ gchar* _tmp6_;
+#line 1161 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ _tmp5_ = end;
+#line 1161 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ _tmp6_ = str;
+#line 1161 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ result = (glong) (_tmp5_ - _tmp6_);
+#line 1161 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ return result;
+#line 1848 "ui.c"
+ }
+}
+
+
+static gchar* string_substring (const gchar* self, glong offset, glong len) {
+ gchar* result = NULL;
+ glong string_length = 0L;
+ gboolean _tmp0_ = FALSE;
+ glong _tmp1_;
+ gboolean _tmp3_;
+ glong _tmp9_;
+ glong _tmp15_;
+ glong _tmp18_;
+ glong _tmp19_;
+ glong _tmp20_;
+ glong _tmp21_;
+ glong _tmp22_;
+ gchar* _tmp23_ = NULL;
+#line 1168 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ g_return_val_if_fail (self != NULL, NULL);
+#line 1170 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ _tmp1_ = offset;
+#line 1170 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ if (_tmp1_ >= ((glong) 0)) {
+#line 1873 "ui.c"
+ glong _tmp2_;
+#line 1170 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ _tmp2_ = len;
+#line 1170 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ _tmp0_ = _tmp2_ >= ((glong) 0);
+#line 1879 "ui.c"
+ } else {
+#line 1170 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ _tmp0_ = FALSE;
+#line 1883 "ui.c"
+ }
+#line 1170 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ _tmp3_ = _tmp0_;
+#line 1170 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ if (_tmp3_) {
+#line 1889 "ui.c"
+ glong _tmp4_;
+ glong _tmp5_;
+ glong _tmp6_ = 0L;
+#line 1172 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ _tmp4_ = offset;
+#line 1172 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ _tmp5_ = len;
+#line 1172 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ _tmp6_ = string_strnlen ((gchar*) self, _tmp4_ + _tmp5_);
+#line 1172 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ string_length = _tmp6_;
+#line 1901 "ui.c"
+ } else {
+ gint _tmp7_;
+ gint _tmp8_;
+#line 1174 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ _tmp7_ = strlen (self);
+#line 1174 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ _tmp8_ = _tmp7_;
+#line 1174 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ string_length = (glong) _tmp8_;
+#line 1911 "ui.c"
+ }
+#line 1177 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ _tmp9_ = offset;
+#line 1177 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ if (_tmp9_ < ((glong) 0)) {
+#line 1917 "ui.c"
+ glong _tmp10_;
+ glong _tmp11_;
+ glong _tmp12_;
+#line 1178 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ _tmp10_ = string_length;
+#line 1178 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ _tmp11_ = offset;
+#line 1178 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ offset = _tmp10_ + _tmp11_;
+#line 1179 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ _tmp12_ = offset;
+#line 1179 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ g_return_val_if_fail (_tmp12_ >= ((glong) 0), NULL);
+#line 1931 "ui.c"
+ } else {
+ glong _tmp13_;
+ glong _tmp14_;
+#line 1181 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ _tmp13_ = offset;
+#line 1181 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ _tmp14_ = string_length;
+#line 1181 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ g_return_val_if_fail (_tmp13_ <= _tmp14_, NULL);
+#line 1941 "ui.c"
+ }
+#line 1183 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ _tmp15_ = len;
+#line 1183 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ if (_tmp15_ < ((glong) 0)) {
+#line 1947 "ui.c"
+ glong _tmp16_;
+ glong _tmp17_;
+#line 1184 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ _tmp16_ = string_length;
+#line 1184 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ _tmp17_ = offset;
+#line 1184 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ len = _tmp16_ - _tmp17_;
+#line 1956 "ui.c"
+ }
+#line 1186 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ _tmp18_ = offset;
+#line 1186 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ _tmp19_ = len;
+#line 1186 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ _tmp20_ = string_length;
+#line 1186 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ g_return_val_if_fail ((_tmp18_ + _tmp19_) <= _tmp20_, NULL);
+#line 1187 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ _tmp21_ = offset;
+#line 1187 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ _tmp22_ = len;
+#line 1187 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ _tmp23_ = g_strndup (((gchar*) self) + _tmp21_, (gsize) _tmp22_);
+#line 1187 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ result = _tmp23_;
+#line 1187 "/usr/share/vala-0.20/vapi/glib-2.0.vapi"
+ return result;
+#line 1976 "ui.c"
}
static void _user_interface_on_file_type_changed_gtk_tree_selection_changed (GtkTreeSelection* _sender, gpointer self) {
+#line 437 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_on_file_type_changed (self, _sender);
+#line 1983 "ui.c"
}
@@ -1280,7 +2021,7 @@ static gchar* user_interface_choose_file_location (UserInterface* self) {
GtkFileChooserDialog* _tmp33_;
GtkExpander* _tmp34_;
gchar* _tmp35_;
- gchar* extension;
+ gchar* default_extension;
const gchar* _tmp36_;
gint _tmp37_ = 0;
gint index;
@@ -1328,232 +2069,519 @@ static gchar* user_interface_choose_file_location (UserInterface* self) {
gint response;
gchar* uri;
gint _tmp89_;
- GSettings* _tmp92_;
- GtkFileChooserDialog* _tmp93_;
- gchar* _tmp94_ = NULL;
- gchar* _tmp95_;
- GtkTreeView* _tmp96_;
- GtkTreeSelection* _tmp97_ = NULL;
- guint _tmp98_ = 0U;
- GtkFileChooserDialog* _tmp99_;
+ GSettings* _tmp109_;
+ GtkFileChooserDialog* _tmp110_;
+ gchar* _tmp111_ = NULL;
+ gchar* _tmp112_;
+ GtkTreeView* _tmp113_;
+ GtkTreeSelection* _tmp114_ = NULL;
+ guint _tmp115_ = 0U;
+ GtkFileChooserDialog* _tmp116_;
+#line 353 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (self != NULL, NULL);
+#line 356 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
directory = NULL;
+#line 357 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = self->priv->settings;
+#line 357 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = g_settings_get_string (_tmp0_, "save-directory");
+#line 357 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (directory);
+#line 357 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
directory = _tmp1_;
+#line 359 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = directory;
+#line 359 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp3_ == NULL) {
+#line 359 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = TRUE;
+#line 2099 "ui.c"
} else {
const gchar* _tmp4_;
+#line 359 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = directory;
+#line 359 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = g_strcmp0 (_tmp4_, "") == 0;
+#line 2106 "ui.c"
}
+#line 359 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_ = _tmp2_;
+#line 359 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp5_) {
+#line 2112 "ui.c"
const gchar* _tmp6_ = NULL;
gchar* _tmp7_;
+#line 360 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp6_ = g_get_user_special_dir (G_USER_DIRECTORY_DOCUMENTS);
+#line 360 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp7_ = g_strdup (_tmp6_);
+#line 360 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (directory);
+#line 360 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
directory = _tmp7_;
+#line 2123 "ui.c"
}
+#line 362 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp8_ = _ ("Save As...");
+#line 362 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp9_ = self->priv->window;
+#line 362 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp10_ = (GtkFileChooserDialog*) gtk_file_chooser_dialog_new (_tmp8_, _tmp9_, GTK_FILE_CHOOSER_ACTION_SAVE, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_SAVE, GTK_RESPONSE_ACCEPT, NULL, NULL);
+#line 362 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_object_ref_sink (_tmp10_);
+#line 362 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->save_dialog);
+#line 362 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->save_dialog = _tmp10_;
+#line 369 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp11_ = self->priv->save_dialog;
+#line 369 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_file_chooser_set_do_overwrite_confirmation ((GtkFileChooser*) _tmp11_, TRUE);
+#line 370 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp12_ = self->priv->save_dialog;
+#line 370 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_file_chooser_set_local_only ((GtkFileChooser*) _tmp12_, FALSE);
+#line 371 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp13_ = self->priv->save_dialog;
+#line 371 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp14_ = directory;
+#line 371 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_file_chooser_set_current_folder ((GtkFileChooser*) _tmp13_, _tmp14_);
+#line 372 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp15_ = self->priv->save_dialog;
+#line 372 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp16_ = self->priv->default_file_name;
+#line 372 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_file_chooser_set_current_name ((GtkFileChooser*) _tmp15_, _tmp16_);
+#line 375 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp17_ = gtk_file_filter_new ();
+#line 375 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_object_ref_sink (_tmp17_);
+#line 375 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
filter = _tmp17_;
+#line 376 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp18_ = filter;
+#line 376 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp19_ = _ ("Image Files");
+#line 376 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_file_filter_set_name (_tmp18_, _tmp19_);
+#line 378 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp20_ = filter;
+#line 378 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_file_filter_add_pixbuf_formats (_tmp20_);
+#line 379 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp21_ = filter;
+#line 379 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_file_filter_add_mime_type (_tmp21_, "application/pdf");
+#line 380 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp22_ = self->priv->save_dialog;
+#line 380 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp23_ = filter;
+#line 380 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_file_chooser_add_filter ((GtkFileChooser*) _tmp22_, _tmp23_);
+#line 381 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp24_ = gtk_file_filter_new ();
+#line 381 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_object_ref_sink (_tmp24_);
+#line 381 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (filter);
+#line 381 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
filter = _tmp24_;
+#line 382 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp25_ = filter;
+#line 382 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp26_ = _ ("All Files");
+#line 382 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_file_filter_set_name (_tmp25_, _tmp26_);
+#line 384 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp27_ = filter;
+#line 384 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_file_filter_add_pattern (_tmp27_, "*");
+#line 385 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp28_ = self->priv->save_dialog;
+#line 385 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp29_ = filter;
+#line 385 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_file_chooser_add_filter ((GtkFileChooser*) _tmp28_, _tmp29_);
+#line 387 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp30_ = _ ("Select File _Type");
+#line 387 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp31_ = (GtkExpander*) gtk_expander_new_with_mnemonic (_tmp30_);
+#line 387 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_object_ref_sink (_tmp31_);
+#line 387 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
expander = _tmp31_;
+#line 389 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp32_ = expander;
+#line 389 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_expander_set_spacing (_tmp32_, 5);
+#line 390 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp33_ = self->priv->save_dialog;
+#line 390 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp34_ = expander;
+#line 390 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_file_chooser_set_extra_widget ((GtkFileChooser*) _tmp33_, (GtkWidget*) _tmp34_);
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp35_ = g_strdup ("");
- extension = _tmp35_;
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ default_extension = _tmp35_;
+#line 393 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp36_ = self->priv->default_file_name;
+#line 393 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp37_ = string_last_index_of_char (_tmp36_, (gunichar) '.', 0);
+#line 393 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
index = _tmp37_;
+#line 394 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp38_ = index;
+#line 394 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp38_ >= 0) {
+#line 2239 "ui.c"
const gchar* _tmp39_;
gint _tmp40_;
gchar* _tmp41_ = NULL;
+#line 395 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp39_ = self->priv->default_file_name;
+#line 395 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp40_ = index;
- _tmp41_ = string_slice (_tmp39_, (glong) 0, (glong) _tmp40_);
- _g_free0 (extension);
- extension = _tmp41_;
- }
+#line 395 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp41_ = string_substring (_tmp39_, (glong) _tmp40_, (glong) (-1));
+#line 395 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _g_free0 (default_extension);
+#line 395 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ default_extension = _tmp41_;
+#line 2253 "ui.c"
+ }
+#line 397 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp42_ = gtk_list_store_new (2, G_TYPE_STRING, G_TYPE_STRING);
+#line 397 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
file_type_store = _tmp42_;
+#line 399 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp43_ = file_type_store;
+#line 399 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_list_store_append (_tmp43_, &_tmp44_);
+#line 399 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
iter = _tmp44_;
+#line 400 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp45_ = file_type_store;
+#line 400 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp46_ = iter;
+#line 400 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp47_ = _ ("PDF (multi-page document)");
+#line 400 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_list_store_set (_tmp45_, &_tmp46_, 0, _tmp47_, 1, ".pdf", -1, -1);
+#line 405 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp48_ = file_type_store;
+#line 405 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_list_store_append (_tmp48_, &_tmp49_);
+#line 405 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
iter = _tmp49_;
+#line 406 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp50_ = file_type_store;
+#line 406 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp51_ = iter;
+#line 406 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp52_ = _ ("JPEG (compressed)");
+#line 406 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_list_store_set (_tmp50_, &_tmp51_, 0, _tmp52_, 1, ".jpg", -1, -1);
+#line 411 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp53_ = file_type_store;
+#line 411 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_list_store_append (_tmp53_, &_tmp54_);
+#line 411 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
iter = _tmp54_;
+#line 412 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp55_ = file_type_store;
+#line 412 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp56_ = iter;
+#line 412 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp57_ = _ ("PNG (lossless)");
+#line 412 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_list_store_set (_tmp55_, &_tmp56_, 0, _tmp57_, 1, ".png", -1, -1);
+#line 418 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp58_ = file_type_store;
+#line 418 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp59_ = (GtkTreeView*) gtk_tree_view_new_with_model ((GtkTreeModel*) _tmp58_);
+#line 418 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_object_ref_sink (_tmp59_);
+#line 418 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
file_type_view = _tmp59_;
+#line 419 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp60_ = file_type_view;
+#line 419 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_tree_view_set_headers_visible (_tmp60_, FALSE);
+#line 420 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp61_ = file_type_view;
+#line 420 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_tree_view_set_rules_hint (_tmp61_, TRUE);
+#line 421 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp62_ = (GtkCellRendererText*) gtk_cell_renderer_text_new ();
+#line 421 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_object_ref_sink (_tmp62_);
+#line 421 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp63_ = _tmp62_;
+#line 421 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp64_ = gtk_tree_view_column_new_with_attributes ("", (GtkCellRenderer*) _tmp63_, "text", 0, NULL, NULL);
+#line 421 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_object_ref_sink (_tmp64_);
+#line 421 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp65_ = _tmp64_;
+#line 421 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (_tmp63_);
+#line 421 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
column = _tmp65_;
+#line 424 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp66_ = file_type_view;
+#line 424 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp67_ = column;
+#line 424 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_tree_view_append_column (_tmp66_, _tmp67_);
+#line 425 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp68_ = expander;
+#line 425 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp69_ = file_type_view;
+#line 425 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_container_add ((GtkContainer*) _tmp68_, (GtkWidget*) _tmp69_);
+#line 427 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp70_ = file_type_store;
+#line 427 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp72_ = gtk_tree_model_get_iter_first ((GtkTreeModel*) _tmp70_, &_tmp71_);
+#line 427 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
iter = _tmp71_;
+#line 427 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp72_) {
+#line 2353 "ui.c"
{
gboolean _tmp73_;
+#line 429 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp73_ = TRUE;
+#line 429 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
while (TRUE) {
+#line 2360 "ui.c"
gboolean _tmp74_;
gchar* e = NULL;
GtkListStore* _tmp77_;
GtkTreeIter _tmp78_;
const gchar* _tmp79_;
const gchar* _tmp80_;
+#line 429 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp74_ = _tmp73_;
+#line 429 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (!_tmp74_) {
+#line 2371 "ui.c"
GtkListStore* _tmp75_;
gboolean _tmp76_ = FALSE;
+#line 435 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp75_ = file_type_store;
+#line 435 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp76_ = gtk_tree_model_iter_next ((GtkTreeModel*) _tmp75_, &iter);
+#line 435 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (!_tmp76_) {
+#line 435 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
+#line 2382 "ui.c"
}
}
+#line 429 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp73_ = FALSE;
+#line 432 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp77_ = file_type_store;
+#line 432 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp78_ = iter;
+#line 432 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_tree_model_get ((GtkTreeModel*) _tmp77_, &_tmp78_, 1, &e, -1, -1);
- _tmp79_ = extension;
+#line 433 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp79_ = default_extension;
+#line 433 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp80_ = e;
+#line 433 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (g_strcmp0 (_tmp79_, _tmp80_) == 0) {
+#line 2399 "ui.c"
GtkTreeView* _tmp81_;
GtkTreeSelection* _tmp82_ = NULL;
GtkTreeIter _tmp83_;
+#line 434 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp81_ = file_type_view;
+#line 434 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp82_ = gtk_tree_view_get_selection (_tmp81_);
+#line 434 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp83_ = iter;
+#line 434 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_tree_selection_select_iter (_tmp82_, &_tmp83_);
+#line 2411 "ui.c"
}
+#line 429 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (e);
+#line 2415 "ui.c"
}
}
}
+#line 437 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp84_ = file_type_view;
+#line 437 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp85_ = gtk_tree_view_get_selection (_tmp84_);
+#line 437 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_signal_connect (_tmp85_, "changed", (GCallback) _user_interface_on_file_type_changed_gtk_tree_selection_changed, self);
+#line 439 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp86_ = expander;
+#line 439 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_show_all ((GtkWidget*) _tmp86_);
+#line 441 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp87_ = self->priv->save_dialog;
+#line 441 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp88_ = gtk_dialog_run ((GtkDialog*) _tmp87_);
+#line 441 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
response = _tmp88_;
+#line 443 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
uri = NULL;
+#line 444 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp89_ = response;
+#line 444 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp89_ == ((gint) GTK_RESPONSE_ACCEPT)) {
- GtkFileChooserDialog* _tmp90_;
- gchar* _tmp91_ = NULL;
- _tmp90_ = self->priv->save_dialog;
- _tmp91_ = gtk_file_chooser_get_uri ((GtkFileChooser*) _tmp90_);
+#line 2441 "ui.c"
+ GtkTreeView* _tmp90_;
+ GtkTreeSelection* _tmp91_ = NULL;
+ GtkTreeSelection* _tmp92_;
+ GtkTreeSelection* selection;
+ GtkTreeSelection* _tmp93_;
+ gchar* _tmp94_ = NULL;
+ gchar* extension;
+ GtkFileChooserDialog* _tmp95_;
+ gchar* _tmp96_ = NULL;
+ gchar* path;
+ const gchar* _tmp97_;
+ gchar* _tmp98_ = NULL;
+ gchar* filename;
+ const gchar* _tmp99_;
+ gint _tmp100_ = 0;
+ gint extension_index;
+ gint _tmp101_;
+ const gchar* _tmp105_;
+ GFile* _tmp106_ = NULL;
+ GFile* _tmp107_;
+ gchar* _tmp108_ = NULL;
+#line 446 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp90_ = file_type_view;
+#line 446 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp91_ = gtk_tree_view_get_selection (_tmp90_);
+#line 446 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp92_ = _g_object_ref0 (_tmp91_);
+#line 446 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ selection = _tmp92_;
+#line 447 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp93_ = selection;
+#line 447 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp94_ = user_interface_get_selected_extension (self, _tmp93_);
+#line 447 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ extension = _tmp94_;
+#line 449 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp95_ = self->priv->save_dialog;
+#line 449 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp96_ = gtk_file_chooser_get_filename ((GtkFileChooser*) _tmp95_);
+#line 449 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ path = _tmp96_;
+#line 450 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp97_ = path;
+#line 450 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp98_ = g_path_get_basename (_tmp97_);
+#line 450 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ filename = _tmp98_;
+#line 452 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp99_ = filename;
+#line 452 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp100_ = string_last_index_of_char (_tmp99_, (gunichar) '.', 0);
+#line 452 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ extension_index = _tmp100_;
+#line 453 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp101_ = extension_index;
+#line 453 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ if (_tmp101_ < 0) {
+#line 2499 "ui.c"
+ const gchar* _tmp102_;
+ const gchar* _tmp103_;
+ gchar* _tmp104_;
+#line 454 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp102_ = path;
+#line 454 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp103_ = extension;
+#line 454 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp104_ = g_strconcat (_tmp102_, _tmp103_, NULL);
+#line 454 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _g_free0 (path);
+#line 454 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ path = _tmp104_;
+#line 2513 "ui.c"
+ }
+#line 456 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp105_ = path;
+#line 456 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp106_ = g_file_new_for_path (_tmp105_);
+#line 456 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp107_ = _tmp106_;
+#line 456 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp108_ = g_file_get_uri (_tmp107_);
+#line 456 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (uri);
- uri = _tmp91_;
- }
- _tmp92_ = self->priv->settings;
- _tmp93_ = self->priv->save_dialog;
- _tmp94_ = gtk_file_chooser_get_current_folder ((GtkFileChooser*) _tmp93_);
- _tmp95_ = _tmp94_;
- g_settings_set_string (_tmp92_, "save-directory", _tmp95_);
- _g_free0 (_tmp95_);
- _tmp96_ = file_type_view;
- _tmp97_ = gtk_tree_view_get_selection (_tmp96_);
- g_signal_parse_name ("changed", GTK_TYPE_TREE_SELECTION, &_tmp98_, NULL, FALSE);
- g_signal_handlers_disconnect_matched (_tmp97_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp98_, 0, NULL, (GCallback) _user_interface_on_file_type_changed_gtk_tree_selection_changed, self);
- _tmp99_ = self->priv->save_dialog;
- gtk_widget_destroy ((GtkWidget*) _tmp99_);
+#line 456 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ uri = _tmp108_;
+#line 456 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _g_object_unref0 (_tmp107_);
+#line 444 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _g_free0 (filename);
+#line 444 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _g_free0 (path);
+#line 444 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _g_free0 (extension);
+#line 444 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _g_object_unref0 (selection);
+#line 2537 "ui.c"
+ }
+#line 459 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp109_ = self->priv->settings;
+#line 459 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp110_ = self->priv->save_dialog;
+#line 459 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp111_ = gtk_file_chooser_get_current_folder ((GtkFileChooser*) _tmp110_);
+#line 459 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp112_ = _tmp111_;
+#line 459 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ g_settings_set_string (_tmp109_, "save-directory", _tmp112_);
+#line 459 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _g_free0 (_tmp112_);
+#line 461 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp113_ = file_type_view;
+#line 461 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp114_ = gtk_tree_view_get_selection (_tmp113_);
+#line 461 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ g_signal_parse_name ("changed", GTK_TYPE_TREE_SELECTION, &_tmp115_, NULL, FALSE);
+#line 461 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ g_signal_handlers_disconnect_matched (_tmp114_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp115_, 0, NULL, (GCallback) _user_interface_on_file_type_changed_gtk_tree_selection_changed, self);
+#line 462 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp116_ = self->priv->save_dialog;
+#line 462 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ gtk_widget_destroy ((GtkWidget*) _tmp116_);
+#line 463 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->save_dialog);
+#line 463 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->save_dialog = NULL;
+#line 465 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = uri;
+#line 465 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (column);
+#line 465 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (file_type_view);
+#line 465 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (file_type_store);
- _g_free0 (extension);
+#line 465 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _g_free0 (default_extension);
+#line 465 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (expander);
+#line 465 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (filter);
+#line 465 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (directory);
+#line 465 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
+#line 2585 "ui.c"
}
@@ -1575,164 +2603,292 @@ static gboolean user_interface_save_document (UserInterface* self, gboolean forc
gchar* format;
const gchar* _tmp14_;
gboolean _tmp15_ = FALSE;
- const gchar* _tmp38_;
- gchar* _tmp39_;
- Book* _tmp40_;
+ const gchar* _tmp39_;
+ gchar* _tmp40_;
+ Book* _tmp41_;
GError * _inner_error_ = NULL;
+#line 468 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (self != NULL, FALSE);
+#line 471 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = self->priv->book_uri;
+#line 471 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp1_ != NULL) {
+#line 2617 "ui.c"
gboolean _tmp2_;
+#line 471 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = force_choose_location;
+#line 471 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = !_tmp2_;
+#line 2623 "ui.c"
} else {
+#line 471 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = FALSE;
+#line 2627 "ui.c"
}
+#line 471 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = _tmp0_;
+#line 471 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp3_) {
+#line 2633 "ui.c"
const gchar* _tmp4_;
gchar* _tmp5_;
+#line 472 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = self->priv->book_uri;
+#line 472 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_ = g_strdup (_tmp4_);
+#line 472 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (uri);
+#line 472 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
uri = _tmp5_;
+#line 2644 "ui.c"
} else {
gchar* _tmp6_ = NULL;
+#line 474 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp6_ = user_interface_choose_file_location (self);
+#line 474 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (uri);
+#line 474 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
uri = _tmp6_;
+#line 2653 "ui.c"
}
+#line 475 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp7_ = uri;
+#line 475 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp7_ == NULL) {
+#line 476 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = FALSE;
+#line 476 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (uri);
+#line 476 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
+#line 2665 "ui.c"
}
+#line 478 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp8_ = uri;
+#line 478 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp9_ = g_file_new_for_uri (_tmp8_);
+#line 478 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
file = _tmp9_;
+#line 480 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp10_ = uri;
- g_debug ("ui.vala:452: Saving to '%s'", _tmp10_);
+#line 480 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ g_debug ("ui.vala:480: Saving to '%s'", _tmp10_);
+#line 482 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp11_ = uri;
+#line 482 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp12_ = g_utf8_strdown (_tmp11_, (gssize) (-1));
+#line 482 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
uri_lower = _tmp12_;
+#line 483 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp13_ = g_strdup ("jpeg");
+#line 483 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
format = _tmp13_;
+#line 484 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp14_ = uri_lower;
+#line 484 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp15_ = g_str_has_suffix (_tmp14_, ".pdf");
+#line 484 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp15_) {
+#line 2693 "ui.c"
gchar* _tmp16_;
+#line 485 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp16_ = g_strdup ("pdf");
+#line 485 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (format);
+#line 485 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
format = _tmp16_;
+#line 2701 "ui.c"
} else {
const gchar* _tmp17_;
gboolean _tmp18_ = FALSE;
+#line 486 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp17_ = uri_lower;
+#line 486 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp18_ = g_str_has_suffix (_tmp17_, ".ps");
+#line 486 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp18_) {
+#line 2711 "ui.c"
gchar* _tmp19_;
+#line 487 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp19_ = g_strdup ("ps");
+#line 487 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (format);
+#line 487 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
format = _tmp19_;
+#line 2719 "ui.c"
} else {
const gchar* _tmp20_;
gboolean _tmp21_ = FALSE;
+#line 488 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp20_ = uri_lower;
+#line 488 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp21_ = g_str_has_suffix (_tmp20_, ".png");
+#line 488 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp21_) {
+#line 2729 "ui.c"
gchar* _tmp22_;
+#line 489 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp22_ = g_strdup ("png");
+#line 489 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (format);
+#line 489 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
format = _tmp22_;
+#line 2737 "ui.c"
} else {
gboolean _tmp23_ = FALSE;
const gchar* _tmp24_;
gboolean _tmp25_ = FALSE;
gboolean _tmp28_;
+#line 490 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp24_ = uri_lower;
+#line 490 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp25_ = g_str_has_suffix (_tmp24_, ".tif");
+#line 490 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp25_) {
+#line 490 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp23_ = TRUE;
+#line 2751 "ui.c"
} else {
const gchar* _tmp26_;
gboolean _tmp27_ = FALSE;
+#line 490 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp26_ = uri_lower;
+#line 490 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp27_ = g_str_has_suffix (_tmp26_, ".tiff");
+#line 490 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp23_ = _tmp27_;
+#line 2761 "ui.c"
}
+#line 490 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp28_ = _tmp23_;
+#line 490 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp28_) {
+#line 2767 "ui.c"
gchar* _tmp29_;
+#line 491 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp29_ = g_strdup ("tiff");
+#line 491 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (format);
+#line 491 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
format = _tmp29_;
+#line 2775 "ui.c"
}
}
}
}
+#line 493 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_show_progress_dialog (self);
+#line 2782 "ui.c"
{
Book* _tmp30_;
const gchar* _tmp31_;
- GFile* _tmp32_;
+ gint _tmp32_ = 0;
+ GFile* _tmp33_;
+#line 496 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp30_ = self->priv->book;
+#line 496 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp31_ = format;
- _tmp32_ = file;
- book_save (_tmp30_, _tmp31_, _tmp32_, &_inner_error_);
+#line 496 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp32_ = user_interface_get_quality (self);
+#line 496 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp33_ = file;
+#line 496 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ book_save (_tmp30_, _tmp31_, _tmp32_, _tmp33_, &_inner_error_);
+#line 496 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_inner_error_ != NULL) {
- goto __catch15_g_error;
+#line 2800 "ui.c"
+ goto __catch16_g_error;
}
}
- goto __finally15;
- __catch15_g_error:
+ goto __finally16;
+ __catch16_g_error:
{
GError* e = NULL;
- GError* _tmp33_;
- const gchar* _tmp34_;
- const gchar* _tmp35_ = NULL;
- GError* _tmp36_;
- const gchar* _tmp37_;
+ GError* _tmp34_;
+ const gchar* _tmp35_;
+ const gchar* _tmp36_ = NULL;
+ GError* _tmp37_;
+ const gchar* _tmp38_;
+#line 494 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
e = _inner_error_;
+#line 494 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_inner_error_ = NULL;
+#line 500 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_hide_progress_dialog (self);
- _tmp33_ = e;
- _tmp34_ = _tmp33_->message;
- g_warning ("ui.vala:473: Error saving file: %s", _tmp34_);
- _tmp35_ = _ ("Failed to save file");
- _tmp36_ = e;
- _tmp37_ = _tmp36_->message;
- user_interface_show_error (self, _tmp35_, _tmp37_, FALSE);
+#line 501 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp34_ = e;
+#line 501 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp35_ = _tmp34_->message;
+#line 501 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ g_warning ("ui.vala:501: Error saving file: %s", _tmp35_);
+#line 502 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp36_ = _ ("Failed to save file");
+#line 502 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp37_ = e;
+#line 502 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp38_ = _tmp37_->message;
+#line 502 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ user_interface_show_error (self, _tmp36_, _tmp38_, FALSE);
+#line 506 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = FALSE;
+#line 506 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_error_free0 (e);
+#line 506 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (format);
+#line 506 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (uri_lower);
+#line 506 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (file);
+#line 506 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (uri);
+#line 506 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
+#line 2847 "ui.c"
}
- __finally15:
+ __finally16:
+#line 494 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_inner_error_ != NULL) {
+#line 494 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (format);
+#line 494 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (uri_lower);
+#line 494 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (file);
+#line 494 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (uri);
+#line 494 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 494 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_clear_error (&_inner_error_);
+#line 494 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return FALSE;
+#line 2866 "ui.c"
}
- _tmp38_ = uri;
- _tmp39_ = g_strdup (_tmp38_);
+#line 509 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp39_ = uri;
+#line 509 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp40_ = g_strdup (_tmp39_);
+#line 509 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (self->priv->book_uri);
- self->priv->book_uri = _tmp39_;
- _tmp40_ = self->priv->book;
- book_set_needs_saving (_tmp40_, FALSE);
+#line 509 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ self->priv->book_uri = _tmp40_;
+#line 510 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp41_ = self->priv->book;
+#line 510 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ book_set_needs_saving (_tmp41_, FALSE);
+#line 511 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = TRUE;
+#line 511 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (format);
+#line 511 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (uri_lower);
+#line 511 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (file);
+#line 511 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (uri);
+#line 511 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
+#line 2892 "ui.c"
}
@@ -1755,66 +2911,123 @@ static gboolean user_interface_prompt_to_save (UserInterface* self, const gchar*
gint response;
GtkMessageDialog* _tmp13_;
gint _tmp14_;
+#line 514 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (self != NULL, FALSE);
+#line 514 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (title != NULL, FALSE);
+#line 514 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (discard_label != NULL, FALSE);
+#line 516 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = self->priv->book;
+#line 516 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = book_get_needs_saving (_tmp0_);
+#line 516 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (!_tmp1_) {
+#line 517 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = TRUE;
+#line 517 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
+#line 2931 "ui.c"
}
+#line 519 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = self->priv->window;
+#line 519 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = title;
+#line 519 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = (GtkMessageDialog*) gtk_message_dialog_new (_tmp2_, GTK_DIALOG_MODAL, GTK_MESSAGE_WARNING, GTK_BUTTONS_NONE, "%s", _tmp3_);
+#line 519 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_object_ref_sink (_tmp4_);
+#line 519 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
dialog = _tmp4_;
+#line 524 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_ = dialog;
+#line 524 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp6_ = _ ("If you don't save, changes will be permanently lost.");
+#line 524 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_message_dialog_format_secondary_text (_tmp5_, "%s", _tmp6_);
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp7_ = dialog;
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp8_ = discard_label;
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_dialog_add_button ((GtkDialog*) _tmp7_, _tmp8_, (gint) GTK_RESPONSE_NO);
+#line 528 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp9_ = dialog;
+#line 528 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_dialog_add_button ((GtkDialog*) _tmp9_, GTK_STOCK_CANCEL, (gint) GTK_RESPONSE_CANCEL);
+#line 529 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp10_ = dialog;
+#line 529 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_dialog_add_button ((GtkDialog*) _tmp10_, GTK_STOCK_SAVE, (gint) GTK_RESPONSE_YES);
+#line 531 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp11_ = dialog;
+#line 531 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp12_ = gtk_dialog_run ((GtkDialog*) _tmp11_);
+#line 531 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
response = _tmp12_;
+#line 532 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp13_ = dialog;
+#line 532 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_destroy ((GtkWidget*) _tmp13_);
+#line 534 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp14_ = response;
+#line 534 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
switch (_tmp14_) {
+#line 534 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
case GTK_RESPONSE_YES:
+#line 2979 "ui.c"
{
gboolean _tmp15_ = FALSE;
+#line 537 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp15_ = user_interface_save_document (self, FALSE);
+#line 537 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp15_) {
+#line 538 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = TRUE;
+#line 538 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (dialog);
+#line 538 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
+#line 2992 "ui.c"
} else {
+#line 540 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = FALSE;
+#line 540 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (dialog);
+#line 540 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
+#line 3000 "ui.c"
}
}
+#line 534 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
case GTK_RESPONSE_CANCEL:
+#line 3005 "ui.c"
{
+#line 542 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = FALSE;
+#line 542 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (dialog);
+#line 542 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
+#line 3013 "ui.c"
}
default:
+#line 534 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
case GTK_RESPONSE_NO:
+#line 3018 "ui.c"
{
+#line 545 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = TRUE;
+#line 545 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (dialog);
+#line 545 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
+#line 3026 "ui.c"
}
}
+#line 514 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (dialog);
+#line 3031 "ui.c"
}
@@ -1822,16 +3035,32 @@ static void user_interface_clear_document (UserInterface* self) {
Book* _tmp0_;
Book* _tmp1_;
GtkMenuItem* _tmp2_;
+ GtkMenuItem* _tmp3_;
+#line 549 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 551 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = self->priv->book;
+#line 551 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
book_clear (_tmp0_);
+#line 552 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_add_default_page (self);
+#line 553 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (self->priv->book_uri);
+#line 553 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->book_uri = NULL;
+#line 554 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = self->priv->book;
+#line 554 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
book_set_needs_saving (_tmp1_, FALSE);
+#line 555 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = self->priv->save_as_menuitem;
+#line 555 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_set_sensitive ((GtkWidget*) _tmp2_, FALSE);
+#line 556 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp3_ = self->priv->copy_to_clipboard_menuitem;
+#line 556 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ gtk_widget_set_sensitive ((GtkWidget*) _tmp3_, FALSE);
+#line 3064 "ui.c"
}
@@ -1840,19 +3069,33 @@ void G_MODULE_EXPORT new_button_clicked_cb (GtkWidget* widget, UserInterface* se
const gchar* _tmp1_ = NULL;
gboolean _tmp2_ = FALSE;
gboolean _tmp3_;
+#line 560 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 560 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (widget != NULL);
+#line 562 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = _ ("Save current document?");
+#line 562 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = _ ("Discard Changes");
+#line 562 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = user_interface_prompt_to_save (self, _tmp0_, _tmp1_);
+#line 562 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (!_tmp2_) {
+#line 566 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
+#line 3087 "ui.c"
}
+#line 568 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = self->priv->scanning;
+#line 568 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp3_) {
+#line 569 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_signal_emit_by_name (self, "stop-scan");
+#line 3095 "ui.c"
}
+#line 570 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_clear_document (self);
+#line 3099 "ui.c"
}
@@ -1860,30 +3103,52 @@ static void user_interface_set_document_hint (UserInterface* self, const gchar*
const gchar* _tmp0_;
gchar* _tmp1_;
const gchar* _tmp2_;
+#line 573 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 573 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (document_hint != NULL);
+#line 575 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = document_hint;
+#line 575 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = g_strdup (_tmp0_);
+#line 575 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (self->priv->document_hint);
+#line 575 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->document_hint = _tmp1_;
+#line 577 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = document_hint;
+#line 577 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (g_strcmp0 (_tmp2_, "text") == 0) {
+#line 3123 "ui.c"
GtkRadioMenuItem* _tmp3_;
GtkRadioMenuItem* _tmp4_;
+#line 579 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = self->priv->text_toolbar_menuitem;
+#line 579 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_check_menu_item_set_active ((GtkCheckMenuItem*) _tmp3_, TRUE);
+#line 580 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = self->priv->text_menu_menuitem;
+#line 580 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_check_menu_item_set_active ((GtkCheckMenuItem*) _tmp4_, TRUE);
+#line 3134 "ui.c"
} else {
const gchar* _tmp5_;
+#line 582 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_ = document_hint;
+#line 582 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (g_strcmp0 (_tmp5_, "photo") == 0) {
+#line 3141 "ui.c"
GtkRadioMenuItem* _tmp6_;
GtkRadioMenuItem* _tmp7_;
+#line 584 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp6_ = self->priv->photo_toolbar_menuitem;
+#line 584 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_check_menu_item_set_active ((GtkCheckMenuItem*) _tmp6_, TRUE);
+#line 585 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp7_ = self->priv->photo_menu_menuitem;
+#line 585 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_check_menu_item_set_active ((GtkCheckMenuItem*) _tmp7_, TRUE);
+#line 3152 "ui.c"
}
}
}
@@ -1892,12 +3157,19 @@ static void user_interface_set_document_hint (UserInterface* self, const gchar*
void G_MODULE_EXPORT text_menuitem_toggled_cb (GtkCheckMenuItem* widget, UserInterface* self) {
GtkCheckMenuItem* _tmp0_;
gboolean _tmp1_ = FALSE;
+#line 590 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 590 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (widget != NULL);
+#line 592 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = widget;
+#line 592 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = gtk_check_menu_item_get_active (_tmp0_);
+#line 592 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp1_) {
+#line 593 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_set_document_hint (self, "text");
+#line 3173 "ui.c"
}
}
@@ -1905,12 +3177,19 @@ void G_MODULE_EXPORT text_menuitem_toggled_cb (GtkCheckMenuItem* widget, UserInt
void G_MODULE_EXPORT photo_menuitem_toggled_cb (GtkCheckMenuItem* widget, UserInterface* self) {
GtkCheckMenuItem* _tmp0_;
gboolean _tmp1_ = FALSE;
+#line 597 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 597 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (widget != NULL);
+#line 599 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = widget;
+#line 599 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = gtk_check_menu_item_get_active (_tmp0_);
+#line 599 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp1_) {
+#line 600 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_set_document_hint (self, "photo");
+#line 3193 "ui.c"
}
}
@@ -1920,44 +3199,74 @@ static void user_interface_set_page_side (UserInterface* self, ScanType page_sid
GtkListStore* _tmp0_;
GtkTreeIter _tmp1_ = {0};
gboolean _tmp2_ = FALSE;
+#line 603 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 607 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = self->priv->page_side_model;
+#line 607 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = gtk_tree_model_get_iter_first ((GtkTreeModel*) _tmp0_, &_tmp1_);
+#line 607 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
iter = _tmp1_;
+#line 607 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp2_) {
+#line 3213 "ui.c"
{
gboolean _tmp3_;
+#line 609 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = TRUE;
+#line 609 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
while (TRUE) {
+#line 3220 "ui.c"
gboolean _tmp4_;
gint s = 0;
GtkListStore* _tmp7_;
GtkTreeIter _tmp8_;
gint _tmp9_;
ScanType _tmp10_;
+#line 609 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = _tmp3_;
+#line 609 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (!_tmp4_) {
+#line 3231 "ui.c"
GtkListStore* _tmp5_;
gboolean _tmp6_ = FALSE;
+#line 618 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_ = self->priv->page_side_model;
+#line 618 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp6_ = gtk_tree_model_iter_next ((GtkTreeModel*) _tmp5_, &iter);
+#line 618 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (!_tmp6_) {
+#line 618 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
+#line 3242 "ui.c"
}
}
+#line 609 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = FALSE;
+#line 612 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp7_ = self->priv->page_side_model;
+#line 612 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp8_ = iter;
+#line 612 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_tree_model_get ((GtkTreeModel*) _tmp7_, &_tmp8_, 0, &s, -1, -1);
+#line 613 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp9_ = s;
+#line 613 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp10_ = page_side;
+#line 613 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp9_ == ((gint) _tmp10_)) {
+#line 3259 "ui.c"
GtkComboBox* _tmp11_;
GtkTreeIter _tmp12_;
+#line 615 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp11_ = self->priv->page_side_combo;
+#line 615 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp12_ = iter;
+#line 615 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_combo_box_set_active_iter (_tmp11_, &_tmp12_);
+#line 616 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
+#line 3270 "ui.c"
}
}
}
@@ -1970,18 +3279,27 @@ static void user_interface_set_paper_size (UserInterface* self, gint width, gint
gboolean have_iter = FALSE;
gboolean _tmp16_;
gboolean _tmp20_;
+#line 622 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 3285 "ui.c"
{
GtkListStore* _tmp0_;
GtkTreeIter _tmp1_ = {0};
gboolean _tmp2_ = FALSE;
gboolean _tmp3_;
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = self->priv->paper_size_model;
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = gtk_tree_model_get_iter_first ((GtkTreeModel*) _tmp0_, &_tmp1_);
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
iter = _tmp1_;
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
have_iter = _tmp2_;
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = TRUE;
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
while (TRUE) {
+#line 3303 "ui.c"
gboolean _tmp4_;
gboolean _tmp7_;
gint w = 0;
@@ -1992,60 +3310,149 @@ static void user_interface_set_paper_size (UserInterface* self, gint width, gint
gint _tmp11_;
gint _tmp12_;
gboolean _tmp15_;
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = _tmp3_;
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (!_tmp4_) {
+#line 3318 "ui.c"
GtkListStore* _tmp5_;
gboolean _tmp6_ = FALSE;
+#line 629 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_ = self->priv->paper_size_model;
+#line 629 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp6_ = gtk_tree_model_iter_next ((GtkTreeModel*) _tmp5_, &iter);
+#line 629 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
have_iter = _tmp6_;
+#line 3327 "ui.c"
}
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = FALSE;
+#line 628 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp7_ = have_iter;
+#line 628 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (!_tmp7_) {
+#line 628 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
+#line 3337 "ui.c"
}
+#line 632 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp8_ = self->priv->paper_size_model;
+#line 632 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp9_ = iter;
+#line 632 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_tree_model_get ((GtkTreeModel*) _tmp8_, &_tmp9_, 0, &w, 1, &h, -1, -1);
+#line 633 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp11_ = w;
+#line 633 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp12_ = width;
+#line 633 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp11_ == _tmp12_) {
+#line 3351 "ui.c"
gint _tmp13_;
gint _tmp14_;
+#line 633 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp13_ = h;
+#line 633 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp14_ = height;
+#line 633 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp10_ = _tmp13_ == _tmp14_;
+#line 3360 "ui.c"
} else {
+#line 633 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp10_ = FALSE;
+#line 3364 "ui.c"
}
+#line 633 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp15_ = _tmp10_;
+#line 633 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp15_) {
+#line 634 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
+#line 3372 "ui.c"
}
}
}
+#line 637 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp16_ = have_iter;
+#line 637 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (!_tmp16_) {
+#line 3380 "ui.c"
GtkListStore* _tmp17_;
GtkTreeIter _tmp18_ = {0};
gboolean _tmp19_ = FALSE;
+#line 638 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp17_ = self->priv->paper_size_model;
+#line 638 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp19_ = gtk_tree_model_get_iter_first ((GtkTreeModel*) _tmp17_, &_tmp18_);
+#line 638 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
iter = _tmp18_;
+#line 638 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
have_iter = _tmp19_;
+#line 3392 "ui.c"
}
+#line 639 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp20_ = have_iter;
+#line 639 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp20_) {
+#line 3398 "ui.c"
GtkComboBox* _tmp21_;
GtkTreeIter _tmp22_;
+#line 640 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp21_ = self->priv->paper_size_combo;
+#line 640 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp22_ = iter;
+#line 640 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_combo_box_set_active_iter (_tmp21_, &_tmp22_);
+#line 3407 "ui.c"
}
}
+static void user_interface_set_brightness (UserInterface* self, gint brightness) {
+ GtkAdjustment* _tmp0_;
+ gint _tmp1_;
+#line 643 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ g_return_if_fail (self != NULL);
+#line 645 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp0_ = self->priv->brightness_adjustment;
+#line 645 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp1_ = brightness;
+#line 645 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ gtk_adjustment_set_value (_tmp0_, (gdouble) _tmp1_);
+#line 3423 "ui.c"
+}
+
+
+static void user_interface_set_contrast (UserInterface* self, gint contrast) {
+ GtkAdjustment* _tmp0_;
+ gint _tmp1_;
+#line 648 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ g_return_if_fail (self != NULL);
+#line 650 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp0_ = self->priv->contrast_adjustment;
+#line 650 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp1_ = contrast;
+#line 650 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ gtk_adjustment_set_value (_tmp0_, (gdouble) _tmp1_);
+#line 3438 "ui.c"
+}
+
+
+static void user_interface_set_quality (UserInterface* self, gint quality) {
+ GtkAdjustment* _tmp0_;
+ gint _tmp1_;
+#line 653 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ g_return_if_fail (self != NULL);
+#line 655 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp0_ = self->priv->quality_adjustment;
+#line 655 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp1_ = quality;
+#line 655 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ gtk_adjustment_set_value (_tmp0_, (gdouble) _tmp1_);
+#line 3453 "ui.c"
+}
+
+
static gint user_interface_get_text_dpi (UserInterface* self) {
gint result = 0;
GtkTreeIter iter = {0};
@@ -2053,20 +3460,34 @@ static gint user_interface_get_text_dpi (UserInterface* self) {
GtkComboBox* _tmp0_;
GtkTreeIter _tmp1_ = {0};
gboolean _tmp2_ = FALSE;
+#line 658 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (self != NULL, 0);
+#line 661 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
dpi = USER_INTERFACE_DEFAULT_TEXT_DPI;
+#line 663 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = self->priv->text_dpi_combo;
+#line 663 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = gtk_combo_box_get_active_iter (_tmp0_, &_tmp1_);
+#line 663 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
iter = _tmp1_;
+#line 663 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp2_) {
+#line 3476 "ui.c"
GtkListStore* _tmp3_;
GtkTreeIter _tmp4_;
+#line 664 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = self->priv->text_dpi_model;
+#line 664 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = iter;
+#line 664 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_tree_model_get ((GtkTreeModel*) _tmp3_, &_tmp4_, 0, &dpi, -1, -1);
+#line 3485 "ui.c"
}
+#line 666 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = dpi;
+#line 666 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
+#line 3491 "ui.c"
}
@@ -2077,20 +3498,34 @@ static gint user_interface_get_photo_dpi (UserInterface* self) {
GtkComboBox* _tmp0_;
GtkTreeIter _tmp1_ = {0};
gboolean _tmp2_ = FALSE;
+#line 669 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (self != NULL, 0);
+#line 672 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
dpi = USER_INTERFACE_DEFAULT_PHOTO_DPI;
+#line 674 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = self->priv->photo_dpi_combo;
+#line 674 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = gtk_combo_box_get_active_iter (_tmp0_, &_tmp1_);
+#line 674 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
iter = _tmp1_;
+#line 674 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp2_) {
+#line 3514 "ui.c"
GtkListStore* _tmp3_;
GtkTreeIter _tmp4_;
+#line 675 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = self->priv->photo_dpi_model;
+#line 675 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = iter;
+#line 675 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_tree_model_get ((GtkTreeModel*) _tmp3_, &_tmp4_, 0, &dpi, -1, -1);
+#line 3523 "ui.c"
}
+#line 677 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = dpi;
+#line 677 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
+#line 3529 "ui.c"
}
@@ -2102,21 +3537,36 @@ static ScanType user_interface_get_page_side (UserInterface* self) {
GtkTreeIter _tmp1_ = {0};
gboolean _tmp2_ = FALSE;
gint _tmp5_;
+#line 680 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (self != NULL, 0);
+#line 683 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
page_side = (gint) SCAN_TYPE_ADF_BOTH;
+#line 685 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = self->priv->page_side_combo;
+#line 685 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = gtk_combo_box_get_active_iter (_tmp0_, &_tmp1_);
+#line 685 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
iter = _tmp1_;
+#line 685 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp2_) {
+#line 3553 "ui.c"
GtkListStore* _tmp3_;
GtkTreeIter _tmp4_;
+#line 686 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = self->priv->page_side_model;
+#line 686 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = iter;
+#line 686 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_tree_model_get ((GtkTreeModel*) _tmp3_, &_tmp4_, 0, &page_side, -1, -1);
+#line 3562 "ui.c"
}
+#line 688 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_ = page_side;
+#line 688 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = (ScanType) _tmp5_;
+#line 688 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
+#line 3570 "ui.c"
}
@@ -2129,36 +3579,120 @@ static gboolean user_interface_get_paper_size (UserInterface* self, gint* width,
GtkComboBox* _tmp1_;
GtkTreeIter _tmp2_ = {0};
gboolean _tmp3_ = FALSE;
+#line 691 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (self != NULL, FALSE);
+#line 695 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_vala_height = 0;
+#line 695 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = _vala_height;
+#line 695 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_vala_width = _tmp0_;
+#line 696 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = self->priv->paper_size_combo;
+#line 696 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = gtk_combo_box_get_active_iter (_tmp1_, &_tmp2_);
+#line 696 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
iter = _tmp2_;
+#line 696 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp3_) {
+#line 3599 "ui.c"
GtkListStore* _tmp4_;
GtkTreeIter _tmp5_;
+#line 698 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = self->priv->paper_size_model;
+#line 698 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_ = iter;
+#line 698 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_tree_model_get ((GtkTreeModel*) _tmp4_, &_tmp5_, 0, &_vala_width, 1, &_vala_height, -1, -1);
+#line 699 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = TRUE;
+#line 699 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (width) {
+#line 699 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
*width = _vala_width;
+#line 3614 "ui.c"
}
+#line 699 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (height) {
+#line 699 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
*height = _vala_height;
+#line 3620 "ui.c"
}
+#line 699 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
+#line 3624 "ui.c"
}
+#line 702 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = FALSE;
+#line 702 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (width) {
+#line 702 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
*width = _vala_width;
+#line 3632 "ui.c"
}
+#line 702 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (height) {
+#line 702 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
*height = _vala_height;
+#line 3638 "ui.c"
}
+#line 702 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ return result;
+#line 3642 "ui.c"
+}
+
+
+static gint user_interface_get_brightness (UserInterface* self) {
+ gint result = 0;
+ GtkAdjustment* _tmp0_;
+ gdouble _tmp1_ = 0.0;
+#line 705 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ g_return_val_if_fail (self != NULL, 0);
+#line 707 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp0_ = self->priv->brightness_adjustment;
+#line 707 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp1_ = gtk_adjustment_get_value (_tmp0_);
+#line 707 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ result = (gint) _tmp1_;
+#line 707 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ return result;
+#line 3660 "ui.c"
+}
+
+
+static gint user_interface_get_contrast (UserInterface* self) {
+ gint result = 0;
+ GtkAdjustment* _tmp0_;
+ gdouble _tmp1_ = 0.0;
+#line 710 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ g_return_val_if_fail (self != NULL, 0);
+#line 712 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp0_ = self->priv->contrast_adjustment;
+#line 712 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp1_ = gtk_adjustment_get_value (_tmp0_);
+#line 712 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ result = (gint) _tmp1_;
+#line 712 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
+#line 3678 "ui.c"
+}
+
+
+static gint user_interface_get_quality (UserInterface* self) {
+ gint result = 0;
+ GtkAdjustment* _tmp0_;
+ gdouble _tmp1_ = 0.0;
+#line 715 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ g_return_val_if_fail (self != NULL, 0);
+#line 717 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp0_ = self->priv->quality_adjustment;
+#line 717 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp1_ = gtk_adjustment_get_value (_tmp0_);
+#line 717 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ result = (gint) _tmp1_;
+#line 717 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ return result;
+#line 3696 "ui.c"
}
@@ -2171,42 +3705,88 @@ static ScanOptions* user_interface_get_scan_options (UserInterface* self) {
ScanOptions* _tmp11_;
gint _tmp12_ = 0;
gint _tmp13_ = 0;
+ ScanOptions* _tmp14_;
+ gint _tmp15_ = 0;
+ ScanOptions* _tmp16_;
+ gint _tmp17_ = 0;
+#line 720 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (self != NULL, NULL);
+#line 722 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = scan_options_new ();
+#line 722 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
options = _tmp0_;
+#line 723 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = self->priv->document_hint;
+#line 723 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (g_strcmp0 (_tmp1_, "text") == 0) {
+#line 3723 "ui.c"
ScanOptions* _tmp2_;
ScanOptions* _tmp3_;
gint _tmp4_ = 0;
ScanOptions* _tmp5_;
+#line 725 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = options;
+#line 725 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_->scan_mode = SCAN_MODE_GRAY;
+#line 726 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = options;
+#line 726 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = user_interface_get_text_dpi (self);
+#line 726 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_->dpi = _tmp4_;
+#line 727 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_ = options;
+#line 727 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_->depth = 2;
+#line 3742 "ui.c"
} else {
ScanOptions* _tmp6_;
ScanOptions* _tmp7_;
gint _tmp8_ = 0;
ScanOptions* _tmp9_;
+#line 731 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp6_ = options;
+#line 731 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp6_->scan_mode = SCAN_MODE_COLOR;
+#line 732 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp7_ = options;
+#line 732 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp8_ = user_interface_get_photo_dpi (self);
+#line 732 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp7_->dpi = _tmp8_;
+#line 733 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp9_ = options;
+#line 733 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp9_->depth = 8;
+#line 3762 "ui.c"
}
+#line 735 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp10_ = options;
+#line 735 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp11_ = options;
+#line 735 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_get_paper_size (self, &_tmp12_, &_tmp13_);
+#line 735 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp10_->paper_width = _tmp12_;
+#line 735 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp11_->paper_height = _tmp13_;
+#line 736 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp14_ = options;
+#line 736 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp15_ = user_interface_get_brightness (self);
+#line 736 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp14_->brightness = _tmp15_;
+#line 737 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp16_ = options;
+#line 737 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp17_ = user_interface_get_contrast (self);
+#line 737 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp16_->contrast = _tmp17_;
+#line 739 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = options;
+#line 739 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
+#line 3790 "ui.c"
}
@@ -2215,33 +3795,54 @@ void G_MODULE_EXPORT scan_button_clicked_cb (GtkWidget* widget, UserInterface* s
ScanOptions* options;
gchar* _tmp1_ = NULL;
gchar* _tmp2_;
+#line 743 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 743 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (widget != NULL);
+#line 745 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = user_interface_get_scan_options (self);
+#line 745 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
options = _tmp0_;
+#line 746 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
options->type = SCAN_TYPE_SINGLE;
+#line 747 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = user_interface_get_selected_device (self);
+#line 747 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = _tmp1_;
+#line 747 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_signal_emit_by_name (self, "start-scan", _tmp2_, options);
+#line 747 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (_tmp2_);
+#line 743 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_scan_options_unref0 (options);
+#line 3819 "ui.c"
}
void G_MODULE_EXPORT stop_scan_button_clicked_cb (GtkWidget* widget, UserInterface* self) {
+#line 751 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 751 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (widget != NULL);
+#line 753 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_signal_emit_by_name (self, "stop-scan");
+#line 3830 "ui.c"
}
void G_MODULE_EXPORT continuous_scan_button_clicked_cb (GtkWidget* widget, UserInterface* self) {
gboolean _tmp0_;
+#line 757 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 757 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (widget != NULL);
+#line 759 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = self->priv->scanning;
+#line 759 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp0_) {
+#line 760 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_signal_emit_by_name (self, "stop-scan");
+#line 3846 "ui.c"
} else {
ScanOptions* _tmp1_ = NULL;
ScanOptions* options;
@@ -2250,45 +3851,72 @@ void G_MODULE_EXPORT continuous_scan_button_clicked_cb (GtkWidget* widget, UserI
gchar* _tmp4_ = NULL;
gchar* _tmp5_;
ScanOptions* _tmp6_;
+#line 763 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = user_interface_get_scan_options (self);
+#line 763 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
options = _tmp1_;
+#line 764 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = options;
+#line 764 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = user_interface_get_page_side (self);
+#line 764 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_->type = _tmp3_;
+#line 765 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = user_interface_get_selected_device (self);
+#line 765 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_ = _tmp4_;
+#line 765 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp6_ = options;
+#line 765 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_signal_emit_by_name (self, "start-scan", _tmp5_, _tmp6_);
+#line 765 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (_tmp5_);
+#line 759 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_scan_options_unref0 (options);
+#line 3877 "ui.c"
}
}
void G_MODULE_EXPORT preferences_button_clicked_cb (GtkWidget* widget, UserInterface* self) {
GtkDialog* _tmp0_;
+#line 770 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 770 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (widget != NULL);
+#line 772 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = self->priv->preferences_dialog;
+#line 772 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_window_present ((GtkWindow*) _tmp0_);
+#line 3892 "ui.c"
}
gboolean G_MODULE_EXPORT preferences_dialog_delete_event_cb (GtkWidget* widget, UserInterface* self) {
gboolean result = FALSE;
+#line 776 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (self != NULL, FALSE);
+#line 776 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (widget != NULL, FALSE);
+#line 778 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = TRUE;
+#line 778 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
+#line 3906 "ui.c"
}
void G_MODULE_EXPORT preferences_dialog_response_cb (GtkWidget* widget, gint response_id, UserInterface* self) {
GtkDialog* _tmp0_;
+#line 782 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 782 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (widget != NULL);
+#line 784 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = self->priv->preferences_dialog;
+#line 784 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_hide ((GtkWidget*) _tmp0_);
+#line 3920 "ui.c"
}
@@ -2297,18 +3925,30 @@ static void user_interface_update_page_menu (UserInterface* self) {
Page* _tmp1_ = NULL;
Page* page;
Page* _tmp2_;
+#line 787 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 789 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = self->priv->book_view;
+#line 789 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = book_view_get_selected (_tmp0_);
+#line 789 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
page = _tmp1_;
+#line 790 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = page;
+#line 790 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp2_ == NULL) {
+#line 3941 "ui.c"
GtkMenuItem* _tmp3_;
GtkMenuItem* _tmp4_;
+#line 792 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = self->priv->page_move_left_menuitem;
+#line 792 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_set_sensitive ((GtkWidget*) _tmp3_, FALSE);
+#line 793 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = self->priv->page_move_right_menuitem;
+#line 793 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_set_sensitive ((GtkWidget*) _tmp4_, FALSE);
+#line 3952 "ui.c"
} else {
Book* _tmp5_;
Page* _tmp6_;
@@ -2320,20 +3960,35 @@ static void user_interface_update_page_menu (UserInterface* self) {
guint _tmp11_;
Book* _tmp12_;
guint _tmp13_ = 0U;
+#line 797 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_ = self->priv->book;
+#line 797 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp6_ = page;
+#line 797 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp7_ = book_get_page_index (_tmp5_, _tmp6_);
+#line 797 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
index = _tmp7_;
+#line 798 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp8_ = self->priv->page_move_left_menuitem;
+#line 798 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp9_ = index;
+#line 798 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_set_sensitive ((GtkWidget*) _tmp8_, _tmp9_ > ((guint) 0));
+#line 799 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp10_ = self->priv->page_move_right_menuitem;
+#line 799 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp11_ = index;
+#line 799 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp12_ = self->priv->book;
+#line 799 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp13_ = book_get_n_pages (_tmp12_);
+#line 799 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_set_sensitive ((GtkWidget*) _tmp10_, _tmp11_ < (_tmp13_ - 1));
+#line 3988 "ui.c"
}
+#line 787 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_page_unref0 (page);
+#line 3992 "ui.c"
}
@@ -2355,74 +4010,135 @@ static void user_interface_page_selected_cb (UserInterface* self, BookView* view
GtkToggleToolButton* _tmp28_;
Page* _tmp29_;
gboolean _tmp30_ = FALSE;
+#line 803 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 803 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (view != NULL);
+#line 805 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = page;
+#line 805 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp0_ == NULL) {
+#line 806 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
+#line 4024 "ui.c"
}
+#line 808 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->updating_page_menu = TRUE;
+#line 810 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_update_page_menu (self);
+#line 812 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
name = NULL;
+#line 813 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = page;
+#line 813 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = page_has_crop (_tmp1_);
+#line 813 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp2_) {
+#line 4038 "ui.c"
Page* _tmp3_;
gchar* _tmp4_ = NULL;
gchar* crop_name;
const gchar* _tmp5_;
+#line 816 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = page;
+#line 816 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = page_get_named_crop (_tmp3_);
+#line 816 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
crop_name = _tmp4_;
+#line 817 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_ = crop_name;
+#line 817 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp5_ != NULL) {
+#line 4053 "ui.c"
const gchar* _tmp6_;
+#line 819 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp6_ = crop_name;
+#line 819 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (g_strcmp0 (_tmp6_, "A4") == 0) {
+#line 4059 "ui.c"
gchar* _tmp7_;
+#line 820 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp7_ = g_strdup ("a4_menuitem");
+#line 820 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (name);
+#line 820 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
name = _tmp7_;
+#line 4067 "ui.c"
} else {
const gchar* _tmp8_;
+#line 821 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp8_ = crop_name;
+#line 821 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (g_strcmp0 (_tmp8_, "A5") == 0) {
+#line 4074 "ui.c"
gchar* _tmp9_;
+#line 822 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp9_ = g_strdup ("a5_menuitem");
+#line 822 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (name);
+#line 822 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
name = _tmp9_;
+#line 4082 "ui.c"
} else {
const gchar* _tmp10_;
+#line 823 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp10_ = crop_name;
+#line 823 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (g_strcmp0 (_tmp10_, "A6") == 0) {
+#line 4089 "ui.c"
gchar* _tmp11_;
+#line 824 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp11_ = g_strdup ("a6_menuitem");
+#line 824 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (name);
+#line 824 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
name = _tmp11_;
+#line 4097 "ui.c"
} else {
const gchar* _tmp12_;
+#line 825 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp12_ = crop_name;
+#line 825 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (g_strcmp0 (_tmp12_, "letter") == 0) {
+#line 4104 "ui.c"
gchar* _tmp13_;
+#line 826 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp13_ = g_strdup ("letter_menuitem");
+#line 826 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (name);
+#line 826 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
name = _tmp13_;
+#line 4112 "ui.c"
} else {
const gchar* _tmp14_;
+#line 827 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp14_ = crop_name;
+#line 827 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (g_strcmp0 (_tmp14_, "legal") == 0) {
+#line 4119 "ui.c"
gchar* _tmp15_;
+#line 828 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp15_ = g_strdup ("legal_menuitem");
+#line 828 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (name);
+#line 828 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
name = _tmp15_;
+#line 4127 "ui.c"
} else {
const gchar* _tmp16_;
+#line 829 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp16_ = crop_name;
+#line 829 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (g_strcmp0 (_tmp16_, "4x6") == 0) {
+#line 4134 "ui.c"
gchar* _tmp17_;
+#line 830 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp17_ = g_strdup ("4x6_menuitem");
+#line 830 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (name);
+#line 830 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
name = _tmp17_;
+#line 4142 "ui.c"
}
}
}
@@ -2431,36 +4147,66 @@ static void user_interface_page_selected_cb (UserInterface* self, BookView* view
}
} else {
gchar* _tmp18_;
+#line 833 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp18_ = g_strdup ("custom_crop_menuitem");
+#line 833 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (name);
+#line 833 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
name = _tmp18_;
+#line 4157 "ui.c"
}
+#line 813 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (crop_name);
+#line 4161 "ui.c"
} else {
gchar* _tmp19_;
+#line 836 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp19_ = g_strdup ("no_crop_menuitem");
+#line 836 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (name);
+#line 836 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
name = _tmp19_;
+#line 4170 "ui.c"
}
+#line 838 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp20_ = self->priv->builder;
+#line 838 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp21_ = name;
+#line 838 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp22_ = gtk_builder_get_object (_tmp20_, _tmp21_);
+#line 838 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp23_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GTK_TYPE_RADIO_MENU_ITEM, GtkRadioMenuItem));
+#line 838 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
menuitem = _tmp23_;
+#line 839 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp24_ = menuitem;
+#line 839 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_check_menu_item_set_active ((GtkCheckMenuItem*) _tmp24_, TRUE);
+#line 840 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp25_ = self->priv->builder;
+#line 840 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp26_ = gtk_builder_get_object (_tmp25_, "crop_toolbutton");
+#line 840 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp27_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GTK_TYPE_TOGGLE_TOOL_BUTTON, GtkToggleToolButton));
+#line 840 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
toolbutton = _tmp27_;
+#line 841 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp28_ = toolbutton;
+#line 841 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp29_ = page;
+#line 841 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp30_ = page_has_crop (_tmp29_);
+#line 841 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_toggle_tool_button_set_active (_tmp28_, _tmp30_);
+#line 843 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->updating_page_menu = FALSE;
+#line 803 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (toolbutton);
+#line 803 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (menuitem);
+#line 803 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (name);
+#line 4210 "ui.c"
}
@@ -2472,99 +4218,167 @@ static void user_interface_show_page_cb (UserInterface* self, BookView* view, Pa
GFile* _tmp3_ = NULL;
GFile* file;
GError * _inner_error_ = NULL;
+#line 846 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 846 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (view != NULL);
+#line 846 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (page != NULL);
+#line 848 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = get_temporary_filename ("scanned-page", "tiff");
+#line 848 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
path = _tmp0_;
+#line 849 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = path;
+#line 849 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp1_ == NULL) {
+#line 850 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (path);
+#line 850 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
+#line 4240 "ui.c"
}
+#line 851 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = path;
+#line 851 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = g_file_new_for_path (_tmp2_);
+#line 851 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
file = _tmp3_;
+#line 4248 "ui.c"
{
Page* _tmp4_;
- GFile* _tmp5_;
+ gint _tmp5_ = 0;
+ GFile* _tmp6_;
+#line 855 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = page;
- _tmp5_ = file;
- page_save (_tmp4_, "tiff", _tmp5_, &_inner_error_);
+#line 855 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp5_ = user_interface_get_quality (self);
+#line 855 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp6_ = file;
+#line 855 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ page_save (_tmp4_, "tiff", _tmp5_, _tmp6_, &_inner_error_);
+#line 855 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_inner_error_ != NULL) {
- goto __catch16_g_error;
+#line 4263 "ui.c"
+ goto __catch17_g_error;
}
}
- goto __finally16;
- __catch16_g_error:
+ goto __finally17;
+ __catch17_g_error:
{
GError* e = NULL;
- const gchar* _tmp6_ = NULL;
- GError* _tmp7_;
- const gchar* _tmp8_;
+ const gchar* _tmp7_ = NULL;
+ GError* _tmp8_;
+ const gchar* _tmp9_;
+#line 853 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
e = _inner_error_;
+#line 853 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_inner_error_ = NULL;
- _tmp6_ = _ ("Unable to save image for preview");
- _tmp7_ = e;
- _tmp8_ = _tmp7_->message;
- user_interface_show_error_dialog (self, _tmp6_, _tmp8_);
+#line 859 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp7_ = _ ("Unable to save image for preview");
+#line 859 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp8_ = e;
+#line 859 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp9_ = _tmp8_->message;
+#line 859 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ user_interface_show_error_dialog (self, _tmp7_, _tmp9_);
+#line 862 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_error_free0 (e);
+#line 862 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (file);
+#line 862 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (path);
+#line 862 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
+#line 4294 "ui.c"
}
- __finally16:
+ __finally17:
+#line 853 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_inner_error_ != NULL) {
+#line 853 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (file);
+#line 853 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (path);
+#line 853 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 853 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_clear_error (&_inner_error_);
+#line 853 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
+#line 4309 "ui.c"
}
{
- GtkWindow* _tmp9_;
- GdkScreen* _tmp10_ = NULL;
- GFile* _tmp11_;
- gchar* _tmp12_ = NULL;
- gchar* _tmp13_;
- guint32 _tmp14_ = 0U;
- _tmp9_ = self->priv->window;
- _tmp10_ = gtk_window_get_screen (_tmp9_);
- _tmp11_ = file;
- _tmp12_ = g_file_get_uri (_tmp11_);
- _tmp13_ = _tmp12_;
- _tmp14_ = gtk_get_current_event_time ();
- gtk_show_uri (_tmp10_, _tmp13_, _tmp14_, &_inner_error_);
- _g_free0 (_tmp13_);
+ GtkWindow* _tmp10_;
+ GdkScreen* _tmp11_ = NULL;
+ GFile* _tmp12_;
+ gchar* _tmp13_ = NULL;
+ gchar* _tmp14_;
+ guint32 _tmp15_ = 0U;
+#line 867 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp10_ = self->priv->window;
+#line 867 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp11_ = gtk_window_get_screen (_tmp10_);
+#line 867 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp12_ = file;
+#line 867 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp13_ = g_file_get_uri (_tmp12_);
+#line 867 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp14_ = _tmp13_;
+#line 867 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp15_ = gtk_get_current_event_time ();
+#line 867 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ gtk_show_uri (_tmp11_, _tmp14_, _tmp15_, &_inner_error_);
+#line 867 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _g_free0 (_tmp14_);
+#line 867 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_inner_error_ != NULL) {
- goto __catch17_g_error;
+#line 4336 "ui.c"
+ goto __catch18_g_error;
}
}
- goto __finally17;
- __catch17_g_error:
+ goto __finally18;
+ __catch18_g_error:
{
GError* e = NULL;
- const gchar* _tmp15_ = NULL;
- GError* _tmp16_;
- const gchar* _tmp17_;
+ const gchar* _tmp16_ = NULL;
+ GError* _tmp17_;
+ const gchar* _tmp18_;
+#line 865 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
e = _inner_error_;
+#line 865 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_inner_error_ = NULL;
- _tmp15_ = _ ("Unable to open image preview application");
- _tmp16_ = e;
- _tmp17_ = _tmp16_->message;
- user_interface_show_error_dialog (self, _tmp15_, _tmp17_);
+#line 871 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp16_ = _ ("Unable to open image preview application");
+#line 871 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp17_ = e;
+#line 871 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp18_ = _tmp17_->message;
+#line 871 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ user_interface_show_error_dialog (self, _tmp16_, _tmp18_);
+#line 865 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_error_free0 (e);
+#line 4361 "ui.c"
}
- __finally17:
+ __finally18:
+#line 865 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_inner_error_ != NULL) {
+#line 865 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (file);
+#line 865 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (path);
+#line 865 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 865 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_clear_error (&_inner_error_);
+#line 865 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
+#line 4376 "ui.c"
}
+#line 846 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (file);
+#line 846 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (path);
+#line 4382 "ui.c"
}
@@ -2574,15 +4388,25 @@ static void user_interface_show_page_menu_cb (UserInterface* self, BookView* vie
GtkMenu* _tmp2_;
GtkMenu* menu;
guint32 _tmp3_ = 0U;
+#line 877 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 877 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (view != NULL);
+#line 879 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = self->priv->builder;
+#line 879 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = gtk_builder_get_object (_tmp0_, "page_menu");
+#line 879 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GTK_TYPE_MENU, GtkMenu));
+#line 879 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
menu = _tmp2_;
+#line 880 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = gtk_get_current_event_time ();
+#line 880 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_menu_popup (menu, NULL, NULL, NULL, NULL, (guint) 3, _tmp3_);
+#line 877 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (menu);
+#line 4410 "ui.c"
}
@@ -2592,22 +4416,39 @@ void G_MODULE_EXPORT rotate_left_button_clicked_cb (GtkWidget* widget, UserInter
Page* _tmp2_ = NULL;
Page* page;
Page* _tmp3_;
+#line 884 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 884 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (widget != NULL);
+#line 886 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = self->priv->updating_page_menu;
+#line 886 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp0_) {
+#line 887 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
+#line 4430 "ui.c"
}
+#line 888 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = self->priv->book_view;
+#line 888 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = book_view_get_selected (_tmp1_);
+#line 888 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
page = _tmp2_;
+#line 889 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = page;
+#line 889 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp3_ != NULL) {
+#line 4442 "ui.c"
Page* _tmp4_;
+#line 890 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = page;
+#line 890 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
page_rotate_left (_tmp4_);
+#line 4448 "ui.c"
}
+#line 884 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_page_unref0 (page);
+#line 4452 "ui.c"
}
@@ -2617,22 +4458,39 @@ void G_MODULE_EXPORT rotate_right_button_clicked_cb (GtkWidget* widget, UserInte
Page* _tmp2_ = NULL;
Page* page;
Page* _tmp3_;
+#line 894 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 894 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (widget != NULL);
+#line 896 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = self->priv->updating_page_menu;
+#line 896 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp0_) {
+#line 897 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
+#line 4472 "ui.c"
}
+#line 898 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = self->priv->book_view;
+#line 898 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = book_view_get_selected (_tmp1_);
+#line 898 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
page = _tmp2_;
+#line 899 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = page;
+#line 899 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp3_ != NULL) {
+#line 4484 "ui.c"
Page* _tmp4_;
+#line 900 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = page;
+#line 900 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
page_rotate_right (_tmp4_);
+#line 4490 "ui.c"
}
+#line 894 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_page_unref0 (page);
+#line 4494 "ui.c"
}
@@ -2645,33 +4503,60 @@ static void user_interface_set_crop (UserInterface* self, const gchar* crop_name
Page* page;
Page* _tmp5_;
const gchar* _tmp6_;
+#line 903 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 905 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = self->priv->crop_rotate_menuitem;
+#line 905 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = crop_name;
+#line 905 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_set_sensitive ((GtkWidget*) _tmp0_, _tmp1_ != NULL);
+#line 907 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = self->priv->updating_page_menu;
+#line 907 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp2_) {
+#line 908 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
+#line 4521 "ui.c"
}
+#line 910 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = self->priv->book_view;
+#line 910 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = book_view_get_selected (_tmp3_);
+#line 910 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
page = _tmp4_;
+#line 911 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_ = page;
+#line 911 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp5_ == NULL) {
+#line 912 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_page_unref0 (page);
+#line 912 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
+#line 4537 "ui.c"
}
+#line 914 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp6_ = crop_name;
+#line 914 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp6_ == NULL) {
+#line 4543 "ui.c"
Page* _tmp7_;
+#line 916 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp7_ = page;
+#line 916 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
page_set_no_crop (_tmp7_);
+#line 917 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_page_unref0 (page);
+#line 917 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
+#line 4553 "ui.c"
} else {
const gchar* _tmp8_;
+#line 919 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp8_ = crop_name;
+#line 919 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (g_strcmp0 (_tmp8_, "custom") == 0) {
+#line 4560 "ui.c"
Page* _tmp9_;
gint _tmp10_ = 0;
gint width;
@@ -2690,47 +4575,81 @@ static void user_interface_set_crop (UserInterface* self, const gchar* crop_name
gint _tmp20_;
gint _tmp21_;
gint _tmp22_;
+#line 921 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp9_ = page;
+#line 921 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp10_ = page_get_width (_tmp9_);
+#line 921 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
width = _tmp10_;
+#line 922 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp11_ = page;
+#line 922 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp12_ = page_get_height (_tmp11_);
+#line 922 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
height = _tmp12_;
+#line 923 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp13_ = width;
+#line 923 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
crop_width = (gint) ((_tmp13_ * 0.8) + 0.5);
+#line 924 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp14_ = height;
+#line 924 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
crop_height = (gint) ((_tmp14_ * 0.8) + 0.5);
+#line 925 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp15_ = page;
+#line 925 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp16_ = crop_width;
+#line 925 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp17_ = crop_height;
+#line 925 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
page_set_custom_crop (_tmp15_, _tmp16_, _tmp17_);
+#line 926 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp18_ = page;
+#line 926 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp19_ = width;
+#line 926 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp20_ = crop_width;
+#line 926 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp21_ = height;
+#line 926 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp22_ = crop_height;
+#line 926 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
page_move_crop (_tmp18_, (_tmp19_ - _tmp20_) / 2, (_tmp21_ - _tmp22_) / 2);
+#line 4619 "ui.c"
} else {
Page* _tmp23_;
const gchar* _tmp24_;
+#line 929 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp23_ = page;
+#line 929 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp24_ = crop_name;
+#line 929 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
page_set_named_crop (_tmp23_, _tmp24_);
+#line 4629 "ui.c"
}
}
+#line 903 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_page_unref0 (page);
+#line 4634 "ui.c"
}
void G_MODULE_EXPORT no_crop_menuitem_toggled_cb (GtkCheckMenuItem* widget, UserInterface* self) {
GtkCheckMenuItem* _tmp0_;
gboolean _tmp1_ = FALSE;
+#line 933 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 933 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (widget != NULL);
+#line 935 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = widget;
+#line 935 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = gtk_check_menu_item_get_active (_tmp0_);
+#line 935 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp1_) {
+#line 936 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_set_crop (self, NULL);
+#line 4653 "ui.c"
}
}
@@ -2738,12 +4657,19 @@ void G_MODULE_EXPORT no_crop_menuitem_toggled_cb (GtkCheckMenuItem* widget, User
void G_MODULE_EXPORT custom_crop_menuitem_toggled_cb (GtkCheckMenuItem* widget, UserInterface* self) {
GtkCheckMenuItem* _tmp0_;
gboolean _tmp1_ = FALSE;
+#line 940 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 940 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (widget != NULL);
+#line 942 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = widget;
+#line 942 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = gtk_check_menu_item_get_active (_tmp0_);
+#line 942 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp1_) {
+#line 943 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_set_crop (self, "custom");
+#line 4673 "ui.c"
}
}
@@ -2754,48 +4680,81 @@ void G_MODULE_EXPORT crop_toolbutton_toggled_cb (GtkToggleToolButton* widget, Us
GtkToggleToolButton* _tmp1_;
gboolean _tmp2_ = FALSE;
GtkRadioMenuItem* _tmp9_;
+#line 947 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 947 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (widget != NULL);
+#line 949 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = self->priv->updating_page_menu;
+#line 949 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp0_) {
+#line 950 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
+#line 4694 "ui.c"
}
+#line 953 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = widget;
+#line 953 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = gtk_toggle_tool_button_get_active (_tmp1_);
+#line 953 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp2_) {
+#line 4702 "ui.c"
GtkBuilder* _tmp3_;
GObject* _tmp4_ = NULL;
GtkRadioMenuItem* _tmp5_;
+#line 954 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = self->priv->builder;
+#line 954 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = gtk_builder_get_object (_tmp3_, "custom_crop_menuitem");
+#line 954 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GTK_TYPE_RADIO_MENU_ITEM, GtkRadioMenuItem));
+#line 954 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (menuitem);
+#line 954 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
menuitem = _tmp5_;
+#line 4716 "ui.c"
} else {
GtkBuilder* _tmp6_;
GObject* _tmp7_ = NULL;
GtkRadioMenuItem* _tmp8_;
+#line 956 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp6_ = self->priv->builder;
+#line 956 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp7_ = gtk_builder_get_object (_tmp6_, "no_crop_menuitem");
+#line 956 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp8_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GTK_TYPE_RADIO_MENU_ITEM, GtkRadioMenuItem));
+#line 956 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (menuitem);
+#line 956 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
menuitem = _tmp8_;
+#line 4731 "ui.c"
}
+#line 957 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp9_ = menuitem;
+#line 957 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_check_menu_item_set_active ((GtkCheckMenuItem*) _tmp9_, TRUE);
+#line 947 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (menuitem);
+#line 4739 "ui.c"
}
void G_MODULE_EXPORT four_by_six_menuitem_toggled_cb (GtkCheckMenuItem* widget, UserInterface* self) {
GtkCheckMenuItem* _tmp0_;
gboolean _tmp1_ = FALSE;
+#line 961 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 961 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (widget != NULL);
+#line 963 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = widget;
+#line 963 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = gtk_check_menu_item_get_active (_tmp0_);
+#line 963 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp1_) {
+#line 964 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_set_crop (self, "4x6");
+#line 4758 "ui.c"
}
}
@@ -2803,12 +4762,19 @@ void G_MODULE_EXPORT four_by_six_menuitem_toggled_cb (GtkCheckMenuItem* widget,
void G_MODULE_EXPORT legal_menuitem_toggled_cb (GtkCheckMenuItem* widget, UserInterface* self) {
GtkCheckMenuItem* _tmp0_;
gboolean _tmp1_ = FALSE;
+#line 968 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 968 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (widget != NULL);
+#line 970 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = widget;
+#line 970 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = gtk_check_menu_item_get_active (_tmp0_);
+#line 970 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp1_) {
+#line 971 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_set_crop (self, "legal");
+#line 4778 "ui.c"
}
}
@@ -2816,12 +4782,19 @@ void G_MODULE_EXPORT legal_menuitem_toggled_cb (GtkCheckMenuItem* widget, UserIn
void G_MODULE_EXPORT letter_menuitem_toggled_cb (GtkCheckMenuItem* widget, UserInterface* self) {
GtkCheckMenuItem* _tmp0_;
gboolean _tmp1_ = FALSE;
+#line 975 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 975 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (widget != NULL);
+#line 977 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = widget;
+#line 977 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = gtk_check_menu_item_get_active (_tmp0_);
+#line 977 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp1_) {
+#line 978 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_set_crop (self, "letter");
+#line 4798 "ui.c"
}
}
@@ -2829,12 +4802,19 @@ void G_MODULE_EXPORT letter_menuitem_toggled_cb (GtkCheckMenuItem* widget, UserI
void G_MODULE_EXPORT a6_menuitem_toggled_cb (GtkCheckMenuItem* widget, UserInterface* self) {
GtkCheckMenuItem* _tmp0_;
gboolean _tmp1_ = FALSE;
+#line 982 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 982 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (widget != NULL);
+#line 984 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = widget;
+#line 984 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = gtk_check_menu_item_get_active (_tmp0_);
+#line 984 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp1_) {
+#line 985 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_set_crop (self, "A6");
+#line 4818 "ui.c"
}
}
@@ -2842,12 +4822,19 @@ void G_MODULE_EXPORT a6_menuitem_toggled_cb (GtkCheckMenuItem* widget, UserInter
void G_MODULE_EXPORT a5_menuitem_toggled_cb (GtkCheckMenuItem* widget, UserInterface* self) {
GtkCheckMenuItem* _tmp0_;
gboolean _tmp1_ = FALSE;
+#line 989 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 989 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (widget != NULL);
+#line 991 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = widget;
+#line 991 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = gtk_check_menu_item_get_active (_tmp0_);
+#line 991 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp1_) {
+#line 992 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_set_crop (self, "A5");
+#line 4838 "ui.c"
}
}
@@ -2855,12 +4842,19 @@ void G_MODULE_EXPORT a5_menuitem_toggled_cb (GtkCheckMenuItem* widget, UserInter
void G_MODULE_EXPORT a4_menuitem_toggled_cb (GtkCheckMenuItem* widget, UserInterface* self) {
GtkCheckMenuItem* _tmp0_;
gboolean _tmp1_ = FALSE;
+#line 996 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 996 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (widget != NULL);
+#line 998 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = widget;
+#line 998 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = gtk_check_menu_item_get_active (_tmp0_);
+#line 998 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp1_) {
+#line 999 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_set_crop (self, "A4");
+#line 4858 "ui.c"
}
}
@@ -2871,19 +4865,33 @@ void G_MODULE_EXPORT crop_rotate_menuitem_activate_cb (GtkWidget* widget, UserIn
Page* page;
Page* _tmp2_;
Page* _tmp3_;
+#line 1003 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 1003 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (widget != NULL);
+#line 1005 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = self->priv->book_view;
+#line 1005 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = book_view_get_selected (_tmp0_);
+#line 1005 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
page = _tmp1_;
+#line 1006 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = page;
+#line 1006 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp2_ == NULL) {
+#line 1007 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_page_unref0 (page);
+#line 1007 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
+#line 4887 "ui.c"
}
+#line 1008 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = page;
+#line 1008 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
page_rotate_crop (_tmp3_);
+#line 1003 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_page_unref0 (page);
+#line 4895 "ui.c"
}
@@ -2896,27 +4904,47 @@ void G_MODULE_EXPORT page_move_left_menuitem_activate_cb (GtkWidget* widget, Use
guint _tmp4_ = 0U;
guint index;
guint _tmp5_;
+#line 1012 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 1012 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (widget != NULL);
+#line 1014 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = self->priv->book_view;
+#line 1014 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = book_view_get_selected (_tmp0_);
+#line 1014 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
page = _tmp1_;
+#line 1015 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = self->priv->book;
+#line 1015 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = page;
+#line 1015 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = book_get_page_index (_tmp2_, _tmp3_);
+#line 1015 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
index = _tmp4_;
+#line 1016 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_ = index;
+#line 1016 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp5_ > ((guint) 0)) {
+#line 4930 "ui.c"
Book* _tmp6_;
Page* _tmp7_;
guint _tmp8_;
+#line 1017 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp6_ = self->priv->book;
+#line 1017 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp7_ = page;
+#line 1017 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp8_ = index;
+#line 1017 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
book_move_page (_tmp6_, _tmp7_, _tmp8_ - 1);
+#line 4942 "ui.c"
}
+#line 1019 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_update_page_menu (self);
+#line 1012 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_page_unref0 (page);
+#line 4948 "ui.c"
}
@@ -2931,33 +4959,57 @@ void G_MODULE_EXPORT page_move_right_menuitem_activate_cb (GtkWidget* widget, Us
guint _tmp5_;
Book* _tmp6_;
guint _tmp7_ = 0U;
+#line 1023 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 1023 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (widget != NULL);
+#line 1025 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = self->priv->book_view;
+#line 1025 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = book_view_get_selected (_tmp0_);
+#line 1025 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
page = _tmp1_;
+#line 1026 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = self->priv->book;
+#line 1026 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = page;
+#line 1026 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = book_get_page_index (_tmp2_, _tmp3_);
+#line 1026 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
index = _tmp4_;
+#line 1027 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_ = index;
+#line 1027 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp6_ = self->priv->book;
+#line 1027 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp7_ = book_get_n_pages (_tmp6_);
+#line 1027 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp5_ < (_tmp7_ - 1)) {
+#line 4989 "ui.c"
Book* _tmp8_;
Page* _tmp9_;
Book* _tmp10_;
Page* _tmp11_;
guint _tmp12_ = 0U;
+#line 1028 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp8_ = self->priv->book;
+#line 1028 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp9_ = page;
+#line 1028 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp10_ = self->priv->book;
+#line 1028 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp11_ = page;
+#line 1028 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp12_ = book_get_page_index (_tmp10_, _tmp11_);
+#line 1028 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
book_move_page (_tmp8_, _tmp9_, _tmp12_ + 1);
+#line 5007 "ui.c"
}
+#line 1030 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_update_page_menu (self);
+#line 1023 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_page_unref0 (page);
+#line 5013 "ui.c"
}
@@ -2968,36 +5020,94 @@ void G_MODULE_EXPORT page_delete_menuitem_activate_cb (GtkWidget* widget, UserIn
BookView* _tmp3_;
Page* _tmp4_ = NULL;
Page* _tmp5_;
+#line 1034 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 1034 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (widget != NULL);
+#line 1036 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = self->priv->book_view;
+#line 1036 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = book_view_get_book (_tmp0_);
+#line 1036 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = _tmp1_;
+#line 1036 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = self->priv->book_view;
+#line 1036 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = book_view_get_selected (_tmp3_);
+#line 1036 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_ = _tmp4_;
+#line 1036 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
book_delete_page (_tmp2_, _tmp5_);
+#line 1036 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_page_unref0 (_tmp5_);
+#line 1036 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_book_unref0 (_tmp2_);
+#line 5046 "ui.c"
}
void G_MODULE_EXPORT save_file_button_clicked_cb (GtkWidget* widget, UserInterface* self) {
+#line 1040 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 1040 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (widget != NULL);
+#line 1042 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_save_document (self, FALSE);
+#line 5057 "ui.c"
+}
+
+
+void G_MODULE_EXPORT copy_to_clipboard_button_clicked_cb (GtkWidget* widget, UserInterface* self) {
+ BookView* _tmp0_;
+ Page* _tmp1_ = NULL;
+ Page* page;
+ Page* _tmp2_;
+#line 1046 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ g_return_if_fail (self != NULL);
+#line 1046 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ g_return_if_fail (widget != NULL);
+#line 1048 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp0_ = self->priv->book_view;
+#line 1048 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp1_ = book_view_get_selected (_tmp0_);
+#line 1048 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ page = _tmp1_;
+#line 1049 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp2_ = page;
+#line 1049 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ if (_tmp2_ != NULL) {
+#line 5080 "ui.c"
+ Page* _tmp3_;
+ GtkWindow* _tmp4_;
+#line 1050 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp3_ = page;
+#line 1050 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp4_ = self->priv->window;
+#line 1050 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ page_copy_to_clipboard (_tmp3_, _tmp4_);
+#line 5089 "ui.c"
+ }
+#line 1046 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _page_unref0 (page);
+#line 5093 "ui.c"
}
void G_MODULE_EXPORT save_as_file_button_clicked_cb (GtkWidget* widget, UserInterface* self) {
+#line 1054 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 1054 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (widget != NULL);
+#line 1056 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_save_document (self, TRUE);
+#line 5104 "ui.c"
}
static gpointer _cairo_reference0 (gpointer self) {
+#line 1063 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return self ? cairo_reference (self) : NULL;
+#line 5111 "ui.c"
}
@@ -3032,74 +5142,136 @@ static void user_interface_draw_page (UserInterface* self, GtkPrintOperation* op
GdkPixbuf* image;
cairo_t* _tmp28_;
cairo_t* _tmp29_;
+#line 1059 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 1059 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (operation != NULL);
+#line 1059 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (print_context != NULL);
+#line 1063 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = print_context;
+#line 1063 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = gtk_print_context_get_cairo_context (_tmp0_);
+#line 1063 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = _cairo_reference0 (_tmp1_);
+#line 1063 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
context = _tmp2_;
+#line 1064 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = self->priv->book;
+#line 1064 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = page_number;
+#line 1064 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_ = book_get_page (_tmp3_, _tmp4_);
+#line 1064 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
page = _tmp5_;
+#line 1067 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
is_landscape = FALSE;
+#line 1068 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp6_ = print_context;
+#line 1068 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp7_ = gtk_print_context_get_width (_tmp6_);
+#line 1068 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp8_ = print_context;
+#line 1068 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp9_ = gtk_print_context_get_height (_tmp8_);
+#line 1068 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp7_ > _tmp9_) {
+#line 1069 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
is_landscape = TRUE;
+#line 5182 "ui.c"
}
+#line 1070 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp10_ = page;
+#line 1070 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp11_ = page_is_landscape (_tmp10_);
+#line 1070 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp12_ = is_landscape;
+#line 1070 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp11_ != _tmp12_) {
+#line 5192 "ui.c"
cairo_t* _tmp13_;
GtkPrintContext* _tmp14_;
gdouble _tmp15_ = 0.0;
cairo_t* _tmp16_;
+#line 1072 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp13_ = context;
+#line 1072 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp14_ = print_context;
+#line 1072 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp15_ = gtk_print_context_get_width (_tmp14_);
+#line 1072 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
cairo_translate (_tmp13_, _tmp15_, (gdouble) 0);
+#line 1073 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp16_ = context;
+#line 1073 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
cairo_rotate (_tmp16_, G_PI_2);
+#line 5209 "ui.c"
}
+#line 1076 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp17_ = context;
+#line 1076 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp18_ = print_context;
+#line 1076 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp19_ = gtk_print_context_get_dpi_x (_tmp18_);
+#line 1076 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp20_ = page;
+#line 1076 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp21_ = page_get_dpi (_tmp20_);
+#line 1076 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp22_ = print_context;
+#line 1076 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp23_ = gtk_print_context_get_dpi_y (_tmp22_);
+#line 1076 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp24_ = page;
+#line 1076 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp25_ = page_get_dpi (_tmp24_);
+#line 1076 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
cairo_scale (_tmp17_, _tmp19_ / _tmp21_, _tmp23_ / _tmp25_);
+#line 1079 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp26_ = page;
+#line 1079 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp27_ = page_get_image (_tmp26_, TRUE);
+#line 1079 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
image = _tmp27_;
+#line 1080 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp28_ = context;
+#line 1080 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gdk_cairo_set_source_pixbuf (_tmp28_, image, (gdouble) 0, (gdouble) 0);
+#line 1081 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp29_ = context;
+#line 1081 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
cairo_paint (_tmp29_);
+#line 1059 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (image);
+#line 1059 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_page_unref0 (page);
+#line 1059 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_cairo_destroy0 (context);
+#line 5251 "ui.c"
}
void G_MODULE_EXPORT email_button_clicked_cb (GtkWidget* widget, UserInterface* self) {
const gchar* _tmp0_;
+ gint _tmp1_ = 0;
+#line 1085 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 1085 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (widget != NULL);
+#line 1087 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = self->priv->document_hint;
- g_signal_emit_by_name (self, "email", _tmp0_);
+#line 1087 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp1_ = user_interface_get_quality (self);
+#line 1087 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ g_signal_emit_by_name (self, "email", _tmp0_, _tmp1_);
+#line 5268 "ui.c"
}
static void _user_interface_draw_page_gtk_print_operation_draw_page (GtkPrintOperation* _sender, GtkPrintContext* context, gint page_nr, gpointer self) {
+#line 1095 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_draw_page (self, _sender, context, page_nr);
+#line 5275 "ui.c"
}
@@ -3110,84 +5282,136 @@ void G_MODULE_EXPORT print_button_clicked_cb (GtkWidget* widget, UserInterface*
guint _tmp2_ = 0U;
guint _tmp6_ = 0U;
GError * _inner_error_ = NULL;
+#line 1091 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 1091 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (widget != NULL);
+#line 1093 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = gtk_print_operation_new ();
+#line 1093 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
print = _tmp0_;
+#line 1094 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = self->priv->book;
+#line 1094 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = book_get_n_pages (_tmp1_);
+#line 1094 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_print_operation_set_n_pages (print, (gint) _tmp2_);
+#line 1095 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_signal_connect (print, "draw-page", (GCallback) _user_interface_draw_page_gtk_print_operation_draw_page, self);
+#line 5302 "ui.c"
{
GtkWindow* _tmp3_;
+#line 1099 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = self->priv->window;
+#line 1099 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_print_operation_run (print, GTK_PRINT_OPERATION_ACTION_PRINT_DIALOG, _tmp3_, &_inner_error_);
+#line 1099 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_inner_error_ != NULL) {
- goto __catch18_g_error;
+#line 5311 "ui.c"
+ goto __catch19_g_error;
}
}
- goto __finally18;
- __catch18_g_error:
+ goto __finally19;
+ __catch19_g_error:
{
GError* e = NULL;
GError* _tmp4_;
const gchar* _tmp5_;
+#line 1097 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
e = _inner_error_;
+#line 1097 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_inner_error_ = NULL;
+#line 1103 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = e;
+#line 1103 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_ = _tmp4_->message;
- g_warning ("ui.vala:1034: Error printing: %s", _tmp5_);
+#line 1103 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ g_warning ("ui.vala:1103: Error printing: %s", _tmp5_);
+#line 1097 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_error_free0 (e);
+#line 5333 "ui.c"
}
- __finally18:
+ __finally19:
+#line 1097 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_inner_error_ != NULL) {
+#line 1097 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (print);
+#line 1097 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 1097 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_clear_error (&_inner_error_);
+#line 1097 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
+#line 5346 "ui.c"
}
+#line 1106 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_signal_parse_name ("draw-page", GTK_TYPE_PRINT_OPERATION, &_tmp6_, NULL, FALSE);
+#line 1106 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_signal_handlers_disconnect_matched (print, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp6_, 0, NULL, (GCallback) _user_interface_draw_page_gtk_print_operation_draw_page, self);
+#line 1091 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (print);
+#line 5354 "ui.c"
}
void G_MODULE_EXPORT help_contents_menuitem_activate_cb (GtkWidget* widget, UserInterface* self) {
GError * _inner_error_ = NULL;
+#line 1110 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 1110 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (widget != NULL);
+#line 5364 "ui.c"
{
GtkWindow* _tmp0_;
GdkScreen* _tmp1_ = NULL;
guint32 _tmp2_ = 0U;
+#line 1114 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = self->priv->window;
+#line 1114 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = gtk_window_get_screen (_tmp0_);
+#line 1114 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = gtk_get_current_event_time ();
+#line 1114 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_show_uri (_tmp1_, "help:simple-scan", _tmp2_, &_inner_error_);
+#line 1114 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_inner_error_ != NULL) {
- goto __catch19_g_error;
+#line 5379 "ui.c"
+ goto __catch20_g_error;
}
}
- goto __finally19;
- __catch19_g_error:
+ goto __finally20;
+ __catch20_g_error:
{
GError* e = NULL;
const gchar* _tmp3_ = NULL;
GError* _tmp4_;
const gchar* _tmp5_;
+#line 1112 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
e = _inner_error_;
+#line 1112 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_inner_error_ = NULL;
+#line 1118 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = _ ("Unable to open help file");
+#line 1118 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = e;
+#line 1118 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_ = _tmp4_->message;
+#line 1118 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_show_error_dialog (self, _tmp3_, _tmp5_);
+#line 1112 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_error_free0 (e);
+#line 5404 "ui.c"
}
- __finally19:
+ __finally20:
+#line 1112 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_inner_error_ != NULL) {
+#line 1112 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 1112 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_clear_error (&_inner_error_);
+#line 1112 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
+#line 5415 "ui.c"
}
}
@@ -3209,14 +5433,23 @@ void G_MODULE_EXPORT about_menuitem_activate_cb (GtkWidget* widget, UserInterfac
gchar* description;
GtkWindow* _tmp8_;
const gchar* _tmp9_ = NULL;
+#line 1125 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 1125 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (widget != NULL);
+#line 1127 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = g_strdup ("Robert Ancell <robert.ancell@canonical.com>");
+#line 1127 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = g_new0 (gchar*, 1 + 1);
+#line 1127 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_[0] = _tmp0_;
+#line 1127 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
authors = _tmp1_;
+#line 1127 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
authors_length1 = 1;
+#line 1127 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_authors_size_ = authors_length1;
+#line 1130 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = _ ("This program is free software: you can redistribute it and/or modify\n" \
"it under the terms of the GNU General Public License as published by\n" \
"the Free Software Foundation, either version 3 of the License, or\n" \
@@ -3229,21 +5462,37 @@ void G_MODULE_EXPORT about_menuitem_activate_cb (GtkWidget* widget, UserInterfac
"\n" \
"You should have received a copy of the GNU General Public License\n" \
"along with this program. If not, see <http://www.gnu.org/licenses/>.");
+#line 1130 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = g_strdup (_tmp2_);
+#line 1130 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
license = _tmp3_;
+#line 1133 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = _ ("About Simple Scan");
+#line 1133 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_ = g_strdup (_tmp4_);
+#line 1133 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
title = _tmp5_;
+#line 1136 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp6_ = _ ("Simple document scanning tool");
+#line 1136 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp7_ = g_strdup (_tmp6_);
+#line 1136 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
description = _tmp7_;
+#line 1138 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp8_ = self->priv->window;
+#line 1138 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp9_ = _ ("translator-credits");
+#line 1138 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_show_about_dialog (_tmp8_, "title", title, "program-name", "Simple Scan", "version", VERSION, "comments", description, "logo-icon-name", "scanner", "authors", authors, "translator-credits", _tmp9_, "website", "https://launchpad.net/simple-scan", "copyright", "Copyright © 2009-2011 Canonical Ltd.", "license", license, "wrap-license", TRUE, NULL, NULL);
+#line 1125 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (description);
+#line 1125 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (title);
+#line 1125 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (license);
+#line 1125 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
authors = (_vala_array_free (authors, authors_length1, (GDestroyNotify) g_free), NULL);
+#line 5485 "ui.c"
}
@@ -3272,140 +5521,281 @@ static gboolean user_interface_on_quit (UserInterface* self) {
GSettings* _tmp19_;
gint _tmp20_;
GSettings* _tmp21_;
- gint _tmp22_;
+ gint _tmp22_ = 0;
GSettings* _tmp23_;
- gint _tmp24_;
+ gint _tmp24_ = 0;
GSettings* _tmp25_;
- gboolean _tmp26_;
+ gint _tmp26_ = 0;
GSettings* _tmp27_;
- ScanDirection _tmp28_;
+ gint _tmp28_;
GSettings* _tmp29_;
gint _tmp30_;
GSettings* _tmp31_;
- gint _tmp32_;
+ gboolean _tmp32_;
GSettings* _tmp33_;
- gint _tmp34_;
- GtkWindow* _tmp35_;
+ ScanDirection _tmp34_;
+ GSettings* _tmp35_;
+ gint _tmp36_;
+ GSettings* _tmp37_;
+ gint _tmp38_;
+ GSettings* _tmp39_;
+ gint _tmp40_;
+ GtkWindow* _tmp41_;
+ AutosaveManager* _tmp42_;
+#line 1153 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (self != NULL, FALSE);
+#line 1155 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = _ ("Save document before quitting?");
+#line 1155 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = _ ("Quit without Saving");
+#line 1155 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = user_interface_prompt_to_save (self, _tmp0_, _tmp1_);
+#line 1155 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (!_tmp2_) {
+#line 1159 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = FALSE;
+#line 1159 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
+#line 5549 "ui.c"
}
+#line 1161 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = user_interface_get_selected_device (self);
+#line 1161 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
device = _tmp3_;
+#line 1162 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
paper_width = 0;
+#line 1162 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
paper_height = 0;
+#line 1163 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_get_paper_size (self, &_tmp4_, &_tmp5_);
+#line 1163 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
paper_width = _tmp4_;
+#line 1163 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
paper_height = _tmp5_;
+#line 1165 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp6_ = device;
+#line 1165 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp6_ != NULL) {
+#line 5569 "ui.c"
GSettings* _tmp7_;
const gchar* _tmp8_;
+#line 1166 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp7_ = self->priv->settings;
+#line 1166 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp8_ = device;
+#line 1166 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_settings_set_string (_tmp7_, "selected-device", _tmp8_);
+#line 5578 "ui.c"
}
+#line 1167 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp9_ = self->priv->settings;
+#line 1167 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp10_ = self->priv->document_hint;
+#line 1167 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_settings_set_string (_tmp9_, "document-type", _tmp10_);
+#line 1168 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp11_ = self->priv->settings;
+#line 1168 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp12_ = user_interface_get_text_dpi (self);
+#line 1168 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_settings_set_int (_tmp11_, "text-dpi", _tmp12_);
+#line 1169 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp13_ = self->priv->settings;
+#line 1169 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp14_ = user_interface_get_photo_dpi (self);
+#line 1169 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_settings_set_int (_tmp13_, "photo-dpi", _tmp14_);
+#line 1170 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp15_ = self->priv->settings;
+#line 1170 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp16_ = user_interface_get_page_side (self);
+#line 1170 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_settings_set_enum (_tmp15_, "page-side", (gint) _tmp16_);
+#line 1171 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp17_ = self->priv->settings;
+#line 1171 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp18_ = paper_width;
+#line 1171 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_settings_set_int (_tmp17_, "paper-width", _tmp18_);
+#line 1172 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp19_ = self->priv->settings;
+#line 1172 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp20_ = paper_height;
+#line 1172 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_settings_set_int (_tmp19_, "paper-height", _tmp20_);
+#line 1173 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp21_ = self->priv->settings;
- _tmp22_ = self->priv->window_width;
- g_settings_set_int (_tmp21_, "window-width", _tmp22_);
+#line 1173 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp22_ = user_interface_get_brightness (self);
+#line 1173 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ g_settings_set_int (_tmp21_, "brightness", _tmp22_);
+#line 1174 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp23_ = self->priv->settings;
- _tmp24_ = self->priv->window_height;
- g_settings_set_int (_tmp23_, "window-height", _tmp24_);
+#line 1174 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp24_ = user_interface_get_contrast (self);
+#line 1174 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ g_settings_set_int (_tmp23_, "contrast", _tmp24_);
+#line 1175 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp25_ = self->priv->settings;
- _tmp26_ = self->priv->window_is_maximized;
- g_settings_set_boolean (_tmp25_, "window-is-maximized", _tmp26_);
+#line 1175 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp26_ = user_interface_get_quality (self);
+#line 1175 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ g_settings_set_int (_tmp25_, "jpeg-quality", _tmp26_);
+#line 1176 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp27_ = self->priv->settings;
- _tmp28_ = self->priv->default_page_scan_direction;
- g_settings_set_enum (_tmp27_, "scan-direction", (gint) _tmp28_);
+#line 1176 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp28_ = self->priv->window_width;
+#line 1176 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ g_settings_set_int (_tmp27_, "window-width", _tmp28_);
+#line 1177 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp29_ = self->priv->settings;
- _tmp30_ = self->priv->default_page_width;
- g_settings_set_int (_tmp29_, "page-width", _tmp30_);
+#line 1177 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp30_ = self->priv->window_height;
+#line 1177 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ g_settings_set_int (_tmp29_, "window-height", _tmp30_);
+#line 1178 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp31_ = self->priv->settings;
- _tmp32_ = self->priv->default_page_height;
- g_settings_set_int (_tmp31_, "page-height", _tmp32_);
+#line 1178 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp32_ = self->priv->window_is_maximized;
+#line 1178 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ g_settings_set_boolean (_tmp31_, "window-is-maximized", _tmp32_);
+#line 1179 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp33_ = self->priv->settings;
- _tmp34_ = self->priv->default_page_dpi;
- g_settings_set_int (_tmp33_, "page-dpi", _tmp34_);
- _tmp35_ = self->priv->window;
- gtk_widget_destroy ((GtkWidget*) _tmp35_);
+#line 1179 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp34_ = self->priv->default_page_scan_direction;
+#line 1179 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ g_settings_set_enum (_tmp33_, "scan-direction", (gint) _tmp34_);
+#line 1180 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp35_ = self->priv->settings;
+#line 1180 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp36_ = self->priv->default_page_width;
+#line 1180 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ g_settings_set_int (_tmp35_, "page-width", _tmp36_);
+#line 1181 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp37_ = self->priv->settings;
+#line 1181 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp38_ = self->priv->default_page_height;
+#line 1181 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ g_settings_set_int (_tmp37_, "page-height", _tmp38_);
+#line 1182 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp39_ = self->priv->settings;
+#line 1182 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp40_ = self->priv->default_page_dpi;
+#line 1182 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ g_settings_set_int (_tmp39_, "page-dpi", _tmp40_);
+#line 1184 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp41_ = self->priv->window;
+#line 1184 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ gtk_widget_destroy ((GtkWidget*) _tmp41_);
+#line 1186 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp42_ = self->priv->autosave_manager;
+#line 1186 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ if (_tmp42_ != NULL) {
+#line 5684 "ui.c"
+ AutosaveManager* _tmp43_;
+#line 1187 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp43_ = self->priv->autosave_manager;
+#line 1187 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ autosave_manager_cleanup (_tmp43_);
+#line 5690 "ui.c"
+ }
+#line 1189 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = TRUE;
+#line 1189 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (device);
+#line 1189 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
+#line 5698 "ui.c"
}
void G_MODULE_EXPORT quit_menuitem_activate_cb (GtkWidget* widget, UserInterface* self) {
+#line 1193 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 1193 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (widget != NULL);
+#line 1195 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_on_quit (self);
+#line 5709 "ui.c"
}
gboolean G_MODULE_EXPORT simple_scan_window_configure_event_cb (GtkWidget* widget, GdkEventConfigure* event, UserInterface* self) {
gboolean result = FALSE;
gboolean _tmp0_;
+#line 1199 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (self != NULL, FALSE);
+#line 1199 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (widget != NULL, FALSE);
+#line 1199 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (event != NULL, FALSE);
+#line 1201 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = self->priv->window_is_maximized;
+#line 1201 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (!_tmp0_) {
+#line 5726 "ui.c"
GdkEventConfigure _tmp1_;
gint _tmp2_;
GdkEventConfigure _tmp3_;
gint _tmp4_;
+#line 1203 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = *event;
+#line 1203 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = _tmp1_.width;
+#line 1203 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->window_width = _tmp2_;
+#line 1204 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = *event;
+#line 1204 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = _tmp3_.height;
+#line 1204 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->window_height = _tmp4_;
+#line 5743 "ui.c"
}
+#line 1207 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = FALSE;
+#line 1207 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
+#line 5749 "ui.c"
}
static void user_interface_info_bar_response_cb (UserInterface* self, GtkInfoBar* widget, gint response_id) {
gint _tmp0_;
+#line 1210 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 1210 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (widget != NULL);
+#line 1212 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = response_id;
+#line 1212 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp0_ == 1) {
+#line 5763 "ui.c"
GtkComboBox* _tmp1_;
GtkDialog* _tmp2_;
+#line 1214 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = self->priv->device_combo;
+#line 1214 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_grab_focus ((GtkWidget*) _tmp1_);
+#line 1215 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = self->priv->preferences_dialog;
+#line 1215 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_window_present ((GtkWindow*) _tmp2_);
+#line 5774 "ui.c"
} else {
+#line 1219 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->have_error = FALSE;
+#line 1220 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (self->priv->error_title);
+#line 1220 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->error_title = NULL;
+#line 1221 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (self->priv->error_text);
+#line 1221 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->error_text = NULL;
+#line 1222 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_update_info_bar (self);
+#line 5788 "ui.c"
}
}
@@ -3414,32 +5804,53 @@ gboolean G_MODULE_EXPORT simple_scan_window_window_state_event_cb (GtkWidget* wi
gboolean result = FALSE;
GdkEventWindowState _tmp0_;
GdkWindowState _tmp1_;
+#line 1227 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (self != NULL, FALSE);
+#line 1227 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (widget != NULL, FALSE);
+#line 1227 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (event != NULL, FALSE);
+#line 1229 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = *event;
+#line 1229 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = _tmp0_.changed_mask;
+#line 1229 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if ((_tmp1_ & GDK_WINDOW_STATE_MAXIMIZED) != 0) {
+#line 5809 "ui.c"
GdkEventWindowState _tmp2_;
GdkWindowState _tmp3_;
+#line 1230 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = *event;
+#line 1230 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = _tmp2_.new_window_state;
+#line 1230 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->window_is_maximized = (_tmp3_ & GDK_WINDOW_STATE_MAXIMIZED) != 0;
+#line 5818 "ui.c"
}
+#line 1231 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = FALSE;
+#line 1231 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
+#line 5824 "ui.c"
}
gboolean G_MODULE_EXPORT window_delete_event_cb (GtkWidget* widget, GdkEvent* event, UserInterface* self) {
gboolean result = FALSE;
gboolean _tmp0_ = FALSE;
+#line 1235 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (self != NULL, FALSE);
+#line 1235 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (widget != NULL, FALSE);
+#line 1235 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (event != NULL, FALSE);
+#line 1237 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = user_interface_on_quit (self);
+#line 1237 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = !_tmp0_;
+#line 1237 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
+#line 5843 "ui.c"
}
@@ -3450,38 +5861,60 @@ static void user_interface_page_size_changed_cb (UserInterface* self, Page* page
gint _tmp3_ = 0;
Page* _tmp4_;
gint _tmp5_ = 0;
+#line 1240 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 1240 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (page != NULL);
+#line 1242 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = page;
+#line 1242 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = page_get_width (_tmp0_);
+#line 1242 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->default_page_width = _tmp1_;
+#line 1243 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = page;
+#line 1243 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = page_get_height (_tmp2_);
+#line 1243 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->default_page_height = _tmp3_;
+#line 1244 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = page;
+#line 1244 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_ = page_get_dpi (_tmp4_);
+#line 1244 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->default_page_dpi = _tmp5_;
+#line 5876 "ui.c"
}
static void user_interface_page_scan_direction_changed_cb (UserInterface* self, Page* page) {
Page* _tmp0_;
ScanDirection _tmp1_ = 0;
+#line 1247 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 1247 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (page != NULL);
+#line 1249 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = page;
+#line 1249 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = page_get_scan_direction (_tmp0_);
+#line 1249 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->default_page_scan_direction = _tmp1_;
+#line 5893 "ui.c"
}
static void _user_interface_page_size_changed_cb_page_size_changed (Page* _sender, gpointer self) {
+#line 1258 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_page_size_changed_cb (self, _sender);
+#line 5900 "ui.c"
}
static void _user_interface_page_scan_direction_changed_cb_page_scan_direction_changed (Page* _sender, gpointer self) {
+#line 1259 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_page_scan_direction_changed_cb (self, _sender);
+#line 5907 "ui.c"
}
@@ -3496,26 +5929,47 @@ static void user_interface_page_added_cb (UserInterface* self, Book* book, Page*
ScanDirection _tmp7_ = 0;
Page* _tmp8_;
Page* _tmp9_;
+#line 1252 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 1252 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (book != NULL);
+#line 1252 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (page != NULL);
+#line 1254 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = page;
+#line 1254 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = page_get_width (_tmp0_);
+#line 1254 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->default_page_width = _tmp1_;
+#line 1255 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = page;
+#line 1255 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = page_get_height (_tmp2_);
+#line 1255 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->default_page_height = _tmp3_;
+#line 1256 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = page;
+#line 1256 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_ = page_get_dpi (_tmp4_);
+#line 1256 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->default_page_dpi = _tmp5_;
+#line 1257 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp6_ = page;
+#line 1257 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp7_ = page_get_scan_direction (_tmp6_);
+#line 1257 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->default_page_scan_direction = _tmp7_;
+#line 1258 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp8_ = page;
+#line 1258 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_signal_connect (_tmp8_, "size-changed", (GCallback) _user_interface_page_size_changed_cb_page_size_changed, self);
+#line 1259 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp9_ = page;
+#line 1259 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_signal_connect (_tmp9_, "scan-direction-changed", (GCallback) _user_interface_page_scan_direction_changed_cb_page_scan_direction_changed, self);
+#line 1261 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_update_page_menu (self);
+#line 5962 "ui.c"
}
@@ -3526,21 +5980,37 @@ static void user_interface_page_removed_cb (UserInterface* self, Book* book, Pag
guint _tmp3_ = 0U;
Book* _tmp4_;
guint _tmp5_ = 0U;
+#line 1264 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 1264 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (book != NULL);
+#line 1264 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (page != NULL);
+#line 1266 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = page;
+#line 1266 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_signal_parse_name ("size-changed", TYPE_PAGE, &_tmp1_, NULL, FALSE);
+#line 1266 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _user_interface_page_size_changed_cb_page_size_changed, self);
+#line 1267 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = page;
+#line 1267 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_signal_parse_name ("scan-direction-changed", TYPE_PAGE, &_tmp3_, NULL, FALSE);
+#line 1267 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _user_interface_page_scan_direction_changed_cb_page_scan_direction_changed, self);
+#line 1270 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = book;
+#line 1270 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_ = book_get_n_pages (_tmp4_);
+#line 1270 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp5_ == ((guint) 1)) {
+#line 1271 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_add_default_page (self);
+#line 5999 "ui.c"
}
+#line 1273 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_update_page_menu (self);
+#line 6003 "ui.c"
}
@@ -3561,43 +6031,77 @@ static void user_interface_set_dpi_combo (UserInterface* self, GtkComboBox* comb
gint _scan_resolutions_size_;
gint* _tmp9_;
gint _tmp9__length1;
+#line 1276 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 1276 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (combo != NULL);
+#line 1278 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = (GtkCellRendererText*) gtk_cell_renderer_text_new ();
+#line 1278 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_object_ref_sink (_tmp0_);
+#line 1278 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
renderer = _tmp0_;
+#line 1279 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = combo;
+#line 1279 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = renderer;
+#line 1279 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_cell_layout_pack_start ((GtkCellLayout*) _tmp1_, (GtkCellRenderer*) _tmp2_, TRUE);
+#line 1280 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = combo;
+#line 1280 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = renderer;
+#line 1280 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_cell_layout_add_attribute ((GtkCellLayout*) _tmp3_, (GtkCellRenderer*) _tmp4_, "text", 1);
+#line 1282 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_ = combo;
+#line 1282 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp6_ = gtk_combo_box_get_model (_tmp5_);
+#line 1282 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp7_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GTK_TYPE_LIST_STORE, GtkListStore));
+#line 1282 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
model = _tmp7_;
+#line 1283 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp8_ = g_new0 (gint, 6);
+#line 1283 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp8_[0] = 75;
+#line 1283 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp8_[1] = 150;
+#line 1283 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp8_[2] = 300;
+#line 1283 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp8_[3] = 600;
+#line 1283 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp8_[4] = 1200;
+#line 1283 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp8_[5] = 2400;
+#line 1283 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
scan_resolutions = _tmp8_;
+#line 1283 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
scan_resolutions_length1 = 6;
+#line 1283 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_scan_resolutions_size_ = scan_resolutions_length1;
+#line 1284 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp9_ = scan_resolutions;
+#line 1284 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp9__length1 = scan_resolutions_length1;
+#line 6078 "ui.c"
{
gint* dpi_collection = NULL;
gint dpi_collection_length1 = 0;
gint _dpi_collection_size_ = 0;
gint dpi_it = 0;
+#line 1284 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
dpi_collection = _tmp9_;
+#line 1284 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
dpi_collection_length1 = _tmp9__length1;
+#line 1284 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
for (dpi_it = 0; dpi_it < _tmp9__length1; dpi_it = dpi_it + 1) {
+#line 6090 "ui.c"
gint dpi = 0;
+#line 1284 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
dpi = dpi_collection[dpi_it];
+#line 6094 "ui.c"
{
gchar* label = NULL;
gint _tmp10_;
@@ -3611,77 +6115,133 @@ static void user_interface_set_dpi_combo (UserInterface* self, GtkComboBox* comb
const gchar* _tmp31_;
gint _tmp32_;
gint _tmp33_;
+#line 1287 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp10_ = dpi;
+#line 1287 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp11_ = default_dpi;
+#line 1287 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp10_ == _tmp11_) {
+#line 6114 "ui.c"
const gchar* _tmp12_ = NULL;
gint _tmp13_;
gchar* _tmp14_ = NULL;
+#line 1289 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp12_ = _ ("%d dpi (default)");
+#line 1289 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp13_ = dpi;
+#line 1289 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp14_ = g_strdup_printf (_tmp12_, _tmp13_);
+#line 1289 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (label);
+#line 1289 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
label = _tmp14_;
+#line 6128 "ui.c"
} else {
gint _tmp15_;
+#line 1290 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp15_ = dpi;
+#line 1290 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp15_ == 75) {
+#line 6135 "ui.c"
const gchar* _tmp16_ = NULL;
gint _tmp17_;
gchar* _tmp18_ = NULL;
+#line 1292 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp16_ = _ ("%d dpi (draft)");
+#line 1292 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp17_ = dpi;
+#line 1292 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp18_ = g_strdup_printf (_tmp16_, _tmp17_);
+#line 1292 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (label);
+#line 1292 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
label = _tmp18_;
+#line 6149 "ui.c"
} else {
gint _tmp19_;
+#line 1293 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp19_ = dpi;
+#line 1293 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp19_ == 1200) {
+#line 6156 "ui.c"
const gchar* _tmp20_ = NULL;
gint _tmp21_;
gchar* _tmp22_ = NULL;
+#line 1295 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp20_ = _ ("%d dpi (high resolution)");
+#line 1295 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp21_ = dpi;
+#line 1295 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp22_ = g_strdup_printf (_tmp20_, _tmp21_);
+#line 1295 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (label);
+#line 1295 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
label = _tmp22_;
+#line 6170 "ui.c"
} else {
const gchar* _tmp23_ = NULL;
gint _tmp24_;
gchar* _tmp25_ = NULL;
+#line 1298 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp23_ = _ ("%d dpi");
+#line 1298 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp24_ = dpi;
+#line 1298 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp25_ = g_strdup_printf (_tmp23_, _tmp24_);
+#line 1298 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (label);
+#line 1298 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
label = _tmp25_;
+#line 6185 "ui.c"
}
}
}
+#line 1301 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp26_ = model;
+#line 1301 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_list_store_append (_tmp26_, &_tmp27_);
+#line 1301 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
iter = _tmp27_;
+#line 1302 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp28_ = model;
+#line 1302 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp29_ = iter;
+#line 1302 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp30_ = dpi;
+#line 1302 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp31_ = label;
+#line 1302 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_list_store_set (_tmp28_, &_tmp29_, 0, _tmp30_, 1, _tmp31_, -1, -1);
+#line 1304 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp32_ = dpi;
+#line 1304 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp33_ = current_dpi;
+#line 1304 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp32_ == _tmp33_) {
+#line 6211 "ui.c"
GtkComboBox* _tmp34_;
GtkTreeIter _tmp35_;
+#line 1305 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp34_ = combo;
+#line 1305 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp35_ = iter;
+#line 1305 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_combo_box_set_active_iter (_tmp34_, &_tmp35_);
+#line 6220 "ui.c"
}
+#line 1284 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (label);
+#line 6224 "ui.c"
}
}
}
+#line 1276 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
scan_resolutions = (g_free (scan_resolutions), NULL);
+#line 1276 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (model);
+#line 1276 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (renderer);
+#line 6234 "ui.c"
}
@@ -3694,803 +6254,1614 @@ static void user_interface_needs_saving_cb (UserInterface* self, Book* book) {
gboolean _tmp5_ = FALSE;
Book* _tmp6_;
gboolean _tmp7_ = FALSE;
+ GtkMenuItem* _tmp9_;
+#line 1309 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 1309 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (book != NULL);
+#line 1311 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = self->priv->save_menuitem;
+#line 1311 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = book;
+#line 1311 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = book_get_needs_saving (_tmp1_);
+#line 1311 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_set_sensitive ((GtkWidget*) _tmp0_, _tmp2_);
+#line 1312 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = self->priv->save_toolbutton;
+#line 1312 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = book;
+#line 1312 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_ = book_get_needs_saving (_tmp4_);
+#line 1312 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_set_sensitive ((GtkWidget*) _tmp3_, _tmp5_);
+#line 1313 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp6_ = book;
+#line 1313 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp7_ = book_get_needs_saving (_tmp6_);
+#line 1313 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp7_) {
+#line 6274 "ui.c"
GtkMenuItem* _tmp8_;
+#line 1314 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp8_ = self->priv->save_as_menuitem;
+#line 1314 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_set_sensitive ((GtkWidget*) _tmp8_, TRUE);
+#line 6280 "ui.c"
}
+#line 1315 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp9_ = self->priv->copy_to_clipboard_menuitem;
+#line 1315 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ gtk_widget_set_sensitive ((GtkWidget*) _tmp9_, TRUE);
+#line 6286 "ui.c"
}
static void _user_interface_info_bar_response_cb_gtk_info_bar_response (GtkInfoBar* _sender, gint response_id, gpointer self) {
+#line 1385 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_info_bar_response_cb (self, _sender, response_id);
+#line 6293 "ui.c"
}
static void _user_interface_page_selected_cb_book_view_page_selected (BookView* _sender, Page* page, gpointer self) {
+#line 1489 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_page_selected_cb (self, _sender, page);
+#line 6300 "ui.c"
}
static void _user_interface_show_page_cb_book_view_show_page (BookView* _sender, Page* page, gpointer self) {
+#line 1490 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_show_page_cb (self, _sender, page);
+#line 6307 "ui.c"
}
static void _user_interface_show_page_menu_cb_book_view_show_menu (BookView* _sender, gpointer self) {
+#line 1491 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_show_page_menu_cb (self, _sender);
+#line 6314 "ui.c"
}
static void _user_interface_needs_saving_cb_book_needs_saving_changed (Book* _sender, gpointer self) {
+#line 1525 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_needs_saving_cb (self, _sender);
+#line 6321 "ui.c"
}
static void _user_interface_book_saving_cb_book_saving (Book* _sender, gint i, gpointer self) {
+#line 1528 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_book_saving_cb (self, i);
+#line 6328 "ui.c"
}
static void user_interface_load (UserInterface* self) {
GtkIconTheme* _tmp0_ = NULL;
GtkBuilder* _tmp1_;
- gchar* _tmp2_ = NULL;
- gchar* filename;
+ GtkBuilder* _tmp7_;
GtkBuilder* _tmp8_;
- GtkBuilder* _tmp9_;
- GObject* _tmp10_ = NULL;
- GtkWindow* _tmp11_;
- GApplication* _tmp12_ = NULL;
- GtkApplication* _tmp13_;
+ GObject* _tmp9_ = NULL;
+ GtkWindow* _tmp10_;
+ GApplication* _tmp11_ = NULL;
+ GtkApplication* _tmp12_;
GtkApplication* app;
- GtkApplication* _tmp14_;
- GtkWindow* _tmp15_;
- GtkBuilder* _tmp16_;
- GObject* _tmp17_ = NULL;
- GtkVBox* _tmp18_;
- GtkBuilder* _tmp19_;
- GObject* _tmp20_ = NULL;
- GtkMenuItem* _tmp21_;
- GtkBuilder* _tmp22_;
- GObject* _tmp23_ = NULL;
- GtkMenuItem* _tmp24_;
- GtkBuilder* _tmp25_;
- GObject* _tmp26_ = NULL;
- GtkMenuItem* _tmp27_;
- GtkBuilder* _tmp28_;
- GObject* _tmp29_ = NULL;
- GtkMenuItem* _tmp30_;
- GtkBuilder* _tmp31_;
- GObject* _tmp32_ = NULL;
- GtkMenuItem* _tmp33_;
- GtkBuilder* _tmp34_;
- GObject* _tmp35_ = NULL;
- GtkMenuItem* _tmp36_;
- GtkBuilder* _tmp37_;
- GObject* _tmp38_ = NULL;
- GtkToolButton* _tmp39_;
- GtkBuilder* _tmp40_;
- GObject* _tmp41_ = NULL;
- GtkMenuItem* _tmp42_;
- GtkBuilder* _tmp43_;
- GObject* _tmp44_ = NULL;
- GtkToolButton* _tmp45_;
- GtkBuilder* _tmp46_;
- GObject* _tmp47_ = NULL;
- GtkRadioMenuItem* _tmp48_;
- GtkBuilder* _tmp49_;
- GObject* _tmp50_ = NULL;
- GtkRadioMenuItem* _tmp51_;
- GtkBuilder* _tmp52_;
- GObject* _tmp53_ = NULL;
- GtkRadioMenuItem* _tmp54_;
- GtkBuilder* _tmp55_;
- GObject* _tmp56_ = NULL;
- GtkRadioMenuItem* _tmp57_;
- GtkBuilder* _tmp58_;
- GObject* _tmp59_ = NULL;
- GtkDialog* _tmp60_;
- GtkBuilder* _tmp61_;
- GObject* _tmp62_ = NULL;
- GtkLabel* _tmp63_;
- GtkBuilder* _tmp64_;
- GObject* _tmp65_ = NULL;
- GtkEntry* _tmp66_;
- GtkBuilder* _tmp67_;
- GObject* _tmp68_ = NULL;
- GtkEntry* _tmp69_;
- GtkBuilder* _tmp70_;
- GObject* _tmp71_ = NULL;
- GtkDialog* _tmp72_;
- GtkBuilder* _tmp73_;
- GObject* _tmp74_ = NULL;
- GtkComboBox* _tmp75_;
- GtkComboBox* _tmp76_;
- GtkTreeModel* _tmp77_ = NULL;
- GtkListStore* _tmp78_;
- GtkBuilder* _tmp79_;
- GObject* _tmp80_ = NULL;
- GtkComboBox* _tmp81_;
- GtkComboBox* _tmp82_;
- GtkTreeModel* _tmp83_ = NULL;
- GtkListStore* _tmp84_;
- GtkBuilder* _tmp85_;
- GObject* _tmp86_ = NULL;
- GtkComboBox* _tmp87_;
- GtkComboBox* _tmp88_;
- GtkTreeModel* _tmp89_ = NULL;
- GtkListStore* _tmp90_;
- GtkBuilder* _tmp91_;
- GObject* _tmp92_ = NULL;
- GtkComboBox* _tmp93_;
- GtkComboBox* _tmp94_;
- GtkTreeModel* _tmp95_ = NULL;
- GtkListStore* _tmp96_;
- GtkBuilder* _tmp97_;
- GObject* _tmp98_ = NULL;
- GtkComboBox* _tmp99_;
- GtkComboBox* _tmp100_;
- GtkTreeModel* _tmp101_ = NULL;
- GtkListStore* _tmp102_;
- GtkInfoBar* _tmp103_;
- GtkInfoBar* _tmp104_;
- GtkVBox* _tmp105_;
- GtkInfoBar* _tmp106_;
- GtkBox* _tmp107_;
- GtkBox* hbox;
- GtkInfoBar* _tmp108_;
- GtkContainer* _tmp109_ = NULL;
- GtkContainer* _tmp110_;
- GtkContainer* content_area;
- GtkContainer* _tmp111_;
- GtkBox* _tmp112_;
- GtkBox* _tmp113_;
- GtkImage* _tmp114_;
- GtkBox* _tmp115_;
- GtkImage* _tmp116_;
- GtkImage* _tmp117_;
- GtkLabel* _tmp118_;
- GtkLabel* _tmp119_;
- GtkBox* _tmp120_;
- GtkLabel* _tmp121_;
- GtkLabel* _tmp122_;
+ GtkApplication* _tmp13_;
+ GtkWindow* _tmp14_;
+ GtkBuilder* _tmp15_;
+ GObject* _tmp16_ = NULL;
+ GtkVBox* _tmp17_;
+ GtkBuilder* _tmp18_;
+ GObject* _tmp19_ = NULL;
+ GtkMenuItem* _tmp20_;
+ GtkBuilder* _tmp21_;
+ GObject* _tmp22_ = NULL;
+ GtkMenuItem* _tmp23_;
+ GtkBuilder* _tmp24_;
+ GObject* _tmp25_ = NULL;
+ GtkMenuItem* _tmp26_;
+ GtkBuilder* _tmp27_;
+ GObject* _tmp28_ = NULL;
+ GtkMenuItem* _tmp29_;
+ GtkBuilder* _tmp30_;
+ GObject* _tmp31_ = NULL;
+ GtkMenuItem* _tmp32_;
+ GtkBuilder* _tmp33_;
+ GObject* _tmp34_ = NULL;
+ GtkMenuItem* _tmp35_;
+ GtkBuilder* _tmp36_;
+ GObject* _tmp37_ = NULL;
+ GtkMenuItem* _tmp38_;
+ GtkBuilder* _tmp39_;
+ GObject* _tmp40_ = NULL;
+ GtkToolButton* _tmp41_;
+ GtkBuilder* _tmp42_;
+ GObject* _tmp43_ = NULL;
+ GtkMenuItem* _tmp44_;
+ GtkBuilder* _tmp45_;
+ GObject* _tmp46_ = NULL;
+ GtkToolButton* _tmp47_;
+ GtkBuilder* _tmp48_;
+ GObject* _tmp49_ = NULL;
+ GtkRadioMenuItem* _tmp50_;
+ GtkBuilder* _tmp51_;
+ GObject* _tmp52_ = NULL;
+ GtkRadioMenuItem* _tmp53_;
+ GtkBuilder* _tmp54_;
+ GObject* _tmp55_ = NULL;
+ GtkRadioMenuItem* _tmp56_;
+ GtkBuilder* _tmp57_;
+ GObject* _tmp58_ = NULL;
+ GtkRadioMenuItem* _tmp59_;
+ GtkBuilder* _tmp60_;
+ GObject* _tmp61_ = NULL;
+ GtkDialog* _tmp62_;
+ GtkBuilder* _tmp63_;
+ GObject* _tmp64_ = NULL;
+ GtkLabel* _tmp65_;
+ GtkBuilder* _tmp66_;
+ GObject* _tmp67_ = NULL;
+ GtkEntry* _tmp68_;
+ GtkBuilder* _tmp69_;
+ GObject* _tmp70_ = NULL;
+ GtkEntry* _tmp71_;
+ GtkBuilder* _tmp72_;
+ GObject* _tmp73_ = NULL;
+ GtkDialog* _tmp74_;
+ GtkBuilder* _tmp75_;
+ GObject* _tmp76_ = NULL;
+ GtkComboBox* _tmp77_;
+ GtkComboBox* _tmp78_;
+ GtkTreeModel* _tmp79_ = NULL;
+ GtkListStore* _tmp80_;
+ GtkBuilder* _tmp81_;
+ GObject* _tmp82_ = NULL;
+ GtkComboBox* _tmp83_;
+ GtkComboBox* _tmp84_;
+ GtkTreeModel* _tmp85_ = NULL;
+ GtkListStore* _tmp86_;
+ GtkBuilder* _tmp87_;
+ GObject* _tmp88_ = NULL;
+ GtkComboBox* _tmp89_;
+ GtkComboBox* _tmp90_;
+ GtkTreeModel* _tmp91_ = NULL;
+ GtkListStore* _tmp92_;
+ GtkBuilder* _tmp93_;
+ GObject* _tmp94_ = NULL;
+ GtkComboBox* _tmp95_;
+ GtkComboBox* _tmp96_;
+ GtkTreeModel* _tmp97_ = NULL;
+ GtkListStore* _tmp98_;
+ GtkBuilder* _tmp99_;
+ GObject* _tmp100_ = NULL;
+ GtkComboBox* _tmp101_;
+ GtkComboBox* _tmp102_;
+ GtkTreeModel* _tmp103_ = NULL;
+ GtkListStore* _tmp104_;
+ GtkBuilder* _tmp105_;
+ GObject* _tmp106_ = NULL;
+ GtkScale* _tmp107_;
+ GtkScale* _tmp108_;
+ GtkAdjustment* _tmp109_ = NULL;
+ GtkAdjustment* _tmp110_;
+ GtkBuilder* _tmp111_;
+ GObject* _tmp112_ = NULL;
+ GtkScale* _tmp113_;
+ GtkScale* _tmp114_;
+ GtkAdjustment* _tmp115_ = NULL;
+ GtkAdjustment* _tmp116_;
+ GtkBuilder* _tmp117_;
+ GObject* _tmp118_ = NULL;
+ GtkScale* _tmp119_;
+ GtkScale* _tmp120_;
+ GtkAdjustment* _tmp121_ = NULL;
+ GtkAdjustment* _tmp122_;
GtkInfoBar* _tmp123_;
- GtkButton* _tmp124_ = NULL;
- GtkButton* _tmp125_;
+ GtkInfoBar* _tmp124_;
+ GtkVBox* _tmp125_;
GtkInfoBar* _tmp126_;
- const gchar* _tmp127_ = NULL;
- GtkButton* _tmp128_ = NULL;
- GtkButton* _tmp129_;
+ GtkBox* _tmp127_;
+ GtkBox* hbox;
+ GtkInfoBar* _tmp128_;
+ GtkContainer* _tmp129_ = NULL;
+ GtkContainer* _tmp130_;
+ GtkContainer* content_area;
+ GtkContainer* _tmp131_;
+ GtkBox* _tmp132_;
+ GtkBox* _tmp133_;
+ GtkImage* _tmp134_;
+ GtkBox* _tmp135_;
+ GtkImage* _tmp136_;
+ GtkImage* _tmp137_;
+ GtkLabel* _tmp138_;
+ GtkLabel* _tmp139_;
+ GtkBox* _tmp140_;
+ GtkLabel* _tmp141_;
+ GtkLabel* _tmp142_;
+ GtkInfoBar* _tmp143_;
+ GtkButton* _tmp144_ = NULL;
+ GtkButton* _tmp145_;
+ GtkInfoBar* _tmp146_;
+ const gchar* _tmp147_ = NULL;
+ GtkButton* _tmp148_ = NULL;
+ GtkButton* _tmp149_;
GtkTreeIter iter = {0};
- GtkListStore* _tmp130_;
- GtkTreeIter _tmp131_ = {0};
- GtkListStore* _tmp132_;
- GtkTreeIter _tmp133_;
- const gchar* _tmp134_ = NULL;
- GtkListStore* _tmp135_;
- GtkTreeIter _tmp136_ = {0};
- GtkListStore* _tmp137_;
- GtkTreeIter _tmp138_;
- GtkListStore* _tmp139_;
- GtkTreeIter _tmp140_ = {0};
- GtkListStore* _tmp141_;
- GtkTreeIter _tmp142_;
- GtkListStore* _tmp143_;
- GtkTreeIter _tmp144_ = {0};
- GtkListStore* _tmp145_;
- GtkTreeIter _tmp146_;
- GtkListStore* _tmp147_;
- GtkTreeIter _tmp148_ = {0};
- GtkListStore* _tmp149_;
- GtkTreeIter _tmp150_;
- GtkListStore* _tmp151_;
- GtkTreeIter _tmp152_ = {0};
- GtkListStore* _tmp153_;
- GtkTreeIter _tmp154_;
+ GtkListStore* _tmp150_;
+ GtkTreeIter _tmp151_ = {0};
+ GtkListStore* _tmp152_;
+ GtkTreeIter _tmp153_;
+ const gchar* _tmp154_ = NULL;
GtkListStore* _tmp155_;
GtkTreeIter _tmp156_ = {0};
GtkListStore* _tmp157_;
GtkTreeIter _tmp158_;
- GSettings* _tmp159_;
- gint _tmp160_ = 0;
- gint dpi;
- gint _tmp161_;
- GtkComboBox* _tmp162_;
- gint _tmp163_;
- GSettings* _tmp164_;
- gint _tmp165_ = 0;
- gint _tmp166_;
- GtkComboBox* _tmp167_;
- gint _tmp168_;
- GtkCellRendererText* _tmp169_;
- GtkCellRendererText* renderer;
- GtkComboBox* _tmp170_;
- GtkCellRendererText* _tmp171_;
- GtkComboBox* _tmp172_;
- GtkCellRendererText* _tmp173_;
- GtkCellRendererText* _tmp174_;
- GtkComboBox* _tmp175_;
- GtkCellRendererText* _tmp176_;
- GtkComboBox* _tmp177_;
- GtkCellRendererText* _tmp178_;
+ GtkListStore* _tmp159_;
+ GtkTreeIter _tmp160_ = {0};
+ GtkListStore* _tmp161_;
+ GtkTreeIter _tmp162_;
+ GtkListStore* _tmp163_;
+ GtkTreeIter _tmp164_ = {0};
+ GtkListStore* _tmp165_;
+ GtkTreeIter _tmp166_;
+ GtkListStore* _tmp167_;
+ GtkTreeIter _tmp168_ = {0};
+ GtkListStore* _tmp169_;
+ GtkTreeIter _tmp170_;
+ GtkListStore* _tmp171_;
+ GtkTreeIter _tmp172_ = {0};
+ GtkListStore* _tmp173_;
+ GtkTreeIter _tmp174_;
+ GtkListStore* _tmp175_;
+ GtkTreeIter _tmp176_ = {0};
+ GtkListStore* _tmp177_;
+ GtkTreeIter _tmp178_;
GSettings* _tmp179_;
gint _tmp180_ = 0;
- GtkCellRendererText* _tmp181_;
+ gint dpi;
+ gint _tmp181_;
GtkComboBox* _tmp182_;
- GtkCellRendererText* _tmp183_;
- GtkComboBox* _tmp184_;
- GtkCellRendererText* _tmp185_;
- GSettings* _tmp186_;
- gint _tmp187_ = 0;
+ gint _tmp183_;
+ GSettings* _tmp184_;
+ gint _tmp185_ = 0;
+ gint _tmp186_;
+ GtkComboBox* _tmp187_;
+ gint _tmp188_;
+ GtkCellRendererText* _tmp189_;
+ GtkCellRendererText* renderer;
+ GtkComboBox* _tmp190_;
+ GtkCellRendererText* _tmp191_;
+ GtkComboBox* _tmp192_;
+ GtkCellRendererText* _tmp193_;
+ GtkCellRendererText* _tmp194_;
+ GtkComboBox* _tmp195_;
+ GtkCellRendererText* _tmp196_;
+ GtkComboBox* _tmp197_;
+ GtkCellRendererText* _tmp198_;
+ GSettings* _tmp199_;
+ gint _tmp200_ = 0;
+ GtkCellRendererText* _tmp201_;
+ GtkComboBox* _tmp202_;
+ GtkCellRendererText* _tmp203_;
+ GtkComboBox* _tmp204_;
+ GtkCellRendererText* _tmp205_;
+ GSettings* _tmp206_;
+ gint _tmp207_ = 0;
gint paper_width;
- GSettings* _tmp188_;
- gint _tmp189_ = 0;
+ GSettings* _tmp208_;
+ gint _tmp209_ = 0;
gint paper_height;
- gint _tmp190_;
- gint _tmp191_;
- GSettings* _tmp192_;
- gchar* _tmp193_ = NULL;
- gchar* device;
- const gchar* _tmp194_;
- GSettings* _tmp200_;
- gchar* _tmp201_ = NULL;
- gchar* document_type;
- const gchar* _tmp202_;
- Book* _tmp204_;
- BookView* _tmp205_;
- BookView* _tmp206_;
- GtkVBox* _tmp207_;
- BookView* _tmp208_;
- BookView* _tmp209_;
- BookView* _tmp210_;
- BookView* _tmp211_;
- BookView* _tmp212_;
- GSettings* _tmp213_;
- gint _tmp214_ = 0;
- GSettings* _tmp215_;
- gint _tmp216_ = 0;
- gint _tmp217_;
- GSettings* _tmp218_;
- gint _tmp219_ = 0;
- gint _tmp220_;
- GSettings* _tmp221_;
- gint _tmp222_ = 0;
- gint _tmp223_;
- GSettings* _tmp224_;
- gint _tmp225_ = 0;
- gint _tmp226_;
+ gint _tmp210_;
+ gint _tmp211_;
+ GtkAdjustment* _tmp212_;
+ gdouble _tmp213_ = 0.0;
+ gdouble lower;
+ const gchar* _tmp214_ = NULL;
+ gchar* _tmp215_ = NULL;
+ gchar* darker_label;
+ GtkAdjustment* _tmp216_;
+ gdouble _tmp217_ = 0.0;
+ gdouble upper;
+ const gchar* _tmp218_ = NULL;
+ gchar* _tmp219_ = NULL;
+ gchar* lighter_label;
+ GtkScale* _tmp220_;
+ gdouble _tmp221_;
+ const gchar* _tmp222_;
+ GtkScale* _tmp223_;
+ GtkScale* _tmp224_;
+ gdouble _tmp225_;
+ const gchar* _tmp226_;
GSettings* _tmp227_;
gint _tmp228_ = 0;
- gint _tmp229_;
- gint _tmp230_;
- gint _tmp231_;
- GtkWindow* _tmp232_;
- gint _tmp233_;
- gint _tmp234_;
- GSettings* _tmp235_;
- gboolean _tmp236_ = FALSE;
- gboolean _tmp237_;
- Book* _tmp239_;
- guint _tmp240_ = 0U;
- Book* _tmp241_;
- Book* _tmp242_;
- GtkWindow* _tmp243_;
- const gchar* _tmp244_ = NULL;
- ProgressBarDialog* _tmp245_;
- Book* _tmp246_;
+ GtkAdjustment* _tmp229_;
+ gdouble _tmp230_ = 0.0;
+ const gchar* _tmp231_ = NULL;
+ gchar* _tmp232_ = NULL;
+ gchar* less_label;
+ GtkAdjustment* _tmp233_;
+ gdouble _tmp234_ = 0.0;
+ const gchar* _tmp235_ = NULL;
+ gchar* _tmp236_ = NULL;
+ gchar* more_label;
+ GtkScale* _tmp237_;
+ gdouble _tmp238_;
+ const gchar* _tmp239_;
+ GtkScale* _tmp240_;
+ GtkScale* _tmp241_;
+ gdouble _tmp242_;
+ const gchar* _tmp243_;
+ GSettings* _tmp244_;
+ gint _tmp245_ = 0;
+ GtkAdjustment* _tmp246_;
+ gdouble _tmp247_ = 0.0;
+ const gchar* _tmp248_ = NULL;
+ gchar* _tmp249_ = NULL;
+ gchar* minimum_label;
+ GtkAdjustment* _tmp250_;
+ gdouble _tmp251_ = 0.0;
+ const gchar* _tmp252_ = NULL;
+ gchar* _tmp253_ = NULL;
+ gchar* maximum_label;
+ GtkScale* _tmp254_;
+ gdouble _tmp255_;
+ const gchar* _tmp256_;
+ GtkScale* _tmp257_;
+ GtkScale* _tmp258_;
+ gdouble _tmp259_;
+ const gchar* _tmp260_;
+ GSettings* _tmp261_;
+ gint _tmp262_ = 0;
+ GSettings* _tmp263_;
+ gchar* _tmp264_ = NULL;
+ gchar* device;
+ const gchar* _tmp265_;
+ GSettings* _tmp271_;
+ gchar* _tmp272_ = NULL;
+ gchar* document_type;
+ const gchar* _tmp273_;
+ Book* _tmp275_;
+ BookView* _tmp276_;
+ BookView* _tmp277_;
+ GtkVBox* _tmp278_;
+ BookView* _tmp279_;
+ BookView* _tmp280_;
+ BookView* _tmp281_;
+ BookView* _tmp282_;
+ BookView* _tmp283_;
+ GSettings* _tmp284_;
+ gint _tmp285_ = 0;
+ GSettings* _tmp286_;
+ gint _tmp287_ = 0;
+ gint _tmp288_;
+ GSettings* _tmp289_;
+ gint _tmp290_ = 0;
+ gint _tmp291_;
+ GSettings* _tmp292_;
+ gint _tmp293_ = 0;
+ gint _tmp294_;
+ GSettings* _tmp295_;
+ gint _tmp296_ = 0;
+ gint _tmp297_;
+ GSettings* _tmp298_;
+ gint _tmp299_ = 0;
+ gint _tmp300_;
+ gint _tmp301_;
+ gint _tmp302_;
+ GtkWindow* _tmp303_;
+ gint _tmp304_;
+ gint _tmp305_;
+ GSettings* _tmp306_;
+ gboolean _tmp307_ = FALSE;
+ gboolean _tmp308_;
+ Book* _tmp310_;
+ guint _tmp311_ = 0U;
+ Book* _tmp312_;
+ Book* _tmp313_;
+ GtkWindow* _tmp314_;
+ const gchar* _tmp315_ = NULL;
+ ProgressBarDialog* _tmp316_;
+ Book* _tmp317_;
GError * _inner_error_ = NULL;
+#line 1318 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 1320 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = gtk_icon_theme_get_default ();
+#line 1320 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_icon_theme_append_search_path (_tmp0_, ICON_DIR);
+#line 1322 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_window_set_default_icon_name ("scanner");
+#line 1324 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = gtk_builder_new ();
+#line 1324 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->builder);
+#line 1324 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->builder = _tmp1_;
- _tmp2_ = g_build_filename (UI_DIR, "simple-scan.ui", NULL, NULL);
- filename = _tmp2_;
+#line 6672 "ui.c"
{
- GtkBuilder* _tmp3_;
- _tmp3_ = self->priv->builder;
- gtk_builder_add_from_file (_tmp3_, filename, &_inner_error_);
+ GtkBuilder* _tmp2_;
+#line 1327 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp2_ = self->priv->builder;
+#line 1327 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ gtk_builder_add_from_resource (_tmp2_, "/org/gnome/SimpleScan/simple-scan.ui", &_inner_error_);
+#line 1327 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_inner_error_ != NULL) {
- goto __catch20_g_error;
+#line 6681 "ui.c"
+ goto __catch21_g_error;
}
}
- goto __finally20;
- __catch20_g_error:
+ goto __finally21;
+ __catch21_g_error:
{
GError* e = NULL;
- GError* _tmp4_;
- const gchar* _tmp5_;
+ GError* _tmp3_;
+ const gchar* _tmp4_;
+ const gchar* _tmp5_ = NULL;
const gchar* _tmp6_ = NULL;
- const gchar* _tmp7_ = NULL;
+#line 1325 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
e = _inner_error_;
+#line 1325 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_inner_error_ = NULL;
- _tmp4_ = e;
- _tmp5_ = _tmp4_->message;
- g_critical ("ui.vala:1256: Unable to load UI %s: %s\n", filename, _tmp5_);
- _tmp6_ = _ ("Files missing");
- _tmp7_ = _ ("Please check your installation");
- user_interface_show_error_dialog (self, _tmp6_, _tmp7_);
+#line 1331 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp3_ = e;
+#line 1331 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp4_ = _tmp3_->message;
+#line 1331 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ g_critical ("ui.vala:1331: Unable to load UI: %s\n", _tmp4_);
+#line 1332 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp5_ = _ ("Files missing");
+#line 1332 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp6_ = _ ("Please check your installation");
+#line 1332 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ user_interface_show_error_dialog (self, _tmp5_, _tmp6_);
+#line 1336 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
exit (EXIT_FAILURE);
+#line 1325 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_error_free0 (e);
+#line 6713 "ui.c"
}
- __finally20:
+ __finally21:
+#line 1325 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_inner_error_ != NULL) {
- _g_free0 (filename);
+#line 1325 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 1325 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_clear_error (&_inner_error_);
+#line 1325 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
+#line 6724 "ui.c"
}
+#line 1338 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp7_ = self->priv->builder;
+#line 1338 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ gtk_builder_connect_signals (_tmp7_, self);
+#line 1340 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp8_ = self->priv->builder;
- gtk_builder_connect_signals (_tmp8_, self);
- _tmp9_ = self->priv->builder;
- _tmp10_ = gtk_builder_get_object (_tmp9_, "simple_scan_window");
- _tmp11_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GTK_TYPE_WINDOW, GtkWindow));
+#line 1340 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp9_ = gtk_builder_get_object (_tmp8_, "simple_scan_window");
+#line 1340 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp10_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GTK_TYPE_WINDOW, GtkWindow));
+#line 1340 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->window);
- self->priv->window = _tmp11_;
- _tmp12_ = g_application_get_default ();
- _tmp13_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp12_, GTK_TYPE_APPLICATION) ? ((GtkApplication*) _tmp12_) : NULL);
- app = _tmp13_;
- _tmp14_ = app;
- _tmp15_ = self->priv->window;
- gtk_application_add_window (_tmp14_, _tmp15_);
- _tmp16_ = self->priv->builder;
- _tmp17_ = gtk_builder_get_object (_tmp16_, "main_vbox");
- _tmp18_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GTK_TYPE_VBOX, GtkVBox));
+#line 1340 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ self->priv->window = _tmp10_;
+#line 1341 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp11_ = g_application_get_default ();
+#line 1341 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp12_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp11_, GTK_TYPE_APPLICATION) ? ((GtkApplication*) _tmp11_) : NULL);
+#line 1341 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ app = _tmp12_;
+#line 1342 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp13_ = app;
+#line 1342 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp14_ = self->priv->window;
+#line 1342 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ gtk_application_add_window (_tmp13_, _tmp14_);
+#line 1343 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp15_ = self->priv->builder;
+#line 1343 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp16_ = gtk_builder_get_object (_tmp15_, "main_vbox");
+#line 1343 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp17_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GTK_TYPE_VBOX, GtkVBox));
+#line 1343 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->main_vbox);
- self->priv->main_vbox = _tmp18_;
- _tmp19_ = self->priv->builder;
- _tmp20_ = gtk_builder_get_object (_tmp19_, "page_move_left_menuitem");
- _tmp21_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GTK_TYPE_MENU_ITEM, GtkMenuItem));
+#line 1343 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ self->priv->main_vbox = _tmp17_;
+#line 1344 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp18_ = self->priv->builder;
+#line 1344 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp19_ = gtk_builder_get_object (_tmp18_, "page_move_left_menuitem");
+#line 1344 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp20_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GTK_TYPE_MENU_ITEM, GtkMenuItem));
+#line 1344 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->page_move_left_menuitem);
- self->priv->page_move_left_menuitem = _tmp21_;
- _tmp22_ = self->priv->builder;
- _tmp23_ = gtk_builder_get_object (_tmp22_, "page_move_right_menuitem");
- _tmp24_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GTK_TYPE_MENU_ITEM, GtkMenuItem));
+#line 1344 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ self->priv->page_move_left_menuitem = _tmp20_;
+#line 1345 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp21_ = self->priv->builder;
+#line 1345 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp22_ = gtk_builder_get_object (_tmp21_, "page_move_right_menuitem");
+#line 1345 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp23_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GTK_TYPE_MENU_ITEM, GtkMenuItem));
+#line 1345 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->page_move_right_menuitem);
- self->priv->page_move_right_menuitem = _tmp24_;
- _tmp25_ = self->priv->builder;
- _tmp26_ = gtk_builder_get_object (_tmp25_, "page_delete_menuitem");
- _tmp27_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GTK_TYPE_MENU_ITEM, GtkMenuItem));
+#line 1345 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ self->priv->page_move_right_menuitem = _tmp23_;
+#line 1346 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp24_ = self->priv->builder;
+#line 1346 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp25_ = gtk_builder_get_object (_tmp24_, "page_delete_menuitem");
+#line 1346 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp26_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, GTK_TYPE_MENU_ITEM, GtkMenuItem));
+#line 1346 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->page_delete_menuitem);
- self->priv->page_delete_menuitem = _tmp27_;
- _tmp28_ = self->priv->builder;
- _tmp29_ = gtk_builder_get_object (_tmp28_, "crop_rotate_menuitem");
- _tmp30_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, GTK_TYPE_MENU_ITEM, GtkMenuItem));
+#line 1346 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ self->priv->page_delete_menuitem = _tmp26_;
+#line 1347 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp27_ = self->priv->builder;
+#line 1347 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp28_ = gtk_builder_get_object (_tmp27_, "crop_rotate_menuitem");
+#line 1347 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp29_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GTK_TYPE_MENU_ITEM, GtkMenuItem));
+#line 1347 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->crop_rotate_menuitem);
- self->priv->crop_rotate_menuitem = _tmp30_;
- _tmp31_ = self->priv->builder;
- _tmp32_ = gtk_builder_get_object (_tmp31_, "save_menuitem");
- _tmp33_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, GTK_TYPE_MENU_ITEM, GtkMenuItem));
+#line 1347 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ self->priv->crop_rotate_menuitem = _tmp29_;
+#line 1348 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp30_ = self->priv->builder;
+#line 1348 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp31_ = gtk_builder_get_object (_tmp30_, "save_menuitem");
+#line 1348 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp32_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, GTK_TYPE_MENU_ITEM, GtkMenuItem));
+#line 1348 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->save_menuitem);
- self->priv->save_menuitem = _tmp33_;
- _tmp34_ = self->priv->builder;
- _tmp35_ = gtk_builder_get_object (_tmp34_, "save_as_menuitem");
- _tmp36_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, GTK_TYPE_MENU_ITEM, GtkMenuItem));
+#line 1348 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ self->priv->save_menuitem = _tmp32_;
+#line 1349 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp33_ = self->priv->builder;
+#line 1349 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp34_ = gtk_builder_get_object (_tmp33_, "save_as_menuitem");
+#line 1349 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp35_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, GTK_TYPE_MENU_ITEM, GtkMenuItem));
+#line 1349 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->save_as_menuitem);
- self->priv->save_as_menuitem = _tmp36_;
- _tmp37_ = self->priv->builder;
- _tmp38_ = gtk_builder_get_object (_tmp37_, "save_toolbutton");
- _tmp39_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, GTK_TYPE_TOOL_BUTTON, GtkToolButton));
+#line 1349 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ self->priv->save_as_menuitem = _tmp35_;
+#line 1350 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp36_ = self->priv->builder;
+#line 1350 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp37_ = gtk_builder_get_object (_tmp36_, "copy_to_clipboard_menuitem");
+#line 1350 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp38_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, GTK_TYPE_MENU_ITEM, GtkMenuItem));
+#line 1350 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _g_object_unref0 (self->priv->copy_to_clipboard_menuitem);
+#line 1350 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ self->priv->copy_to_clipboard_menuitem = _tmp38_;
+#line 1351 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp39_ = self->priv->builder;
+#line 1351 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp40_ = gtk_builder_get_object (_tmp39_, "save_toolbutton");
+#line 1351 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp41_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, GTK_TYPE_TOOL_BUTTON, GtkToolButton));
+#line 1351 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->save_toolbutton);
- self->priv->save_toolbutton = _tmp39_;
- _tmp40_ = self->priv->builder;
- _tmp41_ = gtk_builder_get_object (_tmp40_, "stop_scan_menuitem");
- _tmp42_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, GTK_TYPE_MENU_ITEM, GtkMenuItem));
+#line 1351 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ self->priv->save_toolbutton = _tmp41_;
+#line 1352 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp42_ = self->priv->builder;
+#line 1352 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp43_ = gtk_builder_get_object (_tmp42_, "stop_scan_menuitem");
+#line 1352 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp44_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, GTK_TYPE_MENU_ITEM, GtkMenuItem));
+#line 1352 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->stop_menuitem);
- self->priv->stop_menuitem = _tmp42_;
- _tmp43_ = self->priv->builder;
- _tmp44_ = gtk_builder_get_object (_tmp43_, "stop_toolbutton");
- _tmp45_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, GTK_TYPE_TOOL_BUTTON, GtkToolButton));
+#line 1352 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ self->priv->stop_menuitem = _tmp44_;
+#line 1353 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp45_ = self->priv->builder;
+#line 1353 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp46_ = gtk_builder_get_object (_tmp45_, "stop_toolbutton");
+#line 1353 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp47_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, GTK_TYPE_TOOL_BUTTON, GtkToolButton));
+#line 1353 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->stop_toolbutton);
- self->priv->stop_toolbutton = _tmp45_;
- _tmp46_ = self->priv->builder;
- _tmp47_ = gtk_builder_get_object (_tmp46_, "text_toolbutton_menuitem");
- _tmp48_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, GTK_TYPE_RADIO_MENU_ITEM, GtkRadioMenuItem));
+#line 1353 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ self->priv->stop_toolbutton = _tmp47_;
+#line 1355 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp48_ = self->priv->builder;
+#line 1355 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp49_ = gtk_builder_get_object (_tmp48_, "text_toolbutton_menuitem");
+#line 1355 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp50_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, GTK_TYPE_RADIO_MENU_ITEM, GtkRadioMenuItem));
+#line 1355 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->text_toolbar_menuitem);
- self->priv->text_toolbar_menuitem = _tmp48_;
- _tmp49_ = self->priv->builder;
- _tmp50_ = gtk_builder_get_object (_tmp49_, "text_menuitem");
- _tmp51_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, GTK_TYPE_RADIO_MENU_ITEM, GtkRadioMenuItem));
+#line 1355 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ self->priv->text_toolbar_menuitem = _tmp50_;
+#line 1356 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp51_ = self->priv->builder;
+#line 1356 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp52_ = gtk_builder_get_object (_tmp51_, "text_menuitem");
+#line 1356 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp53_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, GTK_TYPE_RADIO_MENU_ITEM, GtkRadioMenuItem));
+#line 1356 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->text_menu_menuitem);
- self->priv->text_menu_menuitem = _tmp51_;
- _tmp52_ = self->priv->builder;
- _tmp53_ = gtk_builder_get_object (_tmp52_, "photo_toolbutton_menuitem");
- _tmp54_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, GTK_TYPE_RADIO_MENU_ITEM, GtkRadioMenuItem));
+#line 1356 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ self->priv->text_menu_menuitem = _tmp53_;
+#line 1357 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp54_ = self->priv->builder;
+#line 1357 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp55_ = gtk_builder_get_object (_tmp54_, "photo_toolbutton_menuitem");
+#line 1357 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp56_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp55_, GTK_TYPE_RADIO_MENU_ITEM, GtkRadioMenuItem));
+#line 1357 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->photo_toolbar_menuitem);
- self->priv->photo_toolbar_menuitem = _tmp54_;
- _tmp55_ = self->priv->builder;
- _tmp56_ = gtk_builder_get_object (_tmp55_, "photo_menuitem");
- _tmp57_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp56_, GTK_TYPE_RADIO_MENU_ITEM, GtkRadioMenuItem));
+#line 1357 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ self->priv->photo_toolbar_menuitem = _tmp56_;
+#line 1358 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp57_ = self->priv->builder;
+#line 1358 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp58_ = gtk_builder_get_object (_tmp57_, "photo_menuitem");
+#line 1358 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp59_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp58_, GTK_TYPE_RADIO_MENU_ITEM, GtkRadioMenuItem));
+#line 1358 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->photo_menu_menuitem);
- self->priv->photo_menu_menuitem = _tmp57_;
- _tmp58_ = self->priv->builder;
- _tmp59_ = gtk_builder_get_object (_tmp58_, "authorize_dialog");
- _tmp60_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp59_, GTK_TYPE_DIALOG, GtkDialog));
+#line 1358 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ self->priv->photo_menu_menuitem = _tmp59_;
+#line 1360 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp60_ = self->priv->builder;
+#line 1360 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp61_ = gtk_builder_get_object (_tmp60_, "authorize_dialog");
+#line 1360 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp62_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp61_, GTK_TYPE_DIALOG, GtkDialog));
+#line 1360 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->authorize_dialog);
- self->priv->authorize_dialog = _tmp60_;
- _tmp61_ = self->priv->builder;
- _tmp62_ = gtk_builder_get_object (_tmp61_, "authorize_label");
- _tmp63_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp62_, GTK_TYPE_LABEL, GtkLabel));
+#line 1360 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ self->priv->authorize_dialog = _tmp62_;
+#line 1361 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp63_ = self->priv->builder;
+#line 1361 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp64_ = gtk_builder_get_object (_tmp63_, "authorize_label");
+#line 1361 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp65_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp64_, GTK_TYPE_LABEL, GtkLabel));
+#line 1361 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->authorize_label);
- self->priv->authorize_label = _tmp63_;
- _tmp64_ = self->priv->builder;
- _tmp65_ = gtk_builder_get_object (_tmp64_, "username_entry");
- _tmp66_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp65_, GTK_TYPE_ENTRY, GtkEntry));
+#line 1361 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ self->priv->authorize_label = _tmp65_;
+#line 1362 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp66_ = self->priv->builder;
+#line 1362 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp67_ = gtk_builder_get_object (_tmp66_, "username_entry");
+#line 1362 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp68_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp67_, GTK_TYPE_ENTRY, GtkEntry));
+#line 1362 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->username_entry);
- self->priv->username_entry = _tmp66_;
- _tmp67_ = self->priv->builder;
- _tmp68_ = gtk_builder_get_object (_tmp67_, "password_entry");
- _tmp69_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp68_, GTK_TYPE_ENTRY, GtkEntry));
+#line 1362 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ self->priv->username_entry = _tmp68_;
+#line 1363 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp69_ = self->priv->builder;
+#line 1363 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp70_ = gtk_builder_get_object (_tmp69_, "password_entry");
+#line 1363 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp71_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp70_, GTK_TYPE_ENTRY, GtkEntry));
+#line 1363 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->password_entry);
- self->priv->password_entry = _tmp69_;
- _tmp70_ = self->priv->builder;
- _tmp71_ = gtk_builder_get_object (_tmp70_, "preferences_dialog");
- _tmp72_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp71_, GTK_TYPE_DIALOG, GtkDialog));
+#line 1363 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ self->priv->password_entry = _tmp71_;
+#line 1365 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp72_ = self->priv->builder;
+#line 1365 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp73_ = gtk_builder_get_object (_tmp72_, "preferences_dialog");
+#line 1365 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp74_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp73_, GTK_TYPE_DIALOG, GtkDialog));
+#line 1365 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->preferences_dialog);
- self->priv->preferences_dialog = _tmp72_;
- _tmp73_ = self->priv->builder;
- _tmp74_ = gtk_builder_get_object (_tmp73_, "device_combo");
- _tmp75_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp74_, GTK_TYPE_COMBO_BOX, GtkComboBox));
+#line 1365 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ self->priv->preferences_dialog = _tmp74_;
+#line 1366 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp75_ = self->priv->builder;
+#line 1366 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp76_ = gtk_builder_get_object (_tmp75_, "device_combo");
+#line 1366 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp77_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp76_, GTK_TYPE_COMBO_BOX, GtkComboBox));
+#line 1366 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->device_combo);
- self->priv->device_combo = _tmp75_;
- _tmp76_ = self->priv->device_combo;
- _tmp77_ = gtk_combo_box_get_model (_tmp76_);
- _tmp78_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp77_, GTK_TYPE_LIST_STORE, GtkListStore));
+#line 1366 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ self->priv->device_combo = _tmp77_;
+#line 1367 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp78_ = self->priv->device_combo;
+#line 1367 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp79_ = gtk_combo_box_get_model (_tmp78_);
+#line 1367 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp80_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp79_, GTK_TYPE_LIST_STORE, GtkListStore));
+#line 1367 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->device_model);
- self->priv->device_model = _tmp78_;
- _tmp79_ = self->priv->builder;
- _tmp80_ = gtk_builder_get_object (_tmp79_, "text_dpi_combo");
- _tmp81_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp80_, GTK_TYPE_COMBO_BOX, GtkComboBox));
+#line 1367 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ self->priv->device_model = _tmp80_;
+#line 1368 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp81_ = self->priv->builder;
+#line 1368 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp82_ = gtk_builder_get_object (_tmp81_, "text_dpi_combo");
+#line 1368 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp83_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp82_, GTK_TYPE_COMBO_BOX, GtkComboBox));
+#line 1368 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->text_dpi_combo);
- self->priv->text_dpi_combo = _tmp81_;
- _tmp82_ = self->priv->text_dpi_combo;
- _tmp83_ = gtk_combo_box_get_model (_tmp82_);
- _tmp84_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp83_, GTK_TYPE_LIST_STORE, GtkListStore));
+#line 1368 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ self->priv->text_dpi_combo = _tmp83_;
+#line 1369 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp84_ = self->priv->text_dpi_combo;
+#line 1369 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp85_ = gtk_combo_box_get_model (_tmp84_);
+#line 1369 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp86_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp85_, GTK_TYPE_LIST_STORE, GtkListStore));
+#line 1369 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->text_dpi_model);
- self->priv->text_dpi_model = _tmp84_;
- _tmp85_ = self->priv->builder;
- _tmp86_ = gtk_builder_get_object (_tmp85_, "photo_dpi_combo");
- _tmp87_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp86_, GTK_TYPE_COMBO_BOX, GtkComboBox));
+#line 1369 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ self->priv->text_dpi_model = _tmp86_;
+#line 1370 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp87_ = self->priv->builder;
+#line 1370 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp88_ = gtk_builder_get_object (_tmp87_, "photo_dpi_combo");
+#line 1370 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp89_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp88_, GTK_TYPE_COMBO_BOX, GtkComboBox));
+#line 1370 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->photo_dpi_combo);
- self->priv->photo_dpi_combo = _tmp87_;
- _tmp88_ = self->priv->photo_dpi_combo;
- _tmp89_ = gtk_combo_box_get_model (_tmp88_);
- _tmp90_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp89_, GTK_TYPE_LIST_STORE, GtkListStore));
+#line 1370 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ self->priv->photo_dpi_combo = _tmp89_;
+#line 1371 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp90_ = self->priv->photo_dpi_combo;
+#line 1371 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp91_ = gtk_combo_box_get_model (_tmp90_);
+#line 1371 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp92_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp91_, GTK_TYPE_LIST_STORE, GtkListStore));
+#line 1371 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->photo_dpi_model);
- self->priv->photo_dpi_model = _tmp90_;
- _tmp91_ = self->priv->builder;
- _tmp92_ = gtk_builder_get_object (_tmp91_, "page_side_combo");
- _tmp93_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp92_, GTK_TYPE_COMBO_BOX, GtkComboBox));
+#line 1371 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ self->priv->photo_dpi_model = _tmp92_;
+#line 1372 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp93_ = self->priv->builder;
+#line 1372 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp94_ = gtk_builder_get_object (_tmp93_, "page_side_combo");
+#line 1372 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp95_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp94_, GTK_TYPE_COMBO_BOX, GtkComboBox));
+#line 1372 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->page_side_combo);
- self->priv->page_side_combo = _tmp93_;
- _tmp94_ = self->priv->page_side_combo;
- _tmp95_ = gtk_combo_box_get_model (_tmp94_);
- _tmp96_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp95_, GTK_TYPE_LIST_STORE, GtkListStore));
+#line 1372 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ self->priv->page_side_combo = _tmp95_;
+#line 1373 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp96_ = self->priv->page_side_combo;
+#line 1373 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp97_ = gtk_combo_box_get_model (_tmp96_);
+#line 1373 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp98_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp97_, GTK_TYPE_LIST_STORE, GtkListStore));
+#line 1373 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->page_side_model);
- self->priv->page_side_model = _tmp96_;
- _tmp97_ = self->priv->builder;
- _tmp98_ = gtk_builder_get_object (_tmp97_, "paper_size_combo");
- _tmp99_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp98_, GTK_TYPE_COMBO_BOX, GtkComboBox));
+#line 1373 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ self->priv->page_side_model = _tmp98_;
+#line 1374 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp99_ = self->priv->builder;
+#line 1374 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp100_ = gtk_builder_get_object (_tmp99_, "paper_size_combo");
+#line 1374 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp101_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp100_, GTK_TYPE_COMBO_BOX, GtkComboBox));
+#line 1374 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->paper_size_combo);
- self->priv->paper_size_combo = _tmp99_;
- _tmp100_ = self->priv->paper_size_combo;
- _tmp101_ = gtk_combo_box_get_model (_tmp100_);
- _tmp102_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp101_, GTK_TYPE_LIST_STORE, GtkListStore));
+#line 1374 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ self->priv->paper_size_combo = _tmp101_;
+#line 1375 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp102_ = self->priv->paper_size_combo;
+#line 1375 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp103_ = gtk_combo_box_get_model (_tmp102_);
+#line 1375 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp104_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp103_, GTK_TYPE_LIST_STORE, GtkListStore));
+#line 1375 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->paper_size_model);
- self->priv->paper_size_model = _tmp102_;
- _tmp103_ = (GtkInfoBar*) gtk_info_bar_new ();
- g_object_ref_sink (_tmp103_);
+#line 1375 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ self->priv->paper_size_model = _tmp104_;
+#line 1376 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp105_ = self->priv->builder;
+#line 1376 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp106_ = gtk_builder_get_object (_tmp105_, "brightness_scale");
+#line 1376 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp107_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp106_, GTK_TYPE_SCALE, GtkScale));
+#line 1376 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _g_object_unref0 (self->priv->brightness_scale);
+#line 1376 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ self->priv->brightness_scale = _tmp107_;
+#line 1377 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp108_ = self->priv->brightness_scale;
+#line 1377 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp109_ = gtk_range_get_adjustment ((GtkRange*) _tmp108_);
+#line 1377 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp110_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp109_, GTK_TYPE_ADJUSTMENT, GtkAdjustment));
+#line 1377 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _g_object_unref0 (self->priv->brightness_adjustment);
+#line 1377 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ self->priv->brightness_adjustment = _tmp110_;
+#line 1378 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp111_ = self->priv->builder;
+#line 1378 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp112_ = gtk_builder_get_object (_tmp111_, "contrast_scale");
+#line 1378 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp113_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp112_, GTK_TYPE_SCALE, GtkScale));
+#line 1378 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _g_object_unref0 (self->priv->contrast_scale);
+#line 1378 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ self->priv->contrast_scale = _tmp113_;
+#line 1379 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp114_ = self->priv->contrast_scale;
+#line 1379 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp115_ = gtk_range_get_adjustment ((GtkRange*) _tmp114_);
+#line 1379 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp116_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp115_, GTK_TYPE_ADJUSTMENT, GtkAdjustment));
+#line 1379 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _g_object_unref0 (self->priv->contrast_adjustment);
+#line 1379 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ self->priv->contrast_adjustment = _tmp116_;
+#line 1380 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp117_ = self->priv->builder;
+#line 1380 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp118_ = gtk_builder_get_object (_tmp117_, "quality_scale");
+#line 1380 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp119_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp118_, GTK_TYPE_SCALE, GtkScale));
+#line 1380 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _g_object_unref0 (self->priv->quality_scale);
+#line 1380 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ self->priv->quality_scale = _tmp119_;
+#line 1381 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp120_ = self->priv->quality_scale;
+#line 1381 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp121_ = gtk_range_get_adjustment ((GtkRange*) _tmp120_);
+#line 1381 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp122_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp121_, GTK_TYPE_ADJUSTMENT, GtkAdjustment));
+#line 1381 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _g_object_unref0 (self->priv->quality_adjustment);
+#line 1381 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ self->priv->quality_adjustment = _tmp122_;
+#line 1384 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp123_ = (GtkInfoBar*) gtk_info_bar_new ();
+#line 1384 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ g_object_ref_sink (_tmp123_);
+#line 1384 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->info_bar);
- self->priv->info_bar = _tmp103_;
- _tmp104_ = self->priv->info_bar;
- g_signal_connect (_tmp104_, "response", (GCallback) _user_interface_info_bar_response_cb_gtk_info_bar_response, self);
- _tmp105_ = self->priv->main_vbox;
- _tmp106_ = self->priv->info_bar;
- gtk_box_pack_start ((GtkBox*) _tmp105_, (GtkWidget*) _tmp106_, FALSE, TRUE, (guint) 0);
- _tmp107_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
- g_object_ref_sink (_tmp107_);
- hbox = _tmp107_;
- _tmp108_ = self->priv->info_bar;
- _tmp109_ = gtk_info_bar_get_content_area (_tmp108_);
- _tmp110_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp109_, GTK_TYPE_CONTAINER, GtkContainer));
- content_area = _tmp110_;
- _tmp111_ = content_area;
- _tmp112_ = hbox;
- gtk_container_add (_tmp111_, (GtkWidget*) _tmp112_);
- _tmp113_ = hbox;
- gtk_widget_show ((GtkWidget*) _tmp113_);
- _tmp114_ = (GtkImage*) gtk_image_new_from_stock (GTK_STOCK_DIALOG_WARNING, GTK_ICON_SIZE_DIALOG);
- g_object_ref_sink (_tmp114_);
+#line 1384 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ self->priv->info_bar = _tmp123_;
+#line 1385 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp124_ = self->priv->info_bar;
+#line 1385 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ g_signal_connect (_tmp124_, "response", (GCallback) _user_interface_info_bar_response_cb_gtk_info_bar_response, self);
+#line 1386 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp125_ = self->priv->main_vbox;
+#line 1386 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp126_ = self->priv->info_bar;
+#line 1386 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ gtk_box_pack_start ((GtkBox*) _tmp125_, (GtkWidget*) _tmp126_, FALSE, TRUE, (guint) 0);
+#line 1387 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp127_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
+#line 1387 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ g_object_ref_sink (_tmp127_);
+#line 1387 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ hbox = _tmp127_;
+#line 1388 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp128_ = self->priv->info_bar;
+#line 1388 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp129_ = gtk_info_bar_get_content_area (_tmp128_);
+#line 1388 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp130_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp129_, GTK_TYPE_CONTAINER, GtkContainer));
+#line 1388 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ content_area = _tmp130_;
+#line 1389 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp131_ = content_area;
+#line 1389 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp132_ = hbox;
+#line 1389 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ gtk_container_add (_tmp131_, (GtkWidget*) _tmp132_);
+#line 1390 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp133_ = hbox;
+#line 1390 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ gtk_widget_show ((GtkWidget*) _tmp133_);
+#line 1392 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp134_ = (GtkImage*) gtk_image_new_from_stock (GTK_STOCK_DIALOG_WARNING, GTK_ICON_SIZE_DIALOG);
+#line 1392 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ g_object_ref_sink (_tmp134_);
+#line 1392 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->info_bar_image);
- self->priv->info_bar_image = _tmp114_;
- _tmp115_ = hbox;
- _tmp116_ = self->priv->info_bar_image;
- gtk_box_pack_start (_tmp115_, (GtkWidget*) _tmp116_, FALSE, TRUE, (guint) 0);
- _tmp117_ = self->priv->info_bar_image;
- gtk_widget_show ((GtkWidget*) _tmp117_);
- _tmp118_ = (GtkLabel*) gtk_label_new (NULL);
- g_object_ref_sink (_tmp118_);
+#line 1392 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ self->priv->info_bar_image = _tmp134_;
+#line 1393 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp135_ = hbox;
+#line 1393 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp136_ = self->priv->info_bar_image;
+#line 1393 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ gtk_box_pack_start (_tmp135_, (GtkWidget*) _tmp136_, FALSE, TRUE, (guint) 0);
+#line 1394 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp137_ = self->priv->info_bar_image;
+#line 1394 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ gtk_widget_show ((GtkWidget*) _tmp137_);
+#line 1396 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp138_ = (GtkLabel*) gtk_label_new (NULL);
+#line 1396 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ g_object_ref_sink (_tmp138_);
+#line 1396 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->info_bar_label);
- self->priv->info_bar_label = _tmp118_;
- _tmp119_ = self->priv->info_bar_label;
- gtk_misc_set_alignment ((GtkMisc*) _tmp119_, 0.0f, 0.5f);
- _tmp120_ = hbox;
- _tmp121_ = self->priv->info_bar_label;
- gtk_box_pack_start (_tmp120_, (GtkWidget*) _tmp121_, TRUE, TRUE, (guint) 0);
- _tmp122_ = self->priv->info_bar_label;
- gtk_widget_show ((GtkWidget*) _tmp122_);
- _tmp123_ = self->priv->info_bar;
- _tmp124_ = gtk_info_bar_add_button (_tmp123_, GTK_STOCK_CLOSE, (gint) GTK_RESPONSE_CLOSE);
- _tmp125_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp124_, GTK_TYPE_BUTTON, GtkButton));
+#line 1396 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ self->priv->info_bar_label = _tmp138_;
+#line 1397 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp139_ = self->priv->info_bar_label;
+#line 1397 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ gtk_misc_set_alignment ((GtkMisc*) _tmp139_, 0.0f, 0.5f);
+#line 1398 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp140_ = hbox;
+#line 1398 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp141_ = self->priv->info_bar_label;
+#line 1398 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ gtk_box_pack_start (_tmp140_, (GtkWidget*) _tmp141_, TRUE, TRUE, (guint) 0);
+#line 1399 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp142_ = self->priv->info_bar_label;
+#line 1399 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ gtk_widget_show ((GtkWidget*) _tmp142_);
+#line 1401 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp143_ = self->priv->info_bar;
+#line 1401 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp144_ = gtk_info_bar_add_button (_tmp143_, GTK_STOCK_CLOSE, (gint) GTK_RESPONSE_CLOSE);
+#line 1401 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp145_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp144_, GTK_TYPE_BUTTON, GtkButton));
+#line 1401 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->info_bar_close_button);
- self->priv->info_bar_close_button = _tmp125_;
- _tmp126_ = self->priv->info_bar;
- _tmp127_ = _ ("Change _Scanner");
- _tmp128_ = gtk_info_bar_add_button (_tmp126_, _tmp127_, 1);
- _tmp129_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp128_, GTK_TYPE_BUTTON, GtkButton));
+#line 1401 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ self->priv->info_bar_close_button = _tmp145_;
+#line 1402 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp146_ = self->priv->info_bar;
+#line 1402 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp147_ = _ ("Change _Scanner");
+#line 1402 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp148_ = gtk_info_bar_add_button (_tmp146_, _tmp147_, 1);
+#line 1402 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp149_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp148_, GTK_TYPE_BUTTON, GtkButton));
+#line 1402 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->info_bar_change_scanner_button);
- self->priv->info_bar_change_scanner_button = _tmp129_;
- _tmp130_ = self->priv->paper_size_model;
- gtk_list_store_append (_tmp130_, &_tmp131_);
- iter = _tmp131_;
- _tmp132_ = self->priv->paper_size_model;
- _tmp133_ = iter;
- _tmp134_ = _ ("Automatic");
- gtk_list_store_set (_tmp132_, &_tmp133_, 0, 0, 1, 0, 2, _tmp134_, -1, -1);
- _tmp135_ = self->priv->paper_size_model;
- gtk_list_store_append (_tmp135_, &_tmp136_);
- iter = _tmp136_;
- _tmp137_ = self->priv->paper_size_model;
- _tmp138_ = iter;
- gtk_list_store_set (_tmp137_, &_tmp138_, 0, 1050, 1, 1480, 2, "A6", -1, -1);
- _tmp139_ = self->priv->paper_size_model;
- gtk_list_store_append (_tmp139_, &_tmp140_);
- iter = _tmp140_;
- _tmp141_ = self->priv->paper_size_model;
- _tmp142_ = iter;
- gtk_list_store_set (_tmp141_, &_tmp142_, 0, 1480, 1, 2100, 2, "A5", -1, -1);
- _tmp143_ = self->priv->paper_size_model;
- gtk_list_store_append (_tmp143_, &_tmp144_);
- iter = _tmp144_;
- _tmp145_ = self->priv->paper_size_model;
- _tmp146_ = iter;
- gtk_list_store_set (_tmp145_, &_tmp146_, 0, 2100, 1, 2970, 2, "A4", -1, -1);
- _tmp147_ = self->priv->paper_size_model;
- gtk_list_store_append (_tmp147_, &_tmp148_);
- iter = _tmp148_;
- _tmp149_ = self->priv->paper_size_model;
- _tmp150_ = iter;
- gtk_list_store_set (_tmp149_, &_tmp150_, 0, 2159, 1, 2794, 2, "Letter", -1, -1);
- _tmp151_ = self->priv->paper_size_model;
- gtk_list_store_append (_tmp151_, &_tmp152_);
- iter = _tmp152_;
- _tmp153_ = self->priv->paper_size_model;
- _tmp154_ = iter;
- gtk_list_store_set (_tmp153_, &_tmp154_, 0, 2159, 1, 3556, 2, "Legal", -1, -1);
+#line 1402 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ self->priv->info_bar_change_scanner_button = _tmp149_;
+#line 1406 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp150_ = self->priv->paper_size_model;
+#line 1406 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ gtk_list_store_append (_tmp150_, &_tmp151_);
+#line 1406 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ iter = _tmp151_;
+#line 1407 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp152_ = self->priv->paper_size_model;
+#line 1407 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp153_ = iter;
+#line 1407 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp154_ = _ ("Automatic");
+#line 1407 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ gtk_list_store_set (_tmp152_, &_tmp153_, 0, 0, 1, 0, 2, _tmp154_, -1, -1);
+#line 1410 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp155_ = self->priv->paper_size_model;
+#line 1410 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_list_store_append (_tmp155_, &_tmp156_);
+#line 1410 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
iter = _tmp156_;
+#line 1411 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp157_ = self->priv->paper_size_model;
+#line 1411 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp158_ = iter;
- gtk_list_store_set (_tmp157_, &_tmp158_, 0, 1016, 1, 1524, 2, "4×6", -1, -1);
- _tmp159_ = self->priv->settings;
- _tmp160_ = g_settings_get_int (_tmp159_, "text-dpi");
- dpi = _tmp160_;
- _tmp161_ = dpi;
- if (_tmp161_ <= 0) {
+#line 1411 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ gtk_list_store_set (_tmp157_, &_tmp158_, 0, 1050, 1, 1480, 2, "A6", -1, -1);
+#line 1412 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp159_ = self->priv->paper_size_model;
+#line 1412 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ gtk_list_store_append (_tmp159_, &_tmp160_);
+#line 1412 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ iter = _tmp160_;
+#line 1413 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp161_ = self->priv->paper_size_model;
+#line 1413 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp162_ = iter;
+#line 1413 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ gtk_list_store_set (_tmp161_, &_tmp162_, 0, 1480, 1, 2100, 2, "A5", -1, -1);
+#line 1414 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp163_ = self->priv->paper_size_model;
+#line 1414 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ gtk_list_store_append (_tmp163_, &_tmp164_);
+#line 1414 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ iter = _tmp164_;
+#line 1415 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp165_ = self->priv->paper_size_model;
+#line 1415 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp166_ = iter;
+#line 1415 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ gtk_list_store_set (_tmp165_, &_tmp166_, 0, 2100, 1, 2970, 2, "A4", -1, -1);
+#line 1416 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp167_ = self->priv->paper_size_model;
+#line 1416 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ gtk_list_store_append (_tmp167_, &_tmp168_);
+#line 1416 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ iter = _tmp168_;
+#line 1417 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp169_ = self->priv->paper_size_model;
+#line 1417 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp170_ = iter;
+#line 1417 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ gtk_list_store_set (_tmp169_, &_tmp170_, 0, 2159, 1, 2794, 2, "Letter", -1, -1);
+#line 1418 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp171_ = self->priv->paper_size_model;
+#line 1418 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ gtk_list_store_append (_tmp171_, &_tmp172_);
+#line 1418 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ iter = _tmp172_;
+#line 1419 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp173_ = self->priv->paper_size_model;
+#line 1419 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp174_ = iter;
+#line 1419 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ gtk_list_store_set (_tmp173_, &_tmp174_, 0, 2159, 1, 3556, 2, "Legal", -1, -1);
+#line 1420 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp175_ = self->priv->paper_size_model;
+#line 1420 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ gtk_list_store_append (_tmp175_, &_tmp176_);
+#line 1420 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ iter = _tmp176_;
+#line 1421 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp177_ = self->priv->paper_size_model;
+#line 1421 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp178_ = iter;
+#line 1421 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ gtk_list_store_set (_tmp177_, &_tmp178_, 0, 1016, 1, 1524, 2, "4×6", -1, -1);
+#line 1423 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp179_ = self->priv->settings;
+#line 1423 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp180_ = g_settings_get_int (_tmp179_, "text-dpi");
+#line 1423 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ dpi = _tmp180_;
+#line 1424 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp181_ = dpi;
+#line 1424 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ if (_tmp181_ <= 0) {
+#line 1425 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
dpi = USER_INTERFACE_DEFAULT_TEXT_DPI;
- }
- _tmp162_ = self->priv->text_dpi_combo;
- _tmp163_ = dpi;
- user_interface_set_dpi_combo (self, _tmp162_, USER_INTERFACE_DEFAULT_TEXT_DPI, _tmp163_);
- _tmp164_ = self->priv->settings;
- _tmp165_ = g_settings_get_int (_tmp164_, "photo-dpi");
- dpi = _tmp165_;
- _tmp166_ = dpi;
- if (_tmp166_ <= 0) {
+#line 7314 "ui.c"
+ }
+#line 1426 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp182_ = self->priv->text_dpi_combo;
+#line 1426 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp183_ = dpi;
+#line 1426 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ user_interface_set_dpi_combo (self, _tmp182_, USER_INTERFACE_DEFAULT_TEXT_DPI, _tmp183_);
+#line 1427 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp184_ = self->priv->settings;
+#line 1427 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp185_ = g_settings_get_int (_tmp184_, "photo-dpi");
+#line 1427 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ dpi = _tmp185_;
+#line 1428 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp186_ = dpi;
+#line 1428 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ if (_tmp186_ <= 0) {
+#line 1429 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
dpi = USER_INTERFACE_DEFAULT_PHOTO_DPI;
- }
- _tmp167_ = self->priv->photo_dpi_combo;
- _tmp168_ = dpi;
- user_interface_set_dpi_combo (self, _tmp167_, USER_INTERFACE_DEFAULT_PHOTO_DPI, _tmp168_);
- _tmp169_ = (GtkCellRendererText*) gtk_cell_renderer_text_new ();
- g_object_ref_sink (_tmp169_);
- renderer = _tmp169_;
- _tmp170_ = self->priv->device_combo;
- _tmp171_ = renderer;
- gtk_cell_layout_pack_start ((GtkCellLayout*) _tmp170_, (GtkCellRenderer*) _tmp171_, TRUE);
- _tmp172_ = self->priv->device_combo;
- _tmp173_ = renderer;
- gtk_cell_layout_add_attribute ((GtkCellLayout*) _tmp172_, (GtkCellRenderer*) _tmp173_, "text", 1);
- _tmp174_ = (GtkCellRendererText*) gtk_cell_renderer_text_new ();
- g_object_ref_sink (_tmp174_);
+#line 7334 "ui.c"
+ }
+#line 1430 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp187_ = self->priv->photo_dpi_combo;
+#line 1430 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp188_ = dpi;
+#line 1430 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ user_interface_set_dpi_combo (self, _tmp187_, USER_INTERFACE_DEFAULT_PHOTO_DPI, _tmp188_);
+#line 1432 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp189_ = (GtkCellRendererText*) gtk_cell_renderer_text_new ();
+#line 1432 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ g_object_ref_sink (_tmp189_);
+#line 1432 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ renderer = _tmp189_;
+#line 1433 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp190_ = self->priv->device_combo;
+#line 1433 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp191_ = renderer;
+#line 1433 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ gtk_cell_layout_pack_start ((GtkCellLayout*) _tmp190_, (GtkCellRenderer*) _tmp191_, TRUE);
+#line 1434 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp192_ = self->priv->device_combo;
+#line 1434 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp193_ = renderer;
+#line 1434 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ gtk_cell_layout_add_attribute ((GtkCellLayout*) _tmp192_, (GtkCellRenderer*) _tmp193_, "text", 1);
+#line 1436 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp194_ = (GtkCellRendererText*) gtk_cell_renderer_text_new ();
+#line 1436 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ g_object_ref_sink (_tmp194_);
+#line 1436 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (renderer);
- renderer = _tmp174_;
- _tmp175_ = self->priv->page_side_combo;
- _tmp176_ = renderer;
- gtk_cell_layout_pack_start ((GtkCellLayout*) _tmp175_, (GtkCellRenderer*) _tmp176_, TRUE);
- _tmp177_ = self->priv->page_side_combo;
- _tmp178_ = renderer;
- gtk_cell_layout_add_attribute ((GtkCellLayout*) _tmp177_, (GtkCellRenderer*) _tmp178_, "text", 1);
- _tmp179_ = self->priv->settings;
- _tmp180_ = g_settings_get_enum (_tmp179_, "page-side");
- user_interface_set_page_side (self, (ScanType) _tmp180_);
- _tmp181_ = (GtkCellRendererText*) gtk_cell_renderer_text_new ();
- g_object_ref_sink (_tmp181_);
+#line 1436 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ renderer = _tmp194_;
+#line 1437 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp195_ = self->priv->page_side_combo;
+#line 1437 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp196_ = renderer;
+#line 1437 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ gtk_cell_layout_pack_start ((GtkCellLayout*) _tmp195_, (GtkCellRenderer*) _tmp196_, TRUE);
+#line 1438 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp197_ = self->priv->page_side_combo;
+#line 1438 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp198_ = renderer;
+#line 1438 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ gtk_cell_layout_add_attribute ((GtkCellLayout*) _tmp197_, (GtkCellRenderer*) _tmp198_, "text", 1);
+#line 1439 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp199_ = self->priv->settings;
+#line 1439 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp200_ = g_settings_get_enum (_tmp199_, "page-side");
+#line 1439 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ user_interface_set_page_side (self, (ScanType) _tmp200_);
+#line 1441 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp201_ = (GtkCellRendererText*) gtk_cell_renderer_text_new ();
+#line 1441 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ g_object_ref_sink (_tmp201_);
+#line 1441 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (renderer);
- renderer = _tmp181_;
- _tmp182_ = self->priv->paper_size_combo;
- _tmp183_ = renderer;
- gtk_cell_layout_pack_start ((GtkCellLayout*) _tmp182_, (GtkCellRenderer*) _tmp183_, TRUE);
- _tmp184_ = self->priv->paper_size_combo;
- _tmp185_ = renderer;
- gtk_cell_layout_add_attribute ((GtkCellLayout*) _tmp184_, (GtkCellRenderer*) _tmp185_, "text", 2);
- _tmp186_ = self->priv->settings;
- _tmp187_ = g_settings_get_int (_tmp186_, "paper-width");
- paper_width = _tmp187_;
- _tmp188_ = self->priv->settings;
- _tmp189_ = g_settings_get_int (_tmp188_, "paper-height");
- paper_height = _tmp189_;
- _tmp190_ = paper_width;
- _tmp191_ = paper_height;
- user_interface_set_paper_size (self, _tmp190_, _tmp191_);
- _tmp192_ = self->priv->settings;
- _tmp193_ = g_settings_get_string (_tmp192_, "selected-device");
- device = _tmp193_;
- _tmp194_ = device;
- if (_tmp194_ != NULL) {
- const gchar* _tmp195_;
- GtkTreeIter _tmp196_ = {0};
- gboolean _tmp197_ = FALSE;
- _tmp195_ = device;
- _tmp197_ = user_interface_find_scan_device (self, _tmp195_, &_tmp196_);
- iter = _tmp196_;
- if (_tmp197_) {
- GtkComboBox* _tmp198_;
- GtkTreeIter _tmp199_;
- _tmp198_ = self->priv->device_combo;
- _tmp199_ = iter;
- gtk_combo_box_set_active_iter (_tmp198_, &_tmp199_);
+#line 1441 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ renderer = _tmp201_;
+#line 1442 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp202_ = self->priv->paper_size_combo;
+#line 1442 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp203_ = renderer;
+#line 1442 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ gtk_cell_layout_pack_start ((GtkCellLayout*) _tmp202_, (GtkCellRenderer*) _tmp203_, TRUE);
+#line 1443 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp204_ = self->priv->paper_size_combo;
+#line 1443 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp205_ = renderer;
+#line 1443 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ gtk_cell_layout_add_attribute ((GtkCellLayout*) _tmp204_, (GtkCellRenderer*) _tmp205_, "text", 2);
+#line 1444 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp206_ = self->priv->settings;
+#line 1444 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp207_ = g_settings_get_int (_tmp206_, "paper-width");
+#line 1444 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ paper_width = _tmp207_;
+#line 1445 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp208_ = self->priv->settings;
+#line 1445 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp209_ = g_settings_get_int (_tmp208_, "paper-height");
+#line 1445 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ paper_height = _tmp209_;
+#line 1446 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp210_ = paper_width;
+#line 1446 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp211_ = paper_height;
+#line 1446 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ user_interface_set_paper_size (self, _tmp210_, _tmp211_);
+#line 1448 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp212_ = self->priv->brightness_adjustment;
+#line 1448 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp213_ = gtk_adjustment_get_lower (_tmp212_);
+#line 1448 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ lower = _tmp213_;
+#line 1449 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp214_ = _ ("Darker");
+#line 1449 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp215_ = g_strdup_printf ("<small>%s</small>", _tmp214_);
+#line 1449 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ darker_label = _tmp215_;
+#line 1450 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp216_ = self->priv->brightness_adjustment;
+#line 1450 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp217_ = gtk_adjustment_get_upper (_tmp216_);
+#line 1450 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ upper = _tmp217_;
+#line 1451 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp218_ = _ ("Lighter");
+#line 1451 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp219_ = g_strdup_printf ("<small>%s</small>", _tmp218_);
+#line 1451 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ lighter_label = _tmp219_;
+#line 1452 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp220_ = self->priv->brightness_scale;
+#line 1452 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp221_ = lower;
+#line 1452 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp222_ = darker_label;
+#line 1452 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ gtk_scale_add_mark (_tmp220_, _tmp221_, GTK_POS_BOTTOM, _tmp222_);
+#line 1453 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp223_ = self->priv->brightness_scale;
+#line 1453 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ gtk_scale_add_mark (_tmp223_, (gdouble) 0, GTK_POS_BOTTOM, NULL);
+#line 1454 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp224_ = self->priv->brightness_scale;
+#line 1454 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp225_ = upper;
+#line 1454 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp226_ = lighter_label;
+#line 1454 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ gtk_scale_add_mark (_tmp224_, _tmp225_, GTK_POS_BOTTOM, _tmp226_);
+#line 1455 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp227_ = self->priv->settings;
+#line 1455 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp228_ = g_settings_get_int (_tmp227_, "brightness");
+#line 1455 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ user_interface_set_brightness (self, _tmp228_);
+#line 1457 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp229_ = self->priv->contrast_adjustment;
+#line 1457 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp230_ = gtk_adjustment_get_lower (_tmp229_);
+#line 1457 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ lower = _tmp230_;
+#line 1458 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp231_ = _ ("Less");
+#line 1458 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp232_ = g_strdup_printf ("<small>%s</small>", _tmp231_);
+#line 1458 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ less_label = _tmp232_;
+#line 1459 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp233_ = self->priv->contrast_adjustment;
+#line 1459 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp234_ = gtk_adjustment_get_upper (_tmp233_);
+#line 1459 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ upper = _tmp234_;
+#line 1460 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp235_ = _ ("More");
+#line 1460 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp236_ = g_strdup_printf ("<small>%s</small>", _tmp235_);
+#line 1460 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ more_label = _tmp236_;
+#line 1461 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp237_ = self->priv->contrast_scale;
+#line 1461 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp238_ = lower;
+#line 1461 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp239_ = less_label;
+#line 1461 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ gtk_scale_add_mark (_tmp237_, _tmp238_, GTK_POS_BOTTOM, _tmp239_);
+#line 1462 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp240_ = self->priv->contrast_scale;
+#line 1462 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ gtk_scale_add_mark (_tmp240_, (gdouble) 0, GTK_POS_BOTTOM, NULL);
+#line 1463 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp241_ = self->priv->contrast_scale;
+#line 1463 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp242_ = upper;
+#line 1463 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp243_ = more_label;
+#line 1463 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ gtk_scale_add_mark (_tmp241_, _tmp242_, GTK_POS_BOTTOM, _tmp243_);
+#line 1464 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp244_ = self->priv->settings;
+#line 1464 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp245_ = g_settings_get_int (_tmp244_, "contrast");
+#line 1464 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ user_interface_set_contrast (self, _tmp245_);
+#line 1466 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp246_ = self->priv->quality_adjustment;
+#line 1466 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp247_ = gtk_adjustment_get_lower (_tmp246_);
+#line 1466 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ lower = _tmp247_;
+#line 1467 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp248_ = _ ("Minimum");
+#line 1467 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp249_ = g_strdup_printf ("<small>%s</small>", _tmp248_);
+#line 1467 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ minimum_label = _tmp249_;
+#line 1468 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp250_ = self->priv->quality_adjustment;
+#line 1468 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp251_ = gtk_adjustment_get_upper (_tmp250_);
+#line 1468 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ upper = _tmp251_;
+#line 1469 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp252_ = _ ("Maximum");
+#line 1469 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp253_ = g_strdup_printf ("<small>%s</small>", _tmp252_);
+#line 1469 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ maximum_label = _tmp253_;
+#line 1470 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp254_ = self->priv->quality_scale;
+#line 1470 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp255_ = lower;
+#line 1470 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp256_ = minimum_label;
+#line 1470 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ gtk_scale_add_mark (_tmp254_, _tmp255_, GTK_POS_BOTTOM, _tmp256_);
+#line 1471 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp257_ = self->priv->quality_scale;
+#line 1471 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ gtk_scale_add_mark (_tmp257_, (gdouble) 75, GTK_POS_BOTTOM, NULL);
+#line 1472 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp258_ = self->priv->quality_scale;
+#line 1472 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp259_ = upper;
+#line 1472 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp260_ = maximum_label;
+#line 1472 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ gtk_scale_add_mark (_tmp258_, _tmp259_, GTK_POS_BOTTOM, _tmp260_);
+#line 1473 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp261_ = self->priv->settings;
+#line 1473 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp262_ = g_settings_get_int (_tmp261_, "jpeg-quality");
+#line 1473 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ user_interface_set_quality (self, _tmp262_);
+#line 1475 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp263_ = self->priv->settings;
+#line 1475 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp264_ = g_settings_get_string (_tmp263_, "selected-device");
+#line 1475 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ device = _tmp264_;
+#line 1476 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp265_ = device;
+#line 1476 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ if (_tmp265_ != NULL) {
+#line 7584 "ui.c"
+ const gchar* _tmp266_;
+ GtkTreeIter _tmp267_ = {0};
+ gboolean _tmp268_ = FALSE;
+#line 1478 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp266_ = device;
+#line 1478 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp268_ = user_interface_find_scan_device (self, _tmp266_, &_tmp267_);
+#line 1478 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ iter = _tmp267_;
+#line 1478 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ if (_tmp268_) {
+#line 7596 "ui.c"
+ GtkComboBox* _tmp269_;
+ GtkTreeIter _tmp270_;
+#line 1479 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp269_ = self->priv->device_combo;
+#line 1479 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp270_ = iter;
+#line 1479 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ gtk_combo_box_set_active_iter (_tmp269_, &_tmp270_);
+#line 7605 "ui.c"
}
}
- _tmp200_ = self->priv->settings;
- _tmp201_ = g_settings_get_string (_tmp200_, "document-type");
- document_type = _tmp201_;
- _tmp202_ = document_type;
- if (_tmp202_ != NULL) {
- const gchar* _tmp203_;
- _tmp203_ = document_type;
- user_interface_set_document_hint (self, _tmp203_);
- }
- _tmp204_ = self->priv->book;
- _tmp205_ = book_view_new (_tmp204_);
- g_object_ref_sink (_tmp205_);
+#line 1482 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp271_ = self->priv->settings;
+#line 1482 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp272_ = g_settings_get_string (_tmp271_, "document-type");
+#line 1482 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ document_type = _tmp272_;
+#line 1483 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp273_ = document_type;
+#line 1483 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ if (_tmp273_ != NULL) {
+#line 7618 "ui.c"
+ const gchar* _tmp274_;
+#line 1484 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp274_ = document_type;
+#line 1484 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ user_interface_set_document_hint (self, _tmp274_);
+#line 7624 "ui.c"
+ }
+#line 1486 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp275_ = self->priv->book;
+#line 1486 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp276_ = book_view_new (_tmp275_);
+#line 1486 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ g_object_ref_sink (_tmp276_);
+#line 1486 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->book_view);
- self->priv->book_view = _tmp205_;
- _tmp206_ = self->priv->book_view;
- gtk_container_set_border_width ((GtkContainer*) _tmp206_, (guint) 18);
- _tmp207_ = self->priv->main_vbox;
- _tmp208_ = self->priv->book_view;
- gtk_box_pack_end ((GtkBox*) _tmp207_, (GtkWidget*) _tmp208_, TRUE, TRUE, (guint) 0);
- _tmp209_ = self->priv->book_view;
- g_signal_connect (_tmp209_, "page-selected", (GCallback) _user_interface_page_selected_cb_book_view_page_selected, self);
- _tmp210_ = self->priv->book_view;
- g_signal_connect (_tmp210_, "show-page", (GCallback) _user_interface_show_page_cb_book_view_show_page, self);
- _tmp211_ = self->priv->book_view;
- g_signal_connect (_tmp211_, "show-menu", (GCallback) _user_interface_show_page_menu_cb_book_view_show_menu, self);
- _tmp212_ = self->priv->book_view;
- gtk_widget_show ((GtkWidget*) _tmp212_);
- _tmp213_ = self->priv->settings;
- _tmp214_ = g_settings_get_enum (_tmp213_, "scan-direction");
- self->priv->default_page_scan_direction = (ScanDirection) _tmp214_;
- _tmp215_ = self->priv->settings;
- _tmp216_ = g_settings_get_int (_tmp215_, "page-width");
- self->priv->default_page_width = _tmp216_;
- _tmp217_ = self->priv->default_page_width;
- if (_tmp217_ <= 0) {
+#line 1486 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ self->priv->book_view = _tmp276_;
+#line 1487 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp277_ = self->priv->book_view;
+#line 1487 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ gtk_container_set_border_width ((GtkContainer*) _tmp277_, (guint) 18);
+#line 1488 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp278_ = self->priv->main_vbox;
+#line 1488 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp279_ = self->priv->book_view;
+#line 1488 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ gtk_box_pack_end ((GtkBox*) _tmp278_, (GtkWidget*) _tmp279_, TRUE, TRUE, (guint) 0);
+#line 1489 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp280_ = self->priv->book_view;
+#line 1489 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ g_signal_connect (_tmp280_, "page-selected", (GCallback) _user_interface_page_selected_cb_book_view_page_selected, self);
+#line 1490 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp281_ = self->priv->book_view;
+#line 1490 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ g_signal_connect (_tmp281_, "show-page", (GCallback) _user_interface_show_page_cb_book_view_show_page, self);
+#line 1491 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp282_ = self->priv->book_view;
+#line 1491 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ g_signal_connect (_tmp282_, "show-menu", (GCallback) _user_interface_show_page_menu_cb_book_view_show_menu, self);
+#line 1492 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp283_ = self->priv->book_view;
+#line 1492 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ gtk_widget_show ((GtkWidget*) _tmp283_);
+#line 1495 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp284_ = self->priv->settings;
+#line 1495 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp285_ = g_settings_get_enum (_tmp284_, "scan-direction");
+#line 1495 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ self->priv->default_page_scan_direction = (ScanDirection) _tmp285_;
+#line 1496 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp286_ = self->priv->settings;
+#line 1496 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp287_ = g_settings_get_int (_tmp286_, "page-width");
+#line 1496 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ self->priv->default_page_width = _tmp287_;
+#line 1497 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp288_ = self->priv->default_page_width;
+#line 1497 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ if (_tmp288_ <= 0) {
+#line 1498 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->default_page_width = 595;
- }
- _tmp218_ = self->priv->settings;
- _tmp219_ = g_settings_get_int (_tmp218_, "page-height");
- self->priv->default_page_height = _tmp219_;
- _tmp220_ = self->priv->default_page_height;
- if (_tmp220_ <= 0) {
+#line 7680 "ui.c"
+ }
+#line 1499 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp289_ = self->priv->settings;
+#line 1499 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp290_ = g_settings_get_int (_tmp289_, "page-height");
+#line 1499 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ self->priv->default_page_height = _tmp290_;
+#line 1500 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp291_ = self->priv->default_page_height;
+#line 1500 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ if (_tmp291_ <= 0) {
+#line 1501 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->default_page_height = 842;
- }
- _tmp221_ = self->priv->settings;
- _tmp222_ = g_settings_get_int (_tmp221_, "page-dpi");
- self->priv->default_page_dpi = _tmp222_;
- _tmp223_ = self->priv->default_page_dpi;
- if (_tmp223_ <= 0) {
+#line 7694 "ui.c"
+ }
+#line 1502 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp292_ = self->priv->settings;
+#line 1502 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp293_ = g_settings_get_int (_tmp292_, "page-dpi");
+#line 1502 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ self->priv->default_page_dpi = _tmp293_;
+#line 1503 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp294_ = self->priv->default_page_dpi;
+#line 1503 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ if (_tmp294_ <= 0) {
+#line 1504 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->default_page_dpi = 72;
- }
- _tmp224_ = self->priv->settings;
- _tmp225_ = g_settings_get_int (_tmp224_, "window-width");
- self->priv->window_width = _tmp225_;
- _tmp226_ = self->priv->window_width;
- if (_tmp226_ <= 0) {
+#line 7708 "ui.c"
+ }
+#line 1507 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp295_ = self->priv->settings;
+#line 1507 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp296_ = g_settings_get_int (_tmp295_, "window-width");
+#line 1507 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ self->priv->window_width = _tmp296_;
+#line 1508 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp297_ = self->priv->window_width;
+#line 1508 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ if (_tmp297_ <= 0) {
+#line 1509 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->window_width = 600;
- }
- _tmp227_ = self->priv->settings;
- _tmp228_ = g_settings_get_int (_tmp227_, "window-height");
- self->priv->window_height = _tmp228_;
- _tmp229_ = self->priv->window_height;
- if (_tmp229_ <= 0) {
+#line 7722 "ui.c"
+ }
+#line 1510 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp298_ = self->priv->settings;
+#line 1510 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp299_ = g_settings_get_int (_tmp298_, "window-height");
+#line 1510 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ self->priv->window_height = _tmp299_;
+#line 1511 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp300_ = self->priv->window_height;
+#line 1511 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ if (_tmp300_ <= 0) {
+#line 1512 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->window_height = 400;
- }
- _tmp230_ = self->priv->window_width;
- _tmp231_ = self->priv->window_height;
- g_debug ("ui.vala:1404: Restoring window to %dx%d pixels", _tmp230_, _tmp231_);
- _tmp232_ = self->priv->window;
- _tmp233_ = self->priv->window_width;
- _tmp234_ = self->priv->window_height;
- gtk_window_set_default_size (_tmp232_, _tmp233_, _tmp234_);
- _tmp235_ = self->priv->settings;
- _tmp236_ = g_settings_get_boolean (_tmp235_, "window-is-maximized");
- self->priv->window_is_maximized = _tmp236_;
- _tmp237_ = self->priv->window_is_maximized;
- if (_tmp237_) {
- GtkWindow* _tmp238_;
- g_debug ("ui.vala:1409: Restoring window to maximized");
- _tmp238_ = self->priv->window;
- gtk_window_maximize (_tmp238_);
- }
- _tmp239_ = self->priv->book;
- _tmp240_ = book_get_n_pages (_tmp239_);
- if (_tmp240_ == ((guint) 0)) {
+#line 7736 "ui.c"
+ }
+#line 1513 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp301_ = self->priv->window_width;
+#line 1513 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp302_ = self->priv->window_height;
+#line 1513 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ g_debug ("ui.vala:1513: Restoring window to %dx%d pixels", _tmp301_, _tmp302_);
+#line 1514 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp303_ = self->priv->window;
+#line 1514 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp304_ = self->priv->window_width;
+#line 1514 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp305_ = self->priv->window_height;
+#line 1514 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ gtk_window_set_default_size (_tmp303_, _tmp304_, _tmp305_);
+#line 1515 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp306_ = self->priv->settings;
+#line 1515 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp307_ = g_settings_get_boolean (_tmp306_, "window-is-maximized");
+#line 1515 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ self->priv->window_is_maximized = _tmp307_;
+#line 1516 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp308_ = self->priv->window_is_maximized;
+#line 1516 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ if (_tmp308_) {
+#line 7762 "ui.c"
+ GtkWindow* _tmp309_;
+#line 1518 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ g_debug ("ui.vala:1518: Restoring window to maximized");
+#line 1519 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp309_ = self->priv->window;
+#line 1519 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ gtk_window_maximize (_tmp309_);
+#line 7770 "ui.c"
+ }
+#line 1522 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp310_ = self->priv->book;
+#line 1522 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp311_ = book_get_n_pages (_tmp310_);
+#line 1522 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ if (_tmp311_ == ((guint) 0)) {
+#line 1523 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_add_default_page (self);
- }
- _tmp241_ = self->priv->book;
- book_set_needs_saving (_tmp241_, FALSE);
- _tmp242_ = self->priv->book;
- g_signal_connect (_tmp242_, "needs-saving-changed", (GCallback) _user_interface_needs_saving_cb_book_needs_saving_changed, self);
- _tmp243_ = self->priv->window;
- _tmp244_ = _ ("Saving document...");
- _tmp245_ = progress_bar_dialog_new (_tmp243_, _tmp244_);
- g_object_ref_sink (_tmp245_);
+#line 7780 "ui.c"
+ }
+#line 1524 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp312_ = self->priv->book;
+#line 1524 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ book_set_needs_saving (_tmp312_, FALSE);
+#line 1525 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp313_ = self->priv->book;
+#line 1525 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ g_signal_connect (_tmp313_, "needs-saving-changed", (GCallback) _user_interface_needs_saving_cb_book_needs_saving_changed, self);
+#line 1527 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp314_ = self->priv->window;
+#line 1527 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp315_ = _ ("Saving document...");
+#line 1527 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp316_ = progress_bar_dialog_new (_tmp314_, _tmp315_);
+#line 1527 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ g_object_ref_sink (_tmp316_);
+#line 1527 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->progress_dialog);
- self->priv->progress_dialog = _tmp245_;
- _tmp246_ = self->priv->book;
- g_signal_connect (_tmp246_, "saving", (GCallback) _user_interface_book_saving_cb_book_saving, self);
+#line 1527 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ self->priv->progress_dialog = _tmp316_;
+#line 1528 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp317_ = self->priv->book;
+#line 1528 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ g_signal_connect (_tmp317_, "saving", (GCallback) _user_interface_book_saving_cb_book_saving, self);
+#line 1318 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (document_type);
+#line 1318 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (device);
+#line 1318 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _g_free0 (maximum_label);
+#line 1318 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _g_free0 (minimum_label);
+#line 1318 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _g_free0 (more_label);
+#line 1318 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _g_free0 (less_label);
+#line 1318 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _g_free0 (lighter_label);
+#line 1318 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _g_free0 (darker_label);
+#line 1318 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (renderer);
+#line 1318 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (content_area);
+#line 1318 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (hbox);
+#line 1318 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (app);
- _g_free0 (filename);
+#line 7830 "ui.c"
}
-static gboolean ___lambda2_ (UserInterface* self) {
+static gboolean ___lambda3_ (UserInterface* self) {
gboolean result = FALSE;
ProgressBarDialog* _tmp0_;
+#line 1542 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = self->priv->progress_dialog;
+#line 1542 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_hide ((GtkWidget*) _tmp0_);
+#line 1543 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = FALSE;
+#line 1543 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
+#line 7845 "ui.c"
}
-static gboolean ____lambda2__gsource_func (gpointer self) {
+static gboolean ____lambda3__gsource_func (gpointer self) {
gboolean result;
- result = ___lambda2_ (self);
+ result = ___lambda3_ (self);
+#line 1541 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
+#line 7854 "ui.c"
}
@@ -4512,59 +7883,102 @@ static void user_interface_book_saving_cb (UserInterface* self, gint page_number
ProgressBarDialog* _tmp11_;
gdouble _tmp12_;
ProgressBarDialog* _tmp13_;
+#line 1531 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 1534 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
while (TRUE) {
+#line 7880 "ui.c"
gboolean _tmp0_ = FALSE;
+#line 1534 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = gtk_events_pending ();
+#line 1534 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (!_tmp0_) {
+#line 1534 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
+#line 7888 "ui.c"
}
+#line 1535 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_main_iteration ();
+#line 7892 "ui.c"
}
+#line 1537 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = self->priv->book;
+#line 1537 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = book_get_n_pages (_tmp1_);
+#line 1537 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
total = (gint) _tmp2_;
+#line 1538 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = page_number;
+#line 1538 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = total;
+#line 1538 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
fraction = (_tmp3_ + 1.0) / _tmp4_;
+#line 1539 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_ = fraction;
+#line 1539 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
complete = _tmp5_ == 1.0;
+#line 1540 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp6_ = complete;
+#line 1540 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp6_) {
- g_timeout_add_full (G_PRIORITY_DEFAULT, (guint) 500, ____lambda2__gsource_func, user_interface_ref (self), user_interface_unref);
+#line 1541 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ g_timeout_add_full (G_PRIORITY_DEFAULT, (guint) 500, ____lambda3__gsource_func, user_interface_ref (self), user_interface_unref);
+#line 7916 "ui.c"
}
+#line 1545 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp7_ = _ ("Saving page %d out of %d");
+#line 1545 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp8_ = page_number;
+#line 1545 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp9_ = total;
+#line 1545 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp10_ = g_strdup_printf (_tmp7_, _tmp8_ + 1, _tmp9_);
+#line 1545 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
message = _tmp10_;
+#line 1547 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp11_ = self->priv->progress_dialog;
+#line 1547 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp12_ = fraction;
+#line 1547 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
progress_bar_dialog_set_fraction (_tmp11_, _tmp12_);
+#line 1548 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp13_ = self->priv->progress_dialog;
+#line 1548 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
progress_bar_dialog_set_message (_tmp13_, message);
+#line 1531 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (message);
+#line 7940 "ui.c"
}
void user_interface_show_progress_dialog (UserInterface* self) {
ProgressBarDialog* _tmp0_;
+#line 1551 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 1553 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = self->priv->progress_dialog;
+#line 1553 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_show ((GtkWidget*) _tmp0_);
+#line 7952 "ui.c"
}
void user_interface_hide_progress_dialog (UserInterface* self) {
ProgressBarDialog* _tmp0_;
+#line 1556 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 1558 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = self->priv->progress_dialog;
+#line 1558 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_hide ((GtkWidget*) _tmp0_);
+#line 7964 "ui.c"
}
static gpointer _book_ref0 (gpointer self) {
+#line 1563 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return self ? book_ref (self) : NULL;
+#line 7971 "ui.c"
}
@@ -4572,22 +7986,34 @@ Book* user_interface_get_book (UserInterface* self) {
Book* result = NULL;
Book* _tmp0_;
Book* _tmp1_;
+#line 1561 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (self != NULL, NULL);
+#line 1563 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = self->priv->book;
+#line 1563 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = _book_ref0 (_tmp0_);
+#line 1563 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = _tmp1_;
+#line 1563 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
+#line 7989 "ui.c"
}
void user_interface_set_selected_page (UserInterface* self, Page* page) {
BookView* _tmp0_;
Page* _tmp1_;
+#line 1566 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 1566 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (page != NULL);
+#line 1568 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = self->priv->book_view;
+#line 1568 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = page;
+#line 1568 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
book_view_select_page (_tmp0_, _tmp1_);
+#line 8006 "ui.c"
}
@@ -4595,11 +8021,17 @@ Page* user_interface_get_selected_page (UserInterface* self) {
Page* result = NULL;
BookView* _tmp0_;
Page* _tmp1_ = NULL;
+#line 1571 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (self != NULL, NULL);
+#line 1573 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = self->priv->book_view;
+#line 1573 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = book_view_get_selected (_tmp0_);
+#line 1573 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = _tmp1_;
+#line 1573 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
+#line 8024 "ui.c"
}
@@ -4611,18 +8043,31 @@ void user_interface_set_scanning (UserInterface* self, gboolean scanning) {
gboolean _tmp4_;
GtkToolButton* _tmp5_;
gboolean _tmp6_;
+#line 1576 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 1578 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = scanning;
+#line 1578 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->scanning = _tmp0_;
+#line 1579 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = self->priv->page_delete_menuitem;
+#line 1579 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = scanning;
+#line 1579 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_set_sensitive ((GtkWidget*) _tmp1_, !_tmp2_);
+#line 1580 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = self->priv->stop_menuitem;
+#line 1580 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = scanning;
+#line 1580 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_set_sensitive ((GtkWidget*) _tmp3_, _tmp4_);
+#line 1581 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_ = self->priv->stop_toolbutton;
+#line 1581 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp6_ = scanning;
+#line 1581 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_set_sensitive ((GtkWidget*) _tmp5_, _tmp6_);
+#line 8060 "ui.c"
}
@@ -4632,29 +8077,49 @@ void user_interface_show_error (UserInterface* self, const gchar* error_title, c
const gchar* _tmp2_;
gchar* _tmp3_;
gboolean _tmp4_;
+#line 1584 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 1584 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (error_title != NULL);
+#line 1584 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (error_text != NULL);
+#line 1586 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->have_error = TRUE;
+#line 1587 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = error_title;
+#line 1587 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = g_strdup (_tmp0_);
+#line 1587 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (self->priv->error_title);
+#line 1587 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->error_title = _tmp1_;
+#line 1588 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = error_text;
+#line 1588 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = g_strdup (_tmp2_);
+#line 1588 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (self->priv->error_text);
+#line 1588 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->error_text = _tmp3_;
+#line 1589 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = change_scanner_hint;
+#line 1589 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->error_change_scanner_hint = _tmp4_;
+#line 1590 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_update_info_bar (self);
+#line 8100 "ui.c"
}
void user_interface_start (UserInterface* self) {
GtkWindow* _tmp0_;
+#line 1593 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 1595 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = self->priv->window;
+#line 1595 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_show ((GtkWidget*) _tmp0_);
+#line 8112 "ui.c"
}
@@ -4665,136 +8130,255 @@ static void g_cclosure_user_marshal_VOID__STRING_SCAN_OPTIONS (GClosure * closur
register gpointer data1;
register gpointer data2;
cc = (GCClosure *) closure;
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (n_param_values == 3);
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (G_CCLOSURE_SWAP_DATA (closure)) {
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
data1 = closure->data;
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
data2 = param_values->data[0].v_pointer;
+#line 8131 "ui.c"
} else {
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
data1 = param_values->data[0].v_pointer;
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
data2 = closure->data;
+#line 8137 "ui.c"
}
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
callback = (GMarshalFunc_VOID__STRING_SCAN_OPTIONS) (marshal_data ? marshal_data : cc->callback);
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
callback (data1, g_value_get_string (param_values + 1), value_get_scan_options (param_values + 2), data2);
+#line 8143 "ui.c"
+}
+
+
+static void g_cclosure_user_marshal_VOID__STRING_INT (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data) {
+ typedef void (*GMarshalFunc_VOID__STRING_INT) (gpointer data1, const char* arg_1, gint arg_2, gpointer data2);
+ register GMarshalFunc_VOID__STRING_INT callback;
+ register GCClosure * cc;
+ register gpointer data1;
+ register gpointer data2;
+ cc = (GCClosure *) closure;
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ g_return_if_fail (n_param_values == 3);
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ if (G_CCLOSURE_SWAP_DATA (closure)) {
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ data1 = closure->data;
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ data2 = param_values->data[0].v_pointer;
+#line 8162 "ui.c"
+ } else {
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ data1 = param_values->data[0].v_pointer;
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ data2 = closure->data;
+#line 8168 "ui.c"
+ }
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ callback = (GMarshalFunc_VOID__STRING_INT) (marshal_data ? marshal_data : cc->callback);
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ callback (data1, g_value_get_string (param_values + 1), g_value_get_int (param_values + 2), data2);
+#line 8174 "ui.c"
}
static void value_user_interface_init (GValue* value) {
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
value->data[0].v_pointer = NULL;
+#line 8181 "ui.c"
}
static void value_user_interface_free_value (GValue* value) {
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (value->data[0].v_pointer) {
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_unref (value->data[0].v_pointer);
+#line 8190 "ui.c"
}
}
static void value_user_interface_copy_value (const GValue* src_value, GValue* dest_value) {
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (src_value->data[0].v_pointer) {
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
dest_value->data[0].v_pointer = user_interface_ref (src_value->data[0].v_pointer);
+#line 8200 "ui.c"
} else {
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
dest_value->data[0].v_pointer = NULL;
+#line 8204 "ui.c"
}
}
static gpointer value_user_interface_peek_pointer (const GValue* value) {
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return value->data[0].v_pointer;
+#line 8212 "ui.c"
}
static gchar* value_user_interface_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (collect_values[0].v_pointer) {
+#line 8219 "ui.c"
UserInterface* object;
object = collect_values[0].v_pointer;
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (object->parent_instance.g_class == NULL) {
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 8226 "ui.c"
} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 8230 "ui.c"
}
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
value->data[0].v_pointer = user_interface_ref (object);
+#line 8234 "ui.c"
} else {
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
value->data[0].v_pointer = NULL;
+#line 8238 "ui.c"
}
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return NULL;
+#line 8242 "ui.c"
}
static gchar* value_user_interface_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
UserInterface** object_p;
object_p = collect_values[0].v_pointer;
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (!object_p) {
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
+#line 8253 "ui.c"
}
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (!value->data[0].v_pointer) {
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
*object_p = NULL;
+#line 8259 "ui.c"
} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
*object_p = value->data[0].v_pointer;
+#line 8263 "ui.c"
} else {
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
*object_p = user_interface_ref (value->data[0].v_pointer);
+#line 8267 "ui.c"
}
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return NULL;
+#line 8271 "ui.c"
}
GParamSpec* param_spec_user_interface (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
ParamSpecUserInterface* spec;
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (g_type_is_a (object_type, TYPE_USER_INTERFACE), NULL);
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
G_PARAM_SPEC (spec)->value_type = object_type;
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return G_PARAM_SPEC (spec);
+#line 8285 "ui.c"
}
gpointer value_get_user_interface (const GValue* value) {
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_USER_INTERFACE), NULL);
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return value->data[0].v_pointer;
+#line 8294 "ui.c"
}
void value_set_user_interface (GValue* value, gpointer v_object) {
UserInterface* old;
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_USER_INTERFACE));
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
old = value->data[0].v_pointer;
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (v_object) {
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_USER_INTERFACE));
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
value->data[0].v_pointer = v_object;
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_ref (value->data[0].v_pointer);
+#line 8314 "ui.c"
} else {
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
value->data[0].v_pointer = NULL;
+#line 8318 "ui.c"
}
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (old) {
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_unref (old);
+#line 8324 "ui.c"
}
}
void value_take_user_interface (GValue* value, gpointer v_object) {
UserInterface* old;
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_USER_INTERFACE));
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
old = value->data[0].v_pointer;
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (v_object) {
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_USER_INTERFACE));
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
value->data[0].v_pointer = v_object;
+#line 8343 "ui.c"
} else {
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
value->data[0].v_pointer = NULL;
+#line 8347 "ui.c"
}
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (old) {
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_unref (old);
+#line 8353 "ui.c"
}
}
static void user_interface_class_init (UserInterfaceClass * klass) {
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_parent_class = g_type_class_peek_parent (klass);
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
USER_INTERFACE_CLASS (klass)->finalize = user_interface_finalize;
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_type_class_add_private (klass, sizeof (UserInterfacePrivate));
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_signal_new ("start_scan", TYPE_USER_INTERFACE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__STRING_SCAN_OPTIONS, G_TYPE_NONE, 2, G_TYPE_STRING, TYPE_SCAN_OPTIONS);
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_signal_new ("stop_scan", TYPE_USER_INTERFACE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
- g_signal_new ("email", TYPE_USER_INTERFACE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING);
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ g_signal_new ("email", TYPE_USER_INTERFACE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__STRING_INT, G_TYPE_NONE, 2, G_TYPE_STRING, G_TYPE_INT);
+#line 8371 "ui.c"
}
@@ -4802,15 +8386,25 @@ static void user_interface_instance_init (UserInterface * self) {
gchar* _tmp0_;
const gchar* _tmp1_ = NULL;
gchar* _tmp2_;
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv = USER_INTERFACE_GET_PRIVATE (self);
+#line 78 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->book_uri = NULL;
+#line 89 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = g_strdup ("photo");
+#line 89 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->document_hint = _tmp0_;
+#line 91 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = _ ("Scanned Document.pdf");
+#line 91 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = g_strdup (_tmp1_);
+#line 91 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->default_file_name = _tmp2_;
+#line 92 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->scanning = FALSE;
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->ref_count = 1;
+#line 8397 "ui.c"
}
@@ -4820,59 +8414,129 @@ static void user_interface_finalize (UserInterface* obj) {
guint _tmp1_ = 0U;
Book* _tmp2_;
guint _tmp3_ = 0U;
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_USER_INTERFACE, UserInterface);
+#line 117 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = self->priv->book;
+#line 117 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_signal_parse_name ("page-removed", TYPE_BOOK, &_tmp1_, NULL, FALSE);
+#line 117 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _user_interface_page_removed_cb_book_page_removed, self);
+#line 118 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = self->priv->book;
+#line 118 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_signal_parse_name ("page-added", TYPE_BOOK, &_tmp3_, NULL, FALSE);
+#line 118 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _user_interface_page_added_cb_book_page_added, self);
+#line 17 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->settings);
+#line 19 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->builder);
+#line 21 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->window);
+#line 22 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->main_vbox);
+#line 23 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->info_bar);
+#line 24 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->info_bar_image);
+#line 25 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->info_bar_label);
+#line 26 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->info_bar_close_button);
+#line 27 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->info_bar_change_scanner_button);
+#line 28 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->page_move_left_menuitem);
+#line 29 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->page_move_right_menuitem);
+#line 30 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->page_delete_menuitem);
+#line 31 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->crop_rotate_menuitem);
+#line 32 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->save_menuitem);
+#line 33 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->save_as_menuitem);
+#line 34 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _g_object_unref0 (self->priv->copy_to_clipboard_menuitem);
+#line 35 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->save_toolbutton);
+#line 36 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->stop_menuitem);
+#line 37 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->stop_toolbutton);
+#line 39 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->text_toolbar_menuitem);
+#line 40 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->text_menu_menuitem);
+#line 41 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->photo_toolbar_menuitem);
+#line 42 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->photo_menu_menuitem);
+#line 44 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->authorize_dialog);
+#line 45 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->authorize_label);
+#line 46 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->username_entry);
+#line 47 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->password_entry);
+#line 49 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->preferences_dialog);
+#line 50 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->device_combo);
+#line 51 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->text_dpi_combo);
+#line 52 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->photo_dpi_combo);
+#line 53 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->page_side_combo);
+#line 54 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->paper_size_combo);
+#line 55 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _g_object_unref0 (self->priv->brightness_scale);
+#line 56 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _g_object_unref0 (self->priv->contrast_scale);
+#line 57 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _g_object_unref0 (self->priv->quality_scale);
+#line 58 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->device_model);
+#line 59 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->text_dpi_model);
+#line 60 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->photo_dpi_model);
+#line 61 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->page_side_model);
+#line 62 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->paper_size_model);
+#line 63 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _g_object_unref0 (self->priv->brightness_adjustment);
+#line 64 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _g_object_unref0 (self->priv->contrast_adjustment);
+#line 65 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _g_object_unref0 (self->priv->quality_adjustment);
+#line 69 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->save_dialog);
+#line 70 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->progress_dialog);
+#line 73 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (self->priv->error_title);
+#line 74 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (self->priv->error_text);
+#line 77 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_book_unref0 (self->priv->book);
+#line 78 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (self->priv->book_uri);
+#line 80 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _autosave_manager_unref0 (self->priv->autosave_manager);
+#line 82 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->book_view);
+#line 89 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (self->priv->document_hint);
+#line 91 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (self->priv->default_file_name);
+#line 8529 "ui.c"
}
@@ -4893,17 +8557,24 @@ GType user_interface_get_type (void) {
gpointer user_interface_ref (gpointer instance) {
UserInterface* self;
self = instance;
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_atomic_int_inc (&self->ref_count);
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return instance;
+#line 8554 "ui.c"
}
void user_interface_unref (gpointer instance) {
UserInterface* self;
self = instance;
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (g_atomic_int_dec_and_test (&self->ref_count)) {
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
USER_INTERFACE_GET_CLASS (self)->finalize (self);
+#line 12 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_type_free_instance ((GTypeInstance *) self);
+#line 8567 "ui.c"
}
}
@@ -4922,91 +8593,154 @@ ProgressBarDialog* progress_bar_dialog_construct (GType object_type, GtkWindow*
const gchar* _tmp7_;
GtkWindow* _tmp8_;
GtkProgressBar* _tmp9_;
+#line 1603 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (parent != NULL, NULL);
+#line 1603 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (title != NULL, NULL);
+#line 1603 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self = (ProgressBarDialog*) g_object_new (object_type, NULL);
+#line 1605 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = (GtkProgressBar*) gtk_progress_bar_new ();
+#line 1605 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_object_ref_sink (_tmp0_);
+#line 1605 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->bar);
+#line 1605 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->bar = _tmp0_;
+#line 1606 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
+#line 1606 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_object_ref_sink (_tmp1_);
+#line 1606 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
hbox = _tmp1_;
+#line 1607 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
+#line 1607 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_object_ref_sink (_tmp2_);
+#line 1607 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
vbox = _tmp2_;
+#line 1608 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_set_hexpand ((GtkWidget*) hbox, TRUE);
+#line 1610 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = self->priv->bar;
+#line 1610 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_progress_bar_set_text (_tmp3_, "");
+#line 1611 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = self->priv->bar;
+#line 1611 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_progress_bar_set_show_text (_tmp4_, TRUE);
+#line 1612 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_ = self->priv->bar;
+#line 1612 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_set_size_request ((GtkWidget*) _tmp5_, 225, 25);
+#line 1613 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_set_size_request ((GtkWidget*) self, 250, 50);
+#line 1615 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp6_ = self->priv->bar;
+#line 1615 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_box_pack_start (vbox, (GtkWidget*) _tmp6_, TRUE, FALSE, (guint) 0);
+#line 1616 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_box_pack_start (hbox, (GtkWidget*) vbox, TRUE, FALSE, (guint) 0);
+#line 1617 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_container_add ((GtkContainer*) self, (GtkWidget*) hbox);
+#line 1618 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp7_ = title;
+#line 1618 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_window_set_title ((GtkWindow*) self, _tmp7_);
+#line 1620 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp8_ = parent;
+#line 1620 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_window_set_transient_for ((GtkWindow*) self, _tmp8_);
+#line 1621 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_window_set_position ((GtkWindow*) self, GTK_WIN_POS_CENTER_ON_PARENT);
+#line 1622 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_window_set_modal ((GtkWindow*) self, TRUE);
+#line 1623 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_window_set_resizable ((GtkWindow*) self, FALSE);
+#line 1625 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_show ((GtkWidget*) hbox);
+#line 1626 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_show ((GtkWidget*) vbox);
+#line 1627 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp9_ = self->priv->bar;
+#line 1627 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_show ((GtkWidget*) _tmp9_);
+#line 1603 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (vbox);
+#line 1603 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (hbox);
+#line 1603 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return self;
+#line 8664 "ui.c"
}
ProgressBarDialog* progress_bar_dialog_new (GtkWindow* parent, const gchar* title) {
+#line 1603 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return progress_bar_dialog_construct (TYPE_PROGRESS_BAR_DIALOG, parent, title);
+#line 8671 "ui.c"
}
void progress_bar_dialog_set_fraction (ProgressBarDialog* self, gdouble percent) {
GtkProgressBar* _tmp0_;
gdouble _tmp1_;
+#line 1630 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 1632 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = self->priv->bar;
+#line 1632 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = percent;
+#line 1632 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_progress_bar_set_fraction (_tmp0_, _tmp1_);
+#line 8686 "ui.c"
}
void progress_bar_dialog_set_message (ProgressBarDialog* self, const gchar* message) {
GtkProgressBar* _tmp0_;
const gchar* _tmp1_;
+#line 1635 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
+#line 1635 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (message != NULL);
+#line 1637 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = self->priv->bar;
+#line 1637 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = message;
+#line 1637 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_progress_bar_set_text (_tmp0_, _tmp1_);
+#line 8703 "ui.c"
}
static void progress_bar_dialog_class_init (ProgressBarDialogClass * klass) {
+#line 1599 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
progress_bar_dialog_parent_class = g_type_class_peek_parent (klass);
+#line 1599 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_type_class_add_private (klass, sizeof (ProgressBarDialogPrivate));
+#line 1599 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
G_OBJECT_CLASS (klass)->finalize = progress_bar_dialog_finalize;
+#line 8714 "ui.c"
}
static void progress_bar_dialog_instance_init (ProgressBarDialog * self) {
+#line 1599 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv = PROGRESS_BAR_DIALOG_GET_PRIVATE (self);
+#line 8721 "ui.c"
}
static void progress_bar_dialog_finalize (GObject* obj) {
ProgressBarDialog * self;
+#line 1599 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PROGRESS_BAR_DIALOG, ProgressBarDialog);
+#line 1601 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->bar);
+#line 1599 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
G_OBJECT_CLASS (progress_bar_dialog_parent_class)->finalize (obj);
+#line 8733 "ui.c"
}
@@ -5030,57 +8764,96 @@ gchar* get_temporary_filename (const gchar* prefix, const gchar* extension) {
gchar* filename;
gchar* path = NULL;
GError * _inner_error_ = NULL;
+#line 1642 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (prefix != NULL, NULL);
+#line 1642 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (extension != NULL, NULL);
+#line 1647 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = prefix;
+#line 1647 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = extension;
+#line 1647 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = g_strdup_printf ("%sXXXXXX.%s", _tmp0_, _tmp1_);
+#line 1647 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
filename = _tmp2_;
+#line 8769 "ui.c"
{
const gchar* _tmp3_;
gchar* _tmp4_ = NULL;
gint _tmp5_ = 0;
gint fd;
gint _tmp6_;
+#line 1651 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = filename;
+#line 1651 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_ = g_file_open_tmp (_tmp3_, &_tmp4_, &_inner_error_);
+#line 1651 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (path);
+#line 1651 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
path = _tmp4_;
+#line 1651 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
fd = _tmp5_;
+#line 1651 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_inner_error_ != NULL) {
- goto __catch21_g_error;
+#line 8788 "ui.c"
+ goto __catch22_g_error;
}
+#line 1652 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp6_ = fd;
+#line 1652 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
close (_tmp6_);
+#line 8795 "ui.c"
}
- goto __finally21;
- __catch21_g_error:
+ goto __finally22;
+ __catch22_g_error:
{
GError* e = NULL;
GError* _tmp7_;
const gchar* _tmp8_;
+#line 1649 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
e = _inner_error_;
+#line 1649 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_inner_error_ = NULL;
+#line 1656 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp7_ = e;
+#line 1656 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp8_ = _tmp7_->message;
- g_warning ("ui.vala:1547: Error saving email attachment: %s", _tmp8_);
+#line 1656 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ g_warning ("ui.vala:1656: Error saving email attachment: %s", _tmp8_);
+#line 1657 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = NULL;
+#line 1657 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_error_free0 (e);
+#line 1657 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (path);
+#line 1657 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (filename);
+#line 1657 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
+#line 8823 "ui.c"
}
- __finally21:
+ __finally22:
+#line 1649 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_inner_error_ != NULL) {
+#line 1649 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (path);
+#line 1649 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (filename);
+#line 1649 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 1649 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_clear_error (&_inner_error_);
+#line 1649 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return NULL;
+#line 8838 "ui.c"
}
+#line 1660 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = path;
+#line 1660 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (filename);
+#line 1660 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
+#line 8846 "ui.c"
}
diff --git a/src/ui.vala b/src/ui.vala
index 5b192d9..075c97d 100644
--- a/src/ui.vala
+++ b/src/ui.vala
@@ -31,6 +31,7 @@ public class UserInterface
private Gtk.MenuItem crop_rotate_menuitem;
private Gtk.MenuItem save_menuitem;
private Gtk.MenuItem save_as_menuitem;
+ private Gtk.MenuItem copy_to_clipboard_menuitem;
private Gtk.ToolButton save_toolbutton;
private Gtk.MenuItem stop_menuitem;
private Gtk.ToolButton stop_toolbutton;
@@ -51,11 +52,17 @@ public class UserInterface
private Gtk.ComboBox photo_dpi_combo;
private Gtk.ComboBox page_side_combo;
private Gtk.ComboBox paper_size_combo;
+ private Gtk.Scale brightness_scale;
+ private Gtk.Scale contrast_scale;
+ private Gtk.Scale quality_scale;
private Gtk.ListStore device_model;
private Gtk.ListStore text_dpi_model;
private Gtk.ListStore photo_dpi_model;
private Gtk.ListStore page_side_model;
private Gtk.ListStore paper_size_model;
+ private Gtk.Adjustment brightness_adjustment;
+ private Gtk.Adjustment contrast_adjustment;
+ private Gtk.Adjustment quality_adjustment;
private bool setting_devices;
private bool user_selected_device;
@@ -70,6 +77,8 @@ public class UserInterface
private Book book;
private string? book_uri = null;
+ private AutosaveManager? autosave_manager;
+
private BookView book_view;
private bool updating_page_menu;
private int default_page_width;
@@ -88,17 +97,19 @@ public class UserInterface
public signal void start_scan (string? device, ScanOptions options);
public signal void stop_scan ();
- public signal void email (string profile);
+ public signal void email (string profile, int quality);
public UserInterface ()
{
+ settings = new Settings ("org.gnome.SimpleScan");
+
book = new Book ();
book.page_removed.connect (page_removed_cb);
book.page_added.connect (page_added_cb);
- settings = new Settings ("org.gnome.SimpleScan");
-
load ();
+
+ autosave_manager = AutosaveManager.create (ref book);
}
~UserInterface ()
@@ -316,13 +327,7 @@ public class UserInterface
private void on_file_type_changed (Gtk.TreeSelection selection)
{
- Gtk.TreeModel model;
- Gtk.TreeIter iter;
- if (!selection.get_selected (out model, out iter))
- return;
-
- string extension;
- model.get (iter, 1, out extension, -1);
+ var extension = get_selected_extension (selection);
var path = save_dialog.get_filename ();
var filename = Path.get_basename (path);
@@ -334,6 +339,17 @@ public class UserInterface
save_dialog.set_current_name (filename);
}
+ private string get_selected_extension (Gtk.TreeSelection selection)
+ {
+ Gtk.TreeModel model;
+ Gtk.TreeIter iter;
+ string extension = "";
+
+ if (selection.get_selected (out model, out iter))
+ model.get (iter, 1, out extension, -1);
+ return extension;
+ }
+
private string choose_file_location ()
{
/* Get directory to save to */
@@ -373,10 +389,10 @@ public class UserInterface
expander.set_spacing (5);
save_dialog.set_extra_widget (expander);
- string extension = "";
+ string default_extension = "";
var index = default_file_name.last_index_of_char ('.');
if (index >= 0)
- extension = default_file_name.slice (0, index);
+ default_extension = default_file_name.substring (index);
var file_type_store = new Gtk.ListStore (2, typeof (string), typeof (string));
Gtk.TreeIter iter;
@@ -414,7 +430,7 @@ public class UserInterface
{
string e;
file_type_store.get (iter, 1, out e, -1);
- if (extension == e)
+ if (default_extension == e)
file_type_view.get_selection ().select_iter (iter);
} while (file_type_store.iter_next (ref iter));
}
@@ -426,7 +442,19 @@ public class UserInterface
string? uri = null;
if (response == Gtk.ResponseType.ACCEPT)
- uri = save_dialog.get_uri ();
+ {
+ var selection = file_type_view.get_selection ();
+ var extension = get_selected_extension (selection);
+
+ var path = save_dialog.get_filename ();
+ var filename = Path.get_basename (path);
+
+ var extension_index = filename.last_index_of_char ('.');
+ if (extension_index < 0)
+ path += extension;
+
+ uri = File.new_for_path (path).get_uri ();
+ }
settings.set_string ("save-directory", save_dialog.get_current_folder ());
@@ -465,7 +493,7 @@ public class UserInterface
show_progress_dialog ();
try
{
- book.save (format, file);
+ book.save (format, get_quality (), file);
}
catch (Error e)
{
@@ -525,6 +553,7 @@ public class UserInterface
book_uri = null;
book.set_needs_saving (false);
save_as_menuitem.set_sensitive (false);
+ copy_to_clipboard_menuitem.set_sensitive (false);
}
[CCode (cname = "G_MODULE_EXPORT new_button_clicked_cb", instance_pos = -1)]
@@ -610,6 +639,21 @@ public class UserInterface
if (have_iter)
paper_size_combo.set_active_iter (iter);
}
+
+ private void set_brightness (int brightness)
+ {
+ brightness_adjustment.set_value (brightness);
+ }
+
+ private void set_contrast (int contrast)
+ {
+ contrast_adjustment.set_value (contrast);
+ }
+
+ private void set_quality (int quality)
+ {
+ quality_adjustment.set_value (quality);
+ }
private int get_text_dpi ()
{
@@ -658,6 +702,21 @@ public class UserInterface
return false;
}
+ private int get_brightness ()
+ {
+ return (int) brightness_adjustment.get_value ();
+ }
+
+ private int get_contrast ()
+ {
+ return (int) contrast_adjustment.get_value ();
+ }
+
+ private int get_quality ()
+ {
+ return (int) quality_adjustment.get_value ();
+ }
+
private ScanOptions get_scan_options ()
{
var options = new ScanOptions ();
@@ -674,6 +733,8 @@ public class UserInterface
options.depth = 8;
}
get_paper_size (out options.paper_width, out options.paper_height);
+ options.brightness = get_brightness ();
+ options.contrast = get_contrast ();
return options;
}
@@ -791,7 +852,7 @@ public class UserInterface
try
{
- page.save ("tiff", file);
+ page.save ("tiff", get_quality (), file);
}
catch (Error e)
{
@@ -981,6 +1042,14 @@ public class UserInterface
save_document (false);
}
+ [CCode (cname = "G_MODULE_EXPORT copy_to_clipboard_button_clicked_cb", instance_pos = -1)]
+ public void copy_to_clipboard_button_clicked_cb (Gtk.Widget widget)
+ {
+ var page = book_view.get_selected ();
+ if (page != null)
+ page.copy_to_clipboard (window);
+ }
+
[CCode (cname = "G_MODULE_EXPORT save_as_file_button_clicked_cb", instance_pos = -1)]
public void save_as_file_button_clicked_cb (Gtk.Widget widget)
{
@@ -1015,7 +1084,7 @@ public class UserInterface
[CCode (cname = "G_MODULE_EXPORT email_button_clicked_cb", instance_pos = -1)]
public void email_button_clicked_cb (Gtk.Widget widget)
{
- email (document_hint);
+ email (document_hint, get_quality ());
}
[CCode (cname = "G_MODULE_EXPORT print_button_clicked_cb", instance_pos = -1)]
@@ -1069,7 +1138,7 @@ public class UserInterface
Gtk.show_about_dialog (window,
"title", title,
"program-name", "Simple Scan",
- "version", Config.VERSION,
+ "version", VERSION,
"comments", description,
"logo-icon-name", "scanner",
"authors", authors,
@@ -1101,6 +1170,9 @@ public class UserInterface
settings.set_enum ("page-side", get_page_side ());
settings.set_int ("paper-width", paper_width);
settings.set_int ("paper-height", paper_height);
+ settings.set_int ("brightness", get_brightness ());
+ settings.set_int ("contrast", get_contrast ());
+ settings.set_int ("jpeg-quality", get_quality ());
settings.set_int ("window-width", window_width);
settings.set_int ("window-height", window_height);
settings.set_boolean ("window-is-maximized", window_is_maximized);
@@ -1111,6 +1183,9 @@ public class UserInterface
window.destroy ();
+ if (autosave_manager != null)
+ autosave_manager.cleanup ();
+
return true;
}
@@ -1237,23 +1312,23 @@ public class UserInterface
save_toolbutton.set_sensitive (book.get_needs_saving ());
if (book.get_needs_saving ())
save_as_menuitem.set_sensitive (true);
+ copy_to_clipboard_menuitem.set_sensitive (true);
}
private void load ()
{
- Gtk.IconTheme.get_default ().append_search_path (Config.ICON_DIR);
+ Gtk.IconTheme.get_default ().append_search_path (ICON_DIR);
Gtk.Window.set_default_icon_name ("scanner");
builder = new Gtk.Builder ();
- var filename = Path.build_filename (Config.UI_DIR, "simple-scan.ui", null);
try
{
- builder.add_from_file (filename);
+ builder.add_from_resource ("/org/gnome/SimpleScan/simple-scan.ui");
}
catch (Error e)
{
- critical ("Unable to load UI %s: %s\n", filename, e.message);
+ critical ("Unable to load UI: %s\n", e.message);
show_error_dialog (/* Title of dialog when cannot load required files */
_("Files missing"),
/* Description in dialog when cannot load required files */
@@ -1272,6 +1347,7 @@ public class UserInterface
crop_rotate_menuitem = (Gtk.MenuItem) builder.get_object ("crop_rotate_menuitem");
save_menuitem = (Gtk.MenuItem) builder.get_object ("save_menuitem");
save_as_menuitem = (Gtk.MenuItem) builder.get_object ("save_as_menuitem");
+ copy_to_clipboard_menuitem = (Gtk.MenuItem) builder.get_object ("copy_to_clipboard_menuitem");
save_toolbutton = (Gtk.ToolButton) builder.get_object ("save_toolbutton");
stop_menuitem = (Gtk.MenuItem) builder.get_object ("stop_scan_menuitem");
stop_toolbutton = (Gtk.ToolButton) builder.get_object ("stop_toolbutton");
@@ -1297,6 +1373,12 @@ public class UserInterface
page_side_model = (Gtk.ListStore) page_side_combo.get_model ();
paper_size_combo = (Gtk.ComboBox) builder.get_object ("paper_size_combo");
paper_size_model = (Gtk.ListStore) paper_size_combo.get_model ();
+ brightness_scale = (Gtk.Scale) builder.get_object ("brightness_scale");
+ brightness_adjustment = (Gtk.Adjustment) brightness_scale.get_adjustment ();
+ contrast_scale = (Gtk.Scale) builder.get_object ("contrast_scale");
+ contrast_adjustment = (Gtk.Adjustment) contrast_scale.get_adjustment ();
+ quality_scale = (Gtk.Scale) builder.get_object ("quality_scale");
+ quality_adjustment = (Gtk.Adjustment) quality_scale.get_adjustment ();
/* Add InfoBar (not supported in Glade) */
info_bar = new Gtk.InfoBar ();
@@ -1363,6 +1445,33 @@ public class UserInterface
var paper_height = settings.get_int ("paper-height");
set_paper_size (paper_width, paper_height);
+ var lower = brightness_adjustment.get_lower ();
+ var darker_label = "<small>%s</small>".printf (_("Darker"));
+ var upper = brightness_adjustment.get_upper ();
+ var lighter_label = "<small>%s</small>".printf (_("Lighter"));
+ brightness_scale.add_mark (lower, Gtk.PositionType.BOTTOM, darker_label);
+ brightness_scale.add_mark (0, Gtk.PositionType.BOTTOM, null);
+ brightness_scale.add_mark (upper, Gtk.PositionType.BOTTOM, lighter_label);
+ set_brightness (settings.get_int ("brightness"));
+
+ lower = contrast_adjustment.get_lower ();
+ var less_label = "<small>%s</small>".printf (_("Less"));
+ upper = contrast_adjustment.get_upper ();
+ var more_label = "<small>%s</small>".printf (_("More"));
+ contrast_scale.add_mark (lower, Gtk.PositionType.BOTTOM, less_label);
+ contrast_scale.add_mark (0, Gtk.PositionType.BOTTOM, null);
+ contrast_scale.add_mark (upper, Gtk.PositionType.BOTTOM, more_label);
+ set_contrast (settings.get_int ("contrast"));
+
+ lower = quality_adjustment.get_lower ();
+ var minimum_label = "<small>%s</small>".printf (_("Minimum"));
+ upper = quality_adjustment.get_upper ();
+ var maximum_label = "<small>%s</small>".printf (_("Maximum"));
+ quality_scale.add_mark (lower, Gtk.PositionType.BOTTOM, minimum_label);
+ quality_scale.add_mark (75, Gtk.PositionType.BOTTOM, null);
+ quality_scale.add_mark (upper, Gtk.PositionType.BOTTOM, maximum_label);
+ set_quality (settings.get_int ("jpeg-quality"));
+
var device = settings.get_string ("selected-device");
if (device != null)
{