summaryrefslogtreecommitdiff
path: root/src/simple-scan.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2015-08-19 16:45:53 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2015-08-19 16:45:53 +0200
commit05e2631353c9f9522564ca06efc8fc5ba3a863cb (patch)
tree4168e49cfae52263276634c33f1249186314a4a9 /src/simple-scan.c
parentced7e763a5dbecf8ac3047badb320c84c1aadca2 (diff)
Imported Upstream version 3.17.90upstream/3.17.90
Diffstat (limited to 'src/simple-scan.c')
-rw-r--r--src/simple-scan.c3173
1 files changed, 1740 insertions, 1433 deletions
diff --git a/src/simple-scan.c b/src/simple-scan.c
index 38e44ab..504a0dc 100644
--- a/src/simple-scan.c
+++ b/src/simple-scan.c
@@ -15,7 +15,7 @@
#include <glib.h>
#include <glib-object.h>
#include <gtk/gtk.h>
-#include <gudev/gudev.h>
+#include <gusb.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
@@ -114,10 +114,13 @@ typedef struct _ScanPageInfoClass ScanPageInfoClass;
typedef struct _ScanLine ScanLine;
typedef struct _ScanLineClass ScanLineClass;
+#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
typedef struct _ScanDevicePrivate ScanDevicePrivate;
#define __g_list_free__scan_device_unref0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__scan_device_unref0_ (var), NULL)))
-#define _g_list_free0(var) ((var == NULL) ? NULL : (var = (g_list_free (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
+#define _g_list_free0(var) ((var == NULL) ? NULL : (var = (g_list_free (var), NULL)))
+#define _g_ptr_array_unref0(var) ((var == NULL) ? NULL : (var = (g_ptr_array_unref (var), NULL)))
+#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL)))
#define TYPE_PAGE (page_get_type ())
#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page))
@@ -131,7 +134,6 @@ typedef struct _PageClass PageClass;
#define TYPE_SCAN_DIRECTION (scan_direction_get_type ())
#define _page_unref0(var) ((var == NULL) ? NULL : (var = (page_unref (var), NULL)))
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
typedef struct _ScanPageInfoPrivate ScanPageInfoPrivate;
typedef struct _ScanOptionsPrivate ScanOptionsPrivate;
@@ -155,7 +157,7 @@ struct _SimpleScanClass {
struct _SimpleScanPrivate {
ScanDevice* default_device;
gboolean have_devices;
- GUdevClient* udev_client;
+ GUsbContext* usb_context;
UserInterface* ui;
Scanner* scanner;
Book* book;
@@ -323,9 +325,12 @@ static void simple_scan_scanner_failed_cb (SimpleScan* self, Scanner* scanner, g
static void _simple_scan_scanner_failed_cb_scanner_scan_failed (Scanner* _sender, gint error_code, const gchar* error_string, gpointer self);
static void simple_scan_scanner_scanning_changed_cb (SimpleScan* self, Scanner* scanner);
static void _simple_scan_scanner_scanning_changed_cb_scanner_scanning_changed (Scanner* _sender, gpointer self);
-static void simple_scan_on_uevent (SimpleScan* self, GUdevClient* client, const gchar* action, GUdevDevice* device);
-static void _simple_scan_on_uevent_g_udev_client_uevent (GUdevClient* _sender, const gchar* action, GUdevDevice* device, gpointer self);
-void user_interface_set_scan_devices (UserInterface* self, GList* devices);
+static void ___lambda22_ (SimpleScan* self);
+void scanner_redetect (Scanner* self);
+static void ____lambda22__g_usb_context_device_added (GUsbContext* _sender, GUsbDevice* device, gpointer self);
+static void ___lambda23_ (SimpleScan* self);
+static void ____lambda23__g_usb_context_device_removed (GUsbContext* _sender, GUsbDevice* device, gpointer self);
+void user_interface_set_scan_devices (UserInterface* self, GList* devices, const gchar* missing_driver);
void user_interface_set_selected_device (UserInterface* self, const gchar* value);
static void _scan_device_unref0_ (gpointer var);
static void _g_list_free__scan_device_unref0_ (GList* self);
@@ -334,6 +339,9 @@ void user_interface_start (UserInterface* self);
void scanner_start (Scanner* self);
static void simple_scan_real_shutdown (GApplication* base);
void scanner_free (Scanner* self);
+gchar* simple_scan_suggest_driver (SimpleScan* self);
+static void _g_free0_ (gpointer var);
+static void simple_scan_add_devices (SimpleScan* self, GHashTable* map, guint32* devices, int devices_length1, const gchar* driver);
void user_interface_authorize (UserInterface* self, const gchar* resource, gchar** username, gchar** password);
void scanner_authorize (Scanner* self, const gchar* username, const gchar* password);
gpointer page_ref (gpointer instance);
@@ -378,7 +386,6 @@ gboolean scanner_is_scanning (Scanner* self);
void user_interface_set_scanning (UserInterface* self, gboolean value);
GType scan_mode_get_type (void) G_GNUC_CONST;
GType scan_type_get_type (void) G_GNUC_CONST;
-void user_interface_set_default_file_name (UserInterface* self, const gchar* value);
void scanner_scan (Scanner* self, const gchar* device, ScanOptions* options);
void scanner_cancel (Scanner* self);
static gchar* simple_scan_get_temporary_filename (SimpleScan* self, const gchar* prefix, const gchar* extension);
@@ -387,22 +394,26 @@ void book_save (Book* self, const gchar* type, gint quality, GFile* file, GError
void user_interface_hide_progress_dialog (UserInterface* self);
void page_save (Page* self, const gchar* type, gint quality, GFile* file, GError** error);
static void simple_scan_log_cb (const gchar* log_domain, GLogLevelFlags log_level, const gchar* message);
-void scanner_redetect (Scanner* self);
static void simple_scan_fix_pdf (const gchar* filename, GError** error);
gint simple_scan_main (gchar** args, int args_length1);
ScanDevice* scan_device_new (void);
ScanDevice* scan_device_construct (GType object_type);
static void _simple_scan_log_cb_glog_func (const gchar* log_domain, GLogLevelFlags log_levels, const gchar* message, gpointer self);
static void simple_scan_finalize (GObject* obj);
-static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
-static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);
const GOptionEntry SIMPLE_SCAN_options[4] = {{"version", 'v', 0, G_OPTION_ARG_NONE, &simple_scan_show_version, "Show release version", NULL}, {"debug", 'd', 0, G_OPTION_ARG_NONE, &simple_scan_debug_enabled, "Print debugging messages", NULL}, {"fix-pdf", (gchar) 0, 0, G_OPTION_ARG_STRING, &simple_scan_fix_pdf_filename, "Fix PDF files generated with older versions of Simple Scan", "FILENAME..."}, {NULL}};
+static const guint32 SIMPLE_SCAN_brscan_devices[56] = {(guint32) 0x04f90110, (guint32) 0x04f90111, (guint32) 0x04f90112, (guint32) 0x04f9011d, (guint32) 0x04f9011e, (guint32) 0x04f9011f, (guint32) 0x04f9012b, (guint32) 0x04f90124, (guint32) 0x04f90153, (guint32) 0x04f90125, (guint32) 0x04f90113, (guint32) 0x04f90114, (guint32) 0x04f90115, (guint32) 0x04f90116, (guint32) 0x04f90119, (guint32) 0x04f9011a, (guint32) 0x04f9011b, (guint32) 0x04f9011c, (guint32) 0x04f9012e, (guint32) 0x04f9012f, (guint32) 0x04f90130, (guint32) 0x04f90128, (guint32) 0x04f90127, (guint32) 0x04f90142, (guint32) 0x04f90143, (guint32) 0x04f90140, (guint32) 0x04f90141, (guint32) 0x04f9014e, (guint32) 0x04f9014f, (guint32) 0x04f90150, (guint32) 0x04f90151, (guint32) 0x04f9010e, (guint32) 0x04f9013a, (guint32) 0x04f90120, (guint32) 0x04f9010f, (guint32) 0x04f90121, (guint32) 0x04f90122, (guint32) 0x04f90132, (guint32) 0x04f9013d, (guint32) 0x04f9013c, (guint32) 0x04f90136, (guint32) 0x04f90135, (guint32) 0x04f9013e, (guint32) 0x04f9013f, (guint32) 0x04f90144, (guint32) 0x04f90146, (guint32) 0x04f90148, (guint32) 0x04f9014a, (guint32) 0x04f9014b, (guint32) 0x04f9014c, (guint32) 0x04f90157, (guint32) 0x04f90158, (guint32) 0x04f9015d, (guint32) 0x04f9015e, (guint32) 0x04f9015f, (guint32) 0x04f90160};
+static const guint32 SIMPLE_SCAN_brscan2_devices[31] = {(guint32) 0x04f901c9, (guint32) 0x04f901ca, (guint32) 0x04f901cb, (guint32) 0x04f901cc, (guint32) 0x04f901ec, (guint32) 0x04f901e4, (guint32) 0x04f901e3, (guint32) 0x04f901e2, (guint32) 0x04f901e1, (guint32) 0x04f901e0, (guint32) 0x04f901df, (guint32) 0x04f901de, (guint32) 0x04f901dd, (guint32) 0x04f901dc, (guint32) 0x04f901db, (guint32) 0x04f901da, (guint32) 0x04f901d9, (guint32) 0x04f901d8, (guint32) 0x04f901d7, (guint32) 0x04f901d6, (guint32) 0x04f901d5, (guint32) 0x04f901d4, (guint32) 0x04f901d3, (guint32) 0x04f901d2, (guint32) 0x04f901d1, (guint32) 0x04f901d0, (guint32) 0x04f901cf, (guint32) 0x04f901ce, (guint32) 0x04f9020d, (guint32) 0x04f9020c, (guint32) 0x04f9020a};
+static const guint32 SIMPLE_SCAN_brscan3_devices[58] = {(guint32) 0x04f90222, (guint32) 0x04f90223, (guint32) 0x04f90224, (guint32) 0x04f90225, (guint32) 0x04f90229, (guint32) 0x04f9022a, (guint32) 0x04f9022c, (guint32) 0x04f90228, (guint32) 0x04f90236, (guint32) 0x04f90227, (guint32) 0x04f9022b, (guint32) 0x04f9022d, (guint32) 0x04f9022e, (guint32) 0x04f9022f, (guint32) 0x04f90230, (guint32) 0x04f9021b, (guint32) 0x04f9021a, (guint32) 0x04f90219, (guint32) 0x04f9023f, (guint32) 0x04f90216, (guint32) 0x04f9021d, (guint32) 0x04f9021c, (guint32) 0x04f90220, (guint32) 0x04f9021e, (guint32) 0x04f9023e, (guint32) 0x04f90235, (guint32) 0x04f9023a, (guint32) 0x04f901c9, (guint32) 0x04f901ca, (guint32) 0x04f901cb, (guint32) 0x04f901cc, (guint32) 0x04f901ec, (guint32) 0x04f9020d, (guint32) 0x04f9020c, (guint32) 0x04f90257, (guint32) 0x04f9025d, (guint32) 0x04f90254, (guint32) 0x04f9025b, (guint32) 0x04f9026b, (guint32) 0x04f90258, (guint32) 0x04f9025e, (guint32) 0x04f90256, (guint32) 0x04f90240, (guint32) 0x04f9025f, (guint32) 0x04f90260, (guint32) 0x04f90261, (guint32) 0x04f90278, (guint32) 0x04f9026f, (guint32) 0x04f9026e, (guint32) 0x04f9026d, (guint32) 0x04f90234, (guint32) 0x04f90239, (guint32) 0x04f90253, (guint32) 0x04f90255, (guint32) 0x04f90259, (guint32) 0x04f9025a, (guint32) 0x04f9025c, (guint32) 0x04f90276};
+static const guint32 SIMPLE_SCAN_brscan4_devices[224] = {(guint32) 0x04f90314, (guint32) 0x04f90313, (guint32) 0x04f90312, (guint32) 0x04f90311, (guint32) 0x04f90310, (guint32) 0x04f9030f, (guint32) 0x04f90366, (guint32) 0x04f90365, (guint32) 0x04f90364, (guint32) 0x04f90350, (guint32) 0x04f9034f, (guint32) 0x04f9034e, (guint32) 0x04f9034b, (guint32) 0x04f90349, (guint32) 0x04f90347, (guint32) 0x04f90346, (guint32) 0x04f90343, (guint32) 0x04f90342, (guint32) 0x04f90341, (guint32) 0x04f90340, (guint32) 0x04f9033d, (guint32) 0x04f9033c, (guint32) 0x04f9033a, (guint32) 0x04f90339, (guint32) 0x04f90392, (guint32) 0x04f90373, (guint32) 0x04f9036e, (guint32) 0x04f9036d, (guint32) 0x04f9036c, (guint32) 0x04f9036b, (guint32) 0x04f9036a, (guint32) 0x04f90369, (guint32) 0x04f90368, (guint32) 0x04f90367, (guint32) 0x04f90338, (guint32) 0x04f90337, (guint32) 0x04f90335, (guint32) 0x04f90331, (guint32) 0x04f90330, (guint32) 0x04f90329, (guint32) 0x04f90328, (guint32) 0x04f90326, (guint32) 0x04f90324, (guint32) 0x04f90322, (guint32) 0x04f90321, (guint32) 0x04f90320, (guint32) 0x04f90372, (guint32) 0x04f90371, (guint32) 0x04f90370, (guint32) 0x04f9036f, (guint32) 0x04f90361, (guint32) 0x04f90360, (guint32) 0x04f9035e, (guint32) 0x04f9035d, (guint32) 0x04f9035c, (guint32) 0x04f9035b, (guint32) 0x04f90379, (guint32) 0x04f90378, (guint32) 0x04f90376, (guint32) 0x04f9037a, (guint32) 0x04f9037b, (guint32) 0x04f90377, (guint32) 0x04f9037f, (guint32) 0x04f9037e, (guint32) 0x04f9037d, (guint32) 0x04f9037c, (guint32) 0x04f9035a, (guint32) 0x04f90359, (guint32) 0x04f90358, (guint32) 0x04f90357, (guint32) 0x04f90356, (guint32) 0x04f90355, (guint32) 0x04f90354, (guint32) 0x04f90353, (guint32) 0x04f90351, (guint32) 0x04f90390, (guint32) 0x04f903b3, (guint32) 0x04f90396, (guint32) 0x04f90395, (guint32) 0x04f90394, (guint32) 0x04f90393, (guint32) 0x04f90380, (guint32) 0x04f90381, (guint32) 0x04f903bd, (guint32) 0x04f90383, (guint32) 0x04f90397, (guint32) 0x04f90386, (guint32) 0x04f90384, (guint32) 0x04f90385, (guint32) 0x04f90388, (guint32) 0x04f90389, (guint32) 0x04f9038b, (guint32) 0x04f9038a, (guint32) 0x04f9038c, (guint32) 0x04f9038e, (guint32) 0x04f9038f, (guint32) 0x04f9038d, (guint32) 0x04f903bc, (guint32) 0x04f903bb, (guint32) 0x04f903b6, (guint32) 0x04f903b5, (guint32) 0x04f903b4, (guint32) 0x04f90290, (guint32) 0x04f9028f, (guint32) 0x04f9028d, (guint32) 0x04f9028a, (guint32) 0x04f90284, (guint32) 0x04f90283, (guint32) 0x04f90282, (guint32) 0x04f90281, (guint32) 0x04f9027e, (guint32) 0x04f9027d, (guint32) 0x04f9027c, (guint32) 0x04f9027b, (guint32) 0x04f90280, (guint32) 0x04f9027a, (guint32) 0x04f90279, (guint32) 0x04f9027f, (guint32) 0x04f90285, (guint32) 0x04f9029a, (guint32) 0x04f9029f, (guint32) 0x04f9029e, (guint32) 0x04f90289, (guint32) 0x04f90288, (guint32) 0x04f960a0, (guint32) 0x04f960a1, (guint32) 0x04f90293, (guint32) 0x04f902b7, (guint32) 0x04f90294, (guint32) 0x04f90296, (guint32) 0x04f90298, (guint32) 0x04f902ba, (guint32) 0x04f90299, (guint32) 0x04f902bb, (guint32) 0x04f902d4, (guint32) 0x04f90291, (guint32) 0x04f902ac, (guint32) 0x04f902b5, (guint32) 0x04f90292, (guint32) 0x04f902b6, (guint32) 0x04f90295, (guint32) 0x04f902b8, (guint32) 0x04f9029c, (guint32) 0x04f902cb, (guint32) 0x04f902ca, (guint32) 0x04f902a6, (guint32) 0x04f902a7, (guint32) 0x04f902ab, (guint32) 0x04f902a5, (guint32) 0x04f902a8, (guint32) 0x04f902a0, (guint32) 0x04f902c1, (guint32) 0x04f902c0, (guint32) 0x04f902bf, (guint32) 0x04f902be, (guint32) 0x04f902bd, (guint32) 0x04f902bc, (guint32) 0x04f902b2, (guint32) 0x04f90287, (guint32) 0x04f902cf, (guint32) 0x04f902ce, (guint32) 0x04f902cd, (guint32) 0x04f902c7, (guint32) 0x04f902c6, (guint32) 0x04f902c5, (guint32) 0x04f902c4, (guint32) 0x04f902b4, (guint32) 0x04f902b3, (guint32) 0x04f902c2, (guint32) 0x04f960a4, (guint32) 0x04f960a5, (guint32) 0x04f902cc, (guint32) 0x04f902c8, (guint32) 0x04f902c3, (guint32) 0x04f902d3, (guint32) 0x04f902b1, (guint32) 0x04f902b0, (guint32) 0x04f902af, (guint32) 0x04f902ae, (guint32) 0x04f902ad, (guint32) 0x04f902d1, (guint32) 0x04f902d0, (guint32) 0x04f902fb, (guint32) 0x04f902f1, (guint32) 0x04f902f0, (guint32) 0x04f902ef, (guint32) 0x04f902ed, (guint32) 0x04f902ec, (guint32) 0x04f902ee, (guint32) 0x04f902eb, (guint32) 0x04f902e9, (guint32) 0x04f902e8, (guint32) 0x04f902fa, (guint32) 0x04f902ea, (guint32) 0x04f902e6, (guint32) 0x04f902e5, (guint32) 0x04f902e4, (guint32) 0x04f902e3, (guint32) 0x04f902e2, (guint32) 0x04f902f9, (guint32) 0x04f902de, (guint32) 0x04f902e0, (guint32) 0x04f902df, (guint32) 0x04f902e1, (guint32) 0x04f902e7, (guint32) 0x04f902fc, (guint32) 0x04f902fd, (guint32) 0x04f902fe, (guint32) 0x04f902dd, (guint32) 0x04f902c9, (guint32) 0x04f902ff, (guint32) 0x04f90300, (guint32) 0x04f902f2, (guint32) 0x04f902f3, (guint32) 0x04f902f4, (guint32) 0x04f902f8, (guint32) 0x04f902f5, (guint32) 0x04f902f6, (guint32) 0x04f902f7, (guint32) 0x04f90318, (guint32) 0x04f960a6, (guint32) 0x04f960a7, (guint32) 0x04f960a8, (guint32) 0x04f960a9};
+static const guint32 SIMPLE_SCAN_samsung_devices[69] = {(guint32) 0x04e83425, (guint32) 0x04e8341c, (guint32) 0x04e8342a, (guint32) 0x04e8343d, (guint32) 0x04e83456, (guint32) 0x04e8345a, (guint32) 0x04e83427, (guint32) 0x04e8343a, (guint32) 0x04e83428, (guint32) 0x04e8343b, (guint32) 0x04e83455, (guint32) 0x04e83421, (guint32) 0x04e83439, (guint32) 0x04e83444, (guint32) 0x04e8343f, (guint32) 0x04e8344e, (guint32) 0x04e83431, (guint32) 0x04e8345c, (guint32) 0x04e8344d, (guint32) 0x04e83462, (guint32) 0x04e83464, (guint32) 0x04e83461, (guint32) 0x04e83460, (guint32) 0x04e8340e, (guint32) 0x04e83435, (guint32) 0x04e8340f, (guint32) 0x04e83441, (guint32) 0x04e8344f, (guint32) 0x04e83413, (guint32) 0x04e8341b, (guint32) 0x04e8342e, (guint32) 0x04e83426, (guint32) 0x04e8342b, (guint32) 0x04e83433, (guint32) 0x04e83440, (guint32) 0x04e83434, (guint32) 0x04e8345b, (guint32) 0x04e83457, (guint32) 0x04e8341f, (guint32) 0x04e83453, (guint32) 0x04e8344b, (guint32) 0x04e83409, (guint32) 0x04e83412, (guint32) 0x04e83419, (guint32) 0x04e8342c, (guint32) 0x04e8343c, (guint32) 0x04e83432, (guint32) 0x04e8342d, (guint32) 0x04e83430, (guint32) 0x04e8342f, (guint32) 0x04e83446, (guint32) 0x04e8341a, (guint32) 0x04e83437, (guint32) 0x04e83442, (guint32) 0x04e83466, (guint32) 0x04e8340d, (guint32) 0x04e8341d, (guint32) 0x04e83420, (guint32) 0x04e83429, (guint32) 0x04e83443, (guint32) 0x04e83438, (guint32) 0x04e8344c, (guint32) 0x04e8345d, (guint32) 0x04e83463, (guint32) 0x04e83465, (guint32) 0x04e83450, (guint32) 0x04e83468, (guint32) 0x04e83469, (guint32) 0x04e83471};
+static const guint32 SIMPLE_SCAN_hpaio_devices[520] = {(guint32) 0x03f02311, (guint32) 0x03f09711, (guint32) 0x03f01311, (guint32) 0x03f01011, (guint32) 0x03f00f11, (guint32) 0x03f01911, (guint32) 0x03f00011, (guint32) 0x03f00111, (guint32) 0x03f00611, (guint32) 0x03f00511, (guint32) 0x03f00811, (guint32) 0x03f00711, (guint32) 0x03f00211, (guint32) 0x03f00311, (guint32) 0x03f00411, (guint32) 0x03f0062a, (guint32) 0x03f04912, (guint32) 0x03f09911, (guint32) 0x03f03802, (guint32) 0x03f07a11, (guint32) 0x03f08311, (guint32) 0x03f07b11, (guint32) 0x03f0a711, (guint32) 0x03f08d11, (guint32) 0x03f08a11, (guint32) 0x03f0bb11, (guint32) 0x03f0222a, (guint32) 0x03f0322a, (guint32) 0x03f03902, (guint32) 0x03f01002, (guint32) 0x03f0242a, (guint32) 0x03f0332a, (guint32) 0x03f0122a, (guint32) 0x03f00c2a, (guint32) 0x03f0132a, (guint32) 0x03f02c2a, (guint32) 0x03f07e11, (guint32) 0x03f07811, (guint32) 0x03f08e11, (guint32) 0x03f02d2a, (guint32) 0x03f03502, (guint32) 0x03f01102, (guint32) 0x03f06112, (guint32) 0x03f06212, (guint32) 0x03f05511, (guint32) 0x03f00f2a, (guint32) 0x03f0082a, (guint32) 0x03f07311, (guint32) 0x03f07c11, (guint32) 0x03f07d11, (guint32) 0x03f01d02, (guint32) 0x03f01202, (guint32) 0x03f01e02, (guint32) 0x03f01602, (guint32) 0x03f01302, (guint32) 0x03f01702, (guint32) 0x03f0152a, (guint32) 0x03f0142a, (guint32) 0x03f09611, (guint32) 0x03f01502, (guint32) 0x03f01902, (guint32) 0x03f01f02, (guint32) 0x03f00512, (guint32) 0x03f0aa11, (guint32) 0x03f0a311, (guint32) 0x03f01312, (guint32) 0x03f01802, (guint32) 0x03f02812, (guint32) 0x03f0bf11, (guint32) 0x03f0c011, (guint32) 0x03f0342a, (guint32) 0x03f09e17, (guint32) 0x03f09f17, (guint32) 0x03f0252a, (guint32) 0x03f0a417, (guint32) 0x03f01a02, (guint32) 0x03f09e11, (guint32) 0x03f09011, (guint32) 0x03f02602, (guint32) 0x03f0272a, (guint32) 0x03f02b02, (guint32) 0x03f01812, (guint32) 0x03f0b211, (guint32) 0x03f0352a, (guint32) 0x03f02b2a, (guint32) 0x03f0362a, (guint32) 0x03f0a517, (guint32) 0x03f01b02, (guint32) 0x03f02702, (guint32) 0x03f02c02, (guint32) 0x03f0282a, (guint32) 0x03f02104, (guint32) 0x03f0432a, (guint32) 0x03f02004, (guint32) 0x03f01a2a, (guint32) 0x03f02304, (guint32) 0x03f01b2a, (guint32) 0x03f0442a, (guint32) 0x03f08904, (guint32) 0x03f0a617, (guint32) 0x03f09a17, (guint32) 0x03f0312a, (guint32) 0x03f0452a, (guint32) 0x03f01c02, (guint32) 0x03f01811, (guint32) 0x03f09d17, (guint32) 0x03f02804, (guint32) 0x03f02904, (guint32) 0x03f01511, (guint32) 0x03f01411, (guint32) 0x03f0372a, (guint32) 0x03f00d14, (guint32) 0x03f01611, (guint32) 0x03f01711, (guint32) 0x03f00f14, (guint32) 0x03f01f2a, (guint32) 0x03f00304, (guint32) 0x03f00204, (guint32) 0x03f00804, (guint32) 0x03f02902, (guint32) 0x03f00704, (guint32) 0x03f01e2a, (guint32) 0x03f00404, (guint32) 0x03f00604, (guint32) 0x03f00904, (guint32) 0x03f01512, (guint32) 0x03f01c2a, (guint32) 0x03f00104, (guint32) 0x03f01d2a, (guint32) 0x03f00004, (guint32) 0x03f02604, (guint32) 0x03f02704, (guint32) 0x03f01804, (guint32) 0x03f01504, (guint32) 0x03f01f11, (guint32) 0x03f01204, (guint32) 0x03f01604, (guint32) 0x03f01704, (guint32) 0x03f01104, (guint32) 0x03f01e11, (guint32) 0x03f01304, (guint32) 0x03f01404, (guint32) 0x03f03104, (guint32) 0x03f01004, (guint32) 0x03f03004, (guint32) 0x03f03304, (guint32) 0x03f05004, (guint32) 0x03f01712, (guint32) 0x03f02e11, (guint32) 0x03f00517, (guint32) 0x03f08811, (guint32) 0x03f01317, (guint32) 0x03f04117, (guint32) 0x03f03217, (guint32) 0x03f03e17, (guint32) 0x03f00c17, (guint32) 0x03f0b511, (guint32) 0x03f04217, (guint32) 0x03f04317, (guint32) 0x03f02b17, (guint32) 0x03f03017, (guint32) 0x03f02d17, (guint32) 0x03f02c17, (guint32) 0x03f00b2a, (guint32) 0x03f0112a, (guint32) 0x03f08911, (guint32) 0x03f07c04, (guint32) 0x03f00912, (guint32) 0x03f03011, (guint32) 0x03f0032a, (guint32) 0x03f0002a, (guint32) 0x03f0102a, (guint32) 0x03f03402, (guint32) 0x03f05617, (guint32) 0x03f05717, (guint32) 0x03f0042a, (guint32) 0x03f00f17, (guint32) 0x03f04004, (guint32) 0x03f01017, (guint32) 0x03f01e17, (guint32) 0x03f00317, (guint32) 0x03f00f12, (guint32) 0x03f02f11, (guint32) 0x03f0052a, (guint32) 0x03f04717, (guint32) 0x03f03202, (guint32) 0x03f00e2a, (guint32) 0x03f0262a, (guint32) 0x03f03302, (guint32) 0x03f00417, (guint32) 0x03f00212, (guint32) 0x03f01412, (guint32) 0x03f07804, (guint32) 0x03f03b11, (guint32) 0x03f01117, (guint32) 0x03f03f11, (guint32) 0x03f04f17, (guint32) 0x03f04e17, (guint32) 0x03f03602, (guint32) 0x03f05817, (guint32) 0x03f01d17, (guint32) 0x03f03c11, (guint32) 0x03f07904, (guint32) 0x03f04d11, (guint32) 0x03f0072a, (guint32) 0x03f01417, (guint32) 0x03f04c11, (guint32) 0x03f0c111, (guint32) 0x03f04417, (guint32) 0x03f05017, (guint32) 0x03f0022a, (guint32) 0x03f0012a, (guint32) 0x03f0092a, (guint32) 0x03f07f11, (guint32) 0x03f04811, (guint32) 0x03f03a17, (guint32) 0x03f00a2a, (guint32) 0x03f00312, (guint32) 0x03f09411, (guint32) 0x03f09b11, (guint32) 0x03f03917, (guint32) 0x03f04a17, (guint32) 0x03f03817, (guint32) 0x03f0b911, (guint32) 0x03f05417, (guint32) 0x03f05217, (guint32) 0x03f05317, (guint32) 0x03f05d17, (guint32) 0x03f08711, (guint32) 0x03f05c17, (guint32) 0x03f09a11, (guint32) 0x03f02811, (guint32) 0x03f07d04, (guint32) 0x03f02a11, (guint32) 0x03f02b11, (guint32) 0x03f00217, (guint32) 0x03f02911, (guint32) 0x03f02404, (guint32) 0x03f03511, (guint32) 0x03f00812, (guint32) 0x03f00b17, (guint32) 0x03f0c302, (guint32) 0x03f05917, (guint32) 0x03f05a17, (guint32) 0x03f05b17, (guint32) 0x03f04911, (guint32) 0x03f03611, (guint32) 0x03f07611, (guint32) 0x03f07a04, (guint32) 0x03f02517, (guint32) 0x03f02917, (guint32) 0x03f02a17, (guint32) 0x03f01e04, (guint32) 0x03f00717, (guint32) 0x03f02504, (guint32) 0x03f03711, (guint32) 0x03f0ac11, (guint32) 0x03f0be11, (guint32) 0x03f0c211, (guint32) 0x03f01c17, (guint32) 0x03f04e11, (guint32) 0x03f02e17, (guint32) 0x03f04511, (guint32) 0x03f08011, (guint32) 0x03f00412, (guint32) 0x03f03617, (guint32) 0x03f02f17, (guint32) 0x03f03117, (guint32) 0x03f0c911, (guint32) 0x03f0ca11, (guint32) 0x03f04611, (guint32) 0x03f03c17, (guint32) 0x03f03717, (guint32) 0x03f02617, (guint32) 0x03f01112, (guint32) 0x03f00612, (guint32) 0x03f06717, (guint32) 0x03f09511, (guint32) 0x03f07617, (guint32) 0x03f07317, (guint32) 0x03f08d17, (guint32) 0x03f01617, (guint32) 0x03f07a17, (guint32) 0x03f07517, (guint32) 0x03f09311, (guint32) 0x03f0a011, (guint32) 0x03f03317, (guint32) 0x03f03417, (guint32) 0x03f0a211, (guint32) 0x03f05611, (guint32) 0x03f05011, (guint32) 0x03f00117, (guint32) 0x03f05111, (guint32) 0x03f00817, (guint32) 0x03f05211, (guint32) 0x03f07004, (guint32) 0x03f00917, (guint32) 0x03f01917, (guint32) 0x03f03517, (guint32) 0x03f07104, (guint32) 0x03f01517, (guint32) 0x03f03112, (guint32) 0x03f07817, (guint32) 0x03f0ad11, (guint32) 0x03f0b011, (guint32) 0x03f08517, (guint32) 0x03f08a17, (guint32) 0x03f0c711, (guint32) 0x03f06117, (guint32) 0x03f06917, (guint32) 0x03f06812, (guint32) 0x03f06d12, (guint32) 0x03f07204, (guint32) 0x03f00a17, (guint32) 0x03f07404, (guint32) 0x03f06817, (guint32) 0x03f01b04, (guint32) 0x03f01a04, (guint32) 0x03f01c04, (guint32) 0x03f01904, (guint32) 0x03f07504, (guint32) 0x03f07604, (guint32) 0x03f00714, (guint32) 0x03f09c11, (guint32) 0x03f07b17, (guint32) 0x03f08817, (guint32) 0x03f05711, (guint32) 0x03f07704, (guint32) 0x03f07e04, (guint32) 0x03f03111, (guint32) 0x03f06017, (guint32) 0x03f03d11, (guint32) 0x03f05c11, (guint32) 0x03f07b04, (guint32) 0x03f06a17, (guint32) 0x03f02417, (guint32) 0x03f05411, (guint32) 0x03f01f04, (guint32) 0x03f06711, (guint32) 0x03f07417, (guint32) 0x03f09717, (guint32) 0x03f02317, (guint32) 0x03f06611, (guint32) 0x03f06c11, (guint32) 0x03f09d11, (guint32) 0x03f07711, (guint32) 0x03f04712, (guint32) 0x03f08c11, (guint32) 0x03f05712, (guint32) 0x03f02a12, (guint32) 0x03f06b11, (guint32) 0x03f0c511, (guint32) 0x03f02e12, (guint32) 0x03f0c411, (guint32) 0x03f09917, (guint32) 0x03f09c17, (guint32) 0x03f07411, (guint32) 0x03f06c17, (guint32) 0x03f05812, (guint32) 0x03f06512, (guint32) 0x03f06612, (guint32) 0x03f06412, (guint32) 0x03f0c611, (guint32) 0x03f0c811, (guint32) 0x03f01a17, (guint32) 0x03f02b12, (guint32) 0x03f02c12, (guint32) 0x03f07511, (guint32) 0x03f06217, (guint32) 0x03f07d17, (guint32) 0x03f06317, (guint32) 0x03f07917, (guint32) 0x03f07217, (guint32) 0x03f0a117, (guint32) 0x03f0c802, (guint32) 0x03f05811, (guint32) 0x03f0c402, (guint32) 0x03f02411, (guint32) 0x03f05d11, (guint32) 0x03f06417, (guint32) 0x03f06617, (guint32) 0x03f08917, (guint32) 0x03f05117, (guint32) 0x03f07111, (guint32) 0x03f01f12, (guint32) 0x03f06811, (guint32) 0x03f02012, (guint32) 0x03f08604, (guint32) 0x03f06d11, (guint32) 0x03f03a11, (guint32) 0x03f03012, (guint32) 0x03f08211, (guint32) 0x03f07211, (guint32) 0x03f0a111, (guint32) 0x03f0b411, (guint32) 0x03f09b17, (guint32) 0x03f0b111, (guint32) 0x03f0b611, (guint32) 0x03f0c311, (guint32) 0x03f01f17, (guint32) 0x03f06004, (guint32) 0x03f04f11, (guint32) 0x03f0cc11, (guint32) 0x03f06104, (guint32) 0x03f05b11, (guint32) 0x03f08104, (guint32) 0x03f0cd11, (guint32) 0x03f0a004, (guint32) 0x03f08704, (guint32) 0x03f04312, (guint32) 0x03f04212, (guint32) 0x03f06f17, (guint32) 0x03f07c17, (guint32) 0x03f09517, (guint32) 0x03f05911, (guint32) 0x03f05e12, (guint32) 0x03f00b14, (guint32) 0x03f0c502, (guint32) 0x03f02d11, (guint32) 0x03f03404, (guint32) 0x03f04b11, (guint32) 0x03f01014, (guint32) 0x03f06a11, (guint32) 0x03f07312, (guint32) 0x03f07011, (guint32) 0x03f05311, (guint32) 0x03f03312, (guint32) 0x03f04412, (guint32) 0x03f05412, (guint32) 0x03f05512, (guint32) 0x03f04512, (guint32) 0x03f08204, (guint32) 0x03f0a511, (guint32) 0x03f0af11, (guint32) 0x03f0ba11, (guint32) 0x03f08504, (guint32) 0x03f05d12, (guint32) 0x03f05c12, (guint32) 0x03f08404, (guint32) 0x03f07412, (guint32) 0x03f07212, (guint32) 0x03f08804, (guint32) 0x03f04612, (guint32) 0x03f02611, (guint32) 0x03f05a11, (guint32) 0x03f02612, (guint32) 0x03f0c602, (guint32) 0x03f06012, (guint32) 0x03f03a02, (guint32) 0x03f06911, (guint32) 0x03f0b002, (guint32) 0x03f04111, (guint32) 0x03f06511, (guint32) 0x03f04211, (guint32) 0x03f02512, (guint32) 0x03f0c702, (guint32) 0x03f02002, (guint32) 0x03f03c02, (guint32) 0x03f04311, (guint32) 0x03f0b802, (guint32) 0x03f05e11, (guint32) 0x03f03412, (guint32) 0x03f02112, (guint32) 0x03f04812, (guint32) 0x03f06f11, (guint32) 0x03f0a611, (guint32) 0x03f0bc11, (guint32) 0x03f03e02, (guint32) 0x03f02212, (guint32) 0x03f0b202, (guint32) 0x03f06e12, (guint32) 0x03f0dc11, (guint32) 0x03f02312, (guint32) 0x03f0b402, (guint32) 0x03f0c002, (guint32) 0x03f0b602, (guint32) 0x03f05612, (guint32) 0x03f03612, (guint32) 0x03f0c102, (guint32) 0x03f0de11, (guint32) 0x03f07717, (guint32) 0x03f07117, (guint32) 0x03f05b12, (guint32) 0x03f06411, (guint32) 0x03f0ba02, (guint32) 0x03f0c202, (guint32) 0x03f0be02, (guint32) 0x03f0bb02, (guint32) 0x03f03812, (guint32) 0x03f04012, (guint32) 0x03f03912, (guint32) 0x03f0d102, (guint32) 0x03f05312, (guint32) 0x03f02712, (guint32) 0x03f05912, (guint32) 0x03f07112, (guint32) 0x03f07012, (guint32) 0x03f06f12, (guint32) 0x03f07712, (guint32) 0x03f07612, (guint32) 0x03f0bc02, (guint32) 0x03f0d002, (guint32) 0x03f08417, (guint32) 0x03f02017, (guint32) 0x03f02117, (guint32) 0x03f08317, (guint32) 0x03f09617, (guint32) 0x03f00d12, (guint32) 0x03f0bd02, (guint32) 0x03f02217, (guint32) 0x03f00b12, (guint32) 0x03f01212, (guint32) 0x03f03c2a, (guint32) 0x03f0382a, (guint32) 0x03f0582a, (guint32) 0x03f0552a, (guint32) 0x03f03e2a, (guint32) 0x03f03f2a, (guint32) 0x03f0e311, (guint32) 0x03f0e111};
+static const guint32 SIMPLE_SCAN_epkowa_devices[201] = {(guint32) 0x04b80101, (guint32) 0x04b80102, (guint32) 0x04b80103, (guint32) 0x04b80104, (guint32) 0x04b80105, (guint32) 0x04b80106, (guint32) 0x04b80107, (guint32) 0x04b80108, (guint32) 0x04b80109, (guint32) 0x04b8010a, (guint32) 0x04b8010b, (guint32) 0x04b8010c, (guint32) 0x04b8010d, (guint32) 0x04b8010e, (guint32) 0x04b8010f, (guint32) 0x04b80110, (guint32) 0x04b80112, (guint32) 0x04b80114, (guint32) 0x04b80116, (guint32) 0x04b80118, (guint32) 0x04b80119, (guint32) 0x04b8011a, (guint32) 0x04b8011b, (guint32) 0x04b8011c, (guint32) 0x04b8011d, (guint32) 0x04b8011e, (guint32) 0x04b8011f, (guint32) 0x04b80120, (guint32) 0x04b80121, (guint32) 0x04b80122, (guint32) 0x04b80126, (guint32) 0x04b80128, (guint32) 0x04b80129, (guint32) 0x04b8012a, (guint32) 0x04b8012b, (guint32) 0x04b8012c, (guint32) 0x04b8012d, (guint32) 0x04b8012e, (guint32) 0x04b8012f, (guint32) 0x04b80130, (guint32) 0x04b80131, (guint32) 0x04b80133, (guint32) 0x04b80135, (guint32) 0x04b80136, (guint32) 0x04b80137, (guint32) 0x04b80138, (guint32) 0x04b8013a, (guint32) 0x04b8013b, (guint32) 0x04b8013c, (guint32) 0x04b8013d, (guint32) 0x04b80142, (guint32) 0x04b80143, (guint32) 0x04b80144, (guint32) 0x04b80147, (guint32) 0x04b8014a, (guint32) 0x04b8014b, (guint32) 0x04b80151, (guint32) 0x04b80153, (guint32) 0x04b80801, (guint32) 0x04b80802, (guint32) 0x04b80805, (guint32) 0x04b80806, (guint32) 0x04b80807, (guint32) 0x04b80808, (guint32) 0x04b8080a, (guint32) 0x04b8080c, (guint32) 0x04b8080d, (guint32) 0x04b8080e, (guint32) 0x04b8080f, (guint32) 0x04b80810, (guint32) 0x04b80811, (guint32) 0x04b80813, (guint32) 0x04b80814, (guint32) 0x04b80815, (guint32) 0x04b80817, (guint32) 0x04b80818, (guint32) 0x04b80819, (guint32) 0x04b8081a, (guint32) 0x04b8081c, (guint32) 0x04b8081d, (guint32) 0x04b8081f, (guint32) 0x04b80820, (guint32) 0x04b80821, (guint32) 0x04b80827, (guint32) 0x04b80828, (guint32) 0x04b80829, (guint32) 0x04b8082a, (guint32) 0x04b8082b, (guint32) 0x04b8082e, (guint32) 0x04b8082f, (guint32) 0x04b80830, (guint32) 0x04b80831, (guint32) 0x04b80833, (guint32) 0x04b80834, (guint32) 0x04b80835, (guint32) 0x04b80836, (guint32) 0x04b80837, (guint32) 0x04b80838, (guint32) 0x04b80839, (guint32) 0x04b8083a, (guint32) 0x04b8083c, (guint32) 0x04b8083f, (guint32) 0x04b80841, (guint32) 0x04b80843, (guint32) 0x04b80844, (guint32) 0x04b80846, (guint32) 0x04b80847, (guint32) 0x04b80848, (guint32) 0x04b80849, (guint32) 0x04b8084a, (guint32) 0x04b8084c, (guint32) 0x04b8084d, (guint32) 0x04b8084f, (guint32) 0x04b80850, (guint32) 0x04b80851, (guint32) 0x04b80852, (guint32) 0x04b80853, (guint32) 0x04b80854, (guint32) 0x04b80855, (guint32) 0x04b80856, (guint32) 0x04b8085c, (guint32) 0x04b8085d, (guint32) 0x04b8085e, (guint32) 0x04b8085f, (guint32) 0x04b80860, (guint32) 0x04b80861, (guint32) 0x04b80862, (guint32) 0x04b80863, (guint32) 0x04b80864, (guint32) 0x04b80865, (guint32) 0x04b80866, (guint32) 0x04b80869, (guint32) 0x04b8086a, (guint32) 0x04b80870, (guint32) 0x04b80871, (guint32) 0x04b80872, (guint32) 0x04b80873, (guint32) 0x04b80878, (guint32) 0x04b80879, (guint32) 0x04b8087b, (guint32) 0x04b8087c, (guint32) 0x04b8087d, (guint32) 0x04b8087e, (guint32) 0x04b8087f, (guint32) 0x04b80880, (guint32) 0x04b80881, (guint32) 0x04b80883, (guint32) 0x04b80884, (guint32) 0x04b80885, (guint32) 0x04b8088f, (guint32) 0x04b80890, (guint32) 0x04b80891, (guint32) 0x04b80892, (guint32) 0x04b80893, (guint32) 0x04b80894, (guint32) 0x04b80895, (guint32) 0x04b80896, (guint32) 0x04b80897, (guint32) 0x04b80898, (guint32) 0x04b80899, (guint32) 0x04b8089a, (guint32) 0x04b8089b, (guint32) 0x04b8089c, (guint32) 0x04b8089d, (guint32) 0x04b8089e, (guint32) 0x04b8089f, (guint32) 0x04b808a0, (guint32) 0x04b808a1, (guint32) 0x04b808a5, (guint32) 0x04b808a6, (guint32) 0x04b808a8, (guint32) 0x04b808a9, (guint32) 0x04b808aa, (guint32) 0x04b808ab, (guint32) 0x04b808ac, (guint32) 0x04b808ad, (guint32) 0x04b808ae, (guint32) 0x04b808af, (guint32) 0x04b808b0, (guint32) 0x04b808b3, (guint32) 0x04b808b4, (guint32) 0x04b808b5, (guint32) 0x04b808b6, (guint32) 0x04b808b7, (guint32) 0x04b808b8, (guint32) 0x04b808b9, (guint32) 0x04b808bd, (guint32) 0x04b808be, (guint32) 0x04b808bf, (guint32) 0x04b808c0, (guint32) 0x04b808c1, (guint32) 0x04b808c3, (guint32) 0x04b808c4, (guint32) 0x04b808c5, (guint32) 0x04b808c6, (guint32) 0x04b808c7, (guint32) 0x04b808c8, (guint32) 0x04b808c9, (guint32) 0x04b808ca, (guint32) 0x04b808cd, (guint32) 0x04b808d0};
static gpointer _scan_device_ref0 (gpointer self) {
#line 41 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return self ? scan_device_ref (self) : NULL;
-#line 406 "simple-scan.c"
+#line 417 "simple-scan.c"
}
@@ -422,128 +433,155 @@ SimpleScan* simple_scan_construct (GType object_type, ScanDevice* device) {
self->priv->default_device = _tmp1_;
#line 39 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return self;
-#line 426 "simple-scan.c"
+#line 437 "simple-scan.c"
}
SimpleScan* simple_scan_new (ScanDevice* device) {
#line 39 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return simple_scan_construct (TYPE_SIMPLE_SCAN, device);
-#line 433 "simple-scan.c"
+#line 444 "simple-scan.c"
}
static gpointer _book_ref0 (gpointer self) {
#line 49 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return self ? book_ref (self) : NULL;
-#line 440 "simple-scan.c"
+#line 451 "simple-scan.c"
}
static void _simple_scan_scan_cb_user_interface_start_scan (UserInterface* _sender, const gchar* device, ScanOptions* options, gpointer self) {
#line 50 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
simple_scan_scan_cb ((SimpleScan*) self, _sender, device, options);
-#line 447 "simple-scan.c"
+#line 458 "simple-scan.c"
}
static void _simple_scan_cancel_cb_user_interface_stop_scan (UserInterface* _sender, gpointer self) {
#line 51 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
simple_scan_cancel_cb ((SimpleScan*) self, _sender);
-#line 454 "simple-scan.c"
+#line 465 "simple-scan.c"
}
static void _simple_scan_email_cb_user_interface_email (UserInterface* _sender, const gchar* profile, gint quality, gpointer self) {
#line 52 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
simple_scan_email_cb ((SimpleScan*) self, _sender, profile, quality);
-#line 461 "simple-scan.c"
+#line 472 "simple-scan.c"
}
static void _simple_scan_update_scan_devices_cb_scanner_update_devices (Scanner* _sender, GList* devices, gpointer self) {
#line 55 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
simple_scan_update_scan_devices_cb ((SimpleScan*) self, _sender, devices);
-#line 468 "simple-scan.c"
+#line 479 "simple-scan.c"
}
static void _simple_scan_authorize_cb_scanner_request_authorization (Scanner* _sender, const gchar* resource, gpointer self) {
#line 56 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
simple_scan_authorize_cb ((SimpleScan*) self, _sender, resource);
-#line 475 "simple-scan.c"
+#line 486 "simple-scan.c"
}
static void _simple_scan_scanner_new_page_cb_scanner_expect_page (Scanner* _sender, gpointer self) {
#line 57 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
simple_scan_scanner_new_page_cb ((SimpleScan*) self, _sender);
-#line 482 "simple-scan.c"
+#line 493 "simple-scan.c"
}
static void _simple_scan_scanner_page_info_cb_scanner_got_page_info (Scanner* _sender, ScanPageInfo* info, gpointer self) {
#line 58 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
simple_scan_scanner_page_info_cb ((SimpleScan*) self, _sender, info);
-#line 489 "simple-scan.c"
+#line 500 "simple-scan.c"
}
static void _simple_scan_scanner_line_cb_scanner_got_line (Scanner* _sender, ScanLine* line, gpointer self) {
#line 59 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
simple_scan_scanner_line_cb ((SimpleScan*) self, _sender, line);
-#line 496 "simple-scan.c"
+#line 507 "simple-scan.c"
}
static void _simple_scan_scanner_page_done_cb_scanner_page_done (Scanner* _sender, gpointer self) {
#line 60 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
simple_scan_scanner_page_done_cb ((SimpleScan*) self, _sender);
-#line 503 "simple-scan.c"
+#line 514 "simple-scan.c"
}
static void _simple_scan_scanner_document_done_cb_scanner_document_done (Scanner* _sender, gpointer self) {
#line 61 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
simple_scan_scanner_document_done_cb ((SimpleScan*) self, _sender);
-#line 510 "simple-scan.c"
+#line 521 "simple-scan.c"
}
static void _simple_scan_scanner_failed_cb_scanner_scan_failed (Scanner* _sender, gint error_code, const gchar* error_string, gpointer self) {
#line 62 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
simple_scan_scanner_failed_cb ((SimpleScan*) self, _sender, error_code, error_string);
-#line 517 "simple-scan.c"
+#line 528 "simple-scan.c"
}
static void _simple_scan_scanner_scanning_changed_cb_scanner_scanning_changed (Scanner* _sender, gpointer self) {
#line 63 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
simple_scan_scanner_scanning_changed_cb ((SimpleScan*) self, _sender);
-#line 524 "simple-scan.c"
+#line 535 "simple-scan.c"
}
-static void _simple_scan_on_uevent_g_udev_client_uevent (GUdevClient* _sender, const gchar* action, GUdevDevice* device, gpointer self) {
-#line 67 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- simple_scan_on_uevent ((SimpleScan*) self, _sender, action, device);
-#line 531 "simple-scan.c"
+static void ___lambda22_ (SimpleScan* self) {
+ Scanner* _tmp0_ = NULL;
+#line 68 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp0_ = self->priv->scanner;
+#line 68 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ scanner_redetect (_tmp0_);
+#line 545 "simple-scan.c"
}
-static void _scan_device_unref0_ (gpointer var) {
+static void ____lambda22__g_usb_context_device_added (GUsbContext* _sender, GUsbDevice* device, gpointer self) {
+#line 68 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ ___lambda22_ ((SimpleScan*) self);
+#line 552 "simple-scan.c"
+}
+
+
+static void ___lambda23_ (SimpleScan* self) {
+ Scanner* _tmp0_ = NULL;
+#line 69 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp0_ = self->priv->scanner;
+#line 69 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ scanner_redetect (_tmp0_);
+#line 562 "simple-scan.c"
+}
+
+
+static void ____lambda23__g_usb_context_device_removed (GUsbContext* _sender, GUsbDevice* device, gpointer self) {
#line 69 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ ___lambda23_ ((SimpleScan*) self);
+#line 569 "simple-scan.c"
+}
+
+
+static void _scan_device_unref0_ (gpointer var) {
+#line 76 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
(var == NULL) ? NULL : (var = (scan_device_unref (var), NULL));
-#line 538 "simple-scan.c"
+#line 576 "simple-scan.c"
}
static void _g_list_free__scan_device_unref0_ (GList* self) {
-#line 69 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 76 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_list_foreach (self, (GFunc) _scan_device_unref0_, NULL);
-#line 69 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 76 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_list_free (self);
-#line 547 "simple-scan.c"
+#line 585 "simple-scan.c"
}
@@ -567,16 +605,8 @@ static void simple_scan_real_startup (GApplication* base) {
Scanner* _tmp15_ = NULL;
Scanner* _tmp16_ = NULL;
Scanner* _tmp17_ = NULL;
- gchar** subsystems = NULL;
- gchar* _tmp18_ = NULL;
- gchar** _tmp19_ = NULL;
- gint subsystems_length1 = 0;
- gint _subsystems_size_ = 0;
- gchar** _tmp20_ = NULL;
- gint _tmp20__length1 = 0;
- GUdevClient* _tmp21_ = NULL;
- GUdevClient* _tmp22_ = NULL;
- ScanDevice* _tmp23_ = NULL;
+ ScanDevice* _tmp25_ = NULL;
+ GError * _inner_error_ = NULL;
#line 44 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
self = (SimpleScan*) base;
#line 46 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
@@ -655,76 +685,112 @@ static void simple_scan_real_startup (GApplication* base) {
_tmp17_ = self->priv->scanner;
#line 63 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_signal_connect_object (_tmp17_, "scanning-changed", (GCallback) _simple_scan_scanner_scanning_changed_cb_scanner_scanning_changed, self, 0);
+#line 689 "simple-scan.c"
+ {
+ GUsbContext* _tmp18_ = NULL;
+ GUsbContext* _tmp19_ = NULL;
+ GUsbContext* _tmp20_ = NULL;
+ GUsbContext* _tmp21_ = NULL;
+ GUsbContext* _tmp22_ = NULL;
+#line 67 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp19_ = g_usb_context_new (&_inner_error_);
+#line 67 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp18_ = _tmp19_;
+#line 67 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 702 "simple-scan.c"
+ goto __catch4_g_error;
+ }
+#line 67 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp20_ = _tmp18_;
+#line 67 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp18_ = NULL;
+#line 67 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _g_object_unref0 (self->priv->usb_context);
+#line 67 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ self->priv->usb_context = _tmp20_;
+#line 68 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp21_ = self->priv->usb_context;
+#line 68 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ g_signal_connect_object (_tmp21_, "device-added", (GCallback) ____lambda22__g_usb_context_device_added, self, 0);
+#line 69 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp22_ = self->priv->usb_context;
+#line 69 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ g_signal_connect_object (_tmp22_, "device-removed", (GCallback) ____lambda23__g_usb_context_device_removed, self, 0);
#line 65 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp18_ = g_strdup ("usb");
+ _g_object_unref0 (_tmp18_);
+#line 723 "simple-scan.c"
+ }
+ goto __finally4;
+ __catch4_g_error:
+ {
+ GError* e = NULL;
+ GError* _tmp23_ = NULL;
+ const gchar* _tmp24_ = NULL;
#line 65 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp19_ = g_new0 (gchar*, 2 + 1);
+ e = _inner_error_;
#line 65 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp19_[0] = _tmp18_;
+ _inner_error_ = NULL;
+#line 73 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp23_ = e;
+#line 73 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp24_ = _tmp23_->message;
+#line 73 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ g_warning ("simple-scan.vala:73: Failed to create USB context: %s\n", _tmp24_);
#line 65 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp19_[1] = NULL;
+ _g_error_free0 (e);
+#line 743 "simple-scan.c"
+ }
+ __finally4:
#line 65 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- subsystems = _tmp19_;
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 65 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- subsystems_length1 = 2;
+ g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 65 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _subsystems_size_ = subsystems_length1;
-#line 66 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp20_ = subsystems;
-#line 66 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp20__length1 = subsystems_length1;
-#line 66 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp21_ = g_udev_client_new (_tmp20_);
-#line 66 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _g_object_unref0 (self->priv->udev_client);
-#line 66 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- self->priv->udev_client = _tmp21_;
-#line 67 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp22_ = self->priv->udev_client;
-#line 67 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- g_signal_connect_object (_tmp22_, "uevent", (GCallback) _simple_scan_on_uevent_g_udev_client_uevent, self, 0);
-#line 69 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp23_ = self->priv->default_device;
-#line 69 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- if (_tmp23_ != NULL) {
-#line 691 "simple-scan.c"
+ g_clear_error (&_inner_error_);
+#line 65 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ return;
+#line 754 "simple-scan.c"
+ }
+#line 76 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp25_ = self->priv->default_device;
+#line 76 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ if (_tmp25_ != NULL) {
+#line 760 "simple-scan.c"
GList* device_list = NULL;
- ScanDevice* _tmp24_ = NULL;
- ScanDevice* _tmp25_ = NULL;
- UserInterface* _tmp26_ = NULL;
- GList* _tmp27_ = NULL;
+ ScanDevice* _tmp26_ = NULL;
+ ScanDevice* _tmp27_ = NULL;
UserInterface* _tmp28_ = NULL;
- ScanDevice* _tmp29_ = NULL;
- const gchar* _tmp30_ = NULL;
-#line 71 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ GList* _tmp29_ = NULL;
+ UserInterface* _tmp30_ = NULL;
+ ScanDevice* _tmp31_ = NULL;
+ const gchar* _tmp32_ = NULL;
+#line 78 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
device_list = NULL;
-#line 73 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp24_ = self->priv->default_device;
-#line 73 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp25_ = _scan_device_ref0 (_tmp24_);
-#line 73 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- device_list = g_list_append (device_list, _tmp25_);
-#line 74 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp26_ = self->priv->ui;
-#line 74 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp27_ = device_list;
-#line 74 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- user_interface_set_scan_devices (_tmp26_, _tmp27_);
-#line 75 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 80 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp26_ = self->priv->default_device;
+#line 80 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp27_ = _scan_device_ref0 (_tmp26_);
+#line 80 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ device_list = g_list_append (device_list, _tmp27_);
+#line 81 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp28_ = self->priv->ui;
-#line 75 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp29_ = self->priv->default_device;
-#line 75 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp30_ = _tmp29_->name;
-#line 75 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- user_interface_set_selected_device (_tmp28_, _tmp30_);
-#line 69 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 81 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp29_ = device_list;
+#line 81 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ user_interface_set_scan_devices (_tmp28_, _tmp29_, NULL);
+#line 82 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp30_ = self->priv->ui;
+#line 82 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp31_ = self->priv->default_device;
+#line 82 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp32_ = _tmp31_->name;
+#line 82 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ user_interface_set_selected_device (_tmp30_, _tmp32_);
+#line 76 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
__g_list_free__scan_device_unref0_0 (device_list);
-#line 724 "simple-scan.c"
+#line 793 "simple-scan.c"
}
-#line 44 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- subsystems = (_vala_array_free (subsystems, subsystems_length1, (GDestroyNotify) g_free), NULL);
-#line 728 "simple-scan.c"
}
@@ -732,46 +798,46 @@ static void simple_scan_real_activate (GApplication* base) {
SimpleScan * self;
UserInterface* _tmp0_ = NULL;
Scanner* _tmp1_ = NULL;
-#line 79 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 86 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
self = (SimpleScan*) base;
-#line 81 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 88 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
G_APPLICATION_CLASS (simple_scan_parent_class)->activate ((GApplication*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_application_get_type (), GtkApplication));
-#line 82 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 89 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp0_ = self->priv->ui;
-#line 82 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 89 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
user_interface_start (_tmp0_);
-#line 83 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 90 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp1_ = self->priv->scanner;
-#line 83 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 90 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
scanner_start (_tmp1_);
-#line 748 "simple-scan.c"
+#line 814 "simple-scan.c"
}
static void simple_scan_real_shutdown (GApplication* base) {
SimpleScan * self;
Scanner* _tmp0_ = NULL;
-#line 86 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 93 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
self = (SimpleScan*) base;
-#line 88 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 95 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
G_APPLICATION_CLASS (simple_scan_parent_class)->shutdown ((GApplication*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_application_get_type (), GtkApplication));
-#line 89 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 96 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_book_unref0 (self->priv->book);
-#line 89 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 96 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
self->priv->book = NULL;
-#line 90 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 97 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (self->priv->ui);
-#line 90 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 97 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
self->priv->ui = NULL;
-#line 91 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _g_object_unref0 (self->priv->udev_client);
-#line 91 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- self->priv->udev_client = NULL;
-#line 92 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 98 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _g_object_unref0 (self->priv->usb_context);
+#line 98 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ self->priv->usb_context = NULL;
+#line 99 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp0_ = self->priv->scanner;
-#line 92 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 99 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
scanner_free (_tmp0_);
-#line 775 "simple-scan.c"
+#line 841 "simple-scan.c"
}
@@ -782,95 +848,432 @@ static void simple_scan_update_scan_devices_cb (SimpleScan* self, Scanner* scann
ScanDevice* _tmp2_ = NULL;
GList* _tmp10_ = NULL;
guint _tmp11_ = 0U;
- UserInterface* _tmp12_ = NULL;
- GList* _tmp13_ = NULL;
-#line 95 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ gchar* missing_driver = NULL;
+ gboolean _tmp12_ = FALSE;
+ UserInterface* _tmp14_ = NULL;
+ GList* _tmp15_ = NULL;
+ const gchar* _tmp16_ = NULL;
+#line 102 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (self != NULL);
-#line 95 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 102 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (scanner != NULL);
-#line 97 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 104 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp0_ = devices;
-#line 97 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 104 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp1_ = g_list_copy (_tmp0_);
-#line 97 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 104 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
devices_copy = _tmp1_;
-#line 100 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 107 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp2_ = self->priv->default_device;
-#line 100 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 107 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_tmp2_ != NULL) {
-#line 802 "simple-scan.c"
+#line 871 "simple-scan.c"
gboolean default_in_list = FALSE;
GList* _tmp3_ = NULL;
gboolean _tmp8_ = FALSE;
-#line 102 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 109 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
default_in_list = FALSE;
-#line 103 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 110 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp3_ = devices_copy;
-#line 810 "simple-scan.c"
+#line 879 "simple-scan.c"
{
GList* device_collection = NULL;
GList* device_it = NULL;
-#line 103 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 110 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
device_collection = _tmp3_;
-#line 103 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 110 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
for (device_it = device_collection; device_it != NULL; device_it = device_it->next) {
-#line 818 "simple-scan.c"
+#line 887 "simple-scan.c"
ScanDevice* device = NULL;
-#line 103 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 110 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
device = (ScanDevice*) device_it->data;
-#line 822 "simple-scan.c"
+#line 891 "simple-scan.c"
{
ScanDevice* _tmp4_ = NULL;
const gchar* _tmp5_ = NULL;
ScanDevice* _tmp6_ = NULL;
const gchar* _tmp7_ = NULL;
-#line 105 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 112 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp4_ = device;
-#line 105 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 112 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp5_ = _tmp4_->name;
-#line 105 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 112 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp6_ = self->priv->default_device;
-#line 105 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 112 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp7_ = _tmp6_->name;
-#line 105 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 112 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (g_strcmp0 (_tmp5_, _tmp7_) == 0) {
-#line 107 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 114 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
default_in_list = TRUE;
-#line 108 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 115 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
break;
-#line 842 "simple-scan.c"
+#line 911 "simple-scan.c"
}
}
}
}
-#line 112 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 119 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp8_ = default_in_list;
-#line 112 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 119 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (!_tmp8_) {
-#line 851 "simple-scan.c"
+#line 920 "simple-scan.c"
ScanDevice* _tmp9_ = NULL;
-#line 113 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 120 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp9_ = self->priv->default_device;
-#line 113 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 120 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
devices_copy = g_list_prepend (devices_copy, _tmp9_);
-#line 857 "simple-scan.c"
+#line 926 "simple-scan.c"
}
}
-#line 116 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 123 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp10_ = devices_copy;
-#line 116 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 123 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp11_ = g_list_length (_tmp10_);
-#line 116 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 123 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
self->priv->have_devices = _tmp11_ > ((guint) 0);
-#line 117 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp12_ = self->priv->ui;
-#line 117 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp13_ = devices_copy;
-#line 117 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- user_interface_set_scan_devices (_tmp12_, _tmp13_);
-#line 95 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 126 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ missing_driver = NULL;
+#line 127 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp12_ = self->priv->have_devices;
+#line 127 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ if (!_tmp12_) {
+#line 941 "simple-scan.c"
+ gchar* _tmp13_ = NULL;
+#line 128 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp13_ = simple_scan_suggest_driver (self);
+#line 128 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _g_free0 (missing_driver);
+#line 128 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ missing_driver = _tmp13_;
+#line 949 "simple-scan.c"
+ }
+#line 130 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp14_ = self->priv->ui;
+#line 130 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp15_ = devices_copy;
+#line 130 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp16_ = missing_driver;
+#line 130 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ user_interface_set_scan_devices (_tmp14_, _tmp15_, _tmp16_);
+#line 102 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _g_free0 (missing_driver);
+#line 102 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_list_free0 (devices_copy);
-#line 874 "simple-scan.c"
+#line 963 "simple-scan.c"
+}
+
+
+static void _g_free0_ (gpointer var) {
+#line 186 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ var = (g_free (var), NULL);
+#line 970 "simple-scan.c"
+}
+
+
+static gint g_ptr_array_get_length (GPtrArray* self) {
+ gint result;
+ guint _tmp0_ = 0U;
+#line 4428 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
+ g_return_val_if_fail (self != NULL, 0);
+#line 4428 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
+ _tmp0_ = self->len;
+#line 4428 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
+ result = (gint) _tmp0_;
+#line 4428 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
+ return result;
+#line 985 "simple-scan.c"
+}
+
+
+static void g_ptr_array_set_length (GPtrArray* self, gint value) {
+ gint _tmp0_ = 0;
+#line 4429 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
+ g_return_if_fail (self != NULL);
+#line 4429 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
+ _tmp0_ = value;
+#line 4429 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
+ g_ptr_array_set_size (self, _tmp0_);
+#line 997 "simple-scan.c"
+}
+
+
+static gpointer _g_object_ref0 (gpointer self) {
+#line 199 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ return self ? g_object_ref (self) : NULL;
+#line 1004 "simple-scan.c"
+}
+
+
+gchar* simple_scan_suggest_driver (SimpleScan* self) {
+ gchar* result = NULL;
+ GUsbContext* _tmp0_ = NULL;
+ GHashTable* driver_map = NULL;
+ GHashFunc _tmp1_ = NULL;
+ GEqualFunc _tmp2_ = NULL;
+ GHashTable* _tmp3_ = NULL;
+ GHashTable* _tmp4_ = NULL;
+ GHashTable* _tmp5_ = NULL;
+ GHashTable* _tmp6_ = NULL;
+ GHashTable* _tmp7_ = NULL;
+ GHashTable* _tmp8_ = NULL;
+ GHashTable* _tmp9_ = NULL;
+ GHashTable* _tmp10_ = NULL;
+ GPtrArray* devices = NULL;
+ GUsbContext* _tmp11_ = NULL;
+ GPtrArray* _tmp12_ = NULL;
+#line 181 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ g_return_val_if_fail (self != NULL, NULL);
+#line 183 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp0_ = self->priv->usb_context;
+#line 183 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ if (_tmp0_ == NULL) {
+#line 184 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ result = NULL;
+#line 184 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ return result;
+#line 1035 "simple-scan.c"
+ }
+#line 186 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp1_ = g_direct_hash;
+#line 186 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp2_ = g_direct_equal;
+#line 186 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp3_ = g_hash_table_new_full (_tmp1_, _tmp2_, NULL, _g_free0_);
+#line 186 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ driver_map = _tmp3_;
+#line 187 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp4_ = driver_map;
+#line 187 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ simple_scan_add_devices (self, _tmp4_, SIMPLE_SCAN_brscan_devices, G_N_ELEMENTS (SIMPLE_SCAN_brscan_devices), "brscan");
+#line 188 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp5_ = driver_map;
+#line 188 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ simple_scan_add_devices (self, _tmp5_, SIMPLE_SCAN_brscan2_devices, G_N_ELEMENTS (SIMPLE_SCAN_brscan2_devices), "brscan2");
+#line 189 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp6_ = driver_map;
+#line 189 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ simple_scan_add_devices (self, _tmp6_, SIMPLE_SCAN_brscan3_devices, G_N_ELEMENTS (SIMPLE_SCAN_brscan3_devices), "brscan3");
+#line 190 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp7_ = driver_map;
+#line 190 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ simple_scan_add_devices (self, _tmp7_, SIMPLE_SCAN_brscan4_devices, G_N_ELEMENTS (SIMPLE_SCAN_brscan4_devices), "brscan4");
+#line 191 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp8_ = driver_map;
+#line 191 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ simple_scan_add_devices (self, _tmp8_, SIMPLE_SCAN_samsung_devices, G_N_ELEMENTS (SIMPLE_SCAN_samsung_devices), "samsung");
+#line 192 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp9_ = driver_map;
+#line 192 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ simple_scan_add_devices (self, _tmp9_, SIMPLE_SCAN_hpaio_devices, G_N_ELEMENTS (SIMPLE_SCAN_hpaio_devices), "hpaio");
+#line 193 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp10_ = driver_map;
+#line 193 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ simple_scan_add_devices (self, _tmp10_, SIMPLE_SCAN_epkowa_devices, G_N_ELEMENTS (SIMPLE_SCAN_epkowa_devices), "epkowa");
+#line 194 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp11_ = self->priv->usb_context;
+#line 194 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp12_ = g_usb_context_get_devices (_tmp11_);
+#line 194 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ devices = _tmp12_;
+#line 1079 "simple-scan.c"
+ {
+ gint i = 0;
+#line 197 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ i = 0;
+#line 1084 "simple-scan.c"
+ {
+ gboolean _tmp13_ = FALSE;
+#line 197 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp13_ = TRUE;
+#line 197 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ while (TRUE) {
+#line 1091 "simple-scan.c"
+ gint _tmp15_ = 0;
+ GPtrArray* _tmp16_ = NULL;
+ gint _tmp17_ = 0;
+ gint _tmp18_ = 0;
+ GUsbDevice* device = NULL;
+ GPtrArray* _tmp19_ = NULL;
+ gpointer* _tmp20_ = NULL;
+ gint _tmp20__length1 = 0;
+ gint _tmp21_ = 0;
+ GUsbDevice* _tmp22_ = NULL;
+ GUsbDevice* _tmp23_ = NULL;
+ gchar* driver = NULL;
+ GHashTable* _tmp24_ = NULL;
+ GUsbDevice* _tmp25_ = NULL;
+ guint16 _tmp26_ = 0U;
+ GUsbDevice* _tmp27_ = NULL;
+ guint16 _tmp28_ = 0U;
+ gconstpointer _tmp29_ = NULL;
+ gchar* _tmp30_ = NULL;
+ const gchar* _tmp31_ = NULL;
+#line 197 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ if (!_tmp13_) {
+#line 1114 "simple-scan.c"
+ gint _tmp14_ = 0;
+#line 197 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp14_ = i;
+#line 197 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ i = _tmp14_ + 1;
+#line 1120 "simple-scan.c"
+ }
+#line 197 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp13_ = FALSE;
+#line 197 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp15_ = i;
+#line 197 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp16_ = devices;
+#line 197 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp17_ = g_ptr_array_get_length (_tmp16_);
+#line 197 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp18_ = _tmp17_;
+#line 197 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ if (!(_tmp15_ < _tmp18_)) {
+#line 197 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ break;
+#line 1136 "simple-scan.c"
+ }
+#line 199 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp19_ = devices;
+#line 199 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp20_ = _tmp19_->pdata;
+#line 199 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp20__length1 = (gint) _tmp19_->len;
+#line 199 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp21_ = i;
+#line 199 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp22_ = _tmp20_[_tmp21_];
+#line 199 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp23_ = _g_object_ref0 (_tmp22_);
+#line 199 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ device = _tmp23_;
+#line 200 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp24_ = driver_map;
+#line 200 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp25_ = device;
+#line 200 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp26_ = g_usb_device_get_vid (_tmp25_);
+#line 200 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp27_ = device;
+#line 200 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp28_ = g_usb_device_get_pid (_tmp27_);
+#line 200 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp29_ = g_hash_table_lookup (_tmp24_, (gpointer) ((guintptr) ((guint32) ((_tmp26_ << 16) | _tmp28_))));
+#line 200 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp30_ = g_strdup ((const gchar*) _tmp29_);
+#line 200 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ driver = _tmp30_;
+#line 201 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp31_ = driver;
+#line 201 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ if (_tmp31_ != NULL) {
+#line 202 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ result = driver;
+#line 202 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _g_object_unref0 (device);
+#line 202 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _g_ptr_array_unref0 (devices);
+#line 202 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _g_hash_table_unref0 (driver_map);
+#line 202 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ return result;
+#line 1182 "simple-scan.c"
+ }
+#line 197 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _g_free0 (driver);
+#line 197 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _g_object_unref0 (device);
+#line 1188 "simple-scan.c"
+ }
+ }
+ }
+#line 205 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ result = NULL;
+#line 205 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _g_ptr_array_unref0 (devices);
+#line 205 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _g_hash_table_unref0 (driver_map);
+#line 205 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ return result;
+#line 1200 "simple-scan.c"
+}
+
+
+static void simple_scan_add_devices (SimpleScan* self, GHashTable* map, guint32* devices, int devices_length1, const gchar* driver) {
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ g_return_if_fail (self != NULL);
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ g_return_if_fail (map != NULL);
+#line 208 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ g_return_if_fail (driver != NULL);
+#line 1211 "simple-scan.c"
+ {
+ gint i = 0;
+#line 210 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ i = 0;
+#line 1216 "simple-scan.c"
+ {
+ gboolean _tmp0_ = FALSE;
+#line 210 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp0_ = TRUE;
+#line 210 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ while (TRUE) {
+#line 1223 "simple-scan.c"
+ gint _tmp2_ = 0;
+ guint32* _tmp3_ = NULL;
+ gint _tmp3__length1 = 0;
+ GHashTable* _tmp4_ = NULL;
+ guint32* _tmp5_ = NULL;
+ gint _tmp5__length1 = 0;
+ gint _tmp6_ = 0;
+ guint32 _tmp7_ = 0U;
+ const gchar* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+#line 210 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ if (!_tmp0_) {
+#line 1236 "simple-scan.c"
+ gint _tmp1_ = 0;
+#line 210 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp1_ = i;
+#line 210 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ i = _tmp1_ + 1;
+#line 1242 "simple-scan.c"
+ }
+#line 210 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp0_ = FALSE;
+#line 210 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp2_ = i;
+#line 210 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp3_ = devices;
+#line 210 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp3__length1 = devices_length1;
+#line 210 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ if (!(_tmp2_ < _tmp3__length1)) {
+#line 210 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ break;
+#line 1256 "simple-scan.c"
+ }
+#line 211 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp4_ = map;
+#line 211 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp5_ = devices;
+#line 211 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp5__length1 = devices_length1;
+#line 211 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp6_ = i;
+#line 211 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp7_ = _tmp5_[_tmp6_];
+#line 211 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp8_ = driver;
+#line 211 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp9_ = g_strdup (_tmp8_);
+#line 211 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ g_hash_table_insert (_tmp4_, (gpointer) ((guintptr) _tmp7_), _tmp9_);
+#line 1274 "simple-scan.c"
+ }
+ }
+ }
}
@@ -882,35 +1285,35 @@ static void simple_scan_authorize_cb (SimpleScan* self, Scanner* scanner, const
gchar* _tmp2_ = NULL;
gchar* _tmp3_ = NULL;
Scanner* _tmp4_ = NULL;
-#line 120 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 214 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (self != NULL);
-#line 120 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 214 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (scanner != NULL);
-#line 120 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 214 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (resource != NULL);
-#line 123 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 217 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp0_ = self->priv->ui;
-#line 123 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 217 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp1_ = resource;
-#line 123 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 217 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
user_interface_authorize (_tmp0_, _tmp1_, &_tmp2_, &_tmp3_);
-#line 123 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 217 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (username);
-#line 123 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 217 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
username = _tmp2_;
-#line 123 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 217 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (password);
-#line 123 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 217 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
password = _tmp3_;
-#line 124 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 218 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp4_ = scanner;
-#line 124 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 218 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
scanner_authorize (_tmp4_, username, password);
-#line 120 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 214 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (password);
-#line 120 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 214 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (username);
-#line 914 "simple-scan.c"
+#line 1317 "simple-scan.c"
}
@@ -943,83 +1346,83 @@ static Page* simple_scan_append_page (SimpleScan* self) {
UserInterface* _tmp60_ = NULL;
Page* _tmp61_ = NULL;
Page* _tmp62_ = NULL;
-#line 127 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 221 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_val_if_fail (self != NULL, NULL);
-#line 130 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 224 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp0_ = self->priv->book;
-#line 130 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 224 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp1_ = book_get_page (_tmp0_, -1);
-#line 130 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 224 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
page = _tmp1_;
-#line 131 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 225 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp3_ = page;
-#line 131 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 225 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_tmp3_ != NULL) {
-#line 959 "simple-scan.c"
+#line 1362 "simple-scan.c"
Page* _tmp4_ = NULL;
gboolean _tmp5_ = FALSE;
gboolean _tmp6_ = FALSE;
-#line 131 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 225 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp4_ = page;
-#line 131 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 225 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp5_ = page_get_has_data (_tmp4_);
-#line 131 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 225 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp6_ = _tmp5_;
-#line 131 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 225 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp2_ = !_tmp6_;
-#line 971 "simple-scan.c"
+#line 1374 "simple-scan.c"
} else {
-#line 131 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 225 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp2_ = FALSE;
-#line 975 "simple-scan.c"
+#line 1378 "simple-scan.c"
}
-#line 131 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 225 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_tmp2_) {
-#line 979 "simple-scan.c"
+#line 1382 "simple-scan.c"
UserInterface* _tmp7_ = NULL;
Page* _tmp8_ = NULL;
Page* _tmp9_ = NULL;
-#line 133 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 227 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp7_ = self->priv->ui;
-#line 133 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 227 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp8_ = page;
-#line 133 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 227 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
user_interface_set_selected_page (_tmp7_, _tmp8_);
-#line 134 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 228 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp9_ = page;
-#line 134 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 228 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
page_start (_tmp9_);
-#line 135 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 229 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
result = page;
-#line 135 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 229 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return result;
-#line 997 "simple-scan.c"
+#line 1400 "simple-scan.c"
}
-#line 139 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 233 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
scan_direction = SCAN_DIRECTION_TOP_TO_BOTTOM;
-#line 140 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 234 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
do_crop = FALSE;
-#line 141 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 235 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
named_crop = NULL;
-#line 142 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 236 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
width = 100;
-#line 142 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 236 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
height = 100;
-#line 142 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 236 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
dpi = 100;
-#line 142 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 236 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
cx = 0;
-#line 142 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 236 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
cy = 0;
-#line 142 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 236 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
cw = 0;
-#line 142 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 236 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
ch = 0;
-#line 143 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 237 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp10_ = page;
-#line 143 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 237 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_tmp10_ != NULL) {
-#line 1023 "simple-scan.c"
+#line 1426 "simple-scan.c"
Page* _tmp11_ = NULL;
ScanDirection _tmp12_ = 0;
ScanDirection _tmp13_ = 0;
@@ -1036,51 +1439,51 @@ static Page* simple_scan_append_page (SimpleScan* self) {
gboolean _tmp24_ = FALSE;
gboolean _tmp25_ = FALSE;
gboolean _tmp26_ = FALSE;
-#line 145 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 239 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp11_ = page;
-#line 145 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 239 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp12_ = page_get_scan_direction (_tmp11_);
-#line 145 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 239 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp13_ = _tmp12_;
-#line 145 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 239 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
scan_direction = _tmp13_;
-#line 146 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 240 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp14_ = page;
-#line 146 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 240 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp15_ = page_get_width (_tmp14_);
-#line 146 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 240 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp16_ = _tmp15_;
-#line 146 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 240 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
width = _tmp16_;
-#line 147 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 241 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp17_ = page;
-#line 147 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 241 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp18_ = page_get_height (_tmp17_);
-#line 147 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 241 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp19_ = _tmp18_;
-#line 147 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 241 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
height = _tmp19_;
-#line 148 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 242 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp20_ = page;
-#line 148 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 242 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp21_ = page_get_dpi (_tmp20_);
-#line 148 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 242 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp22_ = _tmp21_;
-#line 148 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 242 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
dpi = _tmp22_;
-#line 150 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 244 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp23_ = page;
-#line 150 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 244 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp24_ = page_get_has_crop (_tmp23_);
-#line 150 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 244 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp25_ = _tmp24_;
-#line 150 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 244 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
do_crop = _tmp25_;
-#line 151 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 245 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp26_ = do_crop;
-#line 151 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 245 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_tmp26_) {
-#line 1084 "simple-scan.c"
+#line 1487 "simple-scan.c"
Page* _tmp27_ = NULL;
const gchar* _tmp28_ = NULL;
const gchar* _tmp29_ = NULL;
@@ -1097,154 +1500,154 @@ static Page* simple_scan_append_page (SimpleScan* self) {
Page* _tmp40_ = NULL;
gint _tmp41_ = 0;
gint _tmp42_ = 0;
-#line 153 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 247 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp27_ = page;
-#line 153 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 247 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp28_ = page_get_crop_name (_tmp27_);
-#line 153 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 247 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp29_ = _tmp28_;
-#line 153 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 247 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp30_ = g_strdup (_tmp29_);
-#line 153 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 247 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (named_crop);
-#line 153 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 247 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
named_crop = _tmp30_;
-#line 154 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 248 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp31_ = page;
-#line 154 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 248 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp32_ = page_get_crop_x (_tmp31_);
-#line 154 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 248 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp33_ = _tmp32_;
-#line 154 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 248 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
cx = _tmp33_;
-#line 155 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 249 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp34_ = page;
-#line 155 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 249 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp35_ = page_get_crop_y (_tmp34_);
-#line 155 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 249 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp36_ = _tmp35_;
-#line 155 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 249 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
cy = _tmp36_;
-#line 156 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 250 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp37_ = page;
-#line 156 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 250 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp38_ = page_get_crop_width (_tmp37_);
-#line 156 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 250 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp39_ = _tmp38_;
-#line 156 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 250 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
cw = _tmp39_;
-#line 157 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 251 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp40_ = page;
-#line 157 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 251 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp41_ = page_get_crop_height (_tmp40_);
-#line 157 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 251 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp42_ = _tmp41_;
-#line 157 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 251 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
ch = _tmp42_;
-#line 1145 "simple-scan.c"
+#line 1548 "simple-scan.c"
}
}
-#line 161 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 255 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp43_ = width;
-#line 161 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 255 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp44_ = height;
-#line 161 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 255 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp45_ = dpi;
-#line 161 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 255 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp46_ = scan_direction;
-#line 161 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 255 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp47_ = page_new (_tmp43_, _tmp44_, _tmp45_, _tmp46_);
-#line 161 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 255 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_page_unref0 (page);
-#line 161 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 255 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
page = _tmp47_;
-#line 162 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 256 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp48_ = self->priv->book;
-#line 162 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 256 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp49_ = page;
-#line 162 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 256 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
book_append_page (_tmp48_, _tmp49_);
-#line 163 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 257 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp50_ = do_crop;
-#line 163 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 257 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_tmp50_) {
-#line 1172 "simple-scan.c"
+#line 1575 "simple-scan.c"
const gchar* _tmp51_ = NULL;
Page* _tmp57_ = NULL;
gint _tmp58_ = 0;
gint _tmp59_ = 0;
-#line 165 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 259 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp51_ = named_crop;
-#line 165 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 259 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_tmp51_ != NULL) {
-#line 1181 "simple-scan.c"
+#line 1584 "simple-scan.c"
Page* _tmp52_ = NULL;
const gchar* _tmp53_ = NULL;
-#line 167 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 261 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp52_ = page;
-#line 167 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 261 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp53_ = named_crop;
-#line 167 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 261 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
page_set_named_crop (_tmp52_, _tmp53_);
-#line 1190 "simple-scan.c"
+#line 1593 "simple-scan.c"
} else {
Page* _tmp54_ = NULL;
gint _tmp55_ = 0;
gint _tmp56_ = 0;
-#line 170 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 264 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp54_ = page;
-#line 170 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 264 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp55_ = cw;
-#line 170 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 264 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp56_ = ch;
-#line 170 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 264 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
page_set_custom_crop (_tmp54_, _tmp55_, _tmp56_);
-#line 1203 "simple-scan.c"
+#line 1606 "simple-scan.c"
}
-#line 171 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 265 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp57_ = page;
-#line 171 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 265 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp58_ = cx;
-#line 171 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 265 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp59_ = cy;
-#line 171 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 265 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
page_move_crop (_tmp57_, _tmp58_, _tmp59_);
-#line 1213 "simple-scan.c"
+#line 1616 "simple-scan.c"
}
-#line 173 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 267 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp60_ = self->priv->ui;
-#line 173 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 267 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp61_ = page;
-#line 173 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 267 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
user_interface_set_selected_page (_tmp60_, _tmp61_);
-#line 174 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 268 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp62_ = page;
-#line 174 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 268 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
page_start (_tmp62_);
-#line 176 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 270 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
result = page;
-#line 176 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 270 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (named_crop);
-#line 176 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 270 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return result;
-#line 1231 "simple-scan.c"
+#line 1634 "simple-scan.c"
}
static void simple_scan_scanner_new_page_cb (SimpleScan* self, Scanner* scanner) {
Page* _tmp0_ = NULL;
Page* _tmp1_ = NULL;
-#line 179 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 273 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (self != NULL);
-#line 179 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 273 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (scanner != NULL);
-#line 181 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 275 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp0_ = simple_scan_append_page (self);
-#line 181 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 275 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp1_ = _tmp0_;
-#line 181 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 275 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_page_unref0 (_tmp1_);
-#line 1248 "simple-scan.c"
+#line 1651 "simple-scan.c"
}
@@ -1273,79 +1676,79 @@ static gchar* simple_scan_get_profile_for_device (SimpleScan* self, const gchar*
const gchar* _tmp37_ = NULL;
gchar* _tmp38_ = NULL;
GError * _inner_error_ = NULL;
-#line 184 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 278 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_val_if_fail (self != NULL, NULL);
-#line 184 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 278 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_val_if_fail (device_name != NULL, NULL);
-#line 187 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 281 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp0_ = device_name;
-#line 187 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 281 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp1_ = g_strdup_printf ("sane:%s", _tmp0_);
-#line 187 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 281 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
device_id = _tmp1_;
-#line 188 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 282 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp2_ = device_name;
-#line 188 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- g_debug ("simple-scan.vala:188: Getting color profile for device %s", _tmp2_);
-#line 190 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 282 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ g_debug ("simple-scan.vala:282: Getting color profile for device %s", _tmp2_);
+#line 284 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp3_ = cd_client_new ();
-#line 190 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 284 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
client = _tmp3_;
-#line 1295 "simple-scan.c"
+#line 1698 "simple-scan.c"
{
CdClient* _tmp4_ = NULL;
-#line 193 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 287 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp4_ = client;
-#line 193 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 287 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
cd_client_connect_sync (_tmp4_, NULL, &_inner_error_);
-#line 193 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 287 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1304 "simple-scan.c"
- goto __catch4_g_error;
+#line 1707 "simple-scan.c"
+ goto __catch5_g_error;
}
}
- goto __finally4;
- __catch4_g_error:
+ goto __finally5;
+ __catch5_g_error:
{
GError* e = NULL;
GError* _tmp5_ = NULL;
const gchar* _tmp6_ = NULL;
-#line 191 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 285 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
e = _inner_error_;
-#line 191 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 285 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_inner_error_ = NULL;
-#line 197 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 291 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp5_ = e;
-#line 197 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 291 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp6_ = _tmp5_->message;
-#line 197 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- g_debug ("simple-scan.vala:197: Failed to connect to colord: %s", _tmp6_);
-#line 198 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 291 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ g_debug ("simple-scan.vala:291: Failed to connect to colord: %s", _tmp6_);
+#line 292 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
result = NULL;
-#line 198 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 292 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_error_free0 (e);
-#line 198 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 292 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (client);
-#line 198 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 292 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (device_id);
-#line 198 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 292 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return result;
-#line 1334 "simple-scan.c"
+#line 1737 "simple-scan.c"
}
- __finally4:
-#line 191 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ __finally5:
+#line 285 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 191 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 285 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (client);
-#line 191 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 285 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (device_id);
-#line 191 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 285 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
-#line 191 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 285 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_clear_error (&_inner_error_);
-#line 191 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 285 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return NULL;
-#line 1349 "simple-scan.c"
+#line 1752 "simple-scan.c"
}
{
CdDevice* _tmp7_ = NULL;
@@ -1353,298 +1756,298 @@ static gchar* simple_scan_get_profile_for_device (SimpleScan* self, const gchar*
const gchar* _tmp9_ = NULL;
CdDevice* _tmp10_ = NULL;
CdDevice* _tmp11_ = NULL;
-#line 204 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 298 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp8_ = client;
-#line 204 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 298 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp9_ = device_id;
-#line 204 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 298 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp10_ = cd_client_find_device_by_property_sync (_tmp8_, CD_DEVICE_PROPERTY_SERIAL, _tmp9_, NULL, &_inner_error_);
-#line 204 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 298 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp7_ = _tmp10_;
-#line 204 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 298 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1367 "simple-scan.c"
- goto __catch5_g_error;
+#line 1770 "simple-scan.c"
+ goto __catch6_g_error;
}
-#line 204 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 298 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp11_ = _tmp7_;
-#line 204 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 298 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp7_ = NULL;
-#line 204 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 298 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (device);
-#line 204 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 298 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
device = _tmp11_;
-#line 202 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 296 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (_tmp7_);
-#line 1380 "simple-scan.c"
+#line 1783 "simple-scan.c"
}
- goto __finally5;
- __catch5_g_error:
+ goto __finally6;
+ __catch6_g_error:
{
GError* e = NULL;
const gchar* _tmp12_ = NULL;
GError* _tmp13_ = NULL;
const gchar* _tmp14_ = NULL;
-#line 202 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 296 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
e = _inner_error_;
-#line 202 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 296 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_inner_error_ = NULL;
-#line 208 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 302 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp12_ = device_name;
-#line 208 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 302 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp13_ = e;
-#line 208 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 302 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp14_ = _tmp13_->message;
-#line 208 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- g_debug ("simple-scan.vala:208: Unable to find colord device %s: %s", _tmp12_, _tmp14_);
-#line 209 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 302 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ g_debug ("simple-scan.vala:302: Unable to find colord device %s: %s", _tmp12_, _tmp14_);
+#line 303 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
result = NULL;
-#line 209 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 303 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_error_free0 (e);
-#line 209 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 303 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (device);
-#line 209 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 303 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (client);
-#line 209 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 303 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (device_id);
-#line 209 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 303 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return result;
-#line 1413 "simple-scan.c"
+#line 1816 "simple-scan.c"
}
- __finally5:
-#line 202 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ __finally6:
+#line 296 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 202 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 296 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (device);
-#line 202 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 296 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (client);
-#line 202 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 296 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (device_id);
-#line 202 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 296 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
-#line 202 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 296 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_clear_error (&_inner_error_);
-#line 202 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 296 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return NULL;
-#line 1430 "simple-scan.c"
+#line 1833 "simple-scan.c"
}
{
CdDevice* _tmp15_ = NULL;
-#line 214 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 308 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp15_ = device;
-#line 214 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 308 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
cd_device_connect_sync (_tmp15_, NULL, &_inner_error_);
-#line 214 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 308 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1440 "simple-scan.c"
- goto __catch6_g_error;
+#line 1843 "simple-scan.c"
+ goto __catch7_g_error;
}
}
- goto __finally6;
- __catch6_g_error:
+ goto __finally7;
+ __catch7_g_error:
{
GError* e = NULL;
const gchar* _tmp16_ = NULL;
GError* _tmp17_ = NULL;
const gchar* _tmp18_ = NULL;
-#line 212 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 306 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
e = _inner_error_;
-#line 212 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 306 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_inner_error_ = NULL;
-#line 218 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 312 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp16_ = device_name;
-#line 218 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 312 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp17_ = e;
-#line 218 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 312 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp18_ = _tmp17_->message;
-#line 218 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- g_debug ("simple-scan.vala:218: Failed to get properties from the device %s: %s", _tmp16_, _tmp18_);
-#line 219 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 312 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ g_debug ("simple-scan.vala:312: Failed to get properties from the device %s: %s", _tmp16_, _tmp18_);
+#line 313 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
result = NULL;
-#line 219 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 313 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_error_free0 (e);
-#line 219 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 313 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (device);
-#line 219 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 313 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (client);
-#line 219 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 313 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (device_id);
-#line 219 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 313 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return result;
-#line 1475 "simple-scan.c"
+#line 1878 "simple-scan.c"
}
- __finally6:
-#line 212 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ __finally7:
+#line 306 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 212 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 306 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (device);
-#line 212 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 306 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (client);
-#line 212 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 306 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (device_id);
-#line 212 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 306 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
-#line 212 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 306 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_clear_error (&_inner_error_);
-#line 212 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 306 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return NULL;
-#line 1492 "simple-scan.c"
+#line 1895 "simple-scan.c"
}
-#line 222 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 316 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp19_ = device;
-#line 222 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 316 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp20_ = cd_device_get_default_profile (_tmp19_);
-#line 222 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 316 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
profile = _tmp20_;
-#line 223 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 317 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp21_ = profile;
-#line 223 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 317 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_tmp21_ == NULL) {
-#line 1504 "simple-scan.c"
+#line 1907 "simple-scan.c"
const gchar* _tmp22_ = NULL;
-#line 225 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 319 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp22_ = device_name;
-#line 225 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- g_debug ("simple-scan.vala:225: No default color profile for device: %s", _tmp22_);
-#line 226 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 319 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ g_debug ("simple-scan.vala:319: No default color profile for device: %s", _tmp22_);
+#line 320 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
result = NULL;
-#line 226 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 320 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (profile);
-#line 226 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 320 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (device);
-#line 226 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 320 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (client);
-#line 226 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 320 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (device_id);
-#line 226 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 320 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return result;
-#line 1522 "simple-scan.c"
+#line 1925 "simple-scan.c"
}
{
CdProfile* _tmp23_ = NULL;
-#line 231 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 325 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp23_ = profile;
-#line 231 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 325 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
cd_profile_connect_sync (_tmp23_, NULL, &_inner_error_);
-#line 231 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 325 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1532 "simple-scan.c"
- goto __catch7_g_error;
+#line 1935 "simple-scan.c"
+ goto __catch8_g_error;
}
}
- goto __finally7;
- __catch7_g_error:
+ goto __finally8;
+ __catch8_g_error:
{
GError* e = NULL;
const gchar* _tmp24_ = NULL;
GError* _tmp25_ = NULL;
const gchar* _tmp26_ = NULL;
-#line 229 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 323 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
e = _inner_error_;
-#line 229 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 323 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_inner_error_ = NULL;
-#line 235 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 329 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp24_ = device_name;
-#line 235 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 329 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp25_ = e;
-#line 235 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 329 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp26_ = _tmp25_->message;
-#line 235 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- g_debug ("simple-scan.vala:235: Failed to get properties from the profile %s: %s", _tmp24_, _tmp26_);
-#line 236 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 329 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ g_debug ("simple-scan.vala:329: Failed to get properties from the profile %s: %s", _tmp24_, _tmp26_);
+#line 330 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
result = NULL;
-#line 236 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 330 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_error_free0 (e);
-#line 236 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 330 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (profile);
-#line 236 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 330 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (device);
-#line 236 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 330 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (client);
-#line 236 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 330 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (device_id);
-#line 236 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 330 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return result;
-#line 1569 "simple-scan.c"
+#line 1972 "simple-scan.c"
}
- __finally7:
-#line 229 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ __finally8:
+#line 323 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 229 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 323 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (profile);
-#line 229 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 323 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (device);
-#line 229 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 323 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (client);
-#line 229 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 323 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (device_id);
-#line 229 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 323 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
-#line 229 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 323 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_clear_error (&_inner_error_);
-#line 229 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 323 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return NULL;
-#line 1588 "simple-scan.c"
+#line 1991 "simple-scan.c"
}
-#line 239 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 333 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp27_ = profile;
-#line 239 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 333 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp28_ = cd_profile_get_filename (_tmp27_);
-#line 239 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 333 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp29_ = _tmp28_;
-#line 239 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 333 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_tmp29_ == NULL) {
-#line 1598 "simple-scan.c"
+#line 2001 "simple-scan.c"
const gchar* _tmp30_ = NULL;
-#line 241 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 335 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp30_ = device_name;
-#line 241 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- g_debug ("simple-scan.vala:241: No icc color profile for the device %s", _tmp30_);
-#line 242 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 335 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ g_debug ("simple-scan.vala:335: No icc color profile for the device %s", _tmp30_);
+#line 336 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
result = NULL;
-#line 242 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 336 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (profile);
-#line 242 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 336 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (device);
-#line 242 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 336 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (client);
-#line 242 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 336 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (device_id);
-#line 242 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 336 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return result;
-#line 1616 "simple-scan.c"
+#line 2019 "simple-scan.c"
}
-#line 245 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 339 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp31_ = profile;
-#line 245 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 339 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp32_ = cd_profile_get_filename (_tmp31_);
-#line 245 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 339 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp33_ = _tmp32_;
-#line 245 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 339 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp34_ = device_name;
-#line 245 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- g_debug ("simple-scan.vala:245: Using color profile %s for device %s", _tmp33_, _tmp34_);
-#line 246 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 339 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ g_debug ("simple-scan.vala:339: Using color profile %s for device %s", _tmp33_, _tmp34_);
+#line 340 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp35_ = profile;
-#line 246 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 340 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp36_ = cd_profile_get_filename (_tmp35_);
-#line 246 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 340 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp37_ = _tmp36_;
-#line 246 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 340 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp38_ = g_strdup (_tmp37_);
-#line 246 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 340 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
result = _tmp38_;
-#line 246 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 340 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (profile);
-#line 246 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 340 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (device);
-#line 246 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 340 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (client);
-#line 246 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 340 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (device_id);
-#line 246 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 340 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return result;
-#line 1648 "simple-scan.c"
+#line 2051 "simple-scan.c"
}
@@ -1662,50 +2065,50 @@ static void simple_scan_scanner_page_info_cb (SimpleScan* self, Scanner* scanner
const gchar* _tmp9_ = NULL;
gchar* _tmp10_ = NULL;
gchar* _tmp11_ = NULL;
-#line 252 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 346 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (self != NULL);
-#line 252 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 346 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (scanner != NULL);
-#line 252 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 346 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (info != NULL);
-#line 254 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp0_ = info;
-#line 254 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp1_ = _tmp0_->width;
-#line 254 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp2_ = info;
-#line 254 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp3_ = _tmp2_->height;
-#line 254 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp4_ = info;
-#line 254 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp5_ = _tmp4_->depth;
-#line 254 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- g_debug ("simple-scan.vala:254: Page is %d pixels wide, %d pixels high, %d bits " \
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ g_debug ("simple-scan.vala:348: Page is %d pixels wide, %d pixels high, %d bits " \
"per pixel", _tmp1_, _tmp3_, _tmp5_);
-#line 258 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 352 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp6_ = simple_scan_append_page (self);
-#line 258 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 352 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
page = _tmp6_;
-#line 259 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 353 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp7_ = info;
-#line 259 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 353 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
page_set_page_info (page, _tmp7_);
-#line 264 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 358 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp8_ = info;
-#line 264 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 358 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp9_ = _tmp8_->device;
-#line 264 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 358 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp10_ = simple_scan_get_profile_for_device (self, _tmp9_);
-#line 264 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 358 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp11_ = _tmp10_;
-#line 264 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 358 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
page_set_color_profile (page, _tmp11_);
-#line 264 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 358 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (_tmp11_);
-#line 252 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 346 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_page_unref0 (page);
-#line 1708 "simple-scan.c"
+#line 2111 "simple-scan.c"
}
@@ -1717,31 +2120,31 @@ static void simple_scan_scanner_line_cb (SimpleScan* self, Scanner* scanner, Sca
guint _tmp3_ = 0U;
Page* _tmp4_ = NULL;
ScanLine* _tmp5_ = NULL;
-#line 267 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 361 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (self != NULL);
-#line 267 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 361 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (scanner != NULL);
-#line 267 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 361 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (line != NULL);
-#line 269 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 363 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp0_ = self->priv->book;
-#line 269 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 363 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp1_ = self->priv->book;
-#line 269 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 363 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp2_ = book_get_n_pages (_tmp1_);
-#line 269 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 363 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp3_ = _tmp2_;
-#line 269 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 363 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp4_ = book_get_page (_tmp0_, ((gint) _tmp3_) - 1);
-#line 269 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 363 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
page = _tmp4_;
-#line 270 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 364 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp5_ = line;
-#line 270 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 364 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
page_parse_scan_line (page, _tmp5_);
-#line 267 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 361 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_page_unref0 (page);
-#line 1744 "simple-scan.c"
+#line 2147 "simple-scan.c"
}
@@ -1752,27 +2155,27 @@ static void simple_scan_scanner_page_done_cb (SimpleScan* self, Scanner* scanner
guint _tmp2_ = 0U;
guint _tmp3_ = 0U;
Page* _tmp4_ = NULL;
-#line 273 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 367 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (self != NULL);
-#line 273 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 367 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (scanner != NULL);
-#line 275 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 369 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp0_ = self->priv->book;
-#line 275 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 369 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp1_ = self->priv->book;
-#line 275 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 369 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp2_ = book_get_n_pages (_tmp1_);
-#line 275 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 369 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp3_ = _tmp2_;
-#line 275 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 369 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp4_ = book_get_page (_tmp0_, ((gint) _tmp3_) - 1);
-#line 275 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 369 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
page = _tmp4_;
-#line 276 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 370 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
page_finish (page);
-#line 273 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 367 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_page_unref0 (page);
-#line 1775 "simple-scan.c"
+#line 2178 "simple-scan.c"
}
@@ -1786,86 +2189,86 @@ static void simple_scan_remove_empty_page (SimpleScan* self) {
Page* _tmp5_ = NULL;
gboolean _tmp6_ = FALSE;
gboolean _tmp7_ = FALSE;
-#line 279 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 373 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (self != NULL);
-#line 281 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 375 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp0_ = self->priv->book;
-#line 281 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 375 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp1_ = self->priv->book;
-#line 281 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 375 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp2_ = book_get_n_pages (_tmp1_);
-#line 281 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 375 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp3_ = _tmp2_;
-#line 281 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 375 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp4_ = book_get_page (_tmp0_, ((gint) _tmp3_) - 1);
-#line 281 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 375 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
page = _tmp4_;
-#line 282 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 376 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp5_ = page;
-#line 282 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 376 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp6_ = page_get_has_data (_tmp5_);
-#line 282 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 376 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp7_ = _tmp6_;
-#line 282 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 376 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (!_tmp7_) {
-#line 1811 "simple-scan.c"
+#line 2214 "simple-scan.c"
Book* _tmp8_ = NULL;
Page* _tmp9_ = NULL;
-#line 283 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 377 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp8_ = self->priv->book;
-#line 283 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 377 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp9_ = page;
-#line 283 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 377 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
book_delete_page (_tmp8_, _tmp9_);
-#line 1820 "simple-scan.c"
+#line 2223 "simple-scan.c"
}
-#line 279 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 373 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_page_unref0 (page);
-#line 1824 "simple-scan.c"
+#line 2227 "simple-scan.c"
}
static void simple_scan_scanner_document_done_cb (SimpleScan* self, Scanner* scanner) {
-#line 286 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 380 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (self != NULL);
-#line 286 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 380 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (scanner != NULL);
-#line 288 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 382 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
simple_scan_remove_empty_page (self);
-#line 1835 "simple-scan.c"
+#line 2238 "simple-scan.c"
}
static void simple_scan_scanner_failed_cb (SimpleScan* self, Scanner* scanner, gint error_code, const gchar* error_string) {
gint _tmp0_ = 0;
-#line 291 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 385 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (self != NULL);
-#line 291 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 385 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (scanner != NULL);
-#line 291 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 385 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (error_string != NULL);
-#line 293 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 387 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
simple_scan_remove_empty_page (self);
-#line 294 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 388 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp0_ = error_code;
-#line 294 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 388 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_tmp0_ != ((gint) SANE_STATUS_CANCELLED)) {
-#line 1853 "simple-scan.c"
+#line 2256 "simple-scan.c"
UserInterface* _tmp1_ = NULL;
const gchar* _tmp2_ = NULL;
const gchar* _tmp3_ = NULL;
gboolean _tmp4_ = FALSE;
-#line 296 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 390 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp1_ = self->priv->ui;
-#line 296 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 390 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp2_ = _ ("Failed to scan");
-#line 296 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 390 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp3_ = error_string;
-#line 296 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 390 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp4_ = self->priv->have_devices;
-#line 296 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 390 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
user_interface_show_error (_tmp1_, _tmp2_, _tmp3_, _tmp4_);
-#line 1868 "simple-scan.c"
+#line 2271 "simple-scan.c"
}
}
@@ -1874,19 +2277,19 @@ static void simple_scan_scanner_scanning_changed_cb (SimpleScan* self, Scanner*
UserInterface* _tmp0_ = NULL;
Scanner* _tmp1_ = NULL;
gboolean _tmp2_ = FALSE;
-#line 303 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 397 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (self != NULL);
-#line 303 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 397 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (scanner != NULL);
-#line 305 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 399 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp0_ = self->priv->ui;
-#line 305 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 399 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp1_ = scanner;
-#line 305 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 399 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp2_ = scanner_is_scanning (_tmp1_);
-#line 305 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 399 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
user_interface_set_scanning (_tmp0_, _tmp2_);
-#line 1889 "simple-scan.c"
+#line 2292 "simple-scan.c"
}
@@ -1896,123 +2299,63 @@ static void simple_scan_scan_cb (SimpleScan* self, UserInterface* ui, const gcha
const gchar* _tmp2_ = NULL;
Scanner* _tmp3_ = NULL;
gboolean _tmp4_ = FALSE;
- gchar* filename_prefix = NULL;
- const gchar* _tmp7_ = NULL;
- gchar* _tmp8_ = NULL;
- gchar* extension = NULL;
+ Scanner* _tmp7_ = NULL;
+ const gchar* _tmp8_ = NULL;
ScanOptions* _tmp9_ = NULL;
- ScanMode _tmp10_ = 0;
- gchar* filename = NULL;
- const gchar* _tmp13_ = NULL;
- const gchar* _tmp14_ = NULL;
- gchar* _tmp15_ = NULL;
- UserInterface* _tmp16_ = NULL;
- Scanner* _tmp17_ = NULL;
- const gchar* _tmp18_ = NULL;
- ScanOptions* _tmp19_ = NULL;
-#line 308 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 402 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (self != NULL);
-#line 308 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 402 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (ui != NULL);
-#line 308 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 402 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (options != NULL);
-#line 310 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 404 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp0_ = options;
-#line 310 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 404 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp1_ = _tmp0_->dpi;
-#line 310 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 404 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp2_ = device;
-#line 310 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- g_debug ("simple-scan.vala:310: Requesting scan at %d dpi from device '%s'", _tmp1_, _tmp2_);
-#line 312 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 404 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ g_debug ("simple-scan.vala:404: Requesting scan at %d dpi from device '%s'", _tmp1_, _tmp2_);
+#line 406 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp3_ = self->priv->scanner;
-#line 312 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 406 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp4_ = scanner_is_scanning (_tmp3_);
-#line 312 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 406 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (!_tmp4_) {
-#line 1933 "simple-scan.c"
+#line 2325 "simple-scan.c"
Page* _tmp5_ = NULL;
Page* _tmp6_ = NULL;
-#line 313 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 407 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp5_ = simple_scan_append_page (self);
-#line 313 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 407 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp6_ = _tmp5_;
-#line 313 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 407 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_page_unref0 (_tmp6_);
-#line 1942 "simple-scan.c"
+#line 2334 "simple-scan.c"
}
-#line 316 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp7_ = _ ("Scanned Document");
-#line 316 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp8_ = g_strdup (_tmp7_);
-#line 316 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- filename_prefix = _tmp8_;
-#line 318 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 409 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp7_ = self->priv->scanner;
+#line 409 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ _tmp8_ = device;
+#line 409 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp9_ = options;
-#line 318 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp10_ = _tmp9_->scan_mode;
-#line 318 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- if (_tmp10_ == SCAN_MODE_COLOR) {
-#line 1956 "simple-scan.c"
- gchar* _tmp11_ = NULL;
-#line 319 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp11_ = g_strdup ("jpg");
-#line 319 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _g_free0 (extension);
-#line 319 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- extension = _tmp11_;
-#line 1964 "simple-scan.c"
- } else {
- gchar* _tmp12_ = NULL;
-#line 321 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp12_ = g_strdup ("pdf");
-#line 321 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _g_free0 (extension);
-#line 321 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- extension = _tmp12_;
-#line 1973 "simple-scan.c"
- }
-#line 322 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp13_ = filename_prefix;
-#line 322 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp14_ = extension;
-#line 322 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp15_ = g_strdup_printf ("%s.%s", _tmp13_, _tmp14_);
-#line 322 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- filename = _tmp15_;
-#line 323 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp16_ = ui;
-#line 323 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- user_interface_set_default_file_name (_tmp16_, filename);
-#line 324 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp17_ = self->priv->scanner;
-#line 324 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp18_ = device;
-#line 324 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp19_ = options;
-#line 324 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- scanner_scan (_tmp17_, _tmp18_, _tmp19_);
-#line 308 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _g_free0 (filename);
-#line 308 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _g_free0 (extension);
-#line 308 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _g_free0 (filename_prefix);
-#line 2001 "simple-scan.c"
+#line 409 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ scanner_scan (_tmp7_, _tmp8_, _tmp9_);
+#line 2344 "simple-scan.c"
}
static void simple_scan_cancel_cb (SimpleScan* self, UserInterface* ui) {
Scanner* _tmp0_ = NULL;
-#line 327 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 412 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (self != NULL);
-#line 327 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 412 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (ui != NULL);
-#line 329 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 414 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp0_ = self->priv->scanner;
-#line 329 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 414 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
scanner_cancel (_tmp0_);
-#line 2015 "simple-scan.c"
+#line 2358 "simple-scan.c"
}
@@ -2024,98 +2367,98 @@ static gchar* simple_scan_get_temporary_filename (SimpleScan* self, const gchar*
gchar* _tmp2_ = NULL;
gchar* path = NULL;
GError * _inner_error_ = NULL;
-#line 332 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 417 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_val_if_fail (self != NULL, NULL);
-#line 332 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 417 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_val_if_fail (prefix != NULL, NULL);
-#line 332 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 417 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_val_if_fail (extension != NULL, NULL);
-#line 337 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 422 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp0_ = prefix;
-#line 337 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 422 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp1_ = extension;
-#line 337 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 422 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp2_ = g_strdup_printf ("%sXXXXXX.%s", _tmp0_, _tmp1_);
-#line 337 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 422 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
filename = _tmp2_;
-#line 2041 "simple-scan.c"
+#line 2384 "simple-scan.c"
{
gint fd = 0;
const gchar* _tmp3_ = NULL;
gchar* _tmp4_ = NULL;
gint _tmp5_ = 0;
gint _tmp6_ = 0;
-#line 341 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 426 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp3_ = filename;
-#line 341 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 426 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp5_ = g_file_open_tmp (_tmp3_, &_tmp4_, &_inner_error_);
-#line 341 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 426 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (path);
-#line 341 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 426 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
path = _tmp4_;
-#line 341 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 426 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
fd = _tmp5_;
-#line 341 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 426 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2060 "simple-scan.c"
- goto __catch8_g_error;
+#line 2403 "simple-scan.c"
+ goto __catch9_g_error;
}
-#line 342 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 427 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp6_ = fd;
-#line 342 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 427 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
close (_tmp6_);
-#line 2067 "simple-scan.c"
+#line 2410 "simple-scan.c"
}
- goto __finally8;
- __catch8_g_error:
+ goto __finally9;
+ __catch9_g_error:
{
GError* e = NULL;
GError* _tmp7_ = NULL;
const gchar* _tmp8_ = NULL;
-#line 339 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 424 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
e = _inner_error_;
-#line 339 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 424 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_inner_error_ = NULL;
-#line 346 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 431 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp7_ = e;
-#line 346 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 431 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp8_ = _tmp7_->message;
-#line 346 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- g_warning ("simple-scan.vala:346: Error saving email attachment: %s", _tmp8_);
-#line 347 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 431 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ g_warning ("simple-scan.vala:431: Error saving email attachment: %s", _tmp8_);
+#line 432 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
result = NULL;
-#line 347 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 432 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_error_free0 (e);
-#line 347 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 432 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (path);
-#line 347 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 432 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (filename);
-#line 347 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 432 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return result;
-#line 2095 "simple-scan.c"
+#line 2438 "simple-scan.c"
}
- __finally8:
-#line 339 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ __finally9:
+#line 424 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 339 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 424 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (path);
-#line 339 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 424 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (filename);
-#line 339 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 424 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
-#line 339 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 424 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_clear_error (&_inner_error_);
-#line 339 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 424 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return NULL;
-#line 2110 "simple-scan.c"
+#line 2453 "simple-scan.c"
}
-#line 350 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 435 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
result = path;
-#line 350 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 435 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (filename);
-#line 350 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 435 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return result;
-#line 2118 "simple-scan.c"
+#line 2461 "simple-scan.c"
}
@@ -2126,35 +2469,35 @@ static void simple_scan_email_cb (SimpleScan* self, UserInterface* ui, const gch
const gchar* _tmp1_ = NULL;
const gchar* _tmp42_ = NULL;
GError * _inner_error_ = NULL;
-#line 353 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 438 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (self != NULL);
-#line 353 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 438 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (ui != NULL);
-#line 353 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 438 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (profile != NULL);
-#line 355 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 440 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
saved = FALSE;
-#line 356 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 441 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp0_ = g_strdup ("xdg-email");
-#line 356 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 441 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
command_line = _tmp0_;
-#line 359 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 444 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp1_ = profile;
-#line 359 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 444 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (g_strcmp0 (_tmp1_, "text") == 0) {
-#line 2145 "simple-scan.c"
+#line 2488 "simple-scan.c"
gchar* path = NULL;
gchar* _tmp2_ = NULL;
const gchar* _tmp3_ = NULL;
-#line 362 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 447 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp2_ = simple_scan_get_temporary_filename (self, "scan", "pdf");
-#line 362 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 447 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
path = _tmp2_;
-#line 363 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 448 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp3_ = path;
-#line 363 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 448 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_tmp3_ != NULL) {
-#line 2157 "simple-scan.c"
+#line 2500 "simple-scan.c"
GFile* file = NULL;
const gchar* _tmp4_ = NULL;
GFile* _tmp5_ = NULL;
@@ -2164,121 +2507,121 @@ static void simple_scan_email_cb (SimpleScan* self, UserInterface* ui, const gch
gchar* _tmp15_ = NULL;
gchar* _tmp16_ = NULL;
gchar* _tmp17_ = NULL;
-#line 365 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 450 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp4_ = path;
-#line 365 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 450 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp5_ = g_file_new_for_path (_tmp4_);
-#line 365 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 450 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
file = _tmp5_;
-#line 366 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 451 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp6_ = ui;
-#line 366 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 451 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
user_interface_show_progress_dialog (_tmp6_);
-#line 2177 "simple-scan.c"
+#line 2520 "simple-scan.c"
{
Book* _tmp7_ = NULL;
gint _tmp8_ = 0;
GFile* _tmp9_ = NULL;
-#line 369 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 454 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp7_ = self->priv->book;
-#line 369 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 454 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp8_ = quality;
-#line 369 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 454 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp9_ = file;
-#line 369 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 454 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
book_save (_tmp7_, "pdf", _tmp8_, _tmp9_, &_inner_error_);
-#line 369 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 454 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2192 "simple-scan.c"
- goto __catch9_g_error;
+#line 2535 "simple-scan.c"
+ goto __catch10_g_error;
}
}
- goto __finally9;
- __catch9_g_error:
+ goto __finally10;
+ __catch10_g_error:
{
GError* e = NULL;
UserInterface* _tmp10_ = NULL;
GError* _tmp11_ = NULL;
const gchar* _tmp12_ = NULL;
-#line 367 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 452 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
e = _inner_error_;
-#line 367 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 452 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_inner_error_ = NULL;
-#line 373 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 458 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp10_ = ui;
-#line 373 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 458 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
user_interface_hide_progress_dialog (_tmp10_);
-#line 374 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 459 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp11_ = e;
-#line 374 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 459 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp12_ = _tmp11_->message;
-#line 374 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- g_warning ("simple-scan.vala:374: Unable to save email file: %s", _tmp12_);
-#line 375 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 459 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ g_warning ("simple-scan.vala:459: Unable to save email file: %s", _tmp12_);
+#line 460 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_error_free0 (e);
-#line 375 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 460 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (file);
-#line 375 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 460 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (path);
-#line 375 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 460 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (command_line);
-#line 375 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 460 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return;
-#line 2227 "simple-scan.c"
+#line 2570 "simple-scan.c"
}
- __finally9:
-#line 367 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ __finally10:
+#line 452 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 367 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 452 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (file);
-#line 367 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 452 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (path);
-#line 367 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 452 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (command_line);
-#line 367 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 452 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
-#line 367 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 452 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_clear_error (&_inner_error_);
-#line 367 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 452 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return;
-#line 2244 "simple-scan.c"
+#line 2587 "simple-scan.c"
}
-#line 377 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 462 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp13_ = command_line;
-#line 377 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 462 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp14_ = path;
-#line 377 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 462 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp15_ = g_strdup_printf (" --attach %s", _tmp14_);
-#line 377 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 462 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp16_ = _tmp15_;
-#line 377 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 462 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp17_ = g_strconcat (_tmp13_, _tmp16_, NULL);
-#line 377 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 462 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (command_line);
-#line 377 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 462 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
command_line = _tmp17_;
-#line 377 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 462 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (_tmp16_);
-#line 363 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 448 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (file);
-#line 2264 "simple-scan.c"
+#line 2607 "simple-scan.c"
}
-#line 359 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 444 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (path);
-#line 2268 "simple-scan.c"
+#line 2611 "simple-scan.c"
} else {
{
gint i = 0;
-#line 382 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 467 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
i = 0;
-#line 2274 "simple-scan.c"
+#line 2617 "simple-scan.c"
{
gboolean _tmp18_ = FALSE;
-#line 382 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 467 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp18_ = TRUE;
-#line 382 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 467 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
while (TRUE) {
-#line 2281 "simple-scan.c"
+#line 2624 "simple-scan.c"
gint _tmp20_ = 0;
Book* _tmp21_ = NULL;
guint _tmp22_ = 0U;
@@ -2295,55 +2638,55 @@ static void simple_scan_email_cb (SimpleScan* self, UserInterface* ui, const gch
gchar* _tmp39_ = NULL;
gchar* _tmp40_ = NULL;
gboolean _tmp41_ = FALSE;
-#line 382 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 467 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (!_tmp18_) {
-#line 2300 "simple-scan.c"
+#line 2643 "simple-scan.c"
gint _tmp19_ = 0;
-#line 382 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 467 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp19_ = i;
-#line 382 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 467 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
i = _tmp19_ + 1;
-#line 2306 "simple-scan.c"
+#line 2649 "simple-scan.c"
}
-#line 382 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 467 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp18_ = FALSE;
-#line 382 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 467 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp20_ = i;
-#line 382 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 467 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp21_ = self->priv->book;
-#line 382 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 467 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp22_ = book_get_n_pages (_tmp21_);
-#line 382 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 467 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp23_ = _tmp22_;
-#line 382 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 467 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (!(((guint) _tmp20_) < _tmp23_)) {
-#line 382 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 467 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
break;
-#line 2322 "simple-scan.c"
+#line 2665 "simple-scan.c"
}
-#line 384 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 469 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp24_ = simple_scan_get_temporary_filename (self, "scan", "jpg");
-#line 384 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 469 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
path = _tmp24_;
-#line 385 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 470 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp25_ = path;
-#line 385 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 470 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_tmp25_ == NULL) {
-#line 387 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 472 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
saved = FALSE;
-#line 388 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 473 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (path);
-#line 388 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 473 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
break;
-#line 2338 "simple-scan.c"
+#line 2681 "simple-scan.c"
}
-#line 391 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 476 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp26_ = path;
-#line 391 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 476 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp27_ = g_file_new_for_path (_tmp26_);
-#line 391 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 476 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
file = _tmp27_;
-#line 2346 "simple-scan.c"
+#line 2689 "simple-scan.c"
{
Book* _tmp28_ = NULL;
gint _tmp29_ = 0;
@@ -2351,163 +2694,163 @@ static void simple_scan_email_cb (SimpleScan* self, UserInterface* ui, const gch
Page* _tmp31_ = NULL;
gint _tmp32_ = 0;
GFile* _tmp33_ = NULL;
-#line 394 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 479 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp28_ = self->priv->book;
-#line 394 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 479 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp29_ = i;
-#line 394 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 479 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp30_ = book_get_page (_tmp28_, _tmp29_);
-#line 394 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 479 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp31_ = _tmp30_;
-#line 394 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 479 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp32_ = quality;
-#line 394 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 479 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp33_ = file;
-#line 394 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 479 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
page_save (_tmp31_, "jpeg", _tmp32_, _tmp33_, &_inner_error_);
-#line 394 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 479 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_page_unref0 (_tmp31_);
-#line 394 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 479 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2372 "simple-scan.c"
- goto __catch10_g_error;
+#line 2715 "simple-scan.c"
+ goto __catch11_g_error;
}
}
- goto __finally10;
- __catch10_g_error:
+ goto __finally11;
+ __catch11_g_error:
{
GError* e = NULL;
GError* _tmp34_ = NULL;
const gchar* _tmp35_ = NULL;
-#line 392 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 477 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
e = _inner_error_;
-#line 392 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 477 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_inner_error_ = NULL;
-#line 398 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 483 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp34_ = e;
-#line 398 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 483 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp35_ = _tmp34_->message;
-#line 398 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- g_warning ("simple-scan.vala:398: Unable to save email file: %s", _tmp35_);
-#line 399 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 483 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ g_warning ("simple-scan.vala:483: Unable to save email file: %s", _tmp35_);
+#line 484 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_error_free0 (e);
-#line 399 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 484 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (file);
-#line 399 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 484 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (path);
-#line 399 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 484 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (command_line);
-#line 399 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 484 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return;
-#line 2402 "simple-scan.c"
+#line 2745 "simple-scan.c"
}
- __finally10:
-#line 392 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ __finally11:
+#line 477 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 392 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 477 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (file);
-#line 392 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 477 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (path);
-#line 392 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 477 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (command_line);
-#line 392 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 477 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
-#line 392 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 477 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_clear_error (&_inner_error_);
-#line 392 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 477 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return;
-#line 2419 "simple-scan.c"
+#line 2762 "simple-scan.c"
}
-#line 401 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 486 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp36_ = command_line;
-#line 401 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 486 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp37_ = path;
-#line 401 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 486 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp38_ = g_strdup_printf (" --attach %s", _tmp37_);
-#line 401 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 486 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp39_ = _tmp38_;
-#line 401 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 486 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp40_ = g_strconcat (_tmp36_, _tmp39_, NULL);
-#line 401 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 486 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (command_line);
-#line 401 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 486 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
command_line = _tmp40_;
-#line 401 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 486 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (_tmp39_);
-#line 403 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 488 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp41_ = saved;
-#line 403 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 488 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (!_tmp41_) {
-#line 404 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 489 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (file);
-#line 404 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 489 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (path);
-#line 404 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 489 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
break;
-#line 2447 "simple-scan.c"
+#line 2790 "simple-scan.c"
}
-#line 382 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 467 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (file);
-#line 382 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 467 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (path);
-#line 2453 "simple-scan.c"
+#line 2796 "simple-scan.c"
}
}
}
}
-#line 408 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 493 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp42_ = command_line;
-#line 408 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- g_debug ("simple-scan.vala:408: Launching email client: %s", _tmp42_);
-#line 2462 "simple-scan.c"
+#line 493 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ g_debug ("simple-scan.vala:493: Launching email client: %s", _tmp42_);
+#line 2805 "simple-scan.c"
{
const gchar* _tmp43_ = NULL;
-#line 411 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 496 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp43_ = command_line;
-#line 411 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 496 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_spawn_command_line_async (_tmp43_, &_inner_error_);
-#line 411 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 496 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2471 "simple-scan.c"
- goto __catch11_g_error;
+#line 2814 "simple-scan.c"
+ goto __catch12_g_error;
}
}
- goto __finally11;
- __catch11_g_error:
+ goto __finally12;
+ __catch12_g_error:
{
GError* e = NULL;
GError* _tmp44_ = NULL;
const gchar* _tmp45_ = NULL;
-#line 409 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 494 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
e = _inner_error_;
-#line 409 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 494 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_inner_error_ = NULL;
-#line 415 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 500 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp44_ = e;
-#line 415 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 500 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp45_ = _tmp44_->message;
-#line 415 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- g_warning ("simple-scan.vala:415: Unable to start email: %s", _tmp45_);
-#line 409 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 500 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ g_warning ("simple-scan.vala:500: Unable to start email: %s", _tmp45_);
+#line 494 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_error_free0 (e);
-#line 2493 "simple-scan.c"
+#line 2836 "simple-scan.c"
}
- __finally11:
-#line 409 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ __finally12:
+#line 494 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 409 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 494 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (command_line);
-#line 409 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 494 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
-#line 409 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 494 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_clear_error (&_inner_error_);
-#line 409 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 494 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return;
-#line 2506 "simple-scan.c"
+#line 2849 "simple-scan.c"
}
-#line 353 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 438 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (command_line);
-#line 2510 "simple-scan.c"
+#line 2853 "simple-scan.c"
}
@@ -2520,173 +2863,155 @@ static void simple_scan_log_cb (const gchar* log_domain, GLogLevelFlags log_leve
const gchar* _tmp11_ = NULL;
const gchar* _tmp12_ = NULL;
gboolean _tmp13_ = FALSE;
-#line 419 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 504 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (message != NULL);
-#line 423 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 508 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp0_ = log_level;
-#line 423 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 508 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
switch (_tmp0_ & G_LOG_LEVEL_MASK) {
-#line 423 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 508 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
case G_LOG_LEVEL_ERROR:
-#line 2531 "simple-scan.c"
+#line 2874 "simple-scan.c"
{
gchar* _tmp1_ = NULL;
-#line 426 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 511 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp1_ = g_strdup ("ERROR:");
-#line 426 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 511 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (prefix);
-#line 426 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 511 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
prefix = _tmp1_;
-#line 427 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 512 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
break;
-#line 2542 "simple-scan.c"
+#line 2885 "simple-scan.c"
}
-#line 423 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 508 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
case G_LOG_LEVEL_CRITICAL:
-#line 2546 "simple-scan.c"
+#line 2889 "simple-scan.c"
{
gchar* _tmp2_ = NULL;
-#line 429 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 514 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp2_ = g_strdup ("CRITICAL:");
-#line 429 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 514 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (prefix);
-#line 429 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 514 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
prefix = _tmp2_;
-#line 430 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 515 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
break;
-#line 2557 "simple-scan.c"
+#line 2900 "simple-scan.c"
}
-#line 423 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 508 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
case G_LOG_LEVEL_WARNING:
-#line 2561 "simple-scan.c"
+#line 2904 "simple-scan.c"
{
gchar* _tmp3_ = NULL;
-#line 432 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 517 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp3_ = g_strdup ("WARNING:");
-#line 432 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 517 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (prefix);
-#line 432 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 517 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
prefix = _tmp3_;
-#line 433 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 518 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
break;
-#line 2572 "simple-scan.c"
+#line 2915 "simple-scan.c"
}
-#line 423 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 508 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
case G_LOG_LEVEL_MESSAGE:
-#line 2576 "simple-scan.c"
+#line 2919 "simple-scan.c"
{
gchar* _tmp4_ = NULL;
-#line 435 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 520 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp4_ = g_strdup ("MESSAGE:");
-#line 435 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 520 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (prefix);
-#line 435 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 520 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
prefix = _tmp4_;
-#line 436 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 521 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
break;
-#line 2587 "simple-scan.c"
+#line 2930 "simple-scan.c"
}
-#line 423 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 508 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
case G_LOG_LEVEL_INFO:
-#line 2591 "simple-scan.c"
+#line 2934 "simple-scan.c"
{
gchar* _tmp5_ = NULL;
-#line 438 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 523 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp5_ = g_strdup ("INFO:");
-#line 438 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 523 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (prefix);
-#line 438 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 523 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
prefix = _tmp5_;
-#line 439 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 524 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
break;
-#line 2602 "simple-scan.c"
+#line 2945 "simple-scan.c"
}
-#line 423 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 508 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
case G_LOG_LEVEL_DEBUG:
-#line 2606 "simple-scan.c"
+#line 2949 "simple-scan.c"
{
gchar* _tmp6_ = NULL;
-#line 441 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 526 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp6_ = g_strdup ("DEBUG:");
-#line 441 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 526 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (prefix);
-#line 441 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 526 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
prefix = _tmp6_;
-#line 442 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
break;
-#line 2617 "simple-scan.c"
+#line 2960 "simple-scan.c"
}
default:
{
gchar* _tmp7_ = NULL;
-#line 444 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 529 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp7_ = g_strdup ("LOG:");
-#line 444 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 529 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (prefix);
-#line 444 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 529 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
prefix = _tmp7_;
-#line 445 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 530 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
break;
-#line 2630 "simple-scan.c"
+#line 2973 "simple-scan.c"
}
}
-#line 448 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 533 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp8_ = simple_scan_log_file;
-#line 448 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 533 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp9_ = simple_scan_log_timer;
-#line 448 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 533 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp10_ = g_timer_elapsed (_tmp9_, NULL);
-#line 448 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 533 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp11_ = prefix;
-#line 448 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 533 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp12_ = message;
-#line 448 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 533 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
fprintf (_tmp8_, "[%+.2fs] %s %s\n", _tmp10_, _tmp11_, _tmp12_);
-#line 449 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 534 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp13_ = simple_scan_debug_enabled;
-#line 449 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 534 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_tmp13_) {
-#line 2649 "simple-scan.c"
+#line 2992 "simple-scan.c"
FILE* _tmp14_ = NULL;
GTimer* _tmp15_ = NULL;
gdouble _tmp16_ = 0.0;
const gchar* _tmp17_ = NULL;
const gchar* _tmp18_ = NULL;
-#line 450 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 535 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp14_ = stderr;
-#line 450 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 535 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp15_ = simple_scan_log_timer;
-#line 450 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 535 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp16_ = g_timer_elapsed (_tmp15_, NULL);
-#line 450 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 535 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp17_ = prefix;
-#line 450 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 535 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp18_ = message;
-#line 450 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 535 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
fprintf (_tmp14_, "[%+.2fs] %s %s\n", _tmp16_, _tmp17_, _tmp18_);
-#line 2667 "simple-scan.c"
+#line 3010 "simple-scan.c"
}
-#line 419 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 504 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (prefix);
-#line 2671 "simple-scan.c"
-}
-
-
-static void simple_scan_on_uevent (SimpleScan* self, GUdevClient* client, const gchar* action, GUdevDevice* device) {
- Scanner* _tmp0_ = NULL;
-#line 453 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- g_return_if_fail (self != NULL);
-#line 453 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- g_return_if_fail (client != NULL);
-#line 453 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- g_return_if_fail (action != NULL);
-#line 453 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- g_return_if_fail (device != NULL);
-#line 455 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _tmp0_ = self->priv->scanner;
-#line 455 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- scanner_redetect (_tmp0_);
-#line 2689 "simple-scan.c"
+#line 3014 "simple-scan.c"
}
@@ -2709,7 +3034,7 @@ static glong string_strnlen (gchar* str, glong maxlen) {
_tmp3_ = end;
#line 1198 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
if (_tmp3_ == NULL) {
-#line 2712 "simple-scan.c"
+#line 3037 "simple-scan.c"
glong _tmp4_ = 0L;
#line 1199 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
_tmp4_ = maxlen;
@@ -2717,7 +3042,7 @@ static glong string_strnlen (gchar* str, glong maxlen) {
result = _tmp4_;
#line 1199 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
return result;
-#line 2720 "simple-scan.c"
+#line 3045 "simple-scan.c"
} else {
gchar* _tmp5_ = NULL;
gchar* _tmp6_ = NULL;
@@ -2729,7 +3054,7 @@ static glong string_strnlen (gchar* str, glong maxlen) {
result = (glong) (_tmp5_ - _tmp6_);
#line 1201 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
return result;
-#line 2732 "simple-scan.c"
+#line 3057 "simple-scan.c"
}
}
@@ -2753,21 +3078,21 @@ static gchar* string_substring (const gchar* self, glong offset, glong len) {
_tmp1_ = offset;
#line 1210 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
if (_tmp1_ >= ((glong) 0)) {
-#line 2756 "simple-scan.c"
+#line 3081 "simple-scan.c"
glong _tmp2_ = 0L;
#line 1210 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
_tmp2_ = len;
#line 1210 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
_tmp0_ = _tmp2_ >= ((glong) 0);
-#line 2762 "simple-scan.c"
+#line 3087 "simple-scan.c"
} else {
#line 1210 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
_tmp0_ = FALSE;
-#line 2766 "simple-scan.c"
+#line 3091 "simple-scan.c"
}
#line 1210 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
if (_tmp0_) {
-#line 2770 "simple-scan.c"
+#line 3095 "simple-scan.c"
glong _tmp3_ = 0L;
glong _tmp4_ = 0L;
glong _tmp5_ = 0L;
@@ -2779,7 +3104,7 @@ static gchar* string_substring (const gchar* self, glong offset, glong len) {
_tmp5_ = string_strnlen ((gchar*) self, _tmp3_ + _tmp4_);
#line 1212 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
string_length = _tmp5_;
-#line 2782 "simple-scan.c"
+#line 3107 "simple-scan.c"
} else {
gint _tmp6_ = 0;
gint _tmp7_ = 0;
@@ -2789,13 +3114,13 @@ static gchar* string_substring (const gchar* self, glong offset, glong len) {
_tmp7_ = _tmp6_;
#line 1214 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
string_length = (glong) _tmp7_;
-#line 2792 "simple-scan.c"
+#line 3117 "simple-scan.c"
}
#line 1217 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
_tmp8_ = offset;
#line 1217 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
if (_tmp8_ < ((glong) 0)) {
-#line 2798 "simple-scan.c"
+#line 3123 "simple-scan.c"
glong _tmp9_ = 0L;
glong _tmp10_ = 0L;
glong _tmp11_ = 0L;
@@ -2809,7 +3134,7 @@ static gchar* string_substring (const gchar* self, glong offset, glong len) {
_tmp11_ = offset;
#line 1219 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
g_return_val_if_fail (_tmp11_ >= ((glong) 0), NULL);
-#line 2812 "simple-scan.c"
+#line 3137 "simple-scan.c"
} else {
glong _tmp12_ = 0L;
glong _tmp13_ = 0L;
@@ -2819,13 +3144,13 @@ static gchar* string_substring (const gchar* self, glong offset, glong len) {
_tmp13_ = string_length;
#line 1221 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
g_return_val_if_fail (_tmp12_ <= _tmp13_, NULL);
-#line 2822 "simple-scan.c"
+#line 3147 "simple-scan.c"
}
#line 1223 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
_tmp14_ = len;
#line 1223 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
if (_tmp14_ < ((glong) 0)) {
-#line 2828 "simple-scan.c"
+#line 3153 "simple-scan.c"
glong _tmp15_ = 0L;
glong _tmp16_ = 0L;
#line 1224 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
@@ -2834,7 +3159,7 @@ static gchar* string_substring (const gchar* self, glong offset, glong len) {
_tmp16_ = offset;
#line 1224 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
len = _tmp15_ - _tmp16_;
-#line 2837 "simple-scan.c"
+#line 3162 "simple-scan.c"
}
#line 1226 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
_tmp17_ = offset;
@@ -2854,7 +3179,7 @@ static gchar* string_substring (const gchar* self, glong offset, glong len) {
result = _tmp22_;
#line 1227 "/usr/share/vala-0.28/vapi/glib-2.0.vapi"
return result;
-#line 2857 "simple-scan.c"
+#line 3182 "simple-scan.c"
}
@@ -2886,63 +3211,63 @@ static void simple_scan_fix_pdf (const gchar* filename, GError** error) {
gint _tmp106_ = 0;
gboolean _tmp107_ = FALSE;
GError * _inner_error_ = NULL;
-#line 458 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 538 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_return_if_fail (filename != NULL);
-#line 461 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 541 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp0_ = filename;
-#line 461 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 541 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_file_get_contents (_tmp0_, (gchar**) (&_tmp1_), &_tmp2_, &_inner_error_);
-#line 461 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 541 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
data = (g_free (data), NULL);
-#line 461 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 541 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
data = _tmp1_;
-#line 461 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 541 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
data_length1 = _tmp2_;
-#line 461 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 541 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_data_size_ = data_length1;
-#line 461 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 541 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 461 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 541 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_propagate_error (error, _inner_error_);
-#line 461 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 541 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
data = (g_free (data), NULL);
-#line 461 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 541 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return;
-#line 2911 "simple-scan.c"
+#line 3236 "simple-scan.c"
}
-#line 463 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 543 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp3_ = filename;
-#line 463 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 543 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp4_ = g_strconcat (_tmp3_, ".fixed", NULL);
-#line 463 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 543 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp5_ = _tmp4_;
-#line 463 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 543 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp6_ = g_fopen (_tmp5_, "w");
-#line 463 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 543 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp7_ = _tmp6_;
-#line 463 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 543 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (_tmp5_);
-#line 463 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 543 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
fixed_file = _tmp7_;
-#line 465 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 545 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
offset = 0;
-#line 466 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 546 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
line_number = 0;
-#line 467 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 547 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
xref_offset = 0;
-#line 468 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 548 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
xref_line = -1;
-#line 469 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 549 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
startxref_line = -1;
-#line 470 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 550 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
fixed_size = -1;
-#line 471 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 551 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp8_ = g_string_new ("");
-#line 471 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 551 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
line = _tmp8_;
-#line 472 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 552 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
while (TRUE) {
-#line 2945 "simple-scan.c"
+#line 3270 "simple-scan.c"
gint _tmp9_ = 0;
gint end_offset = 0;
gint _tmp10_ = 0;
@@ -2955,25 +3280,25 @@ static void simple_scan_fix_pdf (const gchar* filename, GError** error) {
gint _tmp26_ = 0;
gint _tmp100_ = 0;
gint _tmp101_ = 0;
-#line 472 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 552 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp9_ = offset;
-#line 472 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 552 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (!(_tmp9_ < data_length1)) {
-#line 472 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 552 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
break;
-#line 2964 "simple-scan.c"
+#line 3289 "simple-scan.c"
}
-#line 474 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 554 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp10_ = offset;
-#line 474 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 554 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
end_offset = _tmp10_;
-#line 475 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 555 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp11_ = line;
-#line 475 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 555 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_string_assign (_tmp11_, "");
-#line 476 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 556 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
while (TRUE) {
-#line 2976 "simple-scan.c"
+#line 3301 "simple-scan.c"
gint _tmp12_ = 0;
guint8 c = 0U;
gint _tmp13_ = 0;
@@ -2982,148 +3307,148 @@ static void simple_scan_fix_pdf (const gchar* filename, GError** error) {
guint8 _tmp16_ = 0U;
gint _tmp17_ = 0;
guint8 _tmp18_ = 0U;
-#line 476 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 556 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp12_ = end_offset;
-#line 476 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 556 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (!(_tmp12_ < data_length1)) {
-#line 476 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 556 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
break;
-#line 2991 "simple-scan.c"
+#line 3316 "simple-scan.c"
}
-#line 478 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 558 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp13_ = end_offset;
-#line 478 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 558 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp14_ = data[_tmp13_];
-#line 478 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 558 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
c = _tmp14_;
-#line 479 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 559 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp15_ = line;
-#line 479 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 559 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp16_ = c;
-#line 479 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 559 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_string_append_c (_tmp15_, (gchar) _tmp16_);
-#line 480 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 560 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp17_ = end_offset;
-#line 480 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 560 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
end_offset = _tmp17_ + 1;
-#line 481 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 561 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp18_ = c;
-#line 481 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 561 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_tmp18_ == ((guint8) '\n')) {
-#line 482 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 562 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
break;
-#line 3015 "simple-scan.c"
+#line 3340 "simple-scan.c"
}
}
-#line 485 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 565 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp19_ = line;
-#line 485 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 565 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp20_ = _tmp19_->str;
-#line 485 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 565 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (g_strcmp0 (_tmp20_, "startxref\n") == 0) {
-#line 3024 "simple-scan.c"
+#line 3349 "simple-scan.c"
gint _tmp21_ = 0;
-#line 486 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 566 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp21_ = line_number;
-#line 486 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 566 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
startxref_line = _tmp21_;
-#line 3030 "simple-scan.c"
+#line 3355 "simple-scan.c"
}
-#line 488 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 568 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp22_ = line;
-#line 488 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 568 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp23_ = _tmp22_->str;
-#line 488 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 568 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (g_strcmp0 (_tmp23_, "xref\n") == 0) {
-#line 3038 "simple-scan.c"
+#line 3363 "simple-scan.c"
gint _tmp24_ = 0;
-#line 489 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 569 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp24_ = line_number;
-#line 489 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 569 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
xref_line = _tmp24_;
-#line 3044 "simple-scan.c"
+#line 3369 "simple-scan.c"
}
-#line 492 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 572 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp26_ = line_number;
-#line 492 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 572 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_tmp26_ < 2) {
-#line 3050 "simple-scan.c"
+#line 3375 "simple-scan.c"
GString* _tmp27_ = NULL;
const gchar* _tmp28_ = NULL;
gboolean _tmp29_ = FALSE;
-#line 492 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 572 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp27_ = line;
-#line 492 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 572 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp28_ = _tmp27_->str;
-#line 492 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 572 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp29_ = g_str_has_prefix (_tmp28_, "%%");
-#line 492 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 572 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp25_ = _tmp29_;
-#line 3062 "simple-scan.c"
+#line 3387 "simple-scan.c"
} else {
-#line 492 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 572 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp25_ = FALSE;
-#line 3066 "simple-scan.c"
+#line 3391 "simple-scan.c"
}
-#line 492 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 572 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_tmp25_) {
-#line 3070 "simple-scan.c"
+#line 3395 "simple-scan.c"
gint _tmp30_ = 0;
FILE* _tmp31_ = NULL;
GString* _tmp32_ = NULL;
const gchar* _tmp33_ = NULL;
gchar* _tmp34_ = NULL;
gchar* _tmp35_ = NULL;
-#line 494 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 574 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp30_ = xref_offset;
-#line 494 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 574 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
xref_offset = _tmp30_ - 1;
-#line 495 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 575 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp31_ = fixed_file;
-#line 495 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 575 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp32_ = line;
-#line 495 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 575 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp33_ = _tmp32_->str;
-#line 495 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 575 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp34_ = string_substring (_tmp33_, (glong) 1, (glong) (-1));
-#line 495 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 575 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp35_ = _tmp34_;
-#line 495 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 575 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
fprintf (_tmp31_, "%s", _tmp35_);
-#line 495 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 575 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (_tmp35_);
-#line 3095 "simple-scan.c"
+#line 3420 "simple-scan.c"
} else {
gboolean _tmp36_ = FALSE;
gint _tmp37_ = 0;
gint _tmp38_ = 0;
-#line 499 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 579 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp37_ = line_number;
-#line 499 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 579 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp38_ = xref_line;
-#line 499 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 579 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_tmp37_ == (_tmp38_ + 1)) {
-#line 3106 "simple-scan.c"
+#line 3431 "simple-scan.c"
GString* _tmp39_ = NULL;
const gchar* _tmp40_ = NULL;
gboolean _tmp41_ = FALSE;
-#line 499 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 579 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp39_ = line;
-#line 499 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 579 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp40_ = _tmp39_->str;
-#line 499 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 579 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp41_ = g_str_has_prefix (_tmp40_, "1 ");
-#line 499 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 579 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp36_ = _tmp41_;
-#line 3118 "simple-scan.c"
+#line 3443 "simple-scan.c"
} else {
-#line 499 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 579 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp36_ = FALSE;
-#line 3122 "simple-scan.c"
+#line 3447 "simple-scan.c"
}
-#line 499 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 579 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_tmp36_) {
-#line 3126 "simple-scan.c"
+#line 3451 "simple-scan.c"
GString* _tmp42_ = NULL;
const gchar* _tmp43_ = NULL;
gchar* _tmp44_ = NULL;
@@ -3132,105 +3457,105 @@ static void simple_scan_fix_pdf (const gchar* filename, GError** error) {
FILE* _tmp47_ = NULL;
gint _tmp48_ = 0;
FILE* _tmp49_ = NULL;
-#line 501 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 581 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp42_ = line;
-#line 501 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 581 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp43_ = _tmp42_->str;
-#line 501 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 581 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp44_ = string_substring (_tmp43_, (glong) 2, (glong) (-1));
-#line 501 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 581 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp45_ = _tmp44_;
-#line 501 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 581 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp46_ = atoi (_tmp45_);
-#line 501 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 581 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
fixed_size = _tmp46_ + 1;
-#line 501 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 581 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (_tmp45_);
-#line 502 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 582 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp47_ = fixed_file;
-#line 502 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 582 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp48_ = fixed_size;
-#line 502 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 582 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
fprintf (_tmp47_, "0 %d\n", _tmp48_);
-#line 503 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 583 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp49_ = fixed_file;
-#line 503 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 583 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
fprintf (_tmp49_, "0000000000 65535 f \n");
-#line 3159 "simple-scan.c"
+#line 3484 "simple-scan.c"
} else {
gboolean _tmp50_ = FALSE;
gint _tmp51_ = 0;
gint _tmp52_ = 0;
-#line 507 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 587 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp51_ = line_number;
-#line 507 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 587 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp52_ = xref_line;
-#line 507 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 587 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_tmp51_ > _tmp52_) {
-#line 3170 "simple-scan.c"
+#line 3495 "simple-scan.c"
GString* _tmp53_ = NULL;
const gchar* _tmp54_ = NULL;
gboolean _tmp55_ = FALSE;
-#line 507 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 587 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp53_ = line;
-#line 507 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 587 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp54_ = _tmp53_->str;
-#line 507 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 587 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp55_ = g_str_has_suffix (_tmp54_, " 0000 n\n");
-#line 507 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 587 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp50_ = _tmp55_;
-#line 3182 "simple-scan.c"
+#line 3507 "simple-scan.c"
} else {
-#line 507 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 587 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp50_ = FALSE;
-#line 3186 "simple-scan.c"
+#line 3511 "simple-scan.c"
}
-#line 507 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 587 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_tmp50_) {
-#line 3190 "simple-scan.c"
+#line 3515 "simple-scan.c"
FILE* _tmp56_ = NULL;
GString* _tmp57_ = NULL;
const gchar* _tmp58_ = NULL;
gint _tmp59_ = 0;
gint _tmp60_ = 0;
-#line 508 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 588 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp56_ = fixed_file;
-#line 508 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 588 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp57_ = line;
-#line 508 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 588 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp58_ = _tmp57_->str;
-#line 508 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 588 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp59_ = atoi (_tmp58_);
-#line 508 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 588 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp60_ = xref_offset;
-#line 508 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 588 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
fprintf (_tmp56_, "%010d 00000 n \n", _tmp59_ + _tmp60_);
-#line 3208 "simple-scan.c"
+#line 3533 "simple-scan.c"
} else {
gboolean _tmp61_ = FALSE;
gint _tmp62_ = 0;
-#line 511 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 591 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp62_ = startxref_line;
-#line 511 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 591 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_tmp62_ > 0) {
-#line 3216 "simple-scan.c"
+#line 3541 "simple-scan.c"
gint _tmp63_ = 0;
gint _tmp64_ = 0;
-#line 511 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 591 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp63_ = line_number;
-#line 511 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 591 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp64_ = startxref_line;
-#line 511 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 591 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp61_ = _tmp63_ == (_tmp64_ + 1);
-#line 3225 "simple-scan.c"
+#line 3550 "simple-scan.c"
} else {
-#line 511 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 591 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp61_ = FALSE;
-#line 3229 "simple-scan.c"
+#line 3554 "simple-scan.c"
}
-#line 511 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 591 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_tmp61_) {
-#line 3233 "simple-scan.c"
+#line 3558 "simple-scan.c"
FILE* _tmp65_ = NULL;
GString* _tmp66_ = NULL;
const gchar* _tmp67_ = NULL;
@@ -3238,173 +3563,173 @@ static void simple_scan_fix_pdf (const gchar* filename, GError** error) {
gint _tmp69_ = 0;
gchar* _tmp70_ = NULL;
gchar* _tmp71_ = NULL;
-#line 512 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 592 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp65_ = fixed_file;
-#line 512 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 592 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp66_ = line;
-#line 512 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 592 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp67_ = _tmp66_->str;
-#line 512 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 592 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp68_ = atoi (_tmp67_);
-#line 512 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 592 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp69_ = xref_offset;
-#line 512 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 592 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp70_ = g_strdup_printf ("%d\n", _tmp68_ + _tmp69_);
-#line 512 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 592 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp71_ = _tmp70_;
-#line 512 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 592 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
fprintf (_tmp65_, "%s", _tmp71_);
-#line 512 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 592 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (_tmp71_);
-#line 3259 "simple-scan.c"
+#line 3584 "simple-scan.c"
} else {
gboolean _tmp72_ = FALSE;
gint _tmp73_ = 0;
-#line 514 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 594 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp73_ = fixed_size;
-#line 514 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 594 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_tmp73_ > 0) {
-#line 3267 "simple-scan.c"
+#line 3592 "simple-scan.c"
GString* _tmp74_ = NULL;
const gchar* _tmp75_ = NULL;
gboolean _tmp76_ = FALSE;
-#line 514 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 594 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp74_ = line;
-#line 514 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 594 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp75_ = _tmp74_->str;
-#line 514 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 594 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp76_ = g_str_has_prefix (_tmp75_, "/Size ");
-#line 514 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 594 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp72_ = _tmp76_;
-#line 3279 "simple-scan.c"
+#line 3604 "simple-scan.c"
} else {
-#line 514 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 594 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp72_ = FALSE;
-#line 3283 "simple-scan.c"
+#line 3608 "simple-scan.c"
}
-#line 514 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 594 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_tmp72_) {
-#line 3287 "simple-scan.c"
+#line 3612 "simple-scan.c"
FILE* _tmp77_ = NULL;
gint _tmp78_ = 0;
gchar* _tmp79_ = NULL;
gchar* _tmp80_ = NULL;
-#line 515 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 595 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp77_ = fixed_file;
-#line 515 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 595 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp78_ = fixed_size;
-#line 515 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 595 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp79_ = g_strdup_printf ("/Size %d\n", _tmp78_);
-#line 515 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 595 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp80_ = _tmp79_;
-#line 515 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 595 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
fprintf (_tmp77_, "%s", _tmp80_);
-#line 515 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 595 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (_tmp80_);
-#line 3304 "simple-scan.c"
+#line 3629 "simple-scan.c"
} else {
gboolean _tmp81_ = FALSE;
gint _tmp82_ = 0;
gint _tmp83_ = 0;
-#line 518 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 598 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp82_ = line_number;
-#line 518 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 598 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp83_ = startxref_line;
-#line 518 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 598 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_tmp82_ == (_tmp83_ + 2)) {
-#line 3315 "simple-scan.c"
+#line 3640 "simple-scan.c"
GString* _tmp84_ = NULL;
const gchar* _tmp85_ = NULL;
gboolean _tmp86_ = FALSE;
-#line 518 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 598 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp84_ = line;
-#line 518 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 598 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp85_ = _tmp84_->str;
-#line 518 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 598 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp86_ = g_str_has_prefix (_tmp85_, "%%%%");
-#line 518 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 598 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp81_ = _tmp86_;
-#line 3327 "simple-scan.c"
+#line 3652 "simple-scan.c"
} else {
-#line 518 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 598 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp81_ = FALSE;
-#line 3331 "simple-scan.c"
+#line 3656 "simple-scan.c"
}
-#line 518 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 598 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_tmp81_) {
-#line 3335 "simple-scan.c"
+#line 3660 "simple-scan.c"
FILE* _tmp87_ = NULL;
GString* _tmp88_ = NULL;
const gchar* _tmp89_ = NULL;
gchar* _tmp90_ = NULL;
gchar* _tmp91_ = NULL;
-#line 519 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 599 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp87_ = fixed_file;
-#line 519 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 599 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp88_ = line;
-#line 519 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 599 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp89_ = _tmp88_->str;
-#line 519 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 599 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp90_ = string_substring (_tmp89_, (glong) 2, (glong) (-1));
-#line 519 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 599 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp91_ = _tmp90_;
-#line 519 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 599 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
fprintf (_tmp87_, "%s", _tmp91_);
-#line 519 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 599 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (_tmp91_);
-#line 3355 "simple-scan.c"
+#line 3680 "simple-scan.c"
} else {
{
gint i = 0;
gint _tmp92_ = 0;
-#line 522 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 602 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp92_ = offset;
-#line 522 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 602 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
i = _tmp92_;
-#line 3364 "simple-scan.c"
+#line 3689 "simple-scan.c"
{
gboolean _tmp93_ = FALSE;
-#line 522 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 602 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp93_ = TRUE;
-#line 522 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 602 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
while (TRUE) {
-#line 3371 "simple-scan.c"
+#line 3696 "simple-scan.c"
gint _tmp95_ = 0;
gint _tmp96_ = 0;
FILE* _tmp97_ = NULL;
gint _tmp98_ = 0;
guint8 _tmp99_ = 0U;
-#line 522 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 602 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (!_tmp93_) {
-#line 3379 "simple-scan.c"
+#line 3704 "simple-scan.c"
gint _tmp94_ = 0;
-#line 522 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 602 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp94_ = i;
-#line 522 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 602 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
i = _tmp94_ + 1;
-#line 3385 "simple-scan.c"
+#line 3710 "simple-scan.c"
}
-#line 522 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 602 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp93_ = FALSE;
-#line 522 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 602 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp95_ = i;
-#line 522 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 602 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp96_ = end_offset;
-#line 522 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 602 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (!(_tmp95_ < _tmp96_)) {
-#line 522 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 602 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
break;
-#line 3397 "simple-scan.c"
+#line 3722 "simple-scan.c"
}
-#line 523 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 603 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp97_ = fixed_file;
-#line 523 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 603 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp98_ = i;
-#line 523 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 603 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp99_ = data[_tmp98_];
-#line 523 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 603 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
fputc ((gchar) _tmp99_, _tmp97_);
-#line 3407 "simple-scan.c"
+#line 3732 "simple-scan.c"
}
}
}
@@ -3414,65 +3739,65 @@ static void simple_scan_fix_pdf (const gchar* filename, GError** error) {
}
}
}
-#line 525 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 605 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp100_ = line_number;
-#line 525 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 605 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
line_number = _tmp100_ + 1;
-#line 526 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 606 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp101_ = end_offset;
-#line 526 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 606 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
offset = _tmp101_;
-#line 3425 "simple-scan.c"
+#line 3750 "simple-scan.c"
}
-#line 529 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 609 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp102_ = filename;
-#line 529 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 609 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp103_ = filename;
-#line 529 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 609 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp104_ = g_strconcat (_tmp103_, "~", NULL);
-#line 529 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 609 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp105_ = _tmp104_;
-#line 529 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 609 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp106_ = g_rename (_tmp102_, _tmp105_);
-#line 529 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 609 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp107_ = _tmp106_ >= 0;
-#line 529 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 609 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (_tmp105_);
-#line 529 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 609 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_tmp107_) {
-#line 3443 "simple-scan.c"
+#line 3768 "simple-scan.c"
const gchar* _tmp108_ = NULL;
gchar* _tmp109_ = NULL;
gchar* _tmp110_ = NULL;
const gchar* _tmp111_ = NULL;
-#line 530 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 610 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp108_ = filename;
-#line 530 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 610 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp109_ = g_strconcat (_tmp108_, ".fixed", NULL);
-#line 530 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 610 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp110_ = _tmp109_;
-#line 530 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 610 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp111_ = filename;
-#line 530 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 610 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_rename (_tmp110_, _tmp111_);
-#line 530 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 610 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (_tmp110_);
-#line 3460 "simple-scan.c"
+#line 3785 "simple-scan.c"
}
-#line 458 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 538 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_string_free0 (line);
-#line 458 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 538 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_fclose0 (fixed_file);
-#line 458 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 538 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
data = (g_free (data), NULL);
-#line 3468 "simple-scan.c"
+#line 3793 "simple-scan.c"
}
static void _simple_scan_log_cb_glog_func (const gchar* log_domain, GLogLevelFlags log_levels, const gchar* message, gpointer self) {
-#line 592 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 672 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
simple_scan_log_cb (log_domain, log_levels, message);
-#line 3475 "simple-scan.c"
+#line 3800 "simple-scan.c"
}
@@ -3505,45 +3830,45 @@ gint simple_scan_main (gchar** args, int args_length1) {
SimpleScan* _tmp49_ = NULL;
gint _tmp50_ = 0;
GError * _inner_error_ = NULL;
-#line 535 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 615 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
setlocale (LC_ALL, "");
-#line 536 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 616 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
bindtextdomain (GETTEXT_PACKAGE, LOCALE_DIR);
-#line 537 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 617 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
-#line 538 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 618 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
textdomain (GETTEXT_PACKAGE);
-#line 540 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 620 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp0_ = _ ("[DEVICE...] - Scanning utility");
-#line 540 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 620 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp1_ = g_option_context_new (_tmp0_);
-#line 540 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 620 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
c = _tmp1_;
-#line 542 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 622 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp2_ = c;
-#line 542 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 622 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_option_context_add_main_entries (_tmp2_, SIMPLE_SCAN_options, GETTEXT_PACKAGE);
-#line 543 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 623 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp3_ = c;
-#line 543 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 623 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp4_ = gtk_get_option_group (TRUE);
-#line 543 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 623 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_option_context_add_group (_tmp3_, _tmp4_);
-#line 3532 "simple-scan.c"
+#line 3857 "simple-scan.c"
{
GOptionContext* _tmp5_ = NULL;
-#line 546 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 626 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp5_ = c;
-#line 546 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 626 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_option_context_parse (_tmp5_, &args_length1, &args, &_inner_error_);
-#line 546 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 626 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3541 "simple-scan.c"
- goto __catch12_g_error;
+#line 3866 "simple-scan.c"
+ goto __catch13_g_error;
}
}
- goto __finally12;
- __catch12_g_error:
+ goto __finally13;
+ __catch13_g_error:
{
GError* e = NULL;
FILE* _tmp6_ = NULL;
@@ -3555,103 +3880,103 @@ gint simple_scan_main (gchar** args, int args_length1) {
gint _tmp11__length1 = 0;
const gchar* _tmp12_ = NULL;
FILE* _tmp13_ = NULL;
-#line 544 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 624 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
e = _inner_error_;
-#line 544 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 624 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_inner_error_ = NULL;
-#line 550 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 630 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp6_ = stderr;
-#line 550 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 630 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp7_ = e;
-#line 550 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 630 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp8_ = _tmp7_->message;
-#line 550 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 630 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
fprintf (_tmp6_, "%s\n", _tmp8_);
-#line 551 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 631 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp9_ = stderr;
-#line 551 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 631 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp10_ = _ ("Run '%s --help' to see a full list of available command line options.");
-#line 551 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 631 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp11_ = args;
-#line 551 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 631 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp11__length1 = args_length1;
-#line 551 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 631 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp12_ = _tmp11_[0];
-#line 551 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 631 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
fprintf (_tmp9_, _tmp10_, _tmp12_);
-#line 553 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 633 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp13_ = stderr;
-#line 553 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 633 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
fprintf (_tmp13_, "\n");
-#line 554 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 634 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
result = EXIT_FAILURE;
-#line 554 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 634 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_error_free0 (e);
-#line 554 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 634 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_option_context_free0 (c);
-#line 554 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 634 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return result;
-#line 3594 "simple-scan.c"
+#line 3919 "simple-scan.c"
}
- __finally12:
-#line 544 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ __finally13:
+#line 624 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 544 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 624 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_option_context_free0 (c);
-#line 544 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 624 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
-#line 544 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 624 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_clear_error (&_inner_error_);
-#line 544 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 624 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return 0;
-#line 3607 "simple-scan.c"
+#line 3932 "simple-scan.c"
}
-#line 556 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 636 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp14_ = simple_scan_show_version;
-#line 556 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 636 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_tmp14_) {
-#line 3613 "simple-scan.c"
+#line 3938 "simple-scan.c"
FILE* _tmp15_ = NULL;
-#line 559 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 639 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp15_ = stderr;
-#line 559 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 639 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
fprintf (_tmp15_, "simple-scan %s\n", VERSION);
-#line 560 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 640 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
result = EXIT_SUCCESS;
-#line 560 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 640 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_option_context_free0 (c);
-#line 560 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 640 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return result;
-#line 3625 "simple-scan.c"
+#line 3950 "simple-scan.c"
}
-#line 562 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 642 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp16_ = simple_scan_fix_pdf_filename;
-#line 562 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 642 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_tmp16_ != NULL) {
-#line 3631 "simple-scan.c"
+#line 3956 "simple-scan.c"
{
const gchar* _tmp17_ = NULL;
-#line 566 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 646 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp17_ = simple_scan_fix_pdf_filename;
-#line 566 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 646 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
simple_scan_fix_pdf (_tmp17_, &_inner_error_);
-#line 566 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 646 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3640 "simple-scan.c"
- goto __catch13_g_error;
+#line 3965 "simple-scan.c"
+ goto __catch14_g_error;
}
{
gint i = 0;
-#line 567 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 647 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
i = 1;
-#line 3647 "simple-scan.c"
+#line 3972 "simple-scan.c"
{
gboolean _tmp18_ = FALSE;
-#line 567 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 647 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp18_ = TRUE;
-#line 567 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 647 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
while (TRUE) {
-#line 3654 "simple-scan.c"
+#line 3979 "simple-scan.c"
gint _tmp20_ = 0;
gchar** _tmp21_ = NULL;
gint _tmp21__length1 = 0;
@@ -3659,108 +3984,108 @@ gint simple_scan_main (gchar** args, int args_length1) {
gint _tmp22__length1 = 0;
gint _tmp23_ = 0;
const gchar* _tmp24_ = NULL;
-#line 567 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 647 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (!_tmp18_) {
-#line 3664 "simple-scan.c"
+#line 3989 "simple-scan.c"
gint _tmp19_ = 0;
-#line 567 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 647 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp19_ = i;
-#line 567 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 647 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
i = _tmp19_ + 1;
-#line 3670 "simple-scan.c"
+#line 3995 "simple-scan.c"
}
-#line 567 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 647 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp18_ = FALSE;
-#line 567 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 647 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp20_ = i;
-#line 567 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 647 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp21_ = args;
-#line 567 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 647 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp21__length1 = args_length1;
-#line 567 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 647 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (!(_tmp20_ < _tmp21__length1)) {
-#line 567 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 647 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
break;
-#line 3684 "simple-scan.c"
+#line 4009 "simple-scan.c"
}
-#line 568 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 648 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp22_ = args;
-#line 568 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 648 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp22__length1 = args_length1;
-#line 568 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 648 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp23_ = i;
-#line 568 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 648 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp24_ = _tmp22_[_tmp23_];
-#line 568 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 648 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
simple_scan_fix_pdf (_tmp24_, &_inner_error_);
-#line 568 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 648 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3698 "simple-scan.c"
- goto __catch13_g_error;
+#line 4023 "simple-scan.c"
+ goto __catch14_g_error;
}
}
}
}
}
- goto __finally13;
- __catch13_g_error:
+ goto __finally14;
+ __catch14_g_error:
{
GError* e = NULL;
FILE* _tmp25_ = NULL;
GError* _tmp26_ = NULL;
const gchar* _tmp27_ = NULL;
-#line 564 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 644 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
e = _inner_error_;
-#line 564 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 644 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_inner_error_ = NULL;
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 652 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp25_ = stderr;
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 652 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp26_ = e;
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 652 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp27_ = _tmp26_->message;
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 652 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
fprintf (_tmp25_, "Error fixing PDF file: %s", _tmp27_);
-#line 573 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 653 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
result = EXIT_FAILURE;
-#line 573 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 653 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_error_free0 (e);
-#line 573 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 653 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_option_context_free0 (c);
-#line 573 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 653 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return result;
-#line 3732 "simple-scan.c"
+#line 4057 "simple-scan.c"
}
- __finally13:
-#line 564 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+ __finally14:
+#line 644 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 564 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 644 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_option_context_free0 (c);
-#line 564 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 644 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
-#line 564 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 644 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_clear_error (&_inner_error_);
-#line 564 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 644 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return 0;
-#line 3745 "simple-scan.c"
+#line 4070 "simple-scan.c"
}
-#line 575 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 655 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
result = EXIT_SUCCESS;
-#line 575 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 655 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_option_context_free0 (c);
-#line 575 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 655 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return result;
-#line 3753 "simple-scan.c"
+#line 4078 "simple-scan.c"
}
-#line 578 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 658 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
device = NULL;
-#line 579 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 659 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp28_ = args;
-#line 579 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 659 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp28__length1 = args_length1;
-#line 579 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 659 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
if (_tmp28__length1 > 1) {
-#line 3763 "simple-scan.c"
+#line 4088 "simple-scan.c"
ScanDevice* _tmp29_ = NULL;
ScanDevice* _tmp30_ = NULL;
gchar** _tmp31_ = NULL;
@@ -3772,105 +4097,105 @@ gint simple_scan_main (gchar** args, int args_length1) {
gint _tmp35__length1 = 0;
const gchar* _tmp36_ = NULL;
gchar* _tmp37_ = NULL;
-#line 581 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 661 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp29_ = scan_device_new ();
-#line 581 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 661 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_scan_device_unref0 (device);
-#line 581 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 661 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
device = _tmp29_;
-#line 582 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 662 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp30_ = device;
-#line 582 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 662 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp31_ = args;
-#line 582 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 662 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp31__length1 = args_length1;
-#line 582 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 662 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp32_ = _tmp31_[1];
-#line 582 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 662 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp33_ = g_strdup (_tmp32_);
-#line 582 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 662 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (_tmp30_->name);
-#line 582 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 662 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp30_->name = _tmp33_;
-#line 583 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 663 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp34_ = device;
-#line 583 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 663 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp35_ = args;
-#line 583 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 663 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp35__length1 = args_length1;
-#line 583 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 663 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp36_ = _tmp35_[1];
-#line 583 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 663 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp37_ = g_strdup (_tmp36_);
-#line 583 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 663 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (_tmp34_->label);
-#line 583 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 663 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp34_->label = _tmp37_;
-#line 3809 "simple-scan.c"
+#line 4134 "simple-scan.c"
}
-#line 587 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 667 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp38_ = g_timer_new ();
-#line 587 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 667 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_timer_destroy0 (simple_scan_log_timer);
-#line 587 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 667 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
simple_scan_log_timer = _tmp38_;
-#line 588 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 668 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp39_ = g_get_user_cache_dir ();
-#line 588 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 668 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp40_ = g_build_filename (_tmp39_, "simple-scan", NULL, NULL);
-#line 588 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 668 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
path = _tmp40_;
-#line 589 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 669 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp41_ = path;
-#line 589 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 669 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
g_mkdir_with_parents (_tmp41_, 0700);
-#line 590 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 670 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp42_ = g_get_user_cache_dir ();
-#line 590 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 670 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp43_ = g_build_filename (_tmp42_, "simple-scan", "simple-scan.log", NULL, NULL);
-#line 590 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 670 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (path);
-#line 590 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 670 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
path = _tmp43_;
-#line 591 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp44_ = path;
-#line 591 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp45_ = g_fopen (_tmp44_, "w");
-#line 591 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_fclose0 (simple_scan_log_file);
-#line 591 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
simple_scan_log_file = _tmp45_;
-#line 592 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#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 594 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 674 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp46_ = getpid ();
-#line 594 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- g_debug ("simple-scan.vala:594: Starting Simple Scan %s, PID=%i", VERSION, (gint) _tmp46_);
-#line 596 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#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_);
+#line 676 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
gtk_init (&args_length1, &args);
-#line 598 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 678 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp47_ = device;
-#line 598 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 678 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp48_ = simple_scan_new (_tmp47_);
-#line 598 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 678 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
app = _tmp48_;
-#line 599 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 679 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp49_ = app;
-#line 599 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 679 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_tmp50_ = g_application_run ((GApplication*) _tmp49_, 0, NULL);
-#line 599 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 679 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
result = _tmp50_;
-#line 599 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 679 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (app);
-#line 599 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 679 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_free0 (path);
-#line 599 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 679 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_scan_device_unref0 (device);
-#line 599 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 679 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_option_context_free0 (c);
-#line 599 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 679 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return result;
-#line 3873 "simple-scan.c"
+#line 4198 "simple-scan.c"
}
@@ -3878,9 +4203,9 @@ int main (int argc, char ** argv) {
#if !GLIB_CHECK_VERSION (2,35,0)
g_type_init ();
#endif
-#line 533 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
+#line 613 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
return simple_scan_main (argv, argc);
-#line 3883 "simple-scan.c"
+#line 4208 "simple-scan.c"
}
@@ -3897,7 +4222,7 @@ static void simple_scan_class_init (SimpleScanClass * klass) {
((GApplicationClass *) klass)->shutdown = simple_scan_real_shutdown;
#line 12 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
G_OBJECT_CLASS (klass)->finalize = simple_scan_finalize;
-#line 3900 "simple-scan.c"
+#line 4225 "simple-scan.c"
}
@@ -3908,7 +4233,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 3911 "simple-scan.c"
+#line 4236 "simple-scan.c"
}
@@ -3919,7 +4244,7 @@ static void simple_scan_finalize (GObject* obj) {
#line 32 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_scan_device_unref0 (self->priv->default_device);
#line 34 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
- _g_object_unref0 (self->priv->udev_client);
+ _g_object_unref0 (self->priv->usb_context);
#line 35 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
_g_object_unref0 (self->priv->ui);
#line 36 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala"
@@ -3928,7 +4253,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 3931 "simple-scan.c"
+#line 4256 "simple-scan.c"
}
@@ -3944,22 +4269,4 @@ GType simple_scan_get_type (void) {
}
-static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) {
- if ((array != NULL) && (destroy_func != NULL)) {
- int i;
- for (i = 0; i < array_length; i = i + 1) {
- if (((gpointer*) array)[i] != NULL) {
- destroy_func (((gpointer*) array)[i]);
- }
- }
- }
-}
-
-
-static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) {
- _vala_array_destroy (array, array_length, destroy_func);
- g_free (array);
-}
-
-