summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2017-03-22 21:40:05 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2017-03-22 21:40:05 +0100
commit6f674ee5c209ae295a32211c9c86807aa06999a5 (patch)
treeaf4a4f76fb523b23cd8fa4be9b647591bc416a69
parent943557488f31808efe6bf7018801eee02614a88e (diff)
New upstream version 3.24.0upstream/3.24.0
-rw-r--r--NEWS8
-rwxr-xr-xconfigure47
-rw-r--r--configure.ac2
-rw-r--r--help/Makefile.am2
-rw-r--r--help/Makefile.in2
-rw-r--r--help/ia/adf.page51
-rw-r--r--help/ia/brightness-contrast.page14
-rw-r--r--help/ia/crop.page44
-rw-r--r--help/ia/dpi.page56
-rw-r--r--help/ia/email.page23
-rw-r--r--help/ia/ia.po731
-rw-r--r--help/ia/ia.stamp0
-rw-r--r--help/ia/index.page33
-rw-r--r--help/ia/legal.xml9
-rw-r--r--help/ia/print.page29
-rw-r--r--help/ia/quality.page16
-rw-r--r--help/ia/reorder.page20
-rw-r--r--help/ia/rotate.page56
-rw-r--r--help/ia/save.page69
-rw-r--r--help/ia/scanner.page19
-rw-r--r--help/ia/scanning.page32
-rw-r--r--help/ku/adf.page51
-rw-r--r--help/ku/brightness-contrast.page14
-rw-r--r--help/ku/crop.page44
-rw-r--r--help/ku/dpi.page56
-rw-r--r--help/ku/email.page23
-rw-r--r--help/ku/index.page33
-rw-r--r--help/ku/ku.po731
-rw-r--r--help/ku/ku.stamp0
-rw-r--r--help/ku/legal.xml9
-rw-r--r--help/ku/print.page29
-rw-r--r--help/ku/quality.page16
-rw-r--r--help/ku/reorder.page20
-rw-r--r--help/ku/rotate.page56
-rw-r--r--help/ku/save.page69
-rw-r--r--help/ku/scanner.page19
-rw-r--r--help/ku/scanning.page34
-rw-r--r--m4/appstream-xml.m42
-rw-r--r--m4/gettext.m431
-rw-r--r--m4/iconv.m42
-rw-r--r--m4/intlmacosx.m42
-rw-r--r--m4/lib-ld.m42
-rw-r--r--m4/lib-link.m42
-rw-r--r--m4/lib-prefix.m42
-rw-r--r--m4/nls.m44
-rw-r--r--m4/po.m42
-rw-r--r--m4/progtest.m42
-rw-r--r--po/LINGUAS1
-rw-r--r--po/ku.gmobin0 -> 2645 bytes
-rw-r--r--po/ku.po727
-rw-r--r--src/autosave-manager.c254
-rw-r--r--src/book-view.c2
-rw-r--r--src/book.c2
-rw-r--r--src/page-view.c2
-rw-r--r--src/page.c68
-rw-r--r--src/scanner.c22
-rw-r--r--src/simple-scan.c268
-rw-r--r--src/ui.c1112
58 files changed, 4080 insertions, 896 deletions
diff --git a/NEWS b/NEWS
index cd66248..0811aef 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,11 @@
+Overview of changes in simple-scan 3.24.0
+
+ * No change version bump
+
+Overview of changes in simple-scan 3.23.92
+
+ * Updated translations
+
Overview of changes in simple-scan 3.23.90
* Updated translations
diff --git a/configure b/configure
index 186a6ed..3c62d90 100755
--- a/configure
+++ b/configure
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for simple-scan 3.23.90.
+# Generated by GNU Autoconf 2.69 for simple-scan 3.24.0.
#
#
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
@@ -637,8 +637,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='simple-scan'
PACKAGE_TARNAME='simple-scan'
-PACKAGE_VERSION='3.23.90'
-PACKAGE_STRING='simple-scan 3.23.90'
+PACKAGE_VERSION='3.24.0'
+PACKAGE_STRING='simple-scan 3.24.0'
PACKAGE_BUGREPORT=''
PACKAGE_URL=''
@@ -1415,7 +1415,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures simple-scan 3.23.90 to adapt to many kinds of systems.
+\`configure' configures simple-scan 3.24.0 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1486,7 +1486,7 @@ fi
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of simple-scan 3.23.90:";;
+ short | recursive ) echo "Configuration of simple-scan 3.24.0:";;
esac
cat <<\_ACEOF
@@ -1617,7 +1617,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-simple-scan configure 3.23.90
+simple-scan configure 3.24.0
generated by GNU Autoconf 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
@@ -1915,7 +1915,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by simple-scan $as_me 3.23.90, which was
+It was created by simple-scan $as_me 3.24.0, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ $0 $@
@@ -2779,7 +2779,7 @@ fi
# Define the identity of the package.
PACKAGE='simple-scan'
- VERSION='3.23.90'
+ VERSION='3.24.0'
cat >>confdefs.h <<_ACEOF
@@ -6855,16 +6855,21 @@ else
/* end confdefs.h. */
#include <libintl.h>
-$gt_revision_test_code
+#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
extern int _nl_msg_cat_cntr;
extern int *_nl_domain_bindings;
+#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
+#else
+#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
+#endif
+$gt_revision_test_code
int
main ()
{
bindtextdomain ("", "");
-return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
+return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
;
return 0;
@@ -7617,20 +7622,25 @@ else
/* end confdefs.h. */
#include <libintl.h>
-$gt_revision_test_code
+#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
extern int _nl_msg_cat_cntr;
extern
#ifdef __cplusplus
"C"
#endif
const char *_nl_expand_alias (const char *);
+#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
+#else
+#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
+#endif
+$gt_revision_test_code
int
main ()
{
bindtextdomain ("", "");
-return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
+return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
;
return 0;
@@ -7649,20 +7659,25 @@ rm -f core conftest.err conftest.$ac_objext \
/* end confdefs.h. */
#include <libintl.h>
-$gt_revision_test_code
+#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
extern int _nl_msg_cat_cntr;
extern
#ifdef __cplusplus
"C"
#endif
const char *_nl_expand_alias (const char *);
+#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
+#else
+#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
+#endif
+$gt_revision_test_code
int
main ()
{
bindtextdomain ("", "");
-return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
+return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
;
return 0;
@@ -8374,7 +8389,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by simple-scan $as_me 3.23.90, which was
+This file was extended by simple-scan $as_me 3.24.0, which was
generated by GNU Autoconf 2.69. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -8431,7 +8446,7 @@ _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
-simple-scan config.status 3.23.90
+simple-scan config.status 3.24.0
configured by $0, generated by GNU Autoconf 2.69,
with options \\"\$ac_cs_config\\"
diff --git a/configure.ac b/configure.ac
index 63591f5..e2b9d94 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,6 +1,6 @@
dnl Process this file with autoconf to produce a configure script.
-AC_INIT(simple-scan, 3.23.90)
+AC_INIT(simple-scan, 3.24.0)
AM_INIT_AUTOMAKE([1.11 no-dist-gzip dist-xz foreign])
AM_SILENT_RULES([yes])
AM_MAINTAINER_MODE
diff --git a/help/Makefile.am b/help/Makefile.am
index ff23a12..002fe95 100644
--- a/help/Makefile.am
+++ b/help/Makefile.am
@@ -23,4 +23,4 @@ HELP_FILES = index.page \
scanner.page \
scanning.page
-HELP_LINGUAS = ar bg cs de en_GB es eu fi fr hr hu it ja nb nl pl pt_BR ru sk sl sr uk zh_TW
+HELP_LINGUAS = ar bg cs de en_GB es eu fi fr hr hu ia it ja ku nb nl pl pt_BR ru sk sl sr uk zh_TW
diff --git a/help/Makefile.in b/help/Makefile.in
index 226bc25..4b6567f 100644
--- a/help/Makefile.in
+++ b/help/Makefile.in
@@ -285,7 +285,7 @@ HELP_FILES = index.page \
scanner.page \
scanning.page
-HELP_LINGUAS = ar bg cs de en_GB es eu fi fr hr hu it ja nb nl pl pt_BR ru sk sl sr uk zh_TW
+HELP_LINGUAS = ar bg cs de en_GB es eu fi fr hr hu ia it ja ku nb nl pl pt_BR ru sk sl sr uk zh_TW
all: all-am
.SUFFIXES:
diff --git a/help/ia/adf.page b/help/ia/adf.page
new file mode 100644
index 0000000..ed768f4
--- /dev/null
+++ b/help/ia/adf.page
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="utf-8"?>
+<page xmlns="http://projectmallard.org/1.0/" type="guide" id="adf" xml:lang="ia">
+
+ <info>
+ <link type="guide" xref="index#acquire"/>
+ </info>
+
+ <title>Using an Automatic Document Feeder</title>
+
+ <p>
+ If your scanner features an Automatic Document Feeder (ADF)
+ you can scan all the pages from the feeder via one of following methods:
+ </p>
+ <steps>
+ <title/>
+ <title>Usar un via breve de claviero</title>
+ <item>
+ <p>Pulsa <keyseq><key>Ctrl</key><key>F</key></keyseq></p>
+ </item>
+ </steps>
+
+ <steps>
+ <title>Usar un Menu</title>
+ <item>
+ <p>Navigate to <guiseq><gui>Document</gui>
+ <gui>Scan</gui><gui>All Pages From Feeder</gui></guiseq>.
+ </p>
+ </item>
+ </steps>
+
+ <steps>
+ <title>Use the Toolbar Buttons</title>
+ <item>
+ <p>Click on the arrow to the right of the "Scan" button.</p>
+ </item>
+ <item>
+ <p>Choose "All Pages From Feeder".</p>
+ <media type="image" src="figures/scan_toolbar.png"/>
+ </item>
+ </steps>
+
+
+ <note style="tip">
+ <p>
+ By default, both sides of a sheet will scan if your scanner has this capability.
+ You can choose single side scanning from the <guiseq><gui>Document</gui><gui>Preferences</gui></guiseq> menu.
+ </p>
+ <media type="image" src="figures/preferences.png"/>
+ </note>
+
+</page>
diff --git a/help/ia/brightness-contrast.page b/help/ia/brightness-contrast.page
new file mode 100644
index 0000000..6b26d0e
--- /dev/null
+++ b/help/ia/brightness-contrast.page
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="utf-8"?>
+<page xmlns="http://projectmallard.org/1.0/" type="guide" id="brightness-contrast" xml:lang="ia">
+
+ <info>
+ <link type="guide" xref="index#acquire"/>
+ </info>
+
+ <title>Setting brightness and Contrast</title>
+
+ <p>
+ Some scanners allow the user to adjust the brightness and contrast when scanning.
+ If your scans come out too dark or too light you can adjust these settings from the <guiseq><gui>Document</gui><gui>Preferences</gui></guiseq> menu.
+ </p>
+</page>
diff --git a/help/ia/crop.page b/help/ia/crop.page
new file mode 100644
index 0000000..0bb213a
--- /dev/null
+++ b/help/ia/crop.page
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="utf-8"?>
+<page xmlns="http://projectmallard.org/1.0/" type="guide" id="crop" xml:lang="ia">
+
+ <info>
+ <link type="guide" xref="index#modify"/>
+ </info>
+
+ <title>Cropping</title>
+
+ <p>
+ The cropping feature in <app>Simple Scan</app> allows you to use only a part of a scanned image. You can
+ enable crop either before or after scanning a page, and you can always change the dimensions of the crop
+ frame. When crop is enabled, a mask will apper over the current page with the area not being used shown
+ in gray. You can enable crop and choose the desired dimensions via one of the following methods:
+ </p>
+
+ <steps>
+ <title>Usar un clic dextere</title>
+ <item><p>Right click anywhere on the image area and select "Crop".</p></item>
+ <item><p>Choose one of the fixed crop frames, or select "Custom" to manually
+ set the crop frame's dimensions by dragging its borders.</p></item>
+ <item><p>Click and hold the frame, then move it to the desired position.</p></item>
+ </steps>
+
+ <steps>
+ <title>Usar un Menu</title>
+ <item><p>Navigate to the <guiseq><gui>Page</gui><gui>Crop</gui></guiseq> menu.</p></item>
+ <item><p>Choose one of the fixed crop frames, or select "Custom" to manually adjust the frame's dimensions by dragging its borders.</p></item>
+ <item><p>Click and hold the frame, then move it to the desired position.</p></item>
+ </steps>
+
+ <steps>
+ <title>Usar le barra de instrumentos</title>
+ <item><p>Click the "<gui>Crop</gui>" button in the toolbar.</p>
+ <note style="tip"><p>This is the same as choosing "Custom" in step 2 of the
+ aforementioned methods.</p></note></item>
+ <item><p>Drag the borders of the frame to set the desired dimensions and position.</p></item>
+
+ </steps>
+
+ <note><p>
+ Each new scanned page will use the previous crop.
+ </p></note>
+</page>
diff --git a/help/ia/dpi.page b/help/ia/dpi.page
new file mode 100644
index 0000000..c233717
--- /dev/null
+++ b/help/ia/dpi.page
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="utf-8"?>
+<page xmlns="http://projectmallard.org/1.0/" type="guide" id="dpi" xml:lang="ia">
+
+ <info>
+ <link type="guide" xref="index#acquire"/>
+ </info>
+
+ <title>Setting the Scan Resolution</title>
+
+ <p>
+ The default resolution for document type <gui><em>Text</em></gui> is 150 dpi (dots per inch)
+ and for document type <gui><em>Photo</em></gui> is 300 dpi. You can change these settings
+ from the <guiseq><gui>Document</gui><gui>Preferences</gui></guiseq> menu.
+ </p>
+ <media type="image" src="figures/preferences.png"/>
+
+ <p>The available scanning resolutions for both document types (Text and Photo) are the same
+ and are listed in the following table:</p>
+
+ <table frame="bottom left right" rules="rows cols" shade="rows">
+ <tr>
+ <td><p><em>Text Resolution</em></p></td>
+ <td><p><em>Photo Resolution</em></p></td>
+ </tr>
+ <tr>
+ <td><p>75 dpi (draft)</p></td>
+ <td><p>75 dpi (draft)</p></td>
+ </tr>
+ <tr>
+ <td><p>150 dpi (default)</p></td>
+ <td><p>150 dpi</p></td>
+ </tr>
+ <tr>
+ <td><p>300 dpi</p></td>
+ <td><p>300 dpi (tacite)</p></td>
+ </tr>
+ <tr>
+ <td><p>600 dpi</p></td>
+ <td><p>600 dpi</p></td>
+ </tr>
+ <tr>
+ <td><p>1200 dpi (alte resolution)</p></td>
+ <td><p>1200 dpi (alte resolution)</p></td>
+ </tr>
+ <tr>
+ <td><p>2400 dpi</p></td>
+ <td><p>2400 dpi</p></td>
+ </tr>
+ </table>
+
+ <note style="important"><p><gui><em>Text</em></gui> documents are always scanned in black
+ and white, while <gui><em>Photo</em></gui> documents are always scanned in color, at any
+ resolution!</p>
+ </note>
+
+</page>
diff --git a/help/ia/email.page b/help/ia/email.page
new file mode 100644
index 0000000..abacc7e
--- /dev/null
+++ b/help/ia/email.page
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<page xmlns="http://projectmallard.org/1.0/" type="guide" id="email" xml:lang="ia">
+
+ <info>
+ <link type="guide" xref="index#use"/>
+ </info>
+
+ <title>Invio per Email</title>
+
+ <p>
+ To email the current document use the <guiseq><gui>Document</gui><gui>Email</gui></guiseq>
+ menu (<keyseq><key>Ctrl</key><key>E</key></keyseq>). Your email program will be opened with
+ a new message containing the scanned document as an attachment.
+ </p>
+ <p>
+ If the document type was set to "Text" the email will have a PDF attachment for each page.
+ Conversely, if the document type was set to "Photo", the email will have a JPEG
+ attachment for each page.
+ </p>
+ <p>
+ See <link xref="save"/> for more information about file formats.
+ </p>
+</page>
diff --git a/help/ia/ia.po b/help/ia/ia.po
new file mode 100644
index 0000000..355f0c2
--- /dev/null
+++ b/help/ia/ia.po
@@ -0,0 +1,731 @@
+# Interlingua translation for simple-scan
+# Copyright (c) 2017 Rosetta Contributors and Canonical Ltd 2017
+# This file is distributed under the same license as the simple-scan package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, 2017.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: simple-scan\n"
+"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
+"POT-Creation-Date: 2016-04-25 14:55+0200\n"
+"PO-Revision-Date: 2017-02-18 14:12+0000\n"
+"Last-Translator: karm <melo@carmu.com>\n"
+"Language-Team: Interlingua <ia@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Launchpad-Export-Date: 2017-02-19 05:29+0000\n"
+"X-Generator: Launchpad (build 18326)\n"
+
+#. Put one translator per line, in the form NAME <EMAIL>, YEAR1, YEAR2
+msgctxt "_"
+msgid "translator-credits"
+msgstr ""
+"Launchpad Contributions:\n"
+" karm https://launchpad.net/~melo-o"
+
+#. (itstool) path: credit/name
+#: C/index.page:7
+msgid "Robert Ancell"
+msgstr "Robert Ancell"
+
+#. (itstool) path: credit/name
+#: C/index.page:11
+msgid "Ali Shtarbanov"
+msgstr "Ali Shtarbanov"
+
+#. (itstool) path: title/media
+#. This is a reference to an external file such as an image or video. When
+#. the file changes, the md5 hash will change to let you know you need to
+#. update your localized copy. The msgstr is not used at all. Set it to
+#. whatever you like once you have updated your copy of the file.
+#: C/index.page:17
+msgctxt "_"
+msgid ""
+"external ref='figures/icon.png' md5='80a7318cc454eb11315abd88f11fb7f4'"
+msgstr ""
+
+#. (itstool) path: page/title
+#: C/index.page:17
+msgid "<media type=\"image\" src=\"figures/icon.png\"/> Simple Scan Manual"
+msgstr ""
+
+#. (itstool) path: section/title
+#: C/index.page:20
+msgid "Scanning Pages"
+msgstr "Scansion de paginas"
+
+#. (itstool) path: section/title
+#: C/index.page:24
+msgid "Modifying the Document"
+msgstr "Modification del documento"
+
+#. (itstool) path: section/title
+#: C/index.page:28
+msgid "Using the Document"
+msgstr "Uso del documento"
+
+#. (itstool) path: section/title
+#: C/index.page:32
+msgid "Simple Scan Shortcuts"
+msgstr "Vias breve de Simple Scan"
+
+#. (itstool) path: page/title
+#: C/adf.page:9
+msgid "Using an Automatic Document Feeder"
+msgstr ""
+
+#. (itstool) path: page/p
+#: C/adf.page:11
+msgid ""
+"If your scanner features an Automatic Document Feeder (ADF) you can scan all "
+"the pages from the feeder via one of following methods:"
+msgstr ""
+
+#. (itstool) path: steps/title
+#: C/adf.page:17
+msgid "Use a Keyboard Shortcut"
+msgstr "Usar un via breve de claviero"
+
+#. (itstool) path: item/p
+#: C/adf.page:19
+msgid "Press <keyseq><key>Ctrl</key><key>F</key></keyseq>"
+msgstr "Pulsa <keyseq><key>Ctrl</key><key>F</key></keyseq>"
+
+#. (itstool) path: steps/title
+#: C/adf.page:24
+#: C/crop.page:27
+#: C/rotate.page:28
+msgid "Use a Menu"
+msgstr "Usar un Menu"
+
+#. (itstool) path: item/p
+#: C/adf.page:26
+msgid ""
+"Navigate to <guiseq><gui>Document</gui> <gui>Scan</gui><gui>All Pages From "
+"Feeder</gui></guiseq>."
+msgstr ""
+
+#. (itstool) path: steps/title
+#: C/adf.page:33
+msgid "Use the Toolbar Buttons"
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/adf.page:35
+msgid "Click on the arrow to the right of the \"Scan\" button."
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/adf.page:38
+msgid "Choose \"All Pages From Feeder\"."
+msgstr ""
+
+#. (itstool) path: item/media
+#. This is a reference to an external file such as an image or video. When
+#. the file changes, the md5 hash will change to let you know you need to
+#. update your localized copy. The msgstr is not used at all. Set it to
+#. whatever you like once you have updated your copy of the file.
+#: C/adf.page:39
+#: C/scanning.page:20
+msgctxt "_"
+msgid ""
+"external ref='figures/scan_toolbar.png' "
+"md5='5d23aff1cb84b5ffe6bf66c39226cb1f'"
+msgstr ""
+
+#. (itstool) path: note/p
+#: C/adf.page:45
+msgid ""
+"By default, both sides of a sheet will scan if your scanner has this "
+"capability. You can choose single side scanning from the "
+"<guiseq><gui>Document</gui><gui>Preferences</gui></guiseq> menu."
+msgstr ""
+
+#. (itstool) path: note/media
+#. (itstool) path: page/media
+#. This is a reference to an external file such as an image or video. When
+#. the file changes, the md5 hash will change to let you know you need to
+#. update your localized copy. The msgstr is not used at all. Set it to
+#. whatever you like once you have updated your copy of the file.
+#: C/adf.page:49
+#: C/dpi.page:16
+#: C/scanner.page:14
+msgctxt "_"
+msgid ""
+"external ref='figures/preferences.png' md5='b9f6350ad552c954e8538596c7b42ac5'"
+msgstr ""
+
+#. (itstool) path: page/title
+#: C/brightness-contrast.page:9
+msgid "Setting brightness and Contrast"
+msgstr ""
+
+#. (itstool) path: page/p
+#: C/brightness-contrast.page:11
+msgid ""
+"Some scanners allow the user to adjust the brightness and contrast when "
+"scanning. If your scans come out too dark or too light you can adjust these "
+"settings from the <guiseq><gui>Document</gui><gui>Preferences</gui></guiseq> "
+"menu."
+msgstr ""
+
+#. (itstool) path: page/title
+#: C/crop.page:9
+msgid "Cropping"
+msgstr ""
+
+#. (itstool) path: page/p
+#: C/crop.page:11
+msgid ""
+"The cropping feature in <app>Simple Scan</app> allows you to use only a part "
+"of a scanned image. You can enable crop either before or after scanning a "
+"page, and you can always change the dimensions of the crop frame. When crop "
+"is enabled, a mask will apper over the current page with the area not being "
+"used shown in gray. You can enable crop and choose the desired dimensions "
+"via one of the following methods:"
+msgstr ""
+
+#. (itstool) path: steps/title
+#: C/crop.page:19
+msgid "Use a Right Click"
+msgstr "Usar un clic dextere"
+
+#. (itstool) path: item/p
+#: C/crop.page:20
+msgid "Right click anywhere on the image area and select \"Crop\"."
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/crop.page:21
+msgid ""
+"Choose one of the fixed crop frames, or select \"Custom\" to manually set "
+"the crop frame's dimensions by dragging its borders."
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/crop.page:23
+#: C/crop.page:30
+msgid "Click and hold the frame, then move it to the desired position."
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/crop.page:28
+msgid "Navigate to the <guiseq><gui>Page</gui><gui>Crop</gui></guiseq> menu."
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/crop.page:29
+msgid ""
+"Choose one of the fixed crop frames, or select \"Custom\" to manually adjust "
+"the frame's dimensions by dragging its borders."
+msgstr ""
+
+#. (itstool) path: steps/title
+#: C/crop.page:34
+msgid "Use the Toolbar"
+msgstr "Usar le barra de instrumentos"
+
+#. (itstool) path: item/p
+#: C/crop.page:35
+msgid "Click the \"<gui>Crop</gui>\" button in the toolbar."
+msgstr ""
+
+#. (itstool) path: note/p
+#: C/crop.page:36
+msgid ""
+"This is the same as choosing \"Custom\" in step 2 of the aforementioned "
+"methods."
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/crop.page:38
+msgid ""
+"Drag the borders of the frame to set the desired dimensions and position."
+msgstr ""
+
+#. (itstool) path: note/p
+#: C/crop.page:42
+msgid "Each new scanned page will use the previous crop."
+msgstr ""
+
+#. (itstool) path: page/title
+#: C/dpi.page:9
+msgid "Setting the Scan Resolution"
+msgstr ""
+
+#. (itstool) path: page/p
+#: C/dpi.page:11
+msgid ""
+"The default resolution for document type <gui><em>Text</em></gui> is 150 dpi "
+"(dots per inch) and for document type <gui><em>Photo</em></gui> is 300 dpi. "
+"You can change these settings from the "
+"<guiseq><gui>Document</gui><gui>Preferences</gui></guiseq> menu."
+msgstr ""
+
+#. (itstool) path: page/p
+#: C/dpi.page:18
+msgid ""
+"The available scanning resolutions for both document types (Text and Photo) "
+"are the same and are listed in the following table:"
+msgstr ""
+
+#. (itstool) path: td/p
+#: C/dpi.page:23
+msgid "<em>Text Resolution</em>"
+msgstr ""
+
+#. (itstool) path: td/p
+#: C/dpi.page:24
+msgid "<em>Photo Resolution</em>"
+msgstr ""
+
+#. (itstool) path: td/p
+#: C/dpi.page:27
+#: C/dpi.page:28
+msgid "75 dpi (draft)"
+msgstr ""
+
+#. (itstool) path: td/p
+#: C/dpi.page:31
+msgid "150 dpi (default)"
+msgstr ""
+
+#. (itstool) path: td/p
+#: C/dpi.page:32
+msgid "150 dpi"
+msgstr "150 dpi"
+
+#. (itstool) path: td/p
+#: C/dpi.page:35
+msgid "300 dpi"
+msgstr "300 dpi"
+
+#. (itstool) path: td/p
+#: C/dpi.page:36
+msgid "300 dpi (default)"
+msgstr "300 dpi (tacite)"
+
+#. (itstool) path: td/p
+#: C/dpi.page:39
+#: C/dpi.page:40
+msgid "600 dpi"
+msgstr "600 dpi"
+
+#. (itstool) path: td/p
+#: C/dpi.page:43
+#: C/dpi.page:44
+msgid "1200 dpi (high resolution)"
+msgstr "1200 dpi (alte resolution)"
+
+#. (itstool) path: td/p
+#: C/dpi.page:47
+#: C/dpi.page:48
+msgid "2400 dpi"
+msgstr "2400 dpi"
+
+#. (itstool) path: note/p
+#: C/dpi.page:52
+msgid ""
+"<gui><em>Text</em></gui> documents are always scanned in black and white, "
+"while <gui><em>Photo</em></gui> documents are always scanned in color, at "
+"any resolution!"
+msgstr ""
+
+#. (itstool) path: page/title
+#: C/email.page:9
+msgid "Sending via Email"
+msgstr "Invio per Email"
+
+#. (itstool) path: page/p
+#: C/email.page:11
+msgid ""
+"To email the current document use the "
+"<guiseq><gui>Document</gui><gui>Email</gui></guiseq> menu "
+"(<keyseq><key>Ctrl</key><key>E</key></keyseq>). Your email program will be "
+"opened with a new message containing the scanned document as an attachment."
+msgstr ""
+
+#. (itstool) path: page/p
+#: C/email.page:16
+msgid ""
+"If the document type was set to \"Text\" the email will have a PDF "
+"attachment for each page. Conversely, if the document type was set to "
+"\"Photo\", the email will have a JPEG attachment for each page."
+msgstr ""
+
+#. (itstool) path: page/p
+#: C/email.page:21
+msgid "See <link xref=\"save\"/> for more information about file formats."
+msgstr ""
+
+#. (itstool) path: p/link
+#: C/legal.xml:4
+msgid "Creative Commons Attribution-Share Alike 3.0 Unported License"
+msgstr ""
+
+#. (itstool) path: license/p
+#: C/legal.xml:3
+msgid "This work is licensed under a <_:link-1/>."
+msgstr ""
+
+#. (itstool) path: license/p
+#: C/legal.xml:6
+msgid ""
+"As a special exception, the copyright holders give you permission to copy, "
+"modify, and distribute the example code contained in this document under the "
+"terms of your choosing, without restriction."
+msgstr ""
+
+#. (itstool) path: page/title
+#: C/print.page:9
+msgid "Printing"
+msgstr "Stampa"
+
+#. (itstool) path: page/p
+#: C/print.page:11
+msgid ""
+"<app>Simple Scan</app> allows you print a scanned document directly from the "
+"its interface, without having to save the document first. This feature makes "
+"<app>Simple Scan</app> a very convenient tool for making copies of documents "
+"or photos."
+msgstr ""
+
+#. (itstool) path: steps/title
+#: C/print.page:17
+msgid "To Print a Document"
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/print.page:19
+msgid ""
+"Go to the <guiseq><gui>Document</gui><gui>Print</gui> </guiseq> menu or use "
+"the keyboard shortcut <keyseq><key>Ctrl</key><key>P</key></keyseq>. This "
+"will open the \"Print\" dialog box."
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/print.page:25
+msgid ""
+"From the \"Print\" dialog box choose your desired printing settings and/or "
+"Print Preview the document, then press the \"Print\" button."
+msgstr ""
+
+#. (itstool) path: page/title
+#: C/quality.page:9
+msgid "Setting the Image Quality"
+msgstr ""
+
+#. (itstool) path: page/p
+#: C/quality.page:11
+msgid ""
+"You can adjust the image quality that is used when the scan is converted to "
+"a file by changing this setting in the "
+"<guiseq><gui>Document</gui><gui>Preferences</gui></guiseq> menu. Using a low "
+"quality will result in a small file size but may show some blurring or "
+"blockiness in the image. A high quality will keep all the scanned "
+"information but require a larger file size. See the <link "
+"href=\"https://en.wikipedia.org/wiki/Lossy_compression\">Lossy compression "
+"Wikipedia page</link> for more information."
+msgstr ""
+
+#. (itstool) path: page/title
+#: C/reorder.page:9
+msgid "Reordering Pages"
+msgstr ""
+
+#. (itstool) path: page/p
+#: C/reorder.page:11
+msgid ""
+"To move a page, right click on it and choose <gui><em>Move Left</em></gui> "
+"or <gui><em>Move Right</em></gui>."
+msgstr ""
+
+#. (itstool) path: page/p
+#: C/reorder.page:16
+msgid ""
+"Alternatively, you can move a page by first selecting it and then choosing "
+"<gui><em>Move Left</em></gui> or <gui><em>Move Right</em></gui> from the "
+"\"Page\" menu."
+msgstr ""
+
+#. (itstool) path: page/title
+#: C/rotate.page:9
+msgid "Rotating a Page"
+msgstr "Rotar un pagina"
+
+#. (itstool) path: page/p
+#: C/rotate.page:11
+msgid ""
+"In <app>Simple Scan</app>, you can change the rotation of a page either "
+"before or after scanning the page. Currently, there are four ways to rotate "
+"a page:"
+msgstr ""
+
+#. (itstool) path: steps/title
+#: C/rotate.page:17
+msgid "Use Toolbar Buttons"
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/rotate.page:18
+#: C/rotate.page:29
+#: C/rotate.page:35
+msgid "Select the page you want to rotate by clicking on it once."
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/rotate.page:19
+msgid ""
+"Press one of the arrows on the toolbar to rotate the page in the desired "
+"direction."
+msgstr ""
+
+#. (itstool) path: steps/title
+#: C/rotate.page:22
+msgid "Use Right Click"
+msgstr "Usar le clic dextere"
+
+#. (itstool) path: item/p
+#: C/rotate.page:23
+msgid "Right click on the page you want to rotate."
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/rotate.page:24
+msgid "From the context menu choose \"Rotate Left\" or \"Rotate Right\"."
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/rotate.page:30
+msgid ""
+"Click the \"Page\" menu and select \"Rotate Left\" or \"Rotate Right\"."
+msgstr ""
+
+#. (itstool) path: steps/title
+#: C/rotate.page:34
+msgid "Use Shortcuts"
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/rotate.page:36
+msgid "Press one of the following shortcut keys:"
+msgstr ""
+
+#. (itstool) path: td/p
+#: C/rotate.page:39
+msgid "<em>Command</em>"
+msgstr ""
+
+#. (itstool) path: td/p
+#: C/rotate.page:40
+msgid "<em>Shortcut Key</em>"
+msgstr ""
+
+#. (itstool) path: td/p
+#: C/rotate.page:43
+msgid "Rotate Left"
+msgstr "Rotar a sinistra"
+
+#. (itstool) path: td/p
+#: C/rotate.page:44
+msgid "<key>[</key> (left bracket)"
+msgstr ""
+
+#. (itstool) path: td/p
+#: C/rotate.page:47
+msgid "Rotate Right"
+msgstr "Rotar a dextra"
+
+#. (itstool) path: td/p
+#: C/rotate.page:48
+msgid "<key>]</key> (right bracket)"
+msgstr ""
+
+#. (itstool) path: note/p
+#: C/rotate.page:54
+msgid "Each new scanned page will use the previous rotation."
+msgstr ""
+
+#. (itstool) path: page/title
+#: C/save.page:9
+msgid "Saving to a File"
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/save.page:13
+msgid ""
+"Navigate to the <guiseq><gui>Document</gui><gui>Save As</gui></guiseq> menu "
+"(or press <keyseq><key>Shift</key><key>Ctrl</key><key>S</key></keyseq>)."
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/save.page:18
+msgid ""
+"From the \"Save As\" dialog box, choose one of the supported file types, or "
+"simply change the extension in the \"Name\" field."
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/save.page:23
+msgid "Press the \"Save\" button."
+msgstr ""
+
+#. (itstool) path: table/title
+#: C/save.page:29
+msgid "Supported File Types"
+msgstr ""
+
+#. (itstool) path: td/p
+#: C/save.page:31
+msgid "<em>Type</em>"
+msgstr ""
+
+#. (itstool) path: td/p
+#: C/save.page:32
+msgid "<em>Brief Description</em>"
+msgstr "<em>Breve Description</em>"
+
+#. (itstool) path: td/p
+#: C/save.page:35
+msgid "PDF"
+msgstr "PDF"
+
+#. (itstool) path: td/p
+#: C/save.page:36
+msgid ""
+"A PDF can contain multiple pages, like a book, and is easy to distribute. "
+"Only a small number of linux programs can modify PDF documents, so this "
+"format is recommended primarily for archiving. The size of the PDF document "
+"is affected by the <link xref=\"quality\">image quality</link>. See the "
+"<link href=\"http://en.wikipedia.org/wiki/pdf\">PDF Wikipedia page</link> "
+"for more information."
+msgstr ""
+
+#. (itstool) path: td/p
+#: C/save.page:43
+msgid "JPEG"
+msgstr "JPEG"
+
+#. (itstool) path: td/p
+#: C/save.page:44
+msgid ""
+"JPEG is the file format used by digital cameras to save pictures. A JPEG "
+"file is relatively small, very easy to distribute, and suitable for "
+"uploading to social networking sites. Most operating systems come with a "
+"JPEG editor by default. If you have scanned multiple pages, a JPEG file will "
+"be created for each page. Use this file type if you want to modify or upload "
+"the scanned images. The size of the JPEG file is affected by the <link "
+"xref=\"quality\">image quality</link>. See the <link "
+"href=\"http://en.wikipedia.org/wiki/jpeg\">JPEG Wikipedia page</link> for "
+"more information."
+msgstr ""
+
+#. (itstool) path: td/p
+#: C/save.page:53
+msgid "PNG"
+msgstr "PNG"
+
+#. (itstool) path: td/p
+#: C/save.page:54
+msgid ""
+"PNG files contain the raw data from the scanner. This makes them very large "
+"and not suitable for distributing. If you have scanned multiple pages, a PNG "
+"file will be created for each page. See the <link "
+"href=\"http://en.wikipedia.org/wiki/Portable_Network_Graphics\">PNG "
+"Wikipedia page</link> for more information."
+msgstr ""
+
+#. (itstool) path: td/p
+#: C/save.page:61
+msgid "TIFF"
+msgstr "TIFF"
+
+#. (itstool) path: td/p
+#: C/save.page:62
+msgid ""
+"TIFF files contain the raw data from the scanner. This makes them very large "
+"and not suitable for distributing. If you have scanned multipe pages, a TIFF "
+"file will be created for each page. See the <link "
+"href=\"http://en.wikipedia.org/wiki/Tagged_Image_File_Format\">TIFF "
+"Wikipedia page</link> for more information."
+msgstr ""
+
+#. (itstool) path: page/title
+#: C/scanner.page:9
+msgid "Selecting a Scanner"
+msgstr "Eliger un scanditor"
+
+#. (itstool) path: page/p
+#: C/scanner.page:11
+msgid ""
+"If you have multiple scanning devices you can change the selected device "
+"from the <guiseq><gui>Document</gui><gui>Preferences</gui></guiseq> menu."
+msgstr ""
+
+#. (itstool) path: page/p
+#: C/scanner.page:15
+msgid ""
+"Your local scanners are automatically detected each time you start "
+"<app>Simple Scan</app> and each time you plug in a USB scanner. If you "
+"connect a network scanner while <app>Simple Scan</app> is running, you will "
+"need to restart <app>Simple Scan</app> for the scanner to be detected."
+msgstr ""
+
+#. (itstool) path: info/title
+#: C/scanning.page:6
+msgctxt "sort"
+msgid "0"
+msgstr "0"
+
+#. (itstool) path: page/title
+#: C/scanning.page:10
+msgid "Scanning a Page"
+msgstr "Scansion de un pagina"
+
+#. (itstool) path: page/p
+#: C/scanning.page:12
+msgid "To scan a document from your scanner:"
+msgstr "Scander un documento per tu scanditor:"
+
+#. (itstool) path: item/p
+#: C/scanning.page:16
+msgid "Connect the scanner to your computer and power it on."
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/scanning.page:17
+msgid "Open <app>Simple Scan</app>."
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/scanning.page:18
+msgid ""
+"Click the arrow to the right of the \"Scan\" button and choose the type of "
+"document you are scanning: <em>Photo</em> or <em>Text</em>."
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/scanning.page:21
+msgid ""
+"Click the \"Scan\" button on the toolbar (or press "
+"<keyseq><key>Ctrl</key><key>1</key></keyseq>)."
+msgstr ""
+
+#. (itstool) path: note/p
+#: C/scanning.page:24
+msgid ""
+"The page will be shown as it is scanned. To stop the scan at any time press "
+"the <key>Esc</key> key on the keyboard. Each page you scan is placed at the "
+"end of the document."
+msgstr ""
+
+#. (itstool) path: page/p
+#: C/scanning.page:29
+msgid ""
+"The document type can be also be changed from the "
+"<guiseq><gui>Document</gui> <gui>Scan</gui></guiseq> menu. Choose "
+"<gui><em>Text</em></gui> if you want the document to be quickly scanned in "
+"black and white; choose <gui><em>Photo</em></gui> for a high resolution "
+"color scan. See <link xref=\"dpi\"/> for more details and more options."
+msgstr ""
diff --git a/help/ia/ia.stamp b/help/ia/ia.stamp
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/help/ia/ia.stamp
diff --git a/help/ia/index.page b/help/ia/index.page
new file mode 100644
index 0000000..72442e3
--- /dev/null
+++ b/help/ia/index.page
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="utf-8"?>
+<page xmlns="http://projectmallard.org/1.0/" type="guide" id="index" xml:lang="ia">
+
+ <info>
+ <credit type="author">
+ <name>Robert Ancell</name>
+ <email>robert.ancell@gmail.com</email>
+ </credit>
+ <credit type="author">
+ <name>Ali Shtarbanov</name>
+ <email>ametedinov@gmail.com</email>
+ </credit>
+ <include xmlns="http://www.w3.org/2001/XInclude" href="legal.xml"/>
+ </info>
+
+ <title><media type="image" src="figures/icon.png"/> Simple Scan Manual</title>
+
+ <section id="acquire" style="2column">
+ <title>Scansion de paginas</title>
+ </section>
+
+ <section id="modify" style="2column">
+ <title>Modification del documento</title>
+ </section>
+
+ <section id="use" style="2column">
+ <title>Uso del documento</title>
+ </section>
+
+ <section id="shortcuts" style="2column">
+ <title>Vias breve de Simple Scan</title>
+ </section>
+</page>
diff --git a/help/ia/legal.xml b/help/ia/legal.xml
new file mode 100644
index 0000000..46a7e88
--- /dev/null
+++ b/help/ia/legal.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<license xmlns="http://projectmallard.org/1.0/" href="http://creativecommons.org/licenses/by-sa/3.0/">
+<p>This work is licensed under a
+<link href="http://creativecommons.org/licenses/by-sa/3.0/">Creative Commons
+Attribution-Share Alike 3.0 Unported License</link>.</p>
+<p>As a special exception, the copyright holders give you permission to copy,
+modify, and distribute the example code contained in this document under the
+terms of your choosing, without restriction.</p>
+</license>
diff --git a/help/ia/print.page b/help/ia/print.page
new file mode 100644
index 0000000..b09758b
--- /dev/null
+++ b/help/ia/print.page
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="utf-8"?>
+<page xmlns="http://projectmallard.org/1.0/" type="guide" id="print" xml:lang="ia">
+
+ <info>
+ <link type="guide" xref="index#use"/>
+ </info>
+
+ <title>Stampa</title>
+
+ <p>
+ <app>Simple Scan</app> allows you print a scanned document directly from the its
+ interface, without having to save the document first. This feature makes <app>Simple
+ Scan</app> a very convenient tool for making copies of documents or photos.
+ </p>
+ <steps>
+ <title>To Print a Document</title>
+ <item>
+ <p>Go to the <guiseq><gui>Document</gui><gui>Print</gui>
+ </guiseq> menu or use the keyboard shortcut <keyseq><key>Ctrl</key><key>P</key></keyseq>.
+ This will open the "Print" dialog box.
+ </p>
+ </item>
+ <item>
+ <p>From the "Print" dialog box choose your desired printing settings and/or Print Preview
+ the document, then press the "Print" button.
+ </p>
+ </item>
+ </steps>
+</page>
diff --git a/help/ia/quality.page b/help/ia/quality.page
new file mode 100644
index 0000000..7131774
--- /dev/null
+++ b/help/ia/quality.page
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8"?>
+<page xmlns="http://projectmallard.org/1.0/" type="guide" id="quality" xml:lang="ia">
+
+ <info>
+ <link type="guide" xref="index#use"/>
+ </info>
+
+ <title>Setting the Image Quality</title>
+
+ <p>
+ You can adjust the image quality that is used when the scan is converted to a file by changing this setting in the <guiseq><gui>Document</gui><gui>Preferences</gui></guiseq> menu.
+ Using a low quality will result in a small file size but may show some blurring or blockiness in the image.
+ A high quality will keep all the scanned information but require a larger file size.
+ See the <link href="https://en.wikipedia.org/wiki/Lossy_compression">Lossy compression Wikipedia page</link> for more information.
+ </p>
+</page>
diff --git a/help/ia/reorder.page b/help/ia/reorder.page
new file mode 100644
index 0000000..5aa50a9
--- /dev/null
+++ b/help/ia/reorder.page
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<page xmlns="http://projectmallard.org/1.0/" type="guide" id="reorder" xml:lang="ia">
+
+ <info>
+ <link type="guide" xref="index#modify"/>
+ </info>
+
+ <title>Reordering Pages</title>
+
+ <p>
+ To move a page, right click on it and choose <gui><em>Move Left</em></gui> or
+ <gui><em>Move Right</em></gui>.
+ </p>
+
+ <p>
+ Alternatively, you can move a page by first selecting it and then choosing
+ <gui><em>Move Left</em></gui> or <gui><em>Move Right</em></gui> from the "Page" menu.
+ </p>
+
+</page>
diff --git a/help/ia/rotate.page b/help/ia/rotate.page
new file mode 100644
index 0000000..2884dee
--- /dev/null
+++ b/help/ia/rotate.page
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="utf-8"?>
+<page xmlns="http://projectmallard.org/1.0/" type="guide" id="rotate" xml:lang="ia">
+
+ <info>
+ <link type="guide" xref="index#modify"/>
+ </info>
+
+ <title>Rotar un pagina</title>
+
+ <p>
+ In <app>Simple Scan</app>, you can change the rotation of a page either before or after scanning the page.
+ Currently, there are four ways to rotate a page:
+ </p>
+
+ <steps>
+ <title>Use Toolbar Buttons</title>
+ <item><p>Select the page you want to rotate by clicking on it once.</p></item>
+ <item><p>Press one of the arrows on the toolbar to rotate the page in the desired direction.</p></item>
+ </steps>
+ <steps>
+ <title>Usar le clic dextere</title>
+ <item><p>Right click on the page you want to rotate.</p></item>
+ <item><p>From the context menu choose "Rotate Left" or "Rotate Right".</p></item>
+ </steps>
+
+ <steps>
+ <title>Usar un Menu</title>
+ <item><p>Select the page you want to rotate by clicking on it once.</p></item>
+ <item><p>Click the "Page" menu and select "Rotate Left" or "Rotate Right".</p></item>
+ </steps>
+
+ <steps>
+ <title>Use Shortcuts</title>
+ <item><p>Select the page you want to rotate by clicking on it once.</p></item>
+ <item><p>Press one of the following shortcut keys:</p>
+ <table frame="bottom left right" rules="rows cols" shade="rows">
+ <tr>
+ <td><p><em>Command</em></p></td>
+ <td><p><em>Shortcut Key</em></p></td>
+ </tr>
+ <tr>
+ <td><p>Rotar a sinistra</p></td>
+ <td><p><key>[</key> (left bracket)</p></td>
+ </tr>
+ <tr>
+ <td><p>Rotar a dextra</p></td>
+ <td><p><key>]</key> (right bracket)</p></td>
+ </tr>
+ </table>
+ </item>
+ </steps>
+
+ <note><p>
+ Each new scanned page will use the previous rotation.
+ </p></note>
+</page>
diff --git a/help/ia/save.page b/help/ia/save.page
new file mode 100644
index 0000000..cddfcb7
--- /dev/null
+++ b/help/ia/save.page
@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="utf-8"?>
+<page xmlns="http://projectmallard.org/1.0/" type="guide" id="save" xml:lang="ia">
+
+ <info>
+ <link type="guide" xref="index#use"/>
+ </info>
+
+ <title>Saving to a File</title>
+
+ <steps>
+ <item>
+ <p>Navigate to the <guiseq><gui>Document</gui><gui>Save As</gui></guiseq> menu
+ (or press <keyseq><key>Shift</key><key>Ctrl</key><key>S</key></keyseq>).
+ </p>
+ </item>
+ <item>
+ <p>From the "Save As" dialog box, choose one of the supported file
+ types, or simply change the extension in the "Name" field.
+ </p>
+ </item>
+ <item>
+ <p>Press the "Save" button.</p>
+ </item>
+ </steps>
+
+
+<table frame="bottom left right top" rules="rows cols" shade="rows">
+ <title>Supported File Types</title>
+ <tr>
+ <td><p><em>Type</em></p></td>
+ <td><p><em>Breve Description</em></p></td>
+ </tr>
+ <tr>
+ <td><p>PDF</p></td>
+ <td><p>A PDF can contain multiple pages, like a book, and is easy to distribute. Only a small number
+ of linux programs can modify PDF documents, so this format is recommended primarily for archiving.
+ The size of the PDF document is affected by the <link xref="quality">image quality</link>.
+ See the <link href="http://en.wikipedia.org/wiki/pdf">PDF Wikipedia page</link> for more information.
+ </p></td>
+ </tr>
+ <tr>
+ <td><p>JPEG</p></td>
+ <td><p>JPEG is the file format used by digital cameras to save pictures. A JPEG file is relatively
+ small, very easy to distribute, and suitable for uploading to social networking sites. Most operating
+ systems come with a JPEG editor by default. If you have scanned multiple pages, a JPEG file will be
+ created for each page. Use this file type if you want to modify or upload the scanned images.
+ The size of the JPEG file is affected by the <link xref="quality">image quality</link>.
+ See the <link href="http://en.wikipedia.org/wiki/jpeg">JPEG Wikipedia page</link> for more information.
+ </p></td>
+ </tr>
+ <tr>
+ <td><p>PNG</p></td>
+ <td><p>PNG files contain the raw data from the scanner. This makes them very large and not suitable
+ for distributing. If you have scanned multiple pages, a PNG file will be created for each page.
+ See the <link href="http://en.wikipedia.org/wiki/Portable_Network_Graphics">PNG Wikipedia page</link>
+ for more information.
+ </p></td>
+ </tr>
+ <tr>
+ <td><p>TIFF</p></td>
+ <td><p>TIFF files contain the raw data from the scanner. This makes them very large and not suitable
+ for distributing. If you have scanned multipe pages, a TIFF file will be created for each page.
+ See the <link href="http://en.wikipedia.org/wiki/Tagged_Image_File_Format">TIFF Wikipedia page</link>
+ for more information.
+ </p></td>
+ </tr>
+
+</table>
+</page>
diff --git a/help/ia/scanner.page b/help/ia/scanner.page
new file mode 100644
index 0000000..71b1338
--- /dev/null
+++ b/help/ia/scanner.page
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<page xmlns="http://projectmallard.org/1.0/" type="guide" id="scanner" xml:lang="ia">
+
+ <info>
+ <link type="guide" xref="index#acquire"/>
+ </info>
+
+ <title>Eliger un scanditor</title>
+
+ <p>
+ If you have multiple scanning devices you can change the selected device from the <guiseq><gui>Document</gui><gui>Preferences</gui></guiseq> menu.
+ </p>
+ <media type="image" src="figures/preferences.png"/>
+ <p>
+ Your local scanners are automatically detected each time you start <app>Simple Scan</app>
+ and each time you plug in a USB scanner. If you connect a network scanner while <app>Simple Scan</app>
+ is running, you will need to restart <app>Simple Scan</app> for the scanner to be detected.
+ </p>
+</page>
diff --git a/help/ia/scanning.page b/help/ia/scanning.page
new file mode 100644
index 0000000..78e5fbd
--- /dev/null
+++ b/help/ia/scanning.page
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="utf-8"?>
+<page xmlns="http://projectmallard.org/1.0/" type="guide" id="scanning" xml:lang="ia">
+
+ <info>
+ <title type="sort">0</title>
+ <link type="guide" xref="index#acquire"/>
+ </info>
+
+ <title>Scansion de un pagina</title>
+
+ <p>Scander un documento per tu scanditor:</p>
+ <steps>
+ <item><p>Connect the scanner to your computer and power it on.</p></item>
+ <item><p>Open <app>Simple Scan</app>.</p></item>
+ <item><p>Click the arrow to the right of the "Scan" button and choose the type
+ of document you are scanning: <em>Photo</em> or <em>Text</em>.</p>
+ <media type="image" src="figures/scan_toolbar.png"/></item>
+ <item><p>Click the "Scan" button on the toolbar (or press <keyseq><key>Ctrl</key><key>1</key></keyseq>).</p></item>
+ </steps>
+
+ <note><p>
+ The page will be shown as it is scanned. To stop the scan at any time press the <key>Esc</key>
+ key on the keyboard. Each page you scan is placed at the end of the document.
+ </p></note>
+
+ <p>
+ The document type can be also be changed from the <guiseq><gui>Document</gui>
+ <gui>Scan</gui></guiseq> menu. Choose <gui><em>Text</em></gui> if you want the document
+ to be quickly scanned in black and white; choose <gui><em>Photo</em></gui> for a high
+ resolution color scan. See <link xref="dpi"/> for more details and more options.
+ </p>
+</page>
diff --git a/help/ku/adf.page b/help/ku/adf.page
new file mode 100644
index 0000000..a5c8264
--- /dev/null
+++ b/help/ku/adf.page
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="utf-8"?>
+<page xmlns="http://projectmallard.org/1.0/" type="guide" id="adf" xml:lang="ku">
+
+ <info>
+ <link type="guide" xref="index#acquire"/>
+ </info>
+
+ <title>Using an Automatic Document Feeder</title>
+
+ <p>
+ If your scanner features an Automatic Document Feeder (ADF)
+ you can scan all the pages from the feeder via one of following methods:
+ </p>
+ <steps>
+ <title/>
+ <title>Use a Keyboard Shortcut</title>
+ <item>
+ <p>Press <keyseq><key>Ctrl</key><key>F</key></keyseq></p>
+ </item>
+ </steps>
+
+ <steps>
+ <title>Use a Menu</title>
+ <item>
+ <p>Navigate to <guiseq><gui>Document</gui>
+ <gui>Scan</gui><gui>All Pages From Feeder</gui></guiseq>.
+ </p>
+ </item>
+ </steps>
+
+ <steps>
+ <title>Use the Toolbar Buttons</title>
+ <item>
+ <p>Click on the arrow to the right of the "Scan" button.</p>
+ </item>
+ <item>
+ <p>Choose "All Pages From Feeder".</p>
+ <media type="image" src="figures/scan_toolbar.png"/>
+ </item>
+ </steps>
+
+
+ <note style="tip">
+ <p>
+ By default, both sides of a sheet will scan if your scanner has this capability.
+ You can choose single side scanning from the <guiseq><gui>Document</gui><gui>Preferences</gui></guiseq> menu.
+ </p>
+ <media type="image" src="figures/preferences.png"/>
+ </note>
+
+</page>
diff --git a/help/ku/brightness-contrast.page b/help/ku/brightness-contrast.page
new file mode 100644
index 0000000..bbbc657
--- /dev/null
+++ b/help/ku/brightness-contrast.page
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="utf-8"?>
+<page xmlns="http://projectmallard.org/1.0/" type="guide" id="brightness-contrast" xml:lang="ku">
+
+ <info>
+ <link type="guide" xref="index#acquire"/>
+ </info>
+
+ <title>Setting brightness and Contrast</title>
+
+ <p>
+ Some scanners allow the user to adjust the brightness and contrast when scanning.
+ If your scans come out too dark or too light you can adjust these settings from the <guiseq><gui>Document</gui><gui>Preferences</gui></guiseq> menu.
+ </p>
+</page>
diff --git a/help/ku/crop.page b/help/ku/crop.page
new file mode 100644
index 0000000..84855d2
--- /dev/null
+++ b/help/ku/crop.page
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="utf-8"?>
+<page xmlns="http://projectmallard.org/1.0/" type="guide" id="crop" xml:lang="ku">
+
+ <info>
+ <link type="guide" xref="index#modify"/>
+ </info>
+
+ <title>Cropping</title>
+
+ <p>
+ The cropping feature in <app>Simple Scan</app> allows you to use only a part of a scanned image. You can
+ enable crop either before or after scanning a page, and you can always change the dimensions of the crop
+ frame. When crop is enabled, a mask will apper over the current page with the area not being used shown
+ in gray. You can enable crop and choose the desired dimensions via one of the following methods:
+ </p>
+
+ <steps>
+ <title>Use a Right Click</title>
+ <item><p>Right click anywhere on the image area and select "Crop".</p></item>
+ <item><p>Choose one of the fixed crop frames, or select "Custom" to manually
+ set the crop frame's dimensions by dragging its borders.</p></item>
+ <item><p>Click and hold the frame, then move it to the desired position.</p></item>
+ </steps>
+
+ <steps>
+ <title>Use a Menu</title>
+ <item><p>Navigate to the <guiseq><gui>Page</gui><gui>Crop</gui></guiseq> menu.</p></item>
+ <item><p>Choose one of the fixed crop frames, or select "Custom" to manually adjust the frame's dimensions by dragging its borders.</p></item>
+ <item><p>Click and hold the frame, then move it to the desired position.</p></item>
+ </steps>
+
+ <steps>
+ <title>Use the Toolbar</title>
+ <item><p>Click the "<gui>Crop</gui>" button in the toolbar.</p>
+ <note style="tip"><p>This is the same as choosing "Custom" in step 2 of the
+ aforementioned methods.</p></note></item>
+ <item><p>Drag the borders of the frame to set the desired dimensions and position.</p></item>
+
+ </steps>
+
+ <note><p>
+ Each new scanned page will use the previous crop.
+ </p></note>
+</page>
diff --git a/help/ku/dpi.page b/help/ku/dpi.page
new file mode 100644
index 0000000..c61460c
--- /dev/null
+++ b/help/ku/dpi.page
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="utf-8"?>
+<page xmlns="http://projectmallard.org/1.0/" type="guide" id="dpi" xml:lang="ku">
+
+ <info>
+ <link type="guide" xref="index#acquire"/>
+ </info>
+
+ <title>Setting the Scan Resolution</title>
+
+ <p>
+ The default resolution for document type <gui><em>Text</em></gui> is 150 dpi (dots per inch)
+ and for document type <gui><em>Photo</em></gui> is 300 dpi. You can change these settings
+ from the <guiseq><gui>Document</gui><gui>Preferences</gui></guiseq> menu.
+ </p>
+ <media type="image" src="figures/preferences.png"/>
+
+ <p>The available scanning resolutions for both document types (Text and Photo) are the same
+ and are listed in the following table:</p>
+
+ <table frame="bottom left right" rules="rows cols" shade="rows">
+ <tr>
+ <td><p><em>Text Resolution</em></p></td>
+ <td><p><em>Photo Resolution</em></p></td>
+ </tr>
+ <tr>
+ <td><p>75 dpi (draft)</p></td>
+ <td><p>75 dpi (draft)</p></td>
+ </tr>
+ <tr>
+ <td><p>150 dpi (default)</p></td>
+ <td><p>150 dpi</p></td>
+ </tr>
+ <tr>
+ <td><p>300 dpi</p></td>
+ <td><p>300 dpi (default)</p></td>
+ </tr>
+ <tr>
+ <td><p>600 dpi</p></td>
+ <td><p>600 dpi</p></td>
+ </tr>
+ <tr>
+ <td><p>1200 dpi (high resolution)</p></td>
+ <td><p>1200 dpi (high resolution)</p></td>
+ </tr>
+ <tr>
+ <td><p>2400 dpi</p></td>
+ <td><p>2400 dpi</p></td>
+ </tr>
+ </table>
+
+ <note style="important"><p><gui><em>Text</em></gui> documents are always scanned in black
+ and white, while <gui><em>Photo</em></gui> documents are always scanned in color, at any
+ resolution!</p>
+ </note>
+
+</page>
diff --git a/help/ku/email.page b/help/ku/email.page
new file mode 100644
index 0000000..d921a7d
--- /dev/null
+++ b/help/ku/email.page
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<page xmlns="http://projectmallard.org/1.0/" type="guide" id="email" xml:lang="ku">
+
+ <info>
+ <link type="guide" xref="index#use"/>
+ </info>
+
+ <title>Sending via Email</title>
+
+ <p>
+ To email the current document use the <guiseq><gui>Document</gui><gui>Email</gui></guiseq>
+ menu (<keyseq><key>Ctrl</key><key>E</key></keyseq>). Your email program will be opened with
+ a new message containing the scanned document as an attachment.
+ </p>
+ <p>
+ If the document type was set to "Text" the email will have a PDF attachment for each page.
+ Conversely, if the document type was set to "Photo", the email will have a JPEG
+ attachment for each page.
+ </p>
+ <p>
+ See <link xref="save"/> for more information about file formats.
+ </p>
+</page>
diff --git a/help/ku/index.page b/help/ku/index.page
new file mode 100644
index 0000000..ec63a7c
--- /dev/null
+++ b/help/ku/index.page
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="utf-8"?>
+<page xmlns="http://projectmallard.org/1.0/" type="guide" id="index" xml:lang="ku">
+
+ <info>
+ <credit type="author">
+ <name>Robert Ancell</name>
+ <email>robert.ancell@gmail.com</email>
+ </credit>
+ <credit type="author">
+ <name>Ali Shtarbanov</name>
+ <email>ametedinov@gmail.com</email>
+ </credit>
+ <include xmlns="http://www.w3.org/2001/XInclude" href="legal.xml"/>
+ </info>
+
+ <title><media type="image" src="figures/icon.png"/> Simple Scan Manual</title>
+
+ <section id="acquire" style="2column">
+ <title>Scanning Pages</title>
+ </section>
+
+ <section id="modify" style="2column">
+ <title>Modifying the Document</title>
+ </section>
+
+ <section id="use" style="2column">
+ <title>Using the Document</title>
+ </section>
+
+ <section id="shortcuts" style="2column">
+ <title>Simple Scan Shortcuts</title>
+ </section>
+</page>
diff --git a/help/ku/ku.po b/help/ku/ku.po
new file mode 100644
index 0000000..d0cb99b
--- /dev/null
+++ b/help/ku/ku.po
@@ -0,0 +1,731 @@
+# Kurdish translation for simple-scan
+# Copyright (c) 2017 Rosetta Contributors and Canonical Ltd 2017
+# This file is distributed under the same license as the simple-scan package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, 2017.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: simple-scan\n"
+"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
+"POT-Creation-Date: 2016-04-25 14:55+0200\n"
+"PO-Revision-Date: 2017-02-28 22:57+0000\n"
+"Last-Translator: Rokar ✌ <Unknown>\n"
+"Language-Team: Kurdish <ku@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Launchpad-Export-Date: 2017-03-01 05:37+0000\n"
+"X-Generator: Launchpad (build 18329)\n"
+
+#. Put one translator per line, in the form NAME <EMAIL>, YEAR1, YEAR2
+msgctxt "_"
+msgid "translator-credits"
+msgstr ""
+"Launchpad Contributions:\n"
+" Rokar ✌ https://launchpad.net/~rokarali"
+
+#. (itstool) path: credit/name
+#: C/index.page:7
+msgid "Robert Ancell"
+msgstr ""
+
+#. (itstool) path: credit/name
+#: C/index.page:11
+msgid "Ali Shtarbanov"
+msgstr ""
+
+#. (itstool) path: title/media
+#. This is a reference to an external file such as an image or video. When
+#. the file changes, the md5 hash will change to let you know you need to
+#. update your localized copy. The msgstr is not used at all. Set it to
+#. whatever you like once you have updated your copy of the file.
+#: C/index.page:17
+msgctxt "_"
+msgid ""
+"external ref='figures/icon.png' md5='80a7318cc454eb11315abd88f11fb7f4'"
+msgstr ""
+
+#. (itstool) path: page/title
+#: C/index.page:17
+msgid "<media type=\"image\" src=\"figures/icon.png\"/> Simple Scan Manual"
+msgstr ""
+
+#. (itstool) path: section/title
+#: C/index.page:20
+msgid "Scanning Pages"
+msgstr ""
+
+#. (itstool) path: section/title
+#: C/index.page:24
+msgid "Modifying the Document"
+msgstr ""
+
+#. (itstool) path: section/title
+#: C/index.page:28
+msgid "Using the Document"
+msgstr ""
+
+#. (itstool) path: section/title
+#: C/index.page:32
+msgid "Simple Scan Shortcuts"
+msgstr ""
+
+#. (itstool) path: page/title
+#: C/adf.page:9
+msgid "Using an Automatic Document Feeder"
+msgstr ""
+
+#. (itstool) path: page/p
+#: C/adf.page:11
+msgid ""
+"If your scanner features an Automatic Document Feeder (ADF) you can scan all "
+"the pages from the feeder via one of following methods:"
+msgstr ""
+
+#. (itstool) path: steps/title
+#: C/adf.page:17
+msgid "Use a Keyboard Shortcut"
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/adf.page:19
+msgid "Press <keyseq><key>Ctrl</key><key>F</key></keyseq>"
+msgstr ""
+
+#. (itstool) path: steps/title
+#: C/adf.page:24
+#: C/crop.page:27
+#: C/rotate.page:28
+msgid "Use a Menu"
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/adf.page:26
+msgid ""
+"Navigate to <guiseq><gui>Document</gui> <gui>Scan</gui><gui>All Pages From "
+"Feeder</gui></guiseq>."
+msgstr ""
+
+#. (itstool) path: steps/title
+#: C/adf.page:33
+msgid "Use the Toolbar Buttons"
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/adf.page:35
+msgid "Click on the arrow to the right of the \"Scan\" button."
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/adf.page:38
+msgid "Choose \"All Pages From Feeder\"."
+msgstr ""
+
+#. (itstool) path: item/media
+#. This is a reference to an external file such as an image or video. When
+#. the file changes, the md5 hash will change to let you know you need to
+#. update your localized copy. The msgstr is not used at all. Set it to
+#. whatever you like once you have updated your copy of the file.
+#: C/adf.page:39
+#: C/scanning.page:20
+msgctxt "_"
+msgid ""
+"external ref='figures/scan_toolbar.png' "
+"md5='5d23aff1cb84b5ffe6bf66c39226cb1f'"
+msgstr ""
+
+#. (itstool) path: note/p
+#: C/adf.page:45
+msgid ""
+"By default, both sides of a sheet will scan if your scanner has this "
+"capability. You can choose single side scanning from the "
+"<guiseq><gui>Document</gui><gui>Preferences</gui></guiseq> menu."
+msgstr ""
+
+#. (itstool) path: note/media
+#. (itstool) path: page/media
+#. This is a reference to an external file such as an image or video. When
+#. the file changes, the md5 hash will change to let you know you need to
+#. update your localized copy. The msgstr is not used at all. Set it to
+#. whatever you like once you have updated your copy of the file.
+#: C/adf.page:49
+#: C/dpi.page:16
+#: C/scanner.page:14
+msgctxt "_"
+msgid ""
+"external ref='figures/preferences.png' md5='b9f6350ad552c954e8538596c7b42ac5'"
+msgstr ""
+
+#. (itstool) path: page/title
+#: C/brightness-contrast.page:9
+msgid "Setting brightness and Contrast"
+msgstr ""
+
+#. (itstool) path: page/p
+#: C/brightness-contrast.page:11
+msgid ""
+"Some scanners allow the user to adjust the brightness and contrast when "
+"scanning. If your scans come out too dark or too light you can adjust these "
+"settings from the <guiseq><gui>Document</gui><gui>Preferences</gui></guiseq> "
+"menu."
+msgstr ""
+
+#. (itstool) path: page/title
+#: C/crop.page:9
+msgid "Cropping"
+msgstr ""
+
+#. (itstool) path: page/p
+#: C/crop.page:11
+msgid ""
+"The cropping feature in <app>Simple Scan</app> allows you to use only a part "
+"of a scanned image. You can enable crop either before or after scanning a "
+"page, and you can always change the dimensions of the crop frame. When crop "
+"is enabled, a mask will apper over the current page with the area not being "
+"used shown in gray. You can enable crop and choose the desired dimensions "
+"via one of the following methods:"
+msgstr ""
+
+#. (itstool) path: steps/title
+#: C/crop.page:19
+msgid "Use a Right Click"
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/crop.page:20
+msgid "Right click anywhere on the image area and select \"Crop\"."
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/crop.page:21
+msgid ""
+"Choose one of the fixed crop frames, or select \"Custom\" to manually set "
+"the crop frame's dimensions by dragging its borders."
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/crop.page:23
+#: C/crop.page:30
+msgid "Click and hold the frame, then move it to the desired position."
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/crop.page:28
+msgid "Navigate to the <guiseq><gui>Page</gui><gui>Crop</gui></guiseq> menu."
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/crop.page:29
+msgid ""
+"Choose one of the fixed crop frames, or select \"Custom\" to manually adjust "
+"the frame's dimensions by dragging its borders."
+msgstr ""
+
+#. (itstool) path: steps/title
+#: C/crop.page:34
+msgid "Use the Toolbar"
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/crop.page:35
+msgid "Click the \"<gui>Crop</gui>\" button in the toolbar."
+msgstr ""
+
+#. (itstool) path: note/p
+#: C/crop.page:36
+msgid ""
+"This is the same as choosing \"Custom\" in step 2 of the aforementioned "
+"methods."
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/crop.page:38
+msgid ""
+"Drag the borders of the frame to set the desired dimensions and position."
+msgstr ""
+
+#. (itstool) path: note/p
+#: C/crop.page:42
+msgid "Each new scanned page will use the previous crop."
+msgstr ""
+
+#. (itstool) path: page/title
+#: C/dpi.page:9
+msgid "Setting the Scan Resolution"
+msgstr ""
+
+#. (itstool) path: page/p
+#: C/dpi.page:11
+msgid ""
+"The default resolution for document type <gui><em>Text</em></gui> is 150 dpi "
+"(dots per inch) and for document type <gui><em>Photo</em></gui> is 300 dpi. "
+"You can change these settings from the "
+"<guiseq><gui>Document</gui><gui>Preferences</gui></guiseq> menu."
+msgstr ""
+
+#. (itstool) path: page/p
+#: C/dpi.page:18
+msgid ""
+"The available scanning resolutions for both document types (Text and Photo) "
+"are the same and are listed in the following table:"
+msgstr ""
+
+#. (itstool) path: td/p
+#: C/dpi.page:23
+msgid "<em>Text Resolution</em>"
+msgstr ""
+
+#. (itstool) path: td/p
+#: C/dpi.page:24
+msgid "<em>Photo Resolution</em>"
+msgstr ""
+
+#. (itstool) path: td/p
+#: C/dpi.page:27
+#: C/dpi.page:28
+msgid "75 dpi (draft)"
+msgstr ""
+
+#. (itstool) path: td/p
+#: C/dpi.page:31
+msgid "150 dpi (default)"
+msgstr ""
+
+#. (itstool) path: td/p
+#: C/dpi.page:32
+msgid "150 dpi"
+msgstr "150 dpi"
+
+#. (itstool) path: td/p
+#: C/dpi.page:35
+msgid "300 dpi"
+msgstr "300 dpi"
+
+#. (itstool) path: td/p
+#: C/dpi.page:36
+msgid "300 dpi (default)"
+msgstr ""
+
+#. (itstool) path: td/p
+#: C/dpi.page:39
+#: C/dpi.page:40
+msgid "600 dpi"
+msgstr "600 dpi"
+
+#. (itstool) path: td/p
+#: C/dpi.page:43
+#: C/dpi.page:44
+msgid "1200 dpi (high resolution)"
+msgstr ""
+
+#. (itstool) path: td/p
+#: C/dpi.page:47
+#: C/dpi.page:48
+msgid "2400 dpi"
+msgstr "2400 dpi"
+
+#. (itstool) path: note/p
+#: C/dpi.page:52
+msgid ""
+"<gui><em>Text</em></gui> documents are always scanned in black and white, "
+"while <gui><em>Photo</em></gui> documents are always scanned in color, at "
+"any resolution!"
+msgstr ""
+
+#. (itstool) path: page/title
+#: C/email.page:9
+msgid "Sending via Email"
+msgstr ""
+
+#. (itstool) path: page/p
+#: C/email.page:11
+msgid ""
+"To email the current document use the "
+"<guiseq><gui>Document</gui><gui>Email</gui></guiseq> menu "
+"(<keyseq><key>Ctrl</key><key>E</key></keyseq>). Your email program will be "
+"opened with a new message containing the scanned document as an attachment."
+msgstr ""
+
+#. (itstool) path: page/p
+#: C/email.page:16
+msgid ""
+"If the document type was set to \"Text\" the email will have a PDF "
+"attachment for each page. Conversely, if the document type was set to "
+"\"Photo\", the email will have a JPEG attachment for each page."
+msgstr ""
+
+#. (itstool) path: page/p
+#: C/email.page:21
+msgid "See <link xref=\"save\"/> for more information about file formats."
+msgstr ""
+
+#. (itstool) path: p/link
+#: C/legal.xml:4
+msgid "Creative Commons Attribution-Share Alike 3.0 Unported License"
+msgstr ""
+
+#. (itstool) path: license/p
+#: C/legal.xml:3
+msgid "This work is licensed under a <_:link-1/>."
+msgstr ""
+
+#. (itstool) path: license/p
+#: C/legal.xml:6
+msgid ""
+"As a special exception, the copyright holders give you permission to copy, "
+"modify, and distribute the example code contained in this document under the "
+"terms of your choosing, without restriction."
+msgstr ""
+
+#. (itstool) path: page/title
+#: C/print.page:9
+msgid "Printing"
+msgstr "Çapkirin"
+
+#. (itstool) path: page/p
+#: C/print.page:11
+msgid ""
+"<app>Simple Scan</app> allows you print a scanned document directly from the "
+"its interface, without having to save the document first. This feature makes "
+"<app>Simple Scan</app> a very convenient tool for making copies of documents "
+"or photos."
+msgstr ""
+
+#. (itstool) path: steps/title
+#: C/print.page:17
+msgid "To Print a Document"
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/print.page:19
+msgid ""
+"Go to the <guiseq><gui>Document</gui><gui>Print</gui> </guiseq> menu or use "
+"the keyboard shortcut <keyseq><key>Ctrl</key><key>P</key></keyseq>. This "
+"will open the \"Print\" dialog box."
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/print.page:25
+msgid ""
+"From the \"Print\" dialog box choose your desired printing settings and/or "
+"Print Preview the document, then press the \"Print\" button."
+msgstr ""
+
+#. (itstool) path: page/title
+#: C/quality.page:9
+msgid "Setting the Image Quality"
+msgstr ""
+
+#. (itstool) path: page/p
+#: C/quality.page:11
+msgid ""
+"You can adjust the image quality that is used when the scan is converted to "
+"a file by changing this setting in the "
+"<guiseq><gui>Document</gui><gui>Preferences</gui></guiseq> menu. Using a low "
+"quality will result in a small file size but may show some blurring or "
+"blockiness in the image. A high quality will keep all the scanned "
+"information but require a larger file size. See the <link "
+"href=\"https://en.wikipedia.org/wiki/Lossy_compression\">Lossy compression "
+"Wikipedia page</link> for more information."
+msgstr ""
+
+#. (itstool) path: page/title
+#: C/reorder.page:9
+msgid "Reordering Pages"
+msgstr ""
+
+#. (itstool) path: page/p
+#: C/reorder.page:11
+msgid ""
+"To move a page, right click on it and choose <gui><em>Move Left</em></gui> "
+"or <gui><em>Move Right</em></gui>."
+msgstr ""
+
+#. (itstool) path: page/p
+#: C/reorder.page:16
+msgid ""
+"Alternatively, you can move a page by first selecting it and then choosing "
+"<gui><em>Move Left</em></gui> or <gui><em>Move Right</em></gui> from the "
+"\"Page\" menu."
+msgstr ""
+
+#. (itstool) path: page/title
+#: C/rotate.page:9
+msgid "Rotating a Page"
+msgstr ""
+
+#. (itstool) path: page/p
+#: C/rotate.page:11
+msgid ""
+"In <app>Simple Scan</app>, you can change the rotation of a page either "
+"before or after scanning the page. Currently, there are four ways to rotate "
+"a page:"
+msgstr ""
+
+#. (itstool) path: steps/title
+#: C/rotate.page:17
+msgid "Use Toolbar Buttons"
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/rotate.page:18
+#: C/rotate.page:29
+#: C/rotate.page:35
+msgid "Select the page you want to rotate by clicking on it once."
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/rotate.page:19
+msgid ""
+"Press one of the arrows on the toolbar to rotate the page in the desired "
+"direction."
+msgstr ""
+
+#. (itstool) path: steps/title
+#: C/rotate.page:22
+msgid "Use Right Click"
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/rotate.page:23
+msgid "Right click on the page you want to rotate."
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/rotate.page:24
+msgid "From the context menu choose \"Rotate Left\" or \"Rotate Right\"."
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/rotate.page:30
+msgid ""
+"Click the \"Page\" menu and select \"Rotate Left\" or \"Rotate Right\"."
+msgstr ""
+
+#. (itstool) path: steps/title
+#: C/rotate.page:34
+msgid "Use Shortcuts"
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/rotate.page:36
+msgid "Press one of the following shortcut keys:"
+msgstr ""
+
+#. (itstool) path: td/p
+#: C/rotate.page:39
+msgid "<em>Command</em>"
+msgstr ""
+
+#. (itstool) path: td/p
+#: C/rotate.page:40
+msgid "<em>Shortcut Key</em>"
+msgstr ""
+
+#. (itstool) path: td/p
+#: C/rotate.page:43
+msgid "Rotate Left"
+msgstr "Bizivirîne Çepê"
+
+#. (itstool) path: td/p
+#: C/rotate.page:44
+msgid "<key>[</key> (left bracket)"
+msgstr ""
+
+#. (itstool) path: td/p
+#: C/rotate.page:47
+msgid "Rotate Right"
+msgstr "Bizivirîne Rastê"
+
+#. (itstool) path: td/p
+#: C/rotate.page:48
+msgid "<key>]</key> (right bracket)"
+msgstr ""
+
+#. (itstool) path: note/p
+#: C/rotate.page:54
+msgid "Each new scanned page will use the previous rotation."
+msgstr ""
+
+#. (itstool) path: page/title
+#: C/save.page:9
+msgid "Saving to a File"
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/save.page:13
+msgid ""
+"Navigate to the <guiseq><gui>Document</gui><gui>Save As</gui></guiseq> menu "
+"(or press <keyseq><key>Shift</key><key>Ctrl</key><key>S</key></keyseq>)."
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/save.page:18
+msgid ""
+"From the \"Save As\" dialog box, choose one of the supported file types, or "
+"simply change the extension in the \"Name\" field."
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/save.page:23
+msgid "Press the \"Save\" button."
+msgstr ""
+
+#. (itstool) path: table/title
+#: C/save.page:29
+msgid "Supported File Types"
+msgstr ""
+
+#. (itstool) path: td/p
+#: C/save.page:31
+msgid "<em>Type</em>"
+msgstr ""
+
+#. (itstool) path: td/p
+#: C/save.page:32
+msgid "<em>Brief Description</em>"
+msgstr ""
+
+#. (itstool) path: td/p
+#: C/save.page:35
+msgid "PDF"
+msgstr "PDF"
+
+#. (itstool) path: td/p
+#: C/save.page:36
+msgid ""
+"A PDF can contain multiple pages, like a book, and is easy to distribute. "
+"Only a small number of linux programs can modify PDF documents, so this "
+"format is recommended primarily for archiving. The size of the PDF document "
+"is affected by the <link xref=\"quality\">image quality</link>. See the "
+"<link href=\"http://en.wikipedia.org/wiki/pdf\">PDF Wikipedia page</link> "
+"for more information."
+msgstr ""
+
+#. (itstool) path: td/p
+#: C/save.page:43
+msgid "JPEG"
+msgstr "JPEG"
+
+#. (itstool) path: td/p
+#: C/save.page:44
+msgid ""
+"JPEG is the file format used by digital cameras to save pictures. A JPEG "
+"file is relatively small, very easy to distribute, and suitable for "
+"uploading to social networking sites. Most operating systems come with a "
+"JPEG editor by default. If you have scanned multiple pages, a JPEG file will "
+"be created for each page. Use this file type if you want to modify or upload "
+"the scanned images. The size of the JPEG file is affected by the <link "
+"xref=\"quality\">image quality</link>. See the <link "
+"href=\"http://en.wikipedia.org/wiki/jpeg\">JPEG Wikipedia page</link> for "
+"more information."
+msgstr ""
+
+#. (itstool) path: td/p
+#: C/save.page:53
+msgid "PNG"
+msgstr "PNG"
+
+#. (itstool) path: td/p
+#: C/save.page:54
+msgid ""
+"PNG files contain the raw data from the scanner. This makes them very large "
+"and not suitable for distributing. If you have scanned multiple pages, a PNG "
+"file will be created for each page. See the <link "
+"href=\"http://en.wikipedia.org/wiki/Portable_Network_Graphics\">PNG "
+"Wikipedia page</link> for more information."
+msgstr ""
+
+#. (itstool) path: td/p
+#: C/save.page:61
+msgid "TIFF"
+msgstr "TIFF"
+
+#. (itstool) path: td/p
+#: C/save.page:62
+msgid ""
+"TIFF files contain the raw data from the scanner. This makes them very large "
+"and not suitable for distributing. If you have scanned multipe pages, a TIFF "
+"file will be created for each page. See the <link "
+"href=\"http://en.wikipedia.org/wiki/Tagged_Image_File_Format\">TIFF "
+"Wikipedia page</link> for more information."
+msgstr ""
+
+#. (itstool) path: page/title
+#: C/scanner.page:9
+msgid "Selecting a Scanner"
+msgstr ""
+
+#. (itstool) path: page/p
+#: C/scanner.page:11
+msgid ""
+"If you have multiple scanning devices you can change the selected device "
+"from the <guiseq><gui>Document</gui><gui>Preferences</gui></guiseq> menu."
+msgstr ""
+
+#. (itstool) path: page/p
+#: C/scanner.page:15
+msgid ""
+"Your local scanners are automatically detected each time you start "
+"<app>Simple Scan</app> and each time you plug in a USB scanner. If you "
+"connect a network scanner while <app>Simple Scan</app> is running, you will "
+"need to restart <app>Simple Scan</app> for the scanner to be detected."
+msgstr ""
+
+#. (itstool) path: info/title
+#: C/scanning.page:6
+msgctxt "sort"
+msgid "0"
+msgstr "0"
+
+#. (itstool) path: page/title
+#: C/scanning.page:10
+msgid "Scanning a Page"
+msgstr ""
+
+#. (itstool) path: page/p
+#: C/scanning.page:12
+msgid "To scan a document from your scanner:"
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/scanning.page:16
+msgid "Connect the scanner to your computer and power it on."
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/scanning.page:17
+msgid "Open <app>Simple Scan</app>."
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/scanning.page:18
+msgid ""
+"Click the arrow to the right of the \"Scan\" button and choose the type of "
+"document you are scanning: <em>Photo</em> or <em>Text</em>."
+msgstr ""
+
+#. (itstool) path: item/p
+#: C/scanning.page:21
+msgid ""
+"Click the \"Scan\" button on the toolbar (or press "
+"<keyseq><key>Ctrl</key><key>1</key></keyseq>)."
+msgstr ""
+
+#. (itstool) path: note/p
+#: C/scanning.page:24
+msgid ""
+"The page will be shown as it is scanned. To stop the scan at any time press "
+"the <key>Esc</key> key on the keyboard. Each page you scan is placed at the "
+"end of the document."
+msgstr ""
+
+#. (itstool) path: page/p
+#: C/scanning.page:29
+msgid ""
+"The document type can be also be changed from the "
+"<guiseq><gui>Document</gui> <gui>Scan</gui></guiseq> menu. Choose "
+"<gui><em>Text</em></gui> if you want the document to be quickly scanned in "
+"black and white; choose <gui><em>Photo</em></gui> for a high resolution "
+"color scan. See <link xref=\"dpi\"/> for more details and more options."
+msgstr ""
diff --git a/help/ku/ku.stamp b/help/ku/ku.stamp
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/help/ku/ku.stamp
diff --git a/help/ku/legal.xml b/help/ku/legal.xml
new file mode 100644
index 0000000..46a7e88
--- /dev/null
+++ b/help/ku/legal.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<license xmlns="http://projectmallard.org/1.0/" href="http://creativecommons.org/licenses/by-sa/3.0/">
+<p>This work is licensed under a
+<link href="http://creativecommons.org/licenses/by-sa/3.0/">Creative Commons
+Attribution-Share Alike 3.0 Unported License</link>.</p>
+<p>As a special exception, the copyright holders give you permission to copy,
+modify, and distribute the example code contained in this document under the
+terms of your choosing, without restriction.</p>
+</license>
diff --git a/help/ku/print.page b/help/ku/print.page
new file mode 100644
index 0000000..787ef31
--- /dev/null
+++ b/help/ku/print.page
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="utf-8"?>
+<page xmlns="http://projectmallard.org/1.0/" type="guide" id="print" xml:lang="ku">
+
+ <info>
+ <link type="guide" xref="index#use"/>
+ </info>
+
+ <title>Çapkirin</title>
+
+ <p>
+ <app>Simple Scan</app> allows you print a scanned document directly from the its
+ interface, without having to save the document first. This feature makes <app>Simple
+ Scan</app> a very convenient tool for making copies of documents or photos.
+ </p>
+ <steps>
+ <title>To Print a Document</title>
+ <item>
+ <p>Go to the <guiseq><gui>Document</gui><gui>Print</gui>
+ </guiseq> menu or use the keyboard shortcut <keyseq><key>Ctrl</key><key>P</key></keyseq>.
+ This will open the "Print" dialog box.
+ </p>
+ </item>
+ <item>
+ <p>From the "Print" dialog box choose your desired printing settings and/or Print Preview
+ the document, then press the "Print" button.
+ </p>
+ </item>
+ </steps>
+</page>
diff --git a/help/ku/quality.page b/help/ku/quality.page
new file mode 100644
index 0000000..4e3fe1c
--- /dev/null
+++ b/help/ku/quality.page
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8"?>
+<page xmlns="http://projectmallard.org/1.0/" type="guide" id="quality" xml:lang="ku">
+
+ <info>
+ <link type="guide" xref="index#use"/>
+ </info>
+
+ <title>Setting the Image Quality</title>
+
+ <p>
+ You can adjust the image quality that is used when the scan is converted to a file by changing this setting in the <guiseq><gui>Document</gui><gui>Preferences</gui></guiseq> menu.
+ Using a low quality will result in a small file size but may show some blurring or blockiness in the image.
+ A high quality will keep all the scanned information but require a larger file size.
+ See the <link href="https://en.wikipedia.org/wiki/Lossy_compression">Lossy compression Wikipedia page</link> for more information.
+ </p>
+</page>
diff --git a/help/ku/reorder.page b/help/ku/reorder.page
new file mode 100644
index 0000000..d912ab4
--- /dev/null
+++ b/help/ku/reorder.page
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<page xmlns="http://projectmallard.org/1.0/" type="guide" id="reorder" xml:lang="ku">
+
+ <info>
+ <link type="guide" xref="index#modify"/>
+ </info>
+
+ <title>Reordering Pages</title>
+
+ <p>
+ To move a page, right click on it and choose <gui><em>Move Left</em></gui> or
+ <gui><em>Move Right</em></gui>.
+ </p>
+
+ <p>
+ Alternatively, you can move a page by first selecting it and then choosing
+ <gui><em>Move Left</em></gui> or <gui><em>Move Right</em></gui> from the "Page" menu.
+ </p>
+
+</page>
diff --git a/help/ku/rotate.page b/help/ku/rotate.page
new file mode 100644
index 0000000..f668b7c
--- /dev/null
+++ b/help/ku/rotate.page
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="utf-8"?>
+<page xmlns="http://projectmallard.org/1.0/" type="guide" id="rotate" xml:lang="ku">
+
+ <info>
+ <link type="guide" xref="index#modify"/>
+ </info>
+
+ <title>Rotating a Page</title>
+
+ <p>
+ In <app>Simple Scan</app>, you can change the rotation of a page either before or after scanning the page.
+ Currently, there are four ways to rotate a page:
+ </p>
+
+ <steps>
+ <title>Use Toolbar Buttons</title>
+ <item><p>Select the page you want to rotate by clicking on it once.</p></item>
+ <item><p>Press one of the arrows on the toolbar to rotate the page in the desired direction.</p></item>
+ </steps>
+ <steps>
+ <title>Use Right Click</title>
+ <item><p>Right click on the page you want to rotate.</p></item>
+ <item><p>From the context menu choose "Rotate Left" or "Rotate Right".</p></item>
+ </steps>
+
+ <steps>
+ <title>Use a Menu</title>
+ <item><p>Select the page you want to rotate by clicking on it once.</p></item>
+ <item><p>Click the "Page" menu and select "Rotate Left" or "Rotate Right".</p></item>
+ </steps>
+
+ <steps>
+ <title>Use Shortcuts</title>
+ <item><p>Select the page you want to rotate by clicking on it once.</p></item>
+ <item><p>Press one of the following shortcut keys:</p>
+ <table frame="bottom left right" rules="rows cols" shade="rows">
+ <tr>
+ <td><p><em>Command</em></p></td>
+ <td><p><em>Shortcut Key</em></p></td>
+ </tr>
+ <tr>
+ <td><p>Bizivirîne Çepê</p></td>
+ <td><p><key>[</key> (left bracket)</p></td>
+ </tr>
+ <tr>
+ <td><p>Bizivirîne Rastê</p></td>
+ <td><p><key>]</key> (right bracket)</p></td>
+ </tr>
+ </table>
+ </item>
+ </steps>
+
+ <note><p>
+ Each new scanned page will use the previous rotation.
+ </p></note>
+</page>
diff --git a/help/ku/save.page b/help/ku/save.page
new file mode 100644
index 0000000..dda4440
--- /dev/null
+++ b/help/ku/save.page
@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="utf-8"?>
+<page xmlns="http://projectmallard.org/1.0/" type="guide" id="save" xml:lang="ku">
+
+ <info>
+ <link type="guide" xref="index#use"/>
+ </info>
+
+ <title>Saving to a File</title>
+
+ <steps>
+ <item>
+ <p>Navigate to the <guiseq><gui>Document</gui><gui>Save As</gui></guiseq> menu
+ (or press <keyseq><key>Shift</key><key>Ctrl</key><key>S</key></keyseq>).
+ </p>
+ </item>
+ <item>
+ <p>From the "Save As" dialog box, choose one of the supported file
+ types, or simply change the extension in the "Name" field.
+ </p>
+ </item>
+ <item>
+ <p>Press the "Save" button.</p>
+ </item>
+ </steps>
+
+
+<table frame="bottom left right top" rules="rows cols" shade="rows">
+ <title>Supported File Types</title>
+ <tr>
+ <td><p><em>Type</em></p></td>
+ <td><p><em>Brief Description</em></p></td>
+ </tr>
+ <tr>
+ <td><p>PDF</p></td>
+ <td><p>A PDF can contain multiple pages, like a book, and is easy to distribute. Only a small number
+ of linux programs can modify PDF documents, so this format is recommended primarily for archiving.
+ The size of the PDF document is affected by the <link xref="quality">image quality</link>.
+ See the <link href="http://en.wikipedia.org/wiki/pdf">PDF Wikipedia page</link> for more information.
+ </p></td>
+ </tr>
+ <tr>
+ <td><p>JPEG</p></td>
+ <td><p>JPEG is the file format used by digital cameras to save pictures. A JPEG file is relatively
+ small, very easy to distribute, and suitable for uploading to social networking sites. Most operating
+ systems come with a JPEG editor by default. If you have scanned multiple pages, a JPEG file will be
+ created for each page. Use this file type if you want to modify or upload the scanned images.
+ The size of the JPEG file is affected by the <link xref="quality">image quality</link>.
+ See the <link href="http://en.wikipedia.org/wiki/jpeg">JPEG Wikipedia page</link> for more information.
+ </p></td>
+ </tr>
+ <tr>
+ <td><p>PNG</p></td>
+ <td><p>PNG files contain the raw data from the scanner. This makes them very large and not suitable
+ for distributing. If you have scanned multiple pages, a PNG file will be created for each page.
+ See the <link href="http://en.wikipedia.org/wiki/Portable_Network_Graphics">PNG Wikipedia page</link>
+ for more information.
+ </p></td>
+ </tr>
+ <tr>
+ <td><p>TIFF</p></td>
+ <td><p>TIFF files contain the raw data from the scanner. This makes them very large and not suitable
+ for distributing. If you have scanned multipe pages, a TIFF file will be created for each page.
+ See the <link href="http://en.wikipedia.org/wiki/Tagged_Image_File_Format">TIFF Wikipedia page</link>
+ for more information.
+ </p></td>
+ </tr>
+
+</table>
+</page>
diff --git a/help/ku/scanner.page b/help/ku/scanner.page
new file mode 100644
index 0000000..c6bfa0b
--- /dev/null
+++ b/help/ku/scanner.page
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<page xmlns="http://projectmallard.org/1.0/" type="guide" id="scanner" xml:lang="ku">
+
+ <info>
+ <link type="guide" xref="index#acquire"/>
+ </info>
+
+ <title>Selecting a Scanner</title>
+
+ <p>
+ If you have multiple scanning devices you can change the selected device from the <guiseq><gui>Document</gui><gui>Preferences</gui></guiseq> menu.
+ </p>
+ <media type="image" src="figures/preferences.png"/>
+ <p>
+ Your local scanners are automatically detected each time you start <app>Simple Scan</app>
+ and each time you plug in a USB scanner. If you connect a network scanner while <app>Simple Scan</app>
+ is running, you will need to restart <app>Simple Scan</app> for the scanner to be detected.
+ </p>
+</page>
diff --git a/help/ku/scanning.page b/help/ku/scanning.page
new file mode 100644
index 0000000..6cd5021
--- /dev/null
+++ b/help/ku/scanning.page
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="utf-8"?>
+<page xmlns="http://projectmallard.org/1.0/" type="guide" id="scanning" xml:lang="ku">
+
+ <info>
+ <title type="sort">0</title>
+ <link type="guide" xref="index#acquire"/>
+ </info>
+
+ <title>Scanning a Page</title>
+
+ <p>
+ To scan a document from your scanner:
+ </p>
+ <steps>
+ <item><p>Connect the scanner to your computer and power it on.</p></item>
+ <item><p>Open <app>Simple Scan</app>.</p></item>
+ <item><p>Click the arrow to the right of the "Scan" button and choose the type
+ of document you are scanning: <em>Photo</em> or <em>Text</em>.</p>
+ <media type="image" src="figures/scan_toolbar.png"/></item>
+ <item><p>Click the "Scan" button on the toolbar (or press <keyseq><key>Ctrl</key><key>1</key></keyseq>).</p></item>
+ </steps>
+
+ <note><p>
+ The page will be shown as it is scanned. To stop the scan at any time press the <key>Esc</key>
+ key on the keyboard. Each page you scan is placed at the end of the document.
+ </p></note>
+
+ <p>
+ The document type can be also be changed from the <guiseq><gui>Document</gui>
+ <gui>Scan</gui></guiseq> menu. Choose <gui><em>Text</em></gui> if you want the document
+ to be quickly scanned in black and white; choose <gui><em>Photo</em></gui> for a high
+ resolution color scan. See <link xref="dpi"/> for more details and more options.
+ </p>
+</page>
diff --git a/m4/appstream-xml.m4 b/m4/appstream-xml.m4
index 1472802..f7e21b9 100644
--- a/m4/appstream-xml.m4
+++ b/m4/appstream-xml.m4
@@ -10,7 +10,7 @@ dnl Add @APPSTREAM_XML_RULES@ to a Makefile.am to substitute the make rules. Add
dnl .appdata.xml files to appstream_XML in Makefile.am and they will be validated
dnl at make check time, if appstream-util is installed, as well as installed
dnl to the correct location automatically. Add --enable-appstream-util to
-dnl DISTCHECK_CONFIGURE_FLAGS in Makefile.am to require valid AppData XML when
+dnl AM_DISTCHECK_CONFIGURE_FLAGS in Makefile.am to require valid AppData XML when
dnl doing a distcheck.
dnl
dnl Adding files to appstream_XML does not distribute them automatically.
diff --git a/m4/gettext.m4 b/m4/gettext.m4
index da31efe..eef5073 100644
--- a/m4/gettext.m4
+++ b/m4/gettext.m4
@@ -1,5 +1,5 @@
-# gettext.m4 serial 67 (gettext-0.19.6)
-dnl Copyright (C) 1995-2014 Free Software Foundation, Inc.
+# gettext.m4 serial 68 (gettext-0.19.8)
+dnl Copyright (C) 1995-2014, 2016 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
@@ -161,13 +161,18 @@ changequote([,])dnl
[AC_LANG_PROGRAM(
[[
#include <libintl.h>
-$gt_revision_test_code
+#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
extern int _nl_msg_cat_cntr;
extern int *_nl_domain_bindings;
+#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
+#else
+#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
+#endif
+$gt_revision_test_code
]],
[[
bindtextdomain ("", "");
-return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
+return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
]])],
[eval "$gt_func_gnugettext_libc=yes"],
[eval "$gt_func_gnugettext_libc=no"])])
@@ -193,17 +198,22 @@ return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_b
[AC_LANG_PROGRAM(
[[
#include <libintl.h>
-$gt_revision_test_code
+#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
extern int _nl_msg_cat_cntr;
extern
#ifdef __cplusplus
"C"
#endif
const char *_nl_expand_alias (const char *);
+#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
+#else
+#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
+#endif
+$gt_revision_test_code
]],
[[
bindtextdomain ("", "");
-return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
+return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
]])],
[eval "$gt_func_gnugettext_libintl=yes"],
[eval "$gt_func_gnugettext_libintl=no"])
@@ -214,17 +224,22 @@ return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_a
[AC_LANG_PROGRAM(
[[
#include <libintl.h>
-$gt_revision_test_code
+#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
extern int _nl_msg_cat_cntr;
extern
#ifdef __cplusplus
"C"
#endif
const char *_nl_expand_alias (const char *);
+#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
+#else
+#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
+#endif
+$gt_revision_test_code
]],
[[
bindtextdomain ("", "");
-return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
+return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
]])],
[LIBINTL="$LIBINTL $LIBICONV"
LTLIBINTL="$LTLIBINTL $LTLIBICONV"
diff --git a/m4/iconv.m4 b/m4/iconv.m4
index 4e37363..aa159c5 100644
--- a/m4/iconv.m4
+++ b/m4/iconv.m4
@@ -1,5 +1,5 @@
# iconv.m4 serial 19 (gettext-0.18.2)
-dnl Copyright (C) 2000-2002, 2007-2014 Free Software Foundation, Inc.
+dnl Copyright (C) 2000-2002, 2007-2014, 2016 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
diff --git a/m4/intlmacosx.m4 b/m4/intlmacosx.m4
index bba7b3d..aca924c 100644
--- a/m4/intlmacosx.m4
+++ b/m4/intlmacosx.m4
@@ -1,5 +1,5 @@
# intlmacosx.m4 serial 5 (gettext-0.18.2)
-dnl Copyright (C) 2004-2014 Free Software Foundation, Inc.
+dnl Copyright (C) 2004-2014, 2016 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
diff --git a/m4/lib-ld.m4 b/m4/lib-ld.m4
index 91ca911..6209de6 100644
--- a/m4/lib-ld.m4
+++ b/m4/lib-ld.m4
@@ -1,5 +1,5 @@
# lib-ld.m4 serial 6
-dnl Copyright (C) 1996-2003, 2009-2015 Free Software Foundation, Inc.
+dnl Copyright (C) 1996-2003, 2009-2016 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
diff --git a/m4/lib-link.m4 b/m4/lib-link.m4
index d8d5d1f..2f51855 100644
--- a/m4/lib-link.m4
+++ b/m4/lib-link.m4
@@ -1,5 +1,5 @@
# lib-link.m4 serial 26 (gettext-0.18.2)
-dnl Copyright (C) 2001-2015 Free Software Foundation, Inc.
+dnl Copyright (C) 2001-2016 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
diff --git a/m4/lib-prefix.m4 b/m4/lib-prefix.m4
index 0465f47..6851031 100644
--- a/m4/lib-prefix.m4
+++ b/m4/lib-prefix.m4
@@ -1,5 +1,5 @@
# lib-prefix.m4 serial 7 (gettext-0.18)
-dnl Copyright (C) 2001-2005, 2008-2015 Free Software Foundation, Inc.
+dnl Copyright (C) 2001-2005, 2008-2016 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
diff --git a/m4/nls.m4 b/m4/nls.m4
index 93df8d3..afdb9ca 100644
--- a/m4/nls.m4
+++ b/m4/nls.m4
@@ -1,6 +1,6 @@
# nls.m4 serial 5 (gettext-0.18)
-dnl Copyright (C) 1995-2003, 2005-2006, 2008-2014 Free Software Foundation,
-dnl Inc.
+dnl Copyright (C) 1995-2003, 2005-2006, 2008-2014, 2016 Free Software
+dnl Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
diff --git a/m4/po.m4 b/m4/po.m4
index d4bc262..c5a2f6b 100644
--- a/m4/po.m4
+++ b/m4/po.m4
@@ -1,5 +1,5 @@
# po.m4 serial 24 (gettext-0.19)
-dnl Copyright (C) 1995-2014 Free Software Foundation, Inc.
+dnl Copyright (C) 1995-2014, 2016 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
diff --git a/m4/progtest.m4 b/m4/progtest.m4
index 0921e1e..9ace7c3 100644
--- a/m4/progtest.m4
+++ b/m4/progtest.m4
@@ -1,5 +1,5 @@
# progtest.m4 serial 7 (gettext-0.18.2)
-dnl Copyright (C) 1996-2003, 2005, 2008-2015 Free Software Foundation, Inc.
+dnl Copyright (C) 1996-2003, 2005, 2008-2016 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
diff --git a/po/LINGUAS b/po/LINGUAS
index 2b5d62b..8dd4768 100644
--- a/po/LINGUAS
+++ b/po/LINGUAS
@@ -32,6 +32,7 @@ ja
kk
km
ko
+ku
ky
lt
lv
diff --git a/po/ku.gmo b/po/ku.gmo
new file mode 100644
index 0000000..68ebe4c
--- /dev/null
+++ b/po/ku.gmo
Binary files differ
diff --git a/po/ku.po b/po/ku.po
new file mode 100644
index 0000000..73a4e52
--- /dev/null
+++ b/po/ku.po
@@ -0,0 +1,727 @@
+# Kurdish translation for simple-scan
+# Copyright (c) 2017 Rosetta Contributors and Canonical Ltd 2017
+# This file is distributed under the same license as the simple-scan package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, 2017.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: simple-scan\n"
+"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
+"POT-Creation-Date: 2016-07-29 12:47+1200\n"
+"PO-Revision-Date: 2017-02-28 22:55+0000\n"
+"Last-Translator: Euphrates <f_akad@hotmail.com>\n"
+"Language-Team: Kurdish <ku@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Launchpad-Export-Date: 2017-03-01 05:37+0000\n"
+"X-Generator: Launchpad (build 18329)\n"
+
+#. Button to submit authorization dialog
+#: data/simple-scan.ui:24
+msgid "_Authorize"
+msgstr "_Rayedar bike"
+
+#. Label beside username entry
+#: data/simple-scan.ui:102
+msgid "_Username for resource:"
+msgstr ""
+
+#. Label beside password entry
+#: data/simple-scan.ui:117
+msgid "_Password:"
+msgstr "_Şîfre:"
+
+#. Combo box label for scanning both sides of a page
+#: data/simple-scan.ui:188
+msgid "Front and Back"
+msgstr ""
+
+#. Combo box label for scanning the front side of a page
+#: data/simple-scan.ui:192
+msgid "Front"
+msgstr "Pêş"
+
+#. Combo box label for scanning the back side of a page
+#: data/simple-scan.ui:196
+msgid "Back"
+msgstr "Paş"
+
+#. Title of scan window
+#: data/simple-scan.ui:225 data/simple-scan.ui:809
+#: data/simple-scan.desktop.in:3 data/simple-scan.appdata.xml.in:6
+msgid "Simple Scan"
+msgstr ""
+
+#. Label on document menu (contains actions for this document, e.g. save, print)
+#: data/simple-scan.ui:241
+msgid "_Document"
+msgstr ""
+
+#. Scan menu item
+#: data/simple-scan.ui:260
+msgid "Sc_an"
+msgstr ""
+
+#. Scan menu item to scan a single page from the scanner
+#. Toolbar scan menu item to scan a single page from the scanner
+#: data/simple-scan.ui:273 data/simple-scan.ui:1306 data/simple-scan.ui:1356
+msgid "Single _Page"
+msgstr ""
+
+#. Scan menu item to scan all pages from a document feeder
+#. Toolbar scan menu item to scan all pages from a document feeder
+#: data/simple-scan.ui:283 data/simple-scan.ui:1315 data/simple-scan.ui:1365
+msgid "All Pages From _Feeder"
+msgstr ""
+
+#. Menu entry to stop current scan
+#: data/simple-scan.ui:294
+msgid "_Stop Scan"
+msgstr ""
+
+#: data/simple-scan.ui:310 data/simple-scan.ui:1330 data/simple-scan.ui:1380
+msgid "Text"
+msgstr "Nivîs"
+
+#: data/simple-scan.ui:320 data/simple-scan.ui:1340 data/simple-scan.ui:1390
+msgid "Photo"
+msgstr "Wêne"
+
+#. Title of dialog to reorder pages
+#: ../src/ui.vala:1183 ../src/ui.vala:1841
+msgid "Reorder Pages"
+msgstr ""
+
+#. Label on email menu item
+#: data/simple-scan.ui:367
+msgid "_Email"
+msgstr ""
+
+#. Page menu (contains action for each page, e.g. delete, crop)
+#: data/simple-scan.ui:430
+msgid "_Page"
+msgstr ""
+
+#. Menu item to rotate page to left (anti-clockwise)
+#: data/simple-scan.ui:440
+msgid "Rotate _Left"
+msgstr "Bizivirîne _Çepê"
+
+#. Menu item to rotate page to right (clockwise)
+#: data/simple-scan.ui:450
+msgid "Rotate _Right"
+msgstr "Bizivirîne _Rastê"
+
+#. Label for page crop submenu
+#: data/simple-scan.ui:460
+msgid "_Crop"
+msgstr "_Jê Bike"
+
+#. Radio button for no crop
+#: data/simple-scan.ui:470
+msgid "_None"
+msgstr "_Tune"
+
+#. Radio button for cropping page to A4 size
+#: data/simple-scan.ui:481
+msgid "A_4"
+msgstr "A_4"
+
+#. Radio button for cropping page to A5 size
+#: data/simple-scan.ui:492
+msgid "A_5"
+msgstr "A_5"
+
+#. Radio button for cropping page to A6 size
+#: data/simple-scan.ui:503
+msgid "A_6"
+msgstr "A_6"
+
+#. Radio button for cropping page to US letter size
+#: data/simple-scan.ui:514
+msgid "_Letter"
+msgstr ""
+
+#. Radio button for cropping to page to US legal size
+#: data/simple-scan.ui:525
+msgid "Le_gal"
+msgstr ""
+
+#. Radio button for cropping page to 4x6 inch
+#: data/simple-scan.ui:536
+msgid "4×6"
+msgstr "4×6"
+
+#. Radio button for cropping to custom page size
+#: data/simple-scan.ui:547
+msgid "_Custom"
+msgstr "_Taybet"
+
+#. Menu item to rotate the crop area
+#: data/simple-scan.ui:565
+msgid "_Rotate Crop"
+msgstr ""
+
+#. Menu item to move the selected page to the left
+#: data/simple-scan.ui:578
+msgid "Move Left"
+msgstr ""
+
+#. Menu item to move the selected page to the right
+#: data/simple-scan.ui:587
+msgid "Move Right"
+msgstr ""
+
+#. Label on help menu
+#: data/simple-scan.ui:624
+msgid "_Help"
+msgstr "_Alîkarî"
+
+#. Help|Contents menu
+#: data/simple-scan.ui:632
+msgid "_Contents"
+msgstr "_Naverok"
+
+#. Tooltip for new document button
+#: data/simple-scan.ui:674 data/simple-scan.ui:885
+msgid "Start a new document"
+msgstr ""
+
+#: data/simple-scan.ui:675
+msgid "New"
+msgstr "Nû"
+
+#. Tooltip for scan toolbar button
+#: data/simple-scan.ui:689 data/simple-scan.ui:836
+msgid "Scan a single page from the scanner"
+msgstr ""
+
+#. Label on scan toolbar item
+#: data/simple-scan.ui:691 data/simple-scan.ui:837
+msgid "Scan"
+msgstr "Venihêre"
+
+#. Tooltip for save toolbar button
+#: data/simple-scan.ui:707 data/simple-scan.ui:864
+msgid "Save document to a file"
+msgstr ""
+
+#: ../src/ui.vala:1842
+msgid "Save"
+msgstr "Tomar Bike"
+
+#. Tooltip for stop button
+#: data/simple-scan.ui:724 data/simple-scan.ui:824
+msgid "Stop the current scan"
+msgstr ""
+
+#: data/simple-scan.ui:725 data/simple-scan.ui:825
+msgid "Stop"
+msgstr "Sekinandin"
+
+#. Tooltip for rotate left (counter-clockwise) button
+#: data/simple-scan.ui:749 data/simple-scan.ui:936
+msgid "Rotate the page to the left (counter-clockwise)"
+msgstr ""
+
+#. Label on rotate page left (anti-clockwise) item
+#: data/simple-scan.ui:750
+msgid "Rotate Left"
+msgstr "Bizivirîne Çepê"
+
+#. Tooltip for rotate right (clockwise) button
+#: data/simple-scan.ui:764 data/simple-scan.ui:914
+msgid "Rotate the page to the right (clockwise)"
+msgstr ""
+
+#. Label on rotate page right (clockwise) item
+#: data/simple-scan.ui:765
+msgid "Rotate Right"
+msgstr "Bizivirîne Rastê"
+
+#: data/simple-scan.ui:779 data/simple-scan.ui:963
+msgid "Crop the selected page"
+msgstr ""
+
+#: data/simple-scan.ui:781
+msgid "Crop"
+msgstr "Bibire"
+
+#: ../src/ui.vala:1849
+msgid "Preferences"
+msgstr "Vebijêrk"
+
+#. Label beside scan source combo box
+#: data/simple-scan.ui:1048
+msgid "Scan S_ource:"
+msgstr ""
+
+#. Label beside scan source combo box
+#: data/simple-scan.ui:1079
+msgid "_Text Resolution:"
+msgstr ""
+
+#. Label beside scan source combo box
+#: data/simple-scan.ui:1095
+msgid "_Photo Resolution:"
+msgstr ""
+
+#. Label beside scan side combo box
+#: data/simple-scan.ui:1139
+msgid "Scan Side:"
+msgstr ""
+
+#. Label beside page size combo box
+#: data/simple-scan.ui:1169
+msgid "Page Size:"
+msgstr ""
+
+#. Label beside brightness scale
+#: data/simple-scan.ui:1199
+msgid "Brightness:"
+msgstr "Biriqandin:"
+
+#. Label beside contrast scale
+#: data/simple-scan.ui:1229
+msgid "Contrast:"
+msgstr "Kontrast:"
+
+#. Label beside quality scale
+#: data/simple-scan.ui:1260
+msgid "Quality:"
+msgstr "çawanî:"
+
+#: data/simple-scan.desktop.in:4
+msgid "Document Scanner"
+msgstr ""
+
+#: data/simple-scan.desktop.in:5
+msgid "Scan Documents"
+msgstr ""
+
+#: data/simple-scan.desktop.in:6
+msgid "scan;scanner;flatbed;adf;"
+msgstr ""
+
+#: data/simple-scan.desktop.in:8
+msgid "scanner"
+msgstr "Skener"
+
+#: data/simple-scan.appdata.xml.in:8
+msgid ""
+"A really easy way to scan both documents and photos. You can crop out the "
+"bad parts of a photo and rotate it if it is the wrong way round. You can "
+"print your scans, export them to pdf, or save them in a range of image "
+"formats."
+msgstr ""
+
+#: data/simple-scan.appdata.xml.in:13
+msgid ""
+"Simple Scan uses the SANE framework to support most existing scanners."
+msgstr ""
+
+#. Error displayed when no scanners to scan with
+#: ../src/scanner.vala:841
+msgid "No scanners available. Please connect a scanner."
+msgstr ""
+
+#. Error displayed when cannot connect to scanner
+#: ../src/scanner.vala:871
+msgid "Unable to connect to scanner"
+msgstr ""
+
+#. Error display when unable to start scan
+#: ../src/scanner.vala:1223
+msgid "Unable to start scan"
+msgstr ""
+
+#. Error displayed when communication with scanner broken
+#: ../src/scanner.vala:1236 ../src/scanner.vala:1333
+msgid "Error communicating with scanner"
+msgstr ""
+
+#. Help string for command line --version flag
+#: ../src/simple-scan.vala:21
+msgid "Show release version"
+msgstr "îlan version bibînin"
+
+#. Help string for command line --debug flag
+#: ../src/simple-scan.vala:24
+msgid "Print debugging messages"
+msgstr ""
+
+#: ../src/simple-scan.vala:26
+msgid "Fix PDF files generated with older versions of Simple Scan"
+msgstr ""
+
+#. Title of error dialog when scan failed
+#: ../src/simple-scan.vala:391
+msgid "Failed to scan"
+msgstr ""
+
+#. Arguments and description for --help text
+#: ../src/simple-scan.vala:621
+msgid "[DEVICE...] - Scanning utility"
+msgstr ""
+
+#. Text printed out when an unknown command-line argument provided
+#: ../src/simple-scan.vala:632
+#, c-format
+msgid "Run '%s --help' to see a full list of available command line options."
+msgstr ""
+
+#: ../src/ui.vala:318 ../src/ui.vala:1602 ../src/ui.vala:1887
+msgid "_Close"
+msgstr "_Bigire"
+
+#. Label in authorization dialog. '%s' is replaced with the name of the resource requesting authorization
+#: ../src/ui.vala:327
+#, c-format
+msgid "Username and password required to access '%s'"
+msgstr ""
+
+#. Warning displayed when no scanners are detected
+#: ../src/ui.vala:375
+msgid "No scanners detected"
+msgstr ""
+
+#. Hint to user on why there are no scanners detected
+#: ../src/ui.vala:377
+msgid "Please check your scanner is connected and powered on"
+msgstr ""
+
+#. Warning displayed when no drivers are installed but a compatible scanner is detected
+#: ../src/ui.vala:382
+msgid "Additional software needed"
+msgstr ""
+
+#. Instructions to install driver software
+#: ../src/ui.vala:384
+msgid "You need to install driver software for your scanner."
+msgstr ""
+
+#. Save dialog: Dialog title
+#: ../src/ui.vala:506 ../src/ui.vala:1843
+msgid "Save As..."
+msgstr "Cuda Tomar Bike..."
+
+#: ../src/ui.vala:509 ../src/ui.vala:675
+msgid "_Cancel"
+msgstr "_Betal"
+
+#: ../src/ui.vala:510 ../src/ui.vala:676
+msgid "_Save"
+msgstr "_Tomar bike"
+
+#. Default filename to use when saving document
+#: ../src/ui.vala:516
+msgid "Scanned Document.pdf"
+msgstr ""
+
+#. Save dialog: Filter name to show only image files
+#: ../src/ui.vala:521
+msgid "Image Files"
+msgstr "Pelên Wêne"
+
+#. Save dialog: Filter name to show all files
+#: ../src/ui.vala:527
+msgid "All Files"
+msgstr "Hemû Pel"
+
+#. Save dialog: Label for saving in PDF format
+#: ../src/ui.vala:536
+msgid "PDF (multi-page document)"
+msgstr ""
+
+#. Save dialog: Label for saving in JPEG format
+#: ../src/ui.vala:542
+msgid "JPEG (compressed)"
+msgstr ""
+
+#. Save dialog: Label for saving in PNG format
+#: ../src/ui.vala:548
+msgid "PNG (lossless)"
+msgstr ""
+
+#. Label in save dialog beside combo box to choose file format (PDF, JPEG, PNG)
+#: ../src/ui.vala:557
+msgid "File format:"
+msgstr "Formata pelan:"
+
+#. Title of error dialog when save failed
+#: ../src/ui.vala:650
+msgid "Failed to save file"
+msgstr ""
+
+#. Text in dialog warning when a document is about to be lost
+#: ../src/ui.vala:673
+msgid "If you don't save, changes will be permanently lost."
+msgstr "Ger hûn tomar nekin, wê guhertin heta hetayê wenda bibin."
+
+#. Text in dialog warning when a document is about to be lost
+#: ../src/ui.vala:708
+msgid "Save current document?"
+msgstr ""
+
+#. Button in dialog to create new document and discard unsaved document
+#: ../src/ui.vala:710
+msgid "Discard Changes"
+msgstr "Guhertinan Jê Bibe"
+
+#. Error message display when unable to save image for preview
+#: ../src/ui.vala:992
+msgid "Unable to save image for preview"
+msgstr ""
+
+#. Error message display when unable to preview image
+#: ../src/ui.vala:1004
+msgid "Unable to open image preview application"
+msgstr ""
+
+#. Label on button for combining sides in reordering dialog
+#: ../src/ui.vala:1206
+msgid "Combine sides"
+msgstr ""
+
+#. Label on button for combining sides in reverse order in reordering dialog
+#: ../src/ui.vala:1216
+msgid "Combine sides (reverse)"
+msgstr ""
+
+#. Label on button for reversing in reordering dialog
+#: ../src/ui.vala:1226
+msgid "Reverse"
+msgstr ""
+
+#. Label on button for cancelling page reordering dialog
+#: ../src/ui.vala:1236
+msgid "Keep unchanged"
+msgstr ""
+
+#. Error message displayed when unable to launch help browser
+#: ../src/ui.vala:1451
+msgid "Unable to open help file"
+msgstr ""
+
+#. The license this software is under (GPL3+)
+#: ../src/ui.vala:1472
+msgid ""
+"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"
+"(at your option) any later version.\n"
+"\n"
+"This program is distributed in the hope that it will be useful,\n"
+"but WITHOUT ANY WARRANTY; without even the implied warranty of\n"
+"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n"
+"GNU General Public License for more details.\n"
+"\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/>."
+msgstr ""
+
+#. Title of about dialog
+#: ../src/ui.vala:1475
+msgid "About Simple Scan"
+msgstr ""
+
+#. Description of program
+#: ../src/ui.vala:1478
+msgid "Simple document scanning tool"
+msgstr ""
+
+#: ../src/ui.vala:1487
+msgid "translator-credits"
+msgstr ""
+"Launchpad Contributions:\n"
+" Euphrates https://launchpad.net/~euphrates\n"
+" Rokar ✌ https://launchpad.net/~rokarali"
+
+#. Text in dialog warning when a document is about to be lost
+#: ../src/ui.vala:1509
+msgid "Save document before quitting?"
+msgstr ""
+
+#. Button in dialog to quit and discard unsaved document
+#: ../src/ui.vala:1511
+msgid "Quit without Saving"
+msgstr ""
+
+#. Message to indicate a Brother scanner has been detected
+#: ../src/ui.vala:1579
+msgid "You appear to have a Brother scanner."
+msgstr ""
+
+#. Instructions on how to install Brother scanner drivers
+#: ../src/ui.vala:1581
+msgid ""
+"Drivers for this are available on the <a "
+"href=\"http://support.brother.com\">Brother website</a>."
+msgstr ""
+
+#. Message to indicate a Samsung scanner has been detected
+#: ../src/ui.vala:1585
+msgid "You appear to have a Samsung scanner."
+msgstr ""
+
+#. Instructions on how to install Samsung scanner drivers
+#: ../src/ui.vala:1587
+msgid ""
+"Drivers for this are available on the <a "
+"href=\"http://samsung.com/support\">Samsung website</a>."
+msgstr ""
+
+#. Message to indicate a HP scanner has been detected
+#: ../src/ui.vala:1591
+msgid "You appear to have an HP scanner."
+msgstr ""
+
+#. Message to indicate an Epson scanner has been detected
+#: ../src/ui.vala:1596
+msgid "You appear to have an Epson scanner."
+msgstr ""
+
+#. Instructions on how to install Epson scanner drivers
+#: ../src/ui.vala:1598
+msgid ""
+"Drivers for this are available on the <a "
+"href=\"http://support.epson.com\">Epson website</a>."
+msgstr ""
+
+#. Title of dialog giving instructions on how to install drivers
+#: ../src/ui.vala:1602
+msgid "Install drivers"
+msgstr ""
+
+#. Message in driver install dialog
+#: ../src/ui.vala:1633
+msgid "Once installed you will need to restart Simple Scan."
+msgstr ""
+
+#. Label shown while installing drivers
+#: ../src/ui.vala:1645
+msgid "Installing drivers..."
+msgstr ""
+
+#. Label shown once drivers successfully installed
+#: ../src/ui.vala:1653
+msgid "Drivers installed successfully!"
+msgstr ""
+
+#. Label shown if failed to install drivers
+#: ../src/ui.vala:1663
+#, c-format
+msgid "Failed to install drivers (error code %d)."
+msgstr ""
+
+#. Label shown if failed to install drivers
+#: ../src/ui.vala:1669
+msgid "Failed to install drivers."
+msgstr ""
+
+#. Label shown to prompt user to install packages (when PackageKit not available)
+#: ../src/ui.vala:1676
+#, c-format
+msgid "You need to install the %s package(s)."
+msgstr ""
+
+#. Preferences dialog: Label for default resolution in resolution list
+#: ../src/ui.vala:1784
+#, c-format
+msgid "%d dpi (default)"
+msgstr ""
+
+#. Preferences dialog: Label for minimum resolution in resolution list
+#: ../src/ui.vala:1787
+#, c-format
+msgid "%d dpi (draft)"
+msgstr ""
+
+#. Preferences dialog: Label for maximum resolution in resolution list
+#: ../src/ui.vala:1790
+#, c-format
+msgid "%d dpi (high resolution)"
+msgstr ""
+
+#. Preferences dialog: Label for resolution value in resolution list (dpi = dots per inch)
+#: ../src/ui.vala:1793
+#, c-format
+msgid "%d dpi"
+msgstr ""
+
+#: ../src/ui.vala:1835
+msgid "New Document"
+msgstr "Pelgeya nû"
+
+#: ../src/ui.vala:1840
+msgid "Document"
+msgstr "Belge"
+
+#: ../src/ui.vala:1844
+msgid "Email..."
+msgstr ""
+
+#: ../src/ui.vala:1845
+msgid "Print..."
+msgstr "Çapkirin..."
+
+#: ../src/ui.vala:1853
+msgid "Help"
+msgstr "Alîkarî"
+
+#: ../src/ui.vala:1854
+msgid "About"
+msgstr "Der barê"
+
+#: ../src/ui.vala:1855
+msgid "Quit"
+msgstr "Derkeve"
+
+#. Button in error infobar to open preferences dialog and change scanner
+#: ../src/ui.vala:1889
+msgid "Change _Scanner"
+msgstr ""
+
+#. Button in error infobar to prompt user to install drivers
+#: ../src/ui.vala:1891
+msgid "_Install Drivers"
+msgstr ""
+
+#. Combo box value for automatic paper size
+#: ../src/ui.vala:1897
+msgid "Automatic"
+msgstr "Bixwe"
+
+#: ../src/ui.vala:1947
+msgid "Darker"
+msgstr ""
+
+#: ../src/ui.vala:1949
+msgid "Lighter"
+msgstr ""
+
+#: ../src/ui.vala:1957
+msgid "Less"
+msgstr "Kêmtir"
+
+#: ../src/ui.vala:1959
+msgid "More"
+msgstr "Bêhtir"
+
+#: ../src/ui.vala:1967
+msgid "Minimum"
+msgstr ""
+
+#: ../src/ui.vala:1969
+msgid "Maximum"
+msgstr ""
+
+#: ../src/ui.vala:2008
+msgid "Saving document..."
+msgstr ""
+
+#: ../src/ui.vala:2182
+#, c-format
+msgid "Saving page %d out of %d"
+msgstr ""
diff --git a/src/autosave-manager.c b/src/autosave-manager.c
index 8dab65b..5ea1792 100644
--- a/src/autosave-manager.c
+++ b/src/autosave-manager.c
@@ -1,4 +1,4 @@
-/* autosave-manager.c generated by valac 0.34.2, the Vala compiler
+/* autosave-manager.c generated by valac 0.34.6, the Vala compiler
* generated from autosave-manager.vala, do not modify */
/*
@@ -963,6 +963,7 @@ static gchar* autosave_manager_get_value (AutosaveManager* self, GKeyFile* file,
static gint autosave_manager_get_integer (AutosaveManager* self, GKeyFile* file, const gchar* group_name, const gchar* key, gint _default_) {
gint result = 0;
+ gint _tmp6_ = 0;
GError * _inner_error_ = NULL;
#line 169 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
g_return_val_if_fail (self != NULL, 0);
@@ -972,7 +973,7 @@ static gint autosave_manager_get_integer (AutosaveManager* self, GKeyFile* file,
g_return_val_if_fail (group_name != NULL, 0);
#line 169 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
g_return_val_if_fail (key != NULL, 0);
-#line 975 "autosave-manager.c"
+#line 976 "autosave-manager.c"
{
gint _tmp0_ = 0;
GKeyFile* _tmp1_ = NULL;
@@ -991,14 +992,14 @@ static gint autosave_manager_get_integer (AutosaveManager* self, GKeyFile* file,
_tmp0_ = _tmp4_;
#line 173 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 994 "autosave-manager.c"
+#line 995 "autosave-manager.c"
goto __catch32_g_error;
}
#line 173 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
result = _tmp0_;
#line 173 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
return result;
-#line 1001 "autosave-manager.c"
+#line 1002 "autosave-manager.c"
}
goto __finally32;
__catch32_g_error:
@@ -1017,7 +1018,7 @@ static gint autosave_manager_get_integer (AutosaveManager* self, GKeyFile* file,
_g_error_free0 (e);
#line 177 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
return result;
-#line 1020 "autosave-manager.c"
+#line 1021 "autosave-manager.c"
}
__finally32:
#line 171 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
@@ -1025,13 +1026,14 @@ static gint autosave_manager_get_integer (AutosaveManager* self, GKeyFile* file,
#line 171 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
g_clear_error (&_inner_error_);
#line 171 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
- return 0;
-#line 1029 "autosave-manager.c"
+ return _tmp6_;
+#line 1030 "autosave-manager.c"
}
static gboolean autosave_manager_get_boolean (AutosaveManager* self, GKeyFile* file, const gchar* group_name, const gchar* key, gboolean _default_) {
gboolean result = FALSE;
+ gboolean _tmp6_ = FALSE;
GError * _inner_error_ = NULL;
#line 181 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
g_return_val_if_fail (self != NULL, FALSE);
@@ -1041,7 +1043,7 @@ static gboolean autosave_manager_get_boolean (AutosaveManager* self, GKeyFile* f
g_return_val_if_fail (group_name != NULL, FALSE);
#line 181 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
g_return_val_if_fail (key != NULL, FALSE);
-#line 1044 "autosave-manager.c"
+#line 1046 "autosave-manager.c"
{
gboolean _tmp0_ = FALSE;
GKeyFile* _tmp1_ = NULL;
@@ -1060,14 +1062,14 @@ static gboolean autosave_manager_get_boolean (AutosaveManager* self, GKeyFile* f
_tmp0_ = _tmp4_;
#line 185 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1063 "autosave-manager.c"
+#line 1065 "autosave-manager.c"
goto __catch33_g_error;
}
#line 185 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
result = _tmp0_;
#line 185 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
return result;
-#line 1070 "autosave-manager.c"
+#line 1072 "autosave-manager.c"
}
goto __finally33;
__catch33_g_error:
@@ -1086,7 +1088,7 @@ static gboolean autosave_manager_get_boolean (AutosaveManager* self, GKeyFile* f
_g_error_free0 (e);
#line 189 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
return result;
-#line 1089 "autosave-manager.c"
+#line 1091 "autosave-manager.c"
}
__finally33:
#line 183 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
@@ -1094,8 +1096,8 @@ static gboolean autosave_manager_get_boolean (AutosaveManager* self, GKeyFile* f
#line 183 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
g_clear_error (&_inner_error_);
#line 183 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
- return FALSE;
-#line 1098 "autosave-manager.c"
+ return _tmp6_;
+#line 1100 "autosave-manager.c"
}
@@ -1111,17 +1113,17 @@ void autosave_manager_cleanup (AutosaveManager* self) {
_tmp0_ = self->priv->update_timeout;
#line 197 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
if (_tmp0_ > ((guint) 0)) {
-#line 1114 "autosave-manager.c"
+#line 1116 "autosave-manager.c"
guint _tmp1_ = 0U;
#line 198 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
_tmp1_ = self->priv->update_timeout;
#line 198 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
g_source_remove (_tmp1_);
-#line 1120 "autosave-manager.c"
+#line 1122 "autosave-manager.c"
}
#line 199 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
self->priv->update_timeout = (guint) 0;
-#line 1124 "autosave-manager.c"
+#line 1126 "autosave-manager.c"
{
GDir* _tmp2_ = NULL;
const gchar* _tmp3_ = NULL;
@@ -1135,7 +1137,7 @@ void autosave_manager_cleanup (AutosaveManager* self) {
_tmp2_ = _tmp4_;
#line 204 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1138 "autosave-manager.c"
+#line 1140 "autosave-manager.c"
goto __catch34_g_error;
}
#line 204 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
@@ -1148,7 +1150,7 @@ void autosave_manager_cleanup (AutosaveManager* self) {
dir = _tmp5_;
#line 202 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
_g_dir_close0 (_tmp2_);
-#line 1151 "autosave-manager.c"
+#line 1153 "autosave-manager.c"
}
goto __finally34;
__catch34_g_error:
@@ -1172,7 +1174,7 @@ void autosave_manager_cleanup (AutosaveManager* self) {
_g_dir_close0 (dir);
#line 209 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
return;
-#line 1175 "autosave-manager.c"
+#line 1177 "autosave-manager.c"
}
__finally34:
#line 202 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
@@ -1185,11 +1187,11 @@ void autosave_manager_cleanup (AutosaveManager* self) {
g_clear_error (&_inner_error_);
#line 202 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
return;
-#line 1188 "autosave-manager.c"
+#line 1190 "autosave-manager.c"
}
#line 212 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
while (TRUE) {
-#line 1192 "autosave-manager.c"
+#line 1194 "autosave-manager.c"
gchar* filename = NULL;
GDir* _tmp8_ = NULL;
const gchar* _tmp9_ = NULL;
@@ -1216,7 +1218,7 @@ void autosave_manager_cleanup (AutosaveManager* self) {
_g_free0 (filename);
#line 216 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
break;
-#line 1219 "autosave-manager.c"
+#line 1221 "autosave-manager.c"
}
#line 217 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
_tmp12_ = autosave_manager_AUTOSAVE_DIR;
@@ -1234,25 +1236,25 @@ void autosave_manager_cleanup (AutosaveManager* self) {
_g_free0 (path);
#line 212 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
_g_free0 (filename);
-#line 1237 "autosave-manager.c"
+#line 1239 "autosave-manager.c"
}
#line 193 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
_g_dir_close0 (dir);
-#line 1241 "autosave-manager.c"
+#line 1243 "autosave-manager.c"
}
static void _autosave_manager_on_scan_finished_page_scan_finished (Page* _sender, gpointer self) {
#line 224 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
autosave_manager_on_scan_finished ((AutosaveManager*) self, _sender);
-#line 1248 "autosave-manager.c"
+#line 1250 "autosave-manager.c"
}
static void _autosave_manager_on_changed_page_crop_changed (Page* _sender, gpointer self) {
#line 225 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
autosave_manager_on_changed ((AutosaveManager*) self);
-#line 1255 "autosave-manager.c"
+#line 1257 "autosave-manager.c"
}
@@ -1271,7 +1273,7 @@ void autosave_manager_on_page_added (AutosaveManager* self, Page* page) {
_tmp1_ = page;
#line 225 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
g_signal_connect (_tmp1_, "crop-changed", (GCallback) _autosave_manager_on_changed_page_crop_changed, self);
-#line 1274 "autosave-manager.c"
+#line 1276 "autosave-manager.c"
}
@@ -1318,13 +1320,13 @@ void autosave_manager_on_page_removed (AutosaveManager* self, Page* page) {
_tmp8_ = filename;
#line 234 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
if (_tmp8_ != NULL) {
-#line 1321 "autosave-manager.c"
+#line 1323 "autosave-manager.c"
const gchar* _tmp9_ = NULL;
#line 235 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
_tmp9_ = filename;
#line 235 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
g_unlink (_tmp9_);
-#line 1327 "autosave-manager.c"
+#line 1329 "autosave-manager.c"
}
#line 236 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
_tmp10_ = self->priv->page_filenames;
@@ -1334,7 +1336,7 @@ void autosave_manager_on_page_removed (AutosaveManager* self, Page* page) {
g_hash_table_remove (_tmp10_, _tmp11_);
#line 228 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
_g_free0 (filename);
-#line 1337 "autosave-manager.c"
+#line 1339 "autosave-manager.c"
}
@@ -1350,7 +1352,7 @@ void autosave_manager_on_scan_finished (AutosaveManager* self, Page* page) {
autosave_manager_save_pixels (self, _tmp0_);
#line 242 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
autosave_manager_save (self, FALSE);
-#line 1353 "autosave-manager.c"
+#line 1355 "autosave-manager.c"
}
@@ -1359,7 +1361,7 @@ void autosave_manager_on_changed (AutosaveManager* self) {
g_return_if_fail (self != NULL);
#line 247 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
autosave_manager_save (self, TRUE);
-#line 1362 "autosave-manager.c"
+#line 1364 "autosave-manager.c"
}
@@ -1373,7 +1375,7 @@ void autosave_manager_on_cleared (AutosaveManager* self) {
g_hash_table_remove_all (_tmp0_);
#line 253 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
autosave_manager_save (self, TRUE);
-#line 1376 "autosave-manager.c"
+#line 1378 "autosave-manager.c"
}
@@ -1387,7 +1389,7 @@ static gboolean ___lambda4_ (AutosaveManager* self) {
result = FALSE;
#line 272 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
return result;
-#line 1390 "autosave-manager.c"
+#line 1392 "autosave-manager.c"
}
@@ -1396,7 +1398,7 @@ static gboolean ____lambda4__gsource_func (gpointer self) {
result = ___lambda4_ ((AutosaveManager*) self);
#line 268 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
return result;
-#line 1399 "autosave-manager.c"
+#line 1401 "autosave-manager.c"
}
@@ -1411,35 +1413,35 @@ static void autosave_manager_save (AutosaveManager* self, gboolean do_timeout) {
_tmp1_ = self->priv->update_timeout;
#line 258 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
if (_tmp1_ == ((guint) 0)) {
-#line 1414 "autosave-manager.c"
+#line 1416 "autosave-manager.c"
gboolean _tmp2_ = FALSE;
#line 258 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
_tmp2_ = do_timeout;
#line 258 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
_tmp0_ = _tmp2_;
-#line 1420 "autosave-manager.c"
+#line 1422 "autosave-manager.c"
} else {
#line 258 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
_tmp0_ = FALSE;
-#line 1424 "autosave-manager.c"
+#line 1426 "autosave-manager.c"
}
#line 258 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
if (_tmp0_) {
#line 259 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
g_debug ("autosave-manager.vala:259: Waiting to autosave...");
-#line 1430 "autosave-manager.c"
+#line 1432 "autosave-manager.c"
}
#line 262 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
_tmp3_ = self->priv->update_timeout;
#line 262 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
if (_tmp3_ > ((guint) 0)) {
-#line 1436 "autosave-manager.c"
+#line 1438 "autosave-manager.c"
guint _tmp4_ = 0U;
#line 263 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
_tmp4_ = self->priv->update_timeout;
#line 263 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
g_source_remove (_tmp4_);
-#line 1442 "autosave-manager.c"
+#line 1444 "autosave-manager.c"
}
#line 264 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
self->priv->update_timeout = (guint) 0;
@@ -1447,17 +1449,17 @@ static void autosave_manager_save (AutosaveManager* self, gboolean do_timeout) {
_tmp5_ = do_timeout;
#line 266 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
if (_tmp5_) {
-#line 1450 "autosave-manager.c"
+#line 1452 "autosave-manager.c"
guint _tmp6_ = 0U;
#line 268 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
_tmp6_ = g_timeout_add_full (G_PRIORITY_DEFAULT, (guint) 100, ____lambda4__gsource_func, autosave_manager_ref (self), autosave_manager_unref);
#line 268 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
self->priv->update_timeout = _tmp6_;
-#line 1456 "autosave-manager.c"
+#line 1458 "autosave-manager.c"
} else {
#line 276 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
autosave_manager_real_save (self);
-#line 1460 "autosave-manager.c"
+#line 1462 "autosave-manager.c"
}
}
@@ -1482,19 +1484,19 @@ static void autosave_manager_real_save (AutosaveManager* self) {
_tmp1_ = g_strdup ("");
#line 284 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
page_names = _tmp1_;
-#line 1485 "autosave-manager.c"
+#line 1487 "autosave-manager.c"
{
gint i = 0;
#line 285 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
i = 0;
-#line 1490 "autosave-manager.c"
+#line 1492 "autosave-manager.c"
{
gboolean _tmp2_ = FALSE;
#line 285 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
_tmp2_ = TRUE;
#line 285 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
while (TRUE) {
-#line 1497 "autosave-manager.c"
+#line 1499 "autosave-manager.c"
gint _tmp4_ = 0;
Book* _tmp5_ = NULL;
Book* _tmp6_ = NULL;
@@ -1594,13 +1596,13 @@ static void autosave_manager_real_save (AutosaveManager* self) {
gint _tmp108_ = 0;
#line 285 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
if (!_tmp2_) {
-#line 1597 "autosave-manager.c"
+#line 1599 "autosave-manager.c"
gint _tmp3_ = 0;
#line 285 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
_tmp3_ = i;
#line 285 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
i = _tmp3_ + 1;
-#line 1603 "autosave-manager.c"
+#line 1605 "autosave-manager.c"
}
#line 285 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
_tmp2_ = FALSE;
@@ -1618,7 +1620,7 @@ static void autosave_manager_real_save (AutosaveManager* self) {
if (!(((guint) _tmp4_) < _tmp8_)) {
#line 285 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
break;
-#line 1621 "autosave-manager.c"
+#line 1623 "autosave-manager.c"
}
#line 287 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
_tmp9_ = autosave_manager_get_book (self);
@@ -1642,7 +1644,7 @@ static void autosave_manager_real_save (AutosaveManager* self) {
_page_unref0 (page);
#line 291 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
continue;
-#line 1645 "autosave-manager.c"
+#line 1647 "autosave-manager.c"
}
#line 293 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
_tmp16_ = i;
@@ -1654,7 +1656,7 @@ static void autosave_manager_real_save (AutosaveManager* self) {
_tmp18_ = page_names;
#line 294 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
if (g_strcmp0 (_tmp18_, "") != 0) {
-#line 1657 "autosave-manager.c"
+#line 1659 "autosave-manager.c"
const gchar* _tmp19_ = NULL;
gchar* _tmp20_ = NULL;
#line 295 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
@@ -1665,7 +1667,7 @@ static void autosave_manager_real_save (AutosaveManager* self) {
_g_free0 (page_names);
#line 295 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
page_names = _tmp20_;
-#line 1668 "autosave-manager.c"
+#line 1670 "autosave-manager.c"
}
#line 296 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
_tmp21_ = page_names;
@@ -1763,7 +1765,7 @@ static void autosave_manager_real_save (AutosaveManager* self) {
switch (_tmp57_) {
#line 306 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
case SCAN_DIRECTION_TOP_TO_BOTTOM:
-#line 1766 "autosave-manager.c"
+#line 1768 "autosave-manager.c"
{
GKeyFile* _tmp58_ = NULL;
const gchar* _tmp59_ = NULL;
@@ -1775,11 +1777,11 @@ static void autosave_manager_real_save (AutosaveManager* self) {
g_key_file_set_value (_tmp58_, _tmp59_, "scan-direction", "TOP_TO_BOTTOM");
#line 310 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
break;
-#line 1778 "autosave-manager.c"
+#line 1780 "autosave-manager.c"
}
#line 306 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
case SCAN_DIRECTION_LEFT_TO_RIGHT:
-#line 1782 "autosave-manager.c"
+#line 1784 "autosave-manager.c"
{
GKeyFile* _tmp60_ = NULL;
const gchar* _tmp61_ = NULL;
@@ -1791,11 +1793,11 @@ static void autosave_manager_real_save (AutosaveManager* self) {
g_key_file_set_value (_tmp60_, _tmp61_, "scan-direction", "LEFT_TO_RIGHT");
#line 313 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
break;
-#line 1794 "autosave-manager.c"
+#line 1796 "autosave-manager.c"
}
#line 306 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
case SCAN_DIRECTION_BOTTOM_TO_TOP:
-#line 1798 "autosave-manager.c"
+#line 1800 "autosave-manager.c"
{
GKeyFile* _tmp62_ = NULL;
const gchar* _tmp63_ = NULL;
@@ -1807,11 +1809,11 @@ static void autosave_manager_real_save (AutosaveManager* self) {
g_key_file_set_value (_tmp62_, _tmp63_, "scan-direction", "BOTTOM_TO_TOP");
#line 316 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
break;
-#line 1810 "autosave-manager.c"
+#line 1812 "autosave-manager.c"
}
#line 306 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
case SCAN_DIRECTION_RIGHT_TO_LEFT:
-#line 1814 "autosave-manager.c"
+#line 1816 "autosave-manager.c"
{
GKeyFile* _tmp64_ = NULL;
const gchar* _tmp65_ = NULL;
@@ -1823,12 +1825,12 @@ static void autosave_manager_real_save (AutosaveManager* self) {
g_key_file_set_value (_tmp64_, _tmp65_, "scan-direction", "RIGHT_TO_LEFT");
#line 319 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
break;
-#line 1826 "autosave-manager.c"
+#line 1828 "autosave-manager.c"
}
default:
#line 306 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
break;
-#line 1831 "autosave-manager.c"
+#line 1833 "autosave-manager.c"
}
#line 321 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
_tmp67_ = page;
@@ -1842,7 +1844,7 @@ static void autosave_manager_real_save (AutosaveManager* self) {
if (_tmp66_ == NULL) {
#line 321 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
_tmp66_ = "";
-#line 1845 "autosave-manager.c"
+#line 1847 "autosave-manager.c"
}
#line 321 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
_tmp70_ = file;
@@ -1862,7 +1864,7 @@ static void autosave_manager_real_save (AutosaveManager* self) {
if (_tmp72_ == NULL) {
#line 322 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
_tmp72_ = "";
-#line 1865 "autosave-manager.c"
+#line 1867 "autosave-manager.c"
}
#line 322 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
_tmp76_ = file;
@@ -1894,7 +1896,7 @@ static void autosave_manager_real_save (AutosaveManager* self) {
if (_tmp83_ == NULL) {
#line 324 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
_tmp83_ = "";
-#line 1897 "autosave-manager.c"
+#line 1899 "autosave-manager.c"
}
#line 324 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
_tmp87_ = file;
@@ -1954,7 +1956,7 @@ static void autosave_manager_real_save (AutosaveManager* self) {
_g_free0 (page_name);
#line 285 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
_page_unref0 (page);
-#line 1957 "autosave-manager.c"
+#line 1959 "autosave-manager.c"
}
}
}
@@ -1964,7 +1966,7 @@ static void autosave_manager_real_save (AutosaveManager* self) {
_tmp110_ = page_names;
#line 330 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
g_key_file_set_value (_tmp109_, "simple-scan", "pages", _tmp110_);
-#line 1967 "autosave-manager.c"
+#line 1969 "autosave-manager.c"
{
const gchar* _tmp111_ = NULL;
const gchar* _tmp112_ = NULL;
@@ -1989,7 +1991,7 @@ static void autosave_manager_real_save (AutosaveManager* self) {
_g_free0 (_tmp115_);
#line 335 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1992 "autosave-manager.c"
+#line 1994 "autosave-manager.c"
goto __catch35_g_error;
}
}
@@ -2011,7 +2013,7 @@ static void autosave_manager_real_save (AutosaveManager* self) {
g_warning ("autosave-manager.vala:339: Failed to write autosave: %s", _tmp117_);
#line 332 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
_g_error_free0 (e);
-#line 2014 "autosave-manager.c"
+#line 2016 "autosave-manager.c"
}
__finally35:
#line 332 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
@@ -2026,13 +2028,13 @@ static void autosave_manager_real_save (AutosaveManager* self) {
g_clear_error (&_inner_error_);
#line 332 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
return;
-#line 2029 "autosave-manager.c"
+#line 2031 "autosave-manager.c"
}
#line 279 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
_g_free0 (page_names);
#line 279 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
_g_key_file_unref0 (file);
-#line 2035 "autosave-manager.c"
+#line 2037 "autosave-manager.c"
}
@@ -2088,7 +2090,7 @@ static void autosave_manager_save_pixels (AutosaveManager* self, Page* page) {
_tmp10_ = g_file_new_for_path (path);
#line 351 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
file = _tmp10_;
-#line 2091 "autosave-manager.c"
+#line 2093 "autosave-manager.c"
{
Page* _tmp11_ = NULL;
gint _tmp12_ = 0;
@@ -2101,7 +2103,7 @@ static void autosave_manager_save_pixels (AutosaveManager* self, Page* page) {
g_file_replace_contents (file, _tmp13_, (gsize) _tmp12_, NULL, FALSE, G_FILE_CREATE_NONE, NULL, NULL, &_inner_error_);
#line 354 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2104 "autosave-manager.c"
+#line 2106 "autosave-manager.c"
goto __catch36_g_error;
}
}
@@ -2123,7 +2125,7 @@ static void autosave_manager_save_pixels (AutosaveManager* self, Page* page) {
g_warning ("autosave-manager.vala:358: Failed to autosave page contents: %s", _tmp15_);
#line 352 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
_g_error_free0 (e);
-#line 2126 "autosave-manager.c"
+#line 2128 "autosave-manager.c"
}
__finally36:
#line 352 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
@@ -2140,7 +2142,7 @@ static void autosave_manager_save_pixels (AutosaveManager* self, Page* page) {
g_clear_error (&_inner_error_);
#line 352 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
return;
-#line 2143 "autosave-manager.c"
+#line 2145 "autosave-manager.c"
}
#line 343 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
_g_object_unref0 (file);
@@ -2148,7 +2150,7 @@ static void autosave_manager_save_pixels (AutosaveManager* self, Page* page) {
_g_free0 (path);
#line 343 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
_g_free0 (filename);
-#line 2151 "autosave-manager.c"
+#line 2153 "autosave-manager.c"
}
@@ -2163,42 +2165,42 @@ Book* autosave_manager_get_book (AutosaveManager* self) {
result = _tmp0_;
#line 28 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
return result;
-#line 2166 "autosave-manager.c"
+#line 2168 "autosave-manager.c"
}
static void _autosave_manager_on_page_added_book_page_added (Book* _sender, Page* page, gpointer self) {
#line 39 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
autosave_manager_on_page_added ((AutosaveManager*) self, page);
-#line 2173 "autosave-manager.c"
+#line 2175 "autosave-manager.c"
}
static void _autosave_manager_on_page_removed_book_page_removed (Book* _sender, Page* page, gpointer self) {
#line 40 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
autosave_manager_on_page_removed ((AutosaveManager*) self, page);
-#line 2180 "autosave-manager.c"
+#line 2182 "autosave-manager.c"
}
static void _autosave_manager_on_changed_book_reordered (Book* _sender, gpointer self) {
#line 41 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
autosave_manager_on_changed ((AutosaveManager*) self);
-#line 2187 "autosave-manager.c"
+#line 2189 "autosave-manager.c"
}
static void _autosave_manager_on_cleared_book_cleared (Book* _sender, gpointer self) {
#line 42 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
autosave_manager_on_cleared ((AutosaveManager*) self);
-#line 2194 "autosave-manager.c"
+#line 2196 "autosave-manager.c"
}
static gpointer _book_ref0 (gpointer self) {
#line 44 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
return self ? book_ref (self) : NULL;
-#line 2201 "autosave-manager.c"
+#line 2203 "autosave-manager.c"
}
@@ -2216,7 +2218,7 @@ void autosave_manager_set_book (AutosaveManager* self, Book* value) {
_tmp0_ = self->priv->book_;
#line 32 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
if (_tmp0_ != NULL) {
-#line 2219 "autosave-manager.c"
+#line 2221 "autosave-manager.c"
Book* _tmp11_ = NULL;
guint _tmp12_ = 0U;
Book* _tmp13_ = NULL;
@@ -2229,14 +2231,14 @@ void autosave_manager_set_book (AutosaveManager* self, Book* value) {
gint i = 0;
#line 34 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
i = 0;
-#line 2232 "autosave-manager.c"
+#line 2234 "autosave-manager.c"
{
gboolean _tmp1_ = FALSE;
#line 34 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
_tmp1_ = TRUE;
#line 34 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
while (TRUE) {
-#line 2239 "autosave-manager.c"
+#line 2241 "autosave-manager.c"
gint _tmp3_ = 0;
Book* _tmp4_ = NULL;
guint _tmp5_ = 0U;
@@ -2248,13 +2250,13 @@ void autosave_manager_set_book (AutosaveManager* self, Book* value) {
Page* _tmp10_ = NULL;
#line 34 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
if (!_tmp1_) {
-#line 2251 "autosave-manager.c"
+#line 2253 "autosave-manager.c"
gint _tmp2_ = 0;
#line 34 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
_tmp2_ = i;
#line 34 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
i = _tmp2_ + 1;
-#line 2257 "autosave-manager.c"
+#line 2259 "autosave-manager.c"
}
#line 34 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
_tmp1_ = FALSE;
@@ -2270,7 +2272,7 @@ void autosave_manager_set_book (AutosaveManager* self, Book* value) {
if (!(((guint) _tmp3_) < _tmp6_)) {
#line 34 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
break;
-#line 2273 "autosave-manager.c"
+#line 2275 "autosave-manager.c"
}
#line 36 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
_tmp7_ = self->priv->book_;
@@ -2286,7 +2288,7 @@ void autosave_manager_set_book (AutosaveManager* self, Book* value) {
autosave_manager_on_page_removed (self, _tmp10_);
#line 34 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
_page_unref0 (page);
-#line 2289 "autosave-manager.c"
+#line 2291 "autosave-manager.c"
}
}
}
@@ -2314,7 +2316,7 @@ void autosave_manager_set_book (AutosaveManager* self, Book* value) {
g_signal_parse_name ("cleared", TYPE_BOOK, &_tmp18_, NULL, FALSE);
#line 42 "/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 2317 "autosave-manager.c"
+#line 2319 "autosave-manager.c"
}
#line 44 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
_tmp19_ = value;
@@ -2340,19 +2342,19 @@ void autosave_manager_set_book (AutosaveManager* self, Book* value) {
_tmp24_ = self->priv->book_;
#line 48 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
g_signal_connect (_tmp24_, "cleared", (GCallback) _autosave_manager_on_cleared_book_cleared, self);
-#line 2343 "autosave-manager.c"
+#line 2345 "autosave-manager.c"
{
gint i = 0;
#line 49 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
i = 0;
-#line 2348 "autosave-manager.c"
+#line 2350 "autosave-manager.c"
{
gboolean _tmp25_ = FALSE;
#line 49 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
_tmp25_ = TRUE;
#line 49 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
while (TRUE) {
-#line 2355 "autosave-manager.c"
+#line 2357 "autosave-manager.c"
gint _tmp27_ = 0;
Book* _tmp28_ = NULL;
guint _tmp29_ = 0U;
@@ -2364,13 +2366,13 @@ void autosave_manager_set_book (AutosaveManager* self, Book* value) {
Page* _tmp34_ = NULL;
#line 49 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
if (!_tmp25_) {
-#line 2367 "autosave-manager.c"
+#line 2369 "autosave-manager.c"
gint _tmp26_ = 0;
#line 49 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
_tmp26_ = i;
#line 49 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
i = _tmp26_ + 1;
-#line 2373 "autosave-manager.c"
+#line 2375 "autosave-manager.c"
}
#line 49 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
_tmp25_ = FALSE;
@@ -2386,7 +2388,7 @@ void autosave_manager_set_book (AutosaveManager* self, Book* value) {
if (!(((guint) _tmp27_) < _tmp30_)) {
#line 49 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
break;
-#line 2389 "autosave-manager.c"
+#line 2391 "autosave-manager.c"
}
#line 51 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
_tmp31_ = self->priv->book_;
@@ -2402,7 +2404,7 @@ void autosave_manager_set_book (AutosaveManager* self, Book* value) {
autosave_manager_on_page_added (self, _tmp34_);
#line 49 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
_page_unref0 (page);
-#line 2405 "autosave-manager.c"
+#line 2407 "autosave-manager.c"
}
}
}
@@ -2412,7 +2414,7 @@ void autosave_manager_set_book (AutosaveManager* self, Book* value) {
static void value_autosave_manager_init (GValue* value) {
#line 13 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
value->data[0].v_pointer = NULL;
-#line 2415 "autosave-manager.c"
+#line 2417 "autosave-manager.c"
}
@@ -2421,7 +2423,7 @@ static void value_autosave_manager_free_value (GValue* value) {
if (value->data[0].v_pointer) {
#line 13 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
autosave_manager_unref (value->data[0].v_pointer);
-#line 2424 "autosave-manager.c"
+#line 2426 "autosave-manager.c"
}
}
@@ -2431,11 +2433,11 @@ static void value_autosave_manager_copy_value (const GValue* src_value, GValue*
if (src_value->data[0].v_pointer) {
#line 13 "/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 2434 "autosave-manager.c"
+#line 2436 "autosave-manager.c"
} else {
#line 13 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
dest_value->data[0].v_pointer = NULL;
-#line 2438 "autosave-manager.c"
+#line 2440 "autosave-manager.c"
}
}
@@ -2443,37 +2445,37 @@ static void value_autosave_manager_copy_value (const GValue* src_value, GValue*
static gpointer value_autosave_manager_peek_pointer (const GValue* value) {
#line 13 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
return value->data[0].v_pointer;
-#line 2446 "autosave-manager.c"
+#line 2448 "autosave-manager.c"
}
static gchar* value_autosave_manager_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
#line 13 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
if (collect_values[0].v_pointer) {
-#line 2453 "autosave-manager.c"
+#line 2455 "autosave-manager.c"
AutosaveManager* object;
object = collect_values[0].v_pointer;
#line 13 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
if (object->parent_instance.g_class == NULL) {
#line 13 "/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 2460 "autosave-manager.c"
+#line 2462 "autosave-manager.c"
} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 13 "/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 2464 "autosave-manager.c"
+#line 2466 "autosave-manager.c"
}
#line 13 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
value->data[0].v_pointer = autosave_manager_ref (object);
-#line 2468 "autosave-manager.c"
+#line 2470 "autosave-manager.c"
} else {
#line 13 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
value->data[0].v_pointer = NULL;
-#line 2472 "autosave-manager.c"
+#line 2474 "autosave-manager.c"
}
#line 13 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
return NULL;
-#line 2476 "autosave-manager.c"
+#line 2478 "autosave-manager.c"
}
@@ -2484,25 +2486,25 @@ static gchar* value_autosave_manager_lcopy_value (const GValue* value, guint n_c
if (!object_p) {
#line 13 "/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 2487 "autosave-manager.c"
+#line 2489 "autosave-manager.c"
}
#line 13 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
if (!value->data[0].v_pointer) {
#line 13 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
*object_p = NULL;
-#line 2493 "autosave-manager.c"
+#line 2495 "autosave-manager.c"
} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 13 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
*object_p = value->data[0].v_pointer;
-#line 2497 "autosave-manager.c"
+#line 2499 "autosave-manager.c"
} else {
#line 13 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
*object_p = autosave_manager_ref (value->data[0].v_pointer);
-#line 2501 "autosave-manager.c"
+#line 2503 "autosave-manager.c"
}
#line 13 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
return NULL;
-#line 2505 "autosave-manager.c"
+#line 2507 "autosave-manager.c"
}
@@ -2516,7 +2518,7 @@ GParamSpec* param_spec_autosave_manager (const gchar* name, const gchar* nick, c
G_PARAM_SPEC (spec)->value_type = object_type;
#line 13 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
return G_PARAM_SPEC (spec);
-#line 2519 "autosave-manager.c"
+#line 2521 "autosave-manager.c"
}
@@ -2525,7 +2527,7 @@ gpointer value_get_autosave_manager (const GValue* value) {
g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_AUTOSAVE_MANAGER), NULL);
#line 13 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
return value->data[0].v_pointer;
-#line 2528 "autosave-manager.c"
+#line 2530 "autosave-manager.c"
}
@@ -2545,17 +2547,17 @@ void value_set_autosave_manager (GValue* value, gpointer v_object) {
value->data[0].v_pointer = v_object;
#line 13 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
autosave_manager_ref (value->data[0].v_pointer);
-#line 2548 "autosave-manager.c"
+#line 2550 "autosave-manager.c"
} else {
#line 13 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
value->data[0].v_pointer = NULL;
-#line 2552 "autosave-manager.c"
+#line 2554 "autosave-manager.c"
}
#line 13 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
if (old) {
#line 13 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
autosave_manager_unref (old);
-#line 2558 "autosave-manager.c"
+#line 2560 "autosave-manager.c"
}
}
@@ -2574,17 +2576,17 @@ void value_take_autosave_manager (GValue* value, gpointer v_object) {
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 13 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
value->data[0].v_pointer = v_object;
-#line 2577 "autosave-manager.c"
+#line 2579 "autosave-manager.c"
} else {
#line 13 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
value->data[0].v_pointer = NULL;
-#line 2581 "autosave-manager.c"
+#line 2583 "autosave-manager.c"
}
#line 13 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
if (old) {
#line 13 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
autosave_manager_unref (old);
-#line 2587 "autosave-manager.c"
+#line 2589 "autosave-manager.c"
}
}
@@ -2620,7 +2622,7 @@ static void autosave_manager_class_init (AutosaveManagerClass * klass) {
_tmp5_ = g_build_filename (_tmp3_, _tmp4_, NULL);
#line 17 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
autosave_manager_AUTOSAVE_PATH = _tmp5_;
-#line 2623 "autosave-manager.c"
+#line 2625 "autosave-manager.c"
}
@@ -2633,7 +2635,7 @@ static void autosave_manager_instance_init (AutosaveManager * self) {
self->priv->book_ = NULL;
#line 13 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
self->ref_count = 1;
-#line 2636 "autosave-manager.c"
+#line 2638 "autosave-manager.c"
}
@@ -2647,7 +2649,7 @@ static void autosave_manager_finalize (AutosaveManager* obj) {
_g_hash_table_unref0 (self->priv->page_filenames);
#line 23 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
_book_unref0 (self->priv->book_);
-#line 2650 "autosave-manager.c"
+#line 2652 "autosave-manager.c"
}
@@ -2672,7 +2674,7 @@ gpointer autosave_manager_ref (gpointer instance) {
g_atomic_int_inc (&self->ref_count);
#line 13 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
return instance;
-#line 2675 "autosave-manager.c"
+#line 2677 "autosave-manager.c"
}
@@ -2685,7 +2687,7 @@ void autosave_manager_unref (gpointer instance) {
AUTOSAVE_MANAGER_GET_CLASS (self)->finalize (self);
#line 13 "/home/bob/bzr/simple-scan/trunk/src/autosave-manager.vala"
g_type_free_instance ((GTypeInstance *) self);
-#line 2688 "autosave-manager.c"
+#line 2690 "autosave-manager.c"
}
}
diff --git a/src/book-view.c b/src/book-view.c
index 8c9b099..849d86d 100644
--- a/src/book-view.c
+++ b/src/book-view.c
@@ -1,4 +1,4 @@
-/* book-view.c generated by valac 0.34.2, the Vala compiler
+/* book-view.c generated by valac 0.34.6, the Vala compiler
* generated from book-view.vala, do not modify */
/*
diff --git a/src/book.c b/src/book.c
index 1e7f4eb..a74c530 100644
--- a/src/book.c
+++ b/src/book.c
@@ -1,4 +1,4 @@
-/* book.c generated by valac 0.34.2, the Vala compiler
+/* book.c generated by valac 0.34.6, the Vala compiler
* generated from book.vala, do not modify */
/*
diff --git a/src/page-view.c b/src/page-view.c
index c5ca2c1..96732cc 100644
--- a/src/page-view.c
+++ b/src/page-view.c
@@ -1,4 +1,4 @@
-/* page-view.c generated by valac 0.34.2, the Vala compiler
+/* page-view.c generated by valac 0.34.6, the Vala compiler
* generated from page-view.vala, do not modify */
/*
diff --git a/src/page.c b/src/page.c
index 0f9681f..9a3db07 100644
--- a/src/page.c
+++ b/src/page.c
@@ -1,4 +1,4 @@
-/* page.c generated by valac 0.34.2, the Vala compiler
+/* page.c generated by valac 0.34.6, the Vala compiler
* generated from page.vala, do not modify */
/*
@@ -4659,24 +4659,26 @@ static gboolean pixbuf_writer_write_pixbuf_data (PixbufWriter* self, guint8* buf
g_output_stream_write_all ((GOutputStream*) _tmp0_, _tmp1_, (gsize) _tmp1__length1, NULL, NULL, &_inner_error_);
#line 708 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 4663 "page.c"
+ gboolean _tmp2_ = FALSE;
#line 708 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_propagate_error (error, _inner_error_);
#line 708 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
- return FALSE;
-#line 4667 "page.c"
+ return _tmp2_;
+#line 4669 "page.c"
}
#line 709 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
result = TRUE;
#line 709 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return result;
-#line 4673 "page.c"
+#line 4675 "page.c"
}
static void value_pixbuf_writer_init (GValue* value) {
#line 692 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
value->data[0].v_pointer = NULL;
-#line 4680 "page.c"
+#line 4682 "page.c"
}
@@ -4685,7 +4687,7 @@ static void value_pixbuf_writer_free_value (GValue* value) {
if (value->data[0].v_pointer) {
#line 692 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
pixbuf_writer_unref (value->data[0].v_pointer);
-#line 4689 "page.c"
+#line 4691 "page.c"
}
}
@@ -4695,11 +4697,11 @@ static void value_pixbuf_writer_copy_value (const GValue* src_value, GValue* des
if (src_value->data[0].v_pointer) {
#line 692 "/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 4699 "page.c"
+#line 4701 "page.c"
} else {
#line 692 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
dest_value->data[0].v_pointer = NULL;
-#line 4703 "page.c"
+#line 4705 "page.c"
}
}
@@ -4707,37 +4709,37 @@ static void value_pixbuf_writer_copy_value (const GValue* src_value, GValue* des
static gpointer value_pixbuf_writer_peek_pointer (const GValue* value) {
#line 692 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return value->data[0].v_pointer;
-#line 4711 "page.c"
+#line 4713 "page.c"
}
static gchar* value_pixbuf_writer_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
#line 692 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (collect_values[0].v_pointer) {
-#line 4718 "page.c"
+#line 4720 "page.c"
PixbufWriter* object;
object = collect_values[0].v_pointer;
#line 692 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (object->parent_instance.g_class == NULL) {
#line 692 "/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 4725 "page.c"
+#line 4727 "page.c"
} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 692 "/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 4729 "page.c"
+#line 4731 "page.c"
}
#line 692 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
value->data[0].v_pointer = pixbuf_writer_ref (object);
-#line 4733 "page.c"
+#line 4735 "page.c"
} else {
#line 692 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
value->data[0].v_pointer = NULL;
-#line 4737 "page.c"
+#line 4739 "page.c"
}
#line 692 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return NULL;
-#line 4741 "page.c"
+#line 4743 "page.c"
}
@@ -4748,25 +4750,25 @@ static gchar* value_pixbuf_writer_lcopy_value (const GValue* value, guint n_coll
if (!object_p) {
#line 692 "/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 4752 "page.c"
+#line 4754 "page.c"
}
#line 692 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (!value->data[0].v_pointer) {
#line 692 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
*object_p = NULL;
-#line 4758 "page.c"
+#line 4760 "page.c"
} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 692 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
*object_p = value->data[0].v_pointer;
-#line 4762 "page.c"
+#line 4764 "page.c"
} else {
#line 692 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
*object_p = pixbuf_writer_ref (value->data[0].v_pointer);
-#line 4766 "page.c"
+#line 4768 "page.c"
}
#line 692 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return NULL;
-#line 4770 "page.c"
+#line 4772 "page.c"
}
@@ -4780,7 +4782,7 @@ GParamSpec* param_spec_pixbuf_writer (const gchar* name, const gchar* nick, cons
G_PARAM_SPEC (spec)->value_type = object_type;
#line 692 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return G_PARAM_SPEC (spec);
-#line 4784 "page.c"
+#line 4786 "page.c"
}
@@ -4789,7 +4791,7 @@ gpointer value_get_pixbuf_writer (const GValue* value) {
g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PIXBUF_WRITER), NULL);
#line 692 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return value->data[0].v_pointer;
-#line 4793 "page.c"
+#line 4795 "page.c"
}
@@ -4809,17 +4811,17 @@ void value_set_pixbuf_writer (GValue* value, gpointer v_object) {
value->data[0].v_pointer = v_object;
#line 692 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
pixbuf_writer_ref (value->data[0].v_pointer);
-#line 4813 "page.c"
+#line 4815 "page.c"
} else {
#line 692 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
value->data[0].v_pointer = NULL;
-#line 4817 "page.c"
+#line 4819 "page.c"
}
#line 692 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (old) {
#line 692 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
pixbuf_writer_unref (old);
-#line 4823 "page.c"
+#line 4825 "page.c"
}
}
@@ -4838,17 +4840,17 @@ void value_take_pixbuf_writer (GValue* value, gpointer v_object) {
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 692 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
value->data[0].v_pointer = v_object;
-#line 4842 "page.c"
+#line 4844 "page.c"
} else {
#line 692 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
value->data[0].v_pointer = NULL;
-#line 4846 "page.c"
+#line 4848 "page.c"
}
#line 692 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
if (old) {
#line 692 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
pixbuf_writer_unref (old);
-#line 4852 "page.c"
+#line 4854 "page.c"
}
}
@@ -4858,14 +4860,14 @@ static void pixbuf_writer_class_init (PixbufWriterClass * klass) {
pixbuf_writer_parent_class = g_type_class_peek_parent (klass);
#line 692 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
((PixbufWriterClass *) klass)->finalize = pixbuf_writer_finalize;
-#line 4862 "page.c"
+#line 4864 "page.c"
}
static void pixbuf_writer_instance_init (PixbufWriter * self) {
#line 692 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
self->ref_count = 1;
-#line 4869 "page.c"
+#line 4871 "page.c"
}
@@ -4877,7 +4879,7 @@ static void pixbuf_writer_finalize (PixbufWriter* obj) {
g_signal_handlers_destroy (self);
#line 694 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
_g_object_unref0 (self->stream);
-#line 4881 "page.c"
+#line 4883 "page.c"
}
@@ -4902,7 +4904,7 @@ gpointer pixbuf_writer_ref (gpointer instance) {
g_atomic_int_inc (&self->ref_count);
#line 692 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
return instance;
-#line 4906 "page.c"
+#line 4908 "page.c"
}
@@ -4915,7 +4917,7 @@ void pixbuf_writer_unref (gpointer instance) {
PIXBUF_WRITER_GET_CLASS (self)->finalize (self);
#line 692 "/home/bob/bzr/simple-scan/trunk/src/page.vala"
g_type_free_instance ((GTypeInstance *) self);
-#line 4919 "page.c"
+#line 4921 "page.c"
}
}
diff --git a/src/scanner.c b/src/scanner.c
index bd82662..3500c4b 100644
--- a/src/scanner.c
+++ b/src/scanner.c
@@ -1,4 +1,4 @@
-/* scanner.c generated by valac 0.34.2, the Vala compiler
+/* scanner.c generated by valac 0.34.6, the Vala compiler
* generated from scanner.vala, do not modify */
/*
@@ -3253,7 +3253,7 @@ static void notify_class_init (NotifyClass * klass) {
#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
((NotifyClass *) klass)->finalize = notify_finalize;
#line 131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- ((NotifyClass *) klass)->run = notify_real_run;
+ ((NotifyClass *) klass)->run = (void (*)(Notify*, Scanner*)) notify_real_run;
#line 3258 "scanner.c"
}
@@ -3350,7 +3350,7 @@ static void notify_scanning_changed_class_init (NotifyScanningChangedClass * kla
#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"
- ((NotifyClass *) klass)->run = notify_scanning_changed_real_run;
+ ((NotifyClass *) klass)->run = (void (*)(Notify*, Scanner*)) notify_scanning_changed_real_run;
#line 3355 "scanner.c"
}
@@ -3441,7 +3441,7 @@ static void notify_update_devices_class_init (NotifyUpdateDevicesClass * klass)
#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"
- ((NotifyClass *) klass)->run = notify_update_devices_real_run;
+ ((NotifyClass *) klass)->run = (void (*)(Notify*, Scanner*)) notify_update_devices_real_run;
#line 3446 "scanner.c"
}
@@ -3532,7 +3532,7 @@ static void notify_request_authorization_class_init (NotifyRequestAuthorizationC
#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"
- ((NotifyClass *) klass)->run = notify_request_authorization_real_run;
+ ((NotifyClass *) klass)->run = (void (*)(Notify*, Scanner*)) notify_request_authorization_real_run;
#line 3537 "scanner.c"
}
@@ -3631,7 +3631,7 @@ static void notify_scan_failed_class_init (NotifyScanFailedClass * klass) {
#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"
- ((NotifyClass *) klass)->run = notify_scan_failed_real_run;
+ ((NotifyClass *) klass)->run = (void (*)(Notify*, Scanner*)) notify_scan_failed_real_run;
#line 3636 "scanner.c"
}
@@ -3703,7 +3703,7 @@ 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"
- ((NotifyClass *) klass)->run = notify_document_done_real_run;
+ ((NotifyClass *) klass)->run = (void (*)(Notify*, Scanner*)) notify_document_done_real_run;
#line 3708 "scanner.c"
}
@@ -3760,7 +3760,7 @@ 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"
- ((NotifyClass *) klass)->run = notify_expect_page_real_run;
+ ((NotifyClass *) klass)->run = (void (*)(Notify*, Scanner*)) notify_expect_page_real_run;
#line 3765 "scanner.c"
}
@@ -3882,7 +3882,7 @@ static void notify_got_page_info_class_init (NotifyGotPageInfoClass * klass) {
#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"
- ((NotifyClass *) klass)->run = notify_got_page_info_real_run;
+ ((NotifyClass *) klass)->run = (void (*)(Notify*, Scanner*)) notify_got_page_info_real_run;
#line 3887 "scanner.c"
}
@@ -3997,7 +3997,7 @@ static void notify_page_done_class_init (NotifyPageDoneClass * klass) {
#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"
- ((NotifyClass *) klass)->run = notify_page_done_real_run;
+ ((NotifyClass *) klass)->run = (void (*)(Notify*, Scanner*)) notify_page_done_real_run;
#line 4002 "scanner.c"
}
@@ -4132,7 +4132,7 @@ static void notify_got_line_class_init (NotifyGotLineClass * klass) {
#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"
- ((NotifyClass *) klass)->run = notify_got_line_real_run;
+ ((NotifyClass *) klass)->run = (void (*)(Notify*, Scanner*)) notify_got_line_real_run;
#line 4137 "scanner.c"
}
diff --git a/src/simple-scan.c b/src/simple-scan.c
index 4ffc5a0..9b84313 100644
--- a/src/simple-scan.c
+++ b/src/simple-scan.c
@@ -1,4 +1,4 @@
-/* simple-scan.c generated by valac 0.34.2, the Vala compiler
+/* simple-scan.c generated by valac 0.34.6, the Vala compiler
* generated from simple-scan.vala, do not modify */
/*
@@ -16,10 +16,10 @@
#include <glib-object.h>
#include <gtk/gtk.h>
#include <gusb.h>
+#include <gio/gio.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
-#include <gio/gio.h>
#include "colord.h"
#include <float.h>
#include <math.h>
@@ -3809,26 +3809,26 @@ gint simple_scan_main (gchar** args, int args_length1) {
GOptionContext* _tmp2_ = NULL;
GOptionContext* _tmp3_ = NULL;
GOptionGroup* _tmp4_ = NULL;
- gboolean _tmp14_ = FALSE;
- const gchar* _tmp16_ = NULL;
+ gboolean _tmp15_ = FALSE;
+ const gchar* _tmp17_ = NULL;
ScanDevice* device = NULL;
- gchar** _tmp28_ = NULL;
- gint _tmp28__length1 = 0;
- GTimer* _tmp38_ = NULL;
+ gchar** _tmp30_ = NULL;
+ gint _tmp30__length1 = 0;
+ GTimer* _tmp40_ = NULL;
gchar* path = NULL;
- const gchar* _tmp39_ = NULL;
- gchar* _tmp40_ = NULL;
const gchar* _tmp41_ = NULL;
- const gchar* _tmp42_ = NULL;
- gchar* _tmp43_ = NULL;
+ gchar* _tmp42_ = NULL;
+ const gchar* _tmp43_ = NULL;
const gchar* _tmp44_ = NULL;
- FILE* _tmp45_ = NULL;
- pid_t _tmp46_ = 0;
+ gchar* _tmp45_ = NULL;
+ const gchar* _tmp46_ = NULL;
+ FILE* _tmp47_ = NULL;
+ pid_t _tmp48_ = 0;
SimpleScan* app = NULL;
- ScanDevice* _tmp47_ = NULL;
- SimpleScan* _tmp48_ = NULL;
- SimpleScan* _tmp49_ = NULL;
- gint _tmp50_ = 0;
+ ScanDevice* _tmp49_ = NULL;
+ SimpleScan* _tmp50_ = NULL;
+ SimpleScan* _tmp51_ = NULL;
+ gint _tmp52_ = 0;
GError * _inner_error_ = NULL;
#line 615 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
setlocale (LC_ALL, "");
@@ -3921,6 +3921,8 @@ gint simple_scan_main (gchar** args, int args_length1) {
__finally13:
#line 624 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 3924 "simple-scan.c"
+ gint _tmp14_ = 0;
#line 624 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_option_context_free0 (c);
#line 624 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
@@ -3928,99 +3930,99 @@ gint simple_scan_main (gchar** args, int args_length1) {
#line 624 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_clear_error (&_inner_error_);
#line 624 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- return 0;
-#line 3932 "simple-scan.c"
+ return _tmp14_;
+#line 3934 "simple-scan.c"
}
#line 636 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp14_ = simple_scan_show_version;
+ _tmp15_ = simple_scan_show_version;
#line 636 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- if (_tmp14_) {
-#line 3938 "simple-scan.c"
- FILE* _tmp15_ = NULL;
+ if (_tmp15_) {
+#line 3940 "simple-scan.c"
+ FILE* _tmp16_ = NULL;
#line 639 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp15_ = stderr;
+ _tmp16_ = stderr;
#line 639 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- fprintf (_tmp15_, "simple-scan %s\n", VERSION);
+ fprintf (_tmp16_, "simple-scan %s\n", VERSION);
#line 640 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
result = EXIT_SUCCESS;
#line 640 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_option_context_free0 (c);
#line 640 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return result;
-#line 3950 "simple-scan.c"
+#line 3952 "simple-scan.c"
}
#line 642 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp16_ = simple_scan_fix_pdf_filename;
+ _tmp17_ = simple_scan_fix_pdf_filename;
#line 642 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- if (_tmp16_ != NULL) {
-#line 3956 "simple-scan.c"
+ if (_tmp17_ != NULL) {
+#line 3958 "simple-scan.c"
{
- const gchar* _tmp17_ = NULL;
+ const gchar* _tmp18_ = NULL;
#line 646 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp17_ = simple_scan_fix_pdf_filename;
+ _tmp18_ = simple_scan_fix_pdf_filename;
#line 646 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- simple_scan_fix_pdf (_tmp17_, &_inner_error_);
+ simple_scan_fix_pdf (_tmp18_, &_inner_error_);
#line 646 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3965 "simple-scan.c"
+#line 3967 "simple-scan.c"
goto __catch14_g_error;
}
{
gint i = 0;
#line 647 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
i = 1;
-#line 3972 "simple-scan.c"
+#line 3974 "simple-scan.c"
{
- gboolean _tmp18_ = FALSE;
+ gboolean _tmp19_ = FALSE;
#line 647 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp18_ = TRUE;
+ _tmp19_ = TRUE;
#line 647 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
while (TRUE) {
-#line 3979 "simple-scan.c"
- gint _tmp20_ = 0;
- gchar** _tmp21_ = NULL;
- gint _tmp21__length1 = 0;
+#line 3981 "simple-scan.c"
+ gint _tmp21_ = 0;
gchar** _tmp22_ = NULL;
gint _tmp22__length1 = 0;
- gint _tmp23_ = 0;
- const gchar* _tmp24_ = NULL;
+ gchar** _tmp23_ = NULL;
+ gint _tmp23__length1 = 0;
+ gint _tmp24_ = 0;
+ const gchar* _tmp25_ = NULL;
#line 647 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- if (!_tmp18_) {
-#line 3989 "simple-scan.c"
- gint _tmp19_ = 0;
+ if (!_tmp19_) {
+#line 3991 "simple-scan.c"
+ gint _tmp20_ = 0;
#line 647 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp19_ = i;
+ _tmp20_ = i;
#line 647 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- i = _tmp19_ + 1;
-#line 3995 "simple-scan.c"
+ i = _tmp20_ + 1;
+#line 3997 "simple-scan.c"
}
#line 647 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp18_ = FALSE;
+ _tmp19_ = FALSE;
#line 647 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp20_ = i;
+ _tmp21_ = i;
#line 647 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp21_ = args;
+ _tmp22_ = args;
#line 647 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp21__length1 = args_length1;
+ _tmp22__length1 = args_length1;
#line 647 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- if (!(_tmp20_ < _tmp21__length1)) {
+ if (!(_tmp21_ < _tmp22__length1)) {
#line 647 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
break;
-#line 4009 "simple-scan.c"
+#line 4011 "simple-scan.c"
}
#line 648 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp22_ = args;
+ _tmp23_ = args;
#line 648 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp22__length1 = args_length1;
+ _tmp23__length1 = args_length1;
#line 648 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp23_ = i;
+ _tmp24_ = i;
#line 648 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp24_ = _tmp22_[_tmp23_];
+ _tmp25_ = _tmp23_[_tmp24_];
#line 648 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- simple_scan_fix_pdf (_tmp24_, &_inner_error_);
+ simple_scan_fix_pdf (_tmp25_, &_inner_error_);
#line 648 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4023 "simple-scan.c"
+#line 4025 "simple-scan.c"
goto __catch14_g_error;
}
}
@@ -4031,21 +4033,21 @@ gint simple_scan_main (gchar** args, int args_length1) {
__catch14_g_error:
{
GError* e = NULL;
- FILE* _tmp25_ = NULL;
- GError* _tmp26_ = NULL;
- const gchar* _tmp27_ = NULL;
+ FILE* _tmp26_ = NULL;
+ GError* _tmp27_ = NULL;
+ const gchar* _tmp28_ = NULL;
#line 644 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
e = _inner_error_;
#line 644 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_inner_error_ = NULL;
#line 652 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp25_ = stderr;
+ _tmp26_ = stderr;
#line 652 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp26_ = e;
+ _tmp27_ = e;
#line 652 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp27_ = _tmp26_->message;
+ _tmp28_ = _tmp27_->message;
#line 652 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- fprintf (_tmp25_, "Error fixing PDF file: %s", _tmp27_);
+ fprintf (_tmp26_, "Error fixing PDF file: %s", _tmp28_);
#line 653 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
result = EXIT_FAILURE;
#line 653 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
@@ -4054,11 +4056,13 @@ gint simple_scan_main (gchar** args, int args_length1) {
_g_option_context_free0 (c);
#line 653 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return result;
-#line 4057 "simple-scan.c"
+#line 4059 "simple-scan.c"
}
__finally14:
#line 644 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 4064 "simple-scan.c"
+ gint _tmp29_ = 0;
#line 644 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_option_context_free0 (c);
#line 644 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
@@ -4066,8 +4070,8 @@ gint simple_scan_main (gchar** args, int args_length1) {
#line 644 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_clear_error (&_inner_error_);
#line 644 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- return 0;
-#line 4070 "simple-scan.c"
+ return _tmp29_;
+#line 4074 "simple-scan.c"
}
#line 655 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
result = EXIT_SUCCESS;
@@ -4075,116 +4079,116 @@ gint simple_scan_main (gchar** args, int args_length1) {
_g_option_context_free0 (c);
#line 655 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return result;
-#line 4078 "simple-scan.c"
+#line 4082 "simple-scan.c"
}
#line 658 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
device = NULL;
#line 659 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp28_ = args;
+ _tmp30_ = args;
#line 659 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp28__length1 = args_length1;
+ _tmp30__length1 = args_length1;
#line 659 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- if (_tmp28__length1 > 1) {
-#line 4088 "simple-scan.c"
- ScanDevice* _tmp29_ = NULL;
- ScanDevice* _tmp30_ = NULL;
- gchar** _tmp31_ = NULL;
- gint _tmp31__length1 = 0;
- const gchar* _tmp32_ = NULL;
- gchar* _tmp33_ = NULL;
- ScanDevice* _tmp34_ = NULL;
- gchar** _tmp35_ = NULL;
- gint _tmp35__length1 = 0;
- const gchar* _tmp36_ = NULL;
- gchar* _tmp37_ = NULL;
+ if (_tmp30__length1 > 1) {
+#line 4092 "simple-scan.c"
+ ScanDevice* _tmp31_ = NULL;
+ ScanDevice* _tmp32_ = NULL;
+ gchar** _tmp33_ = NULL;
+ gint _tmp33__length1 = 0;
+ const gchar* _tmp34_ = NULL;
+ gchar* _tmp35_ = NULL;
+ ScanDevice* _tmp36_ = NULL;
+ gchar** _tmp37_ = NULL;
+ gint _tmp37__length1 = 0;
+ const gchar* _tmp38_ = NULL;
+ gchar* _tmp39_ = NULL;
#line 661 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp29_ = scan_device_new ();
+ _tmp31_ = scan_device_new ();
#line 661 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_scan_device_unref0 (device);
#line 661 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- device = _tmp29_;
+ device = _tmp31_;
#line 662 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp30_ = device;
+ _tmp32_ = device;
#line 662 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp31_ = args;
+ _tmp33_ = args;
#line 662 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp31__length1 = args_length1;
+ _tmp33__length1 = args_length1;
#line 662 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp32_ = _tmp31_[1];
+ _tmp34_ = _tmp33_[1];
#line 662 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp33_ = g_strdup (_tmp32_);
+ _tmp35_ = g_strdup (_tmp34_);
#line 662 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _g_free0 (_tmp30_->name);
+ _g_free0 (_tmp32_->name);
#line 662 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp30_->name = _tmp33_;
+ _tmp32_->name = _tmp35_;
#line 663 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp34_ = device;
+ _tmp36_ = device;
#line 663 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp35_ = args;
+ _tmp37_ = args;
#line 663 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp35__length1 = args_length1;
+ _tmp37__length1 = args_length1;
#line 663 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp36_ = _tmp35_[1];
+ _tmp38_ = _tmp37_[1];
#line 663 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp37_ = g_strdup (_tmp36_);
+ _tmp39_ = g_strdup (_tmp38_);
#line 663 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _g_free0 (_tmp34_->label);
+ _g_free0 (_tmp36_->label);
#line 663 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp34_->label = _tmp37_;
-#line 4134 "simple-scan.c"
+ _tmp36_->label = _tmp39_;
+#line 4138 "simple-scan.c"
}
#line 667 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp38_ = g_timer_new ();
+ _tmp40_ = g_timer_new ();
#line 667 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_timer_destroy0 (simple_scan_log_timer);
#line 667 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- simple_scan_log_timer = _tmp38_;
+ simple_scan_log_timer = _tmp40_;
#line 668 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp39_ = g_get_user_cache_dir ();
+ _tmp41_ = g_get_user_cache_dir ();
#line 668 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp40_ = g_build_filename (_tmp39_, "simple-scan", NULL, NULL);
+ _tmp42_ = g_build_filename (_tmp41_, "simple-scan", NULL, NULL);
#line 668 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- path = _tmp40_;
+ path = _tmp42_;
#line 669 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp41_ = path;
+ _tmp43_ = path;
#line 669 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- g_mkdir_with_parents (_tmp41_, 0700);
+ g_mkdir_with_parents (_tmp43_, 0700);
#line 670 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp42_ = g_get_user_cache_dir ();
+ _tmp44_ = g_get_user_cache_dir ();
#line 670 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp43_ = g_build_filename (_tmp42_, "simple-scan", "simple-scan.log", NULL, NULL);
+ _tmp45_ = g_build_filename (_tmp44_, "simple-scan", "simple-scan.log", NULL, NULL);
#line 670 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (path);
#line 670 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- path = _tmp43_;
+ path = _tmp45_;
#line 671 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp44_ = path;
+ _tmp46_ = path;
#line 671 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp45_ = g_fopen (_tmp44_, "w");
+ _tmp47_ = g_fopen (_tmp46_, "w");
#line 671 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_fclose0 (simple_scan_log_file);
#line 671 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- simple_scan_log_file = _tmp45_;
+ simple_scan_log_file = _tmp47_;
#line 672 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_log_set_default_handler (_simple_scan_log_cb_glog_func, NULL);
#line 674 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp46_ = getpid ();
+ _tmp48_ = getpid ();
#line 674 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- g_debug ("simple-scan.vala:674: Starting Simple Scan %s, PID=%i", VERSION, (gint) _tmp46_);
+ g_debug ("simple-scan.vala:674: Starting Simple Scan %s, PID=%i", VERSION, (gint) _tmp48_);
#line 676 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
gtk_init (&args_length1, &args);
#line 678 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp47_ = device;
+ _tmp49_ = device;
#line 678 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp48_ = simple_scan_new (_tmp47_);
+ _tmp50_ = simple_scan_new (_tmp49_);
#line 678 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- app = _tmp48_;
+ app = _tmp50_;
#line 679 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp49_ = app;
+ _tmp51_ = app;
#line 679 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp50_ = g_application_run ((GApplication*) _tmp49_, 0, NULL);
+ _tmp52_ = g_application_run ((GApplication*) _tmp51_, 0, NULL);
#line 679 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- result = _tmp50_;
+ result = _tmp52_;
#line 679 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (app);
#line 679 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
@@ -4195,7 +4199,7 @@ gint simple_scan_main (gchar** args, int args_length1) {
_g_option_context_free0 (c);
#line 679 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return result;
-#line 4198 "simple-scan.c"
+#line 4202 "simple-scan.c"
}
@@ -4205,7 +4209,7 @@ int main (int argc, char ** argv) {
#endif
#line 613 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return simple_scan_main (argv, argc);
-#line 4208 "simple-scan.c"
+#line 4212 "simple-scan.c"
}
@@ -4215,14 +4219,14 @@ static void simple_scan_class_init (SimpleScanClass * 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"
- ((GApplicationClass *) klass)->startup = simple_scan_real_startup;
+ ((GApplicationClass *) klass)->startup = (void (*)(GApplication*)) simple_scan_real_startup;
#line 12 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- ((GApplicationClass *) klass)->activate = simple_scan_real_activate;
+ ((GApplicationClass *) klass)->activate = (void (*)(GApplication*)) simple_scan_real_activate;
#line 12 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- ((GApplicationClass *) klass)->shutdown = simple_scan_real_shutdown;
+ ((GApplicationClass *) klass)->shutdown = (void (*)(GApplication*)) 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 4225 "simple-scan.c"
+#line 4229 "simple-scan.c"
}
@@ -4233,7 +4237,7 @@ static void simple_scan_instance_init (SimpleScan * self) {
self->priv->default_device = NULL;
#line 33 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
self->priv->have_devices = FALSE;
-#line 4236 "simple-scan.c"
+#line 4240 "simple-scan.c"
}
@@ -4253,7 +4257,7 @@ static void simple_scan_finalize (GObject* obj) {
_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 4256 "simple-scan.c"
+#line 4260 "simple-scan.c"
}
diff --git a/src/ui.c b/src/ui.c
index fd417eb..3d687d9 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -1,4 +1,4 @@
-/* ui.c generated by valac 0.34.2, the Vala compiler
+/* ui.c generated by valac 0.34.6, the Vala compiler
* generated from ui.vala, do not modify */
/*
@@ -19,8 +19,8 @@
#include <gio/gio.h>
#include <stdlib.h>
#include <string.h>
-#include <glib/gi18n-lib.h>
#include <gdk/gdk.h>
+#include <glib/gi18n-lib.h>
#include <float.h>
#include <math.h>
#include <cairo.h>
@@ -2794,9 +2794,9 @@ static gboolean user_interface_save_document (UserInterface* self, gboolean forc
gchar* _tmp12_ = NULL;
const gchar* _tmp13_ = NULL;
gboolean _tmp14_ = FALSE;
- const gchar* _tmp38_ = NULL;
- gchar* _tmp39_ = NULL;
- Book* _tmp40_ = NULL;
+ const gchar* _tmp39_ = NULL;
+ gchar* _tmp40_ = NULL;
+ Book* _tmp41_ = NULL;
GError * _inner_error_ = NULL;
#line 615 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (self != NULL, FALSE);
@@ -3037,6 +3037,8 @@ static gboolean user_interface_save_document (UserInterface* self, gboolean forc
__finally17:
#line 641 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 3041 "ui.c"
+ gboolean _tmp38_ = FALSE;
#line 641 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (format);
#line 641 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -3050,21 +3052,21 @@ static gboolean user_interface_save_document (UserInterface* self, gboolean forc
#line 641 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_clear_error (&_inner_error_);
#line 641 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- return FALSE;
-#line 3055 "ui.c"
+ return _tmp38_;
+#line 3057 "ui.c"
}
#line 656 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp38_ = uri;
+ _tmp39_ = uri;
#line 656 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp39_ = g_strdup (_tmp38_);
+ _tmp40_ = g_strdup (_tmp39_);
#line 656 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (self->priv->book_uri);
#line 656 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- self->priv->book_uri = _tmp39_;
+ self->priv->book_uri = _tmp40_;
#line 657 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp40_ = self->priv->_book;
+ _tmp41_ = self->priv->_book;
#line 657 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- book_set_needs_saving (_tmp40_, FALSE);
+ book_set_needs_saving (_tmp41_, FALSE);
#line 658 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = TRUE;
#line 658 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -3077,7 +3079,7 @@ static gboolean user_interface_save_document (UserInterface* self, gboolean forc
_g_free0 (uri);
#line 658 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 3081 "ui.c"
+#line 3083 "ui.c"
}
@@ -3120,7 +3122,7 @@ static gboolean user_interface_prompt_to_save (UserInterface* self, const gchar*
result = TRUE;
#line 664 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 3124 "ui.c"
+#line 3126 "ui.c"
}
#line 666 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = title;
@@ -3170,7 +3172,7 @@ static gboolean user_interface_prompt_to_save (UserInterface* self, const gchar*
switch (_tmp16_) {
#line 681 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
case GTK_RESPONSE_YES:
-#line 3174 "ui.c"
+#line 3176 "ui.c"
{
gboolean _tmp17_ = FALSE;
#line 684 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -3183,7 +3185,7 @@ static gboolean user_interface_prompt_to_save (UserInterface* self, const gchar*
_g_object_unref0 (dialog);
#line 685 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 3187 "ui.c"
+#line 3189 "ui.c"
} else {
#line 687 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = FALSE;
@@ -3191,12 +3193,12 @@ static gboolean user_interface_prompt_to_save (UserInterface* self, const gchar*
_g_object_unref0 (dialog);
#line 687 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 3195 "ui.c"
+#line 3197 "ui.c"
}
}
#line 681 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
case GTK_RESPONSE_NO:
-#line 3200 "ui.c"
+#line 3202 "ui.c"
{
#line 689 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = TRUE;
@@ -3204,7 +3206,7 @@ static gboolean user_interface_prompt_to_save (UserInterface* self, const gchar*
_g_object_unref0 (dialog);
#line 689 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 3208 "ui.c"
+#line 3210 "ui.c"
}
default:
{
@@ -3214,12 +3216,12 @@ static gboolean user_interface_prompt_to_save (UserInterface* self, const gchar*
_g_object_unref0 (dialog);
#line 691 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 3218 "ui.c"
+#line 3220 "ui.c"
}
}
#line 661 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (dialog);
-#line 3223 "ui.c"
+#line 3225 "ui.c"
}
@@ -3252,7 +3254,7 @@ static void user_interface_clear_document (UserInterface* self) {
_tmp3_ = self->priv->copy_to_clipboard_menuitem;
#line 702 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_set_sensitive ((GtkWidget*) _tmp3_, FALSE);
-#line 3256 "ui.c"
+#line 3258 "ui.c"
}
@@ -3274,7 +3276,7 @@ static void user_interface_new_document (UserInterface* self) {
if (!_tmp2_) {
#line 711 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
-#line 3278 "ui.c"
+#line 3280 "ui.c"
}
#line 713 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = user_interface_get_scanning (self);
@@ -3284,11 +3286,11 @@ static void user_interface_new_document (UserInterface* self) {
if (_tmp4_) {
#line 714 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_signal_emit_by_name (self, "stop-scan");
-#line 3288 "ui.c"
+#line 3290 "ui.c"
}
#line 715 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_clear_document (self);
-#line 3292 "ui.c"
+#line 3294 "ui.c"
}
@@ -3299,14 +3301,14 @@ static void user_interface_new_button_clicked_cb (UserInterface* self, GtkWidget
g_return_if_fail (widget != NULL);
#line 721 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_new_document (self);
-#line 3303 "ui.c"
+#line 3305 "ui.c"
}
static void _user_interface_new_button_clicked_cb_gtk_button_clicked (GtkButton* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_new_button_clicked_cb ((UserInterface*) self, _sender);
-#line 3310 "ui.c"
+#line 3312 "ui.c"
}
@@ -3315,7 +3317,7 @@ void user_interface_new_document_activate_cb (UserInterface* self) {
g_return_if_fail (self != NULL);
#line 726 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_new_document (self);
-#line 3319 "ui.c"
+#line 3321 "ui.c"
}
@@ -3340,7 +3342,7 @@ static void user_interface_set_document_hint (UserInterface* self, const gchar*
_tmp2_ = document_hint;
#line 733 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (g_strcmp0 (_tmp2_, "text") == 0) {
-#line 3344 "ui.c"
+#line 3346 "ui.c"
GtkRadioMenuItem* _tmp3_ = NULL;
GtkRadioMenuItem* _tmp4_ = NULL;
GtkRadioMenuItem* _tmp5_ = NULL;
@@ -3356,14 +3358,14 @@ static void user_interface_set_document_hint (UserInterface* self, const gchar*
_tmp5_ = self->priv->text_menuitem;
#line 737 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_check_menu_item_set_active ((GtkCheckMenuItem*) _tmp5_, TRUE);
-#line 3360 "ui.c"
+#line 3362 "ui.c"
} else {
const gchar* _tmp6_ = NULL;
#line 739 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp6_ = document_hint;
#line 739 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (g_strcmp0 (_tmp6_, "photo") == 0) {
-#line 3367 "ui.c"
+#line 3369 "ui.c"
GtkRadioMenuItem* _tmp7_ = NULL;
GtkRadioMenuItem* _tmp8_ = NULL;
GtkRadioMenuItem* _tmp9_ = NULL;
@@ -3379,14 +3381,14 @@ static void user_interface_set_document_hint (UserInterface* self, const gchar*
_tmp9_ = self->priv->photo_menuitem;
#line 743 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_check_menu_item_set_active ((GtkCheckMenuItem*) _tmp9_, TRUE);
-#line 3383 "ui.c"
+#line 3385 "ui.c"
}
}
#line 746 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp10_ = save;
#line 746 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp10_) {
-#line 3390 "ui.c"
+#line 3392 "ui.c"
GSettings* _tmp11_ = NULL;
const gchar* _tmp12_ = NULL;
#line 747 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -3395,7 +3397,7 @@ static void user_interface_set_document_hint (UserInterface* self, const gchar*
_tmp12_ = document_hint;
#line 747 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_settings_set_string (_tmp11_, "document-type", _tmp12_);
-#line 3399 "ui.c"
+#line 3401 "ui.c"
}
}
@@ -3418,7 +3420,7 @@ static void user_interface_text_menuitem_toggled_cb (UserInterface* self, GtkChe
if (_tmp2_) {
#line 754 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_set_document_hint (self, "text", TRUE);
-#line 3422 "ui.c"
+#line 3424 "ui.c"
}
}
@@ -3426,7 +3428,7 @@ static void user_interface_text_menuitem_toggled_cb (UserInterface* self, GtkChe
static void _user_interface_text_menuitem_toggled_cb_gtk_check_menu_item_toggled (GtkCheckMenuItem* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_text_menuitem_toggled_cb ((UserInterface*) self, _sender);
-#line 3430 "ui.c"
+#line 3432 "ui.c"
}
@@ -3448,7 +3450,7 @@ static void user_interface_photo_menuitem_toggled_cb (UserInterface* self, GtkCh
if (_tmp2_) {
#line 761 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_set_document_hint (self, "photo", TRUE);
-#line 3452 "ui.c"
+#line 3454 "ui.c"
}
}
@@ -3456,7 +3458,7 @@ static void user_interface_photo_menuitem_toggled_cb (UserInterface* self, GtkCh
static void _user_interface_photo_menuitem_toggled_cb_gtk_check_menu_item_toggled (GtkCheckMenuItem* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_photo_menuitem_toggled_cb ((UserInterface*) self, _sender);
-#line 3460 "ui.c"
+#line 3462 "ui.c"
}
@@ -3475,14 +3477,14 @@ static void user_interface_set_page_side (UserInterface* self, ScanType page_sid
iter = _tmp1_;
#line 768 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp2_) {
-#line 3479 "ui.c"
+#line 3481 "ui.c"
{
gboolean _tmp3_ = FALSE;
#line 770 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = TRUE;
#line 770 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
while (TRUE) {
-#line 3486 "ui.c"
+#line 3488 "ui.c"
gint s = 0;
GtkListStore* _tmp6_ = NULL;
GtkTreeIter _tmp7_ = {0};
@@ -3490,7 +3492,7 @@ static void user_interface_set_page_side (UserInterface* self, ScanType page_sid
ScanType _tmp9_ = 0;
#line 770 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (!_tmp3_) {
-#line 3494 "ui.c"
+#line 3496 "ui.c"
GtkListStore* _tmp4_ = NULL;
gboolean _tmp5_ = FALSE;
#line 779 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -3501,7 +3503,7 @@ static void user_interface_set_page_side (UserInterface* self, ScanType page_sid
if (!_tmp5_) {
#line 779 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 3505 "ui.c"
+#line 3507 "ui.c"
}
}
#line 770 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -3518,7 +3520,7 @@ static void user_interface_set_page_side (UserInterface* self, ScanType page_sid
_tmp9_ = page_side;
#line 774 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp8_ == ((gint) _tmp9_)) {
-#line 3522 "ui.c"
+#line 3524 "ui.c"
GtkComboBox* _tmp10_ = NULL;
GtkTreeIter _tmp11_ = {0};
#line 776 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -3529,7 +3531,7 @@ static void user_interface_set_page_side (UserInterface* self, ScanType page_sid
gtk_combo_box_set_active_iter (_tmp10_, &_tmp11_);
#line 777 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
-#line 3533 "ui.c"
+#line 3535 "ui.c"
}
}
}
@@ -3544,7 +3546,7 @@ static void user_interface_set_paper_size (UserInterface* self, gint width, gint
gboolean _tmp18_ = FALSE;
#line 783 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
-#line 3548 "ui.c"
+#line 3550 "ui.c"
{
GtkListStore* _tmp0_ = NULL;
GtkTreeIter _tmp1_ = {0};
@@ -3562,7 +3564,7 @@ static void user_interface_set_paper_size (UserInterface* self, gint width, gint
_tmp3_ = TRUE;
#line 788 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
while (TRUE) {
-#line 3566 "ui.c"
+#line 3568 "ui.c"
gboolean _tmp6_ = FALSE;
gint w = 0;
gint h = 0;
@@ -3573,7 +3575,7 @@ static void user_interface_set_paper_size (UserInterface* self, gint width, gint
gint _tmp11_ = 0;
#line 788 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (!_tmp3_) {
-#line 3577 "ui.c"
+#line 3579 "ui.c"
GtkListStore* _tmp4_ = NULL;
gboolean _tmp5_ = FALSE;
#line 790 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -3582,7 +3584,7 @@ static void user_interface_set_paper_size (UserInterface* self, gint width, gint
_tmp5_ = gtk_tree_model_iter_next ((GtkTreeModel*) _tmp4_, &iter);
#line 790 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
have_iter = _tmp5_;
-#line 3586 "ui.c"
+#line 3588 "ui.c"
}
#line 788 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = FALSE;
@@ -3592,7 +3594,7 @@ static void user_interface_set_paper_size (UserInterface* self, gint width, gint
if (!_tmp6_) {
#line 789 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 3596 "ui.c"
+#line 3598 "ui.c"
}
#line 793 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp7_ = self->priv->paper_size_model;
@@ -3606,7 +3608,7 @@ static void user_interface_set_paper_size (UserInterface* self, gint width, gint
_tmp11_ = width;
#line 794 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp10_ == _tmp11_) {
-#line 3610 "ui.c"
+#line 3612 "ui.c"
gint _tmp12_ = 0;
gint _tmp13_ = 0;
#line 794 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -3615,17 +3617,17 @@ static void user_interface_set_paper_size (UserInterface* self, gint width, gint
_tmp13_ = height;
#line 794 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp9_ = _tmp12_ == _tmp13_;
-#line 3619 "ui.c"
+#line 3621 "ui.c"
} else {
#line 794 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp9_ = FALSE;
-#line 3623 "ui.c"
+#line 3625 "ui.c"
}
#line 794 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp9_) {
#line 795 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 3629 "ui.c"
+#line 3631 "ui.c"
}
}
}
@@ -3633,7 +3635,7 @@ static void user_interface_set_paper_size (UserInterface* self, gint width, gint
_tmp14_ = have_iter;
#line 798 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (!_tmp14_) {
-#line 3637 "ui.c"
+#line 3639 "ui.c"
GtkListStore* _tmp15_ = NULL;
GtkTreeIter _tmp16_ = {0};
gboolean _tmp17_ = FALSE;
@@ -3645,13 +3647,13 @@ static void user_interface_set_paper_size (UserInterface* self, gint width, gint
iter = _tmp16_;
#line 799 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
have_iter = _tmp17_;
-#line 3649 "ui.c"
+#line 3651 "ui.c"
}
#line 800 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp18_ = have_iter;
#line 800 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp18_) {
-#line 3655 "ui.c"
+#line 3657 "ui.c"
GtkComboBox* _tmp19_ = NULL;
GtkTreeIter _tmp20_ = {0};
#line 801 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -3660,7 +3662,7 @@ static void user_interface_set_paper_size (UserInterface* self, gint width, gint
_tmp20_ = iter;
#line 801 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_combo_box_set_active_iter (_tmp19_, &_tmp20_);
-#line 3664 "ui.c"
+#line 3666 "ui.c"
}
}
@@ -3684,7 +3686,7 @@ static gint user_interface_get_text_dpi (UserInterface* self) {
iter = _tmp1_;
#line 809 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp2_) {
-#line 3688 "ui.c"
+#line 3690 "ui.c"
GtkListStore* _tmp3_ = NULL;
GtkTreeIter _tmp4_ = {0};
#line 810 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -3693,13 +3695,13 @@ static gint user_interface_get_text_dpi (UserInterface* self) {
_tmp4_ = iter;
#line 810 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_tree_model_get ((GtkTreeModel*) _tmp3_, &_tmp4_, 0, &dpi, -1, -1);
-#line 3697 "ui.c"
+#line 3699 "ui.c"
}
#line 812 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = dpi;
#line 812 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 3703 "ui.c"
+#line 3705 "ui.c"
}
@@ -3722,7 +3724,7 @@ static gint user_interface_get_photo_dpi (UserInterface* self) {
iter = _tmp1_;
#line 820 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp2_) {
-#line 3726 "ui.c"
+#line 3728 "ui.c"
GtkListStore* _tmp3_ = NULL;
GtkTreeIter _tmp4_ = {0};
#line 821 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -3731,13 +3733,13 @@ static gint user_interface_get_photo_dpi (UserInterface* self) {
_tmp4_ = iter;
#line 821 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_tree_model_get ((GtkTreeModel*) _tmp3_, &_tmp4_, 0, &dpi, -1, -1);
-#line 3735 "ui.c"
+#line 3737 "ui.c"
}
#line 823 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = dpi;
#line 823 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 3741 "ui.c"
+#line 3743 "ui.c"
}
@@ -3761,7 +3763,7 @@ static ScanType user_interface_get_page_side (UserInterface* self) {
iter = _tmp1_;
#line 831 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp2_) {
-#line 3765 "ui.c"
+#line 3767 "ui.c"
GtkListStore* _tmp3_ = NULL;
GtkTreeIter _tmp4_ = {0};
#line 832 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -3770,7 +3772,7 @@ static ScanType user_interface_get_page_side (UserInterface* self) {
_tmp4_ = iter;
#line 832 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_tree_model_get ((GtkTreeModel*) _tmp3_, &_tmp4_, 0, &page_side, -1, -1);
-#line 3774 "ui.c"
+#line 3776 "ui.c"
}
#line 834 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_ = page_side;
@@ -3778,7 +3780,7 @@ static ScanType user_interface_get_page_side (UserInterface* self) {
result = (ScanType) _tmp5_;
#line 834 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 3782 "ui.c"
+#line 3784 "ui.c"
}
@@ -3807,7 +3809,7 @@ static gboolean user_interface_get_paper_size (UserInterface* self, gint* width,
iter = _tmp2_;
#line 842 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp3_) {
-#line 3811 "ui.c"
+#line 3813 "ui.c"
GtkListStore* _tmp4_ = NULL;
GtkTreeIter _tmp5_ = {0};
#line 844 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -3822,17 +3824,17 @@ static gboolean user_interface_get_paper_size (UserInterface* self, gint* width,
if (width) {
#line 845 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
*width = _vala_width;
-#line 3826 "ui.c"
+#line 3828 "ui.c"
}
#line 845 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (height) {
#line 845 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
*height = _vala_height;
-#line 3832 "ui.c"
+#line 3834 "ui.c"
}
#line 845 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 3836 "ui.c"
+#line 3838 "ui.c"
}
#line 848 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = FALSE;
@@ -3840,17 +3842,17 @@ static gboolean user_interface_get_paper_size (UserInterface* self, gint* width,
if (width) {
#line 848 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
*width = _vala_width;
-#line 3844 "ui.c"
+#line 3846 "ui.c"
}
#line 848 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (height) {
#line 848 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
*height = _vala_height;
-#line 3850 "ui.c"
+#line 3852 "ui.c"
}
#line 848 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 3854 "ui.c"
+#line 3856 "ui.c"
}
@@ -3879,7 +3881,7 @@ static ScanOptions* user_interface_make_scan_options (UserInterface* self) {
_tmp1_ = self->priv->document_hint;
#line 854 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (g_strcmp0 (_tmp1_, "text") == 0) {
-#line 3883 "ui.c"
+#line 3885 "ui.c"
ScanOptions* _tmp2_ = NULL;
ScanOptions* _tmp3_ = NULL;
gint _tmp4_ = 0;
@@ -3898,7 +3900,7 @@ static ScanOptions* user_interface_make_scan_options (UserInterface* self) {
_tmp5_ = options;
#line 858 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_->depth = 2;
-#line 3902 "ui.c"
+#line 3904 "ui.c"
} else {
ScanOptions* _tmp6_ = NULL;
ScanOptions* _tmp7_ = NULL;
@@ -3918,7 +3920,7 @@ static ScanOptions* user_interface_make_scan_options (UserInterface* self) {
_tmp9_ = options;
#line 864 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp9_->depth = 8;
-#line 3922 "ui.c"
+#line 3924 "ui.c"
}
#line 866 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp10_ = options;
@@ -3950,7 +3952,7 @@ static ScanOptions* user_interface_make_scan_options (UserInterface* self) {
result = options;
#line 870 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 3954 "ui.c"
+#line 3956 "ui.c"
}
@@ -3982,14 +3984,14 @@ static void user_interface_scan_button_clicked_cb (UserInterface* self, GtkWidge
_g_free0 (_tmp3_);
#line 874 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_scan_options_unref0 (options);
-#line 3986 "ui.c"
+#line 3988 "ui.c"
}
static void _user_interface_scan_button_clicked_cb_gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_scan_button_clicked_cb ((UserInterface*) self, _sender);
-#line 3993 "ui.c"
+#line 3995 "ui.c"
}
@@ -4000,14 +4002,14 @@ static void user_interface_stop_scan_button_clicked_cb (UserInterface* self, Gtk
g_return_if_fail (widget != NULL);
#line 884 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_signal_emit_by_name (self, "stop-scan");
-#line 4004 "ui.c"
+#line 4006 "ui.c"
}
static void _user_interface_stop_scan_button_clicked_cb_gtk_button_clicked (GtkButton* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_stop_scan_button_clicked_cb ((UserInterface*) self, _sender);
-#line 4011 "ui.c"
+#line 4013 "ui.c"
}
@@ -4026,7 +4028,7 @@ static void user_interface_continuous_scan_button_clicked_cb (UserInterface* sel
if (_tmp1_) {
#line 891 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_signal_emit_by_name (self, "stop-scan");
-#line 4030 "ui.c"
+#line 4032 "ui.c"
} else {
ScanOptions* options = NULL;
ScanOptions* _tmp2_ = NULL;
@@ -4060,7 +4062,7 @@ static void user_interface_continuous_scan_button_clicked_cb (UserInterface* sel
_g_free0 (_tmp7_);
#line 890 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_scan_options_unref0 (options);
-#line 4064 "ui.c"
+#line 4066 "ui.c"
}
}
@@ -4068,7 +4070,7 @@ static void user_interface_continuous_scan_button_clicked_cb (UserInterface* sel
static void _user_interface_continuous_scan_button_clicked_cb_gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_continuous_scan_button_clicked_cb ((UserInterface*) self, _sender);
-#line 4072 "ui.c"
+#line 4074 "ui.c"
}
@@ -4082,14 +4084,14 @@ static void user_interface_preferences_button_clicked_cb (UserInterface* self, G
_tmp0_ = self->priv->preferences_dialog;
#line 903 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_window_present ((GtkWindow*) _tmp0_);
-#line 4086 "ui.c"
+#line 4088 "ui.c"
}
static void _user_interface_preferences_button_clicked_cb_gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_preferences_button_clicked_cb ((UserInterface*) self, _sender);
-#line 4093 "ui.c"
+#line 4095 "ui.c"
}
@@ -4101,7 +4103,7 @@ void user_interface_preferences_activate_cb (UserInterface* self) {
_tmp0_ = self->priv->preferences_dialog;
#line 908 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_window_present ((GtkWindow*) _tmp0_);
-#line 4105 "ui.c"
+#line 4107 "ui.c"
}
@@ -4117,7 +4119,7 @@ static gboolean user_interface_preferences_dialog_delete_event_cb (UserInterface
result = TRUE;
#line 914 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 4121 "ui.c"
+#line 4123 "ui.c"
}
@@ -4126,7 +4128,7 @@ static gboolean _user_interface_preferences_dialog_delete_event_cb_gtk_widget_de
result = user_interface_preferences_dialog_delete_event_cb ((UserInterface*) self, _sender, event);
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 4130 "ui.c"
+#line 4132 "ui.c"
}
@@ -4140,21 +4142,21 @@ static void user_interface_preferences_dialog_response_cb (UserInterface* self,
_tmp0_ = self->priv->preferences_dialog;
#line 920 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_set_visible ((GtkWidget*) _tmp0_, FALSE);
-#line 4144 "ui.c"
+#line 4146 "ui.c"
}
static void _user_interface_preferences_dialog_response_cb_gtk_dialog_response (GtkDialog* _sender, gint response_id, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_preferences_dialog_response_cb ((UserInterface*) self, _sender, response_id);
-#line 4151 "ui.c"
+#line 4153 "ui.c"
}
static gpointer _page_ref0 (gpointer self) {
#line 925 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return self ? page_ref (self) : NULL;
-#line 4158 "ui.c"
+#line 4160 "ui.c"
}
@@ -4181,7 +4183,7 @@ static void user_interface_update_page_menu (UserInterface* self) {
_tmp4_ = page;
#line 926 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp4_ == NULL) {
-#line 4185 "ui.c"
+#line 4187 "ui.c"
GtkMenuItem* _tmp5_ = NULL;
GtkMenuItem* _tmp6_ = NULL;
#line 928 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -4192,7 +4194,7 @@ static void user_interface_update_page_menu (UserInterface* self) {
_tmp6_ = self->priv->page_move_right_menuitem;
#line 929 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_set_sensitive ((GtkWidget*) _tmp6_, FALSE);
-#line 4196 "ui.c"
+#line 4198 "ui.c"
} else {
guint index = 0U;
Book* _tmp7_ = NULL;
@@ -4231,11 +4233,11 @@ static void user_interface_update_page_menu (UserInterface* self) {
_tmp16_ = _tmp15_;
#line 935 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_set_sensitive ((GtkWidget*) _tmp12_, _tmp13_ < (_tmp16_ - 1));
-#line 4235 "ui.c"
+#line 4237 "ui.c"
}
#line 923 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_page_unref0 (page);
-#line 4239 "ui.c"
+#line 4241 "ui.c"
}
@@ -4266,7 +4268,7 @@ static void user_interface_page_selected_cb (UserInterface* self, BookView* view
if (_tmp0_ == NULL) {
#line 942 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
-#line 4270 "ui.c"
+#line 4272 "ui.c"
}
#line 944 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->updating_page_menu = TRUE;
@@ -4286,7 +4288,7 @@ static void user_interface_page_selected_cb (UserInterface* self, BookView* view
_tmp5_ = _tmp4_;
#line 949 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp5_) {
-#line 4290 "ui.c"
+#line 4292 "ui.c"
gchar* crop_name = NULL;
Page* _tmp6_ = NULL;
const gchar* _tmp7_ = NULL;
@@ -4307,13 +4309,13 @@ static void user_interface_page_selected_cb (UserInterface* self, BookView* view
_tmp10_ = crop_name;
#line 952 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp10_ != NULL) {
-#line 4311 "ui.c"
+#line 4313 "ui.c"
const gchar* _tmp11_ = NULL;
#line 954 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp11_ = crop_name;
#line 954 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (g_strcmp0 (_tmp11_, "A4") == 0) {
-#line 4317 "ui.c"
+#line 4319 "ui.c"
GtkRadioMenuItem* _tmp12_ = NULL;
GtkRadioMenuItem* _tmp13_ = NULL;
#line 955 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -4324,14 +4326,14 @@ static void user_interface_page_selected_cb (UserInterface* self, BookView* view
_g_object_unref0 (menuitem);
#line 955 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
menuitem = _tmp13_;
-#line 4328 "ui.c"
+#line 4330 "ui.c"
} else {
const gchar* _tmp14_ = NULL;
#line 956 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp14_ = crop_name;
#line 956 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (g_strcmp0 (_tmp14_, "A5") == 0) {
-#line 4335 "ui.c"
+#line 4337 "ui.c"
GtkRadioMenuItem* _tmp15_ = NULL;
GtkRadioMenuItem* _tmp16_ = NULL;
#line 957 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -4342,14 +4344,14 @@ static void user_interface_page_selected_cb (UserInterface* self, BookView* view
_g_object_unref0 (menuitem);
#line 957 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
menuitem = _tmp16_;
-#line 4346 "ui.c"
+#line 4348 "ui.c"
} else {
const gchar* _tmp17_ = NULL;
#line 958 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp17_ = crop_name;
#line 958 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (g_strcmp0 (_tmp17_, "A6") == 0) {
-#line 4353 "ui.c"
+#line 4355 "ui.c"
GtkRadioMenuItem* _tmp18_ = NULL;
GtkRadioMenuItem* _tmp19_ = NULL;
#line 959 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -4360,14 +4362,14 @@ static void user_interface_page_selected_cb (UserInterface* self, BookView* view
_g_object_unref0 (menuitem);
#line 959 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
menuitem = _tmp19_;
-#line 4364 "ui.c"
+#line 4366 "ui.c"
} else {
const gchar* _tmp20_ = NULL;
#line 960 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp20_ = crop_name;
#line 960 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (g_strcmp0 (_tmp20_, "letter") == 0) {
-#line 4371 "ui.c"
+#line 4373 "ui.c"
GtkRadioMenuItem* _tmp21_ = NULL;
GtkRadioMenuItem* _tmp22_ = NULL;
#line 961 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -4378,14 +4380,14 @@ static void user_interface_page_selected_cb (UserInterface* self, BookView* view
_g_object_unref0 (menuitem);
#line 961 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
menuitem = _tmp22_;
-#line 4382 "ui.c"
+#line 4384 "ui.c"
} else {
const gchar* _tmp23_ = NULL;
#line 962 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp23_ = crop_name;
#line 962 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (g_strcmp0 (_tmp23_, "legal") == 0) {
-#line 4389 "ui.c"
+#line 4391 "ui.c"
GtkRadioMenuItem* _tmp24_ = NULL;
GtkRadioMenuItem* _tmp25_ = NULL;
#line 963 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -4396,14 +4398,14 @@ static void user_interface_page_selected_cb (UserInterface* self, BookView* view
_g_object_unref0 (menuitem);
#line 963 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
menuitem = _tmp25_;
-#line 4400 "ui.c"
+#line 4402 "ui.c"
} else {
const gchar* _tmp26_ = NULL;
#line 964 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp26_ = crop_name;
#line 964 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (g_strcmp0 (_tmp26_, "4x6") == 0) {
-#line 4407 "ui.c"
+#line 4409 "ui.c"
GtkRadioMenuItem* _tmp27_ = NULL;
GtkRadioMenuItem* _tmp28_ = NULL;
#line 965 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -4414,7 +4416,7 @@ static void user_interface_page_selected_cb (UserInterface* self, BookView* view
_g_object_unref0 (menuitem);
#line 965 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
menuitem = _tmp28_;
-#line 4418 "ui.c"
+#line 4420 "ui.c"
}
}
}
@@ -4432,11 +4434,11 @@ static void user_interface_page_selected_cb (UserInterface* self, BookView* view
_g_object_unref0 (menuitem);
#line 968 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
menuitem = _tmp30_;
-#line 4436 "ui.c"
+#line 4438 "ui.c"
}
#line 949 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (crop_name);
-#line 4440 "ui.c"
+#line 4442 "ui.c"
}
#line 971 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp31_ = menuitem;
@@ -4466,7 +4468,7 @@ static void user_interface_page_selected_cb (UserInterface* self, BookView* view
self->priv->updating_page_menu = FALSE;
#line 939 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (menuitem);
-#line 4470 "ui.c"
+#line 4472 "ui.c"
}
@@ -4496,7 +4498,7 @@ static void user_interface_show_page_cb (UserInterface* self, BookView* view, Pa
_g_free0 (path);
#line 982 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
-#line 4500 "ui.c"
+#line 4502 "ui.c"
}
#line 983 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = path;
@@ -4504,7 +4506,7 @@ static void user_interface_show_page_cb (UserInterface* self, BookView* view, Pa
_tmp3_ = g_file_new_for_path (_tmp2_);
#line 983 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
file = _tmp3_;
-#line 4508 "ui.c"
+#line 4510 "ui.c"
{
Page* _tmp4_ = NULL;
gint _tmp5_ = 0;
@@ -4522,7 +4524,7 @@ static void user_interface_show_page_cb (UserInterface* self, BookView* view, Pa
page_save (_tmp4_, "tiff", _tmp6_, _tmp7_, &_inner_error_);
#line 987 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4526 "ui.c"
+#line 4528 "ui.c"
goto __catch18_g_error;
}
}
@@ -4553,7 +4555,7 @@ static void user_interface_show_page_cb (UserInterface* self, BookView* view, Pa
_g_free0 (path);
#line 994 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
-#line 4557 "ui.c"
+#line 4559 "ui.c"
}
__finally18:
#line 985 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -4568,7 +4570,7 @@ static void user_interface_show_page_cb (UserInterface* self, BookView* view, Pa
g_clear_error (&_inner_error_);
#line 985 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
-#line 4572 "ui.c"
+#line 4574 "ui.c"
}
{
GdkScreen* _tmp11_ = NULL;
@@ -4595,7 +4597,7 @@ static void user_interface_show_page_cb (UserInterface* self, BookView* view, Pa
_g_free0 (_tmp15_);
#line 999 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4599 "ui.c"
+#line 4601 "ui.c"
goto __catch19_g_error;
}
}
@@ -4620,7 +4622,7 @@ static void user_interface_show_page_cb (UserInterface* self, BookView* view, Pa
user_interface_show_error_dialog (self, _tmp17_, _tmp19_);
#line 997 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_error_free0 (e);
-#line 4624 "ui.c"
+#line 4626 "ui.c"
}
__finally19:
#line 997 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -4635,13 +4637,13 @@ static void user_interface_show_page_cb (UserInterface* self, BookView* view, Pa
g_clear_error (&_inner_error_);
#line 997 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
-#line 4639 "ui.c"
+#line 4641 "ui.c"
}
#line 978 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (file);
#line 978 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (path);
-#line 4645 "ui.c"
+#line 4647 "ui.c"
}
@@ -4658,7 +4660,7 @@ static void user_interface_show_page_menu_cb (UserInterface* self, BookView* vie
_tmp1_ = gtk_get_current_event_time ();
#line 1011 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_menu_popup (_tmp0_, NULL, NULL, NULL, NULL, (guint) 3, _tmp1_);
-#line 4662 "ui.c"
+#line 4664 "ui.c"
}
@@ -4680,7 +4682,7 @@ static void user_interface_rotate_left_button_clicked_cb (UserInterface* self, G
if (_tmp0_) {
#line 1018 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
-#line 4684 "ui.c"
+#line 4686 "ui.c"
}
#line 1019 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = self->priv->book_view;
@@ -4696,24 +4698,24 @@ static void user_interface_rotate_left_button_clicked_cb (UserInterface* self, G
_tmp5_ = page;
#line 1020 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp5_ != NULL) {
-#line 4700 "ui.c"
+#line 4702 "ui.c"
Page* _tmp6_ = NULL;
#line 1021 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp6_ = page;
#line 1021 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
page_rotate_left (_tmp6_);
-#line 4706 "ui.c"
+#line 4708 "ui.c"
}
#line 1015 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_page_unref0 (page);
-#line 4710 "ui.c"
+#line 4712 "ui.c"
}
static void _user_interface_rotate_left_button_clicked_cb_gtk_button_clicked (GtkButton* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_rotate_left_button_clicked_cb ((UserInterface*) self, _sender);
-#line 4717 "ui.c"
+#line 4719 "ui.c"
}
@@ -4735,7 +4737,7 @@ static void user_interface_rotate_right_button_clicked_cb (UserInterface* self,
if (_tmp0_) {
#line 1028 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
-#line 4739 "ui.c"
+#line 4741 "ui.c"
}
#line 1029 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = self->priv->book_view;
@@ -4751,24 +4753,24 @@ static void user_interface_rotate_right_button_clicked_cb (UserInterface* self,
_tmp5_ = page;
#line 1030 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp5_ != NULL) {
-#line 4755 "ui.c"
+#line 4757 "ui.c"
Page* _tmp6_ = NULL;
#line 1031 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp6_ = page;
#line 1031 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
page_rotate_right (_tmp6_);
-#line 4761 "ui.c"
+#line 4763 "ui.c"
}
#line 1025 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_page_unref0 (page);
-#line 4765 "ui.c"
+#line 4767 "ui.c"
}
static void _user_interface_rotate_right_button_clicked_cb_gtk_button_clicked (GtkButton* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_rotate_right_button_clicked_cb ((UserInterface*) self, _sender);
-#line 4772 "ui.c"
+#line 4774 "ui.c"
}
@@ -4797,7 +4799,7 @@ static void user_interface_set_crop (UserInterface* self, const gchar* crop_name
if (_tmp2_) {
#line 1039 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
-#line 4801 "ui.c"
+#line 4803 "ui.c"
}
#line 1041 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = self->priv->book_view;
@@ -4819,26 +4821,26 @@ static void user_interface_set_crop (UserInterface* self, const gchar* crop_name
_page_unref0 (page);
#line 1045 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
-#line 4823 "ui.c"
+#line 4825 "ui.c"
}
#line 1048 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp8_ = crop_name;
#line 1048 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp8_ == NULL) {
-#line 4829 "ui.c"
+#line 4831 "ui.c"
Page* _tmp9_ = NULL;
#line 1049 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp9_ = page;
#line 1049 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
page_set_no_crop (_tmp9_);
-#line 4835 "ui.c"
+#line 4837 "ui.c"
} else {
const gchar* _tmp10_ = NULL;
#line 1050 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp10_ = crop_name;
#line 1050 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (g_strcmp0 (_tmp10_, "custom") == 0) {
-#line 4842 "ui.c"
+#line 4844 "ui.c"
gint width = 0;
Page* _tmp11_ = NULL;
gint _tmp12_ = 0;
@@ -4903,7 +4905,7 @@ static void user_interface_set_crop (UserInterface* self, const gchar* crop_name
_tmp26_ = crop_height;
#line 1057 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
page_move_crop (_tmp22_, (_tmp23_ - _tmp24_) / 2, (_tmp25_ - _tmp26_) / 2);
-#line 4907 "ui.c"
+#line 4909 "ui.c"
} else {
Page* _tmp27_ = NULL;
const gchar* _tmp28_ = NULL;
@@ -4913,12 +4915,12 @@ static void user_interface_set_crop (UserInterface* self, const gchar* crop_name
_tmp28_ = crop_name;
#line 1060 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
page_set_named_crop (_tmp27_, _tmp28_);
-#line 4917 "ui.c"
+#line 4919 "ui.c"
}
}
#line 1034 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_page_unref0 (page);
-#line 4922 "ui.c"
+#line 4924 "ui.c"
}
@@ -4940,7 +4942,7 @@ static void user_interface_no_crop_menuitem_toggled_cb (UserInterface* self, Gtk
if (_tmp2_) {
#line 1067 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_set_crop (self, NULL);
-#line 4944 "ui.c"
+#line 4946 "ui.c"
}
}
@@ -4948,7 +4950,7 @@ static void user_interface_no_crop_menuitem_toggled_cb (UserInterface* self, Gtk
static void _user_interface_no_crop_menuitem_toggled_cb_gtk_check_menu_item_toggled (GtkCheckMenuItem* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_no_crop_menuitem_toggled_cb ((UserInterface*) self, _sender);
-#line 4952 "ui.c"
+#line 4954 "ui.c"
}
@@ -4970,7 +4972,7 @@ static void user_interface_custom_crop_menuitem_toggled_cb (UserInterface* self,
if (_tmp2_) {
#line 1074 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_set_crop (self, "custom");
-#line 4974 "ui.c"
+#line 4976 "ui.c"
}
}
@@ -4978,7 +4980,7 @@ static void user_interface_custom_crop_menuitem_toggled_cb (UserInterface* self,
static void _user_interface_custom_crop_menuitem_toggled_cb_gtk_check_menu_item_toggled (GtkCheckMenuItem* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_custom_crop_menuitem_toggled_cb ((UserInterface*) self, _sender);
-#line 4982 "ui.c"
+#line 4984 "ui.c"
}
@@ -4997,7 +4999,7 @@ static void user_interface_crop_button_toggled_cb (UserInterface* self, GtkToggl
if (_tmp0_) {
#line 1081 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
-#line 5001 "ui.c"
+#line 5003 "ui.c"
}
#line 1083 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = widget;
@@ -5007,20 +5009,20 @@ static void user_interface_crop_button_toggled_cb (UserInterface* self, GtkToggl
_tmp3_ = _tmp2_;
#line 1083 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp3_) {
-#line 5011 "ui.c"
+#line 5013 "ui.c"
GtkRadioMenuItem* _tmp4_ = NULL;
#line 1084 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = self->priv->custom_crop_menuitem;
#line 1084 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_check_menu_item_set_active ((GtkCheckMenuItem*) _tmp4_, TRUE);
-#line 5017 "ui.c"
+#line 5019 "ui.c"
} else {
GtkRadioMenuItem* _tmp5_ = NULL;
#line 1086 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_ = self->priv->no_crop_menuitem;
#line 1086 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_check_menu_item_set_active ((GtkCheckMenuItem*) _tmp5_, TRUE);
-#line 5024 "ui.c"
+#line 5026 "ui.c"
}
}
@@ -5028,7 +5030,7 @@ static void user_interface_crop_button_toggled_cb (UserInterface* self, GtkToggl
static void _user_interface_crop_button_toggled_cb_gtk_toggle_button_toggled (GtkToggleButton* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_crop_button_toggled_cb ((UserInterface*) self, _sender);
-#line 5032 "ui.c"
+#line 5034 "ui.c"
}
@@ -5047,7 +5049,7 @@ static void user_interface_crop_toolbutton_toggled_cb (UserInterface* self, GtkT
if (_tmp0_) {
#line 1093 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
-#line 5051 "ui.c"
+#line 5053 "ui.c"
}
#line 1095 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = widget;
@@ -5057,20 +5059,20 @@ static void user_interface_crop_toolbutton_toggled_cb (UserInterface* self, GtkT
_tmp3_ = _tmp2_;
#line 1095 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp3_) {
-#line 5061 "ui.c"
+#line 5063 "ui.c"
GtkRadioMenuItem* _tmp4_ = NULL;
#line 1096 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = self->priv->custom_crop_menuitem;
#line 1096 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_check_menu_item_set_active ((GtkCheckMenuItem*) _tmp4_, TRUE);
-#line 5067 "ui.c"
+#line 5069 "ui.c"
} else {
GtkRadioMenuItem* _tmp5_ = NULL;
#line 1098 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_ = self->priv->no_crop_menuitem;
#line 1098 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_check_menu_item_set_active ((GtkCheckMenuItem*) _tmp5_, TRUE);
-#line 5074 "ui.c"
+#line 5076 "ui.c"
}
}
@@ -5078,7 +5080,7 @@ static void user_interface_crop_toolbutton_toggled_cb (UserInterface* self, GtkT
static void _user_interface_crop_toolbutton_toggled_cb_gtk_toggle_tool_button_toggled (GtkToggleToolButton* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_crop_toolbutton_toggled_cb ((UserInterface*) self, _sender);
-#line 5082 "ui.c"
+#line 5084 "ui.c"
}
@@ -5100,7 +5102,7 @@ static void user_interface_four_by_six_menuitem_toggled_cb (UserInterface* self,
if (_tmp2_) {
#line 1105 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_set_crop (self, "4x6");
-#line 5104 "ui.c"
+#line 5106 "ui.c"
}
}
@@ -5108,7 +5110,7 @@ static void user_interface_four_by_six_menuitem_toggled_cb (UserInterface* self,
static void _user_interface_four_by_six_menuitem_toggled_cb_gtk_check_menu_item_toggled (GtkCheckMenuItem* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_four_by_six_menuitem_toggled_cb ((UserInterface*) self, _sender);
-#line 5112 "ui.c"
+#line 5114 "ui.c"
}
@@ -5130,7 +5132,7 @@ static void user_interface_legal_menuitem_toggled_cb (UserInterface* self, GtkCh
if (_tmp2_) {
#line 1112 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_set_crop (self, "legal");
-#line 5134 "ui.c"
+#line 5136 "ui.c"
}
}
@@ -5138,7 +5140,7 @@ static void user_interface_legal_menuitem_toggled_cb (UserInterface* self, GtkCh
static void _user_interface_legal_menuitem_toggled_cb_gtk_check_menu_item_toggled (GtkCheckMenuItem* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_legal_menuitem_toggled_cb ((UserInterface*) self, _sender);
-#line 5142 "ui.c"
+#line 5144 "ui.c"
}
@@ -5160,7 +5162,7 @@ static void user_interface_letter_menuitem_toggled_cb (UserInterface* self, GtkC
if (_tmp2_) {
#line 1119 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_set_crop (self, "letter");
-#line 5164 "ui.c"
+#line 5166 "ui.c"
}
}
@@ -5168,7 +5170,7 @@ static void user_interface_letter_menuitem_toggled_cb (UserInterface* self, GtkC
static void _user_interface_letter_menuitem_toggled_cb_gtk_check_menu_item_toggled (GtkCheckMenuItem* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_letter_menuitem_toggled_cb ((UserInterface*) self, _sender);
-#line 5172 "ui.c"
+#line 5174 "ui.c"
}
@@ -5190,7 +5192,7 @@ static void user_interface_a6_menuitem_toggled_cb (UserInterface* self, GtkCheck
if (_tmp2_) {
#line 1126 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_set_crop (self, "A6");
-#line 5194 "ui.c"
+#line 5196 "ui.c"
}
}
@@ -5198,7 +5200,7 @@ static void user_interface_a6_menuitem_toggled_cb (UserInterface* self, GtkCheck
static void _user_interface_a6_menuitem_toggled_cb_gtk_check_menu_item_toggled (GtkCheckMenuItem* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_a6_menuitem_toggled_cb ((UserInterface*) self, _sender);
-#line 5202 "ui.c"
+#line 5204 "ui.c"
}
@@ -5220,7 +5222,7 @@ static void user_interface_a5_menuitem_toggled_cb (UserInterface* self, GtkCheck
if (_tmp2_) {
#line 1133 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_set_crop (self, "A5");
-#line 5224 "ui.c"
+#line 5226 "ui.c"
}
}
@@ -5228,7 +5230,7 @@ static void user_interface_a5_menuitem_toggled_cb (UserInterface* self, GtkCheck
static void _user_interface_a5_menuitem_toggled_cb_gtk_check_menu_item_toggled (GtkCheckMenuItem* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_a5_menuitem_toggled_cb ((UserInterface*) self, _sender);
-#line 5232 "ui.c"
+#line 5234 "ui.c"
}
@@ -5250,7 +5252,7 @@ static void user_interface_a4_menuitem_toggled_cb (UserInterface* self, GtkCheck
if (_tmp2_) {
#line 1140 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_set_crop (self, "A4");
-#line 5254 "ui.c"
+#line 5256 "ui.c"
}
}
@@ -5258,7 +5260,7 @@ static void user_interface_a4_menuitem_toggled_cb (UserInterface* self, GtkCheck
static void _user_interface_a4_menuitem_toggled_cb_gtk_check_menu_item_toggled (GtkCheckMenuItem* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_a4_menuitem_toggled_cb ((UserInterface*) self, _sender);
-#line 5262 "ui.c"
+#line 5264 "ui.c"
}
@@ -5292,7 +5294,7 @@ static void user_interface_crop_rotate_menuitem_activate_cb (UserInterface* self
_page_unref0 (page);
#line 1148 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
-#line 5296 "ui.c"
+#line 5298 "ui.c"
}
#line 1149 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_ = page;
@@ -5300,14 +5302,14 @@ static void user_interface_crop_rotate_menuitem_activate_cb (UserInterface* self
page_rotate_crop (_tmp5_);
#line 1144 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_page_unref0 (page);
-#line 5304 "ui.c"
+#line 5306 "ui.c"
}
static void _user_interface_crop_rotate_menuitem_activate_cb_gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_crop_rotate_menuitem_activate_cb ((UserInterface*) self, _sender);
-#line 5311 "ui.c"
+#line 5313 "ui.c"
}
@@ -5348,7 +5350,7 @@ static void user_interface_page_move_left_menuitem_activate_cb (UserInterface* s
_tmp7_ = index;
#line 1157 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp7_ > ((guint) 0)) {
-#line 5352 "ui.c"
+#line 5354 "ui.c"
Book* _tmp8_ = NULL;
Page* _tmp9_ = NULL;
guint _tmp10_ = 0U;
@@ -5360,18 +5362,18 @@ static void user_interface_page_move_left_menuitem_activate_cb (UserInterface* s
_tmp10_ = index;
#line 1158 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
book_move_page (_tmp8_, _tmp9_, _tmp10_ - 1);
-#line 5364 "ui.c"
+#line 5366 "ui.c"
}
#line 1153 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_page_unref0 (page);
-#line 5368 "ui.c"
+#line 5370 "ui.c"
}
static void _user_interface_page_move_left_menuitem_activate_cb_gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_page_move_left_menuitem_activate_cb ((UserInterface*) self, _sender);
-#line 5375 "ui.c"
+#line 5377 "ui.c"
}
@@ -5421,7 +5423,7 @@ static void user_interface_page_move_right_menuitem_activate_cb (UserInterface*
_tmp10_ = _tmp9_;
#line 1166 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp7_ < (_tmp10_ - 1)) {
-#line 5425 "ui.c"
+#line 5427 "ui.c"
Book* _tmp11_ = NULL;
Page* _tmp12_ = NULL;
Book* _tmp13_ = NULL;
@@ -5439,18 +5441,18 @@ static void user_interface_page_move_right_menuitem_activate_cb (UserInterface*
_tmp15_ = book_get_page_index (_tmp13_, _tmp14_);
#line 1167 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
book_move_page (_tmp11_, _tmp12_, _tmp15_ + 1);
-#line 5443 "ui.c"
+#line 5445 "ui.c"
}
#line 1162 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_page_unref0 (page);
-#line 5447 "ui.c"
+#line 5449 "ui.c"
}
static void _user_interface_page_move_right_menuitem_activate_cb_gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_page_move_right_menuitem_activate_cb ((UserInterface*) self, _sender);
-#line 5454 "ui.c"
+#line 5456 "ui.c"
}
@@ -5479,14 +5481,14 @@ static void user_interface_page_delete_menuitem_activate_cb (UserInterface* self
_tmp5_ = _tmp4_;
#line 1173 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
book_delete_page (_tmp2_, _tmp5_);
-#line 5483 "ui.c"
+#line 5485 "ui.c"
}
static void _user_interface_page_delete_menuitem_activate_cb_gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_page_delete_menuitem_activate_cb ((UserInterface*) self, _sender);
-#line 5490 "ui.c"
+#line 5492 "ui.c"
}
@@ -5495,7 +5497,7 @@ static Block2Data* block2_data_ref (Block2Data* _data2_) {
g_atomic_int_inc (&_data2_->_ref_count_);
#line 1176 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return _data2_;
-#line 5499 "ui.c"
+#line 5501 "ui.c"
}
@@ -5504,7 +5506,7 @@ static void block2_data_unref (void * _userdata_) {
_data2_ = (Block2Data*) _userdata_;
#line 1176 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (g_atomic_int_dec_and_test (&_data2_->_ref_count_)) {
-#line 5508 "ui.c"
+#line 5510 "ui.c"
UserInterface* self;
#line 1176 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self = _data2_->self;
@@ -5514,7 +5516,7 @@ static void block2_data_unref (void * _userdata_) {
_g_object_unref0 (self);
#line 1176 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_slice_free (Block2Data, _data2_);
-#line 5518 "ui.c"
+#line 5520 "ui.c"
}
}
@@ -5535,7 +5537,7 @@ static gboolean __lambda6_ (Block2Data* _data2_, GdkEventKey* e) {
_tmp2_ = _tmp1_->state;
#line 1187 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp2_ == 0) {
-#line 5539 "ui.c"
+#line 5541 "ui.c"
GdkEventKey* _tmp3_ = NULL;
guint _tmp4_ = 0U;
#line 1187 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -5544,11 +5546,11 @@ static gboolean __lambda6_ (Block2Data* _data2_, GdkEventKey* e) {
_tmp4_ = _tmp3_->keyval;
#line 1187 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = _tmp4_ == ((guint) GDK_KEY_Escape);
-#line 5548 "ui.c"
+#line 5550 "ui.c"
} else {
#line 1187 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = FALSE;
-#line 5552 "ui.c"
+#line 5554 "ui.c"
}
#line 1187 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp0_) {
@@ -5558,13 +5560,13 @@ static gboolean __lambda6_ (Block2Data* _data2_, GdkEventKey* e) {
result = TRUE;
#line 1190 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 5562 "ui.c"
+#line 5564 "ui.c"
}
#line 1193 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = FALSE;
#line 1193 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 5568 "ui.c"
+#line 5570 "ui.c"
}
@@ -5573,7 +5575,7 @@ static gboolean ___lambda6__gtk_widget_key_press_event (GtkWidget* _sender, GdkE
result = __lambda6_ (self, event);
#line 1185 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 5577 "ui.c"
+#line 5579 "ui.c"
}
@@ -5588,14 +5590,14 @@ static void __lambda7_ (Block2Data* _data2_) {
book_combine_sides (_tmp0_);
#line 1210 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_destroy ((GtkWidget*) _data2_->dialog);
-#line 5592 "ui.c"
+#line 5594 "ui.c"
}
static void ___lambda7__gtk_button_clicked (GtkButton* _sender, gpointer self) {
#line 1207 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
__lambda7_ (self);
-#line 5599 "ui.c"
+#line 5601 "ui.c"
}
@@ -5610,14 +5612,14 @@ static void __lambda8_ (Block2Data* _data2_) {
book_combine_sides_reverse (_tmp0_);
#line 1220 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_destroy ((GtkWidget*) _data2_->dialog);
-#line 5614 "ui.c"
+#line 5616 "ui.c"
}
static void ___lambda8__gtk_button_clicked (GtkButton* _sender, gpointer self) {
#line 1217 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
__lambda8_ (self);
-#line 5621 "ui.c"
+#line 5623 "ui.c"
}
@@ -5632,14 +5634,14 @@ static void __lambda9_ (Block2Data* _data2_) {
book_reverse (_tmp0_);
#line 1230 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_destroy ((GtkWidget*) _data2_->dialog);
-#line 5636 "ui.c"
+#line 5638 "ui.c"
}
static void ___lambda9__gtk_button_clicked (GtkButton* _sender, gpointer self) {
#line 1227 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
__lambda9_ (self);
-#line 5643 "ui.c"
+#line 5645 "ui.c"
}
@@ -5649,14 +5651,14 @@ static void __lambda10_ (Block2Data* _data2_) {
self = _data2_->self;
#line 1239 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_destroy ((GtkWidget*) _data2_->dialog);
-#line 5653 "ui.c"
+#line 5655 "ui.c"
}
static void ___lambda10__gtk_button_clicked (GtkButton* _sender, gpointer self) {
#line 1237 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
__lambda10_ (self);
-#line 5660 "ui.c"
+#line 5662 "ui.c"
}
@@ -5823,7 +5825,7 @@ static void user_interface_reorder_document (UserInterface* self) {
block2_data_unref (_data2_);
#line 1176 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_data2_ = NULL;
-#line 5827 "ui.c"
+#line 5829 "ui.c"
}
@@ -5832,7 +5834,7 @@ void user_interface_reorder_document_activate_cb (UserInterface* self) {
g_return_if_fail (self != NULL);
#line 1249 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_reorder_document (self);
-#line 5836 "ui.c"
+#line 5838 "ui.c"
}
@@ -5843,14 +5845,14 @@ static void user_interface_reorder_menuitem_activate_cb (UserInterface* self, Gt
g_return_if_fail (widget != NULL);
#line 1255 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_reorder_document (self);
-#line 5847 "ui.c"
+#line 5849 "ui.c"
}
static void _user_interface_reorder_menuitem_activate_cb_gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_reorder_menuitem_activate_cb ((UserInterface*) self, _sender);
-#line 5854 "ui.c"
+#line 5856 "ui.c"
}
@@ -5920,7 +5922,7 @@ static GtkButton* user_interface_make_reorder_button (UserInterface* self, const
_g_object_unref0 (vbox);
#line 1274 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 5924 "ui.c"
+#line 5926 "ui.c"
}
@@ -5938,7 +5940,7 @@ static gchar string_get (const gchar* self, glong index) {
result = _tmp1_;
#line 1087 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
return result;
-#line 5942 "ui.c"
+#line 5944 "ui.c"
}
@@ -5964,19 +5966,19 @@ static GtkBox* user_interface_make_reorder_box (UserInterface* self, const gchar
gtk_widget_set_visible ((GtkWidget*) _tmp1_, TRUE);
#line 1282 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
page_box = NULL;
-#line 5968 "ui.c"
+#line 5970 "ui.c"
{
gint i = 0;
#line 1283 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
i = 0;
-#line 5973 "ui.c"
+#line 5975 "ui.c"
{
gboolean _tmp2_ = FALSE;
#line 1283 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = TRUE;
#line 1283 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
while (TRUE) {
-#line 5980 "ui.c"
+#line 5982 "ui.c"
const gchar* _tmp4_ = NULL;
gint _tmp5_ = 0;
gchar _tmp6_ = '\0';
@@ -6018,13 +6020,13 @@ static GtkBox* user_interface_make_reorder_box (UserInterface* self, const gchar
PageIcon* _tmp51_ = NULL;
#line 1283 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (!_tmp2_) {
-#line 6022 "ui.c"
+#line 6024 "ui.c"
gint _tmp3_ = 0;
#line 1283 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = i;
#line 1283 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
i = _tmp3_ + 1;
-#line 6028 "ui.c"
+#line 6030 "ui.c"
}
#line 1283 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = FALSE;
@@ -6038,7 +6040,7 @@ static GtkBox* user_interface_make_reorder_box (UserInterface* self, const gchar
if (!(_tmp6_ != '\0')) {
#line 1283 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 6042 "ui.c"
+#line 6044 "ui.c"
}
#line 1285 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp7_ = items;
@@ -6048,7 +6050,7 @@ static GtkBox* user_interface_make_reorder_box (UserInterface* self, const gchar
_tmp9_ = string_get (_tmp7_, (glong) _tmp8_);
#line 1285 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp9_ == '-') {
-#line 6052 "ui.c"
+#line 6054 "ui.c"
GtkArrow* a = NULL;
GtkArrow* _tmp10_ = NULL;
GtkArrow* _tmp11_ = NULL;
@@ -6078,7 +6080,7 @@ static GtkBox* user_interface_make_reorder_box (UserInterface* self, const gchar
_g_object_unref0 (a);
#line 1291 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
continue;
-#line 6082 "ui.c"
+#line 6084 "ui.c"
}
#line 1295 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp14_ = items;
@@ -6102,13 +6104,13 @@ static GtkBox* user_interface_make_reorder_box (UserInterface* self, const gchar
if (_tmp20_ == '\0') {
#line 1298 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 6106 "ui.c"
+#line 6108 "ui.c"
}
#line 1300 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp21_ = page_box;
#line 1300 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp21_ == NULL) {
-#line 6112 "ui.c"
+#line 6114 "ui.c"
GtkBox* _tmp22_ = NULL;
GtkBox* _tmp23_ = NULL;
GtkBox* _tmp24_ = NULL;
@@ -6131,7 +6133,7 @@ static GtkBox* user_interface_make_reorder_box (UserInterface* self, const gchar
_tmp25_ = page_box;
#line 1304 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_box_pack_start (_tmp24_, (GtkWidget*) _tmp25_, FALSE, FALSE, (guint) 0);
-#line 6135 "ui.c"
+#line 6137 "ui.c"
}
#line 1308 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
r = 1.0;
@@ -6145,7 +6147,7 @@ static GtkBox* user_interface_make_reorder_box (UserInterface* self, const gchar
switch (_tmp26_) {
#line 1311 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
case 'F':
-#line 6149 "ui.c"
+#line 6151 "ui.c"
{
#line 1315 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
r = 0x75 / 255.0;
@@ -6155,11 +6157,11 @@ static GtkBox* user_interface_make_reorder_box (UserInterface* self, const gchar
b = 0x7B / 255.0;
#line 1318 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 6159 "ui.c"
+#line 6161 "ui.c"
}
#line 1311 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
case 'B':
-#line 6163 "ui.c"
+#line 6165 "ui.c"
{
#line 1321 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
r = 0xF5 / 255.0;
@@ -6169,11 +6171,11 @@ static GtkBox* user_interface_make_reorder_box (UserInterface* self, const gchar
b = 0.0;
#line 1324 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 6173 "ui.c"
+#line 6175 "ui.c"
}
#line 1311 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
case 'C':
-#line 6177 "ui.c"
+#line 6179 "ui.c"
{
gdouble p = 0.0;
const gchar* _tmp27_ = NULL;
@@ -6204,12 +6206,12 @@ static GtkBox* user_interface_make_reorder_box (UserInterface* self, const gchar
b = (gdouble) 0;
#line 1331 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 6208 "ui.c"
+#line 6210 "ui.c"
}
default:
#line 1311 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 6213 "ui.c"
+#line 6215 "ui.c"
}
#line 1335 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp33_ = r;
@@ -6267,7 +6269,7 @@ static GtkBox* user_interface_make_reorder_box (UserInterface* self, const gchar
gtk_box_pack_start (_tmp50_, (GtkWidget*) _tmp51_, FALSE, FALSE, (guint) 0);
#line 1283 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (icon);
-#line 6271 "ui.c"
+#line 6273 "ui.c"
}
}
}
@@ -6277,7 +6279,7 @@ static GtkBox* user_interface_make_reorder_box (UserInterface* self, const gchar
_g_object_unref0 (page_box);
#line 1344 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 6281 "ui.c"
+#line 6283 "ui.c"
}
@@ -6288,14 +6290,14 @@ static void user_interface_save_file_button_clicked_cb (UserInterface* self, Gtk
g_return_if_fail (widget != NULL);
#line 1350 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_save_document (self, FALSE);
-#line 6292 "ui.c"
+#line 6294 "ui.c"
}
static void _user_interface_save_file_button_clicked_cb_gtk_button_clicked (GtkButton* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_save_file_button_clicked_cb ((UserInterface*) self, _sender);
-#line 6299 "ui.c"
+#line 6301 "ui.c"
}
@@ -6304,7 +6306,7 @@ void user_interface_save_document_activate_cb (UserInterface* self) {
g_return_if_fail (self != NULL);
#line 1355 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_save_document (self, FALSE);
-#line 6308 "ui.c"
+#line 6310 "ui.c"
}
@@ -6333,24 +6335,24 @@ static void user_interface_copy_to_clipboard_button_clicked_cb (UserInterface* s
_tmp4_ = page;
#line 1362 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp4_ != NULL) {
-#line 6337 "ui.c"
+#line 6339 "ui.c"
Page* _tmp5_ = NULL;
#line 1363 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_ = page;
#line 1363 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
page_copy_to_clipboard (_tmp5_, (GtkWindow*) self);
-#line 6343 "ui.c"
+#line 6345 "ui.c"
}
#line 1359 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_page_unref0 (page);
-#line 6347 "ui.c"
+#line 6349 "ui.c"
}
static void _user_interface_copy_to_clipboard_button_clicked_cb_gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_copy_to_clipboard_button_clicked_cb ((UserInterface*) self, _sender);
-#line 6354 "ui.c"
+#line 6356 "ui.c"
}
@@ -6361,14 +6363,14 @@ static void user_interface_save_as_file_button_clicked_cb (UserInterface* self,
g_return_if_fail (widget != NULL);
#line 1369 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_save_document (self, TRUE);
-#line 6365 "ui.c"
+#line 6367 "ui.c"
}
static void _user_interface_save_as_file_button_clicked_cb_gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_save_as_file_button_clicked_cb ((UserInterface*) self, _sender);
-#line 6372 "ui.c"
+#line 6374 "ui.c"
}
@@ -6377,14 +6379,14 @@ void user_interface_save_as_document_activate_cb (UserInterface* self) {
g_return_if_fail (self != NULL);
#line 1374 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_save_document (self, TRUE);
-#line 6381 "ui.c"
+#line 6383 "ui.c"
}
static gpointer _cairo_reference0 (gpointer self) {
#line 1381 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return self ? cairo_reference (self) : NULL;
-#line 6388 "ui.c"
+#line 6390 "ui.c"
}
@@ -6458,7 +6460,7 @@ static void user_interface_draw_page (UserInterface* self, GtkPrintOperation* op
if (_tmp7_ > _tmp9_) {
#line 1387 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
is_landscape = TRUE;
-#line 6462 "ui.c"
+#line 6464 "ui.c"
}
#line 1388 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp10_ = page;
@@ -6470,7 +6472,7 @@ static void user_interface_draw_page (UserInterface* self, GtkPrintOperation* op
_tmp13_ = is_landscape;
#line 1388 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp12_ != _tmp13_) {
-#line 6474 "ui.c"
+#line 6476 "ui.c"
cairo_t* _tmp14_ = NULL;
GtkPrintContext* _tmp15_ = NULL;
gdouble _tmp16_ = 0.0;
@@ -6487,7 +6489,7 @@ static void user_interface_draw_page (UserInterface* self, GtkPrintOperation* op
_tmp17_ = context;
#line 1391 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
cairo_rotate (_tmp17_, G_PI_2);
-#line 6491 "ui.c"
+#line 6493 "ui.c"
}
#line 1394 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp18_ = context;
@@ -6533,7 +6535,7 @@ static void user_interface_draw_page (UserInterface* self, GtkPrintOperation* op
_page_unref0 (page);
#line 1377 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_cairo_destroy0 (context);
-#line 6537 "ui.c"
+#line 6539 "ui.c"
}
@@ -6553,14 +6555,14 @@ static void user_interface_email_button_clicked_cb (UserInterface* self, GtkWidg
_tmp2_ = _tmp1_;
#line 1405 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_signal_emit_by_name (self, "email", _tmp0_, _tmp2_);
-#line 6557 "ui.c"
+#line 6559 "ui.c"
}
static void _user_interface_email_button_clicked_cb_gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_email_button_clicked_cb ((UserInterface*) self, _sender);
-#line 6564 "ui.c"
+#line 6566 "ui.c"
}
@@ -6578,14 +6580,14 @@ void user_interface_email_document_activate_cb (UserInterface* self) {
_tmp2_ = _tmp1_;
#line 1410 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_signal_emit_by_name (self, "email", _tmp0_, _tmp2_);
-#line 6582 "ui.c"
+#line 6584 "ui.c"
}
static void _user_interface_draw_page_gtk_print_operation_draw_page (GtkPrintOperation* _sender, GtkPrintContext* context, gint page_nr, gpointer self) {
#line 1417 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_draw_page ((UserInterface*) self, _sender, context, page_nr);
-#line 6589 "ui.c"
+#line 6591 "ui.c"
}
@@ -6613,13 +6615,13 @@ static void user_interface_print_document (UserInterface* self) {
g_object_set (print, "n-pages", (gint) _tmp3_, NULL);
#line 1417 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_signal_connect_object (print, "draw-page", (GCallback) _user_interface_draw_page_gtk_print_operation_draw_page, self, 0);
-#line 6617 "ui.c"
+#line 6619 "ui.c"
{
#line 1421 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_print_operation_run (print, GTK_PRINT_OPERATION_ACTION_PRINT_DIALOG, (GtkWindow*) self, &_inner_error_);
#line 1421 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 6623 "ui.c"
+#line 6625 "ui.c"
goto __catch20_g_error;
}
}
@@ -6641,7 +6643,7 @@ static void user_interface_print_document (UserInterface* self) {
g_warning ("ui.vala:1425: Error printing: %s", _tmp5_);
#line 1419 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_error_free0 (e);
-#line 6645 "ui.c"
+#line 6647 "ui.c"
}
__finally20:
#line 1419 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -6654,7 +6656,7 @@ static void user_interface_print_document (UserInterface* self) {
g_clear_error (&_inner_error_);
#line 1419 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
-#line 6658 "ui.c"
+#line 6660 "ui.c"
}
#line 1428 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_signal_parse_name ("draw-page", gtk_print_operation_get_type (), &_tmp6_, NULL, FALSE);
@@ -6662,7 +6664,7 @@ static void user_interface_print_document (UserInterface* self) {
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 1413 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (print);
-#line 6666 "ui.c"
+#line 6668 "ui.c"
}
@@ -6673,14 +6675,14 @@ static void user_interface_print_button_clicked_cb (UserInterface* self, GtkWidg
g_return_if_fail (widget != NULL);
#line 1434 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_print_document (self);
-#line 6677 "ui.c"
+#line 6679 "ui.c"
}
static void _user_interface_print_button_clicked_cb_gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_print_button_clicked_cb ((UserInterface*) self, _sender);
-#line 6684 "ui.c"
+#line 6686 "ui.c"
}
@@ -6689,7 +6691,7 @@ void user_interface_print_document_activate_cb (UserInterface* self) {
g_return_if_fail (self != NULL);
#line 1439 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_print_document (self);
-#line 6693 "ui.c"
+#line 6695 "ui.c"
}
@@ -6697,7 +6699,7 @@ static void user_interface_launch_help (UserInterface* self) {
GError * _inner_error_ = NULL;
#line 1442 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
-#line 6701 "ui.c"
+#line 6703 "ui.c"
{
GdkScreen* _tmp0_ = NULL;
GdkScreen* _tmp1_ = NULL;
@@ -6712,7 +6714,7 @@ static void user_interface_launch_help (UserInterface* self) {
gtk_show_uri (_tmp1_, "help:simple-scan", _tmp2_, &_inner_error_);
#line 1446 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 6716 "ui.c"
+#line 6718 "ui.c"
goto __catch21_g_error;
}
}
@@ -6737,7 +6739,7 @@ static void user_interface_launch_help (UserInterface* self) {
user_interface_show_error_dialog (self, _tmp3_, _tmp5_);
#line 1444 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_error_free0 (e);
-#line 6741 "ui.c"
+#line 6743 "ui.c"
}
__finally21:
#line 1444 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -6748,7 +6750,7 @@ static void user_interface_launch_help (UserInterface* self) {
g_clear_error (&_inner_error_);
#line 1444 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
-#line 6752 "ui.c"
+#line 6754 "ui.c"
}
}
@@ -6760,14 +6762,14 @@ static void user_interface_help_contents_menuitem_activate_cb (UserInterface* se
g_return_if_fail (widget != NULL);
#line 1459 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_launch_help (self);
-#line 6764 "ui.c"
+#line 6766 "ui.c"
}
static void _user_interface_help_contents_menuitem_activate_cb_gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_help_contents_menuitem_activate_cb ((UserInterface*) self, _sender);
-#line 6771 "ui.c"
+#line 6773 "ui.c"
}
@@ -6776,7 +6778,7 @@ void user_interface_help_contents_activate_cb (UserInterface* self) {
g_return_if_fail (self != NULL);
#line 1464 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_launch_help (self);
-#line 6780 "ui.c"
+#line 6782 "ui.c"
}
@@ -6851,7 +6853,7 @@ static void user_interface_show_about (UserInterface* self) {
_g_free0 (license);
#line 1467 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
authors = (_vala_array_free (authors, authors_length1, (GDestroyNotify) g_free), NULL);
-#line 6844 "ui.c"
+#line 6846 "ui.c"
}
@@ -6862,14 +6864,14 @@ static void user_interface_about_menuitem_activate_cb (UserInterface* self, GtkW
g_return_if_fail (widget != NULL);
#line 1498 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_show_about (self);
-#line 6855 "ui.c"
+#line 6857 "ui.c"
}
static void _user_interface_about_menuitem_activate_cb_gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_about_menuitem_activate_cb ((UserInterface*) self, _sender);
-#line 6862 "ui.c"
+#line 6864 "ui.c"
}
@@ -6878,7 +6880,7 @@ void user_interface_about_activate_cb (UserInterface* self) {
g_return_if_fail (self != NULL);
#line 1503 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_show_about (self);
-#line 6871 "ui.c"
+#line 6873 "ui.c"
}
@@ -6903,7 +6905,7 @@ static gboolean user_interface_on_quit (UserInterface* self) {
result = FALSE;
#line 1512 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 6896 "ui.c"
+#line 6898 "ui.c"
}
#line 1514 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_destroy ((GtkWidget*) self);
@@ -6913,7 +6915,7 @@ static gboolean user_interface_on_quit (UserInterface* self) {
if (_tmp3_ != ((guint) 0)) {
#line 1517 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_save_state (self, TRUE);
-#line 6906 "ui.c"
+#line 6908 "ui.c"
}
#line 1519 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = self->priv->autosave_manager;
@@ -6923,7 +6925,7 @@ static gboolean user_interface_on_quit (UserInterface* self) {
result = TRUE;
#line 1521 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 6916 "ui.c"
+#line 6918 "ui.c"
}
@@ -6934,14 +6936,14 @@ static void user_interface_quit_menuitem_activate_cb (UserInterface* self, GtkWi
g_return_if_fail (widget != NULL);
#line 1527 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_on_quit (self);
-#line 6927 "ui.c"
+#line 6929 "ui.c"
}
static void _user_interface_quit_menuitem_activate_cb_gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_quit_menuitem_activate_cb ((UserInterface*) self, _sender);
-#line 6934 "ui.c"
+#line 6936 "ui.c"
}
@@ -6950,7 +6952,7 @@ void user_interface_quit_activate_cb (UserInterface* self) {
g_return_if_fail (self != NULL);
#line 1532 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_on_quit (self);
-#line 6943 "ui.c"
+#line 6945 "ui.c"
}
@@ -6971,21 +6973,21 @@ static void user_interface_real_size_allocate (GtkWidget* base, GtkAllocation* a
_tmp2_ = self->priv->window_is_maximized;
#line 1539 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (!_tmp2_) {
-#line 6964 "ui.c"
+#line 6966 "ui.c"
gboolean _tmp3_ = FALSE;
#line 1539 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = self->priv->window_is_fullscreen;
#line 1539 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = !_tmp3_;
-#line 6970 "ui.c"
+#line 6972 "ui.c"
} else {
#line 1539 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = FALSE;
-#line 6974 "ui.c"
+#line 6976 "ui.c"
}
#line 1539 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp1_) {
-#line 6978 "ui.c"
+#line 6980 "ui.c"
gint _tmp4_ = 0;
gint _tmp5_ = 0;
#line 1541 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -6996,7 +6998,7 @@ static void user_interface_real_size_allocate (GtkWidget* base, GtkAllocation* a
self->priv->window_height = _tmp5_;
#line 1542 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_save_state (self, FALSE);
-#line 6989 "ui.c"
+#line 6991 "ui.c"
}
}
@@ -7013,7 +7015,7 @@ static void user_interface_info_bar_response_cb (UserInterface* self, GtkInfoBar
switch (_tmp0_) {
#line 1548 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
case 1:
-#line 7006 "ui.c"
+#line 7008 "ui.c"
{
GtkComboBox* _tmp1_ = NULL;
GtkDialog* _tmp2_ = NULL;
@@ -7027,17 +7029,17 @@ static void user_interface_info_bar_response_cb (UserInterface* self, GtkInfoBar
gtk_window_present ((GtkWindow*) _tmp2_);
#line 1554 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 7020 "ui.c"
+#line 7022 "ui.c"
}
#line 1548 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
case 2:
-#line 7024 "ui.c"
+#line 7026 "ui.c"
{
#line 1557 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_install_drivers (self);
#line 1558 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 7030 "ui.c"
+#line 7032 "ui.c"
}
default:
{
@@ -7055,7 +7057,7 @@ static void user_interface_info_bar_response_cb (UserInterface* self, GtkInfoBar
user_interface_update_info_bar (self);
#line 1564 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 7048 "ui.c"
+#line 7050 "ui.c"
}
}
}
@@ -7066,7 +7068,7 @@ static Block3Data* block3_data_ref (Block3Data* _data3_) {
g_atomic_int_inc (&_data3_->_ref_count_);
#line 1568 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return _data3_;
-#line 7059 "ui.c"
+#line 7061 "ui.c"
}
@@ -7075,7 +7077,7 @@ static void block3_data_unref (void * _userdata_) {
_data3_ = (Block3Data*) _userdata_;
#line 1568 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (g_atomic_int_dec_and_test (&_data3_->_ref_count_)) {
-#line 7068 "ui.c"
+#line 7070 "ui.c"
UserInterface* self;
#line 1568 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self = _data3_->self;
@@ -7091,7 +7093,7 @@ static void block3_data_unref (void * _userdata_) {
_g_object_unref0 (self);
#line 1568 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_slice_free (Block3Data, _data3_);
-#line 7084 "ui.c"
+#line 7086 "ui.c"
}
}
@@ -7103,7 +7105,7 @@ static void ___lambda12_ (UserInterface* self) {
static void ____lambda12__pk_progress_callback (PkProgress* progress, PkProgressType type, gpointer self) {
#line 1646 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
___lambda12_ ((UserInterface*) self);
-#line 7096 "ui.c"
+#line 7098 "ui.c"
}
@@ -7148,7 +7150,7 @@ static void ___lambda13_ (Block3Data* _data3_, GObject* object, GAsyncResult* _r
_tmp6_ = g_strdup (_tmp5_);
#line 1653 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result_text = _tmp6_;
-#line 7141 "ui.c"
+#line 7143 "ui.c"
{
PkResults* results = NULL;
GAsyncResult* _tmp7_ = NULL;
@@ -7164,7 +7166,7 @@ static void ___lambda13_ (Block3Data* _data3_, GObject* object, GAsyncResult* _r
results = _tmp8_;
#line 1656 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 7157 "ui.c"
+#line 7159 "ui.c"
goto __catch22_g_error;
}
#line 1657 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -7177,13 +7179,13 @@ static void ___lambda13_ (Block3Data* _data3_, GObject* object, GAsyncResult* _r
_g_object_unref0 (_tmp10_);
#line 1657 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp11_) {
-#line 7170 "ui.c"
+#line 7172 "ui.c"
GtkLabel* _tmp12_ = NULL;
#line 1658 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp12_ = _data3_->status_label;
#line 1658 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_label_set_text (_tmp12_, "☑");
-#line 7176 "ui.c"
+#line 7178 "ui.c"
} else {
PkError* e = NULL;
PkError* _tmp13_ = NULL;
@@ -7212,11 +7214,11 @@ static void ___lambda13_ (Block3Data* _data3_, GObject* object, GAsyncResult* _r
result_text = _tmp18_;
#line 1657 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (e);
-#line 7205 "ui.c"
+#line 7207 "ui.c"
}
#line 1654 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (results);
-#line 7209 "ui.c"
+#line 7211 "ui.c"
}
goto __finally22;
__catch22_g_error:
@@ -7246,7 +7248,7 @@ static void ___lambda13_ (Block3Data* _data3_, GObject* object, GAsyncResult* _r
g_warning ("ui.vala:1670: Failed to install drivers: %s", _tmp22_);
#line 1654 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_error_free0 (e);
-#line 7239 "ui.c"
+#line 7241 "ui.c"
}
__finally22:
#line 1654 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -7259,7 +7261,7 @@ static void ___lambda13_ (Block3Data* _data3_, GObject* object, GAsyncResult* _r
g_clear_error (&_inner_error_);
#line 1654 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
-#line 7252 "ui.c"
+#line 7254 "ui.c"
}
#line 1672 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp23_ = _data3_->instructions_label;
@@ -7269,7 +7271,7 @@ static void ___lambda13_ (Block3Data* _data3_, GObject* object, GAsyncResult* _r
gtk_label_set_text (_tmp23_, _tmp24_);
#line 1646 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (result_text);
-#line 7262 "ui.c"
+#line 7264 "ui.c"
}
@@ -7278,7 +7280,7 @@ static void ____lambda13__gasync_ready_callback (GObject* source_object, GAsyncR
___lambda13_ (self, source_object, res);
#line 1646 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
block3_data_unref (self);
-#line 7271 "ui.c"
+#line 7273 "ui.c"
}
@@ -7309,7 +7311,7 @@ static void user_interface_install_drivers (UserInterface* self) {
static GQuark _tmp5_label5 = 0;
#line 1572 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
static GQuark _tmp5_label6 = 0;
-#line 7302 "ui.c"
+#line 7304 "ui.c"
GtkDialog* dialog = NULL;
const gchar* _tmp23_ = NULL;
const gchar* _tmp24_ = NULL;
@@ -7397,7 +7399,7 @@ static void user_interface_install_drivers (UserInterface* self) {
if ((((_tmp6_ == ((0 != _tmp5_label0) ? _tmp5_label0 : (_tmp5_label0 = g_quark_from_static_string ("brscan")))) || (_tmp6_ == ((0 != _tmp5_label1) ? _tmp5_label1 : (_tmp5_label1 = g_quark_from_static_string ("brscan2"))))) || (_tmp6_ == ((0 != _tmp5_label2) ? _tmp5_label2 : (_tmp5_label2 = g_quark_from_static_string ("brscan3"))))) || (_tmp6_ == ((0 != _tmp5_label3) ? _tmp5_label3 : (_tmp5_label3 = g_quark_from_static_string ("brscan4"))))) {
#line 1572 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
switch (0) {
-#line 7390 "ui.c"
+#line 7392 "ui.c"
default:
{
const gchar* _tmp7_ = NULL;
@@ -7423,13 +7425,13 @@ static void user_interface_install_drivers (UserInterface* self) {
instructions = _tmp10_;
#line 1582 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 7415 "ui.c"
+#line 7417 "ui.c"
}
}
} else if (_tmp6_ == ((0 != _tmp5_label4) ? _tmp5_label4 : (_tmp5_label4 = g_quark_from_static_string ("samsung")))) {
#line 1572 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
switch (0) {
-#line 7421 "ui.c"
+#line 7423 "ui.c"
default:
{
const gchar* _tmp11_ = NULL;
@@ -7455,13 +7457,13 @@ static void user_interface_install_drivers (UserInterface* self) {
instructions = _tmp14_;
#line 1588 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 7446 "ui.c"
+#line 7448 "ui.c"
}
}
} else if (_tmp6_ == ((0 != _tmp5_label5) ? _tmp5_label5 : (_tmp5_label5 = g_quark_from_static_string ("hpaio")))) {
#line 1572 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
switch (0) {
-#line 7452 "ui.c"
+#line 7454 "ui.c"
default:
{
const gchar* _tmp15_ = NULL;
@@ -7492,13 +7494,13 @@ static void user_interface_install_drivers (UserInterface* self) {
_packages_to_install_size_ = packages_to_install_length1;
#line 1593 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 7483 "ui.c"
+#line 7485 "ui.c"
}
}
} else if (_tmp6_ == ((0 != _tmp5_label6) ? _tmp5_label6 : (_tmp5_label6 = g_quark_from_static_string ("epkowa")))) {
#line 1572 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
switch (0) {
-#line 7489 "ui.c"
+#line 7491 "ui.c"
default:
{
const gchar* _tmp19_ = NULL;
@@ -7524,7 +7526,7 @@ static void user_interface_install_drivers (UserInterface* self) {
instructions = _tmp22_;
#line 1599 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 7514 "ui.c"
+#line 7516 "ui.c"
}
}
}
@@ -7700,7 +7702,7 @@ static void user_interface_install_drivers (UserInterface* self) {
_tmp69__length1 = packages_to_install_length1;
#line 1639 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp69__length1 > 0) {
-#line 7690 "ui.c"
+#line 7692 "ui.c"
GtkStack* _tmp70_ = NULL;
GtkSpinner* _tmp71_ = NULL;
GtkLabel* _tmp72_ = NULL;
@@ -7727,7 +7729,7 @@ static void user_interface_install_drivers (UserInterface* self) {
_tmp74__length1 = packages_to_install_length1;
#line 1646 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_install_packages (self, _tmp74_, _tmp74__length1, ____lambda12__pk_progress_callback, self, ____lambda13__gasync_ready_callback, block3_data_ref (_data3_));
-#line 7717 "ui.c"
+#line 7719 "ui.c"
}
#line 1680 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp75_ = dialog;
@@ -7753,7 +7755,7 @@ static void user_interface_install_drivers (UserInterface* self) {
block3_data_unref (_data3_);
#line 1568 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_data3_ = NULL;
-#line 7743 "ui.c"
+#line 7745 "ui.c"
}
@@ -7766,7 +7768,7 @@ static void user_interface_install_packages_data_free (gpointer _data) {
_g_object_unref0 (_data_->self);
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_slice_free (UserInterfaceInstallPackagesData, _data_);
-#line 7756 "ui.c"
+#line 7758 "ui.c"
}
@@ -7805,7 +7807,7 @@ static void user_interface_install_packages (UserInterface* self, gchar** packag
_data_->progress_callback_target = _tmp2__target;
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_install_packages_co (_data_);
-#line 7795 "ui.c"
+#line 7797 "ui.c"
}
@@ -7816,7 +7818,7 @@ static PkResults* user_interface_install_packages_finish (UserInterface* self, G
if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return NULL;
-#line 7806 "ui.c"
+#line 7808 "ui.c"
}
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
@@ -7826,7 +7828,7 @@ static PkResults* user_interface_install_packages_finish (UserInterface* self, G
_data_->result = NULL;
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 7816 "ui.c"
+#line 7818 "ui.c"
}
@@ -7840,7 +7842,7 @@ static void user_interface_install_packages_ready (GObject* source_object, GAsyn
_data_->_res_ = _res_;
#line 1689 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_install_packages_co (_data_);
-#line 7830 "ui.c"
+#line 7832 "ui.c"
}
@@ -7855,7 +7857,7 @@ static gint g_ptr_array_get_length (GPtrArray* self) {
result = (gint) _tmp0_;
#line 4858 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
return result;
-#line 7845 "ui.c"
+#line 7847 "ui.c"
}
@@ -7867,7 +7869,7 @@ static void g_ptr_array_set_length (GPtrArray* self, gint value) {
_tmp0_ = value;
#line 4859 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
g_ptr_array_set_size (self, _tmp0_);
-#line 7857 "ui.c"
+#line 7859 "ui.c"
}
@@ -7876,20 +7878,20 @@ static gboolean user_interface_install_packages_co (UserInterfaceInstallPackages
switch (_data_->_state_) {
#line 1685 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
case 0:
-#line 7866 "ui.c"
+#line 7868 "ui.c"
goto _state_0;
#line 1685 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
case 1:
-#line 7870 "ui.c"
+#line 7872 "ui.c"
goto _state_1;
#line 1685 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
case 2:
-#line 7874 "ui.c"
+#line 7876 "ui.c"
goto _state_2;
default:
#line 1685 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_assert_not_reached ();
-#line 7879 "ui.c"
+#line 7881 "ui.c"
}
_state_0:
#line 1687 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -7924,7 +7926,7 @@ static gboolean user_interface_install_packages_co (UserInterfaceInstallPackages
pk_task_resolve_async (_data_->_tmp2_, (PkBitfield) PK_FILTER_ENUM_NOT_INSTALLED, _data_->_tmp3_, NULL, _data_->_tmp4_, _data_->_tmp4__target, user_interface_install_packages_ready, _data_);
#line 1689 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return FALSE;
-#line 7914 "ui.c"
+#line 7916 "ui.c"
_state_1:
#line 1689 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_data_->_tmp5_ = NULL;
@@ -7946,17 +7948,17 @@ static gboolean user_interface_install_packages_co (UserInterfaceInstallPackages
if (_data_->_state_ == 0) {
#line 1689 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_simple_async_result_complete_in_idle (_data_->_async_result);
-#line 7936 "ui.c"
+#line 7938 "ui.c"
} else {
#line 1689 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_simple_async_result_complete (_data_->_async_result);
-#line 7940 "ui.c"
+#line 7942 "ui.c"
}
#line 1689 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_object_unref (_data_->_async_result);
#line 1689 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return FALSE;
-#line 7946 "ui.c"
+#line 7948 "ui.c"
}
#line 1689 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_data_->_tmp6_ = NULL;
@@ -7976,7 +7978,7 @@ static gboolean user_interface_install_packages_co (UserInterfaceInstallPackages
if (_data_->_tmp8_ == NULL) {
#line 1690 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_data_->_tmp7_ = TRUE;
-#line 7966 "ui.c"
+#line 7968 "ui.c"
} else {
#line 1690 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_data_->_tmp9_ = NULL;
@@ -7994,7 +7996,7 @@ static gboolean user_interface_install_packages_co (UserInterfaceInstallPackages
_data_->_tmp7_ = _data_->_tmp11_ != NULL;
#line 1690 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (_data_->_tmp11_);
-#line 7984 "ui.c"
+#line 7986 "ui.c"
}
#line 1690 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_data_->_tmp7_) {
@@ -8008,17 +8010,17 @@ static gboolean user_interface_install_packages_co (UserInterfaceInstallPackages
if (_data_->_state_ == 0) {
#line 1691 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_simple_async_result_complete_in_idle (_data_->_async_result);
-#line 7998 "ui.c"
+#line 8000 "ui.c"
} else {
#line 1691 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_simple_async_result_complete (_data_->_async_result);
-#line 8002 "ui.c"
+#line 8004 "ui.c"
}
#line 1691 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_object_unref (_data_->_async_result);
#line 1691 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return FALSE;
-#line 8008 "ui.c"
+#line 8010 "ui.c"
}
#line 1693 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_data_->_tmp12_ = NULL;
@@ -8084,11 +8086,11 @@ static gboolean user_interface_install_packages_co (UserInterfaceInstallPackages
_data_->_tmp22_ = NULL;
#line 1695 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_data_->_tmp22_ = _data_->_tmp18_[_data_->_tmp21_];
-#line 8074 "ui.c"
+#line 8076 "ui.c"
{
#line 1696 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_data_->i = 0;
-#line 8078 "ui.c"
+#line 8080 "ui.c"
{
#line 1696 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_data_->_tmp23_ = TRUE;
@@ -8102,7 +8104,7 @@ static gboolean user_interface_install_packages_co (UserInterfaceInstallPackages
_data_->_tmp24_ = _data_->i;
#line 1696 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_data_->i = _data_->_tmp24_ + 1;
-#line 8092 "ui.c"
+#line 8094 "ui.c"
}
#line 1696 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_data_->_tmp23_ = FALSE;
@@ -8126,7 +8128,7 @@ static gboolean user_interface_install_packages_co (UserInterfaceInstallPackages
if (!(_data_->_tmp25_ < _data_->_tmp28_)) {
#line 1696 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 8116 "ui.c"
+#line 8118 "ui.c"
}
#line 1697 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_data_->_tmp29_ = NULL;
@@ -8176,7 +8178,7 @@ static gboolean user_interface_install_packages_co (UserInterfaceInstallPackages
_data_->_tmp37_ = NULL;
#line 1697 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_data_->_tmp37_ = _data_->_tmp29_[_data_->_tmp30_];
-#line 8166 "ui.c"
+#line 8168 "ui.c"
}
}
}
@@ -8206,7 +8208,7 @@ static gboolean user_interface_install_packages_co (UserInterfaceInstallPackages
pk_task_install_packages_async (_data_->_tmp39_, _data_->_tmp40_, NULL, _data_->_tmp41_, _data_->_tmp41__target, user_interface_install_packages_ready, _data_);
#line 1699 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return FALSE;
-#line 8196 "ui.c"
+#line 8198 "ui.c"
_state_2:
#line 1699 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_data_->_tmp42_ = NULL;
@@ -8234,17 +8236,17 @@ static gboolean user_interface_install_packages_co (UserInterfaceInstallPackages
if (_data_->_state_ == 0) {
#line 1699 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_simple_async_result_complete_in_idle (_data_->_async_result);
-#line 8224 "ui.c"
+#line 8226 "ui.c"
} else {
#line 1699 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_simple_async_result_complete (_data_->_async_result);
-#line 8228 "ui.c"
+#line 8230 "ui.c"
}
#line 1699 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_object_unref (_data_->_async_result);
#line 1699 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return FALSE;
-#line 8234 "ui.c"
+#line 8236 "ui.c"
}
#line 1699 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_data_->_tmp43_ = NULL;
@@ -8270,11 +8272,11 @@ static gboolean user_interface_install_packages_co (UserInterfaceInstallPackages
if (_data_->_state_ == 0) {
#line 1699 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_simple_async_result_complete_in_idle (_data_->_async_result);
-#line 8260 "ui.c"
+#line 8262 "ui.c"
} else {
#line 1699 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_simple_async_result_complete (_data_->_async_result);
-#line 8264 "ui.c"
+#line 8266 "ui.c"
}
#line 1699 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_object_unref (_data_->_async_result);
@@ -8296,17 +8298,17 @@ static gboolean user_interface_install_packages_co (UserInterfaceInstallPackages
if (_data_->_state_ == 0) {
#line 1685 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_simple_async_result_complete_in_idle (_data_->_async_result);
-#line 8286 "ui.c"
+#line 8288 "ui.c"
} else {
#line 1685 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_simple_async_result_complete (_data_->_async_result);
-#line 8290 "ui.c"
+#line 8292 "ui.c"
}
#line 1685 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_object_unref (_data_->_async_result);
#line 1685 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return FALSE;
-#line 8296 "ui.c"
+#line 8298 "ui.c"
}
@@ -8326,7 +8328,7 @@ static gboolean user_interface_real_window_state_event (GtkWidget* base, GdkEven
_result_ = GDK_EVENT_PROPAGATE;
#line 1707 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (GTK_WIDGET_CLASS (user_interface_parent_class)->window_state_event != NULL) {
-#line 8316 "ui.c"
+#line 8318 "ui.c"
GdkEventWindowState* _tmp0_ = NULL;
gboolean _tmp1_ = FALSE;
#line 1708 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -8335,7 +8337,7 @@ static gboolean user_interface_real_window_state_event (GtkWidget* base, GdkEven
_tmp1_ = GTK_WIDGET_CLASS (user_interface_parent_class)->window_state_event ((GtkWidget*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_application_window_get_type (), GtkApplicationWindow), _tmp0_);
#line 1708 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_result_ = _tmp1_;
-#line 8325 "ui.c"
+#line 8327 "ui.c"
}
#line 1710 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = event;
@@ -8343,7 +8345,7 @@ static gboolean user_interface_real_window_state_event (GtkWidget* base, GdkEven
_tmp3_ = _tmp2_->changed_mask;
#line 1710 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if ((_tmp3_ & GDK_WINDOW_STATE_MAXIMIZED) != 0) {
-#line 8333 "ui.c"
+#line 8335 "ui.c"
GdkEventWindowState* _tmp4_ = NULL;
GdkWindowState _tmp5_ = 0;
#line 1712 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -8354,7 +8356,7 @@ static gboolean user_interface_real_window_state_event (GtkWidget* base, GdkEven
self->priv->window_is_maximized = (_tmp5_ & GDK_WINDOW_STATE_MAXIMIZED) != 0;
#line 1713 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_save_state (self, FALSE);
-#line 8344 "ui.c"
+#line 8346 "ui.c"
}
#line 1715 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp6_ = event;
@@ -8362,7 +8364,7 @@ static gboolean user_interface_real_window_state_event (GtkWidget* base, GdkEven
_tmp7_ = _tmp6_->changed_mask;
#line 1715 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if ((_tmp7_ & GDK_WINDOW_STATE_FULLSCREEN) != 0) {
-#line 8352 "ui.c"
+#line 8354 "ui.c"
GdkEventWindowState* _tmp8_ = NULL;
GdkWindowState _tmp9_ = 0;
#line 1717 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -8373,13 +8375,13 @@ static gboolean user_interface_real_window_state_event (GtkWidget* base, GdkEven
self->priv->window_is_fullscreen = (_tmp9_ & GDK_WINDOW_STATE_FULLSCREEN) != 0;
#line 1718 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_save_state (self, FALSE);
-#line 8363 "ui.c"
+#line 8365 "ui.c"
}
#line 1721 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = _result_;
#line 1721 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 8369 "ui.c"
+#line 8371 "ui.c"
}
@@ -8398,7 +8400,7 @@ static gboolean user_interface_window_delete_event_cb (UserInterface* self, GtkW
result = !_tmp0_;
#line 1727 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 8388 "ui.c"
+#line 8390 "ui.c"
}
@@ -8407,7 +8409,7 @@ static gboolean _user_interface_window_delete_event_cb_gtk_widget_delete_event (
result = user_interface_window_delete_event_cb ((UserInterface*) self, _sender, event);
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 8397 "ui.c"
+#line 8399 "ui.c"
}
@@ -8451,7 +8453,7 @@ static void user_interface_page_size_changed_cb (UserInterface* self, Page* page
self->priv->default_page_dpi = _tmp8_;
#line 1735 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_save_state (self, FALSE);
-#line 8441 "ui.c"
+#line 8443 "ui.c"
}
@@ -8473,21 +8475,21 @@ static void user_interface_page_scan_direction_changed_cb (UserInterface* self,
self->priv->default_page_scan_direction = _tmp2_;
#line 1741 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_save_state (self, FALSE);
-#line 8463 "ui.c"
+#line 8465 "ui.c"
}
static void _user_interface_page_size_changed_cb_page_size_changed (Page* _sender, gpointer self) {
#line 1748 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_page_size_changed_cb ((UserInterface*) self, _sender);
-#line 8470 "ui.c"
+#line 8472 "ui.c"
}
static void _user_interface_page_scan_direction_changed_cb_page_scan_direction_changed (Page* _sender, gpointer self) {
#line 1749 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_page_scan_direction_changed_cb ((UserInterface*) self, _sender);
-#line 8477 "ui.c"
+#line 8479 "ui.c"
}
@@ -8526,7 +8528,7 @@ static void user_interface_page_added_cb (UserInterface* self, Book* book, Page*
g_signal_connect_object (_tmp5_, "scan-direction-changed", (GCallback) _user_interface_page_scan_direction_changed_cb_page_scan_direction_changed, self, 0);
#line 1751 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_update_page_menu (self);
-#line 8516 "ui.c"
+#line 8518 "ui.c"
}
@@ -8537,7 +8539,7 @@ static void user_interface_reordered_cb (UserInterface* self, Book* book) {
g_return_if_fail (book != NULL);
#line 1756 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_update_page_menu (self);
-#line 8527 "ui.c"
+#line 8529 "ui.c"
}
@@ -8577,11 +8579,11 @@ static void user_interface_page_removed_cb (UserInterface* self, Book* book, Pag
if (_tmp6_ == ((guint) 0)) {
#line 1766 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_add_default_page (self);
-#line 8567 "ui.c"
+#line 8569 "ui.c"
}
#line 1768 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_update_page_menu (self);
-#line 8571 "ui.c"
+#line 8573 "ui.c"
}
@@ -8659,7 +8661,7 @@ static void user_interface_set_dpi_combo (UserInterface* self, GtkComboBox* comb
_tmp10_ = scan_resolutions;
#line 1779 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp10__length1 = scan_resolutions_length1;
-#line 8649 "ui.c"
+#line 8651 "ui.c"
{
gint* dpi_collection = NULL;
gint dpi_collection_length1 = 0;
@@ -8671,11 +8673,11 @@ static void user_interface_set_dpi_combo (UserInterface* self, GtkComboBox* comb
dpi_collection_length1 = _tmp10__length1;
#line 1779 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
for (dpi_it = 0; dpi_it < _tmp10__length1; dpi_it = dpi_it + 1) {
-#line 8661 "ui.c"
+#line 8663 "ui.c"
gint dpi = 0;
#line 1779 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
dpi = dpi_collection[dpi_it];
-#line 8665 "ui.c"
+#line 8667 "ui.c"
{
gchar* label = NULL;
gint _tmp11_ = 0;
@@ -8695,7 +8697,7 @@ static void user_interface_set_dpi_combo (UserInterface* self, GtkComboBox* comb
_tmp12_ = default_dpi;
#line 1782 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp11_ == _tmp12_) {
-#line 8685 "ui.c"
+#line 8687 "ui.c"
const gchar* _tmp13_ = NULL;
gint _tmp14_ = 0;
gchar* _tmp15_ = NULL;
@@ -8709,14 +8711,14 @@ static void user_interface_set_dpi_combo (UserInterface* self, GtkComboBox* comb
_g_free0 (label);
#line 1784 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
label = _tmp15_;
-#line 8699 "ui.c"
+#line 8701 "ui.c"
} else {
gint _tmp16_ = 0;
#line 1785 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp16_ = dpi;
#line 1785 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp16_ == 75) {
-#line 8706 "ui.c"
+#line 8708 "ui.c"
const gchar* _tmp17_ = NULL;
gint _tmp18_ = 0;
gchar* _tmp19_ = NULL;
@@ -8730,14 +8732,14 @@ static void user_interface_set_dpi_combo (UserInterface* self, GtkComboBox* comb
_g_free0 (label);
#line 1787 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
label = _tmp19_;
-#line 8720 "ui.c"
+#line 8722 "ui.c"
} else {
gint _tmp20_ = 0;
#line 1788 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp20_ = dpi;
#line 1788 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp20_ == 1200) {
-#line 8727 "ui.c"
+#line 8729 "ui.c"
const gchar* _tmp21_ = NULL;
gint _tmp22_ = 0;
gchar* _tmp23_ = NULL;
@@ -8751,7 +8753,7 @@ static void user_interface_set_dpi_combo (UserInterface* self, GtkComboBox* comb
_g_free0 (label);
#line 1790 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
label = _tmp23_;
-#line 8741 "ui.c"
+#line 8743 "ui.c"
} else {
const gchar* _tmp24_ = NULL;
gint _tmp25_ = 0;
@@ -8766,7 +8768,7 @@ static void user_interface_set_dpi_combo (UserInterface* self, GtkComboBox* comb
_g_free0 (label);
#line 1793 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
label = _tmp26_;
-#line 8756 "ui.c"
+#line 8758 "ui.c"
}
}
}
@@ -8792,7 +8794,7 @@ static void user_interface_set_dpi_combo (UserInterface* self, GtkComboBox* comb
_tmp34_ = current_dpi;
#line 1799 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp33_ == _tmp34_) {
-#line 8782 "ui.c"
+#line 8784 "ui.c"
GtkComboBox* _tmp35_ = NULL;
GtkTreeIter _tmp36_ = {0};
#line 1800 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -8801,11 +8803,11 @@ static void user_interface_set_dpi_combo (UserInterface* self, GtkComboBox* comb
_tmp36_ = iter;
#line 1800 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_combo_box_set_active_iter (_tmp35_, &_tmp36_);
-#line 8791 "ui.c"
+#line 8793 "ui.c"
}
#line 1779 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (label);
-#line 8795 "ui.c"
+#line 8797 "ui.c"
}
}
}
@@ -8815,7 +8817,7 @@ static void user_interface_set_dpi_combo (UserInterface* self, GtkComboBox* comb
_g_object_unref0 (model);
#line 1771 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (renderer);
-#line 8805 "ui.c"
+#line 8807 "ui.c"
}
@@ -8878,26 +8880,26 @@ static void user_interface_needs_saving_cb (UserInterface* self, Book* book) {
_tmp14_ = _tmp13_;
#line 1809 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp14_) {
-#line 8868 "ui.c"
+#line 8870 "ui.c"
GtkMenuItem* _tmp15_ = NULL;
#line 1810 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp15_ = self->priv->save_as_menuitem;
#line 1810 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_set_sensitive ((GtkWidget*) _tmp15_, TRUE);
-#line 8874 "ui.c"
+#line 8876 "ui.c"
}
#line 1811 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp16_ = self->priv->copy_to_clipboard_menuitem;
#line 1811 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_set_sensitive ((GtkWidget*) _tmp16_, TRUE);
-#line 8880 "ui.c"
+#line 8882 "ui.c"
}
static void _user_interface_info_bar_response_cb_gtk_info_bar_response (GtkInfoBar* _sender, gint response_id, gpointer self) {
#line 1871 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_info_bar_response_cb ((UserInterface*) self, _sender, response_id);
-#line 8887 "ui.c"
+#line 8889 "ui.c"
}
@@ -8910,14 +8912,14 @@ static void __lambda14_ (UserInterface* self) {
_tmp1_ = user_interface_get_text_dpi (self);
#line 1915 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_settings_set_int (_tmp0_, "text-dpi", _tmp1_);
-#line 8900 "ui.c"
+#line 8902 "ui.c"
}
static void ___lambda14__gtk_combo_box_changed (GtkComboBox* _sender, gpointer self) {
#line 1915 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
__lambda14_ ((UserInterface*) self);
-#line 8907 "ui.c"
+#line 8909 "ui.c"
}
@@ -8930,14 +8932,14 @@ static void __lambda15_ (UserInterface* self) {
_tmp1_ = user_interface_get_photo_dpi (self);
#line 1920 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_settings_set_int (_tmp0_, "photo-dpi", _tmp1_);
-#line 8920 "ui.c"
+#line 8922 "ui.c"
}
static void ___lambda15__gtk_combo_box_changed (GtkComboBox* _sender, gpointer self) {
#line 1920 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
__lambda15_ ((UserInterface*) self);
-#line 8927 "ui.c"
+#line 8929 "ui.c"
}
@@ -8950,14 +8952,14 @@ static void __lambda16_ (UserInterface* self) {
_tmp1_ = user_interface_get_page_side (self);
#line 1930 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_settings_set_enum (_tmp0_, "page-side", (gint) _tmp1_);
-#line 8940 "ui.c"
+#line 8942 "ui.c"
}
static void ___lambda16__gtk_combo_box_changed (GtkComboBox* _sender, gpointer self) {
#line 1930 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
__lambda16_ ((UserInterface*) self);
-#line 8947 "ui.c"
+#line 8949 "ui.c"
}
@@ -8982,14 +8984,14 @@ static void __lambda17_ (UserInterface* self) {
_tmp3_ = self->priv->settings;
#line 1943 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_settings_set_int (_tmp3_, "paper-height", h);
-#line 8972 "ui.c"
+#line 8974 "ui.c"
}
static void ___lambda17__gtk_combo_box_changed (GtkComboBox* _sender, gpointer self) {
#line 1938 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
__lambda17_ ((UserInterface*) self);
-#line 8979 "ui.c"
+#line 8981 "ui.c"
}
@@ -9005,14 +9007,14 @@ static void __lambda18_ (UserInterface* self) {
_tmp2_ = _tmp1_;
#line 1954 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_settings_set_int (_tmp0_, "brightness", _tmp2_);
-#line 8995 "ui.c"
+#line 8997 "ui.c"
}
static void ___lambda18__gtk_adjustment_value_changed (GtkAdjustment* _sender, gpointer self) {
#line 1954 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
__lambda18_ ((UserInterface*) self);
-#line 9002 "ui.c"
+#line 9004 "ui.c"
}
@@ -9028,14 +9030,14 @@ static void __lambda19_ (UserInterface* self) {
_tmp2_ = _tmp1_;
#line 1964 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_settings_set_int (_tmp0_, "contrast", _tmp2_);
-#line 9018 "ui.c"
+#line 9020 "ui.c"
}
static void ___lambda19__gtk_adjustment_value_changed (GtkAdjustment* _sender, gpointer self) {
#line 1964 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
__lambda19_ ((UserInterface*) self);
-#line 9025 "ui.c"
+#line 9027 "ui.c"
}
@@ -9051,42 +9053,42 @@ static void __lambda20_ (UserInterface* self) {
_tmp2_ = _tmp1_;
#line 1974 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_settings_set_int (_tmp0_, "jpeg-quality", _tmp2_);
-#line 9041 "ui.c"
+#line 9043 "ui.c"
}
static void ___lambda20__gtk_adjustment_value_changed (GtkAdjustment* _sender, gpointer self) {
#line 1974 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
__lambda20_ ((UserInterface*) self);
-#line 9048 "ui.c"
+#line 9050 "ui.c"
}
static void _user_interface_page_selected_cb_book_view_page_selected (BookView* _sender, Page* page, gpointer self) {
#line 1983 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_page_selected_cb ((UserInterface*) self, _sender, page);
-#line 9055 "ui.c"
+#line 9057 "ui.c"
}
static void _user_interface_show_page_cb_book_view_show_page (BookView* _sender, Page* page, gpointer self) {
#line 1984 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_show_page_cb ((UserInterface*) self, _sender, page);
-#line 9062 "ui.c"
+#line 9064 "ui.c"
}
static void _user_interface_show_page_menu_cb_book_view_show_menu (BookView* _sender, gpointer self) {
#line 1985 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_show_page_menu_cb ((UserInterface*) self, _sender);
-#line 9069 "ui.c"
+#line 9071 "ui.c"
}
static void _user_interface_book_saving_cb_book_saving (Book* _sender, gint i, gpointer self) {
#line 2009 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_book_saving_cb ((UserInterface*) self, i);
-#line 9076 "ui.c"
+#line 9078 "ui.c"
}
@@ -9312,7 +9314,7 @@ static void user_interface_load (UserInterface* self) {
_tmp3_ = user_interface_is_traditional_desktop (self);
#line 1822 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp3_) {
-#line 9302 "ui.c"
+#line 9304 "ui.c"
GtkMenuBar* _tmp4_ = NULL;
GtkToolbar* _tmp5_ = NULL;
#line 1824 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -9325,7 +9327,7 @@ static void user_interface_load (UserInterface* self) {
_tmp5_ = self->priv->toolbar;
#line 1826 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_set_visible ((GtkWidget*) _tmp5_, TRUE);
-#line 9315 "ui.c"
+#line 9317 "ui.c"
} else {
GtkApplication* _tmp6_ = NULL;
GMenu* appmenu = NULL;
@@ -9543,7 +9545,7 @@ static void user_interface_load (UserInterface* self) {
_g_object_unref0 (section);
#line 1822 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (appmenu);
-#line 9533 "ui.c"
+#line 9535 "ui.c"
}
#line 1867 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp53_ = app;
@@ -9765,7 +9767,7 @@ static void user_interface_load (UserInterface* self) {
if (_tmp117_ <= 0) {
#line 1913 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
dpi = USER_INTERFACE_DEFAULT_TEXT_DPI;
-#line 9755 "ui.c"
+#line 9757 "ui.c"
}
#line 1914 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp118_ = self->priv->text_dpi_combo;
@@ -9789,7 +9791,7 @@ static void user_interface_load (UserInterface* self) {
if (_tmp123_ <= 0) {
#line 1918 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
dpi = USER_INTERFACE_DEFAULT_PHOTO_DPI;
-#line 9779 "ui.c"
+#line 9781 "ui.c"
}
#line 1919 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp124_ = self->priv->photo_dpi_combo;
@@ -10075,13 +10077,13 @@ static void user_interface_load (UserInterface* self) {
_tmp214_ = document_type;
#line 1977 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp214_ != NULL) {
-#line 10065 "ui.c"
+#line 10067 "ui.c"
const gchar* _tmp215_ = NULL;
#line 1978 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp215_ = document_type;
#line 1978 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_set_document_hint (self, _tmp215_, FALSE);
-#line 10071 "ui.c"
+#line 10073 "ui.c"
}
#line 1980 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp216_ = self->priv->_book;
@@ -10149,7 +10151,7 @@ static void user_interface_load (UserInterface* self) {
g_debug ("ui.vala:1999: Restoring window to maximized");
#line 2000 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_window_maximize ((GtkWindow*) self);
-#line 10139 "ui.c"
+#line 10141 "ui.c"
}
#line 2002 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp232_ = self->priv->window_is_fullscreen;
@@ -10159,7 +10161,7 @@ static void user_interface_load (UserInterface* self) {
g_debug ("ui.vala:2004: Restoring window to fullscreen");
#line 2005 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_window_fullscreen ((GtkWindow*) self);
-#line 10149 "ui.c"
+#line 10151 "ui.c"
}
#line 2008 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp233_ = _ ("Saving document...");
@@ -10197,7 +10199,7 @@ static void user_interface_load (UserInterface* self) {
_g_object_unref0 (hbox);
#line 1814 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (app);
-#line 10187 "ui.c"
+#line 10189 "ui.c"
}
@@ -10230,13 +10232,13 @@ static gboolean user_interface_is_desktop (UserInterface* self, const gchar* nam
_g_free0 (desktop_name_list);
#line 2016 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 10220 "ui.c"
+#line 10222 "ui.c"
}
#line 2018 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = desktop_name_list;
#line 2018 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_ = _tmp4_ = g_strsplit (_tmp3_, ":", 0);
-#line 10226 "ui.c"
+#line 10228 "ui.c"
{
gchar** n_collection = NULL;
gint n_collection_length1 = 0;
@@ -10248,14 +10250,14 @@ static gboolean user_interface_is_desktop (UserInterface* self, const gchar* nam
n_collection_length1 = _vala_array_length (_tmp4_);
#line 2018 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
for (n_it = 0; n_it < _vala_array_length (_tmp4_); n_it = n_it + 1) {
-#line 10238 "ui.c"
+#line 10240 "ui.c"
gchar* _tmp6_ = NULL;
gchar* n = NULL;
#line 2018 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp6_ = g_strdup (n_collection[n_it]);
#line 2018 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
n = _tmp6_;
-#line 10245 "ui.c"
+#line 10247 "ui.c"
{
const gchar* _tmp7_ = NULL;
const gchar* _tmp8_ = NULL;
@@ -10275,16 +10277,16 @@ static gboolean user_interface_is_desktop (UserInterface* self, const gchar* nam
_g_free0 (desktop_name_list);
#line 2020 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 10265 "ui.c"
+#line 10267 "ui.c"
}
#line 2018 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (n);
-#line 10269 "ui.c"
+#line 10271 "ui.c"
}
}
#line 2018 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
n_collection = (_vala_array_free (n_collection, n_collection_length1, (GDestroyNotify) g_free), NULL);
-#line 10274 "ui.c"
+#line 10276 "ui.c"
}
#line 2022 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = FALSE;
@@ -10292,7 +10294,7 @@ static gboolean user_interface_is_desktop (UserInterface* self, const gchar* nam
_g_free0 (desktop_name_list);
#line 2022 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 10282 "ui.c"
+#line 10284 "ui.c"
}
@@ -10302,7 +10304,7 @@ static gboolean user_interface_is_traditional_desktop (UserInterface* self) {
static const gchar* traditional_desktops[] = {"Unity", "XFCE", "MATE", "LXDE", "Cinnamon", "X-Cinnamon"};
#line 2025 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (self != NULL, FALSE);
-#line 10292 "ui.c"
+#line 10294 "ui.c"
{
const gchar** name_collection = NULL;
gint name_collection_length1 = 0;
@@ -10314,11 +10316,11 @@ static gboolean user_interface_is_traditional_desktop (UserInterface* self) {
name_collection_length1 = G_N_ELEMENTS (traditional_desktops);
#line 2028 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
for (name_it = 0; name_it < G_N_ELEMENTS (traditional_desktops); name_it = name_it + 1) {
-#line 10304 "ui.c"
+#line 10306 "ui.c"
const gchar* name = NULL;
#line 2028 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
name = name_collection[name_it];
-#line 10308 "ui.c"
+#line 10310 "ui.c"
{
const gchar* _tmp0_ = NULL;
gboolean _tmp1_ = FALSE;
@@ -10332,7 +10334,7 @@ static gboolean user_interface_is_traditional_desktop (UserInterface* self) {
result = TRUE;
#line 2030 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 10322 "ui.c"
+#line 10324 "ui.c"
}
}
}
@@ -10341,7 +10343,7 @@ static gboolean user_interface_is_traditional_desktop (UserInterface* self) {
result = FALSE;
#line 2031 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 10331 "ui.c"
+#line 10333 "ui.c"
}
@@ -10377,7 +10379,7 @@ static void user_interface_load_state (UserInterface* self) {
static GQuark _tmp30_label1 = 0;
#line 2064 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
static GQuark _tmp30_label2 = 0;
-#line 10367 "ui.c"
+#line 10369 "ui.c"
GError * _inner_error_ = NULL;
#line 2039 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
@@ -10395,7 +10397,7 @@ static void user_interface_load_state (UserInterface* self) {
_tmp3_ = g_key_file_new ();
#line 2043 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
f = _tmp3_;
-#line 10385 "ui.c"
+#line 10387 "ui.c"
{
GKeyFile* _tmp4_ = NULL;
gchar* _tmp5_ = NULL;
@@ -10415,7 +10417,7 @@ static void user_interface_load_state (UserInterface* self) {
_g_free0 (_tmp7_);
#line 2046 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 10405 "ui.c"
+#line 10407 "ui.c"
goto __catch23_g_error;
}
}
@@ -10432,7 +10434,7 @@ static void user_interface_load_state (UserInterface* self) {
_tmp8_ = e;
#line 2050 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (!g_error_matches (_tmp8_, G_FILE_ERROR, G_FILE_ERROR_NOENT)) {
-#line 10422 "ui.c"
+#line 10424 "ui.c"
GError* _tmp9_ = NULL;
const gchar* _tmp10_ = NULL;
#line 2051 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -10441,11 +10443,11 @@ static void user_interface_load_state (UserInterface* self) {
_tmp10_ = _tmp9_->message;
#line 2051 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_warning ("ui.vala:2051: Failed to load state: %s", _tmp10_);
-#line 10431 "ui.c"
+#line 10433 "ui.c"
}
#line 2044 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_error_free0 (e);
-#line 10435 "ui.c"
+#line 10437 "ui.c"
}
__finally23:
#line 2044 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -10458,7 +10460,7 @@ static void user_interface_load_state (UserInterface* self) {
g_clear_error (&_inner_error_);
#line 2044 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
-#line 10448 "ui.c"
+#line 10450 "ui.c"
}
#line 2053 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp11_ = f;
@@ -10472,7 +10474,7 @@ static void user_interface_load_state (UserInterface* self) {
if (_tmp13_ <= 0) {
#line 2055 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->window_width = 600;
-#line 10462 "ui.c"
+#line 10464 "ui.c"
}
#line 2056 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp14_ = f;
@@ -10486,7 +10488,7 @@ static void user_interface_load_state (UserInterface* self) {
if (_tmp16_ <= 0) {
#line 2058 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->window_height = 400;
-#line 10476 "ui.c"
+#line 10478 "ui.c"
}
#line 2059 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp17_ = f;
@@ -10532,64 +10534,65 @@ static void user_interface_load_state (UserInterface* self) {
if (_tmp31_ == ((0 != _tmp30_label0) ? _tmp30_label0 : (_tmp30_label0 = g_quark_from_static_string ("bottom-to-top")))) {
#line 2064 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
switch (0) {
-#line 10522 "ui.c"
+#line 10524 "ui.c"
default:
{
#line 2071 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->default_page_scan_direction = SCAN_DIRECTION_BOTTOM_TO_TOP;
#line 2072 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 10529 "ui.c"
+#line 10531 "ui.c"
}
}
} else if (_tmp31_ == ((0 != _tmp30_label1) ? _tmp30_label1 : (_tmp30_label1 = g_quark_from_static_string ("left-to-right")))) {
#line 2064 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
switch (0) {
-#line 10535 "ui.c"
+#line 10537 "ui.c"
default:
{
#line 2074 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->default_page_scan_direction = SCAN_DIRECTION_LEFT_TO_RIGHT;
#line 2075 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 10542 "ui.c"
+#line 10544 "ui.c"
}
}
} else if (_tmp31_ == ((0 != _tmp30_label2) ? _tmp30_label2 : (_tmp30_label2 = g_quark_from_static_string ("right-to-left")))) {
#line 2064 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
switch (0) {
-#line 10548 "ui.c"
+#line 10550 "ui.c"
default:
{
#line 2077 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->default_page_scan_direction = SCAN_DIRECTION_RIGHT_TO_LEFT;
#line 2078 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 10555 "ui.c"
+#line 10557 "ui.c"
}
}
} else {
#line 2064 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
switch (0) {
-#line 10561 "ui.c"
+#line 10563 "ui.c"
default:
{
#line 2068 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->default_page_scan_direction = SCAN_DIRECTION_TOP_TO_BOTTOM;
#line 2069 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 10568 "ui.c"
+#line 10570 "ui.c"
}
}
}
#line 2039 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_key_file_unref0 (f);
-#line 10574 "ui.c"
+#line 10576 "ui.c"
}
static gint user_interface_state_get_integer (UserInterface* self, GKeyFile* f, const gchar* group_name, const gchar* key, gint _default_) {
gint result = 0;
+ gint _tmp6_ = 0;
GError * _inner_error_ = NULL;
#line 2082 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (self != NULL, 0);
@@ -10599,7 +10602,7 @@ static gint user_interface_state_get_integer (UserInterface* self, GKeyFile* f,
g_return_val_if_fail (group_name != NULL, 0);
#line 2082 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (key != NULL, 0);
-#line 10589 "ui.c"
+#line 10592 "ui.c"
{
gint _tmp0_ = 0;
GKeyFile* _tmp1_ = NULL;
@@ -10618,14 +10621,14 @@ static gint user_interface_state_get_integer (UserInterface* self, GKeyFile* f,
_tmp0_ = _tmp4_;
#line 2086 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 10608 "ui.c"
+#line 10611 "ui.c"
goto __catch24_g_error;
}
#line 2086 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = _tmp0_;
#line 2086 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 10615 "ui.c"
+#line 10618 "ui.c"
}
goto __finally24;
__catch24_g_error:
@@ -10641,7 +10644,7 @@ static gint user_interface_state_get_integer (UserInterface* self, GKeyFile* f,
result = _tmp5_;
#line 2090 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 10631 "ui.c"
+#line 10634 "ui.c"
}
__finally24:
#line 2084 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -10649,13 +10652,14 @@ static gint user_interface_state_get_integer (UserInterface* self, GKeyFile* f,
#line 2084 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_clear_error (&_inner_error_);
#line 2084 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- return 0;
-#line 10640 "ui.c"
+ return _tmp6_;
+#line 10643 "ui.c"
}
static gboolean user_interface_state_get_boolean (UserInterface* self, GKeyFile* f, const gchar* group_name, const gchar* key, gboolean _default_) {
gboolean result = FALSE;
+ gboolean _tmp6_ = FALSE;
GError * _inner_error_ = NULL;
#line 2094 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (self != NULL, FALSE);
@@ -10665,7 +10669,7 @@ static gboolean user_interface_state_get_boolean (UserInterface* self, GKeyFile*
g_return_val_if_fail (group_name != NULL, FALSE);
#line 2094 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (key != NULL, FALSE);
-#line 10655 "ui.c"
+#line 10659 "ui.c"
{
gboolean _tmp0_ = FALSE;
GKeyFile* _tmp1_ = NULL;
@@ -10684,14 +10688,14 @@ static gboolean user_interface_state_get_boolean (UserInterface* self, GKeyFile*
_tmp0_ = _tmp4_;
#line 2098 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 10674 "ui.c"
+#line 10678 "ui.c"
goto __catch25_g_error;
}
#line 2098 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = _tmp0_;
#line 2098 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 10681 "ui.c"
+#line 10685 "ui.c"
}
goto __finally25;
__catch25_g_error:
@@ -10707,7 +10711,7 @@ static gboolean user_interface_state_get_boolean (UserInterface* self, GKeyFile*
result = _tmp5_;
#line 2102 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 10697 "ui.c"
+#line 10701 "ui.c"
}
__finally25:
#line 2096 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -10715,8 +10719,8 @@ static gboolean user_interface_state_get_boolean (UserInterface* self, GKeyFile*
#line 2096 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_clear_error (&_inner_error_);
#line 2096 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- return FALSE;
-#line 10706 "ui.c"
+ return _tmp6_;
+#line 10710 "ui.c"
}
@@ -10733,7 +10737,7 @@ static gchar* user_interface_state_get_string (UserInterface* self, GKeyFile* f,
g_return_val_if_fail (key != NULL, NULL);
#line 2106 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (_default_ != NULL, NULL);
-#line 10723 "ui.c"
+#line 10727 "ui.c"
{
gchar* _tmp0_ = NULL;
GKeyFile* _tmp1_ = NULL;
@@ -10753,7 +10757,7 @@ static gchar* user_interface_state_get_string (UserInterface* self, GKeyFile* f,
_tmp0_ = _tmp4_;
#line 2110 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 10743 "ui.c"
+#line 10747 "ui.c"
goto __catch26_g_error;
}
#line 2110 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -10766,7 +10770,7 @@ static gchar* user_interface_state_get_string (UserInterface* self, GKeyFile* f,
_g_free0 (_tmp0_);
#line 2110 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 10756 "ui.c"
+#line 10760 "ui.c"
}
goto __finally26;
__catch26_g_error:
@@ -10785,7 +10789,7 @@ static gchar* user_interface_state_get_string (UserInterface* self, GKeyFile* f,
result = _tmp7_;
#line 2114 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 10775 "ui.c"
+#line 10779 "ui.c"
}
__finally26:
#line 2108 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -10794,7 +10798,7 @@ static gchar* user_interface_state_get_string (UserInterface* self, GKeyFile* f,
g_clear_error (&_inner_error_);
#line 2108 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return NULL;
-#line 10784 "ui.c"
+#line 10788 "ui.c"
}
@@ -10808,7 +10812,7 @@ static gboolean ___lambda11_ (UserInterface* self) {
result = FALSE;
#line 2128 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 10798 "ui.c"
+#line 10802 "ui.c"
}
@@ -10817,7 +10821,7 @@ static gboolean ____lambda11__gsource_func (gpointer self) {
result = ___lambda11_ ((UserInterface*) self);
#line 2124 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 10807 "ui.c"
+#line 10811 "ui.c"
}
@@ -10850,20 +10854,20 @@ static void user_interface_save_state (UserInterface* self, gboolean force) {
_tmp0_ = force;
#line 2120 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (!_tmp0_) {
-#line 10840 "ui.c"
+#line 10844 "ui.c"
guint _tmp1_ = 0U;
guint _tmp3_ = 0U;
#line 2122 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = self->priv->save_state_timeout;
#line 2122 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp1_ != ((guint) 0)) {
-#line 10847 "ui.c"
+#line 10851 "ui.c"
guint _tmp2_ = 0U;
#line 2123 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = self->priv->save_state_timeout;
#line 2123 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_source_remove (_tmp2_);
-#line 10853 "ui.c"
+#line 10857 "ui.c"
}
#line 2124 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = g_timeout_add_full (G_PRIORITY_DEFAULT, (guint) 100, ____lambda11__gsource_func, g_object_ref (self), g_object_unref);
@@ -10871,7 +10875,7 @@ static void user_interface_save_state (UserInterface* self, gboolean force) {
self->priv->save_state_timeout = _tmp3_;
#line 2130 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
-#line 10861 "ui.c"
+#line 10865 "ui.c"
}
#line 2133 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = user_interface_get_state_filename (self);
@@ -10935,7 +10939,7 @@ static void user_interface_save_state (UserInterface* self, gboolean force) {
switch (_tmp22_) {
#line 2143 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
case SCAN_DIRECTION_TOP_TO_BOTTOM:
-#line 10925 "ui.c"
+#line 10929 "ui.c"
{
GKeyFile* _tmp23_ = NULL;
#line 2146 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -10944,11 +10948,11 @@ static void user_interface_save_state (UserInterface* self, gboolean force) {
g_key_file_set_value (_tmp23_, "last-page", "scan-direction", "top-to-bottom");
#line 2147 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 10934 "ui.c"
+#line 10938 "ui.c"
}
#line 2143 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
case SCAN_DIRECTION_BOTTOM_TO_TOP:
-#line 10938 "ui.c"
+#line 10942 "ui.c"
{
GKeyFile* _tmp24_ = NULL;
#line 2149 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -10957,11 +10961,11 @@ static void user_interface_save_state (UserInterface* self, gboolean force) {
g_key_file_set_value (_tmp24_, "last-page", "scan-direction", "bottom-to-top");
#line 2150 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 10947 "ui.c"
+#line 10951 "ui.c"
}
#line 2143 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
case SCAN_DIRECTION_LEFT_TO_RIGHT:
-#line 10951 "ui.c"
+#line 10955 "ui.c"
{
GKeyFile* _tmp25_ = NULL;
#line 2152 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -10970,11 +10974,11 @@ static void user_interface_save_state (UserInterface* self, gboolean force) {
g_key_file_set_value (_tmp25_, "last-page", "scan-direction", "left-to-right");
#line 2153 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 10960 "ui.c"
+#line 10964 "ui.c"
}
#line 2143 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
case SCAN_DIRECTION_RIGHT_TO_LEFT:
-#line 10964 "ui.c"
+#line 10968 "ui.c"
{
GKeyFile* _tmp26_ = NULL;
#line 2155 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -10983,12 +10987,12 @@ static void user_interface_save_state (UserInterface* self, gboolean force) {
g_key_file_set_value (_tmp26_, "last-page", "scan-direction", "right-to-left");
#line 2156 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 10973 "ui.c"
+#line 10977 "ui.c"
}
default:
#line 2143 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 10978 "ui.c"
+#line 10982 "ui.c"
}
{
gchar* _tmp27_ = NULL;
@@ -11017,7 +11021,7 @@ static void user_interface_save_state (UserInterface* self, gboolean force) {
_g_free0 (_tmp29_);
#line 2160 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 11007 "ui.c"
+#line 11011 "ui.c"
goto __catch27_g_error;
}
}
@@ -11039,7 +11043,7 @@ static void user_interface_save_state (UserInterface* self, gboolean force) {
g_warning ("ui.vala:2164: Failed to write state: %s", _tmp34_);
#line 2158 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_error_free0 (e);
-#line 11029 "ui.c"
+#line 11033 "ui.c"
}
__finally27:
#line 2158 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -11052,11 +11056,11 @@ static void user_interface_save_state (UserInterface* self, gboolean force) {
g_clear_error (&_inner_error_);
#line 2158 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
-#line 11042 "ui.c"
+#line 11046 "ui.c"
}
#line 2118 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_key_file_unref0 (f);
-#line 11046 "ui.c"
+#line 11050 "ui.c"
}
@@ -11071,7 +11075,7 @@ static gboolean ___lambda21_ (UserInterface* self) {
result = FALSE;
#line 2180 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 11061 "ui.c"
+#line 11065 "ui.c"
}
@@ -11080,7 +11084,7 @@ static gboolean ____lambda21__gsource_func (gpointer self) {
result = ___lambda21_ ((UserInterface*) self);
#line 2178 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 11070 "ui.c"
+#line 11074 "ui.c"
}
@@ -11107,7 +11111,7 @@ static void user_interface_book_saving_cb (UserInterface* self, gint page_number
g_return_if_fail (self != NULL);
#line 2171 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
while (TRUE) {
-#line 11097 "ui.c"
+#line 11101 "ui.c"
gboolean _tmp0_ = FALSE;
#line 2171 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = gtk_events_pending ();
@@ -11115,11 +11119,11 @@ static void user_interface_book_saving_cb (UserInterface* self, gint page_number
if (!_tmp0_) {
#line 2171 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 11105 "ui.c"
+#line 11109 "ui.c"
}
#line 2172 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_main_iteration ();
-#line 11109 "ui.c"
+#line 11113 "ui.c"
}
#line 2174 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = self->priv->_book;
@@ -11145,7 +11149,7 @@ static void user_interface_book_saving_cb (UserInterface* self, gint page_number
if (_tmp7_) {
#line 2178 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_timeout_add_full (G_PRIORITY_DEFAULT, (guint) 500, ____lambda21__gsource_func, g_object_ref (self), g_object_unref);
-#line 11135 "ui.c"
+#line 11139 "ui.c"
}
#line 2182 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp8_ = _ ("Saving page %d out of %d");
@@ -11169,7 +11173,7 @@ static void user_interface_book_saving_cb (UserInterface* self, gint page_number
progress_bar_dialog_set_message (_tmp14_, message);
#line 2168 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (message);
-#line 11159 "ui.c"
+#line 11163 "ui.c"
}
@@ -11181,7 +11185,7 @@ void user_interface_show_progress_dialog (UserInterface* self) {
_tmp0_ = self->priv->progress_dialog;
#line 2190 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_set_visible ((GtkWidget*) _tmp0_, TRUE);
-#line 11171 "ui.c"
+#line 11175 "ui.c"
}
@@ -11193,7 +11197,7 @@ void user_interface_hide_progress_dialog (UserInterface* self) {
_tmp0_ = self->priv->progress_dialog;
#line 2195 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_set_visible ((GtkWidget*) _tmp0_, FALSE);
-#line 11183 "ui.c"
+#line 11187 "ui.c"
}
@@ -11233,7 +11237,7 @@ void user_interface_show_error (UserInterface* self, const gchar* error_title, c
self->priv->error_change_scanner_hint = _tmp4_;
#line 2204 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_update_info_bar (self);
-#line 11223 "ui.c"
+#line 11227 "ui.c"
}
@@ -11242,7 +11246,7 @@ void user_interface_start (UserInterface* self) {
g_return_if_fail (self != NULL);
#line 2209 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_set_visible ((GtkWidget*) self, TRUE);
-#line 11232 "ui.c"
+#line 11236 "ui.c"
}
@@ -11257,14 +11261,14 @@ Book* user_interface_get_book (UserInterface* self) {
result = _tmp0_;
#line 164 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 11247 "ui.c"
+#line 11251 "ui.c"
}
static gpointer _book_ref0 (gpointer self) {
#line 164 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return self ? book_ref (self) : NULL;
-#line 11254 "ui.c"
+#line 11258 "ui.c"
}
@@ -11283,7 +11287,7 @@ static void user_interface_set_book (UserInterface* self, Book* value) {
self->priv->_book = _tmp1_;
#line 164 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_object_notify ((GObject *) self, "book");
-#line 11273 "ui.c"
+#line 11277 "ui.c"
}
@@ -11304,7 +11308,7 @@ Page* user_interface_get_selected_page (UserInterface* self) {
result = _tmp2_;
#line 171 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 11294 "ui.c"
+#line 11298 "ui.c"
}
@@ -11321,7 +11325,7 @@ void user_interface_set_selected_page (UserInterface* self, Page* value) {
book_view_set_selected_page (_tmp0_, _tmp1_);
#line 173 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_object_notify ((GObject *) self, "selected-page");
-#line 11311 "ui.c"
+#line 11315 "ui.c"
}
@@ -11336,7 +11340,7 @@ gboolean user_interface_get_scanning (UserInterface* self) {
result = _tmp0_;
#line 193 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 11326 "ui.c"
+#line 11330 "ui.c"
}
@@ -11390,7 +11394,7 @@ void user_interface_set_scanning (UserInterface* self, gboolean value) {
gtk_widget_set_visible ((GtkWidget*) _tmp9_, _tmp10_);
#line 194 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_object_notify ((GObject *) self, "scanning");
-#line 11380 "ui.c"
+#line 11384 "ui.c"
}
@@ -11411,7 +11415,7 @@ gint user_interface_get_brightness (UserInterface* self) {
result = (gint) _tmp2_;
#line 214 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 11401 "ui.c"
+#line 11405 "ui.c"
}
@@ -11428,7 +11432,7 @@ void user_interface_set_brightness (UserInterface* self, gint value) {
gtk_adjustment_set_value (_tmp0_, (gdouble) _tmp1_);
#line 215 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_object_notify ((GObject *) self, "brightness");
-#line 11418 "ui.c"
+#line 11422 "ui.c"
}
@@ -11449,7 +11453,7 @@ gint user_interface_get_contrast (UserInterface* self) {
result = (gint) _tmp2_;
#line 220 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 11439 "ui.c"
+#line 11443 "ui.c"
}
@@ -11466,7 +11470,7 @@ void user_interface_set_contrast (UserInterface* self, gint value) {
gtk_adjustment_set_value (_tmp0_, (gdouble) _tmp1_);
#line 221 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_object_notify ((GObject *) self, "contrast");
-#line 11456 "ui.c"
+#line 11460 "ui.c"
}
@@ -11487,7 +11491,7 @@ gint user_interface_get_quality (UserInterface* self) {
result = (gint) _tmp2_;
#line 226 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 11477 "ui.c"
+#line 11481 "ui.c"
}
@@ -11504,7 +11508,7 @@ void user_interface_set_quality (UserInterface* self, gint value) {
gtk_adjustment_set_value (_tmp0_, (gdouble) _tmp1_);
#line 227 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_object_notify ((GObject *) self, "quality");
-#line 11494 "ui.c"
+#line 11498 "ui.c"
}
@@ -11524,7 +11528,7 @@ gchar* user_interface_get_selected_device (UserInterface* self) {
iter = _tmp1_;
#line 236 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp2_) {
-#line 11514 "ui.c"
+#line 11518 "ui.c"
gchar* device = NULL;
GtkListStore* _tmp3_ = NULL;
GtkTreeIter _tmp4_ = {0};
@@ -11538,13 +11542,13 @@ gchar* user_interface_get_selected_device (UserInterface* self) {
result = device;
#line 240 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 11528 "ui.c"
+#line 11532 "ui.c"
}
#line 243 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = NULL;
#line 243 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 11534 "ui.c"
+#line 11538 "ui.c"
}
@@ -11567,7 +11571,7 @@ void user_interface_set_selected_device (UserInterface* self, const gchar* value
if (!_tmp2_) {
#line 250 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
-#line 11557 "ui.c"
+#line 11561 "ui.c"
}
#line 252 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = self->priv->device_combo;
@@ -11579,7 +11583,7 @@ void user_interface_set_selected_device (UserInterface* self, const gchar* value
self->priv->user_selected_device = TRUE;
#line 246 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_object_notify ((GObject *) self, "selected-device");
-#line 11569 "ui.c"
+#line 11573 "ui.c"
}
@@ -11597,7 +11601,7 @@ static gchar* user_interface_get_state_filename (UserInterface* self) {
result = _tmp1_;
#line 2036 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 11587 "ui.c"
+#line 11591 "ui.c"
}
@@ -11616,19 +11620,19 @@ static void g_cclosure_user_marshal_VOID__STRING_SCAN_OPTIONS (GClosure * closur
data1 = closure->data;
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
data2 = param_values->data[0].v_pointer;
-#line 11606 "ui.c"
+#line 11610 "ui.c"
} else {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
data1 = param_values->data[0].v_pointer;
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
data2 = closure->data;
-#line 11612 "ui.c"
+#line 11616 "ui.c"
}
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
callback = (GMarshalFunc_VOID__STRING_SCAN_OPTIONS) (marshal_data ? marshal_data : cc->callback);
#line 14 "/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 11618 "ui.c"
+#line 11622 "ui.c"
}
@@ -11647,19 +11651,19 @@ static void g_cclosure_user_marshal_VOID__STRING_INT (GClosure * closure, GValue
data1 = closure->data;
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
data2 = param_values->data[0].v_pointer;
-#line 11637 "ui.c"
+#line 11641 "ui.c"
} else {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
data1 = param_values->data[0].v_pointer;
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
data2 = closure->data;
-#line 11643 "ui.c"
+#line 11647 "ui.c"
}
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
callback = (GMarshalFunc_VOID__STRING_INT) (marshal_data ? marshal_data : cc->callback);
#line 14 "/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 11649 "ui.c"
+#line 11653 "ui.c"
}
@@ -11670,9 +11674,9 @@ static void user_interface_class_init (UserInterfaceClass * klass) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_type_class_add_private (klass, sizeof (UserInterfacePrivate));
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- ((GtkWidgetClass *) klass)->size_allocate = user_interface_real_size_allocate;
+ ((GtkWidgetClass *) klass)->size_allocate = (void (*)(GtkWidget*, GtkAllocation*)) user_interface_real_size_allocate;
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- ((GtkWidgetClass *) klass)->window_state_event = user_interface_real_window_state_event;
+ ((GtkWidgetClass *) klass)->window_state_event = (gboolean (*)(GtkWidget*, GdkEventWindowState*)) user_interface_real_window_state_event;
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
G_OBJECT_CLASS (klass)->get_property = _vala_user_interface_get_property;
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -11883,7 +11887,7 @@ static void user_interface_class_init (UserInterfaceClass * klass) {
gtk_widget_class_bind_template_callback_full (GTK_WIDGET_CLASS (klass), "quit_menuitem_activate_cb", G_CALLBACK(_user_interface_quit_menuitem_activate_cb_gtk_menu_item_activate));
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_class_bind_template_callback_full (GTK_WIDGET_CLASS (klass), "window_delete_event_cb", G_CALLBACK(_user_interface_window_delete_event_cb_gtk_widget_delete_event));
-#line 11873 "ui.c"
+#line 11877 "ui.c"
}
@@ -11903,7 +11907,7 @@ static void user_interface_instance_init (UserInterface * self) {
self->priv->scanning_ = FALSE;
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_init_template (GTK_WIDGET (self));
-#line 11893 "ui.c"
+#line 11897 "ui.c"
}
@@ -12079,7 +12083,7 @@ static void user_interface_finalize (GObject* obj) {
_g_free0 (self->priv->document_hint);
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
G_OBJECT_CLASS (user_interface_parent_class)->finalize (obj);
-#line 12069 "ui.c"
+#line 12073 "ui.c"
}
@@ -12142,13 +12146,13 @@ static void _vala_user_interface_get_property (GObject * object, guint property_
g_value_take_string (value, user_interface_get_selected_device (self));
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 12132 "ui.c"
+#line 12136 "ui.c"
default:
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 12138 "ui.c"
+#line 12142 "ui.c"
}
}
@@ -12200,13 +12204,13 @@ static void _vala_user_interface_set_property (GObject * object, guint property_
user_interface_set_selected_device (self, g_value_get_string (value));
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 12190 "ui.c"
+#line 12194 "ui.c"
default:
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 12196 "ui.c"
+#line 12200 "ui.c"
}
}
@@ -12303,14 +12307,14 @@ ProgressBarDialog* progress_bar_dialog_construct (GType object_type, GtkApplicat
_g_object_unref0 (hbox);
#line 2229 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return self;
-#line 12293 "ui.c"
+#line 12297 "ui.c"
}
ProgressBarDialog* progress_bar_dialog_new (GtkApplicationWindow* parent, const gchar* title) {
#line 2229 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return progress_bar_dialog_construct (TYPE_PROGRESS_BAR_DIALOG, parent, title);
-#line 12300 "ui.c"
+#line 12304 "ui.c"
}
@@ -12331,7 +12335,7 @@ gdouble progress_bar_dialog_get_fraction (ProgressBarDialog* self) {
result = _tmp2_;
#line 2219 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 12321 "ui.c"
+#line 12325 "ui.c"
}
@@ -12348,7 +12352,7 @@ void progress_bar_dialog_set_fraction (ProgressBarDialog* self, gdouble value) {
gtk_progress_bar_set_fraction (_tmp0_, _tmp1_);
#line 2220 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_object_notify ((GObject *) self, "fraction");
-#line 12338 "ui.c"
+#line 12342 "ui.c"
}
@@ -12369,7 +12373,7 @@ const gchar* progress_bar_dialog_get_message (ProgressBarDialog* self) {
result = _tmp2_;
#line 2225 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 12359 "ui.c"
+#line 12363 "ui.c"
}
@@ -12386,7 +12390,7 @@ void progress_bar_dialog_set_message (ProgressBarDialog* self, const gchar* valu
gtk_progress_bar_set_text (_tmp0_, _tmp1_);
#line 2226 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_object_notify ((GObject *) self, "message");
-#line 12376 "ui.c"
+#line 12380 "ui.c"
}
@@ -12405,14 +12409,14 @@ static void progress_bar_dialog_class_init (ProgressBarDialogClass * klass) {
g_object_class_install_property (G_OBJECT_CLASS (klass), PROGRESS_BAR_DIALOG_FRACTION, g_param_spec_double ("fraction", "fraction", "fraction", -G_MAXDOUBLE, G_MAXDOUBLE, 0.0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 2213 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_object_class_install_property (G_OBJECT_CLASS (klass), PROGRESS_BAR_DIALOG_MESSAGE, g_param_spec_string ("message", "message", "message", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
-#line 12395 "ui.c"
+#line 12399 "ui.c"
}
static void progress_bar_dialog_instance_init (ProgressBarDialog * self) {
#line 2213 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv = PROGRESS_BAR_DIALOG_GET_PRIVATE (self);
-#line 12402 "ui.c"
+#line 12406 "ui.c"
}
@@ -12424,7 +12428,7 @@ static void progress_bar_dialog_finalize (GObject* obj) {
_g_object_unref0 (self->priv->bar);
#line 2213 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
G_OBJECT_CLASS (progress_bar_dialog_parent_class)->finalize (obj);
-#line 12414 "ui.c"
+#line 12418 "ui.c"
}
@@ -12457,13 +12461,13 @@ static void _vala_progress_bar_dialog_get_property (GObject * object, guint prop
g_value_set_string (value, progress_bar_dialog_get_message (self));
#line 2213 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 12447 "ui.c"
+#line 12451 "ui.c"
default:
#line 2213 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 2213 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 12453 "ui.c"
+#line 12457 "ui.c"
}
}
@@ -12485,13 +12489,13 @@ static void _vala_progress_bar_dialog_set_property (GObject * object, guint prop
progress_bar_dialog_set_message (self, g_value_get_string (value));
#line 2213 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 12475 "ui.c"
+#line 12479 "ui.c"
default:
#line 2213 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 2213 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 12481 "ui.c"
+#line 12485 "ui.c"
}
}
@@ -12516,7 +12520,7 @@ gchar* get_temporary_filename (const gchar* prefix, const gchar* extension) {
_tmp2_ = g_strdup_printf ("%sXXXXXX.%s", _tmp0_, _tmp1_);
#line 2263 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
filename = _tmp2_;
-#line 12506 "ui.c"
+#line 12510 "ui.c"
{
gint fd = 0;
const gchar* _tmp3_ = NULL;
@@ -12535,14 +12539,14 @@ gchar* get_temporary_filename (const gchar* prefix, const gchar* extension) {
fd = _tmp5_;
#line 2267 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 12525 "ui.c"
+#line 12529 "ui.c"
goto __catch28_g_error;
}
#line 2268 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp6_ = fd;
#line 2268 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
close (_tmp6_);
-#line 12532 "ui.c"
+#line 12536 "ui.c"
}
goto __finally28;
__catch28_g_error:
@@ -12570,7 +12574,7 @@ gchar* get_temporary_filename (const gchar* prefix, const gchar* extension) {
_g_free0 (filename);
#line 2273 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 12560 "ui.c"
+#line 12564 "ui.c"
}
__finally28:
#line 2265 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -12585,7 +12589,7 @@ gchar* get_temporary_filename (const gchar* prefix, const gchar* extension) {
g_clear_error (&_inner_error_);
#line 2265 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return NULL;
-#line 12575 "ui.c"
+#line 12579 "ui.c"
}
#line 2276 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = path;
@@ -12593,7 +12597,7 @@ gchar* get_temporary_filename (const gchar* prefix, const gchar* extension) {
_g_free0 (filename);
#line 2276 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 12583 "ui.c"
+#line 12587 "ui.c"
}
@@ -12630,14 +12634,14 @@ PageIcon* page_icon_construct (GType object_type, const gchar* text, gdouble r,
self->priv->b = _tmp4_;
#line 2287 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return self;
-#line 12620 "ui.c"
+#line 12624 "ui.c"
}
PageIcon* page_icon_new (const gchar* text, gdouble r, gdouble g, gdouble b) {
#line 2287 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return page_icon_construct (TYPE_PAGE_ICON, text, r, g, b);
-#line 12627 "ui.c"
+#line 12631 "ui.c"
}
@@ -12655,13 +12659,13 @@ static void page_icon_real_get_preferred_width (GtkWidget* base, gint* minimum_w
if (minimum_width) {
#line 2295 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
*minimum_width = _vala_minimum_width;
-#line 12645 "ui.c"
+#line 12649 "ui.c"
}
#line 2295 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (natural_width) {
#line 2295 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
*natural_width = _vala_natural_width;
-#line 12651 "ui.c"
+#line 12655 "ui.c"
}
}
@@ -12683,13 +12687,13 @@ static void page_icon_real_get_preferred_height (GtkWidget* base, gint* minimum_
if (minimum_height) {
#line 2300 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
*minimum_height = _vala_minimum_height;
-#line 12673 "ui.c"
+#line 12677 "ui.c"
}
#line 2300 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (natural_height) {
#line 2300 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
*natural_height = _vala_natural_height;
-#line 12679 "ui.c"
+#line 12683 "ui.c"
}
}
@@ -12711,13 +12715,13 @@ static void page_icon_real_get_preferred_height_for_width (GtkWidget* base, gint
if (minimum_height) {
#line 2305 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
*minimum_height = _vala_minimum_height;
-#line 12701 "ui.c"
+#line 12705 "ui.c"
}
#line 2305 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (natural_height) {
#line 2305 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
*natural_height = _vala_natural_height;
-#line 12707 "ui.c"
+#line 12711 "ui.c"
}
}
@@ -12739,13 +12743,13 @@ static void page_icon_real_get_preferred_width_for_height (GtkWidget* base, gint
if (minimum_width) {
#line 2310 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
*minimum_width = _vala_minimum_width;
-#line 12729 "ui.c"
+#line 12733 "ui.c"
}
#line 2310 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (natural_width) {
#line 2310 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
*natural_width = _vala_natural_width;
-#line 12735 "ui.c"
+#line 12739 "ui.c"
}
}
@@ -12806,7 +12810,7 @@ static gboolean page_icon_real_draw (GtkWidget* base, cairo_t* c) {
_tmp3_ = h;
#line 2319 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if ((_tmp2_ * G_SQRT2) > ((gdouble) _tmp3_)) {
-#line 12796 "ui.c"
+#line 12800 "ui.c"
gint _tmp4_ = 0;
gdouble _tmp5_ = 0.0;
#line 2320 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -12815,7 +12819,7 @@ static gboolean page_icon_real_draw (GtkWidget* base, cairo_t* c) {
_tmp5_ = round (_tmp4_ / G_SQRT2);
#line 2320 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
w = (gint) _tmp5_;
-#line 12805 "ui.c"
+#line 12809 "ui.c"
} else {
gint _tmp6_ = 0;
gdouble _tmp7_ = 0.0;
@@ -12825,7 +12829,7 @@ static gboolean page_icon_real_draw (GtkWidget* base, cairo_t* c) {
_tmp7_ = round (_tmp6_ * G_SQRT2);
#line 2322 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
h = (gint) _tmp7_;
-#line 12815 "ui.c"
+#line 12819 "ui.c"
}
#line 2324 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp8_ = c;
@@ -12907,7 +12911,7 @@ static gboolean page_icon_real_draw (GtkWidget* base, cairo_t* c) {
result = TRUE;
#line 2340 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 12897 "ui.c"
+#line 12901 "ui.c"
}
@@ -12917,25 +12921,25 @@ static void page_icon_class_init (PageIconClass * klass) {
#line 2279 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_type_class_add_private (klass, sizeof (PageIconPrivate));
#line 2279 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- ((GtkWidgetClass *) klass)->get_preferred_width = page_icon_real_get_preferred_width;
+ ((GtkWidgetClass *) klass)->get_preferred_width = (void (*)(GtkWidget*, gint*, gint*)) page_icon_real_get_preferred_width;
#line 2279 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- ((GtkWidgetClass *) klass)->get_preferred_height = page_icon_real_get_preferred_height;
+ ((GtkWidgetClass *) klass)->get_preferred_height = (void (*)(GtkWidget*, gint*, gint*)) page_icon_real_get_preferred_height;
#line 2279 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- ((GtkWidgetClass *) klass)->get_preferred_height_for_width = page_icon_real_get_preferred_height_for_width;
+ ((GtkWidgetClass *) klass)->get_preferred_height_for_width = (void (*)(GtkWidget*, gint, gint*, gint*)) page_icon_real_get_preferred_height_for_width;
#line 2279 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- ((GtkWidgetClass *) klass)->get_preferred_width_for_height = page_icon_real_get_preferred_width_for_height;
+ ((GtkWidgetClass *) klass)->get_preferred_width_for_height = (void (*)(GtkWidget*, gint, gint*, gint*)) page_icon_real_get_preferred_width_for_height;
#line 2279 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- ((GtkWidgetClass *) klass)->draw = page_icon_real_draw;
+ ((GtkWidgetClass *) klass)->draw = (gboolean (*)(GtkWidget*, cairo_t*)) page_icon_real_draw;
#line 2279 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
G_OBJECT_CLASS (klass)->finalize = page_icon_finalize;
-#line 12918 "ui.c"
+#line 12922 "ui.c"
}
static void page_icon_instance_init (PageIcon * self) {
#line 2279 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv = PAGE_ICON_GET_PRIVATE (self);
-#line 12925 "ui.c"
+#line 12929 "ui.c"
}
@@ -12947,7 +12951,7 @@ static void page_icon_finalize (GObject* obj) {
_g_free0 (self->priv->text);
#line 2279 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
G_OBJECT_CLASS (page_icon_parent_class)->finalize (obj);
-#line 12937 "ui.c"
+#line 12941 "ui.c"
}