diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2014-07-23 18:18:26 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2014-07-23 18:18:26 +0200 |
commit | 44a1fdd0075c7818b65d4191290cdce733687146 (patch) | |
tree | 3254cbee0a3ab39757bb7a1972faa884127f33cd /src/simple-scan.c | |
parent | a366a6feda133b888da763569953636c90017f57 (diff) | |
parent | cce8437bfbdb21e2b97025de6721c78f6d4654fc (diff) |
Merge tag 'upstream/3.13.4.2'
Upstream version 3.13.4.2
Diffstat (limited to 'src/simple-scan.c')
-rw-r--r-- | src/simple-scan.c | 2359 |
1 files changed, 1216 insertions, 1143 deletions
diff --git a/src/simple-scan.c b/src/simple-scan.c index 754893a..144a78d 100644 --- a/src/simple-scan.c +++ b/src/simple-scan.c @@ -1,4 +1,4 @@ -/* simple-scan.c generated by valac 0.22.1, the Vala compiler +/* simple-scan.c generated by valac 0.24.0, the Vala compiler * generated from simple-scan.vala, do not modify */ /* @@ -82,7 +82,6 @@ typedef struct _Book Book; typedef struct _BookClass BookClass; #define _scan_device_unref0(var) ((var == NULL) ? NULL : (var = (scan_device_unref (var), NULL))) #define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _user_interface_unref0(var) ((var == NULL) ? NULL : (var = (user_interface_unref (var), NULL))) #define _scanner_unref0(var) ((var == NULL) ? NULL : (var = (scanner_unref (var), NULL))) #define _book_unref0(var) ((var == NULL) ? NULL : (var = (book_unref (var), NULL))) @@ -139,10 +138,8 @@ typedef struct _ScanOptionsPrivate ScanOptionsPrivate; #define TYPE_SCAN_MODE (scan_mode_get_type ()) #define TYPE_SCAN_TYPE (scan_type_get_type ()) -#define _fclose0(var) ((var == NULL) ? NULL : (var = (fclose (var), NULL))) -#define _g_match_info_unref0(var) ((var == NULL) ? NULL : (var = (g_match_info_unref (var), NULL))) #define _g_string_free0(var) ((var == NULL) ? NULL : (var = (g_string_free (var, TRUE), NULL))) -#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL))) +#define _fclose0(var) ((var == NULL) ? NULL : (var = (fclose (var), NULL))) #define _g_option_context_free0(var) ((var == NULL) ? NULL : (var = (g_option_context_free (var), NULL))) #define _g_timer_destroy0(var) ((var == NULL) ? NULL : (var = (g_timer_destroy (var), NULL))) @@ -255,12 +252,6 @@ void value_set_scan_device (GValue* value, gpointer v_object); void value_take_scan_device (GValue* value, gpointer v_object); gpointer value_get_scan_device (const GValue* value); GType scan_device_get_type (void) G_GNUC_CONST; -gpointer user_interface_ref (gpointer instance); -void user_interface_unref (gpointer instance); -GParamSpec* param_spec_user_interface (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags); -void value_set_user_interface (GValue* value, gpointer v_object); -void value_take_user_interface (GValue* value, gpointer v_object); -gpointer value_get_user_interface (const GValue* value); GType user_interface_get_type (void) G_GNUC_CONST; gpointer scanner_ref (gpointer instance); void scanner_unref (gpointer instance); @@ -411,7 +402,7 @@ const GOptionEntry SIMPLE_SCAN_options[4] = {{"version", 'v', 0, G_OPTION_ARG_NO 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 415 "simple-scan.c" +#line 406 "simple-scan.c" } @@ -431,119 +422,119 @@ 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 435 "simple-scan.c" +#line 426 "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 442 "simple-scan.c" +#line 433 "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 449 "simple-scan.c" +#line 440 "simple-scan.c" } static void _simple_scan_scan_cb_user_interface_start_scan (UserInterface* _sender, const gchar* device, ScanOptions* options, gpointer self) { #line 50 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - simple_scan_scan_cb (self, _sender, device, options); -#line 456 "simple-scan.c" + simple_scan_scan_cb ((SimpleScan*) self, _sender, device, options); +#line 447 "simple-scan.c" } static void _simple_scan_cancel_cb_user_interface_stop_scan (UserInterface* _sender, gpointer self) { #line 51 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - simple_scan_cancel_cb (self, _sender); -#line 463 "simple-scan.c" + simple_scan_cancel_cb ((SimpleScan*) self, _sender); +#line 454 "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 (self, _sender, profile, quality); -#line 470 "simple-scan.c" + simple_scan_email_cb ((SimpleScan*) self, _sender, profile, quality); +#line 461 "simple-scan.c" } static void _simple_scan_update_scan_devices_cb_scanner_update_devices (Scanner* _sender, GList* devices, gpointer self) { #line 55 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - simple_scan_update_scan_devices_cb (self, _sender, devices); -#line 477 "simple-scan.c" + simple_scan_update_scan_devices_cb ((SimpleScan*) self, _sender, devices); +#line 468 "simple-scan.c" } static void _simple_scan_authorize_cb_scanner_request_authorization (Scanner* _sender, const gchar* resource, gpointer self) { #line 56 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - simple_scan_authorize_cb (self, _sender, resource); -#line 484 "simple-scan.c" + simple_scan_authorize_cb ((SimpleScan*) self, _sender, resource); +#line 475 "simple-scan.c" } static void _simple_scan_scanner_new_page_cb_scanner_expect_page (Scanner* _sender, gpointer self) { #line 57 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - simple_scan_scanner_new_page_cb (self, _sender); -#line 491 "simple-scan.c" + simple_scan_scanner_new_page_cb ((SimpleScan*) self, _sender); +#line 482 "simple-scan.c" } static void _simple_scan_scanner_page_info_cb_scanner_got_page_info (Scanner* _sender, ScanPageInfo* info, gpointer self) { #line 58 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - simple_scan_scanner_page_info_cb (self, _sender, info); -#line 498 "simple-scan.c" + simple_scan_scanner_page_info_cb ((SimpleScan*) self, _sender, info); +#line 489 "simple-scan.c" } static void _simple_scan_scanner_line_cb_scanner_got_line (Scanner* _sender, ScanLine* line, gpointer self) { #line 59 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - simple_scan_scanner_line_cb (self, _sender, line); -#line 505 "simple-scan.c" + simple_scan_scanner_line_cb ((SimpleScan*) self, _sender, line); +#line 496 "simple-scan.c" } static void _simple_scan_scanner_page_done_cb_scanner_page_done (Scanner* _sender, gpointer self) { #line 60 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - simple_scan_scanner_page_done_cb (self, _sender); -#line 512 "simple-scan.c" + simple_scan_scanner_page_done_cb ((SimpleScan*) self, _sender); +#line 503 "simple-scan.c" } static void _simple_scan_scanner_document_done_cb_scanner_document_done (Scanner* _sender, gpointer self) { #line 61 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - simple_scan_scanner_document_done_cb (self, _sender); -#line 519 "simple-scan.c" + simple_scan_scanner_document_done_cb ((SimpleScan*) self, _sender); +#line 510 "simple-scan.c" } static void _simple_scan_scanner_failed_cb_scanner_scan_failed (Scanner* _sender, gint error_code, const gchar* error_string, gpointer self) { #line 62 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - simple_scan_scanner_failed_cb (self, _sender, error_code, error_string); -#line 526 "simple-scan.c" + simple_scan_scanner_failed_cb ((SimpleScan*) self, _sender, error_code, error_string); +#line 517 "simple-scan.c" } static void _simple_scan_scanner_scanning_changed_cb_scanner_scanning_changed (Scanner* _sender, gpointer self) { #line 63 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - simple_scan_scanner_scanning_changed_cb (self, _sender); -#line 533 "simple-scan.c" + simple_scan_scanner_scanning_changed_cb ((SimpleScan*) self, _sender); +#line 524 "simple-scan.c" } static void _simple_scan_on_uevent_g_udev_client_uevent (GUdevClient* _sender, const gchar* action, GUdevDevice* device, gpointer self) { #line 67 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - simple_scan_on_uevent (self, _sender, action, device); -#line 540 "simple-scan.c" + simple_scan_on_uevent ((SimpleScan*) self, _sender, action, device); +#line 531 "simple-scan.c" } static void _scan_device_unref0_ (gpointer var) { #line 69 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" (var == NULL) ? NULL : (var = (scan_device_unref (var), NULL)); -#line 547 "simple-scan.c" +#line 538 "simple-scan.c" } @@ -552,7 +543,7 @@ static void _g_list_free__scan_device_unref0_ (GList* self) { g_list_foreach (self, (GFunc) _scan_device_unref0_, NULL); #line 69 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" g_list_free (self); -#line 556 "simple-scan.c" +#line 547 "simple-scan.c" } @@ -593,7 +584,9 @@ static void simple_scan_real_startup (GApplication* base) { #line 48 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _tmp0_ = user_interface_new (); #line 48 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _user_interface_unref0 (self->priv->ui); + g_object_ref_sink (_tmp0_); +#line 48 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _g_object_unref0 (self->priv->ui); #line 48 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" self->priv->ui = _tmp0_; #line 49 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" @@ -694,7 +687,7 @@ static void simple_scan_real_startup (GApplication* base) { _tmp23_ = self->priv->default_device; #line 69 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" if (_tmp23_ != NULL) { -#line 698 "simple-scan.c" +#line 691 "simple-scan.c" GList* device_list = NULL; ScanDevice* _tmp24_ = NULL; ScanDevice* _tmp25_ = NULL; @@ -727,11 +720,11 @@ static void simple_scan_real_startup (GApplication* base) { user_interface_set_selected_device (_tmp28_, _tmp30_); #line 69 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" __g_list_free__scan_device_unref0_0 (device_list); -#line 731 "simple-scan.c" +#line 724 "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 735 "simple-scan.c" +#line 728 "simple-scan.c" } @@ -751,7 +744,7 @@ static void simple_scan_real_activate (GApplication* base) { _tmp1_ = self->priv->scanner; #line 83 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" scanner_start (_tmp1_); -#line 755 "simple-scan.c" +#line 748 "simple-scan.c" } @@ -767,7 +760,7 @@ static void simple_scan_real_shutdown (GApplication* base) { #line 89 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" self->priv->book = NULL; #line 90 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _user_interface_unref0 (self->priv->ui); + _g_object_unref0 (self->priv->ui); #line 90 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" self->priv->ui = NULL; #line 91 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" @@ -778,7 +771,7 @@ static void simple_scan_real_shutdown (GApplication* base) { _tmp0_ = self->priv->scanner; #line 92 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" scanner_free (_tmp0_); -#line 782 "simple-scan.c" +#line 775 "simple-scan.c" } @@ -805,7 +798,7 @@ static void simple_scan_update_scan_devices_cb (SimpleScan* self, Scanner* scann _tmp2_ = self->priv->default_device; #line 100 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" if (_tmp2_ != NULL) { -#line 809 "simple-scan.c" +#line 802 "simple-scan.c" gboolean default_in_list = FALSE; GList* _tmp3_ = NULL; gboolean _tmp8_ = FALSE; @@ -813,7 +806,7 @@ static void simple_scan_update_scan_devices_cb (SimpleScan* self, Scanner* scann default_in_list = FALSE; #line 103 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _tmp3_ = devices_copy; -#line 817 "simple-scan.c" +#line 810 "simple-scan.c" { GList* device_collection = NULL; GList* device_it = NULL; @@ -821,11 +814,11 @@ static void simple_scan_update_scan_devices_cb (SimpleScan* self, Scanner* scann device_collection = _tmp3_; #line 103 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" for (device_it = device_collection; device_it != NULL; device_it = device_it->next) { -#line 825 "simple-scan.c" +#line 818 "simple-scan.c" ScanDevice* device = NULL; #line 103 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" device = (ScanDevice*) device_it->data; -#line 829 "simple-scan.c" +#line 822 "simple-scan.c" { ScanDevice* _tmp4_ = NULL; const gchar* _tmp5_ = NULL; @@ -845,7 +838,7 @@ static void simple_scan_update_scan_devices_cb (SimpleScan* self, Scanner* scann default_in_list = TRUE; #line 108 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" break; -#line 849 "simple-scan.c" +#line 842 "simple-scan.c" } } } @@ -854,13 +847,13 @@ static void simple_scan_update_scan_devices_cb (SimpleScan* self, Scanner* scann _tmp8_ = default_in_list; #line 112 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" if (!_tmp8_) { -#line 858 "simple-scan.c" +#line 851 "simple-scan.c" ScanDevice* _tmp9_ = NULL; #line 113 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _tmp9_ = self->priv->default_device; #line 113 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" devices_copy = g_list_prepend (devices_copy, _tmp9_); -#line 864 "simple-scan.c" +#line 857 "simple-scan.c" } } #line 116 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" @@ -877,7 +870,7 @@ static void simple_scan_update_scan_devices_cb (SimpleScan* self, Scanner* scann user_interface_set_scan_devices (_tmp12_, _tmp13_); #line 95 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _g_list_free0 (devices_copy); -#line 881 "simple-scan.c" +#line 874 "simple-scan.c" } @@ -917,7 +910,7 @@ static void simple_scan_authorize_cb (SimpleScan* self, Scanner* scanner, const _g_free0 (password); #line 120 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _g_free0 (username); -#line 921 "simple-scan.c" +#line 914 "simple-scan.c" } @@ -928,7 +921,6 @@ static Page* simple_scan_append_page (SimpleScan* self) { Page* _tmp1_ = NULL; gboolean _tmp2_ = FALSE; Page* _tmp3_ = NULL; - gboolean _tmp7_ = FALSE; ScanDirection scan_direction = 0; gboolean do_crop = FALSE; gchar* named_crop = NULL; @@ -939,18 +931,18 @@ static Page* simple_scan_append_page (SimpleScan* self) { gint cy = 0; gint cw = 0; gint ch = 0; - Page* _tmp11_ = NULL; + Page* _tmp10_ = NULL; + gint _tmp43_ = 0; gint _tmp44_ = 0; gint _tmp45_ = 0; - gint _tmp46_ = 0; - ScanDirection _tmp47_ = 0; - Page* _tmp48_ = NULL; - Book* _tmp49_ = NULL; - Page* _tmp50_ = NULL; - gboolean _tmp51_ = FALSE; - UserInterface* _tmp61_ = NULL; + ScanDirection _tmp46_ = 0; + Page* _tmp47_ = NULL; + Book* _tmp48_ = NULL; + Page* _tmp49_ = NULL; + gboolean _tmp50_ = FALSE; + UserInterface* _tmp60_ = NULL; + Page* _tmp61_ = NULL; Page* _tmp62_ = NULL; - Page* _tmp63_ = NULL; #line 127 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" g_return_val_if_fail (self != NULL, NULL); #line 130 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" @@ -963,7 +955,7 @@ static Page* simple_scan_append_page (SimpleScan* self) { _tmp3_ = page; #line 131 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" if (_tmp3_ != NULL) { -#line 967 "simple-scan.c" +#line 959 "simple-scan.c" Page* _tmp4_ = NULL; gboolean _tmp5_ = FALSE; gboolean _tmp6_ = FALSE; @@ -975,35 +967,33 @@ static Page* simple_scan_append_page (SimpleScan* self) { _tmp6_ = _tmp5_; #line 131 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _tmp2_ = !_tmp6_; -#line 979 "simple-scan.c" +#line 971 "simple-scan.c" } else { #line 131 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _tmp2_ = FALSE; -#line 983 "simple-scan.c" +#line 975 "simple-scan.c" } #line 131 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp7_ = _tmp2_; -#line 131 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - if (_tmp7_) { -#line 989 "simple-scan.c" - UserInterface* _tmp8_ = NULL; + if (_tmp2_) { +#line 979 "simple-scan.c" + UserInterface* _tmp7_ = NULL; + Page* _tmp8_ = NULL; Page* _tmp9_ = NULL; - Page* _tmp10_ = NULL; #line 133 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp8_ = self->priv->ui; + _tmp7_ = self->priv->ui; #line 133 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp9_ = page; + _tmp8_ = page; #line 133 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - user_interface_set_selected_page (_tmp8_, _tmp9_); + user_interface_set_selected_page (_tmp7_, _tmp8_); #line 134 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp10_ = page; + _tmp9_ = page; #line 134 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - page_start (_tmp10_); + page_start (_tmp9_); #line 135 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" result = page; #line 135 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" return result; -#line 1007 "simple-scan.c" +#line 997 "simple-scan.c" } #line 139 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" scan_direction = SCAN_DIRECTION_TOP_TO_BOTTOM; @@ -1026,218 +1016,218 @@ static Page* simple_scan_append_page (SimpleScan* self) { #line 142 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" ch = 0; #line 143 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp11_ = page; + _tmp10_ = page; #line 143 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - if (_tmp11_ != NULL) { -#line 1033 "simple-scan.c" - Page* _tmp12_ = NULL; + if (_tmp10_ != NULL) { +#line 1023 "simple-scan.c" + Page* _tmp11_ = NULL; + ScanDirection _tmp12_ = 0; ScanDirection _tmp13_ = 0; - ScanDirection _tmp14_ = 0; - Page* _tmp15_ = NULL; + Page* _tmp14_ = NULL; + gint _tmp15_ = 0; gint _tmp16_ = 0; - gint _tmp17_ = 0; - Page* _tmp18_ = NULL; + Page* _tmp17_ = NULL; + gint _tmp18_ = 0; gint _tmp19_ = 0; - gint _tmp20_ = 0; - Page* _tmp21_ = NULL; + Page* _tmp20_ = NULL; + gint _tmp21_ = 0; gint _tmp22_ = 0; - gint _tmp23_ = 0; - Page* _tmp24_ = NULL; + Page* _tmp23_ = NULL; + gboolean _tmp24_ = FALSE; gboolean _tmp25_ = FALSE; gboolean _tmp26_ = FALSE; - gboolean _tmp27_ = FALSE; #line 145 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp12_ = page; + _tmp11_ = page; #line 145 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp13_ = page_get_scan_direction (_tmp12_); + _tmp12_ = page_get_scan_direction (_tmp11_); #line 145 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp14_ = _tmp13_; + _tmp13_ = _tmp12_; #line 145 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - scan_direction = _tmp14_; + scan_direction = _tmp13_; #line 146 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp15_ = page; + _tmp14_ = page; #line 146 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp16_ = page_get_width (_tmp15_); + _tmp15_ = page_get_width (_tmp14_); #line 146 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp17_ = _tmp16_; + _tmp16_ = _tmp15_; #line 146 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - width = _tmp17_; + width = _tmp16_; #line 147 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp18_ = page; + _tmp17_ = page; #line 147 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp19_ = page_get_height (_tmp18_); + _tmp18_ = page_get_height (_tmp17_); #line 147 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp20_ = _tmp19_; + _tmp19_ = _tmp18_; #line 147 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - height = _tmp20_; + height = _tmp19_; #line 148 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp21_ = page; + _tmp20_ = page; #line 148 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp22_ = page_get_dpi (_tmp21_); + _tmp21_ = page_get_dpi (_tmp20_); #line 148 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp23_ = _tmp22_; + _tmp22_ = _tmp21_; #line 148 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - dpi = _tmp23_; + dpi = _tmp22_; #line 150 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp24_ = page; + _tmp23_ = page; #line 150 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp25_ = page_get_has_crop (_tmp24_); + _tmp24_ = page_get_has_crop (_tmp23_); #line 150 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp26_ = _tmp25_; + _tmp25_ = _tmp24_; #line 150 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - do_crop = _tmp26_; + do_crop = _tmp25_; #line 151 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp27_ = do_crop; + _tmp26_ = do_crop; #line 151 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - if (_tmp27_) { -#line 1094 "simple-scan.c" - Page* _tmp28_ = NULL; + if (_tmp26_) { +#line 1084 "simple-scan.c" + Page* _tmp27_ = NULL; + const gchar* _tmp28_ = NULL; const gchar* _tmp29_ = NULL; - const gchar* _tmp30_ = NULL; - gchar* _tmp31_ = NULL; - Page* _tmp32_ = NULL; + gchar* _tmp30_ = NULL; + Page* _tmp31_ = NULL; + gint _tmp32_ = 0; gint _tmp33_ = 0; - gint _tmp34_ = 0; - Page* _tmp35_ = NULL; + Page* _tmp34_ = NULL; + gint _tmp35_ = 0; gint _tmp36_ = 0; - gint _tmp37_ = 0; - Page* _tmp38_ = NULL; + Page* _tmp37_ = NULL; + gint _tmp38_ = 0; gint _tmp39_ = 0; - gint _tmp40_ = 0; - Page* _tmp41_ = NULL; + Page* _tmp40_ = NULL; + gint _tmp41_ = 0; gint _tmp42_ = 0; - gint _tmp43_ = 0; #line 153 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp28_ = page; + _tmp27_ = page; #line 153 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp29_ = page_get_crop_name (_tmp28_); + _tmp28_ = page_get_crop_name (_tmp27_); #line 153 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp30_ = _tmp29_; + _tmp29_ = _tmp28_; #line 153 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp31_ = g_strdup (_tmp30_); + _tmp30_ = g_strdup (_tmp29_); #line 153 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _g_free0 (named_crop); #line 153 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - named_crop = _tmp31_; + named_crop = _tmp30_; #line 154 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp32_ = page; + _tmp31_ = page; #line 154 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp33_ = page_get_crop_x (_tmp32_); + _tmp32_ = page_get_crop_x (_tmp31_); #line 154 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp34_ = _tmp33_; + _tmp33_ = _tmp32_; #line 154 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - cx = _tmp34_; + cx = _tmp33_; #line 155 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp35_ = page; + _tmp34_ = page; #line 155 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp36_ = page_get_crop_y (_tmp35_); + _tmp35_ = page_get_crop_y (_tmp34_); #line 155 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp37_ = _tmp36_; + _tmp36_ = _tmp35_; #line 155 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - cy = _tmp37_; + cy = _tmp36_; #line 156 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp38_ = page; + _tmp37_ = page; #line 156 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp39_ = page_get_crop_width (_tmp38_); + _tmp38_ = page_get_crop_width (_tmp37_); #line 156 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp40_ = _tmp39_; + _tmp39_ = _tmp38_; #line 156 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - cw = _tmp40_; + cw = _tmp39_; #line 157 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp41_ = page; + _tmp40_ = page; #line 157 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp42_ = page_get_crop_height (_tmp41_); + _tmp41_ = page_get_crop_height (_tmp40_); #line 157 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp43_ = _tmp42_; + _tmp42_ = _tmp41_; #line 157 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - ch = _tmp43_; -#line 1155 "simple-scan.c" + ch = _tmp42_; +#line 1145 "simple-scan.c" } } #line 161 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp44_ = width; + _tmp43_ = width; #line 161 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp45_ = height; + _tmp44_ = height; #line 161 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp46_ = dpi; + _tmp45_ = dpi; #line 161 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp47_ = scan_direction; + _tmp46_ = scan_direction; #line 161 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp48_ = page_new (_tmp44_, _tmp45_, _tmp46_, _tmp47_); + _tmp47_ = page_new (_tmp43_, _tmp44_, _tmp45_, _tmp46_); #line 161 "/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" - page = _tmp48_; + page = _tmp47_; #line 162 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp49_ = self->priv->book; + _tmp48_ = self->priv->book; #line 162 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp50_ = page; + _tmp49_ = page; #line 162 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - book_append_page (_tmp49_, _tmp50_); + book_append_page (_tmp48_, _tmp49_); #line 163 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp51_ = do_crop; + _tmp50_ = do_crop; #line 163 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - if (_tmp51_) { -#line 1182 "simple-scan.c" - const gchar* _tmp52_ = NULL; - Page* _tmp58_ = NULL; + if (_tmp50_) { +#line 1172 "simple-scan.c" + const gchar* _tmp51_ = NULL; + Page* _tmp57_ = NULL; + gint _tmp58_ = 0; gint _tmp59_ = 0; - gint _tmp60_ = 0; #line 165 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp52_ = named_crop; + _tmp51_ = named_crop; #line 165 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - if (_tmp52_ != NULL) { -#line 1191 "simple-scan.c" - Page* _tmp53_ = NULL; - const gchar* _tmp54_ = NULL; + if (_tmp51_ != NULL) { +#line 1181 "simple-scan.c" + Page* _tmp52_ = NULL; + const gchar* _tmp53_ = NULL; #line 167 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp53_ = page; + _tmp52_ = page; #line 167 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp54_ = named_crop; + _tmp53_ = named_crop; #line 167 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - page_set_named_crop (_tmp53_, _tmp54_); -#line 1200 "simple-scan.c" + page_set_named_crop (_tmp52_, _tmp53_); +#line 1190 "simple-scan.c" } else { - Page* _tmp55_ = NULL; + Page* _tmp54_ = NULL; + gint _tmp55_ = 0; gint _tmp56_ = 0; - gint _tmp57_ = 0; #line 170 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp55_ = page; + _tmp54_ = page; #line 170 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp56_ = cw; + _tmp55_ = cw; #line 170 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp57_ = ch; + _tmp56_ = ch; #line 170 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - page_set_custom_crop (_tmp55_, _tmp56_, _tmp57_); -#line 1213 "simple-scan.c" + page_set_custom_crop (_tmp54_, _tmp55_, _tmp56_); +#line 1203 "simple-scan.c" } #line 171 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp58_ = page; + _tmp57_ = page; #line 171 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp59_ = cx; + _tmp58_ = cx; #line 171 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp60_ = cy; + _tmp59_ = cy; #line 171 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - page_move_crop (_tmp58_, _tmp59_, _tmp60_); -#line 1223 "simple-scan.c" + page_move_crop (_tmp57_, _tmp58_, _tmp59_); +#line 1213 "simple-scan.c" } #line 173 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp61_ = self->priv->ui; + _tmp60_ = self->priv->ui; #line 173 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp62_ = page; + _tmp61_ = page; #line 173 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - user_interface_set_selected_page (_tmp61_, _tmp62_); + user_interface_set_selected_page (_tmp60_, _tmp61_); #line 174 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp63_ = page; + _tmp62_ = page; #line 174 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - page_start (_tmp63_); + page_start (_tmp62_); #line 176 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" result = page; #line 176 "/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" return result; -#line 1241 "simple-scan.c" +#line 1231 "simple-scan.c" } @@ -1254,7 +1244,7 @@ static void simple_scan_scanner_new_page_cb (SimpleScan* self, Scanner* scanner) _tmp1_ = _tmp0_; #line 181 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _page_unref0 (_tmp1_); -#line 1258 "simple-scan.c" +#line 1248 "simple-scan.c" } @@ -1268,20 +1258,20 @@ static gchar* simple_scan_get_profile_for_device (SimpleScan* self, const gchar* CdClient* _tmp3_ = NULL; CdDevice* device = NULL; CdProfile* profile = NULL; - CdDevice* _tmp18_ = NULL; - CdProfile* _tmp19_ = NULL; + CdDevice* _tmp19_ = NULL; CdProfile* _tmp20_ = NULL; - CdProfile* _tmp26_ = NULL; - const gchar* _tmp27_ = NULL; + CdProfile* _tmp21_ = NULL; + CdProfile* _tmp27_ = NULL; const gchar* _tmp28_ = NULL; - CdProfile* _tmp30_ = NULL; - const gchar* _tmp31_ = NULL; + const gchar* _tmp29_ = NULL; + CdProfile* _tmp31_ = NULL; const gchar* _tmp32_ = NULL; const gchar* _tmp33_ = NULL; - CdProfile* _tmp34_ = NULL; - const gchar* _tmp35_ = NULL; + const gchar* _tmp34_ = NULL; + CdProfile* _tmp35_ = NULL; const gchar* _tmp36_ = NULL; - gchar* _tmp37_ = NULL; + const gchar* _tmp37_ = NULL; + gchar* _tmp38_ = NULL; GError * _inner_error_ = NULL; #line 184 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" g_return_val_if_fail (self != NULL, NULL); @@ -1301,7 +1291,7 @@ static gchar* simple_scan_get_profile_for_device (SimpleScan* self, const gchar* _tmp3_ = cd_client_new (); #line 190 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" client = _tmp3_; -#line 1305 "simple-scan.c" +#line 1295 "simple-scan.c" { CdClient* _tmp4_ = NULL; #line 193 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" @@ -1310,7 +1300,7 @@ static gchar* simple_scan_get_profile_for_device (SimpleScan* self, const gchar* cd_client_connect_sync (_tmp4_, NULL, &_inner_error_); #line 193 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" if (_inner_error_ != NULL) { -#line 1314 "simple-scan.c" +#line 1304 "simple-scan.c" goto __catch4_g_error; } } @@ -1340,7 +1330,7 @@ static gchar* simple_scan_get_profile_for_device (SimpleScan* self, const gchar* _g_free0 (device_id); #line 198 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" return result; -#line 1344 "simple-scan.c" +#line 1334 "simple-scan.c" } __finally4: #line 191 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" @@ -1355,13 +1345,14 @@ static gchar* simple_scan_get_profile_for_device (SimpleScan* self, const gchar* g_clear_error (&_inner_error_); #line 191 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" return NULL; -#line 1359 "simple-scan.c" +#line 1349 "simple-scan.c" } { CdDevice* _tmp7_ = NULL; CdClient* _tmp8_ = NULL; const gchar* _tmp9_ = NULL; CdDevice* _tmp10_ = NULL; + CdDevice* _tmp11_ = NULL; #line 204 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _tmp8_ = client; #line 204 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" @@ -1372,34 +1363,40 @@ static gchar* simple_scan_get_profile_for_device (SimpleScan* self, const gchar* _tmp7_ = _tmp10_; #line 204 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" if (_inner_error_ != NULL) { -#line 1376 "simple-scan.c" +#line 1367 "simple-scan.c" goto __catch5_g_error; } #line 204 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _tmp11_ = _tmp7_; +#line 204 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _tmp7_ = NULL; +#line 204 "/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" - device = _tmp7_; -#line 1383 "simple-scan.c" + device = _tmp11_; +#line 202 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _g_object_unref0 (_tmp7_); +#line 1380 "simple-scan.c" } goto __finally5; __catch5_g_error: { GError* e = NULL; - const gchar* _tmp11_ = NULL; - GError* _tmp12_ = NULL; - const gchar* _tmp13_ = NULL; + const gchar* _tmp12_ = NULL; + GError* _tmp13_ = NULL; + const gchar* _tmp14_ = NULL; #line 202 "/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" _inner_error_ = NULL; #line 208 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp11_ = device_name; + _tmp12_ = device_name; #line 208 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp12_ = e; + _tmp13_ = e; #line 208 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp13_ = _tmp12_->message; + _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", _tmp11_, _tmp13_); + 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" result = NULL; #line 209 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" @@ -1412,7 +1409,7 @@ static gchar* simple_scan_get_profile_for_device (SimpleScan* self, const gchar* _g_free0 (device_id); #line 209 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" return result; -#line 1416 "simple-scan.c" +#line 1413 "simple-scan.c" } __finally5: #line 202 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" @@ -1429,17 +1426,17 @@ static gchar* simple_scan_get_profile_for_device (SimpleScan* self, const gchar* g_clear_error (&_inner_error_); #line 202 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" return NULL; -#line 1433 "simple-scan.c" +#line 1430 "simple-scan.c" } { - CdDevice* _tmp14_ = NULL; + CdDevice* _tmp15_ = NULL; #line 214 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp14_ = device; + _tmp15_ = device; #line 214 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - cd_device_connect_sync (_tmp14_, NULL, &_inner_error_); + cd_device_connect_sync (_tmp15_, NULL, &_inner_error_); #line 214 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" if (_inner_error_ != NULL) { -#line 1443 "simple-scan.c" +#line 1440 "simple-scan.c" goto __catch6_g_error; } } @@ -1447,21 +1444,21 @@ static gchar* simple_scan_get_profile_for_device (SimpleScan* self, const gchar* __catch6_g_error: { GError* e = NULL; - const gchar* _tmp15_ = NULL; - GError* _tmp16_ = NULL; - const gchar* _tmp17_ = NULL; + const gchar* _tmp16_ = NULL; + GError* _tmp17_ = NULL; + const gchar* _tmp18_ = NULL; #line 212 "/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" _inner_error_ = NULL; #line 218 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp15_ = device_name; + _tmp16_ = device_name; #line 218 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp16_ = e; + _tmp17_ = e; #line 218 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp17_ = _tmp16_->message; + _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", _tmp15_, _tmp17_); + 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" result = NULL; #line 219 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" @@ -1474,7 +1471,7 @@ static gchar* simple_scan_get_profile_for_device (SimpleScan* self, const gchar* _g_free0 (device_id); #line 219 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" return result; -#line 1478 "simple-scan.c" +#line 1475 "simple-scan.c" } __finally6: #line 212 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" @@ -1491,24 +1488,24 @@ static gchar* simple_scan_get_profile_for_device (SimpleScan* self, const gchar* g_clear_error (&_inner_error_); #line 212 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" return NULL; -#line 1495 "simple-scan.c" +#line 1492 "simple-scan.c" } #line 222 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp18_ = device; + _tmp19_ = device; #line 222 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp19_ = cd_device_get_default_profile (_tmp18_); + _tmp20_ = cd_device_get_default_profile (_tmp19_); #line 222 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - profile = _tmp19_; + profile = _tmp20_; #line 223 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp20_ = profile; + _tmp21_ = profile; #line 223 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - if (_tmp20_ == NULL) { -#line 1507 "simple-scan.c" - const gchar* _tmp21_ = NULL; + if (_tmp21_ == NULL) { +#line 1504 "simple-scan.c" + const gchar* _tmp22_ = NULL; #line 225 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp21_ = device_name; + _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", _tmp21_); + 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" result = NULL; #line 226 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" @@ -1521,17 +1518,17 @@ static gchar* simple_scan_get_profile_for_device (SimpleScan* self, const gchar* _g_free0 (device_id); #line 226 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" return result; -#line 1525 "simple-scan.c" +#line 1522 "simple-scan.c" } { - CdProfile* _tmp22_ = NULL; + CdProfile* _tmp23_ = NULL; #line 231 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp22_ = profile; + _tmp23_ = profile; #line 231 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - cd_profile_connect_sync (_tmp22_, NULL, &_inner_error_); + cd_profile_connect_sync (_tmp23_, NULL, &_inner_error_); #line 231 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" if (_inner_error_ != NULL) { -#line 1535 "simple-scan.c" +#line 1532 "simple-scan.c" goto __catch7_g_error; } } @@ -1539,21 +1536,21 @@ static gchar* simple_scan_get_profile_for_device (SimpleScan* self, const gchar* __catch7_g_error: { GError* e = NULL; - const gchar* _tmp23_ = NULL; - GError* _tmp24_ = NULL; - const gchar* _tmp25_ = NULL; + const gchar* _tmp24_ = NULL; + GError* _tmp25_ = NULL; + const gchar* _tmp26_ = NULL; #line 229 "/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" _inner_error_ = NULL; #line 235 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp23_ = device_name; + _tmp24_ = device_name; #line 235 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp24_ = e; + _tmp25_ = e; #line 235 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp25_ = _tmp24_->message; + _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", _tmp23_, _tmp25_); + 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" result = NULL; #line 236 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" @@ -1568,7 +1565,7 @@ static gchar* simple_scan_get_profile_for_device (SimpleScan* self, const gchar* _g_free0 (device_id); #line 236 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" return result; -#line 1572 "simple-scan.c" +#line 1569 "simple-scan.c" } __finally7: #line 229 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" @@ -1587,22 +1584,22 @@ static gchar* simple_scan_get_profile_for_device (SimpleScan* self, const gchar* g_clear_error (&_inner_error_); #line 229 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" return NULL; -#line 1591 "simple-scan.c" +#line 1588 "simple-scan.c" } #line 239 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp26_ = profile; + _tmp27_ = profile; #line 239 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp27_ = cd_profile_get_filename (_tmp26_); + _tmp28_ = cd_profile_get_filename (_tmp27_); #line 239 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp28_ = _tmp27_; + _tmp29_ = _tmp28_; #line 239 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - if (_tmp28_ == NULL) { -#line 1601 "simple-scan.c" - const gchar* _tmp29_ = NULL; + if (_tmp29_ == NULL) { +#line 1598 "simple-scan.c" + const gchar* _tmp30_ = NULL; #line 241 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp29_ = device_name; + _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", _tmp29_); + 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" result = NULL; #line 242 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" @@ -1615,28 +1612,28 @@ static gchar* simple_scan_get_profile_for_device (SimpleScan* self, const gchar* _g_free0 (device_id); #line 242 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" return result; -#line 1619 "simple-scan.c" +#line 1616 "simple-scan.c" } #line 245 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp30_ = profile; + _tmp31_ = profile; #line 245 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp31_ = cd_profile_get_filename (_tmp30_); + _tmp32_ = cd_profile_get_filename (_tmp31_); #line 245 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp32_ = _tmp31_; + _tmp33_ = _tmp32_; #line 245 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp33_ = device_name; + _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", _tmp32_, _tmp33_); + 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" - _tmp34_ = profile; + _tmp35_ = profile; #line 246 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp35_ = cd_profile_get_filename (_tmp34_); + _tmp36_ = cd_profile_get_filename (_tmp35_); #line 246 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp36_ = _tmp35_; + _tmp37_ = _tmp36_; #line 246 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp37_ = g_strdup (_tmp36_); + _tmp38_ = g_strdup (_tmp37_); #line 246 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - result = _tmp37_; + result = _tmp38_; #line 246 "/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" @@ -1647,7 +1644,7 @@ static gchar* simple_scan_get_profile_for_device (SimpleScan* self, const gchar* _g_free0 (device_id); #line 246 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" return result; -#line 1651 "simple-scan.c" +#line 1648 "simple-scan.c" } @@ -1708,7 +1705,7 @@ static void simple_scan_scanner_page_info_cb (SimpleScan* self, Scanner* scanner _g_free0 (_tmp11_); #line 252 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _page_unref0 (page); -#line 1711 "simple-scan.c" +#line 1708 "simple-scan.c" } @@ -1744,7 +1741,7 @@ static void simple_scan_scanner_line_cb (SimpleScan* self, Scanner* scanner, Sca page_parse_scan_line (page, _tmp5_); #line 267 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _page_unref0 (page); -#line 1747 "simple-scan.c" +#line 1744 "simple-scan.c" } @@ -1775,7 +1772,7 @@ static void simple_scan_scanner_page_done_cb (SimpleScan* self, Scanner* scanner page_finish (page); #line 273 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _page_unref0 (page); -#line 1778 "simple-scan.c" +#line 1775 "simple-scan.c" } @@ -1811,7 +1808,7 @@ static void simple_scan_remove_empty_page (SimpleScan* self) { _tmp7_ = _tmp6_; #line 282 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" if (!_tmp7_) { -#line 1814 "simple-scan.c" +#line 1811 "simple-scan.c" Book* _tmp8_ = NULL; Page* _tmp9_ = NULL; #line 283 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" @@ -1820,11 +1817,11 @@ static void simple_scan_remove_empty_page (SimpleScan* self) { _tmp9_ = page; #line 283 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" book_delete_page (_tmp8_, _tmp9_); -#line 1823 "simple-scan.c" +#line 1820 "simple-scan.c" } #line 279 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _page_unref0 (page); -#line 1827 "simple-scan.c" +#line 1824 "simple-scan.c" } @@ -1835,7 +1832,7 @@ static void simple_scan_scanner_document_done_cb (SimpleScan* self, Scanner* sca g_return_if_fail (scanner != NULL); #line 288 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" simple_scan_remove_empty_page (self); -#line 1838 "simple-scan.c" +#line 1835 "simple-scan.c" } @@ -1853,7 +1850,7 @@ static void simple_scan_scanner_failed_cb (SimpleScan* self, Scanner* scanner, g _tmp0_ = error_code; #line 294 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" if (_tmp0_ != ((gint) SANE_STATUS_CANCELLED)) { -#line 1856 "simple-scan.c" +#line 1853 "simple-scan.c" UserInterface* _tmp1_ = NULL; const gchar* _tmp2_ = NULL; const gchar* _tmp3_ = NULL; @@ -1868,7 +1865,7 @@ static void simple_scan_scanner_failed_cb (SimpleScan* self, Scanner* scanner, g _tmp4_ = self->priv->have_devices; #line 296 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" user_interface_show_error (_tmp1_, _tmp2_, _tmp3_, _tmp4_); -#line 1871 "simple-scan.c" +#line 1868 "simple-scan.c" } } @@ -1889,7 +1886,7 @@ static void simple_scan_scanner_scanning_changed_cb (SimpleScan* self, Scanner* _tmp2_ = scanner_is_scanning (_tmp1_); #line 305 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" user_interface_set_scanning (_tmp0_, _tmp2_); -#line 1892 "simple-scan.c" +#line 1889 "simple-scan.c" } @@ -1933,7 +1930,7 @@ static void simple_scan_scan_cb (SimpleScan* self, UserInterface* ui, const gcha _tmp4_ = scanner_is_scanning (_tmp3_); #line 312 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" if (!_tmp4_) { -#line 1936 "simple-scan.c" +#line 1933 "simple-scan.c" Page* _tmp5_ = NULL; Page* _tmp6_ = NULL; #line 313 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" @@ -1942,7 +1939,7 @@ static void simple_scan_scan_cb (SimpleScan* self, UserInterface* ui, const gcha _tmp6_ = _tmp5_; #line 313 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _page_unref0 (_tmp6_); -#line 1945 "simple-scan.c" +#line 1942 "simple-scan.c" } #line 316 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _tmp7_ = _ ("Scanned Document"); @@ -1956,7 +1953,7 @@ static void simple_scan_scan_cb (SimpleScan* self, UserInterface* ui, const gcha _tmp10_ = _tmp9_->scan_mode; #line 318 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" if (_tmp10_ == SCAN_MODE_COLOR) { -#line 1959 "simple-scan.c" +#line 1956 "simple-scan.c" gchar* _tmp11_ = NULL; #line 319 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _tmp11_ = g_strdup ("jpg"); @@ -1964,7 +1961,7 @@ static void simple_scan_scan_cb (SimpleScan* self, UserInterface* ui, const gcha _g_free0 (extension); #line 319 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" extension = _tmp11_; -#line 1967 "simple-scan.c" +#line 1964 "simple-scan.c" } else { gchar* _tmp12_ = NULL; #line 321 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" @@ -1973,7 +1970,7 @@ static void simple_scan_scan_cb (SimpleScan* self, UserInterface* ui, const gcha _g_free0 (extension); #line 321 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" extension = _tmp12_; -#line 1976 "simple-scan.c" +#line 1973 "simple-scan.c" } #line 322 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _tmp13_ = filename_prefix; @@ -2001,7 +1998,7 @@ static void simple_scan_scan_cb (SimpleScan* self, UserInterface* ui, const gcha _g_free0 (extension); #line 308 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _g_free0 (filename_prefix); -#line 2004 "simple-scan.c" +#line 2001 "simple-scan.c" } @@ -2015,7 +2012,7 @@ static void simple_scan_cancel_cb (SimpleScan* self, UserInterface* ui) { _tmp0_ = self->priv->scanner; #line 329 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" scanner_cancel (_tmp0_); -#line 2018 "simple-scan.c" +#line 2015 "simple-scan.c" } @@ -2041,7 +2038,7 @@ static gchar* simple_scan_get_temporary_filename (SimpleScan* self, const gchar* _tmp2_ = g_strdup_printf ("%sXXXXXX.%s", _tmp0_, _tmp1_); #line 337 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" filename = _tmp2_; -#line 2044 "simple-scan.c" +#line 2041 "simple-scan.c" { gint fd = 0; const gchar* _tmp3_ = NULL; @@ -2060,14 +2057,14 @@ static gchar* simple_scan_get_temporary_filename (SimpleScan* self, const gchar* fd = _tmp5_; #line 341 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" if (_inner_error_ != NULL) { -#line 2063 "simple-scan.c" +#line 2060 "simple-scan.c" goto __catch8_g_error; } #line 342 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _tmp6_ = fd; #line 342 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" close (_tmp6_); -#line 2070 "simple-scan.c" +#line 2067 "simple-scan.c" } goto __finally8; __catch8_g_error: @@ -2095,7 +2092,7 @@ static gchar* simple_scan_get_temporary_filename (SimpleScan* self, const gchar* _g_free0 (filename); #line 347 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" return result; -#line 2098 "simple-scan.c" +#line 2095 "simple-scan.c" } __finally8: #line 339 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" @@ -2110,7 +2107,7 @@ static gchar* simple_scan_get_temporary_filename (SimpleScan* self, const gchar* g_clear_error (&_inner_error_); #line 339 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" return NULL; -#line 2113 "simple-scan.c" +#line 2110 "simple-scan.c" } #line 350 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" result = path; @@ -2118,7 +2115,7 @@ static gchar* simple_scan_get_temporary_filename (SimpleScan* self, const gchar* _g_free0 (filename); #line 350 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" return result; -#line 2121 "simple-scan.c" +#line 2118 "simple-scan.c" } @@ -2127,7 +2124,7 @@ static void simple_scan_email_cb (SimpleScan* self, UserInterface* ui, const gch gchar* command_line = NULL; gchar* _tmp0_ = NULL; const gchar* _tmp1_ = NULL; - const gchar* _tmp43_ = NULL; + const gchar* _tmp42_ = NULL; GError * _inner_error_ = NULL; #line 353 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" g_return_if_fail (self != NULL); @@ -2145,7 +2142,7 @@ static void simple_scan_email_cb (SimpleScan* self, UserInterface* ui, const gch _tmp1_ = profile; #line 359 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" if (g_strcmp0 (_tmp1_, "text") == 0) { -#line 2148 "simple-scan.c" +#line 2145 "simple-scan.c" gchar* path = NULL; gchar* _tmp2_ = NULL; const gchar* _tmp3_ = NULL; @@ -2157,7 +2154,7 @@ static void simple_scan_email_cb (SimpleScan* self, UserInterface* ui, const gch _tmp3_ = path; #line 363 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" if (_tmp3_ != NULL) { -#line 2160 "simple-scan.c" +#line 2157 "simple-scan.c" GFile* file = NULL; const gchar* _tmp4_ = NULL; GFile* _tmp5_ = NULL; @@ -2177,7 +2174,7 @@ static void simple_scan_email_cb (SimpleScan* self, UserInterface* ui, const gch _tmp6_ = ui; #line 366 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" user_interface_show_progress_dialog (_tmp6_); -#line 2180 "simple-scan.c" +#line 2177 "simple-scan.c" { Book* _tmp7_ = NULL; gint _tmp8_ = 0; @@ -2192,7 +2189,7 @@ static void simple_scan_email_cb (SimpleScan* self, UserInterface* ui, const gch book_save (_tmp7_, "pdf", _tmp8_, _tmp9_, &_inner_error_); #line 369 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" if (_inner_error_ != NULL) { -#line 2195 "simple-scan.c" +#line 2192 "simple-scan.c" goto __catch9_g_error; } } @@ -2227,7 +2224,7 @@ static void simple_scan_email_cb (SimpleScan* self, UserInterface* ui, const gch _g_free0 (command_line); #line 375 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" return; -#line 2230 "simple-scan.c" +#line 2227 "simple-scan.c" } __finally9: #line 367 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" @@ -2244,7 +2241,7 @@ static void simple_scan_email_cb (SimpleScan* self, UserInterface* ui, const gch g_clear_error (&_inner_error_); #line 367 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" return; -#line 2247 "simple-scan.c" +#line 2244 "simple-scan.c" } #line 377 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _tmp13_ = command_line; @@ -2264,118 +2261,115 @@ static void simple_scan_email_cb (SimpleScan* self, UserInterface* ui, const gch _g_free0 (_tmp16_); #line 363 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _g_object_unref0 (file); -#line 2267 "simple-scan.c" +#line 2264 "simple-scan.c" } #line 359 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _g_free0 (path); -#line 2271 "simple-scan.c" +#line 2268 "simple-scan.c" } else { { gint i = 0; #line 382 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" i = 0; -#line 2277 "simple-scan.c" +#line 2274 "simple-scan.c" { gboolean _tmp18_ = FALSE; #line 382 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _tmp18_ = TRUE; #line 382 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" while (TRUE) { -#line 2284 "simple-scan.c" - gboolean _tmp19_ = FALSE; - gint _tmp21_ = 0; - Book* _tmp22_ = NULL; +#line 2281 "simple-scan.c" + gint _tmp20_ = 0; + Book* _tmp21_ = NULL; + guint _tmp22_ = 0U; guint _tmp23_ = 0U; - guint _tmp24_ = 0U; gchar* path = NULL; - gchar* _tmp25_ = NULL; - const gchar* _tmp26_ = NULL; + gchar* _tmp24_ = NULL; + const gchar* _tmp25_ = NULL; GFile* file = NULL; - const gchar* _tmp27_ = NULL; - GFile* _tmp28_ = NULL; + const gchar* _tmp26_ = NULL; + GFile* _tmp27_ = NULL; + const gchar* _tmp36_ = NULL; const gchar* _tmp37_ = NULL; - const gchar* _tmp38_ = NULL; + gchar* _tmp38_ = NULL; gchar* _tmp39_ = NULL; gchar* _tmp40_ = NULL; - gchar* _tmp41_ = NULL; - gboolean _tmp42_ = FALSE; -#line 382 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp19_ = _tmp18_; + gboolean _tmp41_ = FALSE; #line 382 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - if (!_tmp19_) { -#line 2306 "simple-scan.c" - gint _tmp20_ = 0; + if (!_tmp18_) { +#line 2300 "simple-scan.c" + gint _tmp19_ = 0; #line 382 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp20_ = i; + _tmp19_ = i; #line 382 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - i = _tmp20_ + 1; -#line 2312 "simple-scan.c" + i = _tmp19_ + 1; +#line 2306 "simple-scan.c" } #line 382 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _tmp18_ = FALSE; #line 382 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp21_ = i; + _tmp20_ = i; #line 382 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp22_ = self->priv->book; + _tmp21_ = self->priv->book; #line 382 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp23_ = book_get_n_pages (_tmp22_); + _tmp22_ = book_get_n_pages (_tmp21_); #line 382 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp24_ = _tmp23_; + _tmp23_ = _tmp22_; #line 382 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - if (!(((guint) _tmp21_) < _tmp24_)) { + if (!(((guint) _tmp20_) < _tmp23_)) { #line 382 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" break; -#line 2328 "simple-scan.c" +#line 2322 "simple-scan.c" } #line 384 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp25_ = simple_scan_get_temporary_filename (self, "scan", "jpg"); + _tmp24_ = simple_scan_get_temporary_filename (self, "scan", "jpg"); #line 384 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - path = _tmp25_; + path = _tmp24_; #line 385 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp26_ = path; + _tmp25_ = path; #line 385 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - if (_tmp26_ == NULL) { + if (_tmp25_ == NULL) { #line 387 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" saved = FALSE; #line 388 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _g_free0 (path); #line 388 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" break; -#line 2344 "simple-scan.c" +#line 2338 "simple-scan.c" } #line 391 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp27_ = path; + _tmp26_ = path; #line 391 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp28_ = g_file_new_for_path (_tmp27_); + _tmp27_ = g_file_new_for_path (_tmp26_); #line 391 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - file = _tmp28_; -#line 2352 "simple-scan.c" + file = _tmp27_; +#line 2346 "simple-scan.c" { - Book* _tmp29_ = NULL; - gint _tmp30_ = 0; + Book* _tmp28_ = NULL; + gint _tmp29_ = 0; + Page* _tmp30_ = NULL; Page* _tmp31_ = NULL; - Page* _tmp32_ = NULL; - gint _tmp33_ = 0; - GFile* _tmp34_ = NULL; + gint _tmp32_ = 0; + GFile* _tmp33_ = NULL; #line 394 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp29_ = self->priv->book; + _tmp28_ = self->priv->book; #line 394 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp30_ = i; + _tmp29_ = i; #line 394 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp31_ = book_get_page (_tmp29_, _tmp30_); + _tmp30_ = book_get_page (_tmp28_, _tmp29_); #line 394 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp32_ = _tmp31_; + _tmp31_ = _tmp30_; #line 394 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp33_ = quality; + _tmp32_ = quality; #line 394 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp34_ = file; + _tmp33_ = file; #line 394 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - page_save (_tmp32_, "jpeg", _tmp33_, _tmp34_, &_inner_error_); + page_save (_tmp31_, "jpeg", _tmp32_, _tmp33_, &_inner_error_); #line 394 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _page_unref0 (_tmp32_); + _page_unref0 (_tmp31_); #line 394 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" if (_inner_error_ != NULL) { -#line 2378 "simple-scan.c" +#line 2372 "simple-scan.c" goto __catch10_g_error; } } @@ -2383,18 +2377,18 @@ static void simple_scan_email_cb (SimpleScan* self, UserInterface* ui, const gch __catch10_g_error: { GError* e = NULL; - GError* _tmp35_ = NULL; - const gchar* _tmp36_ = NULL; + GError* _tmp34_ = NULL; + const gchar* _tmp35_ = NULL; #line 392 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" e = _inner_error_; #line 392 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _inner_error_ = NULL; #line 398 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp35_ = e; + _tmp34_ = e; #line 398 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp36_ = _tmp35_->message; + _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", _tmp36_); + g_warning ("simple-scan.vala:398: Unable to save email file: %s", _tmp35_); #line 399 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _g_error_free0 (e); #line 399 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" @@ -2405,7 +2399,7 @@ static void simple_scan_email_cb (SimpleScan* self, UserInterface* ui, const gch _g_free0 (command_line); #line 399 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" return; -#line 2408 "simple-scan.c" +#line 2402 "simple-scan.c" } __finally10: #line 392 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" @@ -2422,59 +2416,59 @@ static void simple_scan_email_cb (SimpleScan* self, UserInterface* ui, const gch g_clear_error (&_inner_error_); #line 392 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" return; -#line 2425 "simple-scan.c" +#line 2419 "simple-scan.c" } #line 401 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp37_ = command_line; + _tmp36_ = command_line; #line 401 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp38_ = path; + _tmp37_ = path; #line 401 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp39_ = g_strdup_printf (" --attach %s", _tmp38_); + _tmp38_ = g_strdup_printf (" --attach %s", _tmp37_); #line 401 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp40_ = _tmp39_; + _tmp39_ = _tmp38_; #line 401 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp41_ = g_strconcat (_tmp37_, _tmp40_, NULL); + _tmp40_ = g_strconcat (_tmp36_, _tmp39_, NULL); #line 401 "/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" - command_line = _tmp41_; + command_line = _tmp40_; #line 401 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _g_free0 (_tmp40_); + _g_free0 (_tmp39_); #line 403 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp42_ = saved; + _tmp41_ = saved; #line 403 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - if (!_tmp42_) { + if (!_tmp41_) { #line 404 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _g_object_unref0 (file); #line 404 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _g_free0 (path); #line 404 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" break; -#line 2453 "simple-scan.c" +#line 2447 "simple-scan.c" } #line 382 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _g_object_unref0 (file); #line 382 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _g_free0 (path); -#line 2459 "simple-scan.c" +#line 2453 "simple-scan.c" } } } } #line 408 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp43_ = command_line; + _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", _tmp43_); -#line 2468 "simple-scan.c" + g_debug ("simple-scan.vala:408: Launching email client: %s", _tmp42_); +#line 2462 "simple-scan.c" { - const gchar* _tmp44_ = NULL; + const gchar* _tmp43_ = NULL; #line 411 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp44_ = command_line; + _tmp43_ = command_line; #line 411 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - g_spawn_command_line_async (_tmp44_, &_inner_error_); + g_spawn_command_line_async (_tmp43_, &_inner_error_); #line 411 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" if (_inner_error_ != NULL) { -#line 2477 "simple-scan.c" +#line 2471 "simple-scan.c" goto __catch11_g_error; } } @@ -2482,21 +2476,21 @@ static void simple_scan_email_cb (SimpleScan* self, UserInterface* ui, const gch __catch11_g_error: { GError* e = NULL; - GError* _tmp45_ = NULL; - const gchar* _tmp46_ = NULL; + GError* _tmp44_ = NULL; + const gchar* _tmp45_ = NULL; #line 409 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" e = _inner_error_; #line 409 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _inner_error_ = NULL; #line 415 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp45_ = e; + _tmp44_ = e; #line 415 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp46_ = _tmp45_->message; + _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", _tmp46_); + g_warning ("simple-scan.vala:415: Unable to start email: %s", _tmp45_); #line 409 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _g_error_free0 (e); -#line 2499 "simple-scan.c" +#line 2493 "simple-scan.c" } __finally11: #line 409 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" @@ -2509,11 +2503,11 @@ static void simple_scan_email_cb (SimpleScan* self, UserInterface* ui, const gch g_clear_error (&_inner_error_); #line 409 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" return; -#line 2512 "simple-scan.c" +#line 2506 "simple-scan.c" } #line 353 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _g_free0 (command_line); -#line 2516 "simple-scan.c" +#line 2510 "simple-scan.c" } @@ -2534,7 +2528,7 @@ static void simple_scan_log_cb (const gchar* log_domain, GLogLevelFlags log_leve switch (_tmp0_ & G_LOG_LEVEL_MASK) { #line 423 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" case G_LOG_LEVEL_ERROR: -#line 2537 "simple-scan.c" +#line 2531 "simple-scan.c" { gchar* _tmp1_ = NULL; #line 426 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" @@ -2545,11 +2539,11 @@ static void simple_scan_log_cb (const gchar* log_domain, GLogLevelFlags log_leve prefix = _tmp1_; #line 427 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" break; -#line 2548 "simple-scan.c" +#line 2542 "simple-scan.c" } #line 423 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" case G_LOG_LEVEL_CRITICAL: -#line 2552 "simple-scan.c" +#line 2546 "simple-scan.c" { gchar* _tmp2_ = NULL; #line 429 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" @@ -2560,11 +2554,11 @@ static void simple_scan_log_cb (const gchar* log_domain, GLogLevelFlags log_leve prefix = _tmp2_; #line 430 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" break; -#line 2563 "simple-scan.c" +#line 2557 "simple-scan.c" } #line 423 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" case G_LOG_LEVEL_WARNING: -#line 2567 "simple-scan.c" +#line 2561 "simple-scan.c" { gchar* _tmp3_ = NULL; #line 432 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" @@ -2575,11 +2569,11 @@ static void simple_scan_log_cb (const gchar* log_domain, GLogLevelFlags log_leve prefix = _tmp3_; #line 433 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" break; -#line 2578 "simple-scan.c" +#line 2572 "simple-scan.c" } #line 423 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" case G_LOG_LEVEL_MESSAGE: -#line 2582 "simple-scan.c" +#line 2576 "simple-scan.c" { gchar* _tmp4_ = NULL; #line 435 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" @@ -2590,11 +2584,11 @@ static void simple_scan_log_cb (const gchar* log_domain, GLogLevelFlags log_leve prefix = _tmp4_; #line 436 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" break; -#line 2593 "simple-scan.c" +#line 2587 "simple-scan.c" } #line 423 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" case G_LOG_LEVEL_INFO: -#line 2597 "simple-scan.c" +#line 2591 "simple-scan.c" { gchar* _tmp5_ = NULL; #line 438 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" @@ -2605,11 +2599,11 @@ static void simple_scan_log_cb (const gchar* log_domain, GLogLevelFlags log_leve prefix = _tmp5_; #line 439 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" break; -#line 2608 "simple-scan.c" +#line 2602 "simple-scan.c" } #line 423 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" case G_LOG_LEVEL_DEBUG: -#line 2612 "simple-scan.c" +#line 2606 "simple-scan.c" { gchar* _tmp6_ = NULL; #line 441 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" @@ -2620,7 +2614,7 @@ static void simple_scan_log_cb (const gchar* log_domain, GLogLevelFlags log_leve prefix = _tmp6_; #line 442 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" break; -#line 2623 "simple-scan.c" +#line 2617 "simple-scan.c" } default: { @@ -2633,7 +2627,7 @@ static void simple_scan_log_cb (const gchar* log_domain, GLogLevelFlags log_leve prefix = _tmp7_; #line 445 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" break; -#line 2636 "simple-scan.c" +#line 2630 "simple-scan.c" } } #line 448 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" @@ -2652,7 +2646,7 @@ static void simple_scan_log_cb (const gchar* log_domain, GLogLevelFlags log_leve _tmp13_ = simple_scan_debug_enabled; #line 449 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" if (_tmp13_) { -#line 2655 "simple-scan.c" +#line 2649 "simple-scan.c" FILE* _tmp14_ = NULL; GTimer* _tmp15_ = NULL; gdouble _tmp16_ = 0.0; @@ -2670,11 +2664,11 @@ static void simple_scan_log_cb (const gchar* log_domain, GLogLevelFlags log_leve _tmp18_ = message; #line 450 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" fprintf (_tmp14_, "[%+.2fs] %s %s\n", _tmp16_, _tmp17_, _tmp18_); -#line 2673 "simple-scan.c" +#line 2667 "simple-scan.c" } #line 419 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _g_free0 (prefix); -#line 2677 "simple-scan.c" +#line 2671 "simple-scan.c" } @@ -2692,7 +2686,7 @@ static void simple_scan_on_uevent (SimpleScan* self, GUdevClient* client, const _tmp0_ = self->priv->scanner; #line 455 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" scanner_redetect (_tmp0_); -#line 2695 "simple-scan.c" +#line 2689 "simple-scan.c" } @@ -2703,39 +2697,39 @@ static glong string_strnlen (gchar* str, glong maxlen) { glong _tmp1_ = 0L; gchar* _tmp2_ = NULL; gchar* _tmp3_ = NULL; -#line 1156 "/usr/share/vala-0.22/vapi/glib-2.0.vapi" +#line 1193 "/usr/share/vala-0.24/vapi/glib-2.0.vapi" _tmp0_ = str; -#line 1156 "/usr/share/vala-0.22/vapi/glib-2.0.vapi" +#line 1193 "/usr/share/vala-0.24/vapi/glib-2.0.vapi" _tmp1_ = maxlen; -#line 1156 "/usr/share/vala-0.22/vapi/glib-2.0.vapi" +#line 1193 "/usr/share/vala-0.24/vapi/glib-2.0.vapi" _tmp2_ = memchr (_tmp0_, 0, (gsize) _tmp1_); -#line 1156 "/usr/share/vala-0.22/vapi/glib-2.0.vapi" +#line 1193 "/usr/share/vala-0.24/vapi/glib-2.0.vapi" end = _tmp2_; -#line 1157 "/usr/share/vala-0.22/vapi/glib-2.0.vapi" +#line 1194 "/usr/share/vala-0.24/vapi/glib-2.0.vapi" _tmp3_ = end; -#line 1157 "/usr/share/vala-0.22/vapi/glib-2.0.vapi" +#line 1194 "/usr/share/vala-0.24/vapi/glib-2.0.vapi" if (_tmp3_ == NULL) { -#line 2718 "simple-scan.c" +#line 2712 "simple-scan.c" glong _tmp4_ = 0L; -#line 1158 "/usr/share/vala-0.22/vapi/glib-2.0.vapi" +#line 1195 "/usr/share/vala-0.24/vapi/glib-2.0.vapi" _tmp4_ = maxlen; -#line 1158 "/usr/share/vala-0.22/vapi/glib-2.0.vapi" +#line 1195 "/usr/share/vala-0.24/vapi/glib-2.0.vapi" result = _tmp4_; -#line 1158 "/usr/share/vala-0.22/vapi/glib-2.0.vapi" +#line 1195 "/usr/share/vala-0.24/vapi/glib-2.0.vapi" return result; -#line 2726 "simple-scan.c" +#line 2720 "simple-scan.c" } else { gchar* _tmp5_ = NULL; gchar* _tmp6_ = NULL; -#line 1160 "/usr/share/vala-0.22/vapi/glib-2.0.vapi" +#line 1197 "/usr/share/vala-0.24/vapi/glib-2.0.vapi" _tmp5_ = end; -#line 1160 "/usr/share/vala-0.22/vapi/glib-2.0.vapi" +#line 1197 "/usr/share/vala-0.24/vapi/glib-2.0.vapi" _tmp6_ = str; -#line 1160 "/usr/share/vala-0.22/vapi/glib-2.0.vapi" +#line 1197 "/usr/share/vala-0.24/vapi/glib-2.0.vapi" result = (glong) (_tmp5_ - _tmp6_); -#line 1160 "/usr/share/vala-0.22/vapi/glib-2.0.vapi" +#line 1197 "/usr/share/vala-0.24/vapi/glib-2.0.vapi" return result; -#line 2738 "simple-scan.c" +#line 2732 "simple-scan.c" } } @@ -2745,125 +2739,122 @@ static gchar* string_substring (const gchar* self, glong offset, glong len) { glong string_length = 0L; gboolean _tmp0_ = FALSE; glong _tmp1_ = 0L; - gboolean _tmp3_ = FALSE; - glong _tmp9_ = 0L; - glong _tmp15_ = 0L; + glong _tmp8_ = 0L; + glong _tmp14_ = 0L; + glong _tmp17_ = 0L; glong _tmp18_ = 0L; glong _tmp19_ = 0L; glong _tmp20_ = 0L; glong _tmp21_ = 0L; - glong _tmp22_ = 0L; - gchar* _tmp23_ = NULL; -#line 1167 "/usr/share/vala-0.22/vapi/glib-2.0.vapi" + gchar* _tmp22_ = NULL; +#line 1204 "/usr/share/vala-0.24/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, NULL); -#line 1169 "/usr/share/vala-0.22/vapi/glib-2.0.vapi" +#line 1206 "/usr/share/vala-0.24/vapi/glib-2.0.vapi" _tmp1_ = offset; -#line 1169 "/usr/share/vala-0.22/vapi/glib-2.0.vapi" +#line 1206 "/usr/share/vala-0.24/vapi/glib-2.0.vapi" if (_tmp1_ >= ((glong) 0)) { -#line 2763 "simple-scan.c" +#line 2756 "simple-scan.c" glong _tmp2_ = 0L; -#line 1169 "/usr/share/vala-0.22/vapi/glib-2.0.vapi" +#line 1206 "/usr/share/vala-0.24/vapi/glib-2.0.vapi" _tmp2_ = len; -#line 1169 "/usr/share/vala-0.22/vapi/glib-2.0.vapi" +#line 1206 "/usr/share/vala-0.24/vapi/glib-2.0.vapi" _tmp0_ = _tmp2_ >= ((glong) 0); -#line 2769 "simple-scan.c" +#line 2762 "simple-scan.c" } else { -#line 1169 "/usr/share/vala-0.22/vapi/glib-2.0.vapi" +#line 1206 "/usr/share/vala-0.24/vapi/glib-2.0.vapi" _tmp0_ = FALSE; -#line 2773 "simple-scan.c" +#line 2766 "simple-scan.c" } -#line 1169 "/usr/share/vala-0.22/vapi/glib-2.0.vapi" - _tmp3_ = _tmp0_; -#line 1169 "/usr/share/vala-0.22/vapi/glib-2.0.vapi" - if (_tmp3_) { -#line 2779 "simple-scan.c" +#line 1206 "/usr/share/vala-0.24/vapi/glib-2.0.vapi" + if (_tmp0_) { +#line 2770 "simple-scan.c" + glong _tmp3_ = 0L; glong _tmp4_ = 0L; glong _tmp5_ = 0L; - glong _tmp6_ = 0L; -#line 1171 "/usr/share/vala-0.22/vapi/glib-2.0.vapi" - _tmp4_ = offset; -#line 1171 "/usr/share/vala-0.22/vapi/glib-2.0.vapi" - _tmp5_ = len; -#line 1171 "/usr/share/vala-0.22/vapi/glib-2.0.vapi" - _tmp6_ = string_strnlen ((gchar*) self, _tmp4_ + _tmp5_); -#line 1171 "/usr/share/vala-0.22/vapi/glib-2.0.vapi" - string_length = _tmp6_; -#line 2791 "simple-scan.c" +#line 1208 "/usr/share/vala-0.24/vapi/glib-2.0.vapi" + _tmp3_ = offset; +#line 1208 "/usr/share/vala-0.24/vapi/glib-2.0.vapi" + _tmp4_ = len; +#line 1208 "/usr/share/vala-0.24/vapi/glib-2.0.vapi" + _tmp5_ = string_strnlen ((gchar*) self, _tmp3_ + _tmp4_); +#line 1208 "/usr/share/vala-0.24/vapi/glib-2.0.vapi" + string_length = _tmp5_; +#line 2782 "simple-scan.c" } else { + gint _tmp6_ = 0; gint _tmp7_ = 0; - gint _tmp8_ = 0; -#line 1173 "/usr/share/vala-0.22/vapi/glib-2.0.vapi" - _tmp7_ = strlen (self); -#line 1173 "/usr/share/vala-0.22/vapi/glib-2.0.vapi" - _tmp8_ = _tmp7_; -#line 1173 "/usr/share/vala-0.22/vapi/glib-2.0.vapi" - string_length = (glong) _tmp8_; -#line 2801 "simple-scan.c" +#line 1210 "/usr/share/vala-0.24/vapi/glib-2.0.vapi" + _tmp6_ = strlen (self); +#line 1210 "/usr/share/vala-0.24/vapi/glib-2.0.vapi" + _tmp7_ = _tmp6_; +#line 1210 "/usr/share/vala-0.24/vapi/glib-2.0.vapi" + string_length = (glong) _tmp7_; +#line 2792 "simple-scan.c" } -#line 1176 "/usr/share/vala-0.22/vapi/glib-2.0.vapi" - _tmp9_ = offset; -#line 1176 "/usr/share/vala-0.22/vapi/glib-2.0.vapi" - if (_tmp9_ < ((glong) 0)) { -#line 2807 "simple-scan.c" +#line 1213 "/usr/share/vala-0.24/vapi/glib-2.0.vapi" + _tmp8_ = offset; +#line 1213 "/usr/share/vala-0.24/vapi/glib-2.0.vapi" + if (_tmp8_ < ((glong) 0)) { +#line 2798 "simple-scan.c" + glong _tmp9_ = 0L; glong _tmp10_ = 0L; glong _tmp11_ = 0L; - glong _tmp12_ = 0L; -#line 1177 "/usr/share/vala-0.22/vapi/glib-2.0.vapi" - _tmp10_ = string_length; -#line 1177 "/usr/share/vala-0.22/vapi/glib-2.0.vapi" +#line 1214 "/usr/share/vala-0.24/vapi/glib-2.0.vapi" + _tmp9_ = string_length; +#line 1214 "/usr/share/vala-0.24/vapi/glib-2.0.vapi" + _tmp10_ = offset; +#line 1214 "/usr/share/vala-0.24/vapi/glib-2.0.vapi" + offset = _tmp9_ + _tmp10_; +#line 1215 "/usr/share/vala-0.24/vapi/glib-2.0.vapi" _tmp11_ = offset; -#line 1177 "/usr/share/vala-0.22/vapi/glib-2.0.vapi" - offset = _tmp10_ + _tmp11_; -#line 1178 "/usr/share/vala-0.22/vapi/glib-2.0.vapi" - _tmp12_ = offset; -#line 1178 "/usr/share/vala-0.22/vapi/glib-2.0.vapi" - g_return_val_if_fail (_tmp12_ >= ((glong) 0), NULL); -#line 2821 "simple-scan.c" +#line 1215 "/usr/share/vala-0.24/vapi/glib-2.0.vapi" + g_return_val_if_fail (_tmp11_ >= ((glong) 0), NULL); +#line 2812 "simple-scan.c" } else { + glong _tmp12_ = 0L; glong _tmp13_ = 0L; - glong _tmp14_ = 0L; -#line 1180 "/usr/share/vala-0.22/vapi/glib-2.0.vapi" - _tmp13_ = offset; -#line 1180 "/usr/share/vala-0.22/vapi/glib-2.0.vapi" - _tmp14_ = string_length; -#line 1180 "/usr/share/vala-0.22/vapi/glib-2.0.vapi" - g_return_val_if_fail (_tmp13_ <= _tmp14_, NULL); -#line 2831 "simple-scan.c" +#line 1217 "/usr/share/vala-0.24/vapi/glib-2.0.vapi" + _tmp12_ = offset; +#line 1217 "/usr/share/vala-0.24/vapi/glib-2.0.vapi" + _tmp13_ = string_length; +#line 1217 "/usr/share/vala-0.24/vapi/glib-2.0.vapi" + g_return_val_if_fail (_tmp12_ <= _tmp13_, NULL); +#line 2822 "simple-scan.c" } -#line 1182 "/usr/share/vala-0.22/vapi/glib-2.0.vapi" - _tmp15_ = len; -#line 1182 "/usr/share/vala-0.22/vapi/glib-2.0.vapi" - if (_tmp15_ < ((glong) 0)) { -#line 2837 "simple-scan.c" +#line 1219 "/usr/share/vala-0.24/vapi/glib-2.0.vapi" + _tmp14_ = len; +#line 1219 "/usr/share/vala-0.24/vapi/glib-2.0.vapi" + if (_tmp14_ < ((glong) 0)) { +#line 2828 "simple-scan.c" + glong _tmp15_ = 0L; glong _tmp16_ = 0L; - glong _tmp17_ = 0L; -#line 1183 "/usr/share/vala-0.22/vapi/glib-2.0.vapi" - _tmp16_ = string_length; -#line 1183 "/usr/share/vala-0.22/vapi/glib-2.0.vapi" - _tmp17_ = offset; -#line 1183 "/usr/share/vala-0.22/vapi/glib-2.0.vapi" - len = _tmp16_ - _tmp17_; -#line 2846 "simple-scan.c" +#line 1220 "/usr/share/vala-0.24/vapi/glib-2.0.vapi" + _tmp15_ = string_length; +#line 1220 "/usr/share/vala-0.24/vapi/glib-2.0.vapi" + _tmp16_ = offset; +#line 1220 "/usr/share/vala-0.24/vapi/glib-2.0.vapi" + len = _tmp15_ - _tmp16_; +#line 2837 "simple-scan.c" } -#line 1185 "/usr/share/vala-0.22/vapi/glib-2.0.vapi" - _tmp18_ = offset; -#line 1185 "/usr/share/vala-0.22/vapi/glib-2.0.vapi" - _tmp19_ = len; -#line 1185 "/usr/share/vala-0.22/vapi/glib-2.0.vapi" - _tmp20_ = string_length; -#line 1185 "/usr/share/vala-0.22/vapi/glib-2.0.vapi" - g_return_val_if_fail ((_tmp18_ + _tmp19_) <= _tmp20_, NULL); -#line 1186 "/usr/share/vala-0.22/vapi/glib-2.0.vapi" - _tmp21_ = offset; -#line 1186 "/usr/share/vala-0.22/vapi/glib-2.0.vapi" - _tmp22_ = len; -#line 1186 "/usr/share/vala-0.22/vapi/glib-2.0.vapi" - _tmp23_ = g_strndup (((gchar*) self) + _tmp21_, (gsize) _tmp22_); -#line 1186 "/usr/share/vala-0.22/vapi/glib-2.0.vapi" - result = _tmp23_; -#line 1186 "/usr/share/vala-0.22/vapi/glib-2.0.vapi" +#line 1222 "/usr/share/vala-0.24/vapi/glib-2.0.vapi" + _tmp17_ = offset; +#line 1222 "/usr/share/vala-0.24/vapi/glib-2.0.vapi" + _tmp18_ = len; +#line 1222 "/usr/share/vala-0.24/vapi/glib-2.0.vapi" + _tmp19_ = string_length; +#line 1222 "/usr/share/vala-0.24/vapi/glib-2.0.vapi" + g_return_val_if_fail ((_tmp17_ + _tmp18_) <= _tmp19_, NULL); +#line 1223 "/usr/share/vala-0.24/vapi/glib-2.0.vapi" + _tmp20_ = offset; +#line 1223 "/usr/share/vala-0.24/vapi/glib-2.0.vapi" + _tmp21_ = len; +#line 1223 "/usr/share/vala-0.24/vapi/glib-2.0.vapi" + _tmp22_ = g_strndup (((gchar*) self) + _tmp20_, (gsize) _tmp21_); +#line 1223 "/usr/share/vala-0.24/vapi/glib-2.0.vapi" + result = _tmp22_; +#line 1223 "/usr/share/vala-0.24/vapi/glib-2.0.vapi" return result; -#line 2866 "simple-scan.c" +#line 2857 "simple-scan.c" } @@ -2884,17 +2875,16 @@ static void simple_scan_fix_pdf (const gchar* filename, GError** error) { gint line_number = 0; gint xref_offset = 0; gint xref_line = 0; - GRegex* xref_regex = NULL; - GRegex* _tmp8_ = NULL; - GMatchInfo* xref_match = NULL; + gint startxref_line = 0; + gint fixed_size = 0; GString* line = NULL; - GString* _tmp9_ = NULL; - const gchar* _tmp84_ = NULL; - const gchar* _tmp85_ = NULL; - gchar* _tmp86_ = NULL; - gchar* _tmp87_ = NULL; - gint _tmp88_ = 0; - gboolean _tmp89_ = FALSE; + GString* _tmp8_ = NULL; + const gchar* _tmp102_ = NULL; + const gchar* _tmp103_ = NULL; + gchar* _tmp104_ = NULL; + gchar* _tmp105_ = NULL; + gint _tmp106_ = 0; + gboolean _tmp107_ = FALSE; GError * _inner_error_ = NULL; #line 458 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" g_return_if_fail (filename != NULL); @@ -2918,7 +2908,7 @@ static void simple_scan_fix_pdf (const gchar* filename, GError** error) { data = (g_free (data), NULL); #line 461 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" return; -#line 2921 "simple-scan.c" +#line 2911 "simple-scan.c" } #line 463 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _tmp3_ = filename; @@ -2943,391 +2933,480 @@ static void simple_scan_fix_pdf (const gchar* filename, GError** error) { #line 468 "/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" - _tmp8_ = g_regex_new ("^\\d\\d\\d\\d\\d\\d\\d\\d\\d\\d 0000 n$", G_REGEX_RAW, 0, &_inner_error_); -#line 469 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - xref_regex = _tmp8_; -#line 469 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - if (_inner_error_ != NULL) { -#line 469 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - g_propagate_error (error, _inner_error_); -#line 469 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _fclose0 (fixed_file); -#line 469 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - data = (g_free (data), NULL); -#line 469 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - return; -#line 2959 "simple-scan.c" - } + startxref_line = -1; +#line 470 "/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" - _tmp9_ = g_string_new (""); + _tmp8_ = g_string_new (""); #line 471 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - line = _tmp9_; + line = _tmp8_; #line 472 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" while (TRUE) { -#line 2967 "simple-scan.c" - gint _tmp10_ = 0; - guint8* _tmp11_ = NULL; - gint _tmp11__length1 = 0; +#line 2945 "simple-scan.c" + gint _tmp9_ = 0; gint end_offset = 0; - gint _tmp12_ = 0; - GString* _tmp13_ = NULL; - GString* _tmp23_ = NULL; - const gchar* _tmp24_ = NULL; - gboolean _tmp26_ = FALSE; - gint _tmp27_ = 0; - gboolean _tmp31_ = FALSE; - gint _tmp82_ = 0; - gint _tmp83_ = 0; -#line 472 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp10_ = offset; -#line 472 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp11_ = data; + gint _tmp10_ = 0; + GString* _tmp11_ = NULL; + GString* _tmp19_ = NULL; + const gchar* _tmp20_ = NULL; + GString* _tmp22_ = NULL; + const gchar* _tmp23_ = NULL; + gboolean _tmp25_ = FALSE; + gint _tmp26_ = 0; + gint _tmp100_ = 0; + gint _tmp101_ = 0; #line 472 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp11__length1 = data_length1; + _tmp9_ = offset; #line 472 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - if (!(_tmp10_ < _tmp11__length1)) { + if (!(_tmp9_ < data_length1)) { #line 472 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" break; -#line 2991 "simple-scan.c" +#line 2964 "simple-scan.c" } #line 474 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp12_ = offset; + _tmp10_ = offset; #line 474 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - end_offset = _tmp12_; + end_offset = _tmp10_; #line 475 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp13_ = line; + _tmp11_ = line; #line 475 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - g_string_assign (_tmp13_, ""); + g_string_assign (_tmp11_, ""); #line 476 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" while (TRUE) { -#line 3003 "simple-scan.c" - gint _tmp14_ = 0; - guint8* _tmp15_ = NULL; - gint _tmp15__length1 = 0; +#line 2976 "simple-scan.c" + gint _tmp12_ = 0; guint8 c = 0U; - guint8* _tmp16_ = NULL; - gint _tmp16__length1 = 0; + gint _tmp13_ = 0; + guint8 _tmp14_ = 0U; + GString* _tmp15_ = NULL; + guint8 _tmp16_ = 0U; gint _tmp17_ = 0; guint8 _tmp18_ = 0U; - GString* _tmp19_ = NULL; - guint8 _tmp20_ = 0U; - gint _tmp21_ = 0; - guint8 _tmp22_ = 0U; -#line 476 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp14_ = end_offset; #line 476 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp15_ = data; + _tmp12_ = end_offset; #line 476 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp15__length1 = data_length1; -#line 476 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - if (!(_tmp14_ < _tmp15__length1)) { + if (!(_tmp12_ < data_length1)) { #line 476 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" break; -#line 3026 "simple-scan.c" +#line 2991 "simple-scan.c" } #line 478 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp16_ = data; -#line 478 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp16__length1 = data_length1; -#line 478 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp17_ = end_offset; + _tmp13_ = end_offset; #line 478 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp18_ = _tmp16_[_tmp17_]; + _tmp14_ = data[_tmp13_]; #line 478 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - c = _tmp18_; + c = _tmp14_; #line 479 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp19_ = line; + _tmp15_ = line; #line 479 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp20_ = c; + _tmp16_ = c; #line 479 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - g_string_append_c (_tmp19_, (gchar) _tmp20_); + g_string_append_c (_tmp15_, (gchar) _tmp16_); #line 480 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp21_ = end_offset; + _tmp17_ = end_offset; #line 480 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - end_offset = _tmp21_ + 1; + end_offset = _tmp17_ + 1; #line 481 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp22_ = c; + _tmp18_ = c; #line 481 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - if (_tmp22_ == ((guint8) '\n')) { + if (_tmp18_ == ((guint8) '\n')) { #line 482 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" break; -#line 3054 "simple-scan.c" +#line 3015 "simple-scan.c" } } #line 485 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp23_ = line; + _tmp19_ = line; #line 485 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp24_ = _tmp23_->str; + _tmp20_ = _tmp19_->str; #line 485 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - if (g_strcmp0 (_tmp24_, "startxref\n") == 0) { -#line 3063 "simple-scan.c" - gint _tmp25_ = 0; + if (g_strcmp0 (_tmp20_, "startxref\n") == 0) { +#line 3024 "simple-scan.c" + gint _tmp21_ = 0; #line 486 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp25_ = line_number; + _tmp21_ = line_number; #line 486 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - xref_line = _tmp25_; -#line 3069 "simple-scan.c" + startxref_line = _tmp21_; +#line 3030 "simple-scan.c" } +#line 488 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _tmp22_ = line; +#line 488 "/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" + if (g_strcmp0 (_tmp23_, "xref\n") == 0) { +#line 3038 "simple-scan.c" + gint _tmp24_ = 0; #line 489 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp27_ = line_number; -#line 489 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - if (_tmp27_ < 2) { -#line 3075 "simple-scan.c" - GString* _tmp28_ = NULL; - const gchar* _tmp29_ = NULL; - gboolean _tmp30_ = FALSE; -#line 489 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp28_ = line; -#line 489 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp29_ = _tmp28_->str; + _tmp24_ = line_number; #line 489 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp30_ = g_str_has_prefix (_tmp29_, "%%"); -#line 489 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp26_ = _tmp30_; -#line 3087 "simple-scan.c" - } else { -#line 489 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp26_ = FALSE; -#line 3091 "simple-scan.c" + xref_line = _tmp24_; +#line 3044 "simple-scan.c" } -#line 489 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp31_ = _tmp26_; -#line 489 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - if (_tmp31_) { -#line 3097 "simple-scan.c" - gint _tmp32_ = 0; - FILE* _tmp33_ = NULL; - GString* _tmp34_ = NULL; - const gchar* _tmp35_ = NULL; - gchar* _tmp36_ = NULL; - gchar* _tmp37_ = NULL; -#line 491 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp32_ = xref_offset; -#line 491 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - xref_offset = _tmp32_ - 1; #line 492 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp33_ = fixed_file; + _tmp26_ = line_number; +#line 492 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + if (_tmp26_ < 2) { +#line 3050 "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" - _tmp34_ = line; + _tmp27_ = line; #line 492 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp35_ = _tmp34_->str; + _tmp28_ = _tmp27_->str; #line 492 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp36_ = string_substring (_tmp35_, (glong) 1, (glong) (-1)); + _tmp29_ = g_str_has_prefix (_tmp28_, "%%"); #line 492 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp37_ = _tmp36_; + _tmp25_ = _tmp29_; +#line 3062 "simple-scan.c" + } else { #line 492 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - fprintf (_tmp33_, "%s", _tmp37_); + _tmp25_ = FALSE; +#line 3066 "simple-scan.c" + } #line 492 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _g_free0 (_tmp37_); -#line 3122 "simple-scan.c" + if (_tmp25_) { +#line 3070 "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" + _tmp30_ = xref_offset; +#line 494 "/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" + _tmp31_ = fixed_file; +#line 495 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _tmp32_ = line; +#line 495 "/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" + _tmp34_ = string_substring (_tmp33_, (glong) 1, (glong) (-1)); +#line 495 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _tmp35_ = _tmp34_; +#line 495 "/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" + _g_free0 (_tmp35_); +#line 3095 "simple-scan.c" } else { - GRegex* _tmp38_ = NULL; - GString* _tmp39_ = NULL; - const gchar* _tmp40_ = NULL; - GMatchInfo* _tmp41_ = NULL; - gboolean _tmp42_ = FALSE; -#line 496 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp38_ = xref_regex; -#line 496 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp39_ = line; -#line 496 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp40_ = _tmp39_->str; -#line 496 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp42_ = g_regex_match (_tmp38_, _tmp40_, 0, &_tmp41_); -#line 496 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _g_match_info_unref0 (xref_match); -#line 496 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - xref_match = _tmp41_; -#line 496 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - if (_tmp42_) { -#line 3143 "simple-scan.c" - FILE* _tmp43_ = NULL; - GMatchInfo* _tmp44_ = NULL; - const gchar* _tmp45_ = NULL; - gint _tmp46_ = 0; - gint _tmp47_ = 0; -#line 497 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp43_ = fixed_file; -#line 497 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp44_ = xref_match; -#line 497 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp45_ = g_match_info_get_string (_tmp44_); -#line 497 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp46_ = atoi (_tmp45_); -#line 497 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp47_ = xref_offset; -#line 497 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - fprintf (_tmp43_, "%010d 00000 n \n", _tmp46_ + _tmp47_); -#line 3161 "simple-scan.c" + gboolean _tmp36_ = FALSE; + gint _tmp37_ = 0; + gint _tmp38_ = 0; +#line 499 "/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" + _tmp38_ = xref_line; +#line 499 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + if (_tmp37_ == (_tmp38_ + 1)) { +#line 3106 "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" + _tmp39_ = line; +#line 499 "/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" + _tmp41_ = g_str_has_prefix (_tmp40_, "1 "); +#line 499 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _tmp36_ = _tmp41_; +#line 3118 "simple-scan.c" } else { - gboolean _tmp48_ = FALSE; - gint _tmp49_ = 0; - gboolean _tmp52_ = FALSE; -#line 500 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp49_ = xref_line; -#line 500 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - if (_tmp49_ > 0) { -#line 3170 "simple-scan.c" - gint _tmp50_ = 0; - gint _tmp51_ = 0; -#line 500 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp50_ = line_number; -#line 500 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp51_ = xref_line; -#line 500 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp48_ = _tmp50_ == (_tmp51_ + 1); -#line 3179 "simple-scan.c" - } else { -#line 500 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp48_ = FALSE; -#line 3183 "simple-scan.c" - } -#line 500 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp52_ = _tmp48_; -#line 500 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - if (_tmp52_) { -#line 3189 "simple-scan.c" - FILE* _tmp53_ = NULL; - GString* _tmp54_ = NULL; - const gchar* _tmp55_ = NULL; - gint _tmp56_ = 0; - gint _tmp57_ = 0; - gchar* _tmp58_ = NULL; - gchar* _tmp59_ = NULL; -#line 501 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp53_ = fixed_file; -#line 501 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp54_ = line; +#line 499 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _tmp36_ = FALSE; +#line 3122 "simple-scan.c" + } +#line 499 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + if (_tmp36_) { +#line 3126 "simple-scan.c" + GString* _tmp42_ = NULL; + const gchar* _tmp43_ = NULL; + gchar* _tmp44_ = NULL; + gchar* _tmp45_ = NULL; + gint _tmp46_ = 0; + FILE* _tmp47_ = NULL; + gint _tmp48_ = 0; + FILE* _tmp49_ = NULL; #line 501 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp55_ = _tmp54_->str; + _tmp42_ = line; #line 501 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp56_ = atoi (_tmp55_); + _tmp43_ = _tmp42_->str; #line 501 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp57_ = xref_offset; + _tmp44_ = string_substring (_tmp43_, (glong) 2, (glong) (-1)); #line 501 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp58_ = g_strdup_printf ("%d\n", _tmp56_ + _tmp57_); + _tmp45_ = _tmp44_; #line 501 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp59_ = _tmp58_; + _tmp46_ = atoi (_tmp45_); #line 501 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - fprintf (_tmp53_, "%s", _tmp59_); + fixed_size = _tmp46_ + 1; #line 501 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _g_free0 (_tmp59_); -#line 3215 "simple-scan.c" + _g_free0 (_tmp45_); +#line 502 "/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" + _tmp48_ = fixed_size; +#line 502 "/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" + _tmp49_ = fixed_file; +#line 503 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + fprintf (_tmp49_, "0000000000 65535 f \n"); +#line 3159 "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" + _tmp51_ = line_number; +#line 507 "/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" + if (_tmp51_ > _tmp52_) { +#line 3170 "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" + _tmp53_ = line; +#line 507 "/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" + _tmp55_ = g_str_has_suffix (_tmp54_, " 0000 n\n"); +#line 507 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _tmp50_ = _tmp55_; +#line 3182 "simple-scan.c" } else { - gboolean _tmp60_ = FALSE; - gint _tmp61_ = 0; +#line 507 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _tmp50_ = FALSE; +#line 3186 "simple-scan.c" + } +#line 507 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + if (_tmp50_) { +#line 3190 "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" + _tmp56_ = fixed_file; +#line 508 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _tmp57_ = line; +#line 508 "/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" + _tmp59_ = atoi (_tmp58_); +#line 508 "/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" + fprintf (_tmp56_, "%010d 00000 n \n", _tmp59_ + _tmp60_); +#line 3208 "simple-scan.c" + } else { + gboolean _tmp61_ = FALSE; gint _tmp62_ = 0; - gboolean _tmp66_ = FALSE; -#line 504 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp61_ = line_number; -#line 504 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp62_ = xref_line; -#line 504 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - if (_tmp61_ == (_tmp62_ + 2)) { -#line 3227 "simple-scan.c" - GString* _tmp63_ = NULL; - const gchar* _tmp64_ = NULL; - gboolean _tmp65_ = FALSE; -#line 504 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp63_ = line; -#line 504 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp64_ = _tmp63_->str; -#line 504 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp65_ = g_str_has_prefix (_tmp64_, "%%%%"); -#line 504 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp60_ = _tmp65_; -#line 3239 "simple-scan.c" +#line 511 "/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" + if (_tmp62_ > 0) { +#line 3216 "simple-scan.c" + gint _tmp63_ = 0; + gint _tmp64_ = 0; +#line 511 "/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" + _tmp64_ = startxref_line; +#line 511 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _tmp61_ = _tmp63_ == (_tmp64_ + 1); +#line 3225 "simple-scan.c" } else { -#line 504 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp60_ = FALSE; -#line 3243 "simple-scan.c" +#line 511 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _tmp61_ = FALSE; +#line 3229 "simple-scan.c" } -#line 504 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp66_ = _tmp60_; -#line 504 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - if (_tmp66_) { -#line 3249 "simple-scan.c" - FILE* _tmp67_ = NULL; - GString* _tmp68_ = NULL; - const gchar* _tmp69_ = NULL; +#line 511 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + if (_tmp61_) { +#line 3233 "simple-scan.c" + FILE* _tmp65_ = NULL; + GString* _tmp66_ = NULL; + const gchar* _tmp67_ = NULL; + gint _tmp68_ = 0; + gint _tmp69_ = 0; gchar* _tmp70_ = NULL; gchar* _tmp71_ = NULL; -#line 505 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp67_ = fixed_file; -#line 505 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp68_ = line; -#line 505 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp69_ = _tmp68_->str; -#line 505 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp70_ = string_substring (_tmp69_, (glong) 2, (glong) (-1)); -#line 505 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 512 "/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" + _tmp66_ = line; +#line 512 "/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" + _tmp68_ = atoi (_tmp67_); +#line 512 "/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" + _tmp70_ = g_strdup_printf ("%d\n", _tmp68_ + _tmp69_); +#line 512 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _tmp71_ = _tmp70_; -#line 505 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - fprintf (_tmp67_, "%s", _tmp71_); -#line 505 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 512 "/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" _g_free0 (_tmp71_); -#line 3269 "simple-scan.c" +#line 3259 "simple-scan.c" } else { - { - gint i = 0; - gint _tmp72_ = 0; -#line 508 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp72_ = offset; -#line 508 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - i = _tmp72_; -#line 3278 "simple-scan.c" - { - gboolean _tmp73_ = FALSE; -#line 508 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp73_ = TRUE; -#line 508 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - while (TRUE) { -#line 3285 "simple-scan.c" - gboolean _tmp74_ = FALSE; - gint _tmp76_ = 0; - gint _tmp77_ = 0; - FILE* _tmp78_ = NULL; - guint8* _tmp79_ = NULL; - gint _tmp79__length1 = 0; - gint _tmp80_ = 0; - guint8 _tmp81_ = 0U; -#line 508 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp74_ = _tmp73_; -#line 508 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - if (!_tmp74_) { -#line 3298 "simple-scan.c" - gint _tmp75_ = 0; -#line 508 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp75_ = i; -#line 508 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - i = _tmp75_ + 1; + gboolean _tmp72_ = FALSE; + gint _tmp73_ = 0; +#line 514 "/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" + if (_tmp73_ > 0) { +#line 3267 "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" + _tmp74_ = line; +#line 514 "/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" + _tmp76_ = g_str_has_prefix (_tmp75_, "/Size "); +#line 514 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _tmp72_ = _tmp76_; +#line 3279 "simple-scan.c" + } else { +#line 514 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _tmp72_ = FALSE; +#line 3283 "simple-scan.c" + } +#line 514 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + if (_tmp72_) { +#line 3287 "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" + _tmp77_ = fixed_file; +#line 515 "/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" + _tmp79_ = g_strdup_printf ("/Size %d\n", _tmp78_); +#line 515 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _tmp80_ = _tmp79_; +#line 515 "/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" + _g_free0 (_tmp80_); #line 3304 "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" + _tmp82_ = line_number; +#line 518 "/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" + if (_tmp82_ == (_tmp83_ + 2)) { +#line 3315 "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" + _tmp84_ = line; +#line 518 "/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" + _tmp86_ = g_str_has_prefix (_tmp85_, "%%%%"); +#line 518 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _tmp81_ = _tmp86_; +#line 3327 "simple-scan.c" + } else { +#line 518 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _tmp81_ = FALSE; +#line 3331 "simple-scan.c" + } +#line 518 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + if (_tmp81_) { +#line 3335 "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" + _tmp87_ = fixed_file; +#line 519 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _tmp88_ = line; +#line 519 "/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" + _tmp90_ = string_substring (_tmp89_, (glong) 2, (glong) (-1)); +#line 519 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _tmp91_ = _tmp90_; +#line 519 "/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" + _g_free0 (_tmp91_); +#line 3355 "simple-scan.c" + } else { + { + gint i = 0; + gint _tmp92_ = 0; +#line 522 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _tmp92_ = offset; +#line 522 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + i = _tmp92_; +#line 3364 "simple-scan.c" + { + gboolean _tmp93_ = FALSE; +#line 522 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _tmp93_ = TRUE; +#line 522 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + while (TRUE) { +#line 3371 "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" + if (!_tmp93_) { +#line 3379 "simple-scan.c" + gint _tmp94_ = 0; +#line 522 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _tmp94_ = i; +#line 522 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + i = _tmp94_ + 1; +#line 3385 "simple-scan.c" + } +#line 522 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _tmp93_ = FALSE; +#line 522 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _tmp95_ = i; +#line 522 "/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" + if (!(_tmp95_ < _tmp96_)) { +#line 522 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + break; +#line 3397 "simple-scan.c" + } +#line 523 "/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" + _tmp98_ = i; +#line 523 "/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" + fputc ((gchar) _tmp99_, _tmp97_); +#line 3407 "simple-scan.c" + } } -#line 508 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp73_ = FALSE; -#line 508 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp76_ = i; -#line 508 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp77_ = end_offset; -#line 508 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - if (!(_tmp76_ < _tmp77_)) { -#line 508 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - break; -#line 3316 "simple-scan.c" - } -#line 509 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp78_ = fixed_file; -#line 509 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp79_ = data; -#line 509 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp79__length1 = data_length1; -#line 509 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp80_ = i; -#line 509 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp81_ = _tmp79_[_tmp80_]; -#line 509 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - fputc ((gchar) _tmp81_, _tmp78_); -#line 3330 "simple-scan.c" } } } @@ -3335,69 +3414,65 @@ static void simple_scan_fix_pdf (const gchar* filename, GError** error) { } } } -#line 511 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp82_ = line_number; -#line 511 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - line_number = _tmp82_ + 1; -#line 512 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp83_ = end_offset; -#line 512 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - offset = _tmp83_; -#line 3346 "simple-scan.c" +#line 525 "/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_number = _tmp100_ + 1; +#line 526 "/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" + offset = _tmp101_; +#line 3425 "simple-scan.c" } -#line 515 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp84_ = filename; -#line 515 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp85_ = filename; -#line 515 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp86_ = g_strconcat (_tmp85_, "~", NULL); -#line 515 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp87_ = _tmp86_; -#line 515 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp88_ = g_rename (_tmp84_, _tmp87_); -#line 515 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp89_ = _tmp88_ >= 0; -#line 515 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _g_free0 (_tmp87_); -#line 515 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - if (_tmp89_) { -#line 3364 "simple-scan.c" - const gchar* _tmp90_ = NULL; - gchar* _tmp91_ = NULL; - gchar* _tmp92_ = NULL; - const gchar* _tmp93_ = NULL; -#line 516 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp90_ = filename; -#line 516 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp91_ = g_strconcat (_tmp90_, ".fixed", NULL); -#line 516 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp92_ = _tmp91_; -#line 516 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp93_ = filename; -#line 516 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - g_rename (_tmp92_, _tmp93_); -#line 516 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _g_free0 (_tmp92_); -#line 3381 "simple-scan.c" +#line 529 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _tmp102_ = filename; +#line 529 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _tmp103_ = filename; +#line 529 "/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" + _tmp105_ = _tmp104_; +#line 529 "/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" + _tmp107_ = _tmp106_ >= 0; +#line 529 "/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" + if (_tmp107_) { +#line 3443 "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" + _tmp108_ = filename; +#line 530 "/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" + _tmp110_ = _tmp109_; +#line 530 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _tmp111_ = filename; +#line 530 "/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" + _g_free0 (_tmp110_); +#line 3460 "simple-scan.c" } #line 458 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _g_string_free0 (line); #line 458 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _g_match_info_unref0 (xref_match); -#line 458 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _g_regex_unref0 (xref_regex); -#line 458 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _fclose0 (fixed_file); #line 458 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" data = (g_free (data), NULL); -#line 3393 "simple-scan.c" +#line 3468 "simple-scan.c" } static void _simple_scan_log_cb_glog_func (const gchar* log_domain, GLogLevelFlags log_levels, const gchar* message, gpointer self) { -#line 580 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 594 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" simple_scan_log_cb (log_domain, log_levels, message); -#line 3400 "simple-scan.c" +#line 3475 "simple-scan.c" } @@ -3412,60 +3487,60 @@ gint simple_scan_main (gchar** args, int args_length1) { gboolean _tmp14_ = FALSE; const gchar* _tmp16_ = NULL; ScanDevice* device = NULL; - gchar** _tmp29_ = NULL; - gint _tmp29__length1 = 0; - GTimer* _tmp39_ = NULL; + gchar** _tmp28_ = NULL; + gint _tmp28__length1 = 0; + GTimer* _tmp38_ = NULL; gchar* path = NULL; - const gchar* _tmp40_ = NULL; - gchar* _tmp41_ = NULL; + const gchar* _tmp39_ = NULL; + gchar* _tmp40_ = NULL; + const gchar* _tmp41_ = NULL; const gchar* _tmp42_ = NULL; - const gchar* _tmp43_ = NULL; - gchar* _tmp44_ = NULL; - const gchar* _tmp45_ = NULL; - FILE* _tmp46_ = NULL; - pid_t _tmp47_ = 0; + gchar* _tmp43_ = NULL; + const gchar* _tmp44_ = NULL; + FILE* _tmp45_ = NULL; + pid_t _tmp46_ = 0; SimpleScan* app = NULL; - ScanDevice* _tmp48_ = NULL; + ScanDevice* _tmp47_ = NULL; + SimpleScan* _tmp48_ = NULL; SimpleScan* _tmp49_ = NULL; - SimpleScan* _tmp50_ = NULL; - gint _tmp51_ = 0; + gint _tmp50_ = 0; GError * _inner_error_ = NULL; -#line 521 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 535 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" setlocale (LC_ALL, ""); -#line 522 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 536 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" bindtextdomain (GETTEXT_PACKAGE, LOCALE_DIR); -#line 523 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 537 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); -#line 524 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 538 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" textdomain (GETTEXT_PACKAGE); -#line 526 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 540 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" gtk_init (&args_length1, &args); -#line 528 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 542 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _tmp0_ = _ ("[DEVICE...] - Scanning utility"); -#line 528 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 542 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _tmp1_ = g_option_context_new (_tmp0_); -#line 528 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 542 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" c = _tmp1_; -#line 530 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 544 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _tmp2_ = c; -#line 530 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 544 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" g_option_context_add_main_entries (_tmp2_, SIMPLE_SCAN_options, GETTEXT_PACKAGE); -#line 531 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 545 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _tmp3_ = c; -#line 531 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 545 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _tmp4_ = gtk_get_option_group (TRUE); -#line 531 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 545 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" g_option_context_add_group (_tmp3_, _tmp4_); -#line 3459 "simple-scan.c" +#line 3534 "simple-scan.c" { GOptionContext* _tmp5_ = NULL; -#line 534 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 548 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _tmp5_ = c; -#line 534 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 548 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" g_option_context_parse (_tmp5_, &args_length1, &args, &_inner_error_); -#line 534 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 548 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" if (_inner_error_ != NULL) { -#line 3468 "simple-scan.c" +#line 3543 "simple-scan.c" goto __catch12_g_error; } } @@ -3482,150 +3557,147 @@ gint simple_scan_main (gchar** args, int args_length1) { gint _tmp11__length1 = 0; const gchar* _tmp12_ = NULL; FILE* _tmp13_ = NULL; -#line 532 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 546 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" e = _inner_error_; -#line 532 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 546 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _inner_error_ = NULL; -#line 538 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 552 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _tmp6_ = stderr; -#line 538 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 552 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _tmp7_ = e; -#line 538 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 552 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _tmp8_ = _tmp7_->message; -#line 538 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 552 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" fprintf (_tmp6_, "%s\n", _tmp8_); -#line 539 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 553 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _tmp9_ = stderr; -#line 539 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 553 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _tmp10_ = _ ("Run '%s --help' to see a full list of available command line options."); -#line 539 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 553 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _tmp11_ = args; -#line 539 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 553 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _tmp11__length1 = args_length1; -#line 539 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 553 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _tmp12_ = _tmp11_[0]; -#line 539 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 553 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" fprintf (_tmp9_, _tmp10_, _tmp12_); -#line 541 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 555 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _tmp13_ = stderr; -#line 541 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 555 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" fprintf (_tmp13_, "\n"); -#line 542 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 556 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" result = EXIT_FAILURE; -#line 542 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 556 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _g_error_free0 (e); -#line 542 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 556 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _g_option_context_free0 (c); -#line 542 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 556 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" return result; -#line 3521 "simple-scan.c" +#line 3596 "simple-scan.c" } __finally12: -#line 532 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 546 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" if (_inner_error_ != NULL) { -#line 532 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 546 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _g_option_context_free0 (c); -#line 532 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 546 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 532 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 546 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" g_clear_error (&_inner_error_); -#line 532 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 546 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" return 0; -#line 3534 "simple-scan.c" +#line 3609 "simple-scan.c" } -#line 544 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 558 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _tmp14_ = simple_scan_show_version; -#line 544 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 558 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" if (_tmp14_) { -#line 3540 "simple-scan.c" +#line 3615 "simple-scan.c" FILE* _tmp15_ = NULL; -#line 547 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 561 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _tmp15_ = stderr; -#line 547 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 561 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" fprintf (_tmp15_, "simple-scan %s\n", VERSION); -#line 548 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 562 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" result = EXIT_SUCCESS; -#line 548 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 562 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _g_option_context_free0 (c); -#line 548 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 562 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" return result; -#line 3552 "simple-scan.c" +#line 3627 "simple-scan.c" } -#line 550 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 564 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _tmp16_ = simple_scan_fix_pdf_filename; -#line 550 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 564 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" if (_tmp16_ != NULL) { -#line 3558 "simple-scan.c" +#line 3633 "simple-scan.c" { const gchar* _tmp17_ = NULL; -#line 554 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 568 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _tmp17_ = simple_scan_fix_pdf_filename; -#line 554 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 568 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" simple_scan_fix_pdf (_tmp17_, &_inner_error_); -#line 554 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 568 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" if (_inner_error_ != NULL) { -#line 3567 "simple-scan.c" +#line 3642 "simple-scan.c" goto __catch13_g_error; } { gint i = 0; -#line 555 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 569 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" i = 1; -#line 3574 "simple-scan.c" +#line 3649 "simple-scan.c" { gboolean _tmp18_ = FALSE; -#line 555 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 569 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _tmp18_ = TRUE; -#line 555 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 569 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" while (TRUE) { -#line 3581 "simple-scan.c" - gboolean _tmp19_ = FALSE; - gint _tmp21_ = 0; +#line 3656 "simple-scan.c" + gint _tmp20_ = 0; + gchar** _tmp21_ = NULL; + gint _tmp21__length1 = 0; gchar** _tmp22_ = NULL; gint _tmp22__length1 = 0; - gchar** _tmp23_ = NULL; - gint _tmp23__length1 = 0; - gint _tmp24_ = 0; - const gchar* _tmp25_ = NULL; -#line 555 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp19_ = _tmp18_; -#line 555 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - if (!_tmp19_) { -#line 3594 "simple-scan.c" - gint _tmp20_ = 0; -#line 555 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp20_ = i; -#line 555 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - i = _tmp20_ + 1; -#line 3600 "simple-scan.c" + gint _tmp23_ = 0; + const gchar* _tmp24_ = NULL; +#line 569 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + if (!_tmp18_) { +#line 3666 "simple-scan.c" + gint _tmp19_ = 0; +#line 569 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _tmp19_ = i; +#line 569 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + i = _tmp19_ + 1; +#line 3672 "simple-scan.c" } -#line 555 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 569 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _tmp18_ = FALSE; -#line 555 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp21_ = i; -#line 555 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp22_ = args; -#line 555 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp22__length1 = args_length1; -#line 555 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - if (!(_tmp21_ < _tmp22__length1)) { -#line 555 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 569 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _tmp20_ = i; +#line 569 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _tmp21_ = args; +#line 569 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _tmp21__length1 = args_length1; +#line 569 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + if (!(_tmp20_ < _tmp21__length1)) { +#line 569 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" break; -#line 3614 "simple-scan.c" +#line 3686 "simple-scan.c" } -#line 556 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp23_ = args; -#line 556 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp23__length1 = args_length1; -#line 556 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp24_ = i; -#line 556 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp25_ = _tmp23_[_tmp24_]; -#line 556 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - simple_scan_fix_pdf (_tmp25_, &_inner_error_); -#line 556 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 570 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _tmp22_ = args; +#line 570 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _tmp22__length1 = args_length1; +#line 570 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _tmp23_ = i; +#line 570 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _tmp24_ = _tmp22_[_tmp23_]; +#line 570 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + simple_scan_fix_pdf (_tmp24_, &_inner_error_); +#line 570 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" if (_inner_error_ != NULL) { -#line 3628 "simple-scan.c" +#line 3700 "simple-scan.c" goto __catch13_g_error; } } @@ -3636,178 +3708,179 @@ gint simple_scan_main (gchar** args, int args_length1) { __catch13_g_error: { GError* e = NULL; - FILE* _tmp26_ = NULL; - GError* _tmp27_ = NULL; - const gchar* _tmp28_ = NULL; -#line 552 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + FILE* _tmp25_ = NULL; + GError* _tmp26_ = NULL; + const gchar* _tmp27_ = NULL; +#line 566 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" e = _inner_error_; -#line 552 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 566 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _inner_error_ = NULL; -#line 560 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp26_ = stderr; -#line 560 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp27_ = e; -#line 560 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp28_ = _tmp27_->message; -#line 560 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - fprintf (_tmp26_, "Error fixing PDF file: %s", _tmp28_); -#line 561 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 574 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _tmp25_ = stderr; +#line 574 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _tmp26_ = e; +#line 574 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _tmp27_ = _tmp26_->message; +#line 574 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + fprintf (_tmp25_, "Error fixing PDF file: %s", _tmp27_); +#line 575 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" result = EXIT_FAILURE; -#line 561 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 575 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _g_error_free0 (e); -#line 561 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 575 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _g_option_context_free0 (c); -#line 561 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 575 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" return result; -#line 3662 "simple-scan.c" +#line 3734 "simple-scan.c" } __finally13: -#line 552 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 566 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" if (_inner_error_ != NULL) { -#line 552 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 566 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _g_option_context_free0 (c); -#line 552 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 566 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 552 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 566 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" g_clear_error (&_inner_error_); -#line 552 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 566 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" return 0; -#line 3675 "simple-scan.c" +#line 3747 "simple-scan.c" } -#line 563 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 577 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" result = EXIT_SUCCESS; -#line 563 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 577 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _g_option_context_free0 (c); -#line 563 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 577 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" return result; -#line 3683 "simple-scan.c" +#line 3755 "simple-scan.c" } -#line 566 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 580 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" device = NULL; -#line 567 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp29_ = args; -#line 567 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp29__length1 = args_length1; -#line 567 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - if (_tmp29__length1 > 1) { -#line 3693 "simple-scan.c" +#line 581 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _tmp28_ = args; +#line 581 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _tmp28__length1 = args_length1; +#line 581 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + if (_tmp28__length1 > 1) { +#line 3765 "simple-scan.c" + ScanDevice* _tmp29_ = NULL; ScanDevice* _tmp30_ = NULL; - ScanDevice* _tmp31_ = NULL; - gchar** _tmp32_ = NULL; - gint _tmp32__length1 = 0; - const gchar* _tmp33_ = NULL; - gchar* _tmp34_ = NULL; - ScanDevice* _tmp35_ = NULL; - gchar** _tmp36_ = NULL; - gint _tmp36__length1 = 0; - const gchar* _tmp37_ = NULL; - gchar* _tmp38_ = NULL; -#line 569 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp30_ = scan_device_new (); -#line 569 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + gchar** _tmp31_ = NULL; + gint _tmp31__length1 = 0; + const gchar* _tmp32_ = NULL; + gchar* _tmp33_ = NULL; + ScanDevice* _tmp34_ = NULL; + gchar** _tmp35_ = NULL; + gint _tmp35__length1 = 0; + const gchar* _tmp36_ = NULL; + gchar* _tmp37_ = NULL; +#line 583 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _tmp29_ = scan_device_new (); +#line 583 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _scan_device_unref0 (device); -#line 569 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - device = _tmp30_; -#line 570 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp31_ = device; -#line 570 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp32_ = args; -#line 570 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp32__length1 = args_length1; -#line 570 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp33_ = _tmp32_[1]; -#line 570 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp34_ = g_strdup (_tmp33_); -#line 570 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _g_free0 (_tmp31_->name); -#line 570 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp31_->name = _tmp34_; -#line 571 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp35_ = device; -#line 571 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp36_ = args; -#line 571 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp36__length1 = args_length1; -#line 571 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp37_ = _tmp36_[1]; -#line 571 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp38_ = g_strdup (_tmp37_); -#line 571 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _g_free0 (_tmp35_->label); -#line 571 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp35_->label = _tmp38_; -#line 3739 "simple-scan.c" - } -#line 575 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp39_ = g_timer_new (); -#line 575 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _g_timer_destroy0 (simple_scan_log_timer); -#line 575 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - simple_scan_log_timer = _tmp39_; -#line 576 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp40_ = g_get_user_cache_dir (); -#line 576 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp41_ = g_build_filename (_tmp40_, "simple-scan", NULL, NULL); -#line 576 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - path = _tmp41_; -#line 577 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp42_ = path; -#line 577 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - g_mkdir_with_parents (_tmp42_, 0700); -#line 578 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp43_ = g_get_user_cache_dir (); -#line 578 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp44_ = g_build_filename (_tmp43_, "simple-scan", "simple-scan.log", NULL, NULL); -#line 578 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _g_free0 (path); -#line 578 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - path = _tmp44_; -#line 579 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp45_ = path; -#line 579 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp46_ = g_fopen (_tmp45_, "w"); -#line 579 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _fclose0 (simple_scan_log_file); -#line 579 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - simple_scan_log_file = _tmp46_; -#line 580 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - g_log_set_default_handler (_simple_scan_log_cb_glog_func, NULL); -#line 582 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp47_ = getpid (); -#line 582 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - g_debug ("simple-scan.vala:582: Starting Simple Scan %s, PID=%i", VERSION, (gint) _tmp47_); +#line 583 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + device = _tmp29_; +#line 584 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _tmp30_ = device; +#line 584 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _tmp31_ = args; #line 584 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp48_ = device; + _tmp31__length1 = args_length1; #line 584 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp49_ = simple_scan_new (_tmp48_); + _tmp32_ = _tmp31_[1]; #line 584 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - app = _tmp49_; + _tmp33_ = g_strdup (_tmp32_); +#line 584 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _g_free0 (_tmp30_->name); +#line 584 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _tmp30_->name = _tmp33_; #line 585 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp50_ = app; + _tmp34_ = device; #line 585 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _tmp51_ = g_application_run ((GApplication*) _tmp50_, 0, NULL); + _tmp35_ = args; #line 585 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - result = _tmp51_; + _tmp35__length1 = args_length1; #line 585 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _g_object_unref0 (app); + _tmp36_ = _tmp35_[1]; #line 585 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _g_free0 (path); + _tmp37_ = g_strdup (_tmp36_); #line 585 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _scan_device_unref0 (device); + _g_free0 (_tmp34_->label); #line 585 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _tmp34_->label = _tmp37_; +#line 3811 "simple-scan.c" + } +#line 589 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _tmp38_ = g_timer_new (); +#line 589 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _g_timer_destroy0 (simple_scan_log_timer); +#line 589 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + simple_scan_log_timer = _tmp38_; +#line 590 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _tmp39_ = g_get_user_cache_dir (); +#line 590 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _tmp40_ = g_build_filename (_tmp39_, "simple-scan", NULL, NULL); +#line 590 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + path = _tmp40_; +#line 591 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _tmp41_ = path; +#line 591 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + g_mkdir_with_parents (_tmp41_, 0700); +#line 592 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _tmp42_ = g_get_user_cache_dir (); +#line 592 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _tmp43_ = g_build_filename (_tmp42_, "simple-scan", "simple-scan.log", NULL, NULL); +#line 592 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _g_free0 (path); +#line 592 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + path = _tmp43_; +#line 593 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _tmp44_ = path; +#line 593 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _tmp45_ = g_fopen (_tmp44_, "w"); +#line 593 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _fclose0 (simple_scan_log_file); +#line 593 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + simple_scan_log_file = _tmp45_; +#line 594 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + g_log_set_default_handler (_simple_scan_log_cb_glog_func, NULL); +#line 596 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _tmp46_ = getpid (); +#line 596 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + g_debug ("simple-scan.vala:596: Starting Simple Scan %s, PID=%i", VERSION, (gint) _tmp46_); +#line 598 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _tmp47_ = device; +#line 598 "/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" + app = _tmp48_; +#line 599 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" + _tmp49_ = app; +#line 599 "/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" + result = _tmp50_; +#line 599 "/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" + _g_free0 (path); +#line 599 "/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" _g_option_context_free0 (c); -#line 585 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#line 599 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" return result; -#line 3801 "simple-scan.c" +#line 3873 "simple-scan.c" } int main (int argc, char ** argv) { -#line 519 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#if !GLIB_CHECK_VERSION (2,35,0) g_type_init (); -#line 519 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" +#endif +#line 533 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" return simple_scan_main (argv, argc); -#line 3810 "simple-scan.c" +#line 3883 "simple-scan.c" } @@ -3824,7 +3897,7 @@ static void simple_scan_class_init (SimpleScanClass * klass) { G_APPLICATION_CLASS (klass)->shutdown = simple_scan_real_shutdown; #line 12 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" G_OBJECT_CLASS (klass)->finalize = simple_scan_finalize; -#line 3827 "simple-scan.c" +#line 3900 "simple-scan.c" } @@ -3835,7 +3908,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 3838 "simple-scan.c" +#line 3911 "simple-scan.c" } @@ -3848,14 +3921,14 @@ static void simple_scan_finalize (GObject* obj) { #line 34 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _g_object_unref0 (self->priv->udev_client); #line 35 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" - _user_interface_unref0 (self->priv->ui); + _g_object_unref0 (self->priv->ui); #line 36 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _scanner_unref0 (self->priv->scanner); #line 37 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" _book_unref0 (self->priv->book); #line 12 "/home/bob/bzr/simple-scan/trunk/src/simple-scan.vala" G_OBJECT_CLASS (simple_scan_parent_class)->finalize (obj); -#line 3858 "simple-scan.c" +#line 3931 "simple-scan.c" } |