summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/autosave-manager.c2
-rw-r--r--src/book-view.c2
-rw-r--r--src/book.c5605
-rw-r--r--src/book.vala123
-rw-r--r--src/page-view.c2
-rw-r--r--src/page.c42
-rw-r--r--src/scanner.c104
-rw-r--r--src/simple-scan.c118
-rw-r--r--src/simple-scan.vala2
-rw-r--r--src/ui.c3716
-rw-r--r--src/ui.vala11
11 files changed, 5301 insertions, 4426 deletions
diff --git a/src/autosave-manager.c b/src/autosave-manager.c
index 0e78c5d..8dab65b 100644
--- a/src/autosave-manager.c
+++ b/src/autosave-manager.c
@@ -1,4 +1,4 @@
-/* autosave-manager.c generated by valac 0.32.1, the Vala compiler
+/* autosave-manager.c generated by valac 0.34.2, the Vala compiler
* generated from autosave-manager.vala, do not modify */
/*
diff --git a/src/book-view.c b/src/book-view.c
index 9246682..8c9b099 100644
--- a/src/book-view.c
+++ b/src/book-view.c
@@ -1,4 +1,4 @@
-/* book-view.c generated by valac 0.32.1, the Vala compiler
+/* book-view.c generated by valac 0.34.2, the Vala compiler
* generated from book-view.vala, do not modify */
/*
diff --git a/src/book.c b/src/book.c
index 0a7e2e9..1e7f4eb 100644
--- a/src/book.c
+++ b/src/book.c
@@ -1,4 +1,4 @@
-/* book.c generated by valac 0.32.1, the Vala compiler
+/* book.c generated by valac 0.34.2, the Vala compiler
* generated from book.vala, do not modify */
/*
@@ -78,9 +78,9 @@ typedef struct _PsWriterPrivate PsWriterPrivate;
typedef struct _PDFWriter PDFWriter;
typedef struct _PDFWriterClass PDFWriterClass;
typedef struct _PDFWriterPrivate PDFWriterPrivate;
+#define _g_date_time_unref0(var) ((var == NULL) ? NULL : (var = (g_date_time_unref (var), NULL)))
#define _pdf_writer_unref0(var) ((var == NULL) ? NULL : (var = (pdf_writer_unref (var), NULL)))
typedef struct _ParamSpecBook ParamSpecBook;
-#define _g_list_free0(var) ((var == NULL) ? NULL : (var = (g_list_free (var), NULL)))
typedef struct _ParamSpecPDFWriter ParamSpecPDFWriter;
typedef struct _ParamSpecPsWriter ParamSpecPsWriter;
@@ -119,7 +119,9 @@ struct _PDFWriter {
volatile int ref_count;
PDFWriterPrivate * priv;
gsize offset;
- GList* object_offsets;
+ guint* object_offsets;
+ gint object_offsets_length1;
+ gint _object_offsets_size_;
};
struct _PDFWriterClass {
@@ -214,13 +216,15 @@ gpointer value_get_pdf_writer (const GValue* value);
GType pdf_writer_get_type (void) G_GNUC_CONST;
PDFWriter* pdf_writer_new (GFileOutputStream* stream);
PDFWriter* pdf_writer_construct (GType object_type, GFileOutputStream* stream);
+guint pdf_writer_add_object (PDFWriter* self);
void pdf_writer_write_string (PDFWriter* self, const gchar* text);
-guint pdf_writer_start_object (PDFWriter* self);
+void pdf_writer_start_object (PDFWriter* self, guint index);
gboolean page_get_is_color (Page* self);
gint page_get_depth (Page* self);
static guint8* _vala_array_dup1 (guint8* self, int length);
static guint8* _vala_array_dup2 (guint8* self, int length);
void pdf_writer_write (PDFWriter* self, guint8* data, int data_length1);
+static gint book_next_empty_object (PDFWriter* writer, gint start);
void book_save (Book* self, const gchar* type, gint quality, GFile* file, GError** error);
gboolean book_get_needs_saving (Book* self);
static void g_cclosure_user_marshal_VOID__PAGE (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data);
@@ -243,28 +247,28 @@ static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify
static gpointer _page_ref0 (gpointer self) {
#line 45 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return self ? page_ref (self) : NULL;
-#line 247 "book.c"
+#line 251 "book.c"
}
static void _book_page_changed_cb_page_pixels_changed (Page* _sender, gpointer self) {
#line 47 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
book_page_changed_cb ((Book*) self, _sender);
-#line 254 "book.c"
+#line 258 "book.c"
}
static void _book_page_changed_cb_page_crop_changed (Page* _sender, gpointer self) {
#line 48 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
book_page_changed_cb ((Book*) self, _sender);
-#line 261 "book.c"
+#line 265 "book.c"
}
static void _page_unref0_ (gpointer var) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
(var == NULL) ? NULL : (var = (page_unref (var), NULL));
-#line 268 "book.c"
+#line 272 "book.c"
}
@@ -273,7 +277,7 @@ static void _g_list_free__page_unref0_ (GList* self) {
g_list_foreach (self, (GFunc) _page_unref0_, NULL);
#line 14 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_list_free (self);
-#line 277 "book.c"
+#line 281 "book.c"
}
@@ -287,14 +291,14 @@ Book* book_construct (GType object_type) {
self->priv->pages = NULL;
#line 38 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return self;
-#line 291 "book.c"
+#line 295 "book.c"
}
Book* book_new (void) {
#line 38 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return book_construct (TYPE_BOOK);
-#line 298 "book.c"
+#line 302 "book.c"
}
@@ -304,7 +308,7 @@ void book_clear (Book* self) {
g_return_if_fail (self != NULL);
#line 54 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp0_ = self->priv->pages;
-#line 308 "book.c"
+#line 312 "book.c"
{
GList* page_collection = NULL;
GList* page_it = NULL;
@@ -312,14 +316,14 @@ void book_clear (Book* self) {
page_collection = _tmp0_;
#line 54 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
for (page_it = page_collection; page_it != NULL; page_it = page_it->next) {
-#line 316 "book.c"
+#line 320 "book.c"
Page* _tmp1_ = NULL;
Page* page = NULL;
#line 54 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp1_ = _page_ref0 ((Page*) page_it->data);
#line 54 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
page = _tmp1_;
-#line 323 "book.c"
+#line 327 "book.c"
{
Page* _tmp2_ = NULL;
guint _tmp3_ = 0U;
@@ -339,7 +343,7 @@ void book_clear (Book* self) {
g_signal_handlers_disconnect_matched (_tmp4_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _book_page_changed_cb_page_crop_changed, self);
#line 54 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_page_unref0 (page);
-#line 343 "book.c"
+#line 347 "book.c"
}
}
}
@@ -349,7 +353,7 @@ void book_clear (Book* self) {
self->priv->pages = NULL;
#line 60 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_signal_emit_by_name (self, "cleared");
-#line 353 "book.c"
+#line 357 "book.c"
}
@@ -360,7 +364,7 @@ static void book_page_changed_cb (Book* self, Page* page) {
g_return_if_fail (page != NULL);
#line 65 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
book_set_needs_saving (self, TRUE);
-#line 364 "book.c"
+#line 368 "book.c"
}
@@ -394,7 +398,7 @@ void book_append_page (Book* self, Page* page) {
g_signal_emit_by_name (self, "page-added", _tmp4_);
#line 75 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
book_set_needs_saving (self, TRUE);
-#line 398 "book.c"
+#line 402 "book.c"
}
@@ -423,7 +427,7 @@ void book_move_page (Book* self, Page* page, guint location) {
g_signal_emit_by_name (self, "reordered");
#line 83 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
book_set_needs_saving (self, TRUE);
-#line 427 "book.c"
+#line 431 "book.c"
}
@@ -437,7 +441,7 @@ void book_reverse (Book* self) {
new_pages = NULL;
#line 89 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp0_ = self->priv->pages;
-#line 441 "book.c"
+#line 445 "book.c"
{
GList* page_collection = NULL;
GList* page_it = NULL;
@@ -445,14 +449,14 @@ void book_reverse (Book* self) {
page_collection = _tmp0_;
#line 89 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
for (page_it = page_collection; page_it != NULL; page_it = page_it->next) {
-#line 449 "book.c"
+#line 453 "book.c"
Page* _tmp1_ = NULL;
Page* page = NULL;
#line 89 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp1_ = _page_ref0 ((Page*) page_it->data);
#line 89 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
page = _tmp1_;
-#line 456 "book.c"
+#line 460 "book.c"
{
Page* _tmp2_ = NULL;
Page* _tmp3_ = NULL;
@@ -464,7 +468,7 @@ void book_reverse (Book* self) {
new_pages = g_list_prepend (new_pages, _tmp3_);
#line 89 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_page_unref0 (page);
-#line 468 "book.c"
+#line 472 "book.c"
}
}
}
@@ -482,7 +486,7 @@ void book_reverse (Book* self) {
book_set_needs_saving (self, TRUE);
#line 86 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
__g_list_free__page_unref0_0 (new_pages);
-#line 486 "book.c"
+#line 490 "book.c"
}
@@ -508,32 +512,32 @@ void book_combine_sides (Book* self) {
n_front = _tmp1_ - (_tmp3_ / 2);
#line 100 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
new_pages = NULL;
-#line 512 "book.c"
+#line 516 "book.c"
{
gint i = 0;
#line 101 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
i = 0;
-#line 517 "book.c"
+#line 521 "book.c"
{
gboolean _tmp4_ = FALSE;
#line 101 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp4_ = TRUE;
#line 101 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
while (TRUE) {
-#line 524 "book.c"
+#line 528 "book.c"
gint _tmp6_ = 0;
guint _tmp7_ = 0U;
guint _tmp8_ = 0U;
gint _tmp9_ = 0;
#line 101 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (!_tmp4_) {
-#line 531 "book.c"
+#line 535 "book.c"
gint _tmp5_ = 0;
#line 101 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp5_ = i;
#line 101 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
i = _tmp5_ + 1;
-#line 537 "book.c"
+#line 541 "book.c"
}
#line 101 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp4_ = FALSE;
@@ -547,13 +551,13 @@ void book_combine_sides (Book* self) {
if (!(((guint) _tmp6_) < _tmp8_)) {
#line 101 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
break;
-#line 551 "book.c"
+#line 555 "book.c"
}
#line 103 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp9_ = i;
#line 103 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if ((_tmp9_ % 2) == 0) {
-#line 557 "book.c"
+#line 561 "book.c"
GList* _tmp10_ = NULL;
gint _tmp11_ = 0;
gconstpointer _tmp12_ = NULL;
@@ -568,7 +572,7 @@ void book_combine_sides (Book* self) {
_tmp13_ = _page_ref0 ((Page*) _tmp12_);
#line 104 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
new_pages = g_list_append (new_pages, _tmp13_);
-#line 572 "book.c"
+#line 576 "book.c"
} else {
GList* _tmp14_ = NULL;
guint _tmp15_ = 0U;
@@ -587,7 +591,7 @@ void book_combine_sides (Book* self) {
_tmp18_ = _page_ref0 ((Page*) _tmp17_);
#line 106 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
new_pages = g_list_append (new_pages, _tmp18_);
-#line 591 "book.c"
+#line 595 "book.c"
}
}
}
@@ -606,7 +610,7 @@ void book_combine_sides (Book* self) {
book_set_needs_saving (self, TRUE);
#line 97 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
__g_list_free__page_unref0_0 (new_pages);
-#line 610 "book.c"
+#line 614 "book.c"
}
@@ -617,32 +621,32 @@ void book_combine_sides_reverse (Book* self) {
g_return_if_fail (self != NULL);
#line 116 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
new_pages = NULL;
-#line 621 "book.c"
+#line 625 "book.c"
{
gint i = 0;
#line 117 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
i = 0;
-#line 626 "book.c"
+#line 630 "book.c"
{
gboolean _tmp0_ = FALSE;
#line 117 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp0_ = TRUE;
#line 117 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
while (TRUE) {
-#line 633 "book.c"
+#line 637 "book.c"
gint _tmp2_ = 0;
guint _tmp3_ = 0U;
guint _tmp4_ = 0U;
gint _tmp5_ = 0;
#line 117 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (!_tmp0_) {
-#line 640 "book.c"
+#line 644 "book.c"
gint _tmp1_ = 0;
#line 117 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp1_ = i;
#line 117 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
i = _tmp1_ + 1;
-#line 646 "book.c"
+#line 650 "book.c"
}
#line 117 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp0_ = FALSE;
@@ -656,13 +660,13 @@ void book_combine_sides_reverse (Book* self) {
if (!(((guint) _tmp2_) < _tmp4_)) {
#line 117 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
break;
-#line 660 "book.c"
+#line 664 "book.c"
}
#line 119 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp5_ = i;
#line 119 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if ((_tmp5_ % 2) == 0) {
-#line 666 "book.c"
+#line 670 "book.c"
GList* _tmp6_ = NULL;
gint _tmp7_ = 0;
gconstpointer _tmp8_ = NULL;
@@ -677,7 +681,7 @@ void book_combine_sides_reverse (Book* self) {
_tmp9_ = _page_ref0 ((Page*) _tmp8_);
#line 120 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
new_pages = g_list_append (new_pages, _tmp9_);
-#line 681 "book.c"
+#line 685 "book.c"
} else {
GList* _tmp10_ = NULL;
guint _tmp11_ = 0U;
@@ -699,7 +703,7 @@ void book_combine_sides_reverse (Book* self) {
_tmp15_ = _page_ref0 ((Page*) _tmp14_);
#line 122 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
new_pages = g_list_append (new_pages, _tmp15_);
-#line 703 "book.c"
+#line 707 "book.c"
}
}
}
@@ -718,7 +722,7 @@ void book_combine_sides_reverse (Book* self) {
book_set_needs_saving (self, TRUE);
#line 114 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
__g_list_free__page_unref0_0 (new_pages);
-#line 722 "book.c"
+#line 726 "book.c"
}
@@ -755,7 +759,7 @@ void book_delete_page (Book* self, Page* page) {
g_signal_emit_by_name (self, "page-removed", _tmp5_);
#line 136 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
book_set_needs_saving (self, TRUE);
-#line 759 "book.c"
+#line 763 "book.c"
}
@@ -772,7 +776,7 @@ Page* book_get_page (Book* self, gint page_number) {
_tmp0_ = page_number;
#line 141 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (_tmp0_ < 0) {
-#line 776 "book.c"
+#line 780 "book.c"
GList* _tmp1_ = NULL;
guint _tmp2_ = 0U;
gint _tmp3_ = 0;
@@ -784,7 +788,7 @@ Page* book_get_page (Book* self, gint page_number) {
_tmp3_ = page_number;
#line 142 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
page_number = ((gint) _tmp2_) + _tmp3_;
-#line 788 "book.c"
+#line 792 "book.c"
}
#line 143 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp4_ = self->priv->pages;
@@ -798,7 +802,7 @@ Page* book_get_page (Book* self, gint page_number) {
result = _tmp7_;
#line 143 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return result;
-#line 802 "book.c"
+#line 806 "book.c"
}
@@ -821,7 +825,7 @@ guint book_get_page_index (Book* self, Page* page) {
result = (guint) _tmp2_;
#line 148 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return result;
-#line 825 "book.c"
+#line 829 "book.c"
}
@@ -832,35 +836,35 @@ static gint string_last_index_of_char (const gchar* self, gunichar c, gint start
gunichar _tmp1_ = 0U;
gchar* _tmp2_ = NULL;
gchar* _tmp3_ = NULL;
-#line 1017 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1017 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
g_return_val_if_fail (self != NULL, 0);
-#line 1018 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1018 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp0_ = start_index;
-#line 1018 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1018 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp1_ = c;
-#line 1018 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1018 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp2_ = g_utf8_strrchr (((gchar*) self) + _tmp0_, (gssize) -1, _tmp1_);
-#line 1018 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1018 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_result_ = _tmp2_;
-#line 1020 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1020 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp3_ = _result_;
-#line 1020 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1020 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
if (_tmp3_ != NULL) {
-#line 850 "book.c"
+#line 854 "book.c"
gchar* _tmp4_ = NULL;
-#line 1021 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1021 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp4_ = _result_;
-#line 1021 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1021 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
result = (gint) (_tmp4_ - ((gchar*) self));
-#line 1021 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1021 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
return result;
-#line 858 "book.c"
+#line 862 "book.c"
} else {
-#line 1023 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1023 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
result = -1;
-#line 1023 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1023 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
return result;
-#line 864 "book.c"
+#line 868 "book.c"
}
}
@@ -882,105 +886,105 @@ static gchar* string_slice (const gchar* self, glong start, glong end) {
glong _tmp19_ = 0L;
glong _tmp20_ = 0L;
gchar* _tmp21_ = NULL;
-#line 1328 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1328 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
g_return_val_if_fail (self != NULL, NULL);
-#line 1329 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1329 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp0_ = strlen (self);
-#line 1329 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1329 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp1_ = _tmp0_;
-#line 1329 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1329 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
string_length = (glong) _tmp1_;
-#line 1330 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1330 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp2_ = start;
-#line 1330 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1330 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
if (_tmp2_ < ((glong) 0)) {
-#line 898 "book.c"
+#line 902 "book.c"
glong _tmp3_ = 0L;
glong _tmp4_ = 0L;
-#line 1331 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1331 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp3_ = string_length;
-#line 1331 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1331 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp4_ = start;
-#line 1331 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1331 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
start = _tmp3_ + _tmp4_;
-#line 907 "book.c"
+#line 911 "book.c"
}
-#line 1333 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1333 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp5_ = end;
-#line 1333 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1333 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
if (_tmp5_ < ((glong) 0)) {
-#line 913 "book.c"
+#line 917 "book.c"
glong _tmp6_ = 0L;
glong _tmp7_ = 0L;
-#line 1334 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1334 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp6_ = string_length;
-#line 1334 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1334 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp7_ = end;
-#line 1334 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1334 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
end = _tmp6_ + _tmp7_;
-#line 922 "book.c"
+#line 926 "book.c"
}
-#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp9_ = start;
-#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
if (_tmp9_ >= ((glong) 0)) {
-#line 928 "book.c"
+#line 932 "book.c"
glong _tmp10_ = 0L;
glong _tmp11_ = 0L;
-#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp10_ = start;
-#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp11_ = string_length;
-#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp8_ = _tmp10_ <= _tmp11_;
-#line 937 "book.c"
+#line 941 "book.c"
} else {
-#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp8_ = FALSE;
-#line 941 "book.c"
+#line 945 "book.c"
}
-#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
g_return_val_if_fail (_tmp8_, NULL);
-#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp13_ = end;
-#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
if (_tmp13_ >= ((glong) 0)) {
-#line 949 "book.c"
+#line 953 "book.c"
glong _tmp14_ = 0L;
glong _tmp15_ = 0L;
-#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp14_ = end;
-#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp15_ = string_length;
-#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp12_ = _tmp14_ <= _tmp15_;
-#line 958 "book.c"
+#line 962 "book.c"
} else {
-#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp12_ = FALSE;
-#line 962 "book.c"
+#line 966 "book.c"
}
-#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
g_return_val_if_fail (_tmp12_, NULL);
-#line 1338 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1338 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp16_ = start;
-#line 1338 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1338 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp17_ = end;
-#line 1338 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1338 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
g_return_val_if_fail (_tmp16_ <= _tmp17_, NULL);
-#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1339 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp18_ = start;
-#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1339 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp19_ = end;
-#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1339 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp20_ = start;
-#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1339 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp21_ = g_strndup (((gchar*) self) + _tmp18_, (gsize) (_tmp19_ - _tmp20_));
-#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1339 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
result = _tmp21_;
-#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1339 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
return result;
-#line 984 "book.c"
+#line 988 "book.c"
}
@@ -1036,7 +1040,7 @@ static GFile* book_make_indexed_file (Book* self, const gchar* uri, gint i) {
_tmp1_ = _tmp0_;
#line 153 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (_tmp1_ == ((guint) 1)) {
-#line 1040 "book.c"
+#line 1044 "book.c"
const gchar* _tmp2_ = NULL;
GFile* _tmp3_ = NULL;
#line 154 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
@@ -1047,7 +1051,7 @@ static GFile* book_make_indexed_file (Book* self, const gchar* uri, gint i) {
result = _tmp3_;
#line 154 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return result;
-#line 1051 "book.c"
+#line 1055 "book.c"
}
#line 157 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp4_ = uri;
@@ -1075,7 +1079,7 @@ static GFile* book_make_indexed_file (Book* self, const gchar* uri, gint i) {
_tmp11_ = extension_index;
#line 160 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (_tmp11_ >= 0) {
-#line 1079 "book.c"
+#line 1083 "book.c"
const gchar* _tmp12_ = NULL;
gint _tmp13_ = 0;
const gchar* _tmp14_ = NULL;
@@ -1126,7 +1130,7 @@ static GFile* book_make_indexed_file (Book* self, const gchar* uri, gint i) {
_g_free0 (prefix);
#line 163 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
prefix = _tmp25_;
-#line 1130 "book.c"
+#line 1134 "book.c"
}
#line 165 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp26_ = book_get_n_pages (self);
@@ -1202,7 +1206,7 @@ static GFile* book_make_indexed_file (Book* self, const gchar* uri, gint i) {
_g_free0 (basename);
#line 168 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return result;
-#line 1206 "book.c"
+#line 1210 "book.c"
}
@@ -1214,19 +1218,19 @@ static void book_save_multi_file (Book* self, const gchar* type, gint quality, G
g_return_if_fail (type != NULL);
#line 171 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (file != NULL);
-#line 1218 "book.c"
+#line 1222 "book.c"
{
gint i = 0;
#line 173 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
i = 0;
-#line 1223 "book.c"
+#line 1227 "book.c"
{
gboolean _tmp0_ = FALSE;
#line 173 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp0_ = TRUE;
#line 173 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
while (TRUE) {
-#line 1230 "book.c"
+#line 1234 "book.c"
gint _tmp2_ = 0;
guint _tmp3_ = 0U;
guint _tmp4_ = 0U;
@@ -1245,13 +1249,13 @@ static void book_save_multi_file (Book* self, const gchar* type, gint quality, G
gint _tmp16_ = 0;
#line 173 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (!_tmp0_) {
-#line 1249 "book.c"
+#line 1253 "book.c"
gint _tmp1_ = 0;
#line 173 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp1_ = i;
#line 173 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
i = _tmp1_ + 1;
-#line 1255 "book.c"
+#line 1259 "book.c"
}
#line 173 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp0_ = FALSE;
@@ -1265,7 +1269,7 @@ static void book_save_multi_file (Book* self, const gchar* type, gint quality, G
if (!(((guint) _tmp2_) < _tmp4_)) {
#line 173 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
break;
-#line 1269 "book.c"
+#line 1273 "book.c"
}
#line 175 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp5_ = i;
@@ -1305,7 +1309,7 @@ static void book_save_multi_file (Book* self, const gchar* type, gint quality, G
_page_unref0 (page);
#line 176 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return;
-#line 1309 "book.c"
+#line 1313 "book.c"
}
#line 177 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp16_ = i;
@@ -1313,7 +1317,7 @@ static void book_save_multi_file (Book* self, const gchar* type, gint quality, G
g_signal_emit_by_name (self, "saving", _tmp16_);
#line 173 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_page_unref0 (page);
-#line 1317 "book.c"
+#line 1321 "book.c"
}
}
}
@@ -1358,14 +1362,14 @@ static void book_save_ps_pdf_surface (Book* self, cairo_surface_t* surface, GdkP
cairo_paint (context);
#line 181 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_cairo_destroy0 (context);
-#line 1362 "book.c"
+#line 1366 "book.c"
}
static gpointer _cairo_surface_reference0 (gpointer self) {
#line 194 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return self ? cairo_surface_reference (self) : NULL;
-#line 1369 "book.c"
+#line 1373 "book.c"
}
@@ -1396,7 +1400,7 @@ static void book_save_ps (Book* self, GFile* file, GError** error) {
g_propagate_error (error, _inner_error_);
#line 192 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return;
-#line 1400 "book.c"
+#line 1404 "book.c"
}
#line 193 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp2_ = ps_writer_new (stream);
@@ -1410,19 +1414,19 @@ static void book_save_ps (Book* self, GFile* file, GError** error) {
_tmp5_ = _cairo_surface_reference0 (_tmp4_);
#line 194 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
surface = _tmp5_;
-#line 1414 "book.c"
+#line 1418 "book.c"
{
gint i = 0;
#line 196 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
i = 0;
-#line 1419 "book.c"
+#line 1423 "book.c"
{
gboolean _tmp6_ = FALSE;
#line 196 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp6_ = TRUE;
#line 196 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
while (TRUE) {
-#line 1426 "book.c"
+#line 1430 "book.c"
gint _tmp8_ = 0;
guint _tmp9_ = 0U;
guint _tmp10_ = 0U;
@@ -1458,13 +1462,13 @@ static void book_save_ps (Book* self, GFile* file, GError** error) {
gint _tmp36_ = 0;
#line 196 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (!_tmp6_) {
-#line 1462 "book.c"
+#line 1466 "book.c"
gint _tmp7_ = 0;
#line 196 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp7_ = i;
#line 196 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
i = _tmp7_ + 1;
-#line 1468 "book.c"
+#line 1472 "book.c"
}
#line 196 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp6_ = FALSE;
@@ -1478,7 +1482,7 @@ static void book_save_ps (Book* self, GFile* file, GError** error) {
if (!(((guint) _tmp8_) < _tmp10_)) {
#line 196 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
break;
-#line 1482 "book.c"
+#line 1486 "book.c"
}
#line 198 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp11_ = i;
@@ -1552,7 +1556,7 @@ static void book_save_ps (Book* self, GFile* file, GError** error) {
_g_object_unref0 (image);
#line 196 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_page_unref0 (page);
-#line 1556 "book.c"
+#line 1560 "book.c"
}
}
}
@@ -1562,7 +1566,7 @@ static void book_save_ps (Book* self, GFile* file, GError** error) {
_ps_writer_unref0 (writer);
#line 190 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_g_object_unref0 (stream);
-#line 1566 "book.c"
+#line 1570 "book.c"
}
@@ -1624,7 +1628,7 @@ static guint8* book_compress_zlib (Book* self, guint8* data, int data_length1, i
stream.avail_out = _tmp3__length1;
#line 216 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
while (TRUE) {
-#line 1628 "book.c"
+#line 1632 "book.c"
z_stream _tmp4_ = {0};
guint _tmp5_ = 0U;
gint _tmp6_ = 0;
@@ -1636,7 +1640,7 @@ static guint8* book_compress_zlib (Book* self, guint8* data, int data_length1, i
if (!(_tmp5_ > ((guint) 0))) {
#line 216 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
break;
-#line 1640 "book.c"
+#line 1644 "book.c"
}
#line 218 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp6_ = deflate (&stream, (gint) Z_FINISH);
@@ -1644,7 +1648,7 @@ static guint8* book_compress_zlib (Book* self, guint8* data, int data_length1, i
if (_tmp6_ == ((gint) Z_STREAM_ERROR)) {
#line 219 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
break;
-#line 1648 "book.c"
+#line 1652 "book.c"
}
}
#line 222 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
@@ -1653,7 +1657,7 @@ static guint8* book_compress_zlib (Book* self, guint8* data, int data_length1, i
_tmp8_ = _tmp7_.avail_in;
#line 222 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (_tmp8_ > ((guint) 0)) {
-#line 1657 "book.c"
+#line 1661 "book.c"
guint8* _tmp9_ = NULL;
gint _tmp9__length1 = 0;
#line 223 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
@@ -1664,7 +1668,7 @@ static guint8* book_compress_zlib (Book* self, guint8* data, int data_length1, i
if (result_length1) {
#line 223 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
*result_length1 = _tmp9__length1;
-#line 1668 "book.c"
+#line 1672 "book.c"
}
#line 223 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
result = _tmp9_;
@@ -1674,7 +1678,7 @@ static guint8* book_compress_zlib (Book* self, guint8* data, int data_length1, i
deflateEnd (&stream);
#line 223 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return result;
-#line 1678 "book.c"
+#line 1682 "book.c"
}
#line 225 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp10_ = data;
@@ -1706,7 +1710,7 @@ static guint8* book_compress_zlib (Book* self, guint8* data, int data_length1, i
if (result_length1) {
#line 228 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
*result_length1 = _tmp15__length1;
-#line 1710 "book.c"
+#line 1714 "book.c"
}
#line 228 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
result = _tmp15_;
@@ -1714,7 +1718,7 @@ static guint8* book_compress_zlib (Book* self, guint8* data, int data_length1, i
deflateEnd (&stream);
#line 228 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return result;
-#line 1718 "book.c"
+#line 1722 "book.c"
}
@@ -1723,7 +1727,7 @@ static gboolean _book_write_pixbuf_data_gdk_pixbuf_save_func (guint8* buf, gsize
result = book_write_pixbuf_data ((Book*) self, buf, buf_length1, error);
#line 240 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return result;
-#line 1727 "book.c"
+#line 1731 "book.c"
}
@@ -1826,7 +1830,7 @@ static guint8* book_compress_jpeg (Book* self, GdkPixbuf* image, gint quality, g
values_length1 = 5;
#line 237 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_values_size_ = values_length1;
-#line 1830 "book.c"
+#line 1834 "book.c"
{
GdkPixbuf* _tmp14_ = NULL;
#line 240 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
@@ -1835,7 +1839,7 @@ static guint8* book_compress_jpeg (Book* self, GdkPixbuf* image, gint quality, g
gdk_pixbuf_save_to_callbackv (_tmp14_, _book_write_pixbuf_data_gdk_pixbuf_save_func, self, "jpeg", keys, values, &_inner_error_);
#line 240 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1839 "book.c"
+#line 1843 "book.c"
goto __catch0_g_error;
}
}
@@ -1849,7 +1853,7 @@ static guint8* book_compress_jpeg (Book* self, GdkPixbuf* image, gint quality, g
_inner_error_ = NULL;
#line 238 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_g_error_free0 (e);
-#line 1853 "book.c"
+#line 1857 "book.c"
}
__finally0:
#line 238 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
@@ -1864,7 +1868,7 @@ static guint8* book_compress_jpeg (Book* self, GdkPixbuf* image, gint quality, g
g_clear_error (&_inner_error_);
#line 238 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return NULL;
-#line 1868 "book.c"
+#line 1872 "book.c"
}
#line 245 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp15_ = self->priv->jpeg_data;
@@ -1894,7 +1898,7 @@ static guint8* book_compress_jpeg (Book* self, GdkPixbuf* image, gint quality, g
if (result_length1) {
#line 248 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
*result_length1 = _tmp17__length1;
-#line 1898 "book.c"
+#line 1902 "book.c"
}
#line 248 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
result = _tmp17_;
@@ -1904,7 +1908,7 @@ static guint8* book_compress_jpeg (Book* self, GdkPixbuf* image, gint quality, g
keys = (_vala_array_free (keys, keys_length1, (GDestroyNotify) g_free), NULL);
#line 248 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return result;
-#line 1908 "book.c"
+#line 1912 "book.c"
}
@@ -1927,21 +1931,42 @@ static gboolean book_write_pixbuf_data (Book* self, guint8* buf, int buf_length1
result = TRUE;
#line 254 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return result;
-#line 1931 "book.c"
+#line 1935 "book.c"
+}
+
+
+static gchar* g_unichar_to_string (gunichar self) {
+ gchar* result = NULL;
+ gchar* str = NULL;
+ gchar* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+#line 941 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+ _tmp0_ = g_new0 (gchar, 7);
+#line 941 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+ str = (gchar*) _tmp0_;
+#line 942 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+ _tmp1_ = str;
+#line 942 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+ g_unichar_to_utf8 (self, _tmp1_);
+#line 943 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+ result = str;
+#line 943 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+ return result;
+#line 1956 "book.c"
}
static guint8* _vala_array_dup1 (guint8* self, int length) {
-#line 459 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 494 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return g_memdup (self, length * sizeof (guint8));
-#line 1938 "book.c"
+#line 1963 "book.c"
}
static guint8* _vala_array_dup2 (guint8* self, int length) {
-#line 466 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 501 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return g_memdup (self, length * sizeof (guint8));
-#line 1945 "book.c"
+#line 1970 "book.c"
}
@@ -1953,99 +1978,176 @@ static void book_save_pdf (Book* self, GFile* file, gint quality, GError** error
GFileOutputStream* _tmp10_ = NULL;
PDFWriter* writer = NULL;
PDFWriter* _tmp11_ = NULL;
- PDFWriter* _tmp12_ = NULL;
- PDFWriter* _tmp13_ = NULL;
guint catalog_number = 0U;
+ PDFWriter* _tmp12_ = NULL;
+ guint _tmp13_ = 0U;
+ guint metadata_number = 0U;
PDFWriter* _tmp14_ = NULL;
guint _tmp15_ = 0U;
+ guint pages_number = 0U;
PDFWriter* _tmp16_ = NULL;
guint _tmp17_ = 0U;
- gchar* _tmp18_ = NULL;
- gchar* _tmp19_ = NULL;
- PDFWriter* _tmp20_ = NULL;
- PDFWriter* _tmp21_ = NULL;
- PDFWriter* _tmp22_ = NULL;
+ guint info_number = 0U;
+ PDFWriter* _tmp18_ = NULL;
+ guint _tmp19_ = 0U;
+ guint* page_numbers = NULL;
+ guint _tmp20_ = 0U;
+ guint _tmp21_ = 0U;
+ guint* _tmp22_ = NULL;
+ gint page_numbers_length1 = 0;
+ gint _page_numbers_size_ = 0;
+ guint* page_image_numbers = NULL;
guint _tmp23_ = 0U;
- gchar* _tmp24_ = NULL;
- gchar* _tmp25_ = NULL;
- PDFWriter* _tmp26_ = NULL;
- PDFWriter* _tmp27_ = NULL;
- PDFWriter* _tmp28_ = NULL;
- guint pages_number = 0U;
- PDFWriter* _tmp29_ = NULL;
- guint _tmp30_ = 0U;
- PDFWriter* _tmp31_ = NULL;
- guint _tmp32_ = 0U;
- gchar* _tmp33_ = NULL;
- gchar* _tmp34_ = NULL;
- PDFWriter* _tmp35_ = NULL;
- PDFWriter* _tmp36_ = NULL;
- PDFWriter* _tmp37_ = NULL;
- PDFWriter* _tmp48_ = NULL;
+ guint _tmp24_ = 0U;
+ guint* _tmp25_ = NULL;
+ gint page_image_numbers_length1 = 0;
+ gint _page_image_numbers_size_ = 0;
+ guint* page_content_numbers = NULL;
+ guint _tmp26_ = 0U;
+ guint _tmp27_ = 0U;
+ guint* _tmp28_ = NULL;
+ gint page_content_numbers_length1 = 0;
+ gint _page_content_numbers_size_ = 0;
+ guint struct_tree_root_number = 0U;
PDFWriter* _tmp49_ = NULL;
guint _tmp50_ = 0U;
- guint _tmp51_ = 0U;
- gchar* _tmp52_ = NULL;
- gchar* _tmp53_ = NULL;
- PDFWriter* _tmp54_ = NULL;
+ PDFWriter* _tmp51_ = NULL;
+ PDFWriter* _tmp52_ = NULL;
+ PDFWriter* _tmp53_ = NULL;
+ guint _tmp54_ = 0U;
PDFWriter* _tmp55_ = NULL;
- PDFWriter* _tmp366_ = NULL;
- guint info_number = 0U;
- PDFWriter* _tmp367_ = NULL;
- guint _tmp368_ = 0U;
- PDFWriter* _tmp369_ = NULL;
- guint _tmp370_ = 0U;
- gchar* _tmp371_ = NULL;
- gchar* _tmp372_ = NULL;
- PDFWriter* _tmp373_ = NULL;
- PDFWriter* _tmp374_ = NULL;
- gchar* _tmp375_ = NULL;
- gchar* _tmp376_ = NULL;
- PDFWriter* _tmp377_ = NULL;
- PDFWriter* _tmp378_ = NULL;
- PDFWriter* _tmp379_ = NULL;
+ guint _tmp56_ = 0U;
+ gchar* _tmp57_ = NULL;
+ gchar* _tmp58_ = NULL;
+ PDFWriter* _tmp59_ = NULL;
+ PDFWriter* _tmp60_ = NULL;
+ PDFWriter* _tmp61_ = NULL;
+ guint _tmp62_ = 0U;
+ gchar* _tmp63_ = NULL;
+ gchar* _tmp64_ = NULL;
+ PDFWriter* _tmp65_ = NULL;
+ PDFWriter* _tmp66_ = NULL;
+ guint _tmp67_ = 0U;
+ gchar* _tmp68_ = NULL;
+ gchar* _tmp69_ = NULL;
+ PDFWriter* _tmp70_ = NULL;
+ guint _tmp71_ = 0U;
+ gchar* _tmp72_ = NULL;
+ gchar* _tmp73_ = NULL;
+ PDFWriter* _tmp74_ = NULL;
+ PDFWriter* _tmp75_ = NULL;
+ GDateTime* now = NULL;
+ GDateTime* _tmp76_ = NULL;
+ gchar* date_string = NULL;
+ GDateTime* _tmp77_ = NULL;
+ gchar* _tmp78_ = NULL;
+ gchar* metadata = NULL;
+ gchar* _tmp79_ = NULL;
+ gchar* _tmp80_ = NULL;
+ const gchar* _tmp81_ = NULL;
+ const gchar* _tmp82_ = NULL;
+ const gchar* _tmp83_ = NULL;
+ gchar* _tmp84_ = NULL;
+ gchar* _tmp85_ = NULL;
+ PDFWriter* _tmp86_ = NULL;
+ PDFWriter* _tmp87_ = NULL;
+ guint _tmp88_ = 0U;
+ PDFWriter* _tmp89_ = NULL;
+ guint _tmp90_ = 0U;
+ gchar* _tmp91_ = NULL;
+ gchar* _tmp92_ = NULL;
+ PDFWriter* _tmp93_ = NULL;
+ PDFWriter* _tmp94_ = NULL;
+ PDFWriter* _tmp95_ = NULL;
+ PDFWriter* _tmp96_ = NULL;
+ const gchar* _tmp97_ = NULL;
+ gint _tmp98_ = 0;
+ gint _tmp99_ = 0;
+ gchar* _tmp100_ = NULL;
+ gchar* _tmp101_ = NULL;
+ PDFWriter* _tmp102_ = NULL;
+ PDFWriter* _tmp103_ = NULL;
+ PDFWriter* _tmp104_ = NULL;
+ const gchar* _tmp105_ = NULL;
+ PDFWriter* _tmp106_ = NULL;
+ PDFWriter* _tmp107_ = NULL;
+ PDFWriter* _tmp108_ = NULL;
+ PDFWriter* _tmp109_ = NULL;
+ PDFWriter* _tmp110_ = NULL;
+ guint _tmp111_ = 0U;
+ PDFWriter* _tmp112_ = NULL;
+ guint _tmp113_ = 0U;
+ gchar* _tmp114_ = NULL;
+ gchar* _tmp115_ = NULL;
+ PDFWriter* _tmp116_ = NULL;
+ PDFWriter* _tmp117_ = NULL;
+ PDFWriter* _tmp118_ = NULL;
+ PDFWriter* _tmp130_ = NULL;
+ PDFWriter* _tmp131_ = NULL;
+ guint _tmp132_ = 0U;
+ guint _tmp133_ = 0U;
+ gchar* _tmp134_ = NULL;
+ gchar* _tmp135_ = NULL;
+ PDFWriter* _tmp136_ = NULL;
+ PDFWriter* _tmp137_ = NULL;
+ PDFWriter* _tmp475_ = NULL;
+ PDFWriter* _tmp476_ = NULL;
+ guint _tmp477_ = 0U;
+ PDFWriter* _tmp478_ = NULL;
+ guint _tmp479_ = 0U;
+ gchar* _tmp480_ = NULL;
+ gchar* _tmp481_ = NULL;
+ PDFWriter* _tmp482_ = NULL;
+ PDFWriter* _tmp483_ = NULL;
+ gchar* _tmp484_ = NULL;
+ gchar* _tmp485_ = NULL;
+ PDFWriter* _tmp486_ = NULL;
+ PDFWriter* _tmp487_ = NULL;
+ PDFWriter* _tmp488_ = NULL;
gsize xref_offset = 0UL;
- PDFWriter* _tmp380_ = NULL;
- gsize _tmp381_ = 0UL;
- PDFWriter* _tmp382_ = NULL;
- PDFWriter* _tmp383_ = NULL;
- PDFWriter* _tmp384_ = NULL;
- GList* _tmp385_ = NULL;
- guint _tmp386_ = 0U;
- gchar* _tmp387_ = NULL;
- gchar* _tmp388_ = NULL;
- PDFWriter* _tmp389_ = NULL;
- PDFWriter* _tmp390_ = NULL;
- GList* _tmp391_ = NULL;
- PDFWriter* _tmp396_ = NULL;
- PDFWriter* _tmp397_ = NULL;
- PDFWriter* _tmp398_ = NULL;
- PDFWriter* _tmp399_ = NULL;
- PDFWriter* _tmp400_ = NULL;
- GList* _tmp401_ = NULL;
- guint _tmp402_ = 0U;
- gchar* _tmp403_ = NULL;
- gchar* _tmp404_ = NULL;
- PDFWriter* _tmp405_ = NULL;
- guint _tmp406_ = 0U;
- gchar* _tmp407_ = NULL;
- gchar* _tmp408_ = NULL;
- PDFWriter* _tmp409_ = NULL;
- guint _tmp410_ = 0U;
- gchar* _tmp411_ = NULL;
- gchar* _tmp412_ = NULL;
- PDFWriter* _tmp413_ = NULL;
- const gchar* _tmp414_ = NULL;
- const gchar* _tmp415_ = NULL;
- gchar* _tmp416_ = NULL;
- gchar* _tmp417_ = NULL;
- PDFWriter* _tmp418_ = NULL;
- PDFWriter* _tmp419_ = NULL;
- PDFWriter* _tmp420_ = NULL;
- gsize _tmp421_ = 0UL;
- gchar* _tmp422_ = NULL;
- gchar* _tmp423_ = NULL;
- PDFWriter* _tmp424_ = NULL;
+ PDFWriter* _tmp489_ = NULL;
+ gsize _tmp490_ = 0UL;
+ PDFWriter* _tmp491_ = NULL;
+ PDFWriter* _tmp492_ = NULL;
+ PDFWriter* _tmp493_ = NULL;
+ guint* _tmp494_ = NULL;
+ gint _tmp494__length1 = 0;
+ gchar* _tmp495_ = NULL;
+ gchar* _tmp496_ = NULL;
+ PDFWriter* _tmp497_ = NULL;
+ PDFWriter* _tmp498_ = NULL;
+ gint _tmp499_ = 0;
+ gchar* _tmp500_ = NULL;
+ gchar* _tmp501_ = NULL;
+ PDFWriter* _tmp524_ = NULL;
+ PDFWriter* _tmp525_ = NULL;
+ PDFWriter* _tmp526_ = NULL;
+ PDFWriter* _tmp527_ = NULL;
+ PDFWriter* _tmp528_ = NULL;
+ guint* _tmp529_ = NULL;
+ gint _tmp529__length1 = 0;
+ gchar* _tmp530_ = NULL;
+ gchar* _tmp531_ = NULL;
+ PDFWriter* _tmp532_ = NULL;
+ guint _tmp533_ = 0U;
+ gchar* _tmp534_ = NULL;
+ gchar* _tmp535_ = NULL;
+ PDFWriter* _tmp536_ = NULL;
+ guint _tmp537_ = 0U;
+ gchar* _tmp538_ = NULL;
+ gchar* _tmp539_ = NULL;
+ PDFWriter* _tmp540_ = NULL;
+ const gchar* _tmp541_ = NULL;
+ const gchar* _tmp542_ = NULL;
+ gchar* _tmp543_ = NULL;
+ gchar* _tmp544_ = NULL;
+ PDFWriter* _tmp545_ = NULL;
+ PDFWriter* _tmp546_ = NULL;
+ PDFWriter* _tmp547_ = NULL;
+ gsize _tmp548_ = 0UL;
+ gchar* _tmp549_ = NULL;
+ gchar* _tmp550_ = NULL;
+ PDFWriter* _tmp551_ = NULL;
GError * _inner_error_ = NULL;
#line 257 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (self != NULL);
@@ -2055,19 +2157,19 @@ static void book_save_pdf (Book* self, GFile* file, gint quality, GError** error
_tmp0_ = g_strdup ("");
#line 260 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
id = _tmp0_;
-#line 2059 "book.c"
+#line 2161 "book.c"
{
gint i = 0;
#line 261 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
i = 0;
-#line 2064 "book.c"
+#line 2166 "book.c"
{
gboolean _tmp1_ = FALSE;
#line 261 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp1_ = TRUE;
#line 261 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
while (TRUE) {
-#line 2071 "book.c"
+#line 2173 "book.c"
gint _tmp3_ = 0;
const gchar* _tmp4_ = NULL;
guint32 _tmp5_ = 0U;
@@ -2076,13 +2178,13 @@ static void book_save_pdf (Book* self, GFile* file, gint quality, GError** error
gchar* _tmp8_ = NULL;
#line 261 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (!_tmp1_) {
-#line 2080 "book.c"
+#line 2182 "book.c"
gint _tmp2_ = 0;
#line 261 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp2_ = i;
#line 261 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
i = _tmp2_ + 1;
-#line 2086 "book.c"
+#line 2188 "book.c"
}
#line 261 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp1_ = FALSE;
@@ -2092,7 +2194,7 @@ static void book_save_pdf (Book* self, GFile* file, gint quality, GError** error
if (!(_tmp3_ < 4)) {
#line 261 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
break;
-#line 2096 "book.c"
+#line 2198 "book.c"
}
#line 262 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp4_ = id;
@@ -2110,7 +2212,7 @@ static void book_save_pdf (Book* self, GFile* file, gint quality, GError** error
id = _tmp8_;
#line 262 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_g_free0 (_tmp7_);
-#line 2114 "book.c"
+#line 2216 "book.c"
}
}
}
@@ -2128,7 +2230,7 @@ static void book_save_pdf (Book* self, GFile* file, gint quality, GError** error
_g_free0 (id);
#line 264 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return;
-#line 2132 "book.c"
+#line 2234 "book.c"
}
#line 265 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp11_ = pdf_writer_new (stream);
@@ -2137,2137 +2239,2769 @@ static void book_save_pdf (Book* self, GFile* file, gint quality, GError** error
#line 268 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp12_ = writer;
#line 268 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp12_, "%PDF-1.3\n");
+ _tmp13_ = pdf_writer_add_object (_tmp12_);
+#line 268 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ catalog_number = _tmp13_;
+#line 269 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp14_ = writer;
+#line 269 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp15_ = pdf_writer_add_object (_tmp14_);
+#line 269 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ metadata_number = _tmp15_;
+#line 270 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp16_ = writer;
+#line 270 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp17_ = pdf_writer_add_object (_tmp16_);
+#line 270 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pages_number = _tmp17_;
+#line 271 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp18_ = writer;
#line 271 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp13_ = writer;
+ _tmp19_ = pdf_writer_add_object (_tmp18_);
#line 271 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp13_, "%\xe2\xe3\xcf\xd3\n");
+ info_number = _tmp19_;
+#line 272 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp20_ = book_get_n_pages (self);
+#line 272 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp21_ = _tmp20_;
+#line 272 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp22_ = g_new0 (guint, _tmp21_);
+#line 272 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ page_numbers = _tmp22_;
+#line 272 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ page_numbers_length1 = _tmp21_;
+#line 272 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _page_numbers_size_ = page_numbers_length1;
+#line 273 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp23_ = book_get_n_pages (self);
+#line 273 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp24_ = _tmp23_;
+#line 273 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp25_ = g_new0 (guint, _tmp24_);
+#line 273 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ page_image_numbers = _tmp25_;
+#line 273 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ page_image_numbers_length1 = _tmp24_;
+#line 273 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _page_image_numbers_size_ = page_image_numbers_length1;
#line 274 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp14_ = writer;
+ _tmp26_ = book_get_n_pages (self);
#line 274 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp15_ = pdf_writer_start_object (_tmp14_);
+ _tmp27_ = _tmp26_;
#line 274 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- catalog_number = _tmp15_;
-#line 275 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp16_ = writer;
-#line 275 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp17_ = catalog_number;
-#line 275 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp18_ = g_strdup_printf ("%u 0 obj\n", _tmp17_);
-#line 275 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp19_ = _tmp18_;
-#line 275 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp16_, _tmp19_);
-#line 275 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _g_free0 (_tmp19_);
-#line 276 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp20_ = writer;
-#line 276 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp20_, "<<\n");
-#line 277 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp21_ = writer;
-#line 277 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp21_, "/Type /Catalog\n");
-#line 280 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp22_ = writer;
-#line 280 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp23_ = catalog_number;
-#line 280 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp24_ = g_strdup_printf ("/Pages %u 0 R\n", _tmp23_ + 1);
-#line 280 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp25_ = _tmp24_;
-#line 280 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp22_, _tmp25_);
-#line 280 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _g_free0 (_tmp25_);
-#line 281 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp26_ = writer;
-#line 281 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp26_, ">>\n");
-#line 282 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp27_ = writer;
-#line 282 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp27_, "endobj\n");
-#line 300 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp28_ = writer;
-#line 300 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp28_, "\n");
-#line 301 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp29_ = writer;
-#line 301 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp30_ = pdf_writer_start_object (_tmp29_);
-#line 301 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pages_number = _tmp30_;
-#line 302 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp31_ = writer;
-#line 302 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp32_ = pages_number;
-#line 302 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp33_ = g_strdup_printf ("%u 0 obj\n", _tmp32_);
-#line 302 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp34_ = _tmp33_;
-#line 302 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp31_, _tmp34_);
-#line 302 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _g_free0 (_tmp34_);
-#line 303 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp35_ = writer;
-#line 303 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp35_, "<<\n");
-#line 304 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp36_ = writer;
-#line 304 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp36_, "/Type /Pages\n");
-#line 305 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp37_ = writer;
-#line 305 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp37_, "/Kids [");
-#line 2226 "book.c"
+ _tmp28_ = g_new0 (guint, _tmp27_);
+#line 274 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ page_content_numbers = _tmp28_;
+#line 274 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ page_content_numbers_length1 = _tmp27_;
+#line 274 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _page_content_numbers_size_ = page_content_numbers_length1;
+#line 2300 "book.c"
{
gint i = 0;
-#line 306 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 275 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
i = 0;
-#line 2231 "book.c"
+#line 2305 "book.c"
{
- gboolean _tmp38_ = FALSE;
-#line 306 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp38_ = TRUE;
-#line 306 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ gboolean _tmp29_ = FALSE;
+#line 275 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp29_ = TRUE;
+#line 275 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
while (TRUE) {
-#line 2238 "book.c"
+#line 2312 "book.c"
+ gint _tmp31_ = 0;
+ guint _tmp32_ = 0U;
+ guint _tmp33_ = 0U;
+ guint* _tmp34_ = NULL;
+ gint _tmp34__length1 = 0;
+ gint _tmp35_ = 0;
+ PDFWriter* _tmp36_ = NULL;
+ guint _tmp37_ = 0U;
+ guint _tmp38_ = 0U;
+ guint* _tmp39_ = NULL;
+ gint _tmp39__length1 = 0;
gint _tmp40_ = 0;
- guint _tmp41_ = 0U;
+ PDFWriter* _tmp41_ = NULL;
guint _tmp42_ = 0U;
- PDFWriter* _tmp43_ = NULL;
- guint _tmp44_ = 0U;
+ guint _tmp43_ = 0U;
+ guint* _tmp44_ = NULL;
+ gint _tmp44__length1 = 0;
gint _tmp45_ = 0;
- gchar* _tmp46_ = NULL;
- gchar* _tmp47_ = NULL;
-#line 306 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- if (!_tmp38_) {
-#line 2249 "book.c"
- gint _tmp39_ = 0;
-#line 306 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp39_ = i;
-#line 306 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- i = _tmp39_ + 1;
-#line 2255 "book.c"
+ PDFWriter* _tmp46_ = NULL;
+ guint _tmp47_ = 0U;
+ guint _tmp48_ = 0U;
+#line 275 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ if (!_tmp29_) {
+#line 2336 "book.c"
+ gint _tmp30_ = 0;
+#line 275 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp30_ = i;
+#line 275 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ i = _tmp30_ + 1;
+#line 2342 "book.c"
}
-#line 306 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp38_ = FALSE;
-#line 306 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp40_ = i;
-#line 306 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp41_ = book_get_n_pages (self);
-#line 306 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp42_ = _tmp41_;
-#line 306 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- if (!(((guint) _tmp40_) < _tmp42_)) {
-#line 306 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 275 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp29_ = FALSE;
+#line 275 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp31_ = i;
+#line 275 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp32_ = book_get_n_pages (self);
+#line 275 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp33_ = _tmp32_;
+#line 275 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ if (!(((guint) _tmp31_) < _tmp33_)) {
+#line 275 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
break;
-#line 2269 "book.c"
+#line 2356 "book.c"
}
-#line 307 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp43_ = writer;
-#line 307 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp44_ = pages_number;
-#line 307 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 277 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp34_ = page_numbers;
+#line 277 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp34__length1 = page_numbers_length1;
+#line 277 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp35_ = i;
+#line 277 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp36_ = writer;
+#line 277 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp37_ = pdf_writer_add_object (_tmp36_);
+#line 277 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp34_[_tmp35_] = _tmp37_;
+#line 277 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp38_ = _tmp34_[_tmp35_];
+#line 278 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp39_ = page_image_numbers;
+#line 278 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp39__length1 = page_image_numbers_length1;
+#line 278 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp40_ = i;
+#line 278 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp41_ = writer;
+#line 278 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp42_ = pdf_writer_add_object (_tmp41_);
+#line 278 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp39_[_tmp40_] = _tmp42_;
+#line 278 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp43_ = _tmp39_[_tmp40_];
+#line 279 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp44_ = page_content_numbers;
+#line 279 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp44__length1 = page_content_numbers_length1;
+#line 279 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp45_ = i;
-#line 307 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp46_ = g_strdup_printf (" %u 0 R", (_tmp44_ + 1) + (_tmp45_ * 3));
-#line 307 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp47_ = _tmp46_;
-#line 307 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp43_, _tmp47_);
-#line 307 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _g_free0 (_tmp47_);
-#line 2285 "book.c"
+#line 279 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp46_ = writer;
+#line 279 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp47_ = pdf_writer_add_object (_tmp46_);
+#line 279 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp44_[_tmp45_] = _tmp47_;
+#line 279 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp48_ = _tmp44_[_tmp45_];
+#line 2400 "book.c"
}
}
}
-#line 308 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp48_ = writer;
-#line 308 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp48_, " ]\n");
-#line 309 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 281 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp49_ = writer;
-#line 309 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp50_ = book_get_n_pages (self);
-#line 309 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp51_ = _tmp50_;
-#line 309 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp52_ = g_strdup_printf ("/Count %u\n", _tmp51_);
-#line 309 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp53_ = _tmp52_;
-#line 309 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp49_, _tmp53_);
-#line 309 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _g_free0 (_tmp53_);
-#line 310 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp54_ = writer;
-#line 310 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp54_, ">>\n");
-#line 311 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 281 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp50_ = pdf_writer_add_object (_tmp49_);
+#line 281 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ struct_tree_root_number = _tmp50_;
+#line 284 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp51_ = writer;
+#line 284 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp51_, "%PDF-1.3\n");
+#line 287 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp52_ = writer;
+#line 287 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp52_, "%\xe2\xe3\xcf\xd3\n");
+#line 290 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp53_ = writer;
+#line 290 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp54_ = catalog_number;
+#line 290 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_start_object (_tmp53_, _tmp54_);
+#line 291 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp55_ = writer;
-#line 311 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp55_, "endobj\n");
-#line 2315 "book.c"
- {
- gint i = 0;
-#line 313 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- i = 0;
-#line 2320 "book.c"
- {
- gboolean _tmp56_ = FALSE;
-#line 313 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp56_ = TRUE;
-#line 313 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- while (TRUE) {
-#line 2327 "book.c"
- gint _tmp58_ = 0;
- guint _tmp59_ = 0U;
- guint _tmp60_ = 0U;
- Page* page = NULL;
- gint _tmp61_ = 0;
- Page* _tmp62_ = NULL;
- GdkPixbuf* image = NULL;
- Page* _tmp63_ = NULL;
- GdkPixbuf* _tmp64_ = NULL;
- gint width = 0;
- GdkPixbuf* _tmp65_ = NULL;
- gint _tmp66_ = 0;
- gint _tmp67_ = 0;
- gint height = 0;
- GdkPixbuf* _tmp68_ = NULL;
- gint _tmp69_ = 0;
- gint _tmp70_ = 0;
- guint8* pixels = NULL;
- GdkPixbuf* _tmp71_ = NULL;
- guint8* _tmp72_ = NULL;
- gint pixels_length1 = 0;
- gint _pixels_size_ = 0;
- gdouble page_width = 0.0;
- gint _tmp73_ = 0;
- Page* _tmp74_ = NULL;
- gint _tmp75_ = 0;
- gint _tmp76_ = 0;
- gdouble page_height = 0.0;
- gint _tmp77_ = 0;
- Page* _tmp78_ = NULL;
- gint _tmp79_ = 0;
- gint _tmp80_ = 0;
- gint depth = 0;
- gchar* color_space = NULL;
- gchar* _tmp81_ = NULL;
- gchar* filter = NULL;
- gchar* width_buffer = NULL;
- gchar* _tmp82_ = NULL;
- gint width_buffer_length1 = 0;
- gint _width_buffer_size_ = 0;
- gchar* height_buffer = NULL;
- gchar* _tmp83_ = NULL;
- gint height_buffer_length1 = 0;
- gint _height_buffer_size_ = 0;
- guint8* data = NULL;
- gint data_length1 = 0;
- gint _data_size_ = 0;
- Page* _tmp84_ = NULL;
- gboolean _tmp85_ = FALSE;
- gboolean _tmp86_ = FALSE;
- guint8* compressed_data = NULL;
- guint8* _tmp240_ = NULL;
- gint _tmp240__length1 = 0;
- gint _tmp241_ = 0;
- guint8* _tmp242_ = NULL;
- gint compressed_data_length1 = 0;
- gint _compressed_data_size_ = 0;
- guint8* _tmp243_ = NULL;
- gint _tmp243__length1 = 0;
- PDFWriter* _tmp261_ = NULL;
- guint number = 0U;
- PDFWriter* _tmp262_ = NULL;
- guint _tmp263_ = 0U;
- PDFWriter* _tmp264_ = NULL;
- guint _tmp265_ = 0U;
- gchar* _tmp266_ = NULL;
- gchar* _tmp267_ = NULL;
- PDFWriter* _tmp268_ = NULL;
- PDFWriter* _tmp269_ = NULL;
- PDFWriter* _tmp270_ = NULL;
- guint _tmp271_ = 0U;
- gchar* _tmp272_ = NULL;
- gchar* _tmp273_ = NULL;
- PDFWriter* _tmp274_ = NULL;
- gint _tmp275_ = 0;
- guint _tmp276_ = 0U;
- gchar* _tmp277_ = NULL;
- gchar* _tmp278_ = NULL;
- PDFWriter* _tmp279_ = NULL;
- gdouble _tmp280_ = 0.0;
- gchar* _tmp281_ = NULL;
- gint _tmp281__length1 = 0;
- const gchar* _tmp282_ = NULL;
- gdouble _tmp283_ = 0.0;
- gchar* _tmp284_ = NULL;
- gint _tmp284__length1 = 0;
- const gchar* _tmp285_ = NULL;
- gchar* _tmp286_ = NULL;
- gchar* _tmp287_ = NULL;
- PDFWriter* _tmp288_ = NULL;
- guint _tmp289_ = 0U;
- gchar* _tmp290_ = NULL;
- gchar* _tmp291_ = NULL;
- PDFWriter* _tmp292_ = NULL;
- PDFWriter* _tmp293_ = NULL;
- PDFWriter* _tmp294_ = NULL;
- PDFWriter* _tmp295_ = NULL;
- guint _tmp296_ = 0U;
- PDFWriter* _tmp297_ = NULL;
- guint _tmp298_ = 0U;
- gchar* _tmp299_ = NULL;
- gchar* _tmp300_ = NULL;
- PDFWriter* _tmp301_ = NULL;
- PDFWriter* _tmp302_ = NULL;
- PDFWriter* _tmp303_ = NULL;
- PDFWriter* _tmp304_ = NULL;
- gint _tmp305_ = 0;
- gchar* _tmp306_ = NULL;
- gchar* _tmp307_ = NULL;
- PDFWriter* _tmp308_ = NULL;
- gint _tmp309_ = 0;
- gchar* _tmp310_ = NULL;
- gchar* _tmp311_ = NULL;
- PDFWriter* _tmp312_ = NULL;
- const gchar* _tmp313_ = NULL;
- gchar* _tmp314_ = NULL;
- gchar* _tmp315_ = NULL;
- PDFWriter* _tmp316_ = NULL;
- gint _tmp317_ = 0;
- gchar* _tmp318_ = NULL;
- gchar* _tmp319_ = NULL;
- PDFWriter* _tmp320_ = NULL;
- guint8* _tmp321_ = NULL;
- gint _tmp321__length1 = 0;
- gchar* _tmp322_ = NULL;
- gchar* _tmp323_ = NULL;
- const gchar* _tmp324_ = NULL;
- PDFWriter* _tmp329_ = NULL;
- PDFWriter* _tmp330_ = NULL;
- PDFWriter* _tmp331_ = NULL;
- guint8* _tmp332_ = NULL;
- gint _tmp332__length1 = 0;
- PDFWriter* _tmp333_ = NULL;
- PDFWriter* _tmp334_ = NULL;
- PDFWriter* _tmp335_ = NULL;
- gchar* command = NULL;
- gdouble _tmp336_ = 0.0;
- gchar* _tmp337_ = NULL;
- gint _tmp337__length1 = 0;
- const gchar* _tmp338_ = NULL;
- gdouble _tmp339_ = 0.0;
- gchar* _tmp340_ = NULL;
- gint _tmp340__length1 = 0;
- const gchar* _tmp341_ = NULL;
- gint _tmp342_ = 0;
- gchar* _tmp343_ = NULL;
- PDFWriter* _tmp344_ = NULL;
- PDFWriter* _tmp345_ = NULL;
- guint _tmp346_ = 0U;
- PDFWriter* _tmp347_ = NULL;
- guint _tmp348_ = 0U;
- gchar* _tmp349_ = NULL;
- gchar* _tmp350_ = NULL;
- PDFWriter* _tmp351_ = NULL;
- PDFWriter* _tmp352_ = NULL;
- const gchar* _tmp353_ = NULL;
- gint _tmp354_ = 0;
- gint _tmp355_ = 0;
- gchar* _tmp356_ = NULL;
- gchar* _tmp357_ = NULL;
- PDFWriter* _tmp358_ = NULL;
- PDFWriter* _tmp359_ = NULL;
- PDFWriter* _tmp360_ = NULL;
- const gchar* _tmp361_ = NULL;
- PDFWriter* _tmp362_ = NULL;
- PDFWriter* _tmp363_ = NULL;
- PDFWriter* _tmp364_ = NULL;
- gint _tmp365_ = 0;
-#line 313 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- if (!_tmp56_) {
-#line 2498 "book.c"
- gint _tmp57_ = 0;
-#line 313 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp57_ = i;
-#line 313 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- i = _tmp57_ + 1;
-#line 2504 "book.c"
- }
-#line 313 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp56_ = FALSE;
-#line 313 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp58_ = i;
-#line 313 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp59_ = book_get_n_pages (self);
-#line 313 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp60_ = _tmp59_;
-#line 313 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- if (!(((guint) _tmp58_) < _tmp60_)) {
-#line 313 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- break;
-#line 2518 "book.c"
- }
-#line 315 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp61_ = i;
-#line 315 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp62_ = book_get_page (self, _tmp61_);
-#line 315 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- page = _tmp62_;
-#line 316 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp63_ = page;
-#line 316 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp64_ = page_get_image (_tmp63_, TRUE);
-#line 316 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- image = _tmp64_;
-#line 317 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp65_ = image;
-#line 317 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp66_ = gdk_pixbuf_get_width (_tmp65_);
-#line 317 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp67_ = _tmp66_;
-#line 317 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- width = _tmp67_;
-#line 318 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp68_ = image;
-#line 318 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp69_ = gdk_pixbuf_get_height (_tmp68_);
-#line 318 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp70_ = _tmp69_;
-#line 318 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- height = _tmp70_;
-#line 319 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp71_ = image;
-#line 319 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp72_ = gdk_pixbuf_get_pixels (_tmp71_);
-#line 319 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pixels = _tmp72_;
-#line 319 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pixels_length1 = -1;
-#line 319 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _pixels_size_ = pixels_length1;
-#line 320 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp73_ = width;
-#line 320 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp74_ = page;
-#line 320 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp75_ = page_get_dpi (_tmp74_);
+#line 291 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp56_ = catalog_number;
+#line 291 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp57_ = g_strdup_printf ("%u 0 obj\n", _tmp56_);
+#line 291 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp58_ = _tmp57_;
+#line 291 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp55_, _tmp58_);
+#line 291 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp58_);
+#line 292 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp59_ = writer;
+#line 292 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp59_, "<<\n");
+#line 293 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp60_ = writer;
+#line 293 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp60_, "/Type /Catalog\n");
+#line 294 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp61_ = writer;
+#line 294 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp62_ = metadata_number;
+#line 294 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp63_ = g_strdup_printf ("/Metadata %u 0 R\n", _tmp62_);
+#line 294 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp64_ = _tmp63_;
+#line 294 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp61_, _tmp64_);
+#line 294 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp64_);
+#line 295 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp65_ = writer;
+#line 295 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp65_, "/MarkInfo << /Marked true >>\n");
+#line 296 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp66_ = writer;
+#line 296 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp67_ = struct_tree_root_number;
+#line 296 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp68_ = g_strdup_printf ("/StructTreeRoot %u 0 R\n", _tmp67_);
+#line 296 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp69_ = _tmp68_;
+#line 296 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp66_, _tmp69_);
+#line 296 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp69_);
+#line 297 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp70_ = writer;
+#line 297 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp71_ = pages_number;
+#line 297 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp72_ = g_strdup_printf ("/Pages %u 0 R\n", _tmp71_);
+#line 297 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp73_ = _tmp72_;
+#line 297 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp70_, _tmp73_);
+#line 297 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp73_);
+#line 298 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp74_ = writer;
+#line 298 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp74_, ">>\n");
+#line 299 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp75_ = writer;
+#line 299 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp75_, "endobj\n");
+#line 302 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp76_ = g_date_time_new_now_local ();
+#line 302 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ now = _tmp76_;
+#line 303 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp77_ = now;
+#line 303 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp78_ = g_date_time_format (_tmp77_, "%FT%H:%M:%S%:z");
+#line 303 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ date_string = _tmp78_;
+#line 305 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp79_ = g_unichar_to_string ((gunichar) 0xFEFF);
+#line 305 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp80_ = _tmp79_;
+#line 305 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp81_ = date_string;
+#line 305 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp82_ = date_string;
+#line 305 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp83_ = date_string;
+#line 305 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp84_ = g_strdup_printf ("<?xpacket begin=\"%s\" id=\"W5M0MpCehiHzreSzNTczkc9d\"?>\n" \
+"<rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"\n" \
+" xmlns:xmp=\"http://ns.adobe.com/xap/1.0/\">\n" \
+" <rdf:Description rdf:about=\"\"\n" \
+" xmlns:pdfaid=\"http://www.aiim.org/pdfa/ns/id/\"\n" \
+" xmlns:xmp=\"http://ns.adobe.com/xap/1.0/\">\n" \
+" <pdfaid:part>1</pdfaid:part>\n" \
+" <pdfaid:conformance>A</pdfaid:conformance>\n" \
+" <xmp:CreatorTool>Simple Scan %s</xmp:CreatorTool>\n" \
+" <xmp:CreateDate>%s</xmp:CreateDate>\n" \
+" <xmp:ModifyDate>%s</xmp:ModifyDate>\n" \
+" <xmp:MetadataDate>%s</xmp:MetadataDate>\n" \
+" </rdf:Description>\n" \
+"</rdf:RDF>\n" \
+"<?xpacket end=\"w\"?>", _tmp80_, VERSION, _tmp81_, _tmp82_, _tmp83_);
+#line 305 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp85_ = _tmp84_;
+#line 305 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp80_);
+#line 305 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ metadata = _tmp85_;
#line 320 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp76_ = _tmp75_;
+ _tmp86_ = writer;
#line 320 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- page_width = (_tmp73_ * 72.0) / _tmp76_;
+ pdf_writer_write_string (_tmp86_, "\n");
#line 321 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp77_ = height;
+ _tmp87_ = writer;
#line 321 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp78_ = page;
+ _tmp88_ = metadata_number;
#line 321 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp79_ = page_get_dpi (_tmp78_);
-#line 321 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp80_ = _tmp79_;
-#line 321 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- page_height = (_tmp77_ * 72.0) / _tmp80_;
+ pdf_writer_start_object (_tmp87_, _tmp88_);
+#line 322 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp89_ = writer;
+#line 322 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp90_ = metadata_number;
+#line 322 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp91_ = g_strdup_printf ("%u 0 obj\n", _tmp90_);
+#line 322 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp92_ = _tmp91_;
+#line 322 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp89_, _tmp92_);
+#line 322 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp92_);
#line 323 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- depth = 8;
+ _tmp93_ = writer;
+#line 323 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp93_, "<<\n");
#line 324 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp81_ = g_strdup ("DeviceRGB");
+ _tmp94_ = writer;
#line 324 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- color_space = _tmp81_;
+ pdf_writer_write_string (_tmp94_, "/Type /Metadata\n");
#line 325 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- filter = NULL;
+ _tmp95_ = writer;
+#line 325 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp95_, "/Subtype /XML\n");
#line 326 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp82_ = g_new0 (gchar, G_ASCII_DTOSTR_BUF_SIZE);
+ _tmp96_ = writer;
#line 326 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- width_buffer = _tmp82_;
+ _tmp97_ = metadata;
#line 326 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- width_buffer_length1 = G_ASCII_DTOSTR_BUF_SIZE;
+ _tmp98_ = strlen (_tmp97_);
#line 326 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _width_buffer_size_ = width_buffer_length1;
-#line 327 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp83_ = g_new0 (gchar, G_ASCII_DTOSTR_BUF_SIZE);
-#line 327 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- height_buffer = _tmp83_;
+ _tmp99_ = _tmp98_;
+#line 326 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp100_ = g_strdup_printf ("/Length %u\n", (guint) _tmp99_);
+#line 326 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp101_ = _tmp100_;
+#line 326 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp96_, _tmp101_);
+#line 326 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp101_);
#line 327 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- height_buffer_length1 = G_ASCII_DTOSTR_BUF_SIZE;
+ _tmp102_ = writer;
#line 327 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _height_buffer_size_ = height_buffer_length1;
-#line 329 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp84_ = page;
+ pdf_writer_write_string (_tmp102_, ">>\n");
+#line 328 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp103_ = writer;
+#line 328 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp103_, "stream\n");
#line 329 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp85_ = page_get_is_color (_tmp84_);
+ _tmp104_ = writer;
#line 329 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp86_ = _tmp85_;
+ _tmp105_ = metadata;
#line 329 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- if (_tmp86_) {
-#line 2610 "book.c"
- gchar* _tmp87_ = NULL;
- gint data_length = 0;
- gint _tmp88_ = 0;
- gint _tmp89_ = 0;
- gint _tmp90_ = 0;
- guint8* _tmp91_ = NULL;
+ pdf_writer_write_string (_tmp104_, _tmp105_);
+#line 330 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp106_ = writer;
+#line 330 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp106_, "\n");
#line 331 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- depth = 8;
-#line 332 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp87_ = g_strdup ("DeviceRGB");
+ _tmp107_ = writer;
+#line 331 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp107_, "endstream\n");
#line 332 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _g_free0 (color_space);
+ _tmp108_ = writer;
#line 332 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- color_space = _tmp87_;
-#line 333 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp88_ = height;
-#line 333 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp89_ = width;
-#line 333 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- data_length = (_tmp88_ * _tmp89_) * 3;
-#line 334 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp90_ = data_length;
-#line 334 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp91_ = g_new0 (guint8, _tmp90_);
-#line 334 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- data = (g_free (data), NULL);
-#line 334 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- data = _tmp91_;
-#line 334 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- data_length1 = _tmp90_;
-#line 334 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _data_size_ = data_length1;
-#line 2643 "book.c"
- {
- gint row = 0;
+ pdf_writer_write_string (_tmp108_, "endobj\n");
#line 335 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- row = 0;
-#line 2648 "book.c"
- {
- gboolean _tmp92_ = FALSE;
+ _tmp109_ = writer;
#line 335 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp92_ = TRUE;
-#line 335 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- while (TRUE) {
-#line 2655 "book.c"
- gint _tmp94_ = 0;
- gint _tmp95_ = 0;
- gint in_offset = 0;
- gint _tmp96_ = 0;
- GdkPixbuf* _tmp97_ = NULL;
- gint _tmp98_ = 0;
- gint _tmp99_ = 0;
- gint out_offset = 0;
- gint _tmp100_ = 0;
- gint _tmp101_ = 0;
-#line 335 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- if (!_tmp92_) {
-#line 2668 "book.c"
- gint _tmp93_ = 0;
-#line 335 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp93_ = row;
-#line 335 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- row = _tmp93_ + 1;
-#line 2674 "book.c"
- }
-#line 335 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp92_ = FALSE;
-#line 335 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp94_ = row;
-#line 335 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp95_ = height;
-#line 335 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- if (!(_tmp94_ < _tmp95_)) {
-#line 335 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- break;
-#line 2686 "book.c"
- }
+ pdf_writer_write_string (_tmp109_, "\n");
+#line 336 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp110_ = writer;
+#line 336 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp111_ = pages_number;
+#line 336 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_start_object (_tmp110_, _tmp111_);
#line 337 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp96_ = row;
+ _tmp112_ = writer;
#line 337 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp97_ = image;
+ _tmp113_ = pages_number;
#line 337 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp98_ = gdk_pixbuf_get_rowstride (_tmp97_);
+ _tmp114_ = g_strdup_printf ("%u 0 obj\n", _tmp113_);
#line 337 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp99_ = _tmp98_;
+ _tmp115_ = _tmp114_;
#line 337 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- in_offset = _tmp96_ * _tmp99_;
-#line 338 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp100_ = row;
+ pdf_writer_write_string (_tmp112_, _tmp115_);
+#line 337 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp115_);
#line 338 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp101_ = width;
+ _tmp116_ = writer;
#line 338 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- out_offset = (_tmp100_ * _tmp101_) * 3;
-#line 2704 "book.c"
- {
- gint x = 0;
-#line 339 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- x = 0;
-#line 2709 "book.c"
- {
- gboolean _tmp102_ = FALSE;
+ pdf_writer_write_string (_tmp116_, "<<\n");
#line 339 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp102_ = TRUE;
+ _tmp117_ = writer;
#line 339 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- while (TRUE) {
-#line 2716 "book.c"
- gint _tmp104_ = 0;
- gint _tmp105_ = 0;
- gint in_o = 0;
- gint _tmp106_ = 0;
- gint _tmp107_ = 0;
- gint out_o = 0;
- gint _tmp108_ = 0;
- gint _tmp109_ = 0;
- guint8* _tmp110_ = NULL;
- gint _tmp110__length1 = 0;
- gint _tmp111_ = 0;
- guint8* _tmp112_ = NULL;
- gint _tmp112__length1 = 0;
- gint _tmp113_ = 0;
- guint8 _tmp114_ = 0U;
- guint8 _tmp115_ = 0U;
- guint8* _tmp116_ = NULL;
- gint _tmp116__length1 = 0;
- gint _tmp117_ = 0;
- guint8* _tmp118_ = NULL;
- gint _tmp118__length1 = 0;
- gint _tmp119_ = 0;
- guint8 _tmp120_ = 0U;
- guint8 _tmp121_ = 0U;
- guint8* _tmp122_ = NULL;
- gint _tmp122__length1 = 0;
- gint _tmp123_ = 0;
- guint8* _tmp124_ = NULL;
- gint _tmp124__length1 = 0;
- gint _tmp125_ = 0;
- guint8 _tmp126_ = 0U;
- guint8 _tmp127_ = 0U;
-#line 339 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- if (!_tmp102_) {
-#line 2751 "book.c"
- gint _tmp103_ = 0;
-#line 339 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp103_ = x;
-#line 339 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- x = _tmp103_ + 1;
-#line 2757 "book.c"
- }
-#line 339 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp102_ = FALSE;
-#line 339 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp104_ = x;
-#line 339 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp105_ = width;
-#line 339 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- if (!(_tmp104_ < _tmp105_)) {
-#line 339 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- break;
-#line 2769 "book.c"
- }
+ pdf_writer_write_string (_tmp117_, "/Type /Pages\n");
+#line 340 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp118_ = writer;
+#line 340 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp118_, "/Kids [");
+#line 2630 "book.c"
+ {
+ gint i = 0;
#line 341 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp106_ = in_offset;
+ i = 0;
+#line 2635 "book.c"
+ {
+ gboolean _tmp119_ = FALSE;
#line 341 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp107_ = x;
+ _tmp119_ = TRUE;
+#line 341 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ while (TRUE) {
+#line 2642 "book.c"
+ gint _tmp121_ = 0;
+ guint _tmp122_ = 0U;
+ guint _tmp123_ = 0U;
+ PDFWriter* _tmp124_ = NULL;
+ guint* _tmp125_ = NULL;
+ gint _tmp125__length1 = 0;
+ gint _tmp126_ = 0;
+ guint _tmp127_ = 0U;
+ gchar* _tmp128_ = NULL;
+ gchar* _tmp129_ = NULL;
#line 341 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- in_o = _tmp106_ + (_tmp107_ * 3);
+ if (!_tmp119_) {
+#line 2655 "book.c"
+ gint _tmp120_ = 0;
+#line 341 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp120_ = i;
+#line 341 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ i = _tmp120_ + 1;
+#line 2661 "book.c"
+ }
+#line 341 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp119_ = FALSE;
+#line 341 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp121_ = i;
+#line 341 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp122_ = book_get_n_pages (self);
+#line 341 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp123_ = _tmp122_;
+#line 341 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ if (!(((guint) _tmp121_) < _tmp123_)) {
+#line 341 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ break;
+#line 2675 "book.c"
+ }
#line 342 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp108_ = out_offset;
+ _tmp124_ = writer;
#line 342 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp109_ = x;
+ _tmp125_ = page_numbers;
#line 342 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- out_o = _tmp108_ + (_tmp109_ * 3);
-#line 344 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp110_ = data;
-#line 344 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp110__length1 = data_length1;
+ _tmp125__length1 = page_numbers_length1;
+#line 342 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp126_ = i;
+#line 342 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp127_ = _tmp125_[_tmp126_];
+#line 342 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp128_ = g_strdup_printf (" %u 0 R", _tmp127_);
+#line 342 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp129_ = _tmp128_;
+#line 342 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp124_, _tmp129_);
+#line 342 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp129_);
+#line 2695 "book.c"
+ }
+ }
+ }
+#line 343 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp130_ = writer;
+#line 343 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp130_, " ]\n");
#line 344 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp111_ = out_o;
+ _tmp131_ = writer;
#line 344 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp112_ = pixels;
+ _tmp132_ = book_get_n_pages (self);
#line 344 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp112__length1 = pixels_length1;
+ _tmp133_ = _tmp132_;
#line 344 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp113_ = in_o;
+ _tmp134_ = g_strdup_printf ("/Count %u\n", _tmp133_);
#line 344 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp114_ = _tmp112_[_tmp113_];
+ _tmp135_ = _tmp134_;
#line 344 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp110_[_tmp111_] = _tmp114_;
+ pdf_writer_write_string (_tmp131_, _tmp135_);
#line 344 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp115_ = _tmp110_[_tmp111_];
-#line 345 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp116_ = data;
-#line 345 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp116__length1 = data_length1;
-#line 345 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp117_ = out_o;
-#line 345 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp118_ = pixels;
-#line 345 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp118__length1 = pixels_length1;
-#line 345 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp119_ = in_o;
-#line 345 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp120_ = _tmp118_[_tmp119_ + 1];
+ _g_free0 (_tmp135_);
#line 345 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp116_[_tmp117_ + 1] = _tmp120_;
+ _tmp136_ = writer;
#line 345 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp121_ = _tmp116_[_tmp117_ + 1];
+ pdf_writer_write_string (_tmp136_, ">>\n");
#line 346 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp122_ = data;
+ _tmp137_ = writer;
#line 346 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp122__length1 = data_length1;
-#line 346 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp123_ = out_o;
-#line 346 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp124_ = pixels;
-#line 346 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp124__length1 = pixels_length1;
-#line 346 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp125_ = in_o;
-#line 346 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp126_ = _tmp124_[_tmp125_ + 2];
-#line 346 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp122_[_tmp123_ + 2] = _tmp126_;
-#line 346 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp127_ = _tmp122_[_tmp123_ + 2];
-#line 2837 "book.c"
- }
- }
- }
- }
- }
- }
- } else {
- Page* _tmp128_ = NULL;
- gint _tmp129_ = 0;
- gint _tmp130_ = 0;
-#line 350 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp128_ = page;
+ pdf_writer_write_string (_tmp137_, "endobj\n");
+#line 2725 "book.c"
+ {
+ gint i = 0;
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ i = 0;
+#line 2730 "book.c"
+ {
+ gboolean _tmp138_ = FALSE;
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp138_ = TRUE;
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ while (TRUE) {
+#line 2737 "book.c"
+ gint _tmp140_ = 0;
+ guint _tmp141_ = 0U;
+ guint _tmp142_ = 0U;
+ Page* page = NULL;
+ gint _tmp143_ = 0;
+ Page* _tmp144_ = NULL;
+ GdkPixbuf* image = NULL;
+ Page* _tmp145_ = NULL;
+ GdkPixbuf* _tmp146_ = NULL;
+ gint width = 0;
+ GdkPixbuf* _tmp147_ = NULL;
+ gint _tmp148_ = 0;
+ gint _tmp149_ = 0;
+ gint height = 0;
+ GdkPixbuf* _tmp150_ = NULL;
+ gint _tmp151_ = 0;
+ gint _tmp152_ = 0;
+ guint8* pixels = NULL;
+ GdkPixbuf* _tmp153_ = NULL;
+ guint8* _tmp154_ = NULL;
+ gint pixels_length1 = 0;
+ gint _pixels_size_ = 0;
+ gdouble page_width = 0.0;
+ gint _tmp155_ = 0;
+ Page* _tmp156_ = NULL;
+ gint _tmp157_ = 0;
+ gint _tmp158_ = 0;
+ gdouble page_height = 0.0;
+ gint _tmp159_ = 0;
+ Page* _tmp160_ = NULL;
+ gint _tmp161_ = 0;
+ gint _tmp162_ = 0;
+ gint depth = 0;
+ gchar* color_space = NULL;
+ gchar* _tmp163_ = NULL;
+ gchar* filter = NULL;
+ gchar* width_buffer = NULL;
+ gchar* _tmp164_ = NULL;
+ gint width_buffer_length1 = 0;
+ gint _width_buffer_size_ = 0;
+ gchar* height_buffer = NULL;
+ gchar* _tmp165_ = NULL;
+ gint height_buffer_length1 = 0;
+ gint _height_buffer_size_ = 0;
+ guint8* data = NULL;
+ gint data_length1 = 0;
+ gint _data_size_ = 0;
+ Page* _tmp166_ = NULL;
+ gboolean _tmp167_ = FALSE;
+ gboolean _tmp168_ = FALSE;
+ guint8* compressed_data = NULL;
+ guint8* _tmp322_ = NULL;
+ gint _tmp322__length1 = 0;
+ gint _tmp323_ = 0;
+ guint8* _tmp324_ = NULL;
+ gint compressed_data_length1 = 0;
+ gint _compressed_data_size_ = 0;
+ guint8* _tmp325_ = NULL;
+ gint _tmp325__length1 = 0;
+ PDFWriter* _tmp343_ = NULL;
+ PDFWriter* _tmp344_ = NULL;
+ guint* _tmp345_ = NULL;
+ gint _tmp345__length1 = 0;
+ gint _tmp346_ = 0;
+ guint _tmp347_ = 0U;
+ PDFWriter* _tmp348_ = NULL;
+ guint* _tmp349_ = NULL;
+ gint _tmp349__length1 = 0;
+ gint _tmp350_ = 0;
+ guint _tmp351_ = 0U;
+ gchar* _tmp352_ = NULL;
+ gchar* _tmp353_ = NULL;
+ PDFWriter* _tmp354_ = NULL;
+ PDFWriter* _tmp355_ = NULL;
+ PDFWriter* _tmp356_ = NULL;
+ guint _tmp357_ = 0U;
+ gchar* _tmp358_ = NULL;
+ gchar* _tmp359_ = NULL;
+ PDFWriter* _tmp360_ = NULL;
+ gint _tmp361_ = 0;
+ guint* _tmp362_ = NULL;
+ gint _tmp362__length1 = 0;
+ gint _tmp363_ = 0;
+ guint _tmp364_ = 0U;
+ gchar* _tmp365_ = NULL;
+ gchar* _tmp366_ = NULL;
+ PDFWriter* _tmp367_ = NULL;
+ gdouble _tmp368_ = 0.0;
+ gchar* _tmp369_ = NULL;
+ gint _tmp369__length1 = 0;
+ const gchar* _tmp370_ = NULL;
+ gdouble _tmp371_ = 0.0;
+ gchar* _tmp372_ = NULL;
+ gint _tmp372__length1 = 0;
+ const gchar* _tmp373_ = NULL;
+ gchar* _tmp374_ = NULL;
+ gchar* _tmp375_ = NULL;
+ PDFWriter* _tmp376_ = NULL;
+ guint* _tmp377_ = NULL;
+ gint _tmp377__length1 = 0;
+ gint _tmp378_ = 0;
+ guint _tmp379_ = 0U;
+ gchar* _tmp380_ = NULL;
+ gchar* _tmp381_ = NULL;
+ PDFWriter* _tmp382_ = NULL;
+ PDFWriter* _tmp383_ = NULL;
+ PDFWriter* _tmp384_ = NULL;
+ PDFWriter* _tmp385_ = NULL;
+ guint* _tmp386_ = NULL;
+ gint _tmp386__length1 = 0;
+ gint _tmp387_ = 0;
+ guint _tmp388_ = 0U;
+ PDFWriter* _tmp389_ = NULL;
+ guint* _tmp390_ = NULL;
+ gint _tmp390__length1 = 0;
+ gint _tmp391_ = 0;
+ guint _tmp392_ = 0U;
+ gchar* _tmp393_ = NULL;
+ gchar* _tmp394_ = NULL;
+ PDFWriter* _tmp395_ = NULL;
+ PDFWriter* _tmp396_ = NULL;
+ PDFWriter* _tmp397_ = NULL;
+ PDFWriter* _tmp398_ = NULL;
+ gint _tmp399_ = 0;
+ gchar* _tmp400_ = NULL;
+ gchar* _tmp401_ = NULL;
+ PDFWriter* _tmp402_ = NULL;
+ gint _tmp403_ = 0;
+ gchar* _tmp404_ = NULL;
+ gchar* _tmp405_ = NULL;
+ PDFWriter* _tmp406_ = NULL;
+ const gchar* _tmp407_ = NULL;
+ gchar* _tmp408_ = NULL;
+ gchar* _tmp409_ = NULL;
+ PDFWriter* _tmp410_ = NULL;
+ gint _tmp411_ = 0;
+ gchar* _tmp412_ = NULL;
+ gchar* _tmp413_ = NULL;
+ PDFWriter* _tmp414_ = NULL;
+ guint8* _tmp415_ = NULL;
+ gint _tmp415__length1 = 0;
+ gchar* _tmp416_ = NULL;
+ gchar* _tmp417_ = NULL;
+ const gchar* _tmp418_ = NULL;
+ PDFWriter* _tmp423_ = NULL;
+ PDFWriter* _tmp424_ = NULL;
+ PDFWriter* _tmp425_ = NULL;
+ guint8* _tmp426_ = NULL;
+ gint _tmp426__length1 = 0;
+ PDFWriter* _tmp427_ = NULL;
+ PDFWriter* _tmp428_ = NULL;
+ PDFWriter* _tmp429_ = NULL;
+ PDFWriter* _tmp430_ = NULL;
+ PDFWriter* _tmp431_ = NULL;
+ guint _tmp432_ = 0U;
+ PDFWriter* _tmp433_ = NULL;
+ guint _tmp434_ = 0U;
+ gchar* _tmp435_ = NULL;
+ gchar* _tmp436_ = NULL;
+ PDFWriter* _tmp437_ = NULL;
+ PDFWriter* _tmp438_ = NULL;
+ PDFWriter* _tmp439_ = NULL;
+ PDFWriter* _tmp440_ = NULL;
+ gchar* command = NULL;
+ gdouble _tmp441_ = 0.0;
+ gchar* _tmp442_ = NULL;
+ gint _tmp442__length1 = 0;
+ const gchar* _tmp443_ = NULL;
+ gdouble _tmp444_ = 0.0;
+ gchar* _tmp445_ = NULL;
+ gint _tmp445__length1 = 0;
+ const gchar* _tmp446_ = NULL;
+ gint _tmp447_ = 0;
+ gchar* _tmp448_ = NULL;
+ PDFWriter* _tmp449_ = NULL;
+ PDFWriter* _tmp450_ = NULL;
+ guint* _tmp451_ = NULL;
+ gint _tmp451__length1 = 0;
+ gint _tmp452_ = 0;
+ guint _tmp453_ = 0U;
+ PDFWriter* _tmp454_ = NULL;
+ guint* _tmp455_ = NULL;
+ gint _tmp455__length1 = 0;
+ gint _tmp456_ = 0;
+ guint _tmp457_ = 0U;
+ gchar* _tmp458_ = NULL;
+ gchar* _tmp459_ = NULL;
+ PDFWriter* _tmp460_ = NULL;
+ PDFWriter* _tmp461_ = NULL;
+ const gchar* _tmp462_ = NULL;
+ gint _tmp463_ = 0;
+ gint _tmp464_ = 0;
+ gchar* _tmp465_ = NULL;
+ gchar* _tmp466_ = NULL;
+ PDFWriter* _tmp467_ = NULL;
+ PDFWriter* _tmp468_ = NULL;
+ PDFWriter* _tmp469_ = NULL;
+ const gchar* _tmp470_ = NULL;
+ PDFWriter* _tmp471_ = NULL;
+ PDFWriter* _tmp472_ = NULL;
+ PDFWriter* _tmp473_ = NULL;
+ gint _tmp474_ = 0;
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ if (!_tmp138_) {
+#line 2942 "book.c"
+ gint _tmp139_ = 0;
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp139_ = i;
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ i = _tmp139_ + 1;
+#line 2948 "book.c"
+ }
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp138_ = FALSE;
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp140_ = i;
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp141_ = book_get_n_pages (self);
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp142_ = _tmp141_;
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ if (!(((guint) _tmp140_) < _tmp142_)) {
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ break;
+#line 2962 "book.c"
+ }
#line 350 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp129_ = page_get_depth (_tmp128_);
+ _tmp143_ = i;
#line 350 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp130_ = _tmp129_;
+ _tmp144_ = book_get_page (self, _tmp143_);
#line 350 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- if (_tmp130_ == 2) {
-#line 2856 "book.c"
- gint shift_count = 0;
- gchar* _tmp131_ = NULL;
- gint data_length = 0;
- gint _tmp132_ = 0;
- gint _tmp133_ = 0;
- gint _tmp134_ = 0;
- guint8* _tmp135_ = NULL;
- gint offset = 0;
+ page = _tmp144_;
+#line 351 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp145_ = page;
+#line 351 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp146_ = page_get_image (_tmp145_, TRUE);
+#line 351 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ image = _tmp146_;
#line 352 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- shift_count = 6;
+ _tmp147_ = image;
+#line 352 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp148_ = gdk_pixbuf_get_width (_tmp147_);
+#line 352 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp149_ = _tmp148_;
+#line 352 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ width = _tmp149_;
#line 353 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- depth = 2;
+ _tmp150_ = image;
+#line 353 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp151_ = gdk_pixbuf_get_height (_tmp150_);
+#line 353 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp152_ = _tmp151_;
+#line 353 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ height = _tmp152_;
#line 354 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp131_ = g_strdup ("DeviceGray");
+ _tmp153_ = image;
#line 354 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _g_free0 (color_space);
+ _tmp154_ = gdk_pixbuf_get_pixels (_tmp153_);
+#line 354 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pixels = _tmp154_;
#line 354 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- color_space = _tmp131_;
+ pixels_length1 = -1;
+#line 354 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _pixels_size_ = pixels_length1;
#line 355 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp132_ = height;
+ _tmp155_ = width;
#line 355 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp133_ = width;
+ _tmp156_ = page;
#line 355 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- data_length = _tmp132_ * (((_tmp133_ * 2) + 7) / 8);
-#line 356 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp134_ = data_length;
+ _tmp157_ = page_get_dpi (_tmp156_);
+#line 355 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp158_ = _tmp157_;
+#line 355 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ page_width = (_tmp155_ * 72.0) / _tmp158_;
#line 356 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp135_ = g_new0 (guint8, _tmp134_);
+ _tmp159_ = height;
#line 356 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- data = (g_free (data), NULL);
+ _tmp160_ = page;
#line 356 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- data = _tmp135_;
+ _tmp161_ = page_get_dpi (_tmp160_);
#line 356 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- data_length1 = _tmp134_;
+ _tmp162_ = _tmp161_;
#line 356 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _data_size_ = data_length1;
-#line 357 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- offset = 0;
-#line 2895 "book.c"
- {
- gint row = 0;
-#line 358 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- row = 0;
-#line 2900 "book.c"
- {
- gboolean _tmp136_ = FALSE;
-#line 358 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp136_ = TRUE;
-#line 358 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- while (TRUE) {
-#line 2907 "book.c"
- gint _tmp138_ = 0;
- gint _tmp139_ = 0;
- gint _tmp140_ = 0;
- gint in_offset = 0;
- gint _tmp142_ = 0;
- GdkPixbuf* _tmp143_ = NULL;
- gint _tmp144_ = 0;
- gint _tmp145_ = 0;
-#line 358 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- if (!_tmp136_) {
-#line 2918 "book.c"
- gint _tmp137_ = 0;
-#line 358 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp137_ = row;
-#line 358 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- row = _tmp137_ + 1;
-#line 2924 "book.c"
- }
-#line 358 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp136_ = FALSE;
-#line 358 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp138_ = row;
-#line 358 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp139_ = height;
+ page_height = (_tmp159_ * 72.0) / _tmp162_;
#line 358 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- if (!(_tmp138_ < _tmp139_)) {
-#line 358 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- break;
-#line 2936 "book.c"
- }
+ depth = 8;
+#line 359 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp163_ = g_strdup ("DeviceRGB");
+#line 359 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ color_space = _tmp163_;
+#line 360 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ filter = NULL;
#line 361 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp140_ = shift_count;
+ _tmp164_ = g_new0 (gchar, G_ASCII_DTOSTR_BUF_SIZE);
#line 361 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- if (_tmp140_ != 6) {
-#line 2942 "book.c"
- gint _tmp141_ = 0;
-#line 363 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp141_ = offset;
-#line 363 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- offset = _tmp141_ + 1;
+ width_buffer = _tmp164_;
+#line 361 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ width_buffer_length1 = G_ASCII_DTOSTR_BUF_SIZE;
+#line 361 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _width_buffer_size_ = width_buffer_length1;
+#line 362 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp165_ = g_new0 (gchar, G_ASCII_DTOSTR_BUF_SIZE);
+#line 362 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ height_buffer = _tmp165_;
+#line 362 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ height_buffer_length1 = G_ASCII_DTOSTR_BUF_SIZE;
+#line 362 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _height_buffer_size_ = height_buffer_length1;
#line 364 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- shift_count = 6;
-#line 2950 "book.c"
- }
-#line 367 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp142_ = row;
-#line 367 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp143_ = image;
+ _tmp166_ = page;
+#line 364 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp167_ = page_get_is_color (_tmp166_);
+#line 364 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp168_ = _tmp167_;
+#line 364 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ if (_tmp168_) {
+#line 3054 "book.c"
+ gchar* _tmp169_ = NULL;
+ gint data_length = 0;
+ gint _tmp170_ = 0;
+ gint _tmp171_ = 0;
+ gint _tmp172_ = 0;
+ guint8* _tmp173_ = NULL;
+#line 366 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ depth = 8;
#line 367 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp144_ = gdk_pixbuf_get_rowstride (_tmp143_);
+ _tmp169_ = g_strdup ("DeviceRGB");
#line 367 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp145_ = _tmp144_;
+ _g_free0 (color_space);
#line 367 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- in_offset = _tmp142_ * _tmp145_;
-#line 2962 "book.c"
- {
- gint x = 0;
-#line 368 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- x = 0;
-#line 2967 "book.c"
- {
- gboolean _tmp146_ = FALSE;
-#line 368 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp146_ = TRUE;
-#line 368 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- while (TRUE) {
-#line 2974 "book.c"
- gint _tmp148_ = 0;
- gint _tmp149_ = 0;
- gint _tmp150_ = 0;
- guint8 p = 0U;
- guint8* _tmp154_ = NULL;
- gint _tmp154__length1 = 0;
- gint _tmp155_ = 0;
- gint _tmp156_ = 0;
- guint8 _tmp157_ = 0U;
- guint8 _tmp158_ = 0U;
- gint _tmp173_ = 0;
-#line 368 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- if (!_tmp146_) {
-#line 2988 "book.c"
- gint _tmp147_ = 0;
-#line 368 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp147_ = x;
-#line 368 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- x = _tmp147_ + 1;
-#line 2994 "book.c"
- }
+ color_space = _tmp169_;
#line 368 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp146_ = FALSE;
+ _tmp170_ = height;
#line 368 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp148_ = x;
+ _tmp171_ = width;
#line 368 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp149_ = width;
-#line 368 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- if (!(_tmp148_ < _tmp149_)) {
-#line 368 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- break;
-#line 3006 "book.c"
- }
-#line 371 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp150_ = shift_count;
-#line 371 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- if (_tmp150_ == 6) {
-#line 3012 "book.c"
- guint8* _tmp151_ = NULL;
- gint _tmp151__length1 = 0;
- gint _tmp152_ = 0;
- guint8 _tmp153_ = 0U;
+ data_length = (_tmp170_ * _tmp171_) * 3;
+#line 369 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp172_ = data_length;
+#line 369 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp173_ = g_new0 (guint8, _tmp172_);
+#line 369 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ data = (g_free (data), NULL);
+#line 369 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ data = _tmp173_;
+#line 369 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ data_length1 = _tmp172_;
+#line 369 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _data_size_ = data_length1;
+#line 3087 "book.c"
+ {
+ gint row = 0;
+#line 370 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ row = 0;
+#line 3092 "book.c"
+ {
+ gboolean _tmp174_ = FALSE;
+#line 370 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp174_ = TRUE;
+#line 370 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ while (TRUE) {
+#line 3099 "book.c"
+ gint _tmp176_ = 0;
+ gint _tmp177_ = 0;
+ gint in_offset = 0;
+ gint _tmp178_ = 0;
+ GdkPixbuf* _tmp179_ = NULL;
+ gint _tmp180_ = 0;
+ gint _tmp181_ = 0;
+ gint out_offset = 0;
+ gint _tmp182_ = 0;
+ gint _tmp183_ = 0;
+#line 370 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ if (!_tmp174_) {
+#line 3112 "book.c"
+ gint _tmp175_ = 0;
+#line 370 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp175_ = row;
+#line 370 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ row = _tmp175_ + 1;
+#line 3118 "book.c"
+ }
+#line 370 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp174_ = FALSE;
+#line 370 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp176_ = row;
+#line 370 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp177_ = height;
+#line 370 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ if (!(_tmp176_ < _tmp177_)) {
+#line 370 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ break;
+#line 3130 "book.c"
+ }
#line 372 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp151_ = data;
+ _tmp178_ = row;
#line 372 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp151__length1 = data_length1;
+ _tmp179_ = image;
#line 372 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp152_ = offset;
+ _tmp180_ = gdk_pixbuf_get_rowstride (_tmp179_);
#line 372 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp151_[_tmp152_] = (guint8) 0;
+ _tmp181_ = _tmp180_;
#line 372 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp153_ = _tmp151_[_tmp152_];
-#line 3027 "book.c"
- }
-#line 375 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp154_ = pixels;
-#line 375 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp154__length1 = pixels_length1;
-#line 375 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp155_ = in_offset;
-#line 375 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp156_ = x;
-#line 375 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp157_ = _tmp154_[_tmp155_ + (_tmp156_ * 3)];
-#line 375 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- p = _tmp157_;
+ in_offset = _tmp178_ * _tmp181_;
+#line 373 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp182_ = row;
+#line 373 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp183_ = width;
+#line 373 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ out_offset = (_tmp182_ * _tmp183_) * 3;
+#line 3148 "book.c"
+ {
+ gint x = 0;
+#line 374 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ x = 0;
+#line 3153 "book.c"
+ {
+ gboolean _tmp184_ = FALSE;
+#line 374 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp184_ = TRUE;
+#line 374 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ while (TRUE) {
+#line 3160 "book.c"
+ gint _tmp186_ = 0;
+ gint _tmp187_ = 0;
+ gint in_o = 0;
+ gint _tmp188_ = 0;
+ gint _tmp189_ = 0;
+ gint out_o = 0;
+ gint _tmp190_ = 0;
+ gint _tmp191_ = 0;
+ guint8* _tmp192_ = NULL;
+ gint _tmp192__length1 = 0;
+ gint _tmp193_ = 0;
+ guint8* _tmp194_ = NULL;
+ gint _tmp194__length1 = 0;
+ gint _tmp195_ = 0;
+ guint8 _tmp196_ = 0U;
+ guint8 _tmp197_ = 0U;
+ guint8* _tmp198_ = NULL;
+ gint _tmp198__length1 = 0;
+ gint _tmp199_ = 0;
+ guint8* _tmp200_ = NULL;
+ gint _tmp200__length1 = 0;
+ gint _tmp201_ = 0;
+ guint8 _tmp202_ = 0U;
+ guint8 _tmp203_ = 0U;
+ guint8* _tmp204_ = NULL;
+ gint _tmp204__length1 = 0;
+ gint _tmp205_ = 0;
+ guint8* _tmp206_ = NULL;
+ gint _tmp206__length1 = 0;
+ gint _tmp207_ = 0;
+ guint8 _tmp208_ = 0U;
+ guint8 _tmp209_ = 0U;
+#line 374 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ if (!_tmp184_) {
+#line 3195 "book.c"
+ gint _tmp185_ = 0;
+#line 374 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp185_ = x;
+#line 374 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ x = _tmp185_ + 1;
+#line 3201 "book.c"
+ }
+#line 374 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp184_ = FALSE;
+#line 374 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp186_ = x;
+#line 374 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp187_ = width;
+#line 374 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ if (!(_tmp186_ < _tmp187_)) {
+#line 374 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ break;
+#line 3213 "book.c"
+ }
#line 376 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp158_ = p;
+ _tmp188_ = in_offset;
#line 376 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- if (((gint) _tmp158_) >= 192) {
-#line 3045 "book.c"
- guint8* _tmp159_ = NULL;
- gint _tmp159__length1 = 0;
- gint _tmp160_ = 0;
- gint _tmp161_ = 0;
- guint8 _tmp162_ = 0U;
-#line 377 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp159_ = data;
-#line 377 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp159__length1 = data_length1;
-#line 377 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp160_ = offset;
+ _tmp189_ = x;
+#line 376 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ in_o = _tmp188_ + (_tmp189_ * 3);
#line 377 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp161_ = shift_count;
+ _tmp190_ = out_offset;
#line 377 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp159_[_tmp160_] |= (guint8) (3 << _tmp161_);
+ _tmp191_ = x;
#line 377 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp162_ = _tmp159_[_tmp160_];
-#line 3063 "book.c"
- } else {
- guint8 _tmp163_ = 0U;
-#line 378 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp163_ = p;
-#line 378 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- if (((gint) _tmp163_) >= 128) {
-#line 3070 "book.c"
- guint8* _tmp164_ = NULL;
- gint _tmp164__length1 = 0;
- gint _tmp165_ = 0;
- gint _tmp166_ = 0;
- guint8 _tmp167_ = 0U;
+ out_o = _tmp190_ + (_tmp191_ * 3);
#line 379 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp164_ = data;
+ _tmp192_ = data;
#line 379 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp164__length1 = data_length1;
+ _tmp192__length1 = data_length1;
#line 379 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp165_ = offset;
+ _tmp193_ = out_o;
#line 379 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp166_ = shift_count;
+ _tmp194_ = pixels;
#line 379 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp164_[_tmp165_] |= (guint8) (2 << _tmp166_);
+ _tmp194__length1 = pixels_length1;
#line 379 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp167_ = _tmp164_[_tmp165_];
-#line 3088 "book.c"
- } else {
- guint8 _tmp168_ = 0U;
+ _tmp195_ = in_o;
+#line 379 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp196_ = _tmp194_[_tmp195_];
+#line 379 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp192_[_tmp193_] = _tmp196_;
+#line 379 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp197_ = _tmp192_[_tmp193_];
+#line 380 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp198_ = data;
+#line 380 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp198__length1 = data_length1;
+#line 380 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp199_ = out_o;
#line 380 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp168_ = p;
+ _tmp200_ = pixels;
#line 380 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- if (((gint) _tmp168_) >= 64) {
-#line 3095 "book.c"
- guint8* _tmp169_ = NULL;
- gint _tmp169__length1 = 0;
- gint _tmp170_ = 0;
- gint _tmp171_ = 0;
- guint8 _tmp172_ = 0U;
+ _tmp200__length1 = pixels_length1;
+#line 380 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp201_ = in_o;
+#line 380 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp202_ = _tmp200_[_tmp201_ + 1];
+#line 380 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp198_[_tmp199_ + 1] = _tmp202_;
+#line 380 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp203_ = _tmp198_[_tmp199_ + 1];
#line 381 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp169_ = data;
+ _tmp204_ = data;
#line 381 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp169__length1 = data_length1;
+ _tmp204__length1 = data_length1;
#line 381 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp170_ = offset;
+ _tmp205_ = out_o;
#line 381 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp171_ = shift_count;
+ _tmp206_ = pixels;
#line 381 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp169_[_tmp170_] |= (guint8) (1 << _tmp171_);
+ _tmp206__length1 = pixels_length1;
#line 381 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp172_ = _tmp169_[_tmp170_];
-#line 3113 "book.c"
- }
- }
- }
-#line 384 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp173_ = shift_count;
-#line 384 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- if (_tmp173_ == 0) {
-#line 3121 "book.c"
- gint _tmp174_ = 0;
-#line 386 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp174_ = offset;
-#line 386 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- offset = _tmp174_ + 1;
-#line 387 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- shift_count = 6;
-#line 3129 "book.c"
- } else {
- gint _tmp175_ = 0;
-#line 390 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp175_ = shift_count;
-#line 390 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- shift_count = _tmp175_ - 2;
-#line 3136 "book.c"
- }
- }
+ _tmp207_ = in_o;
+#line 381 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp208_ = _tmp206_[_tmp207_ + 2];
+#line 381 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp204_[_tmp205_ + 2] = _tmp208_;
+#line 381 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp209_ = _tmp204_[_tmp205_ + 2];
+#line 3281 "book.c"
}
}
}
}
}
- } else {
- Page* _tmp176_ = NULL;
- gint _tmp177_ = 0;
- gint _tmp178_ = 0;
-#line 394 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp176_ = page;
-#line 394 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp177_ = page_get_depth (_tmp176_);
-#line 394 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp178_ = _tmp177_;
-#line 394 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- if (_tmp178_ == 1) {
-#line 3156 "book.c"
- gint mask = 0;
- gchar* _tmp179_ = NULL;
- gint data_length = 0;
- gint _tmp180_ = 0;
- gint _tmp181_ = 0;
- gint _tmp182_ = 0;
- guint8* _tmp183_ = NULL;
- gint offset = 0;
+ }
+ } else {
+ Page* _tmp210_ = NULL;
+ gint _tmp211_ = 0;
+ gint _tmp212_ = 0;
+#line 385 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp210_ = page;
+#line 385 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp211_ = page_get_depth (_tmp210_);
+#line 385 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp212_ = _tmp211_;
+#line 385 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ if (_tmp212_ == 2) {
+#line 3300 "book.c"
+ gint shift_count = 0;
+ gchar* _tmp213_ = NULL;
+ gint data_length = 0;
+ gint _tmp214_ = 0;
+ gint _tmp215_ = 0;
+ gint _tmp216_ = 0;
+ guint8* _tmp217_ = NULL;
+ gint offset = 0;
+#line 387 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ shift_count = 6;
+#line 388 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ depth = 2;
+#line 389 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp213_ = g_strdup ("DeviceGray");
+#line 389 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (color_space);
+#line 389 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ color_space = _tmp213_;
+#line 390 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp214_ = height;
+#line 390 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp215_ = width;
+#line 390 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ data_length = _tmp214_ * (((_tmp215_ * 2) + 7) / 8);
+#line 391 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp216_ = data_length;
+#line 391 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp217_ = g_new0 (guint8, _tmp216_);
+#line 391 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ data = (g_free (data), NULL);
+#line 391 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ data = _tmp217_;
+#line 391 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ data_length1 = _tmp216_;
+#line 391 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _data_size_ = data_length1;
+#line 392 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ offset = 0;
+#line 3339 "book.c"
+ {
+ gint row = 0;
+#line 393 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ row = 0;
+#line 3344 "book.c"
+ {
+ gboolean _tmp218_ = FALSE;
+#line 393 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp218_ = TRUE;
+#line 393 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ while (TRUE) {
+#line 3351 "book.c"
+ gint _tmp220_ = 0;
+ gint _tmp221_ = 0;
+ gint _tmp222_ = 0;
+ gint in_offset = 0;
+ gint _tmp224_ = 0;
+ GdkPixbuf* _tmp225_ = NULL;
+ gint _tmp226_ = 0;
+ gint _tmp227_ = 0;
+#line 393 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ if (!_tmp218_) {
+#line 3362 "book.c"
+ gint _tmp219_ = 0;
+#line 393 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp219_ = row;
+#line 393 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ row = _tmp219_ + 1;
+#line 3368 "book.c"
+ }
+#line 393 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp218_ = FALSE;
+#line 393 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp220_ = row;
+#line 393 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp221_ = height;
+#line 393 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ if (!(_tmp220_ < _tmp221_)) {
+#line 393 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ break;
+#line 3380 "book.c"
+ }
#line 396 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- mask = 0x80;
+ _tmp222_ = shift_count;
+#line 396 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ if (_tmp222_ != 6) {
+#line 3386 "book.c"
+ gint _tmp223_ = 0;
#line 398 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- depth = 1;
-#line 399 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp179_ = g_strdup ("DeviceGray");
-#line 399 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _g_free0 (color_space);
+ _tmp223_ = offset;
+#line 398 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ offset = _tmp223_ + 1;
#line 399 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- color_space = _tmp179_;
-#line 400 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp180_ = height;
-#line 400 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp181_ = width;
-#line 400 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- data_length = _tmp180_ * ((_tmp181_ + 7) / 8);
-#line 401 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp182_ = data_length;
-#line 401 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp183_ = g_new0 (guint8, _tmp182_);
-#line 401 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- data = (g_free (data), NULL);
-#line 401 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- data = _tmp183_;
-#line 401 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- data_length1 = _tmp182_;
-#line 401 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _data_size_ = data_length1;
+ shift_count = 6;
+#line 3394 "book.c"
+ }
#line 402 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- offset = 0;
-#line 3195 "book.c"
- {
- gint row = 0;
+ _tmp224_ = row;
+#line 402 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp225_ = image;
+#line 402 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp226_ = gdk_pixbuf_get_rowstride (_tmp225_);
+#line 402 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp227_ = _tmp226_;
+#line 402 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ in_offset = _tmp224_ * _tmp227_;
+#line 3406 "book.c"
+ {
+ gint x = 0;
#line 403 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- row = 0;
-#line 3200 "book.c"
- {
- gboolean _tmp184_ = FALSE;
+ x = 0;
+#line 3411 "book.c"
+ {
+ gboolean _tmp228_ = FALSE;
#line 403 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp184_ = TRUE;
+ _tmp228_ = TRUE;
#line 403 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- while (TRUE) {
-#line 3207 "book.c"
- gint _tmp186_ = 0;
- gint _tmp187_ = 0;
- gint _tmp188_ = 0;
- gint in_offset = 0;
- gint _tmp190_ = 0;
- GdkPixbuf* _tmp191_ = NULL;
- gint _tmp192_ = 0;
- gint _tmp193_ = 0;
+ while (TRUE) {
+#line 3418 "book.c"
+ gint _tmp230_ = 0;
+ gint _tmp231_ = 0;
+ gint _tmp232_ = 0;
+ guint8 p = 0U;
+ guint8* _tmp236_ = NULL;
+ gint _tmp236__length1 = 0;
+ gint _tmp237_ = 0;
+ gint _tmp238_ = 0;
+ guint8 _tmp239_ = 0U;
+ guint8 _tmp240_ = 0U;
+ gint _tmp255_ = 0;
#line 403 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- if (!_tmp184_) {
-#line 3218 "book.c"
- gint _tmp185_ = 0;
+ if (!_tmp228_) {
+#line 3432 "book.c"
+ gint _tmp229_ = 0;
#line 403 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp185_ = row;
+ _tmp229_ = x;
#line 403 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- row = _tmp185_ + 1;
-#line 3224 "book.c"
- }
+ x = _tmp229_ + 1;
+#line 3438 "book.c"
+ }
#line 403 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp184_ = FALSE;
+ _tmp228_ = FALSE;
#line 403 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp186_ = row;
+ _tmp230_ = x;
#line 403 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp187_ = height;
+ _tmp231_ = width;
#line 403 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- if (!(_tmp186_ < _tmp187_)) {
+ if (!(_tmp230_ < _tmp231_)) {
#line 403 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- break;
-#line 3236 "book.c"
- }
+ break;
+#line 3450 "book.c"
+ }
#line 406 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp188_ = mask;
+ _tmp232_ = shift_count;
#line 406 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- if (_tmp188_ != 0x80) {
-#line 3242 "book.c"
- gint _tmp189_ = 0;
-#line 408 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp189_ = offset;
-#line 408 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- offset = _tmp189_ + 1;
-#line 409 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- mask = 0x80;
-#line 3250 "book.c"
- }
+ if (_tmp232_ == 6) {
+#line 3456 "book.c"
+ guint8* _tmp233_ = NULL;
+ gint _tmp233__length1 = 0;
+ gint _tmp234_ = 0;
+ guint8 _tmp235_ = 0U;
+#line 407 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp233_ = data;
+#line 407 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp233__length1 = data_length1;
+#line 407 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp234_ = offset;
+#line 407 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp233_[_tmp234_] = (guint8) 0;
+#line 407 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp235_ = _tmp233_[_tmp234_];
+#line 3471 "book.c"
+ }
+#line 410 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp236_ = pixels;
+#line 410 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp236__length1 = pixels_length1;
+#line 410 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp237_ = in_offset;
+#line 410 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp238_ = x;
+#line 410 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp239_ = _tmp236_[_tmp237_ + (_tmp238_ * 3)];
+#line 410 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ p = _tmp239_;
+#line 411 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp240_ = p;
+#line 411 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ if (((gint) _tmp240_) >= 192) {
+#line 3489 "book.c"
+ guint8* _tmp241_ = NULL;
+ gint _tmp241__length1 = 0;
+ gint _tmp242_ = 0;
+ gint _tmp243_ = 0;
+ guint8 _tmp244_ = 0U;
#line 412 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp190_ = row;
+ _tmp241_ = data;
#line 412 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp191_ = image;
+ _tmp241__length1 = data_length1;
#line 412 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp192_ = gdk_pixbuf_get_rowstride (_tmp191_);
+ _tmp242_ = offset;
#line 412 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp193_ = _tmp192_;
+ _tmp243_ = shift_count;
#line 412 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- in_offset = _tmp190_ * _tmp193_;
-#line 3262 "book.c"
- {
- gint x = 0;
-#line 413 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- x = 0;
-#line 3267 "book.c"
- {
- gboolean _tmp194_ = FALSE;
-#line 413 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp194_ = TRUE;
-#line 413 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- while (TRUE) {
-#line 3274 "book.c"
- gint _tmp196_ = 0;
- gint _tmp197_ = 0;
- gint _tmp198_ = 0;
- guint8* _tmp202_ = NULL;
- gint _tmp202__length1 = 0;
- gint _tmp203_ = 0;
- gint _tmp204_ = 0;
- guint8 _tmp205_ = 0U;
- gint _tmp210_ = 0;
- gint _tmp211_ = 0;
-#line 413 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- if (!_tmp194_) {
-#line 3287 "book.c"
- gint _tmp195_ = 0;
-#line 413 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp195_ = x;
-#line 413 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- x = _tmp195_ + 1;
-#line 3293 "book.c"
- }
-#line 413 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp194_ = FALSE;
-#line 413 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp196_ = x;
-#line 413 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp197_ = width;
+ _tmp241_[_tmp242_] |= (guint8) (3 << _tmp243_);
+#line 412 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp244_ = _tmp241_[_tmp242_];
+#line 3507 "book.c"
+ } else {
+ guint8 _tmp245_ = 0U;
#line 413 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- if (!(_tmp196_ < _tmp197_)) {
+ _tmp245_ = p;
#line 413 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- break;
-#line 3305 "book.c"
- }
+ if (((gint) _tmp245_) >= 128) {
+#line 3514 "book.c"
+ guint8* _tmp246_ = NULL;
+ gint _tmp246__length1 = 0;
+ gint _tmp247_ = 0;
+ gint _tmp248_ = 0;
+ guint8 _tmp249_ = 0U;
+#line 414 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp246_ = data;
+#line 414 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp246__length1 = data_length1;
+#line 414 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp247_ = offset;
+#line 414 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp248_ = shift_count;
+#line 414 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp246_[_tmp247_] |= (guint8) (2 << _tmp248_);
+#line 414 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp249_ = _tmp246_[_tmp247_];
+#line 3532 "book.c"
+ } else {
+ guint8 _tmp250_ = 0U;
+#line 415 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp250_ = p;
+#line 415 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ if (((gint) _tmp250_) >= 64) {
+#line 3539 "book.c"
+ guint8* _tmp251_ = NULL;
+ gint _tmp251__length1 = 0;
+ gint _tmp252_ = 0;
+ gint _tmp253_ = 0;
+ guint8 _tmp254_ = 0U;
+#line 416 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp251_ = data;
#line 416 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp198_ = mask;
+ _tmp251__length1 = data_length1;
#line 416 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- if (_tmp198_ == 0x80) {
-#line 3311 "book.c"
- guint8* _tmp199_ = NULL;
- gint _tmp199__length1 = 0;
- gint _tmp200_ = 0;
- guint8 _tmp201_ = 0U;
-#line 417 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp199_ = data;
-#line 417 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp199__length1 = data_length1;
-#line 417 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp200_ = offset;
-#line 417 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp199_[_tmp200_] = (guint8) 0;
-#line 417 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp201_ = _tmp199_[_tmp200_];
-#line 3326 "book.c"
+ _tmp252_ = offset;
+#line 416 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp253_ = shift_count;
+#line 416 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp251_[_tmp252_] |= (guint8) (1 << _tmp253_);
+#line 416 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp254_ = _tmp251_[_tmp252_];
+#line 3557 "book.c"
+ }
}
-#line 420 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp202_ = pixels;
-#line 420 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp202__length1 = pixels_length1;
-#line 420 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp203_ = in_offset;
-#line 420 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp204_ = x;
-#line 420 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp205_ = _tmp202_[_tmp203_ + (_tmp204_ * 3)];
-#line 420 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- if (((gint) _tmp205_) != 0) {
-#line 3340 "book.c"
- guint8* _tmp206_ = NULL;
- gint _tmp206__length1 = 0;
- gint _tmp207_ = 0;
- gint _tmp208_ = 0;
- guint8 _tmp209_ = 0U;
-#line 421 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp206_ = data;
-#line 421 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp206__length1 = data_length1;
-#line 421 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp207_ = offset;
-#line 421 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp208_ = mask;
+ }
+#line 419 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp255_ = shift_count;
+#line 419 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ if (_tmp255_ == 0) {
+#line 3565 "book.c"
+ gint _tmp256_ = 0;
#line 421 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp206_[_tmp207_] |= (guint8) _tmp208_;
+ _tmp256_ = offset;
#line 421 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp209_ = _tmp206_[_tmp207_];
-#line 3358 "book.c"
- }
-#line 424 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp210_ = mask;
-#line 424 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- mask = _tmp210_ >> 1;
+ offset = _tmp256_ + 1;
+#line 422 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ shift_count = 6;
+#line 3573 "book.c"
+ } else {
+ gint _tmp257_ = 0;
#line 425 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp211_ = mask;
+ _tmp257_ = shift_count;
#line 425 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- if (_tmp211_ == 0) {
-#line 3368 "book.c"
- gint _tmp212_ = 0;
-#line 427 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp212_ = offset;
-#line 427 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- offset = _tmp212_ + 1;
-#line 428 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- mask = 0x80;
-#line 3376 "book.c"
- }
+ shift_count = _tmp257_ - 2;
+#line 3580 "book.c"
}
}
}
}
}
}
- } else {
- gchar* _tmp213_ = NULL;
+ }
+ } else {
+ Page* _tmp258_ = NULL;
+ gint _tmp259_ = 0;
+ gint _tmp260_ = 0;
+#line 429 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp258_ = page;
+#line 429 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp259_ = page_get_depth (_tmp258_);
+#line 429 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp260_ = _tmp259_;
+#line 429 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ if (_tmp260_ == 1) {
+#line 3600 "book.c"
+ gint mask = 0;
+ gchar* _tmp261_ = NULL;
gint data_length = 0;
- gint _tmp214_ = 0;
- gint _tmp215_ = 0;
- gint _tmp216_ = 0;
- guint8* _tmp217_ = NULL;
+ gint _tmp262_ = 0;
+ gint _tmp263_ = 0;
+ gint _tmp264_ = 0;
+ guint8* _tmp265_ = NULL;
+ gint offset = 0;
+#line 431 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ mask = 0x80;
+#line 433 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ depth = 1;
+#line 434 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp261_ = g_strdup ("DeviceGray");
+#line 434 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (color_space);
+#line 434 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ color_space = _tmp261_;
#line 435 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- depth = 8;
+ _tmp262_ = height;
+#line 435 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp263_ = width;
+#line 435 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ data_length = _tmp262_ * ((_tmp263_ + 7) / 8);
#line 436 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp213_ = g_strdup ("DeviceGray");
+ _tmp264_ = data_length;
#line 436 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _g_free0 (color_space);
+ _tmp265_ = g_new0 (guint8, _tmp264_);
#line 436 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- color_space = _tmp213_;
-#line 437 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp214_ = height;
-#line 437 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp215_ = width;
-#line 437 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- data_length = _tmp214_ * _tmp215_;
-#line 438 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp216_ = data_length;
-#line 438 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp217_ = g_new0 (guint8, _tmp216_);
-#line 438 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
data = (g_free (data), NULL);
-#line 438 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- data = _tmp217_;
-#line 438 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- data_length1 = _tmp216_;
-#line 438 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 436 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ data = _tmp265_;
+#line 436 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ data_length1 = _tmp264_;
+#line 436 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_data_size_ = data_length1;
-#line 3417 "book.c"
+#line 437 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ offset = 0;
+#line 3639 "book.c"
{
gint row = 0;
-#line 439 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 438 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
row = 0;
-#line 3422 "book.c"
+#line 3644 "book.c"
{
- gboolean _tmp218_ = FALSE;
-#line 439 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp218_ = TRUE;
-#line 439 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ gboolean _tmp266_ = FALSE;
+#line 438 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp266_ = TRUE;
+#line 438 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
while (TRUE) {
-#line 3429 "book.c"
- gint _tmp220_ = 0;
- gint _tmp221_ = 0;
+#line 3651 "book.c"
+ gint _tmp268_ = 0;
+ gint _tmp269_ = 0;
+ gint _tmp270_ = 0;
gint in_offset = 0;
- gint _tmp222_ = 0;
- GdkPixbuf* _tmp223_ = NULL;
- gint _tmp224_ = 0;
- gint _tmp225_ = 0;
- gint out_offset = 0;
- gint _tmp226_ = 0;
- gint _tmp227_ = 0;
-#line 439 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- if (!_tmp218_) {
-#line 3442 "book.c"
- gint _tmp219_ = 0;
-#line 439 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp219_ = row;
-#line 439 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- row = _tmp219_ + 1;
-#line 3448 "book.c"
+ gint _tmp272_ = 0;
+ GdkPixbuf* _tmp273_ = NULL;
+ gint _tmp274_ = 0;
+ gint _tmp275_ = 0;
+#line 438 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ if (!_tmp266_) {
+#line 3662 "book.c"
+ gint _tmp267_ = 0;
+#line 438 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp267_ = row;
+#line 438 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ row = _tmp267_ + 1;
+#line 3668 "book.c"
}
-#line 439 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp218_ = FALSE;
-#line 439 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp220_ = row;
-#line 439 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp221_ = height;
-#line 439 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- if (!(_tmp220_ < _tmp221_)) {
-#line 439 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 438 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp266_ = FALSE;
+#line 438 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp268_ = row;
+#line 438 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp269_ = height;
+#line 438 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ if (!(_tmp268_ < _tmp269_)) {
+#line 438 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
break;
-#line 3460 "book.c"
+#line 3680 "book.c"
}
#line 441 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp222_ = row;
-#line 441 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp223_ = image;
-#line 441 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp224_ = gdk_pixbuf_get_rowstride (_tmp223_);
+ _tmp270_ = mask;
#line 441 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp225_ = _tmp224_;
-#line 441 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- in_offset = _tmp222_ * _tmp225_;
-#line 442 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp226_ = row;
-#line 442 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp227_ = width;
-#line 442 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- out_offset = _tmp226_ * _tmp227_;
-#line 3478 "book.c"
+ if (_tmp270_ != 0x80) {
+#line 3686 "book.c"
+ gint _tmp271_ = 0;
+#line 443 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp271_ = offset;
+#line 443 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ offset = _tmp271_ + 1;
+#line 444 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ mask = 0x80;
+#line 3694 "book.c"
+ }
+#line 447 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp272_ = row;
+#line 447 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp273_ = image;
+#line 447 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp274_ = gdk_pixbuf_get_rowstride (_tmp273_);
+#line 447 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp275_ = _tmp274_;
+#line 447 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ in_offset = _tmp272_ * _tmp275_;
+#line 3706 "book.c"
{
gint x = 0;
-#line 443 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 448 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
x = 0;
-#line 3483 "book.c"
+#line 3711 "book.c"
{
- gboolean _tmp228_ = FALSE;
-#line 443 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp228_ = TRUE;
-#line 443 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ gboolean _tmp276_ = FALSE;
+#line 448 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp276_ = TRUE;
+#line 448 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
while (TRUE) {
-#line 3490 "book.c"
- gint _tmp230_ = 0;
- gint _tmp231_ = 0;
- guint8* _tmp232_ = NULL;
- gint _tmp232__length1 = 0;
- gint _tmp233_ = 0;
- gint _tmp234_ = 0;
- guint8* _tmp235_ = NULL;
- gint _tmp235__length1 = 0;
- gint _tmp236_ = 0;
- gint _tmp237_ = 0;
- guint8 _tmp238_ = 0U;
- guint8 _tmp239_ = 0U;
-#line 443 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- if (!_tmp228_) {
-#line 3505 "book.c"
- gint _tmp229_ = 0;
-#line 443 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp229_ = x;
-#line 443 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- x = _tmp229_ + 1;
-#line 3511 "book.c"
+#line 3718 "book.c"
+ gint _tmp278_ = 0;
+ gint _tmp279_ = 0;
+ gint _tmp280_ = 0;
+ guint8* _tmp284_ = NULL;
+ gint _tmp284__length1 = 0;
+ gint _tmp285_ = 0;
+ gint _tmp286_ = 0;
+ guint8 _tmp287_ = 0U;
+ gint _tmp292_ = 0;
+ gint _tmp293_ = 0;
+#line 448 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ if (!_tmp276_) {
+#line 3731 "book.c"
+ gint _tmp277_ = 0;
+#line 448 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp277_ = x;
+#line 448 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ x = _tmp277_ + 1;
+#line 3737 "book.c"
}
-#line 443 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp228_ = FALSE;
-#line 443 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp230_ = x;
-#line 443 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp231_ = width;
-#line 443 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- if (!(_tmp230_ < _tmp231_)) {
-#line 443 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 448 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp276_ = FALSE;
+#line 448 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp278_ = x;
+#line 448 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp279_ = width;
+#line 448 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ if (!(_tmp278_ < _tmp279_)) {
+#line 448 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
break;
-#line 3523 "book.c"
+#line 3749 "book.c"
+ }
+#line 451 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp280_ = mask;
+#line 451 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ if (_tmp280_ == 0x80) {
+#line 3755 "book.c"
+ guint8* _tmp281_ = NULL;
+ gint _tmp281__length1 = 0;
+ gint _tmp282_ = 0;
+ guint8 _tmp283_ = 0U;
+#line 452 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp281_ = data;
+#line 452 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp281__length1 = data_length1;
+#line 452 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp282_ = offset;
+#line 452 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp281_[_tmp282_] = (guint8) 0;
+#line 452 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp283_ = _tmp281_[_tmp282_];
+#line 3770 "book.c"
}
-#line 444 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp232_ = data;
-#line 444 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp232__length1 = data_length1;
-#line 444 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp233_ = out_offset;
-#line 444 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp234_ = x;
-#line 444 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp235_ = pixels;
-#line 444 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp235__length1 = pixels_length1;
-#line 444 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp236_ = in_offset;
-#line 444 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp237_ = x;
-#line 444 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp238_ = _tmp235_[_tmp236_ + (_tmp237_ * 3)];
-#line 444 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp232_[_tmp233_ + _tmp234_] = _tmp238_;
-#line 444 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp239_ = _tmp232_[_tmp233_ + _tmp234_];
-#line 3547 "book.c"
- }
- }
- }
- }
- }
- }
- }
- }
- }
-#line 449 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp240_ = data;
-#line 449 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp240__length1 = data_length1;
-#line 449 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp242_ = book_compress_zlib (self, _tmp240_, _tmp240__length1, &_tmp241_);
-#line 449 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- compressed_data = _tmp242_;
-#line 449 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- compressed_data_length1 = _tmp241_;
-#line 449 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _compressed_data_size_ = compressed_data_length1;
-#line 450 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp243_ = compressed_data;
-#line 450 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp243__length1 = compressed_data_length1;
-#line 450 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- if (_tmp243_ != NULL) {
-#line 3575 "book.c"
- gint _tmp244_ = 0;
- const gchar* _tmp257_ = NULL;
-#line 453 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp244_ = depth;
-#line 453 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- if (_tmp244_ > 1) {
-#line 3582 "book.c"
- guint8* jpeg_data = NULL;
- GdkPixbuf* _tmp245_ = NULL;
- gint _tmp246_ = 0;
- Page* _tmp247_ = NULL;
- gint _tmp248_ = 0;
- gint _tmp249_ = 0;
- gint _tmp250_ = 0;
- guint8* _tmp251_ = NULL;
- gint jpeg_data_length1 = 0;
- gint _jpeg_data_size_ = 0;
- guint8* _tmp252_ = NULL;
- gint _tmp252__length1 = 0;
- guint8* _tmp253_ = NULL;
- gint _tmp253__length1 = 0;
-#line 455 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp245_ = image;
-#line 455 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp246_ = quality;
-#line 455 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp247_ = page;
#line 455 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp248_ = page_get_dpi (_tmp247_);
+ _tmp284_ = pixels;
#line 455 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp249_ = _tmp248_;
+ _tmp284__length1 = pixels_length1;
#line 455 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp251_ = book_compress_jpeg (self, _tmp245_, _tmp246_, _tmp249_, &_tmp250_);
+ _tmp285_ = in_offset;
#line 455 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- jpeg_data = _tmp251_;
+ _tmp286_ = x;
#line 455 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- jpeg_data_length1 = _tmp250_;
+ _tmp287_ = _tmp284_[_tmp285_ + (_tmp286_ * 3)];
#line 455 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _jpeg_data_size_ = jpeg_data_length1;
+ if (((gint) _tmp287_) != 0) {
+#line 3784 "book.c"
+ guint8* _tmp288_ = NULL;
+ gint _tmp288__length1 = 0;
+ gint _tmp289_ = 0;
+ gint _tmp290_ = 0;
+ guint8 _tmp291_ = 0U;
#line 456 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp252_ = jpeg_data;
+ _tmp288_ = data;
#line 456 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp252__length1 = jpeg_data_length1;
+ _tmp288__length1 = data_length1;
#line 456 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp253_ = compressed_data;
+ _tmp289_ = offset;
#line 456 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp253__length1 = compressed_data_length1;
+ _tmp290_ = mask;
#line 456 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- if (_tmp252__length1 < _tmp253__length1) {
-#line 3625 "book.c"
- gchar* _tmp254_ = NULL;
- guint8* _tmp255_ = NULL;
- gint _tmp255__length1 = 0;
- guint8* _tmp256_ = NULL;
- gint _tmp256__length1 = 0;
-#line 458 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp254_ = g_strdup ("DCTDecode");
-#line 458 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _g_free0 (filter);
-#line 458 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- filter = _tmp254_;
-#line 459 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp255_ = jpeg_data;
-#line 459 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp255__length1 = jpeg_data_length1;
-#line 459 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp256_ = (_tmp255_ != NULL) ? _vala_array_dup1 (_tmp255_, _tmp255__length1) : ((gpointer) _tmp255_);
-#line 459 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp256__length1 = _tmp255__length1;
-#line 459 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- data = (g_free (data), NULL);
-#line 459 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- data = _tmp256_;
+ _tmp288_[_tmp289_] |= (guint8) _tmp290_;
+#line 456 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp291_ = _tmp288_[_tmp289_];
+#line 3802 "book.c"
+ }
#line 459 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- data_length1 = _tmp256__length1;
+ _tmp292_ = mask;
#line 459 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _data_size_ = data_length1;
-#line 3653 "book.c"
- }
-#line 453 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- jpeg_data = (g_free (jpeg_data), NULL);
-#line 3657 "book.c"
- }
+ mask = _tmp292_ >> 1;
+#line 460 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp293_ = mask;
+#line 460 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ if (_tmp293_ == 0) {
+#line 3812 "book.c"
+ gint _tmp294_ = 0;
+#line 462 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp294_ = offset;
+#line 462 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ offset = _tmp294_ + 1;
#line 463 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp257_ = filter;
-#line 463 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- if (_tmp257_ == NULL) {
-#line 3663 "book.c"
- gchar* _tmp258_ = NULL;
- guint8* _tmp259_ = NULL;
- gint _tmp259__length1 = 0;
- guint8* _tmp260_ = NULL;
- gint _tmp260__length1 = 0;
-#line 465 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp258_ = g_strdup ("FlateDecode");
-#line 465 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _g_free0 (filter);
-#line 465 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- filter = _tmp258_;
-#line 466 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp259_ = compressed_data;
-#line 466 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp259__length1 = compressed_data_length1;
-#line 466 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp260_ = (_tmp259_ != NULL) ? _vala_array_dup2 (_tmp259_, _tmp259__length1) : ((gpointer) _tmp259_);
-#line 466 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp260__length1 = _tmp259__length1;
-#line 466 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- data = (g_free (data), NULL);
-#line 466 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- data = _tmp260_;
-#line 466 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- data_length1 = _tmp260__length1;
-#line 466 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _data_size_ = data_length1;
-#line 3691 "book.c"
- }
- }
+ mask = 0x80;
+#line 3820 "book.c"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ } else {
+ gchar* _tmp295_ = NULL;
+ gint data_length = 0;
+ gint _tmp296_ = 0;
+ gint _tmp297_ = 0;
+ gint _tmp298_ = 0;
+ guint8* _tmp299_ = NULL;
+#line 470 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ depth = 8;
#line 471 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp261_ = writer;
+ _tmp295_ = g_strdup ("DeviceGray");
#line 471 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp261_, "\n");
+ _g_free0 (color_space);
+#line 471 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ color_space = _tmp295_;
#line 472 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp262_ = writer;
+ _tmp296_ = height;
#line 472 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp263_ = pdf_writer_start_object (_tmp262_);
+ _tmp297_ = width;
#line 472 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- number = _tmp263_;
+ data_length = _tmp296_ * _tmp297_;
#line 473 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp264_ = writer;
+ _tmp298_ = data_length;
#line 473 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp265_ = number;
+ _tmp299_ = g_new0 (guint8, _tmp298_);
#line 473 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp266_ = g_strdup_printf ("%u 0 obj\n", _tmp265_);
+ data = (g_free (data), NULL);
#line 473 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp267_ = _tmp266_;
+ data = _tmp299_;
#line 473 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp264_, _tmp267_);
+ data_length1 = _tmp298_;
#line 473 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _g_free0 (_tmp267_);
+ _data_size_ = data_length1;
+#line 3861 "book.c"
+ {
+ gint row = 0;
+#line 474 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ row = 0;
+#line 3866 "book.c"
+ {
+ gboolean _tmp300_ = FALSE;
#line 474 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp268_ = writer;
+ _tmp300_ = TRUE;
#line 474 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp268_, "<<\n");
-#line 475 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp269_ = writer;
-#line 475 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp269_, "/Type /Page\n");
-#line 476 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp270_ = writer;
+ while (TRUE) {
+#line 3873 "book.c"
+ gint _tmp302_ = 0;
+ gint _tmp303_ = 0;
+ gint in_offset = 0;
+ gint _tmp304_ = 0;
+ GdkPixbuf* _tmp305_ = NULL;
+ gint _tmp306_ = 0;
+ gint _tmp307_ = 0;
+ gint out_offset = 0;
+ gint _tmp308_ = 0;
+ gint _tmp309_ = 0;
+#line 474 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ if (!_tmp300_) {
+#line 3886 "book.c"
+ gint _tmp301_ = 0;
+#line 474 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp301_ = row;
+#line 474 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ row = _tmp301_ + 1;
+#line 3892 "book.c"
+ }
+#line 474 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp300_ = FALSE;
+#line 474 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp302_ = row;
+#line 474 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp303_ = height;
+#line 474 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ if (!(_tmp302_ < _tmp303_)) {
+#line 474 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ break;
+#line 3904 "book.c"
+ }
#line 476 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp271_ = pages_number;
+ _tmp304_ = row;
#line 476 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp272_ = g_strdup_printf ("/Parent %u 0 R\n", _tmp271_);
+ _tmp305_ = image;
#line 476 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp273_ = _tmp272_;
+ _tmp306_ = gdk_pixbuf_get_rowstride (_tmp305_);
#line 476 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp270_, _tmp273_);
+ _tmp307_ = _tmp306_;
#line 476 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _g_free0 (_tmp273_);
+ in_offset = _tmp304_ * _tmp307_;
#line 477 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp274_ = writer;
+ _tmp308_ = row;
#line 477 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp275_ = i;
+ _tmp309_ = width;
#line 477 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp276_ = number;
-#line 477 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp277_ = g_strdup_printf ("/Resources << /XObject << /Im%d %u 0 R >> >>\n", _tmp275_, _tmp276_ + 1);
-#line 477 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp278_ = _tmp277_;
-#line 477 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp274_, _tmp278_);
-#line 477 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _g_free0 (_tmp278_);
-#line 478 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp279_ = writer;
-#line 478 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp280_ = page_width;
+ out_offset = _tmp308_ * _tmp309_;
+#line 3922 "book.c"
+ {
+ gint x = 0;
#line 478 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp281_ = width_buffer;
+ x = 0;
+#line 3927 "book.c"
+ {
+ gboolean _tmp310_ = FALSE;
#line 478 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp281__length1 = width_buffer_length1;
+ _tmp310_ = TRUE;
#line 478 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp282_ = g_ascii_formatd (_tmp281_, _tmp281__length1, "%.2f", _tmp280_);
+ while (TRUE) {
+#line 3934 "book.c"
+ gint _tmp312_ = 0;
+ gint _tmp313_ = 0;
+ guint8* _tmp314_ = NULL;
+ gint _tmp314__length1 = 0;
+ gint _tmp315_ = 0;
+ gint _tmp316_ = 0;
+ guint8* _tmp317_ = NULL;
+ gint _tmp317__length1 = 0;
+ gint _tmp318_ = 0;
+ gint _tmp319_ = 0;
+ guint8 _tmp320_ = 0U;
+ guint8 _tmp321_ = 0U;
#line 478 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp283_ = page_height;
+ if (!_tmp310_) {
+#line 3949 "book.c"
+ gint _tmp311_ = 0;
#line 478 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp284_ = height_buffer;
+ _tmp311_ = x;
#line 478 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp284__length1 = height_buffer_length1;
+ x = _tmp311_ + 1;
+#line 3955 "book.c"
+ }
#line 478 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp285_ = g_ascii_formatd (_tmp284_, _tmp284__length1, "%.2f", _tmp283_);
+ _tmp310_ = FALSE;
#line 478 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp286_ = g_strdup_printf ("/MediaBox [ 0 0 %s %s ]\n", _tmp282_, _tmp285_);
+ _tmp312_ = x;
#line 478 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp287_ = _tmp286_;
+ _tmp313_ = width;
#line 478 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp279_, _tmp287_);
+ if (!(_tmp312_ < _tmp313_)) {
#line 478 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _g_free0 (_tmp287_);
+ break;
+#line 3967 "book.c"
+ }
+#line 479 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp314_ = data;
#line 479 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp288_ = writer;
+ _tmp314__length1 = data_length1;
#line 479 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp289_ = number;
+ _tmp315_ = out_offset;
#line 479 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp290_ = g_strdup_printf ("/Contents %u 0 R\n", _tmp289_ + 2);
+ _tmp316_ = x;
#line 479 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp291_ = _tmp290_;
+ _tmp317_ = pixels;
#line 479 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp288_, _tmp291_);
+ _tmp317__length1 = pixels_length1;
#line 479 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _g_free0 (_tmp291_);
-#line 480 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp292_ = writer;
-#line 480 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp292_, ">>\n");
-#line 481 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp293_ = writer;
-#line 481 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp293_, "endobj\n");
+ _tmp318_ = in_offset;
+#line 479 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp319_ = x;
+#line 479 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp320_ = _tmp317_[_tmp318_ + (_tmp319_ * 3)];
+#line 479 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp314_[_tmp315_ + _tmp316_] = _tmp320_;
+#line 479 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp321_ = _tmp314_[_tmp315_ + _tmp316_];
+#line 3991 "book.c"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+#line 484 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp322_ = data;
+#line 484 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp322__length1 = data_length1;
+#line 484 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp324_ = book_compress_zlib (self, _tmp322_, _tmp322__length1, &_tmp323_);
#line 484 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp294_ = writer;
+ compressed_data = _tmp324_;
#line 484 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp294_, "\n");
+ compressed_data_length1 = _tmp323_;
+#line 484 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _compressed_data_size_ = compressed_data_length1;
#line 485 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp295_ = writer;
+ _tmp325_ = compressed_data;
#line 485 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp296_ = pdf_writer_start_object (_tmp295_);
+ _tmp325__length1 = compressed_data_length1;
#line 485 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- number = _tmp296_;
-#line 486 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp297_ = writer;
-#line 486 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp298_ = number;
-#line 486 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp299_ = g_strdup_printf ("%u 0 obj\n", _tmp298_);
-#line 486 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp300_ = _tmp299_;
-#line 486 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp297_, _tmp300_);
-#line 486 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _g_free0 (_tmp300_);
-#line 487 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp301_ = writer;
-#line 487 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp301_, "<<\n");
+ if (_tmp325_ != NULL) {
+#line 4019 "book.c"
+ gint _tmp326_ = 0;
+ const gchar* _tmp339_ = NULL;
#line 488 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp302_ = writer;
+ _tmp326_ = depth;
#line 488 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp302_, "/Type /XObject\n");
-#line 489 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp303_ = writer;
-#line 489 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp303_, "/Subtype /Image\n");
+ if (_tmp326_ > 1) {
+#line 4026 "book.c"
+ guint8* jpeg_data = NULL;
+ GdkPixbuf* _tmp327_ = NULL;
+ gint _tmp328_ = 0;
+ Page* _tmp329_ = NULL;
+ gint _tmp330_ = 0;
+ gint _tmp331_ = 0;
+ gint _tmp332_ = 0;
+ guint8* _tmp333_ = NULL;
+ gint jpeg_data_length1 = 0;
+ gint _jpeg_data_size_ = 0;
+ guint8* _tmp334_ = NULL;
+ gint _tmp334__length1 = 0;
+ guint8* _tmp335_ = NULL;
+ gint _tmp335__length1 = 0;
#line 490 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp304_ = writer;
+ _tmp327_ = image;
#line 490 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp305_ = width;
+ _tmp328_ = quality;
#line 490 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp306_ = g_strdup_printf ("/Width %d\n", _tmp305_);
+ _tmp329_ = page;
#line 490 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp307_ = _tmp306_;
+ _tmp330_ = page_get_dpi (_tmp329_);
#line 490 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp304_, _tmp307_);
+ _tmp331_ = _tmp330_;
#line 490 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _g_free0 (_tmp307_);
-#line 491 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp308_ = writer;
+ _tmp333_ = book_compress_jpeg (self, _tmp327_, _tmp328_, _tmp331_, &_tmp332_);
+#line 490 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ jpeg_data = _tmp333_;
+#line 490 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ jpeg_data_length1 = _tmp332_;
+#line 490 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _jpeg_data_size_ = jpeg_data_length1;
#line 491 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp309_ = height;
+ _tmp334_ = jpeg_data;
#line 491 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp310_ = g_strdup_printf ("/Height %d\n", _tmp309_);
+ _tmp334__length1 = jpeg_data_length1;
#line 491 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp311_ = _tmp310_;
+ _tmp335_ = compressed_data;
#line 491 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp308_, _tmp311_);
+ _tmp335__length1 = compressed_data_length1;
#line 491 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _g_free0 (_tmp311_);
-#line 492 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp312_ = writer;
-#line 492 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp313_ = color_space;
-#line 492 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp314_ = g_strdup_printf ("/ColorSpace /%s\n", _tmp313_);
-#line 492 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp315_ = _tmp314_;
-#line 492 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp312_, _tmp315_);
-#line 492 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _g_free0 (_tmp315_);
+ if (_tmp334__length1 < _tmp335__length1) {
+#line 4069 "book.c"
+ gchar* _tmp336_ = NULL;
+ guint8* _tmp337_ = NULL;
+ gint _tmp337__length1 = 0;
+ guint8* _tmp338_ = NULL;
+ gint _tmp338__length1 = 0;
#line 493 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp316_ = writer;
+ _tmp336_ = g_strdup ("DCTDecode");
#line 493 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp317_ = depth;
-#line 493 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp318_ = g_strdup_printf ("/BitsPerComponent %d\n", _tmp317_);
-#line 493 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp319_ = _tmp318_;
-#line 493 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp316_, _tmp319_);
+ _g_free0 (filter);
#line 493 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _g_free0 (_tmp319_);
+ filter = _tmp336_;
#line 494 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp320_ = writer;
+ _tmp337_ = jpeg_data;
#line 494 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp321_ = data;
+ _tmp337__length1 = jpeg_data_length1;
#line 494 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp321__length1 = data_length1;
+ _tmp338_ = (_tmp337_ != NULL) ? _vala_array_dup1 (_tmp337_, _tmp337__length1) : ((gpointer) _tmp337_);
#line 494 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp322_ = g_strdup_printf ("/Length %d\n", _tmp321__length1);
+ _tmp338__length1 = _tmp337__length1;
#line 494 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp323_ = _tmp322_;
+ data = (g_free (data), NULL);
#line 494 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp320_, _tmp323_);
+ data = _tmp338_;
#line 494 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _g_free0 (_tmp323_);
-#line 495 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp324_ = filter;
-#line 495 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- if (_tmp324_ != NULL) {
-#line 3896 "book.c"
- PDFWriter* _tmp325_ = NULL;
- const gchar* _tmp326_ = NULL;
- gchar* _tmp327_ = NULL;
- gchar* _tmp328_ = NULL;
-#line 496 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp325_ = writer;
-#line 496 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp326_ = filter;
-#line 496 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp327_ = g_strdup_printf ("/Filter /%s\n", _tmp326_);
-#line 496 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp328_ = _tmp327_;
-#line 496 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp325_, _tmp328_);
-#line 496 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _g_free0 (_tmp328_);
-#line 3913 "book.c"
- }
-#line 497 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp329_ = writer;
-#line 497 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp329_, ">>\n");
+ data_length1 = _tmp338__length1;
+#line 494 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _data_size_ = data_length1;
+#line 4097 "book.c"
+ }
+#line 488 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ jpeg_data = (g_free (jpeg_data), NULL);
+#line 4101 "book.c"
+ }
#line 498 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp330_ = writer;
+ _tmp339_ = filter;
#line 498 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp330_, "stream\n");
-#line 499 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp331_ = writer;
-#line 499 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp332_ = data;
-#line 499 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp332__length1 = data_length1;
-#line 499 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write (_tmp331_, _tmp332_, _tmp332__length1);
+ if (_tmp339_ == NULL) {
+#line 4107 "book.c"
+ gchar* _tmp340_ = NULL;
+ guint8* _tmp341_ = NULL;
+ gint _tmp341__length1 = 0;
+ guint8* _tmp342_ = NULL;
+ gint _tmp342__length1 = 0;
#line 500 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp333_ = writer;
+ _tmp340_ = g_strdup ("FlateDecode");
#line 500 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp333_, "\n");
+ _g_free0 (filter);
+#line 500 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ filter = _tmp340_;
+#line 501 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp341_ = compressed_data;
#line 501 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp334_ = writer;
+ _tmp341__length1 = compressed_data_length1;
#line 501 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp334_, "endstream\n");
-#line 502 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp335_ = writer;
-#line 502 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp335_, "endobj\n");
-#line 505 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp336_ = page_width;
-#line 505 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp337_ = width_buffer;
-#line 505 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp337__length1 = width_buffer_length1;
-#line 505 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp338_ = g_ascii_formatd (_tmp337_, _tmp337__length1, "%f", _tmp336_);
-#line 505 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp339_ = page_height;
-#line 505 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp340_ = height_buffer;
-#line 505 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp340__length1 = height_buffer_length1;
-#line 505 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp341_ = g_ascii_formatd (_tmp340_, _tmp340__length1, "%f", _tmp339_);
-#line 505 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp342_ = i;
-#line 505 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp343_ = g_strdup_printf ("q\n%s 0 0 %s 0 0 cm\n/Im%d Do\nQ", _tmp338_, _tmp341_, _tmp342_);
-#line 505 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- command = _tmp343_;
+ _tmp342_ = (_tmp341_ != NULL) ? _vala_array_dup2 (_tmp341_, _tmp341__length1) : ((gpointer) _tmp341_);
+#line 501 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp342__length1 = _tmp341__length1;
+#line 501 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ data = (g_free (data), NULL);
+#line 501 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ data = _tmp342_;
+#line 501 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ data_length1 = _tmp342__length1;
+#line 501 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _data_size_ = data_length1;
+#line 4135 "book.c"
+ }
+ }
#line 506 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp344_ = writer;
+ _tmp343_ = writer;
#line 506 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp344_, "\n");
+ pdf_writer_write_string (_tmp343_, "\n");
#line 507 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp345_ = writer;
+ _tmp344_ = writer;
+#line 507 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp345_ = page_numbers;
+#line 507 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp345__length1 = page_numbers_length1;
#line 507 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp346_ = pdf_writer_start_object (_tmp345_);
+ _tmp346_ = i;
#line 507 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- number = _tmp346_;
+ _tmp347_ = _tmp345_[_tmp346_];
+#line 507 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_start_object (_tmp344_, _tmp347_);
+#line 508 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp348_ = writer;
+#line 508 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp349_ = page_numbers;
#line 508 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp347_ = writer;
+ _tmp349__length1 = page_numbers_length1;
#line 508 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp348_ = number;
+ _tmp350_ = i;
#line 508 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp349_ = g_strdup_printf ("%u 0 obj\n", _tmp348_);
+ _tmp351_ = _tmp349_[_tmp350_];
#line 508 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp350_ = _tmp349_;
+ _tmp352_ = g_strdup_printf ("%u 0 obj\n", _tmp351_);
#line 508 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp347_, _tmp350_);
+ _tmp353_ = _tmp352_;
#line 508 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _g_free0 (_tmp350_);
+ pdf_writer_write_string (_tmp348_, _tmp353_);
+#line 508 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp353_);
#line 509 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp351_ = writer;
+ _tmp354_ = writer;
#line 509 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp351_, "<<\n");
-#line 510 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp352_ = writer;
-#line 510 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp353_ = command;
-#line 510 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp354_ = strlen (_tmp353_);
-#line 510 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp355_ = _tmp354_;
+ pdf_writer_write_string (_tmp354_, "<<\n");
#line 510 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp356_ = g_strdup_printf ("/Length %d\n", _tmp355_);
+ _tmp355_ = writer;
#line 510 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp357_ = _tmp356_;
-#line 510 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp352_, _tmp357_);
-#line 510 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _g_free0 (_tmp357_);
+ pdf_writer_write_string (_tmp355_, "/Type /Page\n");
+#line 511 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp356_ = writer;
+#line 511 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp357_ = pages_number;
+#line 511 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp358_ = g_strdup_printf ("/Parent %u 0 R\n", _tmp357_);
#line 511 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp358_ = writer;
+ _tmp359_ = _tmp358_;
#line 511 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp358_, ">>\n");
+ pdf_writer_write_string (_tmp356_, _tmp359_);
+#line 511 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp359_);
+#line 512 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp360_ = writer;
+#line 512 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp361_ = i;
+#line 512 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp362_ = page_image_numbers;
#line 512 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp359_ = writer;
+ _tmp362__length1 = page_image_numbers_length1;
#line 512 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp359_, "stream\n");
+ _tmp363_ = i;
+#line 512 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp364_ = _tmp362_[_tmp363_];
+#line 512 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp365_ = g_strdup_printf ("/Resources << /XObject << /Im%d %u 0 R >> >>\n", _tmp361_, _tmp364_);
+#line 512 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp366_ = _tmp365_;
+#line 512 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp360_, _tmp366_);
+#line 512 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp366_);
#line 513 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp360_ = writer;
+ _tmp367_ = writer;
+#line 513 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp368_ = page_width;
+#line 513 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp369_ = width_buffer;
+#line 513 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp369__length1 = width_buffer_length1;
+#line 513 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp370_ = g_ascii_formatd (_tmp369_, _tmp369__length1, "%.2f", _tmp368_);
#line 513 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp361_ = command;
+ _tmp371_ = page_height;
#line 513 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp360_, _tmp361_);
+ _tmp372_ = height_buffer;
+#line 513 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp372__length1 = height_buffer_length1;
+#line 513 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp373_ = g_ascii_formatd (_tmp372_, _tmp372__length1, "%.2f", _tmp371_);
+#line 513 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp374_ = g_strdup_printf ("/MediaBox [ 0 0 %s %s ]\n", _tmp370_, _tmp373_);
+#line 513 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp375_ = _tmp374_;
+#line 513 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp367_, _tmp375_);
+#line 513 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp375_);
+#line 514 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp376_ = writer;
+#line 514 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp377_ = page_content_numbers;
+#line 514 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp377__length1 = page_content_numbers_length1;
+#line 514 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp378_ = i;
#line 514 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp362_ = writer;
+ _tmp379_ = _tmp377_[_tmp378_];
#line 514 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp362_, "\n");
+ _tmp380_ = g_strdup_printf ("/Contents %u 0 R\n", _tmp379_);
+#line 514 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp381_ = _tmp380_;
+#line 514 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp376_, _tmp381_);
+#line 514 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp381_);
#line 515 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp363_ = writer;
+ _tmp382_ = writer;
#line 515 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp363_, "endstream\n");
+ pdf_writer_write_string (_tmp382_, ">>\n");
#line 516 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp364_ = writer;
+ _tmp383_ = writer;
#line 516 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp364_, "endobj\n");
-#line 518 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp365_ = i;
-#line 518 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- g_signal_emit_by_name (self, "saving", _tmp365_);
-#line 313 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _g_free0 (command);
-#line 313 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- compressed_data = (g_free (compressed_data), NULL);
-#line 313 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- data = (g_free (data), NULL);
-#line 313 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- height_buffer = (g_free (height_buffer), NULL);
-#line 313 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- width_buffer = (g_free (width_buffer), NULL);
-#line 313 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _g_free0 (filter);
-#line 313 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _g_free0 (color_space);
-#line 313 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _g_object_unref0 (image);
-#line 313 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _page_unref0 (page);
-#line 4055 "book.c"
- }
- }
- }
+ pdf_writer_write_string (_tmp383_, "endobj\n");
+#line 519 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp384_ = writer;
+#line 519 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp384_, "\n");
+#line 520 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp385_ = writer;
+#line 520 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp386_ = page_image_numbers;
+#line 520 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp386__length1 = page_image_numbers_length1;
+#line 520 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp387_ = i;
+#line 520 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp388_ = _tmp386_[_tmp387_];
+#line 520 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_start_object (_tmp385_, _tmp388_);
+#line 521 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp389_ = writer;
+#line 521 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp390_ = page_image_numbers;
+#line 521 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp390__length1 = page_image_numbers_length1;
+#line 521 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp391_ = i;
+#line 521 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp392_ = _tmp390_[_tmp391_];
+#line 521 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp393_ = g_strdup_printf ("%u 0 obj\n", _tmp392_);
+#line 521 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp394_ = _tmp393_;
+#line 521 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp389_, _tmp394_);
+#line 521 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp394_);
#line 522 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp366_ = writer;
+ _tmp395_ = writer;
#line 522 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp366_, "\n");
+ pdf_writer_write_string (_tmp395_, "<<\n");
#line 523 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp367_ = writer;
+ _tmp396_ = writer;
#line 523 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp368_ = pdf_writer_start_object (_tmp367_);
-#line 523 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- info_number = _tmp368_;
-#line 524 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp369_ = writer;
-#line 524 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp370_ = info_number;
-#line 524 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp371_ = g_strdup_printf ("%u 0 obj\n", _tmp370_);
-#line 524 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp372_ = _tmp371_;
+ pdf_writer_write_string (_tmp396_, "/Type /XObject\n");
#line 524 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp369_, _tmp372_);
+ _tmp397_ = writer;
#line 524 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _g_free0 (_tmp372_);
+ pdf_writer_write_string (_tmp397_, "/Subtype /Image\n");
#line 525 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp373_ = writer;
+ _tmp398_ = writer;
#line 525 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp373_, "<<\n");
+ _tmp399_ = width;
+#line 525 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp400_ = g_strdup_printf ("/Width %d\n", _tmp399_);
+#line 525 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp401_ = _tmp400_;
+#line 525 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp398_, _tmp401_);
+#line 525 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp401_);
+#line 526 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp402_ = writer;
#line 526 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp374_ = writer;
+ _tmp403_ = height;
#line 526 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp375_ = g_strdup_printf ("/Creator (Simple Scan %s)\n", VERSION);
+ _tmp404_ = g_strdup_printf ("/Height %d\n", _tmp403_);
#line 526 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp376_ = _tmp375_;
+ _tmp405_ = _tmp404_;
#line 526 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp374_, _tmp376_);
+ pdf_writer_write_string (_tmp402_, _tmp405_);
#line 526 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _g_free0 (_tmp376_);
+ _g_free0 (_tmp405_);
#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp377_ = writer;
+ _tmp406_ = writer;
#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp377_, ">>\n");
+ _tmp407_ = color_space;
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp408_ = g_strdup_printf ("/ColorSpace /%s\n", _tmp407_);
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp409_ = _tmp408_;
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp406_, _tmp409_);
+#line 527 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp409_);
+#line 528 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp410_ = writer;
#line 528 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp378_ = writer;
+ _tmp411_ = depth;
#line 528 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp378_, "endobj\n");
+ _tmp412_ = g_strdup_printf ("/BitsPerComponent %d\n", _tmp411_);
+#line 528 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp413_ = _tmp412_;
+#line 528 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp410_, _tmp413_);
+#line 528 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp413_);
+#line 529 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp414_ = writer;
+#line 529 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp415_ = data;
+#line 529 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp415__length1 = data_length1;
+#line 529 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp416_ = g_strdup_printf ("/Length %d\n", _tmp415__length1);
+#line 529 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp417_ = _tmp416_;
+#line 529 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp414_, _tmp417_);
+#line 529 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp417_);
+#line 530 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp418_ = filter;
+#line 530 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ if (_tmp418_ != NULL) {
+#line 4376 "book.c"
+ PDFWriter* _tmp419_ = NULL;
+ const gchar* _tmp420_ = NULL;
+ gchar* _tmp421_ = NULL;
+ gchar* _tmp422_ = NULL;
#line 531 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp379_ = writer;
+ _tmp419_ = writer;
#line 531 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp379_, "\n");
-#line 532 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp380_ = writer;
+ _tmp420_ = filter;
+#line 531 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp421_ = g_strdup_printf ("/Filter /%s\n", _tmp420_);
+#line 531 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp422_ = _tmp421_;
+#line 531 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp419_, _tmp422_);
+#line 531 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp422_);
+#line 4393 "book.c"
+ }
#line 532 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp381_ = _tmp380_->offset;
+ _tmp423_ = writer;
#line 532 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- xref_offset = _tmp381_;
+ pdf_writer_write_string (_tmp423_, ">>\n");
#line 533 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp382_ = writer;
+ _tmp424_ = writer;
#line 533 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp382_, "xref\n");
-#line 534 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp383_ = writer;
+ pdf_writer_write_string (_tmp424_, "stream\n");
#line 534 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp384_ = writer;
+ _tmp425_ = writer;
#line 534 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp385_ = _tmp384_->object_offsets;
+ _tmp426_ = data;
#line 534 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp386_ = g_list_length (_tmp385_);
+ _tmp426__length1 = data_length1;
#line 534 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp387_ = g_strdup_printf ("0 %zu\n", (gsize) (_tmp386_ + 1));
-#line 534 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp388_ = _tmp387_;
-#line 534 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp383_, _tmp388_);
-#line 534 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _g_free0 (_tmp388_);
+ pdf_writer_write (_tmp425_, _tmp426_, _tmp426__length1);
#line 535 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp389_ = writer;
+ _tmp427_ = writer;
#line 535 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp389_, "0000000000 65535 f \n");
-#line 536 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp390_ = writer;
-#line 536 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp391_ = _tmp390_->object_offsets;
-#line 4141 "book.c"
- {
- GList* offset_collection = NULL;
- GList* offset_it = NULL;
+ pdf_writer_write_string (_tmp427_, "\n");
#line 536 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- offset_collection = _tmp391_;
+ _tmp428_ = writer;
#line 536 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- for (offset_it = offset_collection; offset_it != NULL; offset_it = offset_it->next) {
-#line 4149 "book.c"
- guint offset = 0U;
-#line 536 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- offset = (guint) ((guintptr) offset_it->data);
-#line 4153 "book.c"
- {
- PDFWriter* _tmp392_ = NULL;
- guint _tmp393_ = 0U;
- gchar* _tmp394_ = NULL;
- gchar* _tmp395_ = NULL;
-#line 537 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp392_ = writer;
-#line 537 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp393_ = offset;
+ pdf_writer_write_string (_tmp428_, "endstream\n");
#line 537 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp394_ = g_strdup_printf ("%010zu 00000 n \n", (gsize) _tmp393_);
+ _tmp429_ = writer;
#line 537 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp395_ = _tmp394_;
-#line 537 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp392_, _tmp395_);
-#line 537 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _g_free0 (_tmp395_);
-#line 4171 "book.c"
- }
- }
- }
+ pdf_writer_write_string (_tmp429_, "endobj\n");
#line 540 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp396_ = writer;
+ _tmp430_ = writer;
#line 540 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp396_, "\n");
+ pdf_writer_write_string (_tmp430_, "\n");
#line 541 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp397_ = writer;
+ _tmp431_ = writer;
#line 541 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp397_, "trailer\n");
+ _tmp432_ = struct_tree_root_number;
+#line 541 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_start_object (_tmp431_, _tmp432_);
#line 542 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp398_ = writer;
+ _tmp433_ = writer;
#line 542 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp398_, "<<\n");
-#line 543 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp399_ = writer;
-#line 543 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp400_ = writer;
-#line 543 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp401_ = _tmp400_->object_offsets;
-#line 543 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp402_ = g_list_length (_tmp401_);
-#line 543 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp403_ = g_strdup_printf ("/Size %zu\n", (gsize) (_tmp402_ + 1));
-#line 543 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp404_ = _tmp403_;
+ _tmp434_ = struct_tree_root_number;
+#line 542 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp435_ = g_strdup_printf ("%u 0 obj\n", _tmp434_);
+#line 542 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp436_ = _tmp435_;
+#line 542 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp433_, _tmp436_);
+#line 542 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp436_);
#line 543 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp399_, _tmp404_);
+ _tmp437_ = writer;
#line 543 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _g_free0 (_tmp404_);
-#line 544 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp405_ = writer;
-#line 544 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp406_ = info_number;
-#line 544 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp407_ = g_strdup_printf ("/Info %u 0 R\n", _tmp406_);
-#line 544 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp408_ = _tmp407_;
+ pdf_writer_write_string (_tmp437_, "<<\n");
#line 544 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp405_, _tmp408_);
+ _tmp438_ = writer;
#line 544 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _g_free0 (_tmp408_);
+ pdf_writer_write_string (_tmp438_, "/Type /StructTreeRoot\n");
#line 545 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp409_ = writer;
+ _tmp439_ = writer;
#line 545 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp410_ = catalog_number;
-#line 545 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp411_ = g_strdup_printf ("/Root %u 0 R\n", _tmp410_);
-#line 545 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp412_ = _tmp411_;
-#line 545 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp409_, _tmp412_);
-#line 545 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _g_free0 (_tmp412_);
-#line 546 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp413_ = writer;
+ pdf_writer_write_string (_tmp439_, ">>\n");
#line 546 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp414_ = id;
+ _tmp440_ = writer;
#line 546 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp415_ = id;
-#line 546 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp416_ = g_strdup_printf ("/ID [<%s> <%s>]\n", _tmp414_, _tmp415_);
-#line 546 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp417_ = _tmp416_;
-#line 546 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp413_, _tmp417_);
-#line 546 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _g_free0 (_tmp417_);
-#line 547 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp418_ = writer;
-#line 547 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp418_, ">>\n");
-#line 548 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp419_ = writer;
-#line 548 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp419_, "startxref\n");
+ pdf_writer_write_string (_tmp440_, "endobj\n");
+#line 549 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp441_ = page_width;
#line 549 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp420_ = writer;
+ _tmp442_ = width_buffer;
#line 549 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp421_ = xref_offset;
+ _tmp442__length1 = width_buffer_length1;
#line 549 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp422_ = g_strdup_printf ("%zu\n", _tmp421_);
+ _tmp443_ = g_ascii_formatd (_tmp442_, _tmp442__length1, "%f", _tmp441_);
#line 549 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp423_ = _tmp422_;
+ _tmp444_ = page_height;
#line 549 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp420_, _tmp423_);
+ _tmp445_ = height_buffer;
#line 549 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _g_free0 (_tmp423_);
+ _tmp445__length1 = height_buffer_length1;
+#line 549 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp446_ = g_ascii_formatd (_tmp445_, _tmp445__length1, "%f", _tmp444_);
+#line 549 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp447_ = i;
+#line 549 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp448_ = g_strdup_printf ("q\n%s 0 0 %s 0 0 cm\n/Im%d Do\nQ", _tmp443_, _tmp446_, _tmp447_);
+#line 549 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ command = _tmp448_;
#line 550 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp424_ = writer;
+ _tmp449_ = writer;
#line 550 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- pdf_writer_write_string (_tmp424_, "%%EOF\n");
+ pdf_writer_write_string (_tmp449_, "\n");
+#line 551 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp450_ = writer;
+#line 551 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp451_ = page_content_numbers;
+#line 551 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp451__length1 = page_content_numbers_length1;
+#line 551 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp452_ = i;
+#line 551 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp453_ = _tmp451_[_tmp452_];
+#line 551 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_start_object (_tmp450_, _tmp453_);
+#line 552 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp454_ = writer;
+#line 552 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp455_ = page_content_numbers;
+#line 552 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp455__length1 = page_content_numbers_length1;
+#line 552 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp456_ = i;
+#line 552 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp457_ = _tmp455_[_tmp456_];
+#line 552 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp458_ = g_strdup_printf ("%u 0 obj\n", _tmp457_);
+#line 552 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp459_ = _tmp458_;
+#line 552 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp454_, _tmp459_);
+#line 552 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp459_);
+#line 553 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp460_ = writer;
+#line 553 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp460_, "<<\n");
+#line 554 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp461_ = writer;
+#line 554 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp462_ = command;
+#line 554 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp463_ = strlen (_tmp462_);
+#line 554 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp464_ = _tmp463_;
+#line 554 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp465_ = g_strdup_printf ("/Length %d\n", _tmp464_);
+#line 554 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp466_ = _tmp465_;
+#line 554 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp461_, _tmp466_);
+#line 554 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp466_);
+#line 555 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp467_ = writer;
+#line 555 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp467_, ">>\n");
+#line 556 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp468_ = writer;
+#line 556 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp468_, "stream\n");
+#line 557 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp469_ = writer;
+#line 557 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp470_ = command;
+#line 557 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp469_, _tmp470_);
+#line 558 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp471_ = writer;
+#line 558 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp471_, "\n");
+#line 559 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp472_ = writer;
+#line 559 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp472_, "endstream\n");
+#line 560 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp473_ = writer;
+#line 560 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp473_, "endobj\n");
+#line 562 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp474_ = i;
+#line 562 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ g_signal_emit_by_name (self, "saving", _tmp474_);
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (command);
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ compressed_data = (g_free (compressed_data), NULL);
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ data = (g_free (data), NULL);
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ height_buffer = (g_free (height_buffer), NULL);
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ width_buffer = (g_free (width_buffer), NULL);
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (filter);
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (color_space);
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_object_unref0 (image);
+#line 348 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _page_unref0 (page);
+#line 4585 "book.c"
+ }
+ }
+ }
+#line 566 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp475_ = writer;
+#line 566 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp475_, "\n");
+#line 567 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp476_ = writer;
+#line 567 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp477_ = info_number;
+#line 567 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_start_object (_tmp476_, _tmp477_);
+#line 568 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp478_ = writer;
+#line 568 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp479_ = info_number;
+#line 568 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp480_ = g_strdup_printf ("%u 0 obj\n", _tmp479_);
+#line 568 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp481_ = _tmp480_;
+#line 568 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp478_, _tmp481_);
+#line 568 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp481_);
+#line 569 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp482_ = writer;
+#line 569 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp482_, "<<\n");
+#line 570 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp483_ = writer;
+#line 570 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp484_ = g_strdup_printf ("/Creator (Simple Scan %s)\n", VERSION);
+#line 570 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp485_ = _tmp484_;
+#line 570 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp483_, _tmp485_);
+#line 570 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp485_);
+#line 571 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp486_ = writer;
+#line 571 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp486_, ">>\n");
+#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp487_ = writer;
+#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp487_, "endobj\n");
+#line 575 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp488_ = writer;
+#line 575 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp488_, "\n");
+#line 576 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp489_ = writer;
+#line 576 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp490_ = _tmp489_->offset;
+#line 576 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ xref_offset = _tmp490_;
+#line 577 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp491_ = writer;
+#line 577 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp491_, "xref\n");
+#line 578 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp492_ = writer;
+#line 578 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp493_ = writer;
+#line 578 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp494_ = _tmp493_->object_offsets;
+#line 578 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp494__length1 = _tmp493_->object_offsets_length1;
+#line 578 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp495_ = g_strdup_printf ("0 %zu\n", (gsize) (_tmp494__length1 + 1));
+#line 578 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp496_ = _tmp495_;
+#line 578 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp492_, _tmp496_);
+#line 578 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp496_);
+#line 579 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp497_ = writer;
+#line 579 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp498_ = writer;
+#line 579 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp499_ = book_next_empty_object (_tmp498_, 0);
+#line 579 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp500_ = g_strdup_printf ("%010zu 65535 f \n", (gsize) _tmp499_);
+#line 579 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp501_ = _tmp500_;
+#line 579 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp497_, _tmp501_);
+#line 579 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp501_);
+#line 4677 "book.c"
+ {
+ gint i = 0;
+#line 580 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ i = 0;
+#line 4682 "book.c"
+ {
+ gboolean _tmp502_ = FALSE;
+#line 580 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp502_ = TRUE;
+#line 580 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ while (TRUE) {
+#line 4689 "book.c"
+ gint _tmp504_ = 0;
+ PDFWriter* _tmp505_ = NULL;
+ guint* _tmp506_ = NULL;
+ gint _tmp506__length1 = 0;
+ PDFWriter* _tmp507_ = NULL;
+ guint* _tmp508_ = NULL;
+ gint _tmp508__length1 = 0;
+ gint _tmp509_ = 0;
+ guint _tmp510_ = 0U;
+#line 580 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ if (!_tmp502_) {
+#line 4701 "book.c"
+ gint _tmp503_ = 0;
+#line 580 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp503_ = i;
+#line 580 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ i = _tmp503_ + 1;
+#line 4707 "book.c"
+ }
+#line 580 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp502_ = FALSE;
+#line 580 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp504_ = i;
+#line 580 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp505_ = writer;
+#line 580 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp506_ = _tmp505_->object_offsets;
+#line 580 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp506__length1 = _tmp505_->object_offsets_length1;
+#line 580 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ if (!(_tmp504_ < _tmp506__length1)) {
+#line 580 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ break;
+#line 4723 "book.c"
+ }
+#line 581 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp507_ = writer;
+#line 581 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp508_ = _tmp507_->object_offsets;
+#line 581 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp508__length1 = _tmp507_->object_offsets_length1;
+#line 581 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp509_ = i;
+#line 581 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp510_ = _tmp508_[_tmp509_];
+#line 581 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ if (_tmp510_ == ((guint) 0)) {
+#line 4737 "book.c"
+ PDFWriter* _tmp511_ = NULL;
+ PDFWriter* _tmp512_ = NULL;
+ gint _tmp513_ = 0;
+ gint _tmp514_ = 0;
+ gchar* _tmp515_ = NULL;
+ gchar* _tmp516_ = NULL;
+#line 582 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp511_ = writer;
+#line 582 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp512_ = writer;
+#line 582 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp513_ = i;
+#line 582 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp514_ = book_next_empty_object (_tmp512_, _tmp513_ + 1);
+#line 582 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp515_ = g_strdup_printf ("%010zu 65535 f \n", (gsize) _tmp514_);
+#line 582 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp516_ = _tmp515_;
+#line 582 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp511_, _tmp516_);
+#line 582 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp516_);
+#line 4760 "book.c"
+ } else {
+ PDFWriter* _tmp517_ = NULL;
+ PDFWriter* _tmp518_ = NULL;
+ guint* _tmp519_ = NULL;
+ gint _tmp519__length1 = 0;
+ gint _tmp520_ = 0;
+ guint _tmp521_ = 0U;
+ gchar* _tmp522_ = NULL;
+ gchar* _tmp523_ = NULL;
+#line 584 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp517_ = writer;
+#line 584 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp518_ = writer;
+#line 584 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp519_ = _tmp518_->object_offsets;
+#line 584 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp519__length1 = _tmp518_->object_offsets_length1;
+#line 584 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp520_ = i;
+#line 584 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp521_ = _tmp519_[_tmp520_];
+#line 584 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp522_ = g_strdup_printf ("%010zu 00000 n \n", (gsize) _tmp521_);
+#line 584 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp523_ = _tmp522_;
+#line 584 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp517_, _tmp523_);
+#line 584 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp523_);
+#line 4790 "book.c"
+ }
+ }
+ }
+ }
+#line 587 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp524_ = writer;
+#line 587 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp524_, "\n");
+#line 588 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp525_ = writer;
+#line 588 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp525_, "trailer\n");
+#line 589 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp526_ = writer;
+#line 589 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp526_, "<<\n");
+#line 590 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp527_ = writer;
+#line 590 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp528_ = writer;
+#line 590 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp529_ = _tmp528_->object_offsets;
+#line 590 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp529__length1 = _tmp528_->object_offsets_length1;
+#line 590 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp530_ = g_strdup_printf ("/Size %zu\n", (gsize) (_tmp529__length1 + 1));
+#line 590 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp531_ = _tmp530_;
+#line 590 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp527_, _tmp531_);
+#line 590 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp531_);
+#line 591 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp532_ = writer;
+#line 591 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp533_ = info_number;
+#line 591 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp534_ = g_strdup_printf ("/Info %u 0 R\n", _tmp533_);
+#line 591 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp535_ = _tmp534_;
+#line 591 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp532_, _tmp535_);
+#line 591 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp535_);
+#line 592 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp536_ = writer;
+#line 592 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp537_ = catalog_number;
+#line 592 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp538_ = g_strdup_printf ("/Root %u 0 R\n", _tmp537_);
+#line 592 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp539_ = _tmp538_;
+#line 592 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp536_, _tmp539_);
+#line 592 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp539_);
+#line 593 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp540_ = writer;
+#line 593 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp541_ = id;
+#line 593 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp542_ = id;
+#line 593 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp543_ = g_strdup_printf ("/ID [<%s> <%s>]\n", _tmp541_, _tmp542_);
+#line 593 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp544_ = _tmp543_;
+#line 593 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp540_, _tmp544_);
+#line 593 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp544_);
+#line 594 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp545_ = writer;
+#line 594 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp545_, ">>\n");
+#line 595 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp546_ = writer;
+#line 595 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp546_, "startxref\n");
+#line 596 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp547_ = writer;
+#line 596 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp548_ = xref_offset;
+#line 596 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp549_ = g_strdup_printf ("%zu\n", _tmp548_);
+#line 596 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp550_ = _tmp549_;
+#line 596 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp547_, _tmp550_);
+#line 596 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (_tmp550_);
+#line 597 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp551_ = writer;
+#line 597 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ pdf_writer_write_string (_tmp551_, "%%EOF\n");
+#line 257 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (metadata);
+#line 257 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_free0 (date_string);
+#line 257 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _g_date_time_unref0 (now);
+#line 257 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ page_content_numbers = (g_free (page_content_numbers), NULL);
+#line 257 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ page_image_numbers = (g_free (page_image_numbers), NULL);
+#line 257 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ page_numbers = (g_free (page_numbers), NULL);
#line 257 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_pdf_writer_unref0 (writer);
#line 257 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_g_object_unref0 (stream);
#line 257 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_g_free0 (id);
-#line 4271 "book.c"
+#line 4903 "book.c"
+}
+
+
+static gint book_next_empty_object (PDFWriter* writer, gint start) {
+ gint result = 0;
+#line 600 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ g_return_val_if_fail (writer != NULL, 0);
+#line 4911 "book.c"
+ {
+ gint i = 0;
+ gint _tmp0_ = 0;
+#line 602 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp0_ = start;
+#line 602 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ i = _tmp0_;
+#line 4919 "book.c"
+ {
+ gboolean _tmp1_ = FALSE;
+#line 602 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp1_ = TRUE;
+#line 602 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ while (TRUE) {
+#line 4926 "book.c"
+ gint _tmp3_ = 0;
+ PDFWriter* _tmp4_ = NULL;
+ guint* _tmp5_ = NULL;
+ gint _tmp5__length1 = 0;
+ PDFWriter* _tmp6_ = NULL;
+ guint* _tmp7_ = NULL;
+ gint _tmp7__length1 = 0;
+ gint _tmp8_ = 0;
+ guint _tmp9_ = 0U;
+#line 602 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ if (!_tmp1_) {
+#line 4938 "book.c"
+ gint _tmp2_ = 0;
+#line 602 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp2_ = i;
+#line 602 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ i = _tmp2_ + 1;
+#line 4944 "book.c"
+ }
+#line 602 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp1_ = FALSE;
+#line 602 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp3_ = i;
+#line 602 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp4_ = writer;
+#line 602 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp5_ = _tmp4_->object_offsets;
+#line 602 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp5__length1 = _tmp4_->object_offsets_length1;
+#line 602 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ if (!(_tmp3_ < _tmp5__length1)) {
+#line 602 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ break;
+#line 4960 "book.c"
+ }
+#line 603 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp6_ = writer;
+#line 603 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp7_ = _tmp6_->object_offsets;
+#line 603 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp7__length1 = _tmp6_->object_offsets_length1;
+#line 603 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp8_ = i;
+#line 603 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp9_ = _tmp7_[_tmp8_];
+#line 603 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ if (_tmp9_ == ((guint) 0)) {
+#line 4974 "book.c"
+ gint _tmp10_ = 0;
+#line 604 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp10_ = i;
+#line 604 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ result = _tmp10_ + 1;
+#line 604 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ return result;
+#line 4982 "book.c"
+ }
+ }
+ }
+ }
+#line 605 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ result = 0;
+#line 605 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ return result;
+#line 4991 "book.c"
}
@@ -4275,110 +5009,110 @@ void book_save (Book* self, const gchar* type, gint quality, GFile* file, GError
const gchar* _tmp0_ = NULL;
const gchar* _tmp1_ = NULL;
GQuark _tmp3_ = 0U;
-#line 555 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 610 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
static GQuark _tmp2_label0 = 0;
-#line 555 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 610 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
static GQuark _tmp2_label1 = 0;
-#line 555 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 610 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
static GQuark _tmp2_label2 = 0;
-#line 555 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 610 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
static GQuark _tmp2_label3 = 0;
-#line 555 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 610 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
static GQuark _tmp2_label4 = 0;
-#line 4289 "book.c"
+#line 5009 "book.c"
GError * _inner_error_ = NULL;
-#line 553 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 608 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (self != NULL);
-#line 553 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 608 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (type != NULL);
-#line 553 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 608 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (file != NULL);
-#line 555 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 610 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp0_ = type;
-#line 555 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 610 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp1_ = _tmp0_;
-#line 555 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 610 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp3_ = (NULL == _tmp1_) ? 0 : g_quark_from_string (_tmp1_);
-#line 555 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 610 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (((_tmp3_ == ((0 != _tmp2_label0) ? _tmp2_label0 : (_tmp2_label0 = g_quark_from_static_string ("jpeg")))) || (_tmp3_ == ((0 != _tmp2_label1) ? _tmp2_label1 : (_tmp2_label1 = g_quark_from_static_string ("png"))))) || (_tmp3_ == ((0 != _tmp2_label2) ? _tmp2_label2 : (_tmp2_label2 = g_quark_from_static_string ("tiff"))))) {
-#line 555 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 610 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
switch (0) {
-#line 4307 "book.c"
+#line 5027 "book.c"
default:
{
const gchar* _tmp4_ = NULL;
gint _tmp5_ = 0;
GFile* _tmp6_ = NULL;
-#line 560 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 615 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp4_ = type;
-#line 560 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 615 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp5_ = quality;
-#line 560 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 615 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp6_ = file;
-#line 560 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 615 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
book_save_multi_file (self, _tmp4_, _tmp5_, _tmp6_, &_inner_error_);
-#line 560 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 615 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 560 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 615 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_propagate_error (error, _inner_error_);
-#line 560 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 615 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return;
-#line 4327 "book.c"
+#line 5047 "book.c"
}
-#line 561 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 616 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
break;
-#line 4331 "book.c"
+#line 5051 "book.c"
}
}
} else if (_tmp3_ == ((0 != _tmp2_label3) ? _tmp2_label3 : (_tmp2_label3 = g_quark_from_static_string ("ps")))) {
-#line 555 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 610 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
switch (0) {
-#line 4337 "book.c"
+#line 5057 "book.c"
default:
{
GFile* _tmp7_ = NULL;
-#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 618 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp7_ = file;
-#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 618 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
book_save_ps (self, _tmp7_, &_inner_error_);
-#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 618 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 618 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_propagate_error (error, _inner_error_);
-#line 563 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 618 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return;
-#line 4351 "book.c"
+#line 5071 "book.c"
}
-#line 564 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 619 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
break;
-#line 4355 "book.c"
+#line 5075 "book.c"
}
}
} else if (_tmp3_ == ((0 != _tmp2_label4) ? _tmp2_label4 : (_tmp2_label4 = g_quark_from_static_string ("pdf")))) {
-#line 555 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 610 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
switch (0) {
-#line 4361 "book.c"
+#line 5081 "book.c"
default:
{
GFile* _tmp8_ = NULL;
gint _tmp9_ = 0;
-#line 566 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 621 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp8_ = file;
-#line 566 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 621 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp9_ = quality;
-#line 566 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 621 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
book_save_pdf (self, _tmp8_, _tmp9_, &_inner_error_);
-#line 566 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 621 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 566 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 621 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_propagate_error (error, _inner_error_);
-#line 566 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 621 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return;
-#line 4378 "book.c"
+#line 5098 "book.c"
}
-#line 567 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 622 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
break;
-#line 4382 "book.c"
+#line 5102 "book.c"
}
}
}
@@ -4399,7 +5133,7 @@ guint book_get_n_pages (Book* self) {
result = _tmp1_;
#line 16 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return result;
-#line 4403 "book.c"
+#line 5123 "book.c"
}
@@ -4414,7 +5148,7 @@ gboolean book_get_needs_saving (Book* self) {
result = _tmp0_;
#line 21 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return result;
-#line 4418 "book.c"
+#line 5138 "book.c"
}
@@ -4432,7 +5166,7 @@ void book_set_needs_saving (Book* self, gboolean value) {
if (_tmp0_ == _tmp1_) {
#line 25 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return;
-#line 4436 "book.c"
+#line 5156 "book.c"
}
#line 26 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp2_ = value;
@@ -4440,7 +5174,7 @@ void book_set_needs_saving (Book* self, gboolean value) {
self->priv->needs_saving_ = _tmp2_;
#line 27 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_signal_emit_by_name (self, "needs-saving-changed");
-#line 4444 "book.c"
+#line 5164 "book.c"
}
@@ -4459,26 +5193,26 @@ static void g_cclosure_user_marshal_VOID__PAGE (GClosure * closure, GValue * ret
data1 = closure->data;
#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
data2 = param_values->data[0].v_pointer;
-#line 4463 "book.c"
+#line 5183 "book.c"
} else {
#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
data1 = param_values->data[0].v_pointer;
#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
data2 = closure->data;
-#line 4469 "book.c"
+#line 5189 "book.c"
}
#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
callback = (GMarshalFunc_VOID__PAGE) (marshal_data ? marshal_data : cc->callback);
#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
callback (data1, value_get_page (param_values + 1), data2);
-#line 4475 "book.c"
+#line 5195 "book.c"
}
static void value_book_init (GValue* value) {
#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
value->data[0].v_pointer = NULL;
-#line 4482 "book.c"
+#line 5202 "book.c"
}
@@ -4487,7 +5221,7 @@ static void value_book_free_value (GValue* value) {
if (value->data[0].v_pointer) {
#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
book_unref (value->data[0].v_pointer);
-#line 4491 "book.c"
+#line 5211 "book.c"
}
}
@@ -4497,11 +5231,11 @@ static void value_book_copy_value (const GValue* src_value, GValue* dest_value)
if (src_value->data[0].v_pointer) {
#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
dest_value->data[0].v_pointer = book_ref (src_value->data[0].v_pointer);
-#line 4501 "book.c"
+#line 5221 "book.c"
} else {
#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
dest_value->data[0].v_pointer = NULL;
-#line 4505 "book.c"
+#line 5225 "book.c"
}
}
@@ -4509,37 +5243,37 @@ static void value_book_copy_value (const GValue* src_value, GValue* dest_value)
static gpointer value_book_peek_pointer (const GValue* value) {
#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return value->data[0].v_pointer;
-#line 4513 "book.c"
+#line 5233 "book.c"
}
static gchar* value_book_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (collect_values[0].v_pointer) {
-#line 4520 "book.c"
+#line 5240 "book.c"
Book* object;
object = collect_values[0].v_pointer;
#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (object->parent_instance.g_class == NULL) {
#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 4527 "book.c"
+#line 5247 "book.c"
} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 4531 "book.c"
+#line 5251 "book.c"
}
#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
value->data[0].v_pointer = book_ref (object);
-#line 4535 "book.c"
+#line 5255 "book.c"
} else {
#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
value->data[0].v_pointer = NULL;
-#line 4539 "book.c"
+#line 5259 "book.c"
}
#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return NULL;
-#line 4543 "book.c"
+#line 5263 "book.c"
}
@@ -4550,25 +5284,25 @@ static gchar* value_book_lcopy_value (const GValue* value, guint n_collect_value
if (!object_p) {
#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 4554 "book.c"
+#line 5274 "book.c"
}
#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (!value->data[0].v_pointer) {
#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
*object_p = NULL;
-#line 4560 "book.c"
+#line 5280 "book.c"
} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
*object_p = value->data[0].v_pointer;
-#line 4564 "book.c"
+#line 5284 "book.c"
} else {
#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
*object_p = book_ref (value->data[0].v_pointer);
-#line 4568 "book.c"
+#line 5288 "book.c"
}
#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return NULL;
-#line 4572 "book.c"
+#line 5292 "book.c"
}
@@ -4582,7 +5316,7 @@ GParamSpec* param_spec_book (const gchar* name, const gchar* nick, const gchar*
G_PARAM_SPEC (spec)->value_type = object_type;
#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return G_PARAM_SPEC (spec);
-#line 4586 "book.c"
+#line 5306 "book.c"
}
@@ -4591,7 +5325,7 @@ gpointer value_get_book (const GValue* value) {
g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_BOOK), NULL);
#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return value->data[0].v_pointer;
-#line 4595 "book.c"
+#line 5315 "book.c"
}
@@ -4611,17 +5345,17 @@ void value_set_book (GValue* value, gpointer v_object) {
value->data[0].v_pointer = v_object;
#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
book_ref (value->data[0].v_pointer);
-#line 4615 "book.c"
+#line 5335 "book.c"
} else {
#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
value->data[0].v_pointer = NULL;
-#line 4619 "book.c"
+#line 5339 "book.c"
}
#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (old) {
#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
book_unref (old);
-#line 4625 "book.c"
+#line 5345 "book.c"
}
}
@@ -4640,17 +5374,17 @@ void value_take_book (GValue* value, gpointer v_object) {
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
value->data[0].v_pointer = v_object;
-#line 4644 "book.c"
+#line 5364 "book.c"
} else {
#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
value->data[0].v_pointer = NULL;
-#line 4648 "book.c"
+#line 5368 "book.c"
}
#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (old) {
#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
book_unref (old);
-#line 4654 "book.c"
+#line 5374 "book.c"
}
}
@@ -4674,7 +5408,7 @@ static void book_class_init (BookClass * klass) {
g_signal_new ("needs_saving_changed", TYPE_BOOK, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_signal_new ("saving", TYPE_BOOK, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__INT, G_TYPE_NONE, 1, G_TYPE_INT);
-#line 4678 "book.c"
+#line 5398 "book.c"
}
@@ -4683,7 +5417,7 @@ static void book_instance_init (Book * self) {
self->priv = BOOK_GET_PRIVATE (self);
#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
self->ref_count = 1;
-#line 4687 "book.c"
+#line 5407 "book.c"
}
@@ -4696,7 +5430,7 @@ static void book_finalize (Book* obj) {
g_signal_handlers_destroy (self);
#line 45 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp0_ = self->priv->pages;
-#line 4700 "book.c"
+#line 5420 "book.c"
{
GList* page_collection = NULL;
GList* page_it = NULL;
@@ -4704,14 +5438,14 @@ static void book_finalize (Book* obj) {
page_collection = _tmp0_;
#line 45 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
for (page_it = page_collection; page_it != NULL; page_it = page_it->next) {
-#line 4708 "book.c"
+#line 5428 "book.c"
Page* _tmp1_ = NULL;
Page* page = NULL;
#line 45 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp1_ = _page_ref0 ((Page*) page_it->data);
#line 45 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
page = _tmp1_;
-#line 4715 "book.c"
+#line 5435 "book.c"
{
Page* _tmp2_ = NULL;
guint _tmp3_ = 0U;
@@ -4731,7 +5465,7 @@ static void book_finalize (Book* obj) {
g_signal_handlers_disconnect_matched (_tmp4_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _book_page_changed_cb_page_crop_changed, self);
#line 45 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_page_unref0 (page);
-#line 4735 "book.c"
+#line 5455 "book.c"
}
}
}
@@ -4739,7 +5473,7 @@ static void book_finalize (Book* obj) {
__g_list_free__page_unref0_0 (self->priv->pages);
#line 231 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_g_byte_array_unref0 (self->priv->jpeg_data);
-#line 4743 "book.c"
+#line 5463 "book.c"
}
@@ -4764,7 +5498,7 @@ gpointer book_ref (gpointer instance) {
g_atomic_int_inc (&self->ref_count);
#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return instance;
-#line 4768 "book.c"
+#line 5488 "book.c"
}
@@ -4777,15 +5511,15 @@ void book_unref (gpointer instance) {
BOOK_GET_CLASS (self)->finalize (self);
#line 12 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_type_free_instance ((GTypeInstance *) self);
-#line 4781 "book.c"
+#line 5501 "book.c"
}
}
static gpointer _g_object_ref0 (gpointer self) {
-#line 580 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 635 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return self ? g_object_ref (self) : NULL;
-#line 4789 "book.c"
+#line 5509 "book.c"
}
@@ -4793,28 +5527,39 @@ PDFWriter* pdf_writer_construct (GType object_type, GFileOutputStream* stream) {
PDFWriter* self = NULL;
GFileOutputStream* _tmp0_ = NULL;
GFileOutputStream* _tmp1_ = NULL;
-#line 578 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ guint* _tmp2_ = NULL;
+#line 633 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_val_if_fail (stream != NULL, NULL);
-#line 578 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 633 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
self = (PDFWriter*) g_type_create_instance (object_type);
-#line 580 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 635 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp0_ = stream;
-#line 580 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 635 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp1_ = _g_object_ref0 (_tmp0_);
-#line 580 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 635 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_g_object_unref0 (self->priv->stream);
-#line 580 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 635 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
self->priv->stream = _tmp1_;
-#line 578 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 636 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp2_ = g_new0 (guint, 0);
+#line 636 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ self->object_offsets = (g_free (self->object_offsets), NULL);
+#line 636 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ self->object_offsets = _tmp2_;
+#line 636 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ self->object_offsets_length1 = 0;
+#line 636 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ self->_object_offsets_size_ = self->object_offsets_length1;
+#line 633 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return self;
-#line 4811 "book.c"
+#line 5542 "book.c"
}
PDFWriter* pdf_writer_new (GFileOutputStream* stream) {
-#line 578 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 633 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return pdf_writer_construct (TYPE_PDF_WRITER, stream);
-#line 4818 "book.c"
+#line 5549 "book.c"
}
@@ -4823,24 +5568,24 @@ void pdf_writer_write (PDFWriter* self, guint8* data, int data_length1) {
guint8* _tmp5_ = NULL;
gint _tmp5__length1 = 0;
GError * _inner_error_ = NULL;
-#line 583 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 639 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (self != NULL);
-#line 4829 "book.c"
+#line 5560 "book.c"
{
GFileOutputStream* _tmp0_ = NULL;
guint8* _tmp1_ = NULL;
gint _tmp1__length1 = 0;
-#line 587 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 643 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp0_ = self->priv->stream;
-#line 587 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 643 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp1_ = data;
-#line 587 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 643 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp1__length1 = data_length1;
-#line 587 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 643 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_output_stream_write_all ((GOutputStream*) _tmp0_, _tmp1_, (gsize) _tmp1__length1, NULL, NULL, &_inner_error_);
-#line 587 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 643 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4844 "book.c"
+#line 5575 "book.c"
goto __catch1_g_error;
}
}
@@ -4850,40 +5595,40 @@ void pdf_writer_write (PDFWriter* self, guint8* data, int data_length1) {
GError* e = NULL;
GError* _tmp2_ = NULL;
const gchar* _tmp3_ = NULL;
-#line 585 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 641 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
e = _inner_error_;
-#line 585 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 641 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_inner_error_ = NULL;
-#line 591 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 647 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp2_ = e;
-#line 591 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 647 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp3_ = _tmp2_->message;
-#line 591 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- g_warning ("book.vala:591: Error writing PDF: %s", _tmp3_);
-#line 585 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 647 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ g_warning ("book.vala:647: Error writing PDF: %s", _tmp3_);
+#line 641 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_g_error_free0 (e);
-#line 4866 "book.c"
+#line 5597 "book.c"
}
__finally1:
-#line 585 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 641 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 585 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 641 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
-#line 585 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 641 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_clear_error (&_inner_error_);
-#line 585 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 641 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return;
-#line 4877 "book.c"
+#line 5608 "book.c"
}
-#line 593 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 649 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp4_ = self->offset;
-#line 593 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 649 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp5_ = data;
-#line 593 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 649 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp5__length1 = data_length1;
-#line 593 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 649 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
self->offset = _tmp4_ + _tmp5__length1;
-#line 4887 "book.c"
+#line 5618 "book.c"
}
@@ -4902,49 +5647,49 @@ static gchar* string_to_utf8 (const gchar* self, int* result_length1) {
gint _tmp6_ = 0;
gchar* _tmp7_ = NULL;
gint _tmp7__length1 = 0;
-#line 1405 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1405 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
g_return_val_if_fail (self != NULL, NULL);
-#line 1406 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1406 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp0_ = strlen (self);
-#line 1406 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1406 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp1_ = _tmp0_;
-#line 1406 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1406 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp2_ = g_new0 (gchar, _tmp1_ + 1);
-#line 1406 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1406 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_result_ = _tmp2_;
-#line 1406 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1406 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_result__length1 = _tmp1_ + 1;
-#line 1406 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1406 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
__result__size_ = _result__length1;
-#line 1407 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1407 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp3_ = _result__length1;
-#line 1407 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1407 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_result__length1 = _tmp3_ - 1;
-#line 1408 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1408 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp4_ = _result_;
-#line 1408 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1408 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp4__length1 = _result__length1;
-#line 1408 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1408 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp5_ = strlen (self);
-#line 1408 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1408 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp6_ = _tmp5_;
-#line 1408 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1408 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
memcpy (_tmp4_, self, (gsize) _tmp6_);
-#line 1409 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1409 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp7_ = _result_;
-#line 1409 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1409 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp7__length1 = _result__length1;
-#line 1409 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1409 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
if (result_length1) {
-#line 1409 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1409 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
*result_length1 = _tmp7__length1;
-#line 4942 "book.c"
+#line 5673 "book.c"
}
-#line 1409 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1409 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
result = _tmp7_;
-#line 1409 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1409 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
return result;
-#line 4948 "book.c"
+#line 5679 "book.c"
}
@@ -4954,262 +5699,312 @@ void pdf_writer_write_string (PDFWriter* self, const gchar* text) {
gchar* _tmp2_ = NULL;
guint8* _tmp3_ = NULL;
gint _tmp3__length1 = 0;
-#line 596 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 652 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (self != NULL);
-#line 596 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 652 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (text != NULL);
-#line 598 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 654 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp0_ = text;
-#line 598 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 654 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp2_ = string_to_utf8 (_tmp0_, &_tmp1_);
-#line 598 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 654 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp3_ = (guint8*) _tmp2_;
-#line 598 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 654 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp3__length1 = (_tmp1_ * sizeof (gchar)) / sizeof (guint8);
-#line 598 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 654 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
pdf_writer_write (self, _tmp3_, (_tmp1_ * sizeof (gchar)) / sizeof (guint8));
-#line 598 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 654 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp3_ = (g_free (_tmp3_), NULL);
-#line 4974 "book.c"
+#line 5705 "book.c"
}
-guint pdf_writer_start_object (PDFWriter* self) {
+guint pdf_writer_add_object (PDFWriter* self) {
guint result = 0U;
- gsize _tmp0_ = 0UL;
- GList* _tmp1_ = NULL;
- guint _tmp2_ = 0U;
-#line 601 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ guint* _tmp0_ = NULL;
+ gint _tmp0__length1 = 0;
+ gint _tmp1_ = 0;
+ gint index = 0;
+ guint* _tmp2_ = NULL;
+ gint _tmp2__length1 = 0;
+ guint* _tmp3_ = NULL;
+ gint _tmp3__length1 = 0;
+ guint _tmp4_ = 0U;
+#line 657 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_val_if_fail (self != NULL, 0U);
-#line 603 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp0_ = self->offset;
-#line 603 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- self->object_offsets = g_list_append (self->object_offsets, (gpointer) ((guintptr) ((guint) _tmp0_)));
-#line 604 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp1_ = self->object_offsets;
-#line 604 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _tmp2_ = g_list_length (_tmp1_);
-#line 604 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- result = _tmp2_;
-#line 604 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 659 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp0_ = self->object_offsets;
+#line 659 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp0__length1 = self->object_offsets_length1;
+#line 659 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp1_ = _tmp0__length1 + 1;
+#line 659 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ self->object_offsets = g_renew (guint, self->object_offsets, _tmp0__length1 + 1);
+#line 659 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ (_tmp1_ > self->object_offsets_length1) ? memset (self->object_offsets + self->object_offsets_length1, 0, sizeof (guint) * (_tmp1_ - self->object_offsets_length1)) : NULL;
+#line 659 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ self->object_offsets_length1 = _tmp1_;
+#line 659 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ self->_object_offsets_size_ = _tmp1_;
+#line 660 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp2_ = self->object_offsets;
+#line 660 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp2__length1 = self->object_offsets_length1;
+#line 660 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ index = _tmp2__length1 - 1;
+#line 661 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp3_ = self->object_offsets;
+#line 661 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp3__length1 = self->object_offsets_length1;
+#line 661 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp3_[index] = (guint) 0;
+#line 661 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp4_ = _tmp3_[index];
+#line 662 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ result = (guint) (index + 1);
+#line 662 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return result;
-#line 4997 "book.c"
+#line 5754 "book.c"
+}
+
+
+void pdf_writer_start_object (PDFWriter* self, guint index) {
+ guint* _tmp0_ = NULL;
+ gint _tmp0__length1 = 0;
+ guint _tmp1_ = 0U;
+ gsize _tmp2_ = 0UL;
+ guint _tmp3_ = 0U;
+#line 665 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ g_return_if_fail (self != NULL);
+#line 667 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp0_ = self->object_offsets;
+#line 667 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp0__length1 = self->object_offsets_length1;
+#line 667 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp1_ = index;
+#line 667 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp2_ = self->offset;
+#line 667 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp0_[_tmp1_ - 1] = (guint) _tmp2_;
+#line 667 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ _tmp3_ = _tmp0_[_tmp1_ - 1];
+#line 5778 "book.c"
}
static void value_pdf_writer_init (GValue* value) {
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
value->data[0].v_pointer = NULL;
-#line 5004 "book.c"
+#line 5785 "book.c"
}
static void value_pdf_writer_free_value (GValue* value) {
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (value->data[0].v_pointer) {
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
pdf_writer_unref (value->data[0].v_pointer);
-#line 5013 "book.c"
+#line 5794 "book.c"
}
}
static void value_pdf_writer_copy_value (const GValue* src_value, GValue* dest_value) {
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (src_value->data[0].v_pointer) {
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
dest_value->data[0].v_pointer = pdf_writer_ref (src_value->data[0].v_pointer);
-#line 5023 "book.c"
+#line 5804 "book.c"
} else {
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
dest_value->data[0].v_pointer = NULL;
-#line 5027 "book.c"
+#line 5808 "book.c"
}
}
static gpointer value_pdf_writer_peek_pointer (const GValue* value) {
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return value->data[0].v_pointer;
-#line 5035 "book.c"
+#line 5816 "book.c"
}
static gchar* value_pdf_writer_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (collect_values[0].v_pointer) {
-#line 5042 "book.c"
+#line 5823 "book.c"
PDFWriter* object;
object = collect_values[0].v_pointer;
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (object->parent_instance.g_class == NULL) {
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 5049 "book.c"
+#line 5830 "book.c"
} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 5053 "book.c"
+#line 5834 "book.c"
}
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
value->data[0].v_pointer = pdf_writer_ref (object);
-#line 5057 "book.c"
+#line 5838 "book.c"
} else {
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
value->data[0].v_pointer = NULL;
-#line 5061 "book.c"
+#line 5842 "book.c"
}
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return NULL;
-#line 5065 "book.c"
+#line 5846 "book.c"
}
static gchar* value_pdf_writer_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
PDFWriter** object_p;
object_p = collect_values[0].v_pointer;
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (!object_p) {
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 5076 "book.c"
+#line 5857 "book.c"
}
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (!value->data[0].v_pointer) {
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
*object_p = NULL;
-#line 5082 "book.c"
+#line 5863 "book.c"
} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
*object_p = value->data[0].v_pointer;
-#line 5086 "book.c"
+#line 5867 "book.c"
} else {
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
*object_p = pdf_writer_ref (value->data[0].v_pointer);
-#line 5090 "book.c"
+#line 5871 "book.c"
}
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return NULL;
-#line 5094 "book.c"
+#line 5875 "book.c"
}
GParamSpec* param_spec_pdf_writer (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
ParamSpecPDFWriter* spec;
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_val_if_fail (g_type_is_a (object_type, TYPE_PDF_WRITER), NULL);
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
G_PARAM_SPEC (spec)->value_type = object_type;
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return G_PARAM_SPEC (spec);
-#line 5108 "book.c"
+#line 5889 "book.c"
}
gpointer value_get_pdf_writer (const GValue* value) {
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PDF_WRITER), NULL);
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return value->data[0].v_pointer;
-#line 5117 "book.c"
+#line 5898 "book.c"
}
void value_set_pdf_writer (GValue* value, gpointer v_object) {
PDFWriter* old;
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PDF_WRITER));
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
old = value->data[0].v_pointer;
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (v_object) {
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PDF_WRITER));
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
value->data[0].v_pointer = v_object;
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
pdf_writer_ref (value->data[0].v_pointer);
-#line 5137 "book.c"
+#line 5918 "book.c"
} else {
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
value->data[0].v_pointer = NULL;
-#line 5141 "book.c"
+#line 5922 "book.c"
}
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (old) {
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
pdf_writer_unref (old);
-#line 5147 "book.c"
+#line 5928 "book.c"
}
}
void value_take_pdf_writer (GValue* value, gpointer v_object) {
PDFWriter* old;
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PDF_WRITER));
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
old = value->data[0].v_pointer;
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (v_object) {
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PDF_WRITER));
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
value->data[0].v_pointer = v_object;
-#line 5166 "book.c"
+#line 5947 "book.c"
} else {
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
value->data[0].v_pointer = NULL;
-#line 5170 "book.c"
+#line 5951 "book.c"
}
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (old) {
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
pdf_writer_unref (old);
-#line 5176 "book.c"
+#line 5957 "book.c"
}
}
static void pdf_writer_class_init (PDFWriterClass * klass) {
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
pdf_writer_parent_class = g_type_class_peek_parent (klass);
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
((PDFWriterClass *) klass)->finalize = pdf_writer_finalize;
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_type_class_add_private (klass, sizeof (PDFWriterPrivate));
-#line 5188 "book.c"
+#line 5969 "book.c"
}
static void pdf_writer_instance_init (PDFWriter * self) {
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
self->priv = PDF_WRITER_GET_PRIVATE (self);
-#line 574 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 629 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
self->offset = (gsize) 0;
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
self->ref_count = 1;
-#line 5199 "book.c"
+#line 5980 "book.c"
}
static void pdf_writer_finalize (PDFWriter* obj) {
PDFWriter * self;
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PDF_WRITER, PDFWriter);
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_signal_handlers_destroy (self);
-#line 575 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- _g_list_free0 (self->object_offsets);
-#line 576 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 630 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ self->object_offsets = (g_free (self->object_offsets), NULL);
+#line 631 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_g_object_unref0 (self->priv->stream);
-#line 5213 "book.c"
+#line 5994 "book.c"
}
@@ -5230,24 +6025,24 @@ GType pdf_writer_get_type (void) {
gpointer pdf_writer_ref (gpointer instance) {
PDFWriter* self;
self = instance;
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_atomic_int_inc (&self->ref_count);
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return instance;
-#line 5238 "book.c"
+#line 6019 "book.c"
}
void pdf_writer_unref (gpointer instance) {
PDFWriter* self;
self = instance;
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
PDF_WRITER_GET_CLASS (self)->finalize (self);
-#line 572 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_type_free_instance ((GTypeInstance *) self);
-#line 5251 "book.c"
+#line 6032 "book.c"
}
}
@@ -5255,9 +6050,9 @@ void pdf_writer_unref (gpointer instance) {
static cairo_status_t _ps_writer_write_cairo_data_cairo_write_func_t (gpointer self, guchar* data, int data_length1) {
cairo_status_t result;
result = ps_writer_write_cairo_data ((PsWriter*) self, data, data_length1);
-#line 616 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 679 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return result;
-#line 5261 "book.c"
+#line 6042 "book.c"
}
@@ -5266,58 +6061,58 @@ PsWriter* ps_writer_construct (GType object_type, GFileOutputStream* stream) {
GFileOutputStream* _tmp0_ = NULL;
GFileOutputStream* _tmp1_ = NULL;
cairo_surface_t* _tmp2_ = NULL;
-#line 613 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 676 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_val_if_fail (stream != NULL, NULL);
-#line 613 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 676 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
self = (PsWriter*) g_type_create_instance (object_type);
-#line 615 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 678 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp0_ = stream;
-#line 615 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 678 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp1_ = _g_object_ref0 (_tmp0_);
-#line 615 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 678 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_g_object_unref0 (self->stream);
-#line 615 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 678 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
self->stream = _tmp1_;
-#line 616 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 679 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp2_ = cairo_ps_surface_create_for_stream (_ps_writer_write_cairo_data_cairo_write_func_t, self, (gdouble) 0, (gdouble) 0);
-#line 616 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 679 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_cairo_surface_destroy0 (self->surface);
-#line 616 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 679 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
self->surface = _tmp2_;
-#line 613 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 676 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return self;
-#line 5290 "book.c"
+#line 6071 "book.c"
}
PsWriter* ps_writer_new (GFileOutputStream* stream) {
-#line 613 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 676 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return ps_writer_construct (TYPE_PS_WRITER, stream);
-#line 5297 "book.c"
+#line 6078 "book.c"
}
static cairo_status_t ps_writer_write_cairo_data (PsWriter* self, guint8* data, int data_length1) {
cairo_status_t result = 0;
GError * _inner_error_ = NULL;
-#line 619 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 682 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_val_if_fail (self != NULL, 0);
-#line 5306 "book.c"
+#line 6087 "book.c"
{
GFileOutputStream* _tmp0_ = NULL;
guint8* _tmp1_ = NULL;
gint _tmp1__length1 = 0;
-#line 623 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 686 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp0_ = self->stream;
-#line 623 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 686 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp1_ = data;
-#line 623 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 686 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp1__length1 = data_length1;
-#line 623 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 686 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_output_stream_write_all ((GOutputStream*) _tmp0_, _tmp1_, (gsize) _tmp1__length1, NULL, NULL, &_inner_error_);
-#line 623 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 686 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 5321 "book.c"
+#line 6102 "book.c"
goto __catch2_g_error;
}
}
@@ -5327,250 +6122,250 @@ static cairo_status_t ps_writer_write_cairo_data (PsWriter* self, guint8* data,
GError* e = NULL;
GError* _tmp2_ = NULL;
const gchar* _tmp3_ = NULL;
-#line 621 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 684 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
e = _inner_error_;
-#line 621 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 684 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_inner_error_ = NULL;
-#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 690 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp2_ = e;
-#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 690 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_tmp3_ = _tmp2_->message;
-#line 627 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
- g_warning ("book.vala:627: Error writing data: %s", _tmp3_);
-#line 628 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 690 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+ g_warning ("book.vala:690: Error writing data: %s", _tmp3_);
+#line 691 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
result = CAIRO_STATUS_WRITE_ERROR;
-#line 628 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 691 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_g_error_free0 (e);
-#line 628 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 691 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return result;
-#line 5347 "book.c"
+#line 6128 "book.c"
}
__finally2:
-#line 621 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 684 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 621 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 684 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
-#line 621 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 684 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_clear_error (&_inner_error_);
-#line 621 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 684 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return 0;
-#line 5358 "book.c"
+#line 6139 "book.c"
}
-#line 631 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 694 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
result = CAIRO_STATUS_SUCCESS;
-#line 631 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 694 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return result;
-#line 5364 "book.c"
+#line 6145 "book.c"
}
static void value_ps_writer_init (GValue* value) {
-#line 608 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
value->data[0].v_pointer = NULL;
-#line 5371 "book.c"
+#line 6152 "book.c"
}
static void value_ps_writer_free_value (GValue* value) {
-#line 608 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (value->data[0].v_pointer) {
-#line 608 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
ps_writer_unref (value->data[0].v_pointer);
-#line 5380 "book.c"
+#line 6161 "book.c"
}
}
static void value_ps_writer_copy_value (const GValue* src_value, GValue* dest_value) {
-#line 608 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (src_value->data[0].v_pointer) {
-#line 608 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
dest_value->data[0].v_pointer = ps_writer_ref (src_value->data[0].v_pointer);
-#line 5390 "book.c"
+#line 6171 "book.c"
} else {
-#line 608 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
dest_value->data[0].v_pointer = NULL;
-#line 5394 "book.c"
+#line 6175 "book.c"
}
}
static gpointer value_ps_writer_peek_pointer (const GValue* value) {
-#line 608 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return value->data[0].v_pointer;
-#line 5402 "book.c"
+#line 6183 "book.c"
}
static gchar* value_ps_writer_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
-#line 608 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (collect_values[0].v_pointer) {
-#line 5409 "book.c"
+#line 6190 "book.c"
PsWriter* object;
object = collect_values[0].v_pointer;
-#line 608 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (object->parent_instance.g_class == NULL) {
-#line 608 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 5416 "book.c"
+#line 6197 "book.c"
} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 608 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 5420 "book.c"
+#line 6201 "book.c"
}
-#line 608 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
value->data[0].v_pointer = ps_writer_ref (object);
-#line 5424 "book.c"
+#line 6205 "book.c"
} else {
-#line 608 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
value->data[0].v_pointer = NULL;
-#line 5428 "book.c"
+#line 6209 "book.c"
}
-#line 608 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return NULL;
-#line 5432 "book.c"
+#line 6213 "book.c"
}
static gchar* value_ps_writer_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
PsWriter** object_p;
object_p = collect_values[0].v_pointer;
-#line 608 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (!object_p) {
-#line 608 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 5443 "book.c"
+#line 6224 "book.c"
}
-#line 608 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (!value->data[0].v_pointer) {
-#line 608 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
*object_p = NULL;
-#line 5449 "book.c"
+#line 6230 "book.c"
} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 608 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
*object_p = value->data[0].v_pointer;
-#line 5453 "book.c"
+#line 6234 "book.c"
} else {
-#line 608 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
*object_p = ps_writer_ref (value->data[0].v_pointer);
-#line 5457 "book.c"
+#line 6238 "book.c"
}
-#line 608 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return NULL;
-#line 5461 "book.c"
+#line 6242 "book.c"
}
GParamSpec* param_spec_ps_writer (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
ParamSpecPsWriter* spec;
-#line 608 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_val_if_fail (g_type_is_a (object_type, TYPE_PS_WRITER), NULL);
-#line 608 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 608 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
G_PARAM_SPEC (spec)->value_type = object_type;
-#line 608 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return G_PARAM_SPEC (spec);
-#line 5475 "book.c"
+#line 6256 "book.c"
}
gpointer value_get_ps_writer (const GValue* value) {
-#line 608 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PS_WRITER), NULL);
-#line 608 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return value->data[0].v_pointer;
-#line 5484 "book.c"
+#line 6265 "book.c"
}
void value_set_ps_writer (GValue* value, gpointer v_object) {
PsWriter* old;
-#line 608 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PS_WRITER));
-#line 608 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
old = value->data[0].v_pointer;
-#line 608 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (v_object) {
-#line 608 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PS_WRITER));
-#line 608 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 608 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
value->data[0].v_pointer = v_object;
-#line 608 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
ps_writer_ref (value->data[0].v_pointer);
-#line 5504 "book.c"
+#line 6285 "book.c"
} else {
-#line 608 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
value->data[0].v_pointer = NULL;
-#line 5508 "book.c"
+#line 6289 "book.c"
}
-#line 608 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (old) {
-#line 608 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
ps_writer_unref (old);
-#line 5514 "book.c"
+#line 6295 "book.c"
}
}
void value_take_ps_writer (GValue* value, gpointer v_object) {
PsWriter* old;
-#line 608 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PS_WRITER));
-#line 608 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
old = value->data[0].v_pointer;
-#line 608 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (v_object) {
-#line 608 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PS_WRITER));
-#line 608 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 608 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
value->data[0].v_pointer = v_object;
-#line 5533 "book.c"
+#line 6314 "book.c"
} else {
-#line 608 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
value->data[0].v_pointer = NULL;
-#line 5537 "book.c"
+#line 6318 "book.c"
}
-#line 608 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (old) {
-#line 608 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
ps_writer_unref (old);
-#line 5543 "book.c"
+#line 6324 "book.c"
}
}
static void ps_writer_class_init (PsWriterClass * klass) {
-#line 608 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
ps_writer_parent_class = g_type_class_peek_parent (klass);
-#line 608 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
((PsWriterClass *) klass)->finalize = ps_writer_finalize;
-#line 5553 "book.c"
+#line 6334 "book.c"
}
static void ps_writer_instance_init (PsWriter * self) {
-#line 608 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
self->ref_count = 1;
-#line 5560 "book.c"
+#line 6341 "book.c"
}
static void ps_writer_finalize (PsWriter* obj) {
PsWriter * self;
-#line 608 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PS_WRITER, PsWriter);
-#line 608 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_signal_handlers_destroy (self);
-#line 610 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 673 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_cairo_surface_destroy0 (self->surface);
-#line 611 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 674 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
_g_object_unref0 (self->stream);
-#line 5574 "book.c"
+#line 6355 "book.c"
}
@@ -5591,24 +6386,24 @@ GType ps_writer_get_type (void) {
gpointer ps_writer_ref (gpointer instance) {
PsWriter* self;
self = instance;
-#line 608 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_atomic_int_inc (&self->ref_count);
-#line 608 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
return instance;
-#line 5599 "book.c"
+#line 6380 "book.c"
}
void ps_writer_unref (gpointer instance) {
PsWriter* self;
self = instance;
-#line 608 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 608 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
PS_WRITER_GET_CLASS (self)->finalize (self);
-#line 608 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
+#line 671 "/home/bob/bzr/simple-scan/trunk/src/book.vala"
g_type_free_instance ((GTypeInstance *) self);
-#line 5612 "book.c"
+#line 6393 "book.c"
}
}
diff --git a/src/book.vala b/src/book.vala
index 5782838..4119cfc 100644
--- a/src/book.vala
+++ b/src/book.vala
@@ -264,6 +264,22 @@ public class Book
var stream = file.replace (null, false, FileCreateFlags.NONE, null);
var writer = new PDFWriter (stream);
+ /* Choose object numbers */
+ var catalog_number = writer.add_object ();
+ var metadata_number = writer.add_object ();
+ var pages_number = writer.add_object ();
+ var info_number = writer.add_object ();
+ var page_numbers = new uint[n_pages];
+ var page_image_numbers = new uint[n_pages];
+ var page_content_numbers = new uint[n_pages];
+ for (var i = 0; i < n_pages; i++)
+ {
+ page_numbers[i] = writer.add_object ();
+ page_image_numbers[i] = writer.add_object ();
+ page_content_numbers[i] = writer.add_object ();
+ }
+ var struct_tree_root_number = writer.add_object ();
+
/* Header */
writer.write_string ("%PDF-1.3\n");
@@ -271,40 +287,59 @@ public class Book
writer.write_string ("%\xe2\xe3\xcf\xd3\n");
/* Catalog */
- var catalog_number = writer.start_object ();
+ writer.start_object (catalog_number);
writer.write_string ("%u 0 obj\n".printf (catalog_number));
writer.write_string ("<<\n");
writer.write_string ("/Type /Catalog\n");
- //FIXMEwriter.write_string ("/Metadata %u 0 R\n".printf (catalog_number + 1));
- //FIXMEwriter.write_string ("/MarkInfo << /Marked true >>");
- writer.write_string ("/Pages %u 0 R\n".printf (catalog_number + 1)); //+2
+ writer.write_string ("/Metadata %u 0 R\n".printf (metadata_number));
+ writer.write_string ("/MarkInfo << /Marked true >>\n");
+ writer.write_string ("/StructTreeRoot %u 0 R\n".printf (struct_tree_root_number));
+ writer.write_string ("/Pages %u 0 R\n".printf (pages_number));
writer.write_string (">>\n");
writer.write_string ("endobj\n");
/* Metadata */
- /* FIXME writer.write_string ("\n");
- number = writer.start_object ();
- writer.write_string ("%u 0 obj\n".printf (number));
+ var now = new DateTime.now_local ();
+ var date_string = now.format ("%FT%H:%M:%S%:z");
+ /* NOTE: The id has to be hardcoded to this value according to the spec... */
+ var metadata = """<?xpacket begin="%s" id="W5M0MpCehiHzreSzNTczkc9d"?>
+<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:xmp="http://ns.adobe.com/xap/1.0/">
+ <rdf:Description rdf:about=""
+ xmlns:pdfaid="http://www.aiim.org/pdfa/ns/id/"
+ xmlns:xmp="http://ns.adobe.com/xap/1.0/">
+ <pdfaid:part>1</pdfaid:part>
+ <pdfaid:conformance>A</pdfaid:conformance>
+ <xmp:CreatorTool>Simple Scan %s</xmp:CreatorTool>
+ <xmp:CreateDate>%s</xmp:CreateDate>
+ <xmp:ModifyDate>%s</xmp:ModifyDate>
+ <xmp:MetadataDate>%s</xmp:MetadataDate>
+ </rdf:Description>
+</rdf:RDF>
+<?xpacket end="w"?>""".printf (((unichar) 0xFEFF).to_string (), VERSION, date_string, date_string, date_string);
+ writer.write_string ("\n");
+ writer.start_object (metadata_number);
+ writer.write_string ("%u 0 obj\n".printf (metadata_number));
writer.write_string ("<<\n");
writer.write_string ("/Type /Metadata\n");
writer.write_string ("/Subtype /XML\n");
- writer.write_string ("/Length %u\n".printf (...));
+ writer.write_string ("/Length %u\n".printf (metadata.length));
writer.write_string (">>\n");
writer.write_string ("stream\n");
- // ...
+ writer.write_string (metadata);
writer.write_string ("\n");
writer.write_string ("endstream\n");
- writer.write_string ("endobj\n");*/
+ writer.write_string ("endobj\n");
/* Pages */
writer.write_string ("\n");
- var pages_number = writer.start_object ();
+ writer.start_object (pages_number);
writer.write_string ("%u 0 obj\n".printf (pages_number));
writer.write_string ("<<\n");
writer.write_string ("/Type /Pages\n");
writer.write_string ("/Kids [");
for (var i = 0; i < n_pages; i++)
- writer.write_string (" %u 0 R".printf (pages_number + 1 + (i*3)));
+ writer.write_string (" %u 0 R".printf (page_numbers[i]));
writer.write_string (" ]\n");
writer.write_string ("/Count %u\n".printf (n_pages));
writer.write_string (">>\n");
@@ -469,21 +504,21 @@ public class Book
/* Page */
writer.write_string ("\n");
- var number = writer.start_object ();
- writer.write_string ("%u 0 obj\n".printf (number));
+ writer.start_object (page_numbers[i]);
+ writer.write_string ("%u 0 obj\n".printf (page_numbers[i]));
writer.write_string ("<<\n");
writer.write_string ("/Type /Page\n");
writer.write_string ("/Parent %u 0 R\n".printf (pages_number));
- writer.write_string ("/Resources << /XObject << /Im%d %u 0 R >> >>\n".printf (i, number+1));
+ writer.write_string ("/Resources << /XObject << /Im%d %u 0 R >> >>\n".printf (i, page_image_numbers[i]));
writer.write_string ("/MediaBox [ 0 0 %s %s ]\n".printf (page_width.format (width_buffer, "%.2f"), page_height.format (height_buffer, "%.2f")));
- writer.write_string ("/Contents %u 0 R\n".printf (number+2));
+ writer.write_string ("/Contents %u 0 R\n".printf (page_content_numbers[i]));
writer.write_string (">>\n");
writer.write_string ("endobj\n");
/* Page image */
writer.write_string ("\n");
- number = writer.start_object ();
- writer.write_string ("%u 0 obj\n".printf (number));
+ writer.start_object (page_image_numbers[i]);
+ writer.write_string ("%u 0 obj\n".printf (page_image_numbers[i]));
writer.write_string ("<<\n");
writer.write_string ("/Type /XObject\n");
writer.write_string ("/Subtype /Image\n");
@@ -501,11 +536,20 @@ public class Book
writer.write_string ("endstream\n");
writer.write_string ("endobj\n");
+ /* Structure tree */
+ writer.write_string ("\n");
+ writer.start_object (struct_tree_root_number);
+ writer.write_string ("%u 0 obj\n".printf (struct_tree_root_number));
+ writer.write_string ("<<\n");
+ writer.write_string ("/Type /StructTreeRoot\n");
+ writer.write_string (">>\n");
+ writer.write_string ("endobj\n");
+
/* Page contents */
var command = "q\n%s 0 0 %s 0 0 cm\n/Im%d Do\nQ".printf (page_width.format (width_buffer, "%f"), page_height.format (height_buffer, "%f"), i);
writer.write_string ("\n");
- number = writer.start_object ();
- writer.write_string ("%u 0 obj\n".printf (number));
+ writer.start_object (page_content_numbers[i]);
+ writer.write_string ("%u 0 obj\n".printf (page_content_numbers[i]));
writer.write_string ("<<\n");
writer.write_string ("/Length %d\n".printf (command.length));
writer.write_string (">>\n");
@@ -520,7 +564,7 @@ public class Book
/* Info */
writer.write_string ("\n");
- var info_number = writer.start_object ();
+ writer.start_object (info_number);
writer.write_string ("%u 0 obj\n".printf (info_number));
writer.write_string ("<<\n");
writer.write_string ("/Creator (Simple Scan %s)\n".printf (VERSION));
@@ -531,16 +575,19 @@ public class Book
writer.write_string ("\n");
var xref_offset = writer.offset;
writer.write_string ("xref\n");
- writer.write_string ("0 %zu\n".printf (writer.object_offsets.length () + 1));
- writer.write_string ("0000000000 65535 f \n");
- foreach (var offset in writer.object_offsets)
- writer.write_string ("%010zu 00000 n \n".printf (offset));
+ writer.write_string ("0 %zu\n".printf (writer.object_offsets.length + 1));
+ writer.write_string ("%010zu 65535 f \n".printf (next_empty_object (writer, 0)));
+ for (var i = 0; i < writer.object_offsets.length; i++)
+ if (writer.object_offsets[i] == 0)
+ writer.write_string ("%010zu 65535 f \n".printf (next_empty_object (writer, i + 1)));
+ else
+ writer.write_string ("%010zu 00000 n \n".printf (writer.object_offsets[i]));
/* Trailer */
writer.write_string ("\n");
writer.write_string ("trailer\n");
writer.write_string ("<<\n");
- writer.write_string ("/Size %zu\n".printf (writer.object_offsets.length () + 1));
+ writer.write_string ("/Size %zu\n".printf (writer.object_offsets.length + 1));
writer.write_string ("/Info %u 0 R\n".printf (info_number));
writer.write_string ("/Root %u 0 R\n".printf (catalog_number));
writer.write_string ("/ID [<%s> <%s>]\n".printf (id, id));
@@ -550,6 +597,14 @@ public class Book
writer.write_string ("%%EOF\n");
}
+ static int next_empty_object (PDFWriter writer, int start)
+ {
+ for (var i = start; i < writer.object_offsets.length; i++)
+ if (writer.object_offsets[i] == 0)
+ return i + 1;
+ return 0;
+ }
+
public void save (string type, int quality, File file) throws Error
{
switch (type)
@@ -572,12 +627,13 @@ public class Book
private class PDFWriter
{
public size_t offset = 0;
- public List<uint> object_offsets;
+ public uint[] object_offsets;
private FileOutputStream stream;
public PDFWriter (FileOutputStream stream)
{
this.stream = stream;
+ object_offsets = new uint[0];
}
public void write (uint8[] data)
@@ -598,10 +654,17 @@ private class PDFWriter
write ((uint8[]) text.to_utf8 ());
}
- public uint start_object ()
+ public uint add_object ()
+ {
+ object_offsets.resize (object_offsets.length + 1);
+ var index = object_offsets.length - 1;
+ object_offsets[index] = 0;
+ return index + 1;
+ }
+
+ public void start_object (uint index)
{
- object_offsets.append ((uint)offset);
- return object_offsets.length ();
+ object_offsets[index - 1] = (uint)offset;
}
}
diff --git a/src/page-view.c b/src/page-view.c
index 8657814..c5ca2c1 100644
--- a/src/page-view.c
+++ b/src/page-view.c
@@ -1,4 +1,4 @@
-/* page-view.c generated by valac 0.32.1, the Vala compiler
+/* page-view.c generated by valac 0.34.2, the Vala compiler
* generated from page-view.vala, do not modify */
/*
diff --git a/src/page.c b/src/page.c
index 2f72fa0..0f9681f 100644
--- a/src/page.c
+++ b/src/page.c
@@ -1,4 +1,4 @@
-/* page.c generated by valac 0.32.1, the Vala compiler
+/* page.c generated by valac 0.34.2, the Vala compiler
* generated from page.vala, do not modify */
/*
@@ -2711,47 +2711,47 @@ static gchar* string_to_utf8 (const gchar* self, int* result_length1) {
gint _tmp6_ = 0;
gchar* _tmp7_ = NULL;
gint _tmp7__length1 = 0;
-#line 1405 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1405 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
g_return_val_if_fail (self != NULL, NULL);
-#line 1406 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1406 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp0_ = strlen (self);
-#line 1406 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1406 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp1_ = _tmp0_;
-#line 1406 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1406 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp2_ = g_new0 (gchar, _tmp1_ + 1);
-#line 1406 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1406 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_result_ = _tmp2_;
-#line 1406 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1406 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_result__length1 = _tmp1_ + 1;
-#line 1406 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1406 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
__result__size_ = _result__length1;
-#line 1407 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1407 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp3_ = _result__length1;
-#line 1407 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1407 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_result__length1 = _tmp3_ - 1;
-#line 1408 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1408 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp4_ = _result_;
-#line 1408 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1408 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp4__length1 = _result__length1;
-#line 1408 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1408 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp5_ = strlen (self);
-#line 1408 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1408 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp6_ = _tmp5_;
-#line 1408 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1408 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
memcpy (_tmp4_, self, (gsize) _tmp6_);
-#line 1409 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1409 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp7_ = _result_;
-#line 1409 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1409 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp7__length1 = _result__length1;
-#line 1409 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1409 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
if (result_length1) {
-#line 1409 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1409 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
*result_length1 = _tmp7__length1;
#line 2751 "page.c"
}
-#line 1409 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1409 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
result = _tmp7_;
-#line 1409 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1409 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
return result;
#line 2757 "page.c"
}
diff --git a/src/scanner.c b/src/scanner.c
index cdbbd35..bd82662 100644
--- a/src/scanner.c
+++ b/src/scanner.c
@@ -1,4 +1,4 @@
-/* scanner.c generated by valac 0.32.1, the Vala compiler
+/* scanner.c generated by valac 0.34.2, the Vala compiler
* generated from scanner.vala, do not modify */
/*
@@ -4421,17 +4421,17 @@ static gboolean string_contains (const gchar* self, const gchar* needle) {
gboolean result = FALSE;
const gchar* _tmp0_ = NULL;
gchar* _tmp1_ = NULL;
-#line 1376 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1376 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
g_return_val_if_fail (self != NULL, FALSE);
-#line 1376 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1376 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
g_return_val_if_fail (needle != NULL, FALSE);
-#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp0_ = needle;
-#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp1_ = strstr ((gchar*) self, (gchar*) _tmp0_);
-#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
result = _tmp1_ != NULL;
-#line 1377 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
return result;
#line 4437 "scanner.c"
}
@@ -4738,11 +4738,11 @@ static gchar* sane_status_to_string (SANE_Status status) {
static gchar* string_replace (const gchar* self, const gchar* old, const gchar* replacement) {
gchar* result = NULL;
GError * _inner_error_ = NULL;
-#line 1380 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1380 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
g_return_val_if_fail (self != NULL, NULL);
-#line 1380 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1380 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
g_return_val_if_fail (old != NULL, NULL);
-#line 1380 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1380 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
g_return_val_if_fail (replacement != NULL, NULL);
#line 4748 "scanner.c"
{
@@ -4757,73 +4757,73 @@ static gchar* string_replace (const gchar* self, const gchar* old, const gchar*
const gchar* _tmp7_ = NULL;
gchar* _tmp8_ = NULL;
gchar* _tmp9_ = NULL;
-#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp0_ = old;
-#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp1_ = g_regex_escape_string (_tmp0_, -1);
-#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp2_ = _tmp1_;
-#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp3_ = g_regex_new (_tmp2_, 0, 0, &_inner_error_);
-#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp4_ = _tmp3_;
-#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_g_free0 (_tmp2_);
-#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
regex = _tmp4_;
-#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
if (_inner_error_->domain == G_REGEX_ERROR) {
#line 4779 "scanner.c"
goto __catch15_g_regex_error;
}
-#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
-#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
g_clear_error (&_inner_error_);
-#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
return NULL;
#line 4788 "scanner.c"
}
-#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp6_ = regex;
-#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp7_ = replacement;
-#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp8_ = g_regex_replace_literal (_tmp6_, self, (gssize) -1, 0, _tmp7_, 0, &_inner_error_);
-#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp5_ = _tmp8_;
-#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_g_regex_unref0 (regex);
-#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
if (_inner_error_->domain == G_REGEX_ERROR) {
#line 4804 "scanner.c"
goto __catch15_g_regex_error;
}
-#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_g_regex_unref0 (regex);
-#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
-#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
g_clear_error (&_inner_error_);
-#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
return NULL;
#line 4815 "scanner.c"
}
-#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp9_ = _tmp5_;
-#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp5_ = NULL;
-#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
result = _tmp9_;
-#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_g_free0 (_tmp5_);
-#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_g_regex_unref0 (regex);
-#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
return result;
#line 4829 "scanner.c"
}
@@ -4831,24 +4831,24 @@ static gchar* string_replace (const gchar* self, const gchar* old, const gchar*
__catch15_g_regex_error:
{
GError* e = NULL;
-#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
e = _inner_error_;
-#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_inner_error_ = NULL;
-#line 1385 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1385 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
g_assert_not_reached ();
-#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_g_error_free0 (e);
#line 4843 "scanner.c"
}
__finally15:
-#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
-#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
g_clear_error (&_inner_error_);
-#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
return NULL;
#line 4854 "scanner.c"
}
@@ -6274,15 +6274,15 @@ static gchar string_get (const gchar* self, glong index) {
gchar result = '\0';
glong _tmp0_ = 0L;
gchar _tmp1_ = '\0';
-#line 1086 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1086 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
g_return_val_if_fail (self != NULL, '\0');
-#line 1087 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1087 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp0_ = index;
-#line 1087 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1087 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp1_ = ((gchar*) self)[_tmp0_];
-#line 1087 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1087 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
result = _tmp1_;
-#line 1087 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1087 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
return result;
#line 6282 "scanner.c"
}
diff --git a/src/simple-scan.c b/src/simple-scan.c
index 93b9e2c..4ffc5a0 100644
--- a/src/simple-scan.c
+++ b/src/simple-scan.c
@@ -1,4 +1,4 @@
-/* simple-scan.c generated by valac 0.32.1, the Vala compiler
+/* simple-scan.c generated by valac 0.34.2, the Vala compiler
* generated from simple-scan.vala, do not modify */
/*
@@ -973,13 +973,13 @@ static void _g_free0_ (gpointer var) {
static gint g_ptr_array_get_length (GPtrArray* self) {
gint result;
guint _tmp0_ = 0U;
-#line 4807 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 4858 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
g_return_val_if_fail (self != NULL, 0);
-#line 4807 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 4858 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp0_ = self->len;
-#line 4807 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 4858 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
result = (gint) _tmp0_;
-#line 4807 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 4858 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
return result;
#line 985 "simple-scan.c"
}
@@ -987,11 +987,11 @@ static gint g_ptr_array_get_length (GPtrArray* self) {
static void g_ptr_array_set_length (GPtrArray* self, gint value) {
gint _tmp0_ = 0;
-#line 4808 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 4859 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
g_return_if_fail (self != NULL);
-#line 4808 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 4859 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp0_ = value;
-#line 4808 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 4859 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
g_ptr_array_set_size (self, _tmp0_);
#line 997 "simple-scan.c"
}
@@ -3022,37 +3022,37 @@ static glong string_strnlen (gchar* str, glong maxlen) {
glong _tmp1_ = 0L;
gchar* _tmp2_ = NULL;
gchar* _tmp3_ = NULL;
-#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp0_ = str;
-#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp1_ = maxlen;
-#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp2_ = memchr (_tmp0_, 0, (gsize) _tmp1_);
-#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
end = _tmp2_;
-#line 1296 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1296 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp3_ = end;
-#line 1296 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1296 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
if (_tmp3_ == NULL) {
#line 3037 "simple-scan.c"
glong _tmp4_ = 0L;
-#line 1297 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1297 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp4_ = maxlen;
-#line 1297 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1297 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
result = _tmp4_;
-#line 1297 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1297 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
return result;
#line 3045 "simple-scan.c"
} else {
gchar* _tmp5_ = NULL;
gchar* _tmp6_ = NULL;
-#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp5_ = end;
-#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp6_ = str;
-#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
result = (glong) (_tmp5_ - _tmp6_);
-#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
return result;
#line 3057 "simple-scan.c"
}
@@ -3072,112 +3072,112 @@ static gchar* string_substring (const gchar* self, glong offset, glong len) {
glong _tmp20_ = 0L;
glong _tmp21_ = 0L;
gchar* _tmp22_ = NULL;
-#line 1306 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1306 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
g_return_val_if_fail (self != NULL, NULL);
-#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp1_ = offset;
-#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
if (_tmp1_ >= ((glong) 0)) {
#line 3081 "simple-scan.c"
glong _tmp2_ = 0L;
-#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp2_ = len;
-#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp0_ = _tmp2_ >= ((glong) 0);
#line 3087 "simple-scan.c"
} else {
-#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp0_ = FALSE;
#line 3091 "simple-scan.c"
}
-#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
if (_tmp0_) {
#line 3095 "simple-scan.c"
glong _tmp3_ = 0L;
glong _tmp4_ = 0L;
glong _tmp5_ = 0L;
-#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp3_ = offset;
-#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp4_ = len;
-#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp5_ = string_strnlen ((gchar*) self, _tmp3_ + _tmp4_);
-#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
string_length = _tmp5_;
#line 3107 "simple-scan.c"
} else {
gint _tmp6_ = 0;
gint _tmp7_ = 0;
-#line 1312 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1312 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp6_ = strlen (self);
-#line 1312 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1312 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp7_ = _tmp6_;
-#line 1312 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1312 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
string_length = (glong) _tmp7_;
#line 3117 "simple-scan.c"
}
-#line 1315 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1315 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp8_ = offset;
-#line 1315 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1315 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
if (_tmp8_ < ((glong) 0)) {
#line 3123 "simple-scan.c"
glong _tmp9_ = 0L;
glong _tmp10_ = 0L;
glong _tmp11_ = 0L;
-#line 1316 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1316 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp9_ = string_length;
-#line 1316 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1316 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp10_ = offset;
-#line 1316 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1316 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
offset = _tmp9_ + _tmp10_;
-#line 1317 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1317 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp11_ = offset;
-#line 1317 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1317 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
g_return_val_if_fail (_tmp11_ >= ((glong) 0), NULL);
#line 3137 "simple-scan.c"
} else {
glong _tmp12_ = 0L;
glong _tmp13_ = 0L;
-#line 1319 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1319 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp12_ = offset;
-#line 1319 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1319 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp13_ = string_length;
-#line 1319 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1319 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
g_return_val_if_fail (_tmp12_ <= _tmp13_, NULL);
#line 3147 "simple-scan.c"
}
-#line 1321 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1321 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp14_ = len;
-#line 1321 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1321 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
if (_tmp14_ < ((glong) 0)) {
#line 3153 "simple-scan.c"
glong _tmp15_ = 0L;
glong _tmp16_ = 0L;
-#line 1322 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1322 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp15_ = string_length;
-#line 1322 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1322 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp16_ = offset;
-#line 1322 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1322 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
len = _tmp15_ - _tmp16_;
#line 3162 "simple-scan.c"
}
-#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp17_ = offset;
-#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp18_ = len;
-#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp19_ = string_length;
-#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
g_return_val_if_fail ((_tmp17_ + _tmp18_) <= _tmp19_, NULL);
-#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp20_ = offset;
-#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp21_ = len;
-#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp22_ = g_strndup (((gchar*) self) + _tmp20_, (gsize) _tmp21_);
-#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
result = _tmp22_;
-#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
return result;
#line 3182 "simple-scan.c"
}
diff --git a/src/simple-scan.vala b/src/simple-scan.vala
index 81e21e4..9d1b9fd 100644
--- a/src/simple-scan.vala
+++ b/src/simple-scan.vala
@@ -14,7 +14,7 @@ public class SimpleScan : Gtk.Application
static bool show_version;
static bool debug_enabled;
static string? fix_pdf_filename = null;
- public static const OptionEntry[] options =
+ public const OptionEntry[] options =
{
{ "version", 'v', 0, OptionArg.NONE, ref show_version,
/* Help string for command line --version flag */
diff --git a/src/ui.c b/src/ui.c
index 9535ce2..fd417eb 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -1,4 +1,4 @@
-/* ui.c generated by valac 0.32.1, the Vala compiler
+/* ui.c generated by valac 0.34.2, the Vala compiler
* generated from ui.vala, do not modify */
/*
@@ -710,7 +710,7 @@ ScanDirection page_get_scan_direction (Page* self);
static void _user_interface_page_size_changed_cb_page_size_changed (Page* _sender, gpointer self);
static void _user_interface_page_scan_direction_changed_cb_page_scan_direction_changed (Page* _sender, gpointer self);
static void user_interface_set_dpi_combo (UserInterface* self, GtkComboBox* combo, gint default_dpi, gint current_dpi);
-static gboolean user_interface_is_desktop (UserInterface* self, const gchar* name);
+static gboolean user_interface_is_traditional_desktop (UserInterface* self);
static void _user_interface_info_bar_response_cb_gtk_info_bar_response (GtkInfoBar* _sender, gint response_id, gpointer self);
static void __lambda14_ (UserInterface* self);
static void ___lambda14__gtk_combo_box_changed (GtkComboBox* _sender, gpointer self);
@@ -739,6 +739,7 @@ ProgressBarDialog* progress_bar_dialog_new (GtkApplicationWindow* parent, const
ProgressBarDialog* progress_bar_dialog_construct (GType object_type, GtkApplicationWindow* parent, const gchar* title);
static void user_interface_book_saving_cb (UserInterface* self, gint page_number);
static void _user_interface_book_saving_cb_book_saving (Book* _sender, gint i, gpointer self);
+static gboolean user_interface_is_desktop (UserInterface* self, const gchar* name);
static gchar* user_interface_get_state_filename (UserInterface* self);
static gint user_interface_state_get_integer (UserInterface* self, GKeyFile* f, const gchar* group_name, const gchar* key, gint _default_);
static gboolean user_interface_state_get_boolean (UserInterface* self, GKeyFile* f, const gchar* group_name, const gchar* key, gboolean _default_);
@@ -790,98 +791,98 @@ static const GActionEntry USER_INTERFACE_action_entries[10] = {{"new_document",
static void _user_interface_page_added_cb_book_page_added (Book* _sender, Page* page, gpointer self) {
#line 288 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_page_added_cb ((UserInterface*) self, _sender, page);
-#line 794 "ui.c"
+#line 795 "ui.c"
}
static void _user_interface_reordered_cb_book_reordered (Book* _sender, gpointer self) {
#line 289 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_reordered_cb ((UserInterface*) self, _sender);
-#line 801 "ui.c"
+#line 802 "ui.c"
}
static void _user_interface_page_removed_cb_book_page_removed (Book* _sender, Page* page, gpointer self) {
#line 290 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_page_removed_cb ((UserInterface*) self, _sender, page);
-#line 808 "ui.c"
+#line 809 "ui.c"
}
static void _user_interface_new_document_activate_cb_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
#line 19 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_new_document_activate_cb ((UserInterface*) self);
-#line 815 "ui.c"
+#line 816 "ui.c"
}
static void _user_interface_reorder_document_activate_cb_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
#line 19 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_reorder_document_activate_cb ((UserInterface*) self);
-#line 822 "ui.c"
+#line 823 "ui.c"
}
static void _user_interface_save_document_activate_cb_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
#line 19 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_save_document_activate_cb ((UserInterface*) self);
-#line 829 "ui.c"
+#line 830 "ui.c"
}
static void _user_interface_save_as_document_activate_cb_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
#line 19 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_save_as_document_activate_cb ((UserInterface*) self);
-#line 836 "ui.c"
+#line 837 "ui.c"
}
static void _user_interface_email_document_activate_cb_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
#line 19 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_email_document_activate_cb ((UserInterface*) self);
-#line 843 "ui.c"
+#line 844 "ui.c"
}
static void _user_interface_print_document_activate_cb_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
#line 19 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_print_document_activate_cb ((UserInterface*) self);
-#line 850 "ui.c"
+#line 851 "ui.c"
}
static void _user_interface_preferences_activate_cb_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
#line 19 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_preferences_activate_cb ((UserInterface*) self);
-#line 857 "ui.c"
+#line 858 "ui.c"
}
static void _user_interface_help_contents_activate_cb_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
#line 19 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_help_contents_activate_cb ((UserInterface*) self);
-#line 864 "ui.c"
+#line 865 "ui.c"
}
static void _user_interface_about_activate_cb_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
#line 19 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_about_activate_cb ((UserInterface*) self);
-#line 871 "ui.c"
+#line 872 "ui.c"
}
static void _user_interface_quit_activate_cb_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
#line 19 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_quit_activate_cb ((UserInterface*) self);
-#line 878 "ui.c"
+#line 879 "ui.c"
}
static void _user_interface_needs_saving_cb_book_needs_saving_changed (Book* _sender, gpointer self) {
#line 269 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_needs_saving_cb ((UserInterface*) self, _sender);
-#line 885 "ui.c"
+#line 886 "ui.c"
}
@@ -959,7 +960,7 @@ UserInterface* user_interface_construct (GType object_type) {
_tmp13_ = _tmp12_;
#line 277 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp13_ == ((guint) 0)) {
-#line 963 "ui.c"
+#line 964 "ui.c"
Book* _tmp14_ = NULL;
#line 279 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_add_default_page (self);
@@ -967,7 +968,7 @@ UserInterface* user_interface_construct (GType object_type) {
_tmp14_ = self->priv->_book;
#line 280 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
book_set_needs_saving (_tmp14_, FALSE);
-#line 971 "ui.c"
+#line 972 "ui.c"
} else {
BookView* _tmp15_ = NULL;
Book* _tmp16_ = NULL;
@@ -985,18 +986,18 @@ UserInterface* user_interface_construct (GType object_type) {
book_view_set_selected_page (_tmp15_, _tmp18_);
#line 283 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_page_unref0 (_tmp18_);
-#line 989 "ui.c"
+#line 990 "ui.c"
}
#line 261 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return self;
-#line 993 "ui.c"
+#line 994 "ui.c"
}
UserInterface* user_interface_new (void) {
#line 261 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return user_interface_construct (TYPE_USER_INTERFACE);
-#line 1000 "ui.c"
+#line 1001 "ui.c"
}
@@ -1021,14 +1022,14 @@ static gboolean user_interface_find_scan_device (UserInterface* self, const gcha
_vala_iter = _tmp1_;
#line 297 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp2_) {
-#line 1025 "ui.c"
+#line 1026 "ui.c"
{
gboolean _tmp3_ = FALSE;
#line 299 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = TRUE;
#line 299 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
while (TRUE) {
-#line 1032 "ui.c"
+#line 1033 "ui.c"
gchar* d = NULL;
GtkListStore* _tmp8_ = NULL;
GtkTreeIter _tmp9_ = {0};
@@ -1036,14 +1037,14 @@ static gboolean user_interface_find_scan_device (UserInterface* self, const gcha
const gchar* _tmp11_ = NULL;
#line 299 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (!_tmp3_) {
-#line 1040 "ui.c"
+#line 1041 "ui.c"
gboolean _tmp4_ = FALSE;
gboolean _tmp5_ = FALSE;
#line 305 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_ = have_iter;
#line 305 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (!_tmp5_) {
-#line 1047 "ui.c"
+#line 1048 "ui.c"
GtkListStore* _tmp6_ = NULL;
gboolean _tmp7_ = FALSE;
#line 305 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -1052,17 +1053,17 @@ static gboolean user_interface_find_scan_device (UserInterface* self, const gcha
_tmp7_ = gtk_tree_model_iter_next ((GtkTreeModel*) _tmp6_, &_vala_iter);
#line 305 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = _tmp7_;
-#line 1056 "ui.c"
+#line 1057 "ui.c"
} else {
#line 305 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = FALSE;
-#line 1060 "ui.c"
+#line 1061 "ui.c"
}
#line 305 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (!_tmp4_) {
#line 305 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 1066 "ui.c"
+#line 1067 "ui.c"
}
}
#line 299 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -1081,11 +1082,11 @@ static gboolean user_interface_find_scan_device (UserInterface* self, const gcha
if (g_strcmp0 (_tmp10_, _tmp11_) == 0) {
#line 304 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
have_iter = TRUE;
-#line 1085 "ui.c"
+#line 1086 "ui.c"
}
#line 299 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (d);
-#line 1089 "ui.c"
+#line 1090 "ui.c"
}
}
}
@@ -1095,11 +1096,11 @@ static gboolean user_interface_find_scan_device (UserInterface* self, const gcha
if (iter) {
#line 308 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
*iter = _vala_iter;
-#line 1099 "ui.c"
+#line 1100 "ui.c"
}
#line 308 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 1103 "ui.c"
+#line 1104 "ui.c"
}
@@ -1137,7 +1138,7 @@ static void user_interface_show_error_dialog (UserInterface* self, const gchar*
gtk_widget_destroy ((GtkWidget*) dialog);
#line 311 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (dialog);
-#line 1141 "ui.c"
+#line 1142 "ui.c"
}
@@ -1228,21 +1229,21 @@ void user_interface_authorize (UserInterface* self, const gchar* resource, gchar
if (username) {
#line 324 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
*username = _vala_username;
-#line 1232 "ui.c"
+#line 1233 "ui.c"
} else {
#line 324 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (_vala_username);
-#line 1236 "ui.c"
+#line 1237 "ui.c"
}
#line 324 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (password) {
#line 324 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
*password = _vala_password;
-#line 1242 "ui.c"
+#line 1243 "ui.c"
} else {
#line 324 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (_vala_password);
-#line 1246 "ui.c"
+#line 1247 "ui.c"
}
}
@@ -1263,7 +1264,7 @@ static void user_interface_device_combo_changed_cb (UserInterface* self, GtkWidg
if (_tmp0_) {
#line 345 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
-#line 1267 "ui.c"
+#line 1268 "ui.c"
}
#line 346 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->user_selected_device = TRUE;
@@ -1279,7 +1280,7 @@ static void user_interface_device_combo_changed_cb (UserInterface* self, GtkWidg
_g_free0 (_tmp3_);
#line 347 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp4_) {
-#line 1283 "ui.c"
+#line 1284 "ui.c"
GSettings* _tmp5_ = NULL;
gchar* _tmp6_ = NULL;
gchar* _tmp7_ = NULL;
@@ -1296,7 +1297,7 @@ static void user_interface_device_combo_changed_cb (UserInterface* self, GtkWidg
g_settings_set_string (_tmp5_, "selected-device", _tmp8_);
#line 348 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (_tmp8_);
-#line 1300 "ui.c"
+#line 1301 "ui.c"
}
}
@@ -1304,7 +1305,7 @@ static void user_interface_device_combo_changed_cb (UserInterface* self, GtkWidg
static void _user_interface_device_combo_changed_cb_gtk_combo_box_changed (GtkComboBox* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_device_combo_changed_cb ((UserInterface*) self, _sender);
-#line 1308 "ui.c"
+#line 1309 "ui.c"
}
@@ -1346,7 +1347,7 @@ static void user_interface_update_info_bar (UserInterface* self) {
_tmp0_ = self->priv->have_error;
#line 359 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp0_) {
-#line 1350 "ui.c"
+#line 1351 "ui.c"
gchar* _tmp1_ = NULL;
const gchar* _tmp2_ = NULL;
gchar* _tmp3_ = NULL;
@@ -1383,7 +1384,7 @@ static void user_interface_update_info_bar (UserInterface* self) {
_tmp6_ = self->priv->error_change_scanner_hint;
#line 366 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
show_change_scanner_button = _tmp6_;
-#line 1387 "ui.c"
+#line 1388 "ui.c"
} else {
GtkListStore* _tmp7_ = NULL;
gint _tmp8_ = 0;
@@ -1393,7 +1394,7 @@ static void user_interface_update_info_bar (UserInterface* self) {
_tmp8_ = gtk_tree_model_iter_n_children ((GtkTreeModel*) _tmp7_, NULL);
#line 368 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp8_ == 0) {
-#line 1397 "ui.c"
+#line 1398 "ui.c"
gchar* _tmp9_ = NULL;
const gchar* _tmp10_ = NULL;
#line 370 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -1408,7 +1409,7 @@ static void user_interface_update_info_bar (UserInterface* self) {
_tmp10_ = self->priv->missing_driver;
#line 372 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp10_ == NULL) {
-#line 1412 "ui.c"
+#line 1413 "ui.c"
const gchar* _tmp11_ = NULL;
gchar* _tmp12_ = NULL;
const gchar* _tmp13_ = NULL;
@@ -1429,7 +1430,7 @@ static void user_interface_update_info_bar (UserInterface* self) {
_g_free0 (text);
#line 377 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
text = _tmp14_;
-#line 1433 "ui.c"
+#line 1434 "ui.c"
} else {
const gchar* _tmp15_ = NULL;
gchar* _tmp16_ = NULL;
@@ -1453,7 +1454,7 @@ static void user_interface_update_info_bar (UserInterface* self) {
text = _tmp18_;
#line 385 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
show_install_button = TRUE;
-#line 1457 "ui.c"
+#line 1458 "ui.c"
}
} else {
GtkInfoBar* _tmp19_ = NULL;
@@ -1469,7 +1470,7 @@ static void user_interface_update_info_bar (UserInterface* self) {
_g_free0 (title);
#line 391 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
-#line 1473 "ui.c"
+#line 1474 "ui.c"
}
}
#line 394 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -1528,14 +1529,14 @@ static void user_interface_update_info_bar (UserInterface* self) {
_g_free0 (text);
#line 351 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (title);
-#line 1532 "ui.c"
+#line 1533 "ui.c"
}
static gpointer _scan_device_ref0 (gpointer self) {
#line 420 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return self ? scan_device_ref (self) : NULL;
-#line 1539 "ui.c"
+#line 1540 "ui.c"
}
@@ -1566,7 +1567,7 @@ void user_interface_set_scan_devices (UserInterface* self, GList* devices, const
_tmp2_ = self->priv->user_selected_device;
#line 415 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp2_) {
-#line 1570 "ui.c"
+#line 1571 "ui.c"
GtkComboBox* _tmp3_ = NULL;
gint _tmp4_ = 0;
gint _tmp5_ = 0;
@@ -1578,13 +1579,13 @@ void user_interface_set_scan_devices (UserInterface* self, GList* devices, const
_tmp5_ = _tmp4_;
#line 416 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
have_selection = _tmp5_ >= 0;
-#line 1582 "ui.c"
+#line 1583 "ui.c"
}
#line 419 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
index = 0;
#line 420 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp6_ = devices;
-#line 1588 "ui.c"
+#line 1589 "ui.c"
{
GList* device_collection = NULL;
GList* device_it = NULL;
@@ -1592,14 +1593,14 @@ void user_interface_set_scan_devices (UserInterface* self, GList* devices, const
device_collection = _tmp6_;
#line 420 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
for (device_it = device_collection; device_it != NULL; device_it = device_it->next) {
-#line 1596 "ui.c"
+#line 1597 "ui.c"
ScanDevice* _tmp7_ = NULL;
ScanDevice* device = NULL;
#line 420 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp7_ = _scan_device_ref0 ((ScanDevice*) device_it->data);
#line 420 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
device = _tmp7_;
-#line 1603 "ui.c"
+#line 1604 "ui.c"
{
gint n_delete = 0;
GtkListStore* _tmp8_ = NULL;
@@ -1620,18 +1621,18 @@ void user_interface_set_scan_devices (UserInterface* self, GList* devices, const
iter = _tmp10_;
#line 425 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp11_) {
-#line 1624 "ui.c"
+#line 1625 "ui.c"
gint i = 0;
#line 427 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
i = 0;
-#line 1628 "ui.c"
+#line 1629 "ui.c"
{
gboolean _tmp12_ = FALSE;
#line 428 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp12_ = TRUE;
#line 428 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
while (TRUE) {
-#line 1635 "ui.c"
+#line 1636 "ui.c"
gchar* name = NULL;
gboolean matched = FALSE;
GtkListStore* _tmp15_ = NULL;
@@ -1643,7 +1644,7 @@ void user_interface_set_scan_devices (UserInterface* self, GList* devices, const
gint _tmp22_ = 0;
#line 428 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (!_tmp12_) {
-#line 1647 "ui.c"
+#line 1648 "ui.c"
GtkListStore* _tmp13_ = NULL;
gboolean _tmp14_ = FALSE;
#line 442 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -1654,7 +1655,7 @@ void user_interface_set_scan_devices (UserInterface* self, GList* devices, const
if (!_tmp14_) {
#line 442 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 1658 "ui.c"
+#line 1659 "ui.c"
}
}
#line 428 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -1677,7 +1678,7 @@ void user_interface_set_scan_devices (UserInterface* self, GList* devices, const
_tmp20_ = matched;
#line 436 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp20_) {
-#line 1681 "ui.c"
+#line 1682 "ui.c"
gint _tmp21_ = 0;
#line 438 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp21_ = i;
@@ -1687,7 +1688,7 @@ void user_interface_set_scan_devices (UserInterface* self, GList* devices, const
_g_free0 (name);
#line 439 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 1691 "ui.c"
+#line 1692 "ui.c"
}
#line 441 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp22_ = i;
@@ -1695,7 +1696,7 @@ void user_interface_set_scan_devices (UserInterface* self, GList* devices, const
i = _tmp22_ + 1;
#line 428 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (name);
-#line 1699 "ui.c"
+#line 1700 "ui.c"
}
}
}
@@ -1703,7 +1704,7 @@ void user_interface_set_scan_devices (UserInterface* self, GList* devices, const
_tmp23_ = n_delete;
#line 446 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp23_ >= 0) {
-#line 1707 "ui.c"
+#line 1708 "ui.c"
gint i = 0;
GtkListStore* _tmp24_ = NULL;
GtkTreeIter _tmp25_ = {0};
@@ -1719,7 +1720,7 @@ void user_interface_set_scan_devices (UserInterface* self, GList* devices, const
_tmp27_ = _tmp26_->label;
#line 451 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_list_store_set (_tmp24_, &_tmp25_, 1, _tmp27_, -1, -1);
-#line 1723 "ui.c"
+#line 1724 "ui.c"
{
gboolean _tmp28_ = FALSE;
#line 453 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -1728,7 +1729,7 @@ void user_interface_set_scan_devices (UserInterface* self, GList* devices, const
_tmp28_ = TRUE;
#line 453 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
while (TRUE) {
-#line 1732 "ui.c"
+#line 1733 "ui.c"
gint _tmp30_ = 0;
gint _tmp31_ = 0;
GtkListStore* _tmp32_ = NULL;
@@ -1738,13 +1739,13 @@ void user_interface_set_scan_devices (UserInterface* self, GList* devices, const
GtkTreeIter _tmp36_ = {0};
#line 453 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (!_tmp28_) {
-#line 1742 "ui.c"
+#line 1743 "ui.c"
gint _tmp29_ = 0;
#line 453 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp29_ = i;
#line 453 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
i = _tmp29_ + 1;
-#line 1748 "ui.c"
+#line 1749 "ui.c"
}
#line 453 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp28_ = FALSE;
@@ -1756,7 +1757,7 @@ void user_interface_set_scan_devices (UserInterface* self, GList* devices, const
if (!(_tmp30_ < _tmp31_)) {
#line 453 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 1760 "ui.c"
+#line 1761 "ui.c"
}
#line 455 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp32_ = self->priv->device_model;
@@ -1772,7 +1773,7 @@ void user_interface_set_scan_devices (UserInterface* self, GList* devices, const
_tmp36_ = iter;
#line 456 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_list_store_remove (_tmp35_, &_tmp36_);
-#line 1776 "ui.c"
+#line 1777 "ui.c"
}
}
} else {
@@ -1807,7 +1808,7 @@ void user_interface_set_scan_devices (UserInterface* self, GList* devices, const
_tmp45_ = _tmp44_->label;
#line 462 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_list_store_set (_tmp40_, &_tmp41_, 0, _tmp43_, 1, _tmp45_, -1, -1);
-#line 1811 "ui.c"
+#line 1812 "ui.c"
}
#line 464 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp46_ = index;
@@ -1815,13 +1816,13 @@ void user_interface_set_scan_devices (UserInterface* self, GList* devices, const
index = _tmp46_ + 1;
#line 420 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_scan_device_unref0 (device);
-#line 1819 "ui.c"
+#line 1820 "ui.c"
}
}
}
#line 468 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
while (TRUE) {
-#line 1825 "ui.c"
+#line 1826 "ui.c"
GtkListStore* _tmp47_ = NULL;
gint _tmp48_ = 0;
GtkTreeIter _tmp49_ = {0};
@@ -1840,7 +1841,7 @@ void user_interface_set_scan_devices (UserInterface* self, GList* devices, const
if (!_tmp50_) {
#line 468 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 1844 "ui.c"
+#line 1845 "ui.c"
}
#line 469 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp51_ = self->priv->device_model;
@@ -1848,13 +1849,13 @@ void user_interface_set_scan_devices (UserInterface* self, GList* devices, const
_tmp52_ = iter;
#line 469 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_list_store_remove (_tmp51_, &_tmp52_);
-#line 1852 "ui.c"
+#line 1853 "ui.c"
}
#line 472 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp53_ = have_selection;
#line 472 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (!_tmp53_) {
-#line 1858 "ui.c"
+#line 1859 "ui.c"
gchar* device = NULL;
GSettings* _tmp54_ = NULL;
gchar* _tmp55_ = NULL;
@@ -1870,7 +1871,7 @@ void user_interface_set_scan_devices (UserInterface* self, GList* devices, const
_tmp57_ = device;
#line 475 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp57_ != NULL) {
-#line 1874 "ui.c"
+#line 1875 "ui.c"
const gchar* _tmp58_ = NULL;
GtkTreeIter _tmp59_ = {0};
gboolean _tmp60_ = FALSE;
@@ -1882,15 +1883,15 @@ void user_interface_set_scan_devices (UserInterface* self, GList* devices, const
iter = _tmp59_;
#line 475 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp56_ = _tmp60_;
-#line 1886 "ui.c"
+#line 1887 "ui.c"
} else {
#line 475 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp56_ = FALSE;
-#line 1890 "ui.c"
+#line 1891 "ui.c"
}
#line 475 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp56_) {
-#line 1894 "ui.c"
+#line 1895 "ui.c"
GtkComboBox* _tmp61_ = NULL;
GtkTreeIter _tmp62_ = {0};
#line 476 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -1899,24 +1900,24 @@ void user_interface_set_scan_devices (UserInterface* self, GList* devices, const
_tmp62_ = iter;
#line 476 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_combo_box_set_active_iter (_tmp61_, &_tmp62_);
-#line 1903 "ui.c"
+#line 1904 "ui.c"
} else {
GtkComboBox* _tmp63_ = NULL;
#line 478 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp63_ = self->priv->device_combo;
#line 478 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_combo_box_set_active (_tmp63_, 0);
-#line 1910 "ui.c"
+#line 1911 "ui.c"
}
#line 472 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (device);
-#line 1914 "ui.c"
+#line 1915 "ui.c"
}
#line 481 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->setting_devices = FALSE;
#line 483 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_update_info_bar (self);
-#line 1920 "ui.c"
+#line 1921 "ui.c"
}
@@ -1953,7 +1954,7 @@ static void user_interface_add_default_page (UserInterface* self) {
book_view_set_selected_page (_tmp6_, page);
#line 486 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_page_unref0 (page);
-#line 1957 "ui.c"
+#line 1958 "ui.c"
}
@@ -1962,7 +1963,7 @@ static Block1Data* block1_data_ref (Block1Data* _data1_) {
g_atomic_int_inc (&_data1_->_ref_count_);
#line 496 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return _data1_;
-#line 1966 "ui.c"
+#line 1967 "ui.c"
}
@@ -1971,7 +1972,7 @@ static void block1_data_unref (void * _userdata_) {
_data1_ = (Block1Data*) _userdata_;
#line 496 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (g_atomic_int_dec_and_test (&_data1_->_ref_count_)) {
-#line 1975 "ui.c"
+#line 1976 "ui.c"
UserInterface* self;
#line 496 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self = _data1_->self;
@@ -1983,7 +1984,7 @@ static void block1_data_unref (void * _userdata_) {
_g_object_unref0 (self);
#line 496 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_slice_free (Block1Data, _data1_);
-#line 1987 "ui.c"
+#line 1988 "ui.c"
}
}
@@ -1991,7 +1992,7 @@ static void block1_data_unref (void * _userdata_) {
static gpointer _g_object_ref0 (gpointer self) {
#line 524 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return self ? g_object_ref (self) : NULL;
-#line 1995 "ui.c"
+#line 1996 "ui.c"
}
@@ -2002,35 +2003,35 @@ static gint string_last_index_of_char (const gchar* self, gunichar c, gint start
gunichar _tmp1_ = 0U;
gchar* _tmp2_ = NULL;
gchar* _tmp3_ = NULL;
-#line 1017 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1017 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
g_return_val_if_fail (self != NULL, 0);
-#line 1018 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1018 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp0_ = start_index;
-#line 1018 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1018 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp1_ = c;
-#line 1018 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1018 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp2_ = g_utf8_strrchr (((gchar*) self) + _tmp0_, (gssize) -1, _tmp1_);
-#line 1018 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1018 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_result_ = _tmp2_;
-#line 1020 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1020 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp3_ = _result_;
-#line 1020 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1020 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
if (_tmp3_ != NULL) {
-#line 2020 "ui.c"
+#line 2021 "ui.c"
gchar* _tmp4_ = NULL;
-#line 1021 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1021 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp4_ = _result_;
-#line 1021 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1021 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
result = (gint) (_tmp4_ - ((gchar*) self));
-#line 1021 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1021 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
return result;
-#line 2028 "ui.c"
+#line 2029 "ui.c"
} else {
-#line 1023 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1023 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
result = -1;
-#line 1023 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1023 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
return result;
-#line 2034 "ui.c"
+#line 2035 "ui.c"
}
}
@@ -2052,105 +2053,105 @@ static gchar* string_slice (const gchar* self, glong start, glong end) {
glong _tmp19_ = 0L;
glong _tmp20_ = 0L;
gchar* _tmp21_ = NULL;
-#line 1328 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1328 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
g_return_val_if_fail (self != NULL, NULL);
-#line 1329 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1329 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp0_ = strlen (self);
-#line 1329 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1329 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp1_ = _tmp0_;
-#line 1329 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1329 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
string_length = (glong) _tmp1_;
-#line 1330 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1330 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp2_ = start;
-#line 1330 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1330 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
if (_tmp2_ < ((glong) 0)) {
-#line 2068 "ui.c"
+#line 2069 "ui.c"
glong _tmp3_ = 0L;
glong _tmp4_ = 0L;
-#line 1331 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1331 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp3_ = string_length;
-#line 1331 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1331 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp4_ = start;
-#line 1331 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1331 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
start = _tmp3_ + _tmp4_;
-#line 2077 "ui.c"
+#line 2078 "ui.c"
}
-#line 1333 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1333 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp5_ = end;
-#line 1333 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1333 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
if (_tmp5_ < ((glong) 0)) {
-#line 2083 "ui.c"
+#line 2084 "ui.c"
glong _tmp6_ = 0L;
glong _tmp7_ = 0L;
-#line 1334 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1334 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp6_ = string_length;
-#line 1334 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1334 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp7_ = end;
-#line 1334 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1334 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
end = _tmp6_ + _tmp7_;
-#line 2092 "ui.c"
+#line 2093 "ui.c"
}
-#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp9_ = start;
-#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
if (_tmp9_ >= ((glong) 0)) {
-#line 2098 "ui.c"
+#line 2099 "ui.c"
glong _tmp10_ = 0L;
glong _tmp11_ = 0L;
-#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp10_ = start;
-#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp11_ = string_length;
-#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp8_ = _tmp10_ <= _tmp11_;
-#line 2107 "ui.c"
+#line 2108 "ui.c"
} else {
-#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp8_ = FALSE;
-#line 2111 "ui.c"
+#line 2112 "ui.c"
}
-#line 1336 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
g_return_val_if_fail (_tmp8_, NULL);
-#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp13_ = end;
-#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
if (_tmp13_ >= ((glong) 0)) {
-#line 2119 "ui.c"
+#line 2120 "ui.c"
glong _tmp14_ = 0L;
glong _tmp15_ = 0L;
-#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp14_ = end;
-#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp15_ = string_length;
-#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp12_ = _tmp14_ <= _tmp15_;
-#line 2128 "ui.c"
+#line 2129 "ui.c"
} else {
-#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp12_ = FALSE;
-#line 2132 "ui.c"
+#line 2133 "ui.c"
}
-#line 1337 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
g_return_val_if_fail (_tmp12_, NULL);
-#line 1338 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1338 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp16_ = start;
-#line 1338 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1338 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp17_ = end;
-#line 1338 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1338 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
g_return_val_if_fail (_tmp16_ <= _tmp17_, NULL);
-#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1339 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp18_ = start;
-#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1339 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp19_ = end;
-#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1339 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp20_ = start;
-#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1339 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp21_ = g_strndup (((gchar*) self) + _tmp18_, (gsize) (_tmp19_ - _tmp20_));
-#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1339 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
result = _tmp21_;
-#line 1339 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1339 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
return result;
-#line 2154 "ui.c"
+#line 2155 "ui.c"
}
@@ -2191,7 +2192,7 @@ static void __lambda5_ (Block1Data* _data1_) {
i = _tmp2_;
#line 572 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp3_) {
-#line 2195 "ui.c"
+#line 2196 "ui.c"
GtkListStore* _tmp4_ = NULL;
GtkTreeIter _tmp5_ = {0};
#line 573 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -2200,7 +2201,7 @@ static void __lambda5_ (Block1Data* _data1_) {
_tmp5_ = i;
#line 573 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_tree_model_get ((GtkTreeModel*) _tmp4_, &_tmp5_, 1, &extension, -1, -1);
-#line 2204 "ui.c"
+#line 2205 "ui.c"
}
#line 575 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp6_ = self->priv->save_dialog;
@@ -2224,7 +2225,7 @@ static void __lambda5_ (Block1Data* _data1_) {
_tmp12_ = extension_index;
#line 580 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp12_ >= 0) {
-#line 2228 "ui.c"
+#line 2229 "ui.c"
const gchar* _tmp13_ = NULL;
gint _tmp14_ = 0;
gchar* _tmp15_ = NULL;
@@ -2238,7 +2239,7 @@ static void __lambda5_ (Block1Data* _data1_) {
_g_free0 (filename);
#line 581 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
filename = _tmp15_;
-#line 2242 "ui.c"
+#line 2243 "ui.c"
}
#line 582 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp16_ = filename;
@@ -2262,14 +2263,14 @@ static void __lambda5_ (Block1Data* _data1_) {
_g_free0 (path);
#line 568 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (extension);
-#line 2266 "ui.c"
+#line 2267 "ui.c"
}
static void ___lambda5__gtk_combo_box_changed (GtkComboBox* _sender, gpointer self) {
#line 568 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
__lambda5_ (self);
-#line 2273 "ui.c"
+#line 2274 "ui.c"
}
@@ -2382,18 +2383,18 @@ static gchar* user_interface_choose_file_location (UserInterface* self) {
if (_tmp3_ == NULL) {
#line 502 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = TRUE;
-#line 2386 "ui.c"
+#line 2387 "ui.c"
} else {
const gchar* _tmp4_ = NULL;
#line 502 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = directory;
#line 502 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = g_strcmp0 (_tmp4_, "") == 0;
-#line 2393 "ui.c"
+#line 2394 "ui.c"
}
#line 502 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp2_) {
-#line 2397 "ui.c"
+#line 2398 "ui.c"
const gchar* _tmp5_ = NULL;
gchar* _tmp6_ = NULL;
#line 503 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -2404,7 +2405,7 @@ static gchar* user_interface_choose_file_location (UserInterface* self) {
_g_free0 (directory);
#line 503 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
directory = _tmp6_;
-#line 2408 "ui.c"
+#line 2409 "ui.c"
}
#line 505 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp7_ = _ ("Save As...");
@@ -2630,7 +2631,7 @@ static gchar* user_interface_choose_file_location (UserInterface* self) {
_tmp71_ = response;
#line 590 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp71_ == ((gint) GTK_RESPONSE_ACCEPT)) {
-#line 2634 "ui.c"
+#line 2635 "ui.c"
gchar* extension = NULL;
gchar* _tmp72_ = NULL;
GtkTreeIter i = {0};
@@ -2663,7 +2664,7 @@ static gchar* user_interface_choose_file_location (UserInterface* self) {
i = _tmp74_;
#line 594 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp75_) {
-#line 2667 "ui.c"
+#line 2668 "ui.c"
GtkListStore* _tmp76_ = NULL;
GtkTreeIter _tmp77_ = {0};
#line 595 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -2672,7 +2673,7 @@ static gchar* user_interface_choose_file_location (UserInterface* self) {
_tmp77_ = i;
#line 595 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_tree_model_get ((GtkTreeModel*) _tmp76_, &_tmp77_, 1, &extension, -1, -1);
-#line 2676 "ui.c"
+#line 2677 "ui.c"
}
#line 597 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp78_ = self->priv->save_dialog;
@@ -2696,7 +2697,7 @@ static gchar* user_interface_choose_file_location (UserInterface* self) {
_tmp84_ = extension_index;
#line 601 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp84_ < 0) {
-#line 2700 "ui.c"
+#line 2701 "ui.c"
const gchar* _tmp85_ = NULL;
const gchar* _tmp86_ = NULL;
gchar* _tmp87_ = NULL;
@@ -2710,7 +2711,7 @@ static gchar* user_interface_choose_file_location (UserInterface* self) {
_g_free0 (path);
#line 602 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
path = _tmp87_;
-#line 2714 "ui.c"
+#line 2715 "ui.c"
}
#line 604 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp88_ = path;
@@ -2732,7 +2733,7 @@ static gchar* user_interface_choose_file_location (UserInterface* self) {
_g_free0 (path);
#line 590 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (extension);
-#line 2736 "ui.c"
+#line 2737 "ui.c"
}
#line 607 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp92_ = self->priv->settings;
@@ -2772,7 +2773,7 @@ static gchar* user_interface_choose_file_location (UserInterface* self) {
_data1_ = NULL;
#line 612 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 2776 "ui.c"
+#line 2777 "ui.c"
}
@@ -2803,21 +2804,21 @@ static gboolean user_interface_save_document (UserInterface* self, gboolean forc
_tmp1_ = self->priv->book_uri;
#line 618 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp1_ != NULL) {
-#line 2807 "ui.c"
+#line 2808 "ui.c"
gboolean _tmp2_ = FALSE;
#line 618 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = force_choose_location;
#line 618 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = !_tmp2_;
-#line 2813 "ui.c"
+#line 2814 "ui.c"
} else {
#line 618 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = FALSE;
-#line 2817 "ui.c"
+#line 2818 "ui.c"
}
#line 618 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp0_) {
-#line 2821 "ui.c"
+#line 2822 "ui.c"
const gchar* _tmp3_ = NULL;
gchar* _tmp4_ = NULL;
#line 619 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -2828,7 +2829,7 @@ static gboolean user_interface_save_document (UserInterface* self, gboolean forc
_g_free0 (uri);
#line 619 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
uri = _tmp4_;
-#line 2832 "ui.c"
+#line 2833 "ui.c"
} else {
gchar* _tmp5_ = NULL;
#line 621 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -2837,7 +2838,7 @@ static gboolean user_interface_save_document (UserInterface* self, gboolean forc
_g_free0 (uri);
#line 621 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
uri = _tmp5_;
-#line 2841 "ui.c"
+#line 2842 "ui.c"
}
#line 622 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp6_ = uri;
@@ -2849,7 +2850,7 @@ static gboolean user_interface_save_document (UserInterface* self, gboolean forc
_g_free0 (uri);
#line 623 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 2853 "ui.c"
+#line 2854 "ui.c"
}
#line 625 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp7_ = uri;
@@ -2877,7 +2878,7 @@ static gboolean user_interface_save_document (UserInterface* self, gboolean forc
_tmp14_ = g_str_has_suffix (_tmp13_, ".pdf");
#line 631 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp14_) {
-#line 2881 "ui.c"
+#line 2882 "ui.c"
gchar* _tmp15_ = NULL;
#line 632 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp15_ = g_strdup ("pdf");
@@ -2885,7 +2886,7 @@ static gboolean user_interface_save_document (UserInterface* self, gboolean forc
_g_free0 (format);
#line 632 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
format = _tmp15_;
-#line 2889 "ui.c"
+#line 2890 "ui.c"
} else {
const gchar* _tmp16_ = NULL;
gboolean _tmp17_ = FALSE;
@@ -2895,7 +2896,7 @@ static gboolean user_interface_save_document (UserInterface* self, gboolean forc
_tmp17_ = g_str_has_suffix (_tmp16_, ".ps");
#line 633 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp17_) {
-#line 2899 "ui.c"
+#line 2900 "ui.c"
gchar* _tmp18_ = NULL;
#line 634 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp18_ = g_strdup ("ps");
@@ -2903,7 +2904,7 @@ static gboolean user_interface_save_document (UserInterface* self, gboolean forc
_g_free0 (format);
#line 634 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
format = _tmp18_;
-#line 2907 "ui.c"
+#line 2908 "ui.c"
} else {
const gchar* _tmp19_ = NULL;
gboolean _tmp20_ = FALSE;
@@ -2913,7 +2914,7 @@ static gboolean user_interface_save_document (UserInterface* self, gboolean forc
_tmp20_ = g_str_has_suffix (_tmp19_, ".png");
#line 635 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp20_) {
-#line 2917 "ui.c"
+#line 2918 "ui.c"
gchar* _tmp21_ = NULL;
#line 636 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp21_ = g_strdup ("png");
@@ -2921,7 +2922,7 @@ static gboolean user_interface_save_document (UserInterface* self, gboolean forc
_g_free0 (format);
#line 636 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
format = _tmp21_;
-#line 2925 "ui.c"
+#line 2926 "ui.c"
} else {
gboolean _tmp22_ = FALSE;
const gchar* _tmp23_ = NULL;
@@ -2934,7 +2935,7 @@ static gboolean user_interface_save_document (UserInterface* self, gboolean forc
if (_tmp24_) {
#line 637 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp22_ = TRUE;
-#line 2938 "ui.c"
+#line 2939 "ui.c"
} else {
const gchar* _tmp25_ = NULL;
gboolean _tmp26_ = FALSE;
@@ -2944,11 +2945,11 @@ static gboolean user_interface_save_document (UserInterface* self, gboolean forc
_tmp26_ = g_str_has_suffix (_tmp25_, ".tiff");
#line 637 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp22_ = _tmp26_;
-#line 2948 "ui.c"
+#line 2949 "ui.c"
}
#line 637 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp22_) {
-#line 2952 "ui.c"
+#line 2953 "ui.c"
gchar* _tmp27_ = NULL;
#line 638 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp27_ = g_strdup ("tiff");
@@ -2956,14 +2957,14 @@ static gboolean user_interface_save_document (UserInterface* self, gboolean forc
_g_free0 (format);
#line 638 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
format = _tmp27_;
-#line 2960 "ui.c"
+#line 2961 "ui.c"
}
}
}
}
#line 640 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_show_progress_dialog (self);
-#line 2967 "ui.c"
+#line 2968 "ui.c"
{
Book* _tmp28_ = NULL;
const gchar* _tmp29_ = NULL;
@@ -2984,7 +2985,7 @@ static gboolean user_interface_save_document (UserInterface* self, gboolean forc
book_save (_tmp28_, _tmp29_, _tmp31_, _tmp32_, &_inner_error_);
#line 643 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2988 "ui.c"
+#line 2989 "ui.c"
goto __catch17_g_error;
}
}
@@ -3031,7 +3032,7 @@ static gboolean user_interface_save_document (UserInterface* self, gboolean forc
_g_free0 (uri);
#line 653 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 3035 "ui.c"
+#line 3036 "ui.c"
}
__finally17:
#line 641 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -3050,7 +3051,7 @@ static gboolean user_interface_save_document (UserInterface* self, gboolean forc
g_clear_error (&_inner_error_);
#line 641 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return FALSE;
-#line 3054 "ui.c"
+#line 3055 "ui.c"
}
#line 656 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp38_ = uri;
@@ -3076,7 +3077,7 @@ static gboolean user_interface_save_document (UserInterface* self, gboolean forc
_g_free0 (uri);
#line 658 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 3080 "ui.c"
+#line 3081 "ui.c"
}
@@ -3119,7 +3120,7 @@ static gboolean user_interface_prompt_to_save (UserInterface* self, const gchar*
result = TRUE;
#line 664 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 3123 "ui.c"
+#line 3124 "ui.c"
}
#line 666 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = title;
@@ -3169,7 +3170,7 @@ static gboolean user_interface_prompt_to_save (UserInterface* self, const gchar*
switch (_tmp16_) {
#line 681 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
case GTK_RESPONSE_YES:
-#line 3173 "ui.c"
+#line 3174 "ui.c"
{
gboolean _tmp17_ = FALSE;
#line 684 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -3182,7 +3183,7 @@ static gboolean user_interface_prompt_to_save (UserInterface* self, const gchar*
_g_object_unref0 (dialog);
#line 685 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 3186 "ui.c"
+#line 3187 "ui.c"
} else {
#line 687 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = FALSE;
@@ -3190,12 +3191,12 @@ static gboolean user_interface_prompt_to_save (UserInterface* self, const gchar*
_g_object_unref0 (dialog);
#line 687 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 3194 "ui.c"
+#line 3195 "ui.c"
}
}
#line 681 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
case GTK_RESPONSE_NO:
-#line 3199 "ui.c"
+#line 3200 "ui.c"
{
#line 689 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = TRUE;
@@ -3203,7 +3204,7 @@ static gboolean user_interface_prompt_to_save (UserInterface* self, const gchar*
_g_object_unref0 (dialog);
#line 689 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 3207 "ui.c"
+#line 3208 "ui.c"
}
default:
{
@@ -3213,12 +3214,12 @@ static gboolean user_interface_prompt_to_save (UserInterface* self, const gchar*
_g_object_unref0 (dialog);
#line 691 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 3217 "ui.c"
+#line 3218 "ui.c"
}
}
#line 661 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (dialog);
-#line 3222 "ui.c"
+#line 3223 "ui.c"
}
@@ -3251,7 +3252,7 @@ static void user_interface_clear_document (UserInterface* self) {
_tmp3_ = self->priv->copy_to_clipboard_menuitem;
#line 702 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_set_sensitive ((GtkWidget*) _tmp3_, FALSE);
-#line 3255 "ui.c"
+#line 3256 "ui.c"
}
@@ -3273,7 +3274,7 @@ static void user_interface_new_document (UserInterface* self) {
if (!_tmp2_) {
#line 711 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
-#line 3277 "ui.c"
+#line 3278 "ui.c"
}
#line 713 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = user_interface_get_scanning (self);
@@ -3283,11 +3284,11 @@ static void user_interface_new_document (UserInterface* self) {
if (_tmp4_) {
#line 714 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_signal_emit_by_name (self, "stop-scan");
-#line 3287 "ui.c"
+#line 3288 "ui.c"
}
#line 715 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_clear_document (self);
-#line 3291 "ui.c"
+#line 3292 "ui.c"
}
@@ -3298,14 +3299,14 @@ static void user_interface_new_button_clicked_cb (UserInterface* self, GtkWidget
g_return_if_fail (widget != NULL);
#line 721 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_new_document (self);
-#line 3302 "ui.c"
+#line 3303 "ui.c"
}
static void _user_interface_new_button_clicked_cb_gtk_button_clicked (GtkButton* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_new_button_clicked_cb ((UserInterface*) self, _sender);
-#line 3309 "ui.c"
+#line 3310 "ui.c"
}
@@ -3314,7 +3315,7 @@ void user_interface_new_document_activate_cb (UserInterface* self) {
g_return_if_fail (self != NULL);
#line 726 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_new_document (self);
-#line 3318 "ui.c"
+#line 3319 "ui.c"
}
@@ -3339,7 +3340,7 @@ static void user_interface_set_document_hint (UserInterface* self, const gchar*
_tmp2_ = document_hint;
#line 733 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (g_strcmp0 (_tmp2_, "text") == 0) {
-#line 3343 "ui.c"
+#line 3344 "ui.c"
GtkRadioMenuItem* _tmp3_ = NULL;
GtkRadioMenuItem* _tmp4_ = NULL;
GtkRadioMenuItem* _tmp5_ = NULL;
@@ -3355,14 +3356,14 @@ static void user_interface_set_document_hint (UserInterface* self, const gchar*
_tmp5_ = self->priv->text_menuitem;
#line 737 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_check_menu_item_set_active ((GtkCheckMenuItem*) _tmp5_, TRUE);
-#line 3359 "ui.c"
+#line 3360 "ui.c"
} else {
const gchar* _tmp6_ = NULL;
#line 739 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp6_ = document_hint;
#line 739 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (g_strcmp0 (_tmp6_, "photo") == 0) {
-#line 3366 "ui.c"
+#line 3367 "ui.c"
GtkRadioMenuItem* _tmp7_ = NULL;
GtkRadioMenuItem* _tmp8_ = NULL;
GtkRadioMenuItem* _tmp9_ = NULL;
@@ -3378,14 +3379,14 @@ static void user_interface_set_document_hint (UserInterface* self, const gchar*
_tmp9_ = self->priv->photo_menuitem;
#line 743 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_check_menu_item_set_active ((GtkCheckMenuItem*) _tmp9_, TRUE);
-#line 3382 "ui.c"
+#line 3383 "ui.c"
}
}
#line 746 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp10_ = save;
#line 746 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp10_) {
-#line 3389 "ui.c"
+#line 3390 "ui.c"
GSettings* _tmp11_ = NULL;
const gchar* _tmp12_ = NULL;
#line 747 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -3394,7 +3395,7 @@ static void user_interface_set_document_hint (UserInterface* self, const gchar*
_tmp12_ = document_hint;
#line 747 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_settings_set_string (_tmp11_, "document-type", _tmp12_);
-#line 3398 "ui.c"
+#line 3399 "ui.c"
}
}
@@ -3417,7 +3418,7 @@ static void user_interface_text_menuitem_toggled_cb (UserInterface* self, GtkChe
if (_tmp2_) {
#line 754 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_set_document_hint (self, "text", TRUE);
-#line 3421 "ui.c"
+#line 3422 "ui.c"
}
}
@@ -3425,7 +3426,7 @@ static void user_interface_text_menuitem_toggled_cb (UserInterface* self, GtkChe
static void _user_interface_text_menuitem_toggled_cb_gtk_check_menu_item_toggled (GtkCheckMenuItem* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_text_menuitem_toggled_cb ((UserInterface*) self, _sender);
-#line 3429 "ui.c"
+#line 3430 "ui.c"
}
@@ -3447,7 +3448,7 @@ static void user_interface_photo_menuitem_toggled_cb (UserInterface* self, GtkCh
if (_tmp2_) {
#line 761 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_set_document_hint (self, "photo", TRUE);
-#line 3451 "ui.c"
+#line 3452 "ui.c"
}
}
@@ -3455,7 +3456,7 @@ static void user_interface_photo_menuitem_toggled_cb (UserInterface* self, GtkCh
static void _user_interface_photo_menuitem_toggled_cb_gtk_check_menu_item_toggled (GtkCheckMenuItem* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_photo_menuitem_toggled_cb ((UserInterface*) self, _sender);
-#line 3459 "ui.c"
+#line 3460 "ui.c"
}
@@ -3474,14 +3475,14 @@ static void user_interface_set_page_side (UserInterface* self, ScanType page_sid
iter = _tmp1_;
#line 768 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp2_) {
-#line 3478 "ui.c"
+#line 3479 "ui.c"
{
gboolean _tmp3_ = FALSE;
#line 770 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = TRUE;
#line 770 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
while (TRUE) {
-#line 3485 "ui.c"
+#line 3486 "ui.c"
gint s = 0;
GtkListStore* _tmp6_ = NULL;
GtkTreeIter _tmp7_ = {0};
@@ -3489,7 +3490,7 @@ static void user_interface_set_page_side (UserInterface* self, ScanType page_sid
ScanType _tmp9_ = 0;
#line 770 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (!_tmp3_) {
-#line 3493 "ui.c"
+#line 3494 "ui.c"
GtkListStore* _tmp4_ = NULL;
gboolean _tmp5_ = FALSE;
#line 779 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -3500,7 +3501,7 @@ static void user_interface_set_page_side (UserInterface* self, ScanType page_sid
if (!_tmp5_) {
#line 779 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 3504 "ui.c"
+#line 3505 "ui.c"
}
}
#line 770 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -3517,7 +3518,7 @@ static void user_interface_set_page_side (UserInterface* self, ScanType page_sid
_tmp9_ = page_side;
#line 774 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp8_ == ((gint) _tmp9_)) {
-#line 3521 "ui.c"
+#line 3522 "ui.c"
GtkComboBox* _tmp10_ = NULL;
GtkTreeIter _tmp11_ = {0};
#line 776 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -3528,7 +3529,7 @@ static void user_interface_set_page_side (UserInterface* self, ScanType page_sid
gtk_combo_box_set_active_iter (_tmp10_, &_tmp11_);
#line 777 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
-#line 3532 "ui.c"
+#line 3533 "ui.c"
}
}
}
@@ -3543,7 +3544,7 @@ static void user_interface_set_paper_size (UserInterface* self, gint width, gint
gboolean _tmp18_ = FALSE;
#line 783 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
-#line 3547 "ui.c"
+#line 3548 "ui.c"
{
GtkListStore* _tmp0_ = NULL;
GtkTreeIter _tmp1_ = {0};
@@ -3561,7 +3562,7 @@ static void user_interface_set_paper_size (UserInterface* self, gint width, gint
_tmp3_ = TRUE;
#line 788 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
while (TRUE) {
-#line 3565 "ui.c"
+#line 3566 "ui.c"
gboolean _tmp6_ = FALSE;
gint w = 0;
gint h = 0;
@@ -3572,7 +3573,7 @@ static void user_interface_set_paper_size (UserInterface* self, gint width, gint
gint _tmp11_ = 0;
#line 788 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (!_tmp3_) {
-#line 3576 "ui.c"
+#line 3577 "ui.c"
GtkListStore* _tmp4_ = NULL;
gboolean _tmp5_ = FALSE;
#line 790 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -3581,7 +3582,7 @@ static void user_interface_set_paper_size (UserInterface* self, gint width, gint
_tmp5_ = gtk_tree_model_iter_next ((GtkTreeModel*) _tmp4_, &iter);
#line 790 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
have_iter = _tmp5_;
-#line 3585 "ui.c"
+#line 3586 "ui.c"
}
#line 788 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = FALSE;
@@ -3591,7 +3592,7 @@ static void user_interface_set_paper_size (UserInterface* self, gint width, gint
if (!_tmp6_) {
#line 789 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 3595 "ui.c"
+#line 3596 "ui.c"
}
#line 793 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp7_ = self->priv->paper_size_model;
@@ -3605,7 +3606,7 @@ static void user_interface_set_paper_size (UserInterface* self, gint width, gint
_tmp11_ = width;
#line 794 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp10_ == _tmp11_) {
-#line 3609 "ui.c"
+#line 3610 "ui.c"
gint _tmp12_ = 0;
gint _tmp13_ = 0;
#line 794 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -3614,17 +3615,17 @@ static void user_interface_set_paper_size (UserInterface* self, gint width, gint
_tmp13_ = height;
#line 794 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp9_ = _tmp12_ == _tmp13_;
-#line 3618 "ui.c"
+#line 3619 "ui.c"
} else {
#line 794 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp9_ = FALSE;
-#line 3622 "ui.c"
+#line 3623 "ui.c"
}
#line 794 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp9_) {
#line 795 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 3628 "ui.c"
+#line 3629 "ui.c"
}
}
}
@@ -3632,7 +3633,7 @@ static void user_interface_set_paper_size (UserInterface* self, gint width, gint
_tmp14_ = have_iter;
#line 798 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (!_tmp14_) {
-#line 3636 "ui.c"
+#line 3637 "ui.c"
GtkListStore* _tmp15_ = NULL;
GtkTreeIter _tmp16_ = {0};
gboolean _tmp17_ = FALSE;
@@ -3644,13 +3645,13 @@ static void user_interface_set_paper_size (UserInterface* self, gint width, gint
iter = _tmp16_;
#line 799 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
have_iter = _tmp17_;
-#line 3648 "ui.c"
+#line 3649 "ui.c"
}
#line 800 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp18_ = have_iter;
#line 800 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp18_) {
-#line 3654 "ui.c"
+#line 3655 "ui.c"
GtkComboBox* _tmp19_ = NULL;
GtkTreeIter _tmp20_ = {0};
#line 801 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -3659,7 +3660,7 @@ static void user_interface_set_paper_size (UserInterface* self, gint width, gint
_tmp20_ = iter;
#line 801 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_combo_box_set_active_iter (_tmp19_, &_tmp20_);
-#line 3663 "ui.c"
+#line 3664 "ui.c"
}
}
@@ -3683,7 +3684,7 @@ static gint user_interface_get_text_dpi (UserInterface* self) {
iter = _tmp1_;
#line 809 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp2_) {
-#line 3687 "ui.c"
+#line 3688 "ui.c"
GtkListStore* _tmp3_ = NULL;
GtkTreeIter _tmp4_ = {0};
#line 810 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -3692,13 +3693,13 @@ static gint user_interface_get_text_dpi (UserInterface* self) {
_tmp4_ = iter;
#line 810 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_tree_model_get ((GtkTreeModel*) _tmp3_, &_tmp4_, 0, &dpi, -1, -1);
-#line 3696 "ui.c"
+#line 3697 "ui.c"
}
#line 812 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = dpi;
#line 812 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 3702 "ui.c"
+#line 3703 "ui.c"
}
@@ -3721,7 +3722,7 @@ static gint user_interface_get_photo_dpi (UserInterface* self) {
iter = _tmp1_;
#line 820 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp2_) {
-#line 3725 "ui.c"
+#line 3726 "ui.c"
GtkListStore* _tmp3_ = NULL;
GtkTreeIter _tmp4_ = {0};
#line 821 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -3730,13 +3731,13 @@ static gint user_interface_get_photo_dpi (UserInterface* self) {
_tmp4_ = iter;
#line 821 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_tree_model_get ((GtkTreeModel*) _tmp3_, &_tmp4_, 0, &dpi, -1, -1);
-#line 3734 "ui.c"
+#line 3735 "ui.c"
}
#line 823 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = dpi;
#line 823 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 3740 "ui.c"
+#line 3741 "ui.c"
}
@@ -3760,7 +3761,7 @@ static ScanType user_interface_get_page_side (UserInterface* self) {
iter = _tmp1_;
#line 831 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp2_) {
-#line 3764 "ui.c"
+#line 3765 "ui.c"
GtkListStore* _tmp3_ = NULL;
GtkTreeIter _tmp4_ = {0};
#line 832 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -3769,7 +3770,7 @@ static ScanType user_interface_get_page_side (UserInterface* self) {
_tmp4_ = iter;
#line 832 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_tree_model_get ((GtkTreeModel*) _tmp3_, &_tmp4_, 0, &page_side, -1, -1);
-#line 3773 "ui.c"
+#line 3774 "ui.c"
}
#line 834 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_ = page_side;
@@ -3777,7 +3778,7 @@ static ScanType user_interface_get_page_side (UserInterface* self) {
result = (ScanType) _tmp5_;
#line 834 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 3781 "ui.c"
+#line 3782 "ui.c"
}
@@ -3806,7 +3807,7 @@ static gboolean user_interface_get_paper_size (UserInterface* self, gint* width,
iter = _tmp2_;
#line 842 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp3_) {
-#line 3810 "ui.c"
+#line 3811 "ui.c"
GtkListStore* _tmp4_ = NULL;
GtkTreeIter _tmp5_ = {0};
#line 844 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -3821,17 +3822,17 @@ static gboolean user_interface_get_paper_size (UserInterface* self, gint* width,
if (width) {
#line 845 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
*width = _vala_width;
-#line 3825 "ui.c"
+#line 3826 "ui.c"
}
#line 845 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (height) {
#line 845 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
*height = _vala_height;
-#line 3831 "ui.c"
+#line 3832 "ui.c"
}
#line 845 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 3835 "ui.c"
+#line 3836 "ui.c"
}
#line 848 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = FALSE;
@@ -3839,17 +3840,17 @@ static gboolean user_interface_get_paper_size (UserInterface* self, gint* width,
if (width) {
#line 848 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
*width = _vala_width;
-#line 3843 "ui.c"
+#line 3844 "ui.c"
}
#line 848 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (height) {
#line 848 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
*height = _vala_height;
-#line 3849 "ui.c"
+#line 3850 "ui.c"
}
#line 848 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 3853 "ui.c"
+#line 3854 "ui.c"
}
@@ -3878,7 +3879,7 @@ static ScanOptions* user_interface_make_scan_options (UserInterface* self) {
_tmp1_ = self->priv->document_hint;
#line 854 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (g_strcmp0 (_tmp1_, "text") == 0) {
-#line 3882 "ui.c"
+#line 3883 "ui.c"
ScanOptions* _tmp2_ = NULL;
ScanOptions* _tmp3_ = NULL;
gint _tmp4_ = 0;
@@ -3897,7 +3898,7 @@ static ScanOptions* user_interface_make_scan_options (UserInterface* self) {
_tmp5_ = options;
#line 858 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_->depth = 2;
-#line 3901 "ui.c"
+#line 3902 "ui.c"
} else {
ScanOptions* _tmp6_ = NULL;
ScanOptions* _tmp7_ = NULL;
@@ -3917,7 +3918,7 @@ static ScanOptions* user_interface_make_scan_options (UserInterface* self) {
_tmp9_ = options;
#line 864 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp9_->depth = 8;
-#line 3921 "ui.c"
+#line 3922 "ui.c"
}
#line 866 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp10_ = options;
@@ -3949,7 +3950,7 @@ static ScanOptions* user_interface_make_scan_options (UserInterface* self) {
result = options;
#line 870 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 3953 "ui.c"
+#line 3954 "ui.c"
}
@@ -3981,14 +3982,14 @@ static void user_interface_scan_button_clicked_cb (UserInterface* self, GtkWidge
_g_free0 (_tmp3_);
#line 874 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_scan_options_unref0 (options);
-#line 3985 "ui.c"
+#line 3986 "ui.c"
}
static void _user_interface_scan_button_clicked_cb_gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_scan_button_clicked_cb ((UserInterface*) self, _sender);
-#line 3992 "ui.c"
+#line 3993 "ui.c"
}
@@ -3999,14 +4000,14 @@ static void user_interface_stop_scan_button_clicked_cb (UserInterface* self, Gtk
g_return_if_fail (widget != NULL);
#line 884 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_signal_emit_by_name (self, "stop-scan");
-#line 4003 "ui.c"
+#line 4004 "ui.c"
}
static void _user_interface_stop_scan_button_clicked_cb_gtk_button_clicked (GtkButton* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_stop_scan_button_clicked_cb ((UserInterface*) self, _sender);
-#line 4010 "ui.c"
+#line 4011 "ui.c"
}
@@ -4025,7 +4026,7 @@ static void user_interface_continuous_scan_button_clicked_cb (UserInterface* sel
if (_tmp1_) {
#line 891 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_signal_emit_by_name (self, "stop-scan");
-#line 4029 "ui.c"
+#line 4030 "ui.c"
} else {
ScanOptions* options = NULL;
ScanOptions* _tmp2_ = NULL;
@@ -4059,7 +4060,7 @@ static void user_interface_continuous_scan_button_clicked_cb (UserInterface* sel
_g_free0 (_tmp7_);
#line 890 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_scan_options_unref0 (options);
-#line 4063 "ui.c"
+#line 4064 "ui.c"
}
}
@@ -4067,7 +4068,7 @@ static void user_interface_continuous_scan_button_clicked_cb (UserInterface* sel
static void _user_interface_continuous_scan_button_clicked_cb_gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_continuous_scan_button_clicked_cb ((UserInterface*) self, _sender);
-#line 4071 "ui.c"
+#line 4072 "ui.c"
}
@@ -4081,14 +4082,14 @@ static void user_interface_preferences_button_clicked_cb (UserInterface* self, G
_tmp0_ = self->priv->preferences_dialog;
#line 903 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_window_present ((GtkWindow*) _tmp0_);
-#line 4085 "ui.c"
+#line 4086 "ui.c"
}
static void _user_interface_preferences_button_clicked_cb_gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_preferences_button_clicked_cb ((UserInterface*) self, _sender);
-#line 4092 "ui.c"
+#line 4093 "ui.c"
}
@@ -4100,7 +4101,7 @@ void user_interface_preferences_activate_cb (UserInterface* self) {
_tmp0_ = self->priv->preferences_dialog;
#line 908 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_window_present ((GtkWindow*) _tmp0_);
-#line 4104 "ui.c"
+#line 4105 "ui.c"
}
@@ -4116,7 +4117,7 @@ static gboolean user_interface_preferences_dialog_delete_event_cb (UserInterface
result = TRUE;
#line 914 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 4120 "ui.c"
+#line 4121 "ui.c"
}
@@ -4125,7 +4126,7 @@ static gboolean _user_interface_preferences_dialog_delete_event_cb_gtk_widget_de
result = user_interface_preferences_dialog_delete_event_cb ((UserInterface*) self, _sender, event);
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 4129 "ui.c"
+#line 4130 "ui.c"
}
@@ -4139,21 +4140,21 @@ static void user_interface_preferences_dialog_response_cb (UserInterface* self,
_tmp0_ = self->priv->preferences_dialog;
#line 920 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_set_visible ((GtkWidget*) _tmp0_, FALSE);
-#line 4143 "ui.c"
+#line 4144 "ui.c"
}
static void _user_interface_preferences_dialog_response_cb_gtk_dialog_response (GtkDialog* _sender, gint response_id, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_preferences_dialog_response_cb ((UserInterface*) self, _sender, response_id);
-#line 4150 "ui.c"
+#line 4151 "ui.c"
}
static gpointer _page_ref0 (gpointer self) {
#line 925 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return self ? page_ref (self) : NULL;
-#line 4157 "ui.c"
+#line 4158 "ui.c"
}
@@ -4180,7 +4181,7 @@ static void user_interface_update_page_menu (UserInterface* self) {
_tmp4_ = page;
#line 926 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp4_ == NULL) {
-#line 4184 "ui.c"
+#line 4185 "ui.c"
GtkMenuItem* _tmp5_ = NULL;
GtkMenuItem* _tmp6_ = NULL;
#line 928 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -4191,7 +4192,7 @@ static void user_interface_update_page_menu (UserInterface* self) {
_tmp6_ = self->priv->page_move_right_menuitem;
#line 929 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_set_sensitive ((GtkWidget*) _tmp6_, FALSE);
-#line 4195 "ui.c"
+#line 4196 "ui.c"
} else {
guint index = 0U;
Book* _tmp7_ = NULL;
@@ -4230,11 +4231,11 @@ static void user_interface_update_page_menu (UserInterface* self) {
_tmp16_ = _tmp15_;
#line 935 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_set_sensitive ((GtkWidget*) _tmp12_, _tmp13_ < (_tmp16_ - 1));
-#line 4234 "ui.c"
+#line 4235 "ui.c"
}
#line 923 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_page_unref0 (page);
-#line 4238 "ui.c"
+#line 4239 "ui.c"
}
@@ -4265,7 +4266,7 @@ static void user_interface_page_selected_cb (UserInterface* self, BookView* view
if (_tmp0_ == NULL) {
#line 942 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
-#line 4269 "ui.c"
+#line 4270 "ui.c"
}
#line 944 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->updating_page_menu = TRUE;
@@ -4285,7 +4286,7 @@ static void user_interface_page_selected_cb (UserInterface* self, BookView* view
_tmp5_ = _tmp4_;
#line 949 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp5_) {
-#line 4289 "ui.c"
+#line 4290 "ui.c"
gchar* crop_name = NULL;
Page* _tmp6_ = NULL;
const gchar* _tmp7_ = NULL;
@@ -4306,13 +4307,13 @@ static void user_interface_page_selected_cb (UserInterface* self, BookView* view
_tmp10_ = crop_name;
#line 952 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp10_ != NULL) {
-#line 4310 "ui.c"
+#line 4311 "ui.c"
const gchar* _tmp11_ = NULL;
#line 954 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp11_ = crop_name;
#line 954 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (g_strcmp0 (_tmp11_, "A4") == 0) {
-#line 4316 "ui.c"
+#line 4317 "ui.c"
GtkRadioMenuItem* _tmp12_ = NULL;
GtkRadioMenuItem* _tmp13_ = NULL;
#line 955 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -4323,14 +4324,14 @@ static void user_interface_page_selected_cb (UserInterface* self, BookView* view
_g_object_unref0 (menuitem);
#line 955 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
menuitem = _tmp13_;
-#line 4327 "ui.c"
+#line 4328 "ui.c"
} else {
const gchar* _tmp14_ = NULL;
#line 956 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp14_ = crop_name;
#line 956 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (g_strcmp0 (_tmp14_, "A5") == 0) {
-#line 4334 "ui.c"
+#line 4335 "ui.c"
GtkRadioMenuItem* _tmp15_ = NULL;
GtkRadioMenuItem* _tmp16_ = NULL;
#line 957 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -4341,14 +4342,14 @@ static void user_interface_page_selected_cb (UserInterface* self, BookView* view
_g_object_unref0 (menuitem);
#line 957 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
menuitem = _tmp16_;
-#line 4345 "ui.c"
+#line 4346 "ui.c"
} else {
const gchar* _tmp17_ = NULL;
#line 958 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp17_ = crop_name;
#line 958 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (g_strcmp0 (_tmp17_, "A6") == 0) {
-#line 4352 "ui.c"
+#line 4353 "ui.c"
GtkRadioMenuItem* _tmp18_ = NULL;
GtkRadioMenuItem* _tmp19_ = NULL;
#line 959 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -4359,14 +4360,14 @@ static void user_interface_page_selected_cb (UserInterface* self, BookView* view
_g_object_unref0 (menuitem);
#line 959 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
menuitem = _tmp19_;
-#line 4363 "ui.c"
+#line 4364 "ui.c"
} else {
const gchar* _tmp20_ = NULL;
#line 960 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp20_ = crop_name;
#line 960 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (g_strcmp0 (_tmp20_, "letter") == 0) {
-#line 4370 "ui.c"
+#line 4371 "ui.c"
GtkRadioMenuItem* _tmp21_ = NULL;
GtkRadioMenuItem* _tmp22_ = NULL;
#line 961 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -4377,14 +4378,14 @@ static void user_interface_page_selected_cb (UserInterface* self, BookView* view
_g_object_unref0 (menuitem);
#line 961 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
menuitem = _tmp22_;
-#line 4381 "ui.c"
+#line 4382 "ui.c"
} else {
const gchar* _tmp23_ = NULL;
#line 962 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp23_ = crop_name;
#line 962 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (g_strcmp0 (_tmp23_, "legal") == 0) {
-#line 4388 "ui.c"
+#line 4389 "ui.c"
GtkRadioMenuItem* _tmp24_ = NULL;
GtkRadioMenuItem* _tmp25_ = NULL;
#line 963 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -4395,14 +4396,14 @@ static void user_interface_page_selected_cb (UserInterface* self, BookView* view
_g_object_unref0 (menuitem);
#line 963 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
menuitem = _tmp25_;
-#line 4399 "ui.c"
+#line 4400 "ui.c"
} else {
const gchar* _tmp26_ = NULL;
#line 964 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp26_ = crop_name;
#line 964 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (g_strcmp0 (_tmp26_, "4x6") == 0) {
-#line 4406 "ui.c"
+#line 4407 "ui.c"
GtkRadioMenuItem* _tmp27_ = NULL;
GtkRadioMenuItem* _tmp28_ = NULL;
#line 965 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -4413,7 +4414,7 @@ static void user_interface_page_selected_cb (UserInterface* self, BookView* view
_g_object_unref0 (menuitem);
#line 965 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
menuitem = _tmp28_;
-#line 4417 "ui.c"
+#line 4418 "ui.c"
}
}
}
@@ -4431,11 +4432,11 @@ static void user_interface_page_selected_cb (UserInterface* self, BookView* view
_g_object_unref0 (menuitem);
#line 968 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
menuitem = _tmp30_;
-#line 4435 "ui.c"
+#line 4436 "ui.c"
}
#line 949 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (crop_name);
-#line 4439 "ui.c"
+#line 4440 "ui.c"
}
#line 971 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp31_ = menuitem;
@@ -4465,7 +4466,7 @@ static void user_interface_page_selected_cb (UserInterface* self, BookView* view
self->priv->updating_page_menu = FALSE;
#line 939 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (menuitem);
-#line 4469 "ui.c"
+#line 4470 "ui.c"
}
@@ -4495,7 +4496,7 @@ static void user_interface_show_page_cb (UserInterface* self, BookView* view, Pa
_g_free0 (path);
#line 982 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
-#line 4499 "ui.c"
+#line 4500 "ui.c"
}
#line 983 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = path;
@@ -4503,7 +4504,7 @@ static void user_interface_show_page_cb (UserInterface* self, BookView* view, Pa
_tmp3_ = g_file_new_for_path (_tmp2_);
#line 983 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
file = _tmp3_;
-#line 4507 "ui.c"
+#line 4508 "ui.c"
{
Page* _tmp4_ = NULL;
gint _tmp5_ = 0;
@@ -4521,7 +4522,7 @@ static void user_interface_show_page_cb (UserInterface* self, BookView* view, Pa
page_save (_tmp4_, "tiff", _tmp6_, _tmp7_, &_inner_error_);
#line 987 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4525 "ui.c"
+#line 4526 "ui.c"
goto __catch18_g_error;
}
}
@@ -4552,7 +4553,7 @@ static void user_interface_show_page_cb (UserInterface* self, BookView* view, Pa
_g_free0 (path);
#line 994 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
-#line 4556 "ui.c"
+#line 4557 "ui.c"
}
__finally18:
#line 985 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -4567,7 +4568,7 @@ static void user_interface_show_page_cb (UserInterface* self, BookView* view, Pa
g_clear_error (&_inner_error_);
#line 985 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
-#line 4571 "ui.c"
+#line 4572 "ui.c"
}
{
GdkScreen* _tmp11_ = NULL;
@@ -4594,7 +4595,7 @@ static void user_interface_show_page_cb (UserInterface* self, BookView* view, Pa
_g_free0 (_tmp15_);
#line 999 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4598 "ui.c"
+#line 4599 "ui.c"
goto __catch19_g_error;
}
}
@@ -4619,7 +4620,7 @@ static void user_interface_show_page_cb (UserInterface* self, BookView* view, Pa
user_interface_show_error_dialog (self, _tmp17_, _tmp19_);
#line 997 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_error_free0 (e);
-#line 4623 "ui.c"
+#line 4624 "ui.c"
}
__finally19:
#line 997 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -4634,13 +4635,13 @@ static void user_interface_show_page_cb (UserInterface* self, BookView* view, Pa
g_clear_error (&_inner_error_);
#line 997 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
-#line 4638 "ui.c"
+#line 4639 "ui.c"
}
#line 978 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (file);
#line 978 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (path);
-#line 4644 "ui.c"
+#line 4645 "ui.c"
}
@@ -4657,7 +4658,7 @@ static void user_interface_show_page_menu_cb (UserInterface* self, BookView* vie
_tmp1_ = gtk_get_current_event_time ();
#line 1011 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_menu_popup (_tmp0_, NULL, NULL, NULL, NULL, (guint) 3, _tmp1_);
-#line 4661 "ui.c"
+#line 4662 "ui.c"
}
@@ -4679,7 +4680,7 @@ static void user_interface_rotate_left_button_clicked_cb (UserInterface* self, G
if (_tmp0_) {
#line 1018 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
-#line 4683 "ui.c"
+#line 4684 "ui.c"
}
#line 1019 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = self->priv->book_view;
@@ -4695,24 +4696,24 @@ static void user_interface_rotate_left_button_clicked_cb (UserInterface* self, G
_tmp5_ = page;
#line 1020 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp5_ != NULL) {
-#line 4699 "ui.c"
+#line 4700 "ui.c"
Page* _tmp6_ = NULL;
#line 1021 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp6_ = page;
#line 1021 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
page_rotate_left (_tmp6_);
-#line 4705 "ui.c"
+#line 4706 "ui.c"
}
#line 1015 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_page_unref0 (page);
-#line 4709 "ui.c"
+#line 4710 "ui.c"
}
static void _user_interface_rotate_left_button_clicked_cb_gtk_button_clicked (GtkButton* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_rotate_left_button_clicked_cb ((UserInterface*) self, _sender);
-#line 4716 "ui.c"
+#line 4717 "ui.c"
}
@@ -4734,7 +4735,7 @@ static void user_interface_rotate_right_button_clicked_cb (UserInterface* self,
if (_tmp0_) {
#line 1028 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
-#line 4738 "ui.c"
+#line 4739 "ui.c"
}
#line 1029 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = self->priv->book_view;
@@ -4750,24 +4751,24 @@ static void user_interface_rotate_right_button_clicked_cb (UserInterface* self,
_tmp5_ = page;
#line 1030 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp5_ != NULL) {
-#line 4754 "ui.c"
+#line 4755 "ui.c"
Page* _tmp6_ = NULL;
#line 1031 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp6_ = page;
#line 1031 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
page_rotate_right (_tmp6_);
-#line 4760 "ui.c"
+#line 4761 "ui.c"
}
#line 1025 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_page_unref0 (page);
-#line 4764 "ui.c"
+#line 4765 "ui.c"
}
static void _user_interface_rotate_right_button_clicked_cb_gtk_button_clicked (GtkButton* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_rotate_right_button_clicked_cb ((UserInterface*) self, _sender);
-#line 4771 "ui.c"
+#line 4772 "ui.c"
}
@@ -4796,7 +4797,7 @@ static void user_interface_set_crop (UserInterface* self, const gchar* crop_name
if (_tmp2_) {
#line 1039 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
-#line 4800 "ui.c"
+#line 4801 "ui.c"
}
#line 1041 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = self->priv->book_view;
@@ -4818,26 +4819,26 @@ static void user_interface_set_crop (UserInterface* self, const gchar* crop_name
_page_unref0 (page);
#line 1045 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
-#line 4822 "ui.c"
+#line 4823 "ui.c"
}
#line 1048 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp8_ = crop_name;
#line 1048 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp8_ == NULL) {
-#line 4828 "ui.c"
+#line 4829 "ui.c"
Page* _tmp9_ = NULL;
#line 1049 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp9_ = page;
#line 1049 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
page_set_no_crop (_tmp9_);
-#line 4834 "ui.c"
+#line 4835 "ui.c"
} else {
const gchar* _tmp10_ = NULL;
#line 1050 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp10_ = crop_name;
#line 1050 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (g_strcmp0 (_tmp10_, "custom") == 0) {
-#line 4841 "ui.c"
+#line 4842 "ui.c"
gint width = 0;
Page* _tmp11_ = NULL;
gint _tmp12_ = 0;
@@ -4902,7 +4903,7 @@ static void user_interface_set_crop (UserInterface* self, const gchar* crop_name
_tmp26_ = crop_height;
#line 1057 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
page_move_crop (_tmp22_, (_tmp23_ - _tmp24_) / 2, (_tmp25_ - _tmp26_) / 2);
-#line 4906 "ui.c"
+#line 4907 "ui.c"
} else {
Page* _tmp27_ = NULL;
const gchar* _tmp28_ = NULL;
@@ -4912,12 +4913,12 @@ static void user_interface_set_crop (UserInterface* self, const gchar* crop_name
_tmp28_ = crop_name;
#line 1060 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
page_set_named_crop (_tmp27_, _tmp28_);
-#line 4916 "ui.c"
+#line 4917 "ui.c"
}
}
#line 1034 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_page_unref0 (page);
-#line 4921 "ui.c"
+#line 4922 "ui.c"
}
@@ -4939,7 +4940,7 @@ static void user_interface_no_crop_menuitem_toggled_cb (UserInterface* self, Gtk
if (_tmp2_) {
#line 1067 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_set_crop (self, NULL);
-#line 4943 "ui.c"
+#line 4944 "ui.c"
}
}
@@ -4947,7 +4948,7 @@ static void user_interface_no_crop_menuitem_toggled_cb (UserInterface* self, Gtk
static void _user_interface_no_crop_menuitem_toggled_cb_gtk_check_menu_item_toggled (GtkCheckMenuItem* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_no_crop_menuitem_toggled_cb ((UserInterface*) self, _sender);
-#line 4951 "ui.c"
+#line 4952 "ui.c"
}
@@ -4969,7 +4970,7 @@ static void user_interface_custom_crop_menuitem_toggled_cb (UserInterface* self,
if (_tmp2_) {
#line 1074 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_set_crop (self, "custom");
-#line 4973 "ui.c"
+#line 4974 "ui.c"
}
}
@@ -4977,7 +4978,7 @@ static void user_interface_custom_crop_menuitem_toggled_cb (UserInterface* self,
static void _user_interface_custom_crop_menuitem_toggled_cb_gtk_check_menu_item_toggled (GtkCheckMenuItem* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_custom_crop_menuitem_toggled_cb ((UserInterface*) self, _sender);
-#line 4981 "ui.c"
+#line 4982 "ui.c"
}
@@ -4996,7 +4997,7 @@ static void user_interface_crop_button_toggled_cb (UserInterface* self, GtkToggl
if (_tmp0_) {
#line 1081 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
-#line 5000 "ui.c"
+#line 5001 "ui.c"
}
#line 1083 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = widget;
@@ -5006,20 +5007,20 @@ static void user_interface_crop_button_toggled_cb (UserInterface* self, GtkToggl
_tmp3_ = _tmp2_;
#line 1083 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp3_) {
-#line 5010 "ui.c"
+#line 5011 "ui.c"
GtkRadioMenuItem* _tmp4_ = NULL;
#line 1084 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = self->priv->custom_crop_menuitem;
#line 1084 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_check_menu_item_set_active ((GtkCheckMenuItem*) _tmp4_, TRUE);
-#line 5016 "ui.c"
+#line 5017 "ui.c"
} else {
GtkRadioMenuItem* _tmp5_ = NULL;
#line 1086 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_ = self->priv->no_crop_menuitem;
#line 1086 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_check_menu_item_set_active ((GtkCheckMenuItem*) _tmp5_, TRUE);
-#line 5023 "ui.c"
+#line 5024 "ui.c"
}
}
@@ -5027,7 +5028,7 @@ static void user_interface_crop_button_toggled_cb (UserInterface* self, GtkToggl
static void _user_interface_crop_button_toggled_cb_gtk_toggle_button_toggled (GtkToggleButton* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_crop_button_toggled_cb ((UserInterface*) self, _sender);
-#line 5031 "ui.c"
+#line 5032 "ui.c"
}
@@ -5046,7 +5047,7 @@ static void user_interface_crop_toolbutton_toggled_cb (UserInterface* self, GtkT
if (_tmp0_) {
#line 1093 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
-#line 5050 "ui.c"
+#line 5051 "ui.c"
}
#line 1095 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = widget;
@@ -5056,20 +5057,20 @@ static void user_interface_crop_toolbutton_toggled_cb (UserInterface* self, GtkT
_tmp3_ = _tmp2_;
#line 1095 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp3_) {
-#line 5060 "ui.c"
+#line 5061 "ui.c"
GtkRadioMenuItem* _tmp4_ = NULL;
#line 1096 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = self->priv->custom_crop_menuitem;
#line 1096 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_check_menu_item_set_active ((GtkCheckMenuItem*) _tmp4_, TRUE);
-#line 5066 "ui.c"
+#line 5067 "ui.c"
} else {
GtkRadioMenuItem* _tmp5_ = NULL;
#line 1098 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_ = self->priv->no_crop_menuitem;
#line 1098 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_check_menu_item_set_active ((GtkCheckMenuItem*) _tmp5_, TRUE);
-#line 5073 "ui.c"
+#line 5074 "ui.c"
}
}
@@ -5077,7 +5078,7 @@ static void user_interface_crop_toolbutton_toggled_cb (UserInterface* self, GtkT
static void _user_interface_crop_toolbutton_toggled_cb_gtk_toggle_tool_button_toggled (GtkToggleToolButton* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_crop_toolbutton_toggled_cb ((UserInterface*) self, _sender);
-#line 5081 "ui.c"
+#line 5082 "ui.c"
}
@@ -5099,7 +5100,7 @@ static void user_interface_four_by_six_menuitem_toggled_cb (UserInterface* self,
if (_tmp2_) {
#line 1105 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_set_crop (self, "4x6");
-#line 5103 "ui.c"
+#line 5104 "ui.c"
}
}
@@ -5107,7 +5108,7 @@ static void user_interface_four_by_six_menuitem_toggled_cb (UserInterface* self,
static void _user_interface_four_by_six_menuitem_toggled_cb_gtk_check_menu_item_toggled (GtkCheckMenuItem* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_four_by_six_menuitem_toggled_cb ((UserInterface*) self, _sender);
-#line 5111 "ui.c"
+#line 5112 "ui.c"
}
@@ -5129,7 +5130,7 @@ static void user_interface_legal_menuitem_toggled_cb (UserInterface* self, GtkCh
if (_tmp2_) {
#line 1112 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_set_crop (self, "legal");
-#line 5133 "ui.c"
+#line 5134 "ui.c"
}
}
@@ -5137,7 +5138,7 @@ static void user_interface_legal_menuitem_toggled_cb (UserInterface* self, GtkCh
static void _user_interface_legal_menuitem_toggled_cb_gtk_check_menu_item_toggled (GtkCheckMenuItem* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_legal_menuitem_toggled_cb ((UserInterface*) self, _sender);
-#line 5141 "ui.c"
+#line 5142 "ui.c"
}
@@ -5159,7 +5160,7 @@ static void user_interface_letter_menuitem_toggled_cb (UserInterface* self, GtkC
if (_tmp2_) {
#line 1119 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_set_crop (self, "letter");
-#line 5163 "ui.c"
+#line 5164 "ui.c"
}
}
@@ -5167,7 +5168,7 @@ static void user_interface_letter_menuitem_toggled_cb (UserInterface* self, GtkC
static void _user_interface_letter_menuitem_toggled_cb_gtk_check_menu_item_toggled (GtkCheckMenuItem* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_letter_menuitem_toggled_cb ((UserInterface*) self, _sender);
-#line 5171 "ui.c"
+#line 5172 "ui.c"
}
@@ -5189,7 +5190,7 @@ static void user_interface_a6_menuitem_toggled_cb (UserInterface* self, GtkCheck
if (_tmp2_) {
#line 1126 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_set_crop (self, "A6");
-#line 5193 "ui.c"
+#line 5194 "ui.c"
}
}
@@ -5197,7 +5198,7 @@ static void user_interface_a6_menuitem_toggled_cb (UserInterface* self, GtkCheck
static void _user_interface_a6_menuitem_toggled_cb_gtk_check_menu_item_toggled (GtkCheckMenuItem* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_a6_menuitem_toggled_cb ((UserInterface*) self, _sender);
-#line 5201 "ui.c"
+#line 5202 "ui.c"
}
@@ -5219,7 +5220,7 @@ static void user_interface_a5_menuitem_toggled_cb (UserInterface* self, GtkCheck
if (_tmp2_) {
#line 1133 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_set_crop (self, "A5");
-#line 5223 "ui.c"
+#line 5224 "ui.c"
}
}
@@ -5227,7 +5228,7 @@ static void user_interface_a5_menuitem_toggled_cb (UserInterface* self, GtkCheck
static void _user_interface_a5_menuitem_toggled_cb_gtk_check_menu_item_toggled (GtkCheckMenuItem* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_a5_menuitem_toggled_cb ((UserInterface*) self, _sender);
-#line 5231 "ui.c"
+#line 5232 "ui.c"
}
@@ -5249,7 +5250,7 @@ static void user_interface_a4_menuitem_toggled_cb (UserInterface* self, GtkCheck
if (_tmp2_) {
#line 1140 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_set_crop (self, "A4");
-#line 5253 "ui.c"
+#line 5254 "ui.c"
}
}
@@ -5257,7 +5258,7 @@ static void user_interface_a4_menuitem_toggled_cb (UserInterface* self, GtkCheck
static void _user_interface_a4_menuitem_toggled_cb_gtk_check_menu_item_toggled (GtkCheckMenuItem* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_a4_menuitem_toggled_cb ((UserInterface*) self, _sender);
-#line 5261 "ui.c"
+#line 5262 "ui.c"
}
@@ -5291,7 +5292,7 @@ static void user_interface_crop_rotate_menuitem_activate_cb (UserInterface* self
_page_unref0 (page);
#line 1148 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
-#line 5295 "ui.c"
+#line 5296 "ui.c"
}
#line 1149 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_ = page;
@@ -5299,14 +5300,14 @@ static void user_interface_crop_rotate_menuitem_activate_cb (UserInterface* self
page_rotate_crop (_tmp5_);
#line 1144 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_page_unref0 (page);
-#line 5303 "ui.c"
+#line 5304 "ui.c"
}
static void _user_interface_crop_rotate_menuitem_activate_cb_gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_crop_rotate_menuitem_activate_cb ((UserInterface*) self, _sender);
-#line 5310 "ui.c"
+#line 5311 "ui.c"
}
@@ -5347,7 +5348,7 @@ static void user_interface_page_move_left_menuitem_activate_cb (UserInterface* s
_tmp7_ = index;
#line 1157 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp7_ > ((guint) 0)) {
-#line 5351 "ui.c"
+#line 5352 "ui.c"
Book* _tmp8_ = NULL;
Page* _tmp9_ = NULL;
guint _tmp10_ = 0U;
@@ -5359,18 +5360,18 @@ static void user_interface_page_move_left_menuitem_activate_cb (UserInterface* s
_tmp10_ = index;
#line 1158 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
book_move_page (_tmp8_, _tmp9_, _tmp10_ - 1);
-#line 5363 "ui.c"
+#line 5364 "ui.c"
}
#line 1153 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_page_unref0 (page);
-#line 5367 "ui.c"
+#line 5368 "ui.c"
}
static void _user_interface_page_move_left_menuitem_activate_cb_gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_page_move_left_menuitem_activate_cb ((UserInterface*) self, _sender);
-#line 5374 "ui.c"
+#line 5375 "ui.c"
}
@@ -5420,7 +5421,7 @@ static void user_interface_page_move_right_menuitem_activate_cb (UserInterface*
_tmp10_ = _tmp9_;
#line 1166 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp7_ < (_tmp10_ - 1)) {
-#line 5424 "ui.c"
+#line 5425 "ui.c"
Book* _tmp11_ = NULL;
Page* _tmp12_ = NULL;
Book* _tmp13_ = NULL;
@@ -5438,18 +5439,18 @@ static void user_interface_page_move_right_menuitem_activate_cb (UserInterface*
_tmp15_ = book_get_page_index (_tmp13_, _tmp14_);
#line 1167 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
book_move_page (_tmp11_, _tmp12_, _tmp15_ + 1);
-#line 5442 "ui.c"
+#line 5443 "ui.c"
}
#line 1162 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_page_unref0 (page);
-#line 5446 "ui.c"
+#line 5447 "ui.c"
}
static void _user_interface_page_move_right_menuitem_activate_cb_gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_page_move_right_menuitem_activate_cb ((UserInterface*) self, _sender);
-#line 5453 "ui.c"
+#line 5454 "ui.c"
}
@@ -5478,14 +5479,14 @@ static void user_interface_page_delete_menuitem_activate_cb (UserInterface* self
_tmp5_ = _tmp4_;
#line 1173 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
book_delete_page (_tmp2_, _tmp5_);
-#line 5482 "ui.c"
+#line 5483 "ui.c"
}
static void _user_interface_page_delete_menuitem_activate_cb_gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_page_delete_menuitem_activate_cb ((UserInterface*) self, _sender);
-#line 5489 "ui.c"
+#line 5490 "ui.c"
}
@@ -5494,7 +5495,7 @@ static Block2Data* block2_data_ref (Block2Data* _data2_) {
g_atomic_int_inc (&_data2_->_ref_count_);
#line 1176 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return _data2_;
-#line 5498 "ui.c"
+#line 5499 "ui.c"
}
@@ -5503,7 +5504,7 @@ static void block2_data_unref (void * _userdata_) {
_data2_ = (Block2Data*) _userdata_;
#line 1176 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (g_atomic_int_dec_and_test (&_data2_->_ref_count_)) {
-#line 5507 "ui.c"
+#line 5508 "ui.c"
UserInterface* self;
#line 1176 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self = _data2_->self;
@@ -5513,7 +5514,7 @@ static void block2_data_unref (void * _userdata_) {
_g_object_unref0 (self);
#line 1176 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_slice_free (Block2Data, _data2_);
-#line 5517 "ui.c"
+#line 5518 "ui.c"
}
}
@@ -5534,7 +5535,7 @@ static gboolean __lambda6_ (Block2Data* _data2_, GdkEventKey* e) {
_tmp2_ = _tmp1_->state;
#line 1187 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp2_ == 0) {
-#line 5538 "ui.c"
+#line 5539 "ui.c"
GdkEventKey* _tmp3_ = NULL;
guint _tmp4_ = 0U;
#line 1187 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -5543,11 +5544,11 @@ static gboolean __lambda6_ (Block2Data* _data2_, GdkEventKey* e) {
_tmp4_ = _tmp3_->keyval;
#line 1187 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = _tmp4_ == ((guint) GDK_KEY_Escape);
-#line 5547 "ui.c"
+#line 5548 "ui.c"
} else {
#line 1187 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = FALSE;
-#line 5551 "ui.c"
+#line 5552 "ui.c"
}
#line 1187 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp0_) {
@@ -5557,13 +5558,13 @@ static gboolean __lambda6_ (Block2Data* _data2_, GdkEventKey* e) {
result = TRUE;
#line 1190 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 5561 "ui.c"
+#line 5562 "ui.c"
}
#line 1193 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = FALSE;
#line 1193 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 5567 "ui.c"
+#line 5568 "ui.c"
}
@@ -5572,7 +5573,7 @@ static gboolean ___lambda6__gtk_widget_key_press_event (GtkWidget* _sender, GdkE
result = __lambda6_ (self, event);
#line 1185 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 5576 "ui.c"
+#line 5577 "ui.c"
}
@@ -5587,14 +5588,14 @@ static void __lambda7_ (Block2Data* _data2_) {
book_combine_sides (_tmp0_);
#line 1210 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_destroy ((GtkWidget*) _data2_->dialog);
-#line 5591 "ui.c"
+#line 5592 "ui.c"
}
static void ___lambda7__gtk_button_clicked (GtkButton* _sender, gpointer self) {
#line 1207 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
__lambda7_ (self);
-#line 5598 "ui.c"
+#line 5599 "ui.c"
}
@@ -5609,14 +5610,14 @@ static void __lambda8_ (Block2Data* _data2_) {
book_combine_sides_reverse (_tmp0_);
#line 1220 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_destroy ((GtkWidget*) _data2_->dialog);
-#line 5613 "ui.c"
+#line 5614 "ui.c"
}
static void ___lambda8__gtk_button_clicked (GtkButton* _sender, gpointer self) {
#line 1217 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
__lambda8_ (self);
-#line 5620 "ui.c"
+#line 5621 "ui.c"
}
@@ -5631,14 +5632,14 @@ static void __lambda9_ (Block2Data* _data2_) {
book_reverse (_tmp0_);
#line 1230 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_destroy ((GtkWidget*) _data2_->dialog);
-#line 5635 "ui.c"
+#line 5636 "ui.c"
}
static void ___lambda9__gtk_button_clicked (GtkButton* _sender, gpointer self) {
#line 1227 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
__lambda9_ (self);
-#line 5642 "ui.c"
+#line 5643 "ui.c"
}
@@ -5648,14 +5649,14 @@ static void __lambda10_ (Block2Data* _data2_) {
self = _data2_->self;
#line 1239 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_destroy ((GtkWidget*) _data2_->dialog);
-#line 5652 "ui.c"
+#line 5653 "ui.c"
}
static void ___lambda10__gtk_button_clicked (GtkButton* _sender, gpointer self) {
#line 1237 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
__lambda10_ (self);
-#line 5659 "ui.c"
+#line 5660 "ui.c"
}
@@ -5822,7 +5823,7 @@ static void user_interface_reorder_document (UserInterface* self) {
block2_data_unref (_data2_);
#line 1176 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_data2_ = NULL;
-#line 5826 "ui.c"
+#line 5827 "ui.c"
}
@@ -5831,7 +5832,7 @@ void user_interface_reorder_document_activate_cb (UserInterface* self) {
g_return_if_fail (self != NULL);
#line 1249 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_reorder_document (self);
-#line 5835 "ui.c"
+#line 5836 "ui.c"
}
@@ -5842,14 +5843,14 @@ static void user_interface_reorder_menuitem_activate_cb (UserInterface* self, Gt
g_return_if_fail (widget != NULL);
#line 1255 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_reorder_document (self);
-#line 5846 "ui.c"
+#line 5847 "ui.c"
}
static void _user_interface_reorder_menuitem_activate_cb_gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_reorder_menuitem_activate_cb ((UserInterface*) self, _sender);
-#line 5853 "ui.c"
+#line 5854 "ui.c"
}
@@ -5919,7 +5920,7 @@ static GtkButton* user_interface_make_reorder_button (UserInterface* self, const
_g_object_unref0 (vbox);
#line 1274 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 5923 "ui.c"
+#line 5924 "ui.c"
}
@@ -5927,17 +5928,17 @@ static gchar string_get (const gchar* self, glong index) {
gchar result = '\0';
glong _tmp0_ = 0L;
gchar _tmp1_ = '\0';
-#line 1086 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1086 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
g_return_val_if_fail (self != NULL, '\0');
-#line 1087 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1087 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp0_ = index;
-#line 1087 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1087 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp1_ = ((gchar*) self)[_tmp0_];
-#line 1087 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1087 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
result = _tmp1_;
-#line 1087 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 1087 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
return result;
-#line 5941 "ui.c"
+#line 5942 "ui.c"
}
@@ -5963,19 +5964,19 @@ static GtkBox* user_interface_make_reorder_box (UserInterface* self, const gchar
gtk_widget_set_visible ((GtkWidget*) _tmp1_, TRUE);
#line 1282 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
page_box = NULL;
-#line 5967 "ui.c"
+#line 5968 "ui.c"
{
gint i = 0;
#line 1283 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
i = 0;
-#line 5972 "ui.c"
+#line 5973 "ui.c"
{
gboolean _tmp2_ = FALSE;
#line 1283 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = TRUE;
#line 1283 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
while (TRUE) {
-#line 5979 "ui.c"
+#line 5980 "ui.c"
const gchar* _tmp4_ = NULL;
gint _tmp5_ = 0;
gchar _tmp6_ = '\0';
@@ -6017,13 +6018,13 @@ static GtkBox* user_interface_make_reorder_box (UserInterface* self, const gchar
PageIcon* _tmp51_ = NULL;
#line 1283 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (!_tmp2_) {
-#line 6021 "ui.c"
+#line 6022 "ui.c"
gint _tmp3_ = 0;
#line 1283 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = i;
#line 1283 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
i = _tmp3_ + 1;
-#line 6027 "ui.c"
+#line 6028 "ui.c"
}
#line 1283 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = FALSE;
@@ -6037,7 +6038,7 @@ static GtkBox* user_interface_make_reorder_box (UserInterface* self, const gchar
if (!(_tmp6_ != '\0')) {
#line 1283 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 6041 "ui.c"
+#line 6042 "ui.c"
}
#line 1285 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp7_ = items;
@@ -6047,7 +6048,7 @@ static GtkBox* user_interface_make_reorder_box (UserInterface* self, const gchar
_tmp9_ = string_get (_tmp7_, (glong) _tmp8_);
#line 1285 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp9_ == '-') {
-#line 6051 "ui.c"
+#line 6052 "ui.c"
GtkArrow* a = NULL;
GtkArrow* _tmp10_ = NULL;
GtkArrow* _tmp11_ = NULL;
@@ -6077,7 +6078,7 @@ static GtkBox* user_interface_make_reorder_box (UserInterface* self, const gchar
_g_object_unref0 (a);
#line 1291 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
continue;
-#line 6081 "ui.c"
+#line 6082 "ui.c"
}
#line 1295 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp14_ = items;
@@ -6101,13 +6102,13 @@ static GtkBox* user_interface_make_reorder_box (UserInterface* self, const gchar
if (_tmp20_ == '\0') {
#line 1298 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 6105 "ui.c"
+#line 6106 "ui.c"
}
#line 1300 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp21_ = page_box;
#line 1300 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp21_ == NULL) {
-#line 6111 "ui.c"
+#line 6112 "ui.c"
GtkBox* _tmp22_ = NULL;
GtkBox* _tmp23_ = NULL;
GtkBox* _tmp24_ = NULL;
@@ -6130,7 +6131,7 @@ static GtkBox* user_interface_make_reorder_box (UserInterface* self, const gchar
_tmp25_ = page_box;
#line 1304 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_box_pack_start (_tmp24_, (GtkWidget*) _tmp25_, FALSE, FALSE, (guint) 0);
-#line 6134 "ui.c"
+#line 6135 "ui.c"
}
#line 1308 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
r = 1.0;
@@ -6144,7 +6145,7 @@ static GtkBox* user_interface_make_reorder_box (UserInterface* self, const gchar
switch (_tmp26_) {
#line 1311 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
case 'F':
-#line 6148 "ui.c"
+#line 6149 "ui.c"
{
#line 1315 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
r = 0x75 / 255.0;
@@ -6154,11 +6155,11 @@ static GtkBox* user_interface_make_reorder_box (UserInterface* self, const gchar
b = 0x7B / 255.0;
#line 1318 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 6158 "ui.c"
+#line 6159 "ui.c"
}
#line 1311 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
case 'B':
-#line 6162 "ui.c"
+#line 6163 "ui.c"
{
#line 1321 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
r = 0xF5 / 255.0;
@@ -6168,11 +6169,11 @@ static GtkBox* user_interface_make_reorder_box (UserInterface* self, const gchar
b = 0.0;
#line 1324 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 6172 "ui.c"
+#line 6173 "ui.c"
}
#line 1311 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
case 'C':
-#line 6176 "ui.c"
+#line 6177 "ui.c"
{
gdouble p = 0.0;
const gchar* _tmp27_ = NULL;
@@ -6203,12 +6204,12 @@ static GtkBox* user_interface_make_reorder_box (UserInterface* self, const gchar
b = (gdouble) 0;
#line 1331 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 6207 "ui.c"
+#line 6208 "ui.c"
}
default:
#line 1311 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 6212 "ui.c"
+#line 6213 "ui.c"
}
#line 1335 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp33_ = r;
@@ -6266,7 +6267,7 @@ static GtkBox* user_interface_make_reorder_box (UserInterface* self, const gchar
gtk_box_pack_start (_tmp50_, (GtkWidget*) _tmp51_, FALSE, FALSE, (guint) 0);
#line 1283 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (icon);
-#line 6270 "ui.c"
+#line 6271 "ui.c"
}
}
}
@@ -6276,7 +6277,7 @@ static GtkBox* user_interface_make_reorder_box (UserInterface* self, const gchar
_g_object_unref0 (page_box);
#line 1344 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 6280 "ui.c"
+#line 6281 "ui.c"
}
@@ -6287,14 +6288,14 @@ static void user_interface_save_file_button_clicked_cb (UserInterface* self, Gtk
g_return_if_fail (widget != NULL);
#line 1350 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_save_document (self, FALSE);
-#line 6291 "ui.c"
+#line 6292 "ui.c"
}
static void _user_interface_save_file_button_clicked_cb_gtk_button_clicked (GtkButton* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_save_file_button_clicked_cb ((UserInterface*) self, _sender);
-#line 6298 "ui.c"
+#line 6299 "ui.c"
}
@@ -6303,7 +6304,7 @@ void user_interface_save_document_activate_cb (UserInterface* self) {
g_return_if_fail (self != NULL);
#line 1355 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_save_document (self, FALSE);
-#line 6307 "ui.c"
+#line 6308 "ui.c"
}
@@ -6332,24 +6333,24 @@ static void user_interface_copy_to_clipboard_button_clicked_cb (UserInterface* s
_tmp4_ = page;
#line 1362 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp4_ != NULL) {
-#line 6336 "ui.c"
+#line 6337 "ui.c"
Page* _tmp5_ = NULL;
#line 1363 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_ = page;
#line 1363 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
page_copy_to_clipboard (_tmp5_, (GtkWindow*) self);
-#line 6342 "ui.c"
+#line 6343 "ui.c"
}
#line 1359 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_page_unref0 (page);
-#line 6346 "ui.c"
+#line 6347 "ui.c"
}
static void _user_interface_copy_to_clipboard_button_clicked_cb_gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_copy_to_clipboard_button_clicked_cb ((UserInterface*) self, _sender);
-#line 6353 "ui.c"
+#line 6354 "ui.c"
}
@@ -6360,14 +6361,14 @@ static void user_interface_save_as_file_button_clicked_cb (UserInterface* self,
g_return_if_fail (widget != NULL);
#line 1369 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_save_document (self, TRUE);
-#line 6364 "ui.c"
+#line 6365 "ui.c"
}
static void _user_interface_save_as_file_button_clicked_cb_gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_save_as_file_button_clicked_cb ((UserInterface*) self, _sender);
-#line 6371 "ui.c"
+#line 6372 "ui.c"
}
@@ -6376,14 +6377,14 @@ void user_interface_save_as_document_activate_cb (UserInterface* self) {
g_return_if_fail (self != NULL);
#line 1374 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_save_document (self, TRUE);
-#line 6380 "ui.c"
+#line 6381 "ui.c"
}
static gpointer _cairo_reference0 (gpointer self) {
#line 1381 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return self ? cairo_reference (self) : NULL;
-#line 6387 "ui.c"
+#line 6388 "ui.c"
}
@@ -6457,7 +6458,7 @@ static void user_interface_draw_page (UserInterface* self, GtkPrintOperation* op
if (_tmp7_ > _tmp9_) {
#line 1387 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
is_landscape = TRUE;
-#line 6461 "ui.c"
+#line 6462 "ui.c"
}
#line 1388 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp10_ = page;
@@ -6469,7 +6470,7 @@ static void user_interface_draw_page (UserInterface* self, GtkPrintOperation* op
_tmp13_ = is_landscape;
#line 1388 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp12_ != _tmp13_) {
-#line 6473 "ui.c"
+#line 6474 "ui.c"
cairo_t* _tmp14_ = NULL;
GtkPrintContext* _tmp15_ = NULL;
gdouble _tmp16_ = 0.0;
@@ -6486,7 +6487,7 @@ static void user_interface_draw_page (UserInterface* self, GtkPrintOperation* op
_tmp17_ = context;
#line 1391 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
cairo_rotate (_tmp17_, G_PI_2);
-#line 6490 "ui.c"
+#line 6491 "ui.c"
}
#line 1394 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp18_ = context;
@@ -6532,7 +6533,7 @@ static void user_interface_draw_page (UserInterface* self, GtkPrintOperation* op
_page_unref0 (page);
#line 1377 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_cairo_destroy0 (context);
-#line 6536 "ui.c"
+#line 6537 "ui.c"
}
@@ -6552,14 +6553,14 @@ static void user_interface_email_button_clicked_cb (UserInterface* self, GtkWidg
_tmp2_ = _tmp1_;
#line 1405 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_signal_emit_by_name (self, "email", _tmp0_, _tmp2_);
-#line 6556 "ui.c"
+#line 6557 "ui.c"
}
static void _user_interface_email_button_clicked_cb_gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_email_button_clicked_cb ((UserInterface*) self, _sender);
-#line 6563 "ui.c"
+#line 6564 "ui.c"
}
@@ -6577,14 +6578,14 @@ void user_interface_email_document_activate_cb (UserInterface* self) {
_tmp2_ = _tmp1_;
#line 1410 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_signal_emit_by_name (self, "email", _tmp0_, _tmp2_);
-#line 6581 "ui.c"
+#line 6582 "ui.c"
}
static void _user_interface_draw_page_gtk_print_operation_draw_page (GtkPrintOperation* _sender, GtkPrintContext* context, gint page_nr, gpointer self) {
#line 1417 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_draw_page ((UserInterface*) self, _sender, context, page_nr);
-#line 6588 "ui.c"
+#line 6589 "ui.c"
}
@@ -6612,13 +6613,13 @@ static void user_interface_print_document (UserInterface* self) {
g_object_set (print, "n-pages", (gint) _tmp3_, NULL);
#line 1417 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_signal_connect_object (print, "draw-page", (GCallback) _user_interface_draw_page_gtk_print_operation_draw_page, self, 0);
-#line 6616 "ui.c"
+#line 6617 "ui.c"
{
#line 1421 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_print_operation_run (print, GTK_PRINT_OPERATION_ACTION_PRINT_DIALOG, (GtkWindow*) self, &_inner_error_);
#line 1421 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 6622 "ui.c"
+#line 6623 "ui.c"
goto __catch20_g_error;
}
}
@@ -6640,7 +6641,7 @@ static void user_interface_print_document (UserInterface* self) {
g_warning ("ui.vala:1425: Error printing: %s", _tmp5_);
#line 1419 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_error_free0 (e);
-#line 6644 "ui.c"
+#line 6645 "ui.c"
}
__finally20:
#line 1419 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -6653,7 +6654,7 @@ static void user_interface_print_document (UserInterface* self) {
g_clear_error (&_inner_error_);
#line 1419 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
-#line 6657 "ui.c"
+#line 6658 "ui.c"
}
#line 1428 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_signal_parse_name ("draw-page", gtk_print_operation_get_type (), &_tmp6_, NULL, FALSE);
@@ -6661,7 +6662,7 @@ static void user_interface_print_document (UserInterface* self) {
g_signal_handlers_disconnect_matched (print, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp6_, 0, NULL, (GCallback) _user_interface_draw_page_gtk_print_operation_draw_page, self);
#line 1413 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (print);
-#line 6665 "ui.c"
+#line 6666 "ui.c"
}
@@ -6672,14 +6673,14 @@ static void user_interface_print_button_clicked_cb (UserInterface* self, GtkWidg
g_return_if_fail (widget != NULL);
#line 1434 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_print_document (self);
-#line 6676 "ui.c"
+#line 6677 "ui.c"
}
static void _user_interface_print_button_clicked_cb_gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_print_button_clicked_cb ((UserInterface*) self, _sender);
-#line 6683 "ui.c"
+#line 6684 "ui.c"
}
@@ -6688,7 +6689,7 @@ void user_interface_print_document_activate_cb (UserInterface* self) {
g_return_if_fail (self != NULL);
#line 1439 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_print_document (self);
-#line 6692 "ui.c"
+#line 6693 "ui.c"
}
@@ -6696,7 +6697,7 @@ static void user_interface_launch_help (UserInterface* self) {
GError * _inner_error_ = NULL;
#line 1442 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
-#line 6700 "ui.c"
+#line 6701 "ui.c"
{
GdkScreen* _tmp0_ = NULL;
GdkScreen* _tmp1_ = NULL;
@@ -6711,7 +6712,7 @@ static void user_interface_launch_help (UserInterface* self) {
gtk_show_uri (_tmp1_, "help:simple-scan", _tmp2_, &_inner_error_);
#line 1446 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 6715 "ui.c"
+#line 6716 "ui.c"
goto __catch21_g_error;
}
}
@@ -6736,7 +6737,7 @@ static void user_interface_launch_help (UserInterface* self) {
user_interface_show_error_dialog (self, _tmp3_, _tmp5_);
#line 1444 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_error_free0 (e);
-#line 6740 "ui.c"
+#line 6741 "ui.c"
}
__finally21:
#line 1444 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -6747,7 +6748,7 @@ static void user_interface_launch_help (UserInterface* self) {
g_clear_error (&_inner_error_);
#line 1444 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
-#line 6751 "ui.c"
+#line 6752 "ui.c"
}
}
@@ -6759,14 +6760,14 @@ static void user_interface_help_contents_menuitem_activate_cb (UserInterface* se
g_return_if_fail (widget != NULL);
#line 1459 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_launch_help (self);
-#line 6763 "ui.c"
+#line 6764 "ui.c"
}
static void _user_interface_help_contents_menuitem_activate_cb_gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_help_contents_menuitem_activate_cb ((UserInterface*) self, _sender);
-#line 6770 "ui.c"
+#line 6771 "ui.c"
}
@@ -6775,7 +6776,7 @@ void user_interface_help_contents_activate_cb (UserInterface* self) {
g_return_if_fail (self != NULL);
#line 1464 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_launch_help (self);
-#line 6779 "ui.c"
+#line 6780 "ui.c"
}
@@ -6850,7 +6851,7 @@ static void user_interface_show_about (UserInterface* self) {
_g_free0 (license);
#line 1467 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
authors = (_vala_array_free (authors, authors_length1, (GDestroyNotify) g_free), NULL);
-#line 6843 "ui.c"
+#line 6844 "ui.c"
}
@@ -6861,14 +6862,14 @@ static void user_interface_about_menuitem_activate_cb (UserInterface* self, GtkW
g_return_if_fail (widget != NULL);
#line 1498 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_show_about (self);
-#line 6854 "ui.c"
+#line 6855 "ui.c"
}
static void _user_interface_about_menuitem_activate_cb_gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_about_menuitem_activate_cb ((UserInterface*) self, _sender);
-#line 6861 "ui.c"
+#line 6862 "ui.c"
}
@@ -6877,7 +6878,7 @@ void user_interface_about_activate_cb (UserInterface* self) {
g_return_if_fail (self != NULL);
#line 1503 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_show_about (self);
-#line 6870 "ui.c"
+#line 6871 "ui.c"
}
@@ -6902,7 +6903,7 @@ static gboolean user_interface_on_quit (UserInterface* self) {
result = FALSE;
#line 1512 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 6895 "ui.c"
+#line 6896 "ui.c"
}
#line 1514 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_destroy ((GtkWidget*) self);
@@ -6912,7 +6913,7 @@ static gboolean user_interface_on_quit (UserInterface* self) {
if (_tmp3_ != ((guint) 0)) {
#line 1517 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_save_state (self, TRUE);
-#line 6905 "ui.c"
+#line 6906 "ui.c"
}
#line 1519 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = self->priv->autosave_manager;
@@ -6922,7 +6923,7 @@ static gboolean user_interface_on_quit (UserInterface* self) {
result = TRUE;
#line 1521 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 6915 "ui.c"
+#line 6916 "ui.c"
}
@@ -6933,14 +6934,14 @@ static void user_interface_quit_menuitem_activate_cb (UserInterface* self, GtkWi
g_return_if_fail (widget != NULL);
#line 1527 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_on_quit (self);
-#line 6926 "ui.c"
+#line 6927 "ui.c"
}
static void _user_interface_quit_menuitem_activate_cb_gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_quit_menuitem_activate_cb ((UserInterface*) self, _sender);
-#line 6933 "ui.c"
+#line 6934 "ui.c"
}
@@ -6949,7 +6950,7 @@ void user_interface_quit_activate_cb (UserInterface* self) {
g_return_if_fail (self != NULL);
#line 1532 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_on_quit (self);
-#line 6942 "ui.c"
+#line 6943 "ui.c"
}
@@ -6970,21 +6971,21 @@ static void user_interface_real_size_allocate (GtkWidget* base, GtkAllocation* a
_tmp2_ = self->priv->window_is_maximized;
#line 1539 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (!_tmp2_) {
-#line 6963 "ui.c"
+#line 6964 "ui.c"
gboolean _tmp3_ = FALSE;
#line 1539 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = self->priv->window_is_fullscreen;
#line 1539 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = !_tmp3_;
-#line 6969 "ui.c"
+#line 6970 "ui.c"
} else {
#line 1539 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = FALSE;
-#line 6973 "ui.c"
+#line 6974 "ui.c"
}
#line 1539 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp1_) {
-#line 6977 "ui.c"
+#line 6978 "ui.c"
gint _tmp4_ = 0;
gint _tmp5_ = 0;
#line 1541 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -6995,7 +6996,7 @@ static void user_interface_real_size_allocate (GtkWidget* base, GtkAllocation* a
self->priv->window_height = _tmp5_;
#line 1542 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_save_state (self, FALSE);
-#line 6988 "ui.c"
+#line 6989 "ui.c"
}
}
@@ -7012,7 +7013,7 @@ static void user_interface_info_bar_response_cb (UserInterface* self, GtkInfoBar
switch (_tmp0_) {
#line 1548 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
case 1:
-#line 7005 "ui.c"
+#line 7006 "ui.c"
{
GtkComboBox* _tmp1_ = NULL;
GtkDialog* _tmp2_ = NULL;
@@ -7026,17 +7027,17 @@ static void user_interface_info_bar_response_cb (UserInterface* self, GtkInfoBar
gtk_window_present ((GtkWindow*) _tmp2_);
#line 1554 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 7019 "ui.c"
+#line 7020 "ui.c"
}
#line 1548 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
case 2:
-#line 7023 "ui.c"
+#line 7024 "ui.c"
{
#line 1557 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_install_drivers (self);
#line 1558 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 7029 "ui.c"
+#line 7030 "ui.c"
}
default:
{
@@ -7054,7 +7055,7 @@ static void user_interface_info_bar_response_cb (UserInterface* self, GtkInfoBar
user_interface_update_info_bar (self);
#line 1564 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 7047 "ui.c"
+#line 7048 "ui.c"
}
}
}
@@ -7065,7 +7066,7 @@ static Block3Data* block3_data_ref (Block3Data* _data3_) {
g_atomic_int_inc (&_data3_->_ref_count_);
#line 1568 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return _data3_;
-#line 7058 "ui.c"
+#line 7059 "ui.c"
}
@@ -7074,7 +7075,7 @@ static void block3_data_unref (void * _userdata_) {
_data3_ = (Block3Data*) _userdata_;
#line 1568 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (g_atomic_int_dec_and_test (&_data3_->_ref_count_)) {
-#line 7067 "ui.c"
+#line 7068 "ui.c"
UserInterface* self;
#line 1568 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self = _data3_->self;
@@ -7090,7 +7091,7 @@ static void block3_data_unref (void * _userdata_) {
_g_object_unref0 (self);
#line 1568 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_slice_free (Block3Data, _data3_);
-#line 7083 "ui.c"
+#line 7084 "ui.c"
}
}
@@ -7102,7 +7103,7 @@ static void ___lambda12_ (UserInterface* self) {
static void ____lambda12__pk_progress_callback (PkProgress* progress, PkProgressType type, gpointer self) {
#line 1646 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
___lambda12_ ((UserInterface*) self);
-#line 7095 "ui.c"
+#line 7096 "ui.c"
}
@@ -7147,7 +7148,7 @@ static void ___lambda13_ (Block3Data* _data3_, GObject* object, GAsyncResult* _r
_tmp6_ = g_strdup (_tmp5_);
#line 1653 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result_text = _tmp6_;
-#line 7140 "ui.c"
+#line 7141 "ui.c"
{
PkResults* results = NULL;
GAsyncResult* _tmp7_ = NULL;
@@ -7163,7 +7164,7 @@ static void ___lambda13_ (Block3Data* _data3_, GObject* object, GAsyncResult* _r
results = _tmp8_;
#line 1656 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 7156 "ui.c"
+#line 7157 "ui.c"
goto __catch22_g_error;
}
#line 1657 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -7176,13 +7177,13 @@ static void ___lambda13_ (Block3Data* _data3_, GObject* object, GAsyncResult* _r
_g_object_unref0 (_tmp10_);
#line 1657 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp11_) {
-#line 7169 "ui.c"
+#line 7170 "ui.c"
GtkLabel* _tmp12_ = NULL;
#line 1658 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp12_ = _data3_->status_label;
#line 1658 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_label_set_text (_tmp12_, "☑");
-#line 7175 "ui.c"
+#line 7176 "ui.c"
} else {
PkError* e = NULL;
PkError* _tmp13_ = NULL;
@@ -7211,11 +7212,11 @@ static void ___lambda13_ (Block3Data* _data3_, GObject* object, GAsyncResult* _r
result_text = _tmp18_;
#line 1657 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (e);
-#line 7204 "ui.c"
+#line 7205 "ui.c"
}
#line 1654 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (results);
-#line 7208 "ui.c"
+#line 7209 "ui.c"
}
goto __finally22;
__catch22_g_error:
@@ -7245,7 +7246,7 @@ static void ___lambda13_ (Block3Data* _data3_, GObject* object, GAsyncResult* _r
g_warning ("ui.vala:1670: Failed to install drivers: %s", _tmp22_);
#line 1654 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_error_free0 (e);
-#line 7238 "ui.c"
+#line 7239 "ui.c"
}
__finally22:
#line 1654 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -7258,7 +7259,7 @@ static void ___lambda13_ (Block3Data* _data3_, GObject* object, GAsyncResult* _r
g_clear_error (&_inner_error_);
#line 1654 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
-#line 7251 "ui.c"
+#line 7252 "ui.c"
}
#line 1672 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp23_ = _data3_->instructions_label;
@@ -7268,7 +7269,7 @@ static void ___lambda13_ (Block3Data* _data3_, GObject* object, GAsyncResult* _r
gtk_label_set_text (_tmp23_, _tmp24_);
#line 1646 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (result_text);
-#line 7261 "ui.c"
+#line 7262 "ui.c"
}
@@ -7277,7 +7278,7 @@ static void ____lambda13__gasync_ready_callback (GObject* source_object, GAsyncR
___lambda13_ (self, source_object, res);
#line 1646 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
block3_data_unref (self);
-#line 7270 "ui.c"
+#line 7271 "ui.c"
}
@@ -7308,7 +7309,7 @@ static void user_interface_install_drivers (UserInterface* self) {
static GQuark _tmp5_label5 = 0;
#line 1572 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
static GQuark _tmp5_label6 = 0;
-#line 7301 "ui.c"
+#line 7302 "ui.c"
GtkDialog* dialog = NULL;
const gchar* _tmp23_ = NULL;
const gchar* _tmp24_ = NULL;
@@ -7396,7 +7397,7 @@ static void user_interface_install_drivers (UserInterface* self) {
if ((((_tmp6_ == ((0 != _tmp5_label0) ? _tmp5_label0 : (_tmp5_label0 = g_quark_from_static_string ("brscan")))) || (_tmp6_ == ((0 != _tmp5_label1) ? _tmp5_label1 : (_tmp5_label1 = g_quark_from_static_string ("brscan2"))))) || (_tmp6_ == ((0 != _tmp5_label2) ? _tmp5_label2 : (_tmp5_label2 = g_quark_from_static_string ("brscan3"))))) || (_tmp6_ == ((0 != _tmp5_label3) ? _tmp5_label3 : (_tmp5_label3 = g_quark_from_static_string ("brscan4"))))) {
#line 1572 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
switch (0) {
-#line 7389 "ui.c"
+#line 7390 "ui.c"
default:
{
const gchar* _tmp7_ = NULL;
@@ -7422,13 +7423,13 @@ static void user_interface_install_drivers (UserInterface* self) {
instructions = _tmp10_;
#line 1582 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 7414 "ui.c"
+#line 7415 "ui.c"
}
}
} else if (_tmp6_ == ((0 != _tmp5_label4) ? _tmp5_label4 : (_tmp5_label4 = g_quark_from_static_string ("samsung")))) {
#line 1572 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
switch (0) {
-#line 7420 "ui.c"
+#line 7421 "ui.c"
default:
{
const gchar* _tmp11_ = NULL;
@@ -7454,13 +7455,13 @@ static void user_interface_install_drivers (UserInterface* self) {
instructions = _tmp14_;
#line 1588 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 7445 "ui.c"
+#line 7446 "ui.c"
}
}
} else if (_tmp6_ == ((0 != _tmp5_label5) ? _tmp5_label5 : (_tmp5_label5 = g_quark_from_static_string ("hpaio")))) {
#line 1572 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
switch (0) {
-#line 7451 "ui.c"
+#line 7452 "ui.c"
default:
{
const gchar* _tmp15_ = NULL;
@@ -7491,13 +7492,13 @@ static void user_interface_install_drivers (UserInterface* self) {
_packages_to_install_size_ = packages_to_install_length1;
#line 1593 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 7482 "ui.c"
+#line 7483 "ui.c"
}
}
} else if (_tmp6_ == ((0 != _tmp5_label6) ? _tmp5_label6 : (_tmp5_label6 = g_quark_from_static_string ("epkowa")))) {
#line 1572 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
switch (0) {
-#line 7488 "ui.c"
+#line 7489 "ui.c"
default:
{
const gchar* _tmp19_ = NULL;
@@ -7523,7 +7524,7 @@ static void user_interface_install_drivers (UserInterface* self) {
instructions = _tmp22_;
#line 1599 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 7513 "ui.c"
+#line 7514 "ui.c"
}
}
}
@@ -7699,7 +7700,7 @@ static void user_interface_install_drivers (UserInterface* self) {
_tmp69__length1 = packages_to_install_length1;
#line 1639 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp69__length1 > 0) {
-#line 7689 "ui.c"
+#line 7690 "ui.c"
GtkStack* _tmp70_ = NULL;
GtkSpinner* _tmp71_ = NULL;
GtkLabel* _tmp72_ = NULL;
@@ -7726,7 +7727,7 @@ static void user_interface_install_drivers (UserInterface* self) {
_tmp74__length1 = packages_to_install_length1;
#line 1646 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_install_packages (self, _tmp74_, _tmp74__length1, ____lambda12__pk_progress_callback, self, ____lambda13__gasync_ready_callback, block3_data_ref (_data3_));
-#line 7716 "ui.c"
+#line 7717 "ui.c"
}
#line 1680 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp75_ = dialog;
@@ -7752,7 +7753,7 @@ static void user_interface_install_drivers (UserInterface* self) {
block3_data_unref (_data3_);
#line 1568 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_data3_ = NULL;
-#line 7742 "ui.c"
+#line 7743 "ui.c"
}
@@ -7765,7 +7766,7 @@ static void user_interface_install_packages_data_free (gpointer _data) {
_g_object_unref0 (_data_->self);
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_slice_free (UserInterfaceInstallPackagesData, _data_);
-#line 7755 "ui.c"
+#line 7756 "ui.c"
}
@@ -7804,7 +7805,7 @@ static void user_interface_install_packages (UserInterface* self, gchar** packag
_data_->progress_callback_target = _tmp2__target;
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_install_packages_co (_data_);
-#line 7794 "ui.c"
+#line 7795 "ui.c"
}
@@ -7815,7 +7816,7 @@ static PkResults* user_interface_install_packages_finish (UserInterface* self, G
if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return NULL;
-#line 7805 "ui.c"
+#line 7806 "ui.c"
}
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
@@ -7825,7 +7826,7 @@ static PkResults* user_interface_install_packages_finish (UserInterface* self, G
_data_->result = NULL;
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 7815 "ui.c"
+#line 7816 "ui.c"
}
@@ -7839,34 +7840,34 @@ static void user_interface_install_packages_ready (GObject* source_object, GAsyn
_data_->_res_ = _res_;
#line 1689 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_install_packages_co (_data_);
-#line 7829 "ui.c"
+#line 7830 "ui.c"
}
static gint g_ptr_array_get_length (GPtrArray* self) {
gint result;
guint _tmp0_ = 0U;
-#line 4807 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 4858 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
g_return_val_if_fail (self != NULL, 0);
-#line 4807 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 4858 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp0_ = self->len;
-#line 4807 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 4858 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
result = (gint) _tmp0_;
-#line 4807 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 4858 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
return result;
-#line 7844 "ui.c"
+#line 7845 "ui.c"
}
static void g_ptr_array_set_length (GPtrArray* self, gint value) {
gint _tmp0_ = 0;
-#line 4808 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 4859 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
g_return_if_fail (self != NULL);
-#line 4808 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 4859 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp0_ = value;
-#line 4808 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+#line 4859 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
g_ptr_array_set_size (self, _tmp0_);
-#line 7856 "ui.c"
+#line 7857 "ui.c"
}
@@ -7875,20 +7876,20 @@ static gboolean user_interface_install_packages_co (UserInterfaceInstallPackages
switch (_data_->_state_) {
#line 1685 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
case 0:
-#line 7865 "ui.c"
+#line 7866 "ui.c"
goto _state_0;
#line 1685 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
case 1:
-#line 7869 "ui.c"
+#line 7870 "ui.c"
goto _state_1;
#line 1685 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
case 2:
-#line 7873 "ui.c"
+#line 7874 "ui.c"
goto _state_2;
default:
#line 1685 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_assert_not_reached ();
-#line 7878 "ui.c"
+#line 7879 "ui.c"
}
_state_0:
#line 1687 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -7923,7 +7924,7 @@ static gboolean user_interface_install_packages_co (UserInterfaceInstallPackages
pk_task_resolve_async (_data_->_tmp2_, (PkBitfield) PK_FILTER_ENUM_NOT_INSTALLED, _data_->_tmp3_, NULL, _data_->_tmp4_, _data_->_tmp4__target, user_interface_install_packages_ready, _data_);
#line 1689 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return FALSE;
-#line 7913 "ui.c"
+#line 7914 "ui.c"
_state_1:
#line 1689 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_data_->_tmp5_ = NULL;
@@ -7945,17 +7946,17 @@ static gboolean user_interface_install_packages_co (UserInterfaceInstallPackages
if (_data_->_state_ == 0) {
#line 1689 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_simple_async_result_complete_in_idle (_data_->_async_result);
-#line 7935 "ui.c"
+#line 7936 "ui.c"
} else {
#line 1689 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_simple_async_result_complete (_data_->_async_result);
-#line 7939 "ui.c"
+#line 7940 "ui.c"
}
#line 1689 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_object_unref (_data_->_async_result);
#line 1689 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return FALSE;
-#line 7945 "ui.c"
+#line 7946 "ui.c"
}
#line 1689 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_data_->_tmp6_ = NULL;
@@ -7975,7 +7976,7 @@ static gboolean user_interface_install_packages_co (UserInterfaceInstallPackages
if (_data_->_tmp8_ == NULL) {
#line 1690 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_data_->_tmp7_ = TRUE;
-#line 7965 "ui.c"
+#line 7966 "ui.c"
} else {
#line 1690 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_data_->_tmp9_ = NULL;
@@ -7993,7 +7994,7 @@ static gboolean user_interface_install_packages_co (UserInterfaceInstallPackages
_data_->_tmp7_ = _data_->_tmp11_ != NULL;
#line 1690 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (_data_->_tmp11_);
-#line 7983 "ui.c"
+#line 7984 "ui.c"
}
#line 1690 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_data_->_tmp7_) {
@@ -8007,17 +8008,17 @@ static gboolean user_interface_install_packages_co (UserInterfaceInstallPackages
if (_data_->_state_ == 0) {
#line 1691 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_simple_async_result_complete_in_idle (_data_->_async_result);
-#line 7997 "ui.c"
+#line 7998 "ui.c"
} else {
#line 1691 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_simple_async_result_complete (_data_->_async_result);
-#line 8001 "ui.c"
+#line 8002 "ui.c"
}
#line 1691 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_object_unref (_data_->_async_result);
#line 1691 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return FALSE;
-#line 8007 "ui.c"
+#line 8008 "ui.c"
}
#line 1693 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_data_->_tmp12_ = NULL;
@@ -8083,11 +8084,11 @@ static gboolean user_interface_install_packages_co (UserInterfaceInstallPackages
_data_->_tmp22_ = NULL;
#line 1695 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_data_->_tmp22_ = _data_->_tmp18_[_data_->_tmp21_];
-#line 8073 "ui.c"
+#line 8074 "ui.c"
{
#line 1696 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_data_->i = 0;
-#line 8077 "ui.c"
+#line 8078 "ui.c"
{
#line 1696 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_data_->_tmp23_ = TRUE;
@@ -8101,7 +8102,7 @@ static gboolean user_interface_install_packages_co (UserInterfaceInstallPackages
_data_->_tmp24_ = _data_->i;
#line 1696 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_data_->i = _data_->_tmp24_ + 1;
-#line 8091 "ui.c"
+#line 8092 "ui.c"
}
#line 1696 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_data_->_tmp23_ = FALSE;
@@ -8125,7 +8126,7 @@ static gboolean user_interface_install_packages_co (UserInterfaceInstallPackages
if (!(_data_->_tmp25_ < _data_->_tmp28_)) {
#line 1696 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 8115 "ui.c"
+#line 8116 "ui.c"
}
#line 1697 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_data_->_tmp29_ = NULL;
@@ -8175,7 +8176,7 @@ static gboolean user_interface_install_packages_co (UserInterfaceInstallPackages
_data_->_tmp37_ = NULL;
#line 1697 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_data_->_tmp37_ = _data_->_tmp29_[_data_->_tmp30_];
-#line 8165 "ui.c"
+#line 8166 "ui.c"
}
}
}
@@ -8205,7 +8206,7 @@ static gboolean user_interface_install_packages_co (UserInterfaceInstallPackages
pk_task_install_packages_async (_data_->_tmp39_, _data_->_tmp40_, NULL, _data_->_tmp41_, _data_->_tmp41__target, user_interface_install_packages_ready, _data_);
#line 1699 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return FALSE;
-#line 8195 "ui.c"
+#line 8196 "ui.c"
_state_2:
#line 1699 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_data_->_tmp42_ = NULL;
@@ -8233,17 +8234,17 @@ static gboolean user_interface_install_packages_co (UserInterfaceInstallPackages
if (_data_->_state_ == 0) {
#line 1699 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_simple_async_result_complete_in_idle (_data_->_async_result);
-#line 8223 "ui.c"
+#line 8224 "ui.c"
} else {
#line 1699 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_simple_async_result_complete (_data_->_async_result);
-#line 8227 "ui.c"
+#line 8228 "ui.c"
}
#line 1699 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_object_unref (_data_->_async_result);
#line 1699 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return FALSE;
-#line 8233 "ui.c"
+#line 8234 "ui.c"
}
#line 1699 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_data_->_tmp43_ = NULL;
@@ -8269,11 +8270,11 @@ static gboolean user_interface_install_packages_co (UserInterfaceInstallPackages
if (_data_->_state_ == 0) {
#line 1699 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_simple_async_result_complete_in_idle (_data_->_async_result);
-#line 8259 "ui.c"
+#line 8260 "ui.c"
} else {
#line 1699 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_simple_async_result_complete (_data_->_async_result);
-#line 8263 "ui.c"
+#line 8264 "ui.c"
}
#line 1699 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_object_unref (_data_->_async_result);
@@ -8295,17 +8296,17 @@ static gboolean user_interface_install_packages_co (UserInterfaceInstallPackages
if (_data_->_state_ == 0) {
#line 1685 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_simple_async_result_complete_in_idle (_data_->_async_result);
-#line 8285 "ui.c"
+#line 8286 "ui.c"
} else {
#line 1685 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_simple_async_result_complete (_data_->_async_result);
-#line 8289 "ui.c"
+#line 8290 "ui.c"
}
#line 1685 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_object_unref (_data_->_async_result);
#line 1685 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return FALSE;
-#line 8295 "ui.c"
+#line 8296 "ui.c"
}
@@ -8325,7 +8326,7 @@ static gboolean user_interface_real_window_state_event (GtkWidget* base, GdkEven
_result_ = GDK_EVENT_PROPAGATE;
#line 1707 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (GTK_WIDGET_CLASS (user_interface_parent_class)->window_state_event != NULL) {
-#line 8315 "ui.c"
+#line 8316 "ui.c"
GdkEventWindowState* _tmp0_ = NULL;
gboolean _tmp1_ = FALSE;
#line 1708 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -8334,7 +8335,7 @@ static gboolean user_interface_real_window_state_event (GtkWidget* base, GdkEven
_tmp1_ = GTK_WIDGET_CLASS (user_interface_parent_class)->window_state_event ((GtkWidget*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_application_window_get_type (), GtkApplicationWindow), _tmp0_);
#line 1708 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_result_ = _tmp1_;
-#line 8324 "ui.c"
+#line 8325 "ui.c"
}
#line 1710 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = event;
@@ -8342,7 +8343,7 @@ static gboolean user_interface_real_window_state_event (GtkWidget* base, GdkEven
_tmp3_ = _tmp2_->changed_mask;
#line 1710 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if ((_tmp3_ & GDK_WINDOW_STATE_MAXIMIZED) != 0) {
-#line 8332 "ui.c"
+#line 8333 "ui.c"
GdkEventWindowState* _tmp4_ = NULL;
GdkWindowState _tmp5_ = 0;
#line 1712 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -8353,7 +8354,7 @@ static gboolean user_interface_real_window_state_event (GtkWidget* base, GdkEven
self->priv->window_is_maximized = (_tmp5_ & GDK_WINDOW_STATE_MAXIMIZED) != 0;
#line 1713 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_save_state (self, FALSE);
-#line 8343 "ui.c"
+#line 8344 "ui.c"
}
#line 1715 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp6_ = event;
@@ -8361,7 +8362,7 @@ static gboolean user_interface_real_window_state_event (GtkWidget* base, GdkEven
_tmp7_ = _tmp6_->changed_mask;
#line 1715 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if ((_tmp7_ & GDK_WINDOW_STATE_FULLSCREEN) != 0) {
-#line 8351 "ui.c"
+#line 8352 "ui.c"
GdkEventWindowState* _tmp8_ = NULL;
GdkWindowState _tmp9_ = 0;
#line 1717 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -8372,13 +8373,13 @@ static gboolean user_interface_real_window_state_event (GtkWidget* base, GdkEven
self->priv->window_is_fullscreen = (_tmp9_ & GDK_WINDOW_STATE_FULLSCREEN) != 0;
#line 1718 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_save_state (self, FALSE);
-#line 8362 "ui.c"
+#line 8363 "ui.c"
}
#line 1721 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = _result_;
#line 1721 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 8368 "ui.c"
+#line 8369 "ui.c"
}
@@ -8397,7 +8398,7 @@ static gboolean user_interface_window_delete_event_cb (UserInterface* self, GtkW
result = !_tmp0_;
#line 1727 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 8387 "ui.c"
+#line 8388 "ui.c"
}
@@ -8406,7 +8407,7 @@ static gboolean _user_interface_window_delete_event_cb_gtk_widget_delete_event (
result = user_interface_window_delete_event_cb ((UserInterface*) self, _sender, event);
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 8396 "ui.c"
+#line 8397 "ui.c"
}
@@ -8450,7 +8451,7 @@ static void user_interface_page_size_changed_cb (UserInterface* self, Page* page
self->priv->default_page_dpi = _tmp8_;
#line 1735 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_save_state (self, FALSE);
-#line 8440 "ui.c"
+#line 8441 "ui.c"
}
@@ -8472,21 +8473,21 @@ static void user_interface_page_scan_direction_changed_cb (UserInterface* self,
self->priv->default_page_scan_direction = _tmp2_;
#line 1741 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_save_state (self, FALSE);
-#line 8462 "ui.c"
+#line 8463 "ui.c"
}
static void _user_interface_page_size_changed_cb_page_size_changed (Page* _sender, gpointer self) {
#line 1748 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_page_size_changed_cb ((UserInterface*) self, _sender);
-#line 8469 "ui.c"
+#line 8470 "ui.c"
}
static void _user_interface_page_scan_direction_changed_cb_page_scan_direction_changed (Page* _sender, gpointer self) {
#line 1749 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_page_scan_direction_changed_cb ((UserInterface*) self, _sender);
-#line 8476 "ui.c"
+#line 8477 "ui.c"
}
@@ -8525,7 +8526,7 @@ static void user_interface_page_added_cb (UserInterface* self, Book* book, Page*
g_signal_connect_object (_tmp5_, "scan-direction-changed", (GCallback) _user_interface_page_scan_direction_changed_cb_page_scan_direction_changed, self, 0);
#line 1751 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_update_page_menu (self);
-#line 8515 "ui.c"
+#line 8516 "ui.c"
}
@@ -8536,7 +8537,7 @@ static void user_interface_reordered_cb (UserInterface* self, Book* book) {
g_return_if_fail (book != NULL);
#line 1756 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_update_page_menu (self);
-#line 8526 "ui.c"
+#line 8527 "ui.c"
}
@@ -8576,11 +8577,11 @@ static void user_interface_page_removed_cb (UserInterface* self, Book* book, Pag
if (_tmp6_ == ((guint) 0)) {
#line 1766 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_add_default_page (self);
-#line 8566 "ui.c"
+#line 8567 "ui.c"
}
#line 1768 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_update_page_menu (self);
-#line 8570 "ui.c"
+#line 8571 "ui.c"
}
@@ -8658,7 +8659,7 @@ static void user_interface_set_dpi_combo (UserInterface* self, GtkComboBox* comb
_tmp10_ = scan_resolutions;
#line 1779 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp10__length1 = scan_resolutions_length1;
-#line 8648 "ui.c"
+#line 8649 "ui.c"
{
gint* dpi_collection = NULL;
gint dpi_collection_length1 = 0;
@@ -8670,11 +8671,11 @@ static void user_interface_set_dpi_combo (UserInterface* self, GtkComboBox* comb
dpi_collection_length1 = _tmp10__length1;
#line 1779 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
for (dpi_it = 0; dpi_it < _tmp10__length1; dpi_it = dpi_it + 1) {
-#line 8660 "ui.c"
+#line 8661 "ui.c"
gint dpi = 0;
#line 1779 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
dpi = dpi_collection[dpi_it];
-#line 8664 "ui.c"
+#line 8665 "ui.c"
{
gchar* label = NULL;
gint _tmp11_ = 0;
@@ -8694,7 +8695,7 @@ static void user_interface_set_dpi_combo (UserInterface* self, GtkComboBox* comb
_tmp12_ = default_dpi;
#line 1782 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp11_ == _tmp12_) {
-#line 8684 "ui.c"
+#line 8685 "ui.c"
const gchar* _tmp13_ = NULL;
gint _tmp14_ = 0;
gchar* _tmp15_ = NULL;
@@ -8708,14 +8709,14 @@ static void user_interface_set_dpi_combo (UserInterface* self, GtkComboBox* comb
_g_free0 (label);
#line 1784 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
label = _tmp15_;
-#line 8698 "ui.c"
+#line 8699 "ui.c"
} else {
gint _tmp16_ = 0;
#line 1785 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp16_ = dpi;
#line 1785 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp16_ == 75) {
-#line 8705 "ui.c"
+#line 8706 "ui.c"
const gchar* _tmp17_ = NULL;
gint _tmp18_ = 0;
gchar* _tmp19_ = NULL;
@@ -8729,14 +8730,14 @@ static void user_interface_set_dpi_combo (UserInterface* self, GtkComboBox* comb
_g_free0 (label);
#line 1787 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
label = _tmp19_;
-#line 8719 "ui.c"
+#line 8720 "ui.c"
} else {
gint _tmp20_ = 0;
#line 1788 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp20_ = dpi;
#line 1788 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp20_ == 1200) {
-#line 8726 "ui.c"
+#line 8727 "ui.c"
const gchar* _tmp21_ = NULL;
gint _tmp22_ = 0;
gchar* _tmp23_ = NULL;
@@ -8750,7 +8751,7 @@ static void user_interface_set_dpi_combo (UserInterface* self, GtkComboBox* comb
_g_free0 (label);
#line 1790 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
label = _tmp23_;
-#line 8740 "ui.c"
+#line 8741 "ui.c"
} else {
const gchar* _tmp24_ = NULL;
gint _tmp25_ = 0;
@@ -8765,7 +8766,7 @@ static void user_interface_set_dpi_combo (UserInterface* self, GtkComboBox* comb
_g_free0 (label);
#line 1793 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
label = _tmp26_;
-#line 8755 "ui.c"
+#line 8756 "ui.c"
}
}
}
@@ -8791,7 +8792,7 @@ static void user_interface_set_dpi_combo (UserInterface* self, GtkComboBox* comb
_tmp34_ = current_dpi;
#line 1799 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp33_ == _tmp34_) {
-#line 8781 "ui.c"
+#line 8782 "ui.c"
GtkComboBox* _tmp35_ = NULL;
GtkTreeIter _tmp36_ = {0};
#line 1800 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -8800,11 +8801,11 @@ static void user_interface_set_dpi_combo (UserInterface* self, GtkComboBox* comb
_tmp36_ = iter;
#line 1800 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_combo_box_set_active_iter (_tmp35_, &_tmp36_);
-#line 8790 "ui.c"
+#line 8791 "ui.c"
}
#line 1779 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (label);
-#line 8794 "ui.c"
+#line 8795 "ui.c"
}
}
}
@@ -8814,7 +8815,7 @@ static void user_interface_set_dpi_combo (UserInterface* self, GtkComboBox* comb
_g_object_unref0 (model);
#line 1771 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (renderer);
-#line 8804 "ui.c"
+#line 8805 "ui.c"
}
@@ -8877,26 +8878,26 @@ static void user_interface_needs_saving_cb (UserInterface* self, Book* book) {
_tmp14_ = _tmp13_;
#line 1809 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp14_) {
-#line 8867 "ui.c"
+#line 8868 "ui.c"
GtkMenuItem* _tmp15_ = NULL;
#line 1810 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp15_ = self->priv->save_as_menuitem;
#line 1810 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_set_sensitive ((GtkWidget*) _tmp15_, TRUE);
-#line 8873 "ui.c"
+#line 8874 "ui.c"
}
#line 1811 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp16_ = self->priv->copy_to_clipboard_menuitem;
#line 1811 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_set_sensitive ((GtkWidget*) _tmp16_, TRUE);
-#line 8879 "ui.c"
+#line 8880 "ui.c"
}
static void _user_interface_info_bar_response_cb_gtk_info_bar_response (GtkInfoBar* _sender, gint response_id, gpointer self) {
#line 1871 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_info_bar_response_cb ((UserInterface*) self, _sender, response_id);
-#line 8886 "ui.c"
+#line 8887 "ui.c"
}
@@ -8909,14 +8910,14 @@ static void __lambda14_ (UserInterface* self) {
_tmp1_ = user_interface_get_text_dpi (self);
#line 1915 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_settings_set_int (_tmp0_, "text-dpi", _tmp1_);
-#line 8899 "ui.c"
+#line 8900 "ui.c"
}
static void ___lambda14__gtk_combo_box_changed (GtkComboBox* _sender, gpointer self) {
#line 1915 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
__lambda14_ ((UserInterface*) self);
-#line 8906 "ui.c"
+#line 8907 "ui.c"
}
@@ -8929,14 +8930,14 @@ static void __lambda15_ (UserInterface* self) {
_tmp1_ = user_interface_get_photo_dpi (self);
#line 1920 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_settings_set_int (_tmp0_, "photo-dpi", _tmp1_);
-#line 8919 "ui.c"
+#line 8920 "ui.c"
}
static void ___lambda15__gtk_combo_box_changed (GtkComboBox* _sender, gpointer self) {
#line 1920 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
__lambda15_ ((UserInterface*) self);
-#line 8926 "ui.c"
+#line 8927 "ui.c"
}
@@ -8949,14 +8950,14 @@ static void __lambda16_ (UserInterface* self) {
_tmp1_ = user_interface_get_page_side (self);
#line 1930 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_settings_set_enum (_tmp0_, "page-side", (gint) _tmp1_);
-#line 8939 "ui.c"
+#line 8940 "ui.c"
}
static void ___lambda16__gtk_combo_box_changed (GtkComboBox* _sender, gpointer self) {
#line 1930 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
__lambda16_ ((UserInterface*) self);
-#line 8946 "ui.c"
+#line 8947 "ui.c"
}
@@ -8981,14 +8982,14 @@ static void __lambda17_ (UserInterface* self) {
_tmp3_ = self->priv->settings;
#line 1943 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_settings_set_int (_tmp3_, "paper-height", h);
-#line 8971 "ui.c"
+#line 8972 "ui.c"
}
static void ___lambda17__gtk_combo_box_changed (GtkComboBox* _sender, gpointer self) {
#line 1938 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
__lambda17_ ((UserInterface*) self);
-#line 8978 "ui.c"
+#line 8979 "ui.c"
}
@@ -9004,14 +9005,14 @@ static void __lambda18_ (UserInterface* self) {
_tmp2_ = _tmp1_;
#line 1954 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_settings_set_int (_tmp0_, "brightness", _tmp2_);
-#line 8994 "ui.c"
+#line 8995 "ui.c"
}
static void ___lambda18__gtk_adjustment_value_changed (GtkAdjustment* _sender, gpointer self) {
#line 1954 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
__lambda18_ ((UserInterface*) self);
-#line 9001 "ui.c"
+#line 9002 "ui.c"
}
@@ -9027,14 +9028,14 @@ static void __lambda19_ (UserInterface* self) {
_tmp2_ = _tmp1_;
#line 1964 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_settings_set_int (_tmp0_, "contrast", _tmp2_);
-#line 9017 "ui.c"
+#line 9018 "ui.c"
}
static void ___lambda19__gtk_adjustment_value_changed (GtkAdjustment* _sender, gpointer self) {
#line 1964 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
__lambda19_ ((UserInterface*) self);
-#line 9024 "ui.c"
+#line 9025 "ui.c"
}
@@ -9050,42 +9051,42 @@ static void __lambda20_ (UserInterface* self) {
_tmp2_ = _tmp1_;
#line 1974 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_settings_set_int (_tmp0_, "jpeg-quality", _tmp2_);
-#line 9040 "ui.c"
+#line 9041 "ui.c"
}
static void ___lambda20__gtk_adjustment_value_changed (GtkAdjustment* _sender, gpointer self) {
#line 1974 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
__lambda20_ ((UserInterface*) self);
-#line 9047 "ui.c"
+#line 9048 "ui.c"
}
static void _user_interface_page_selected_cb_book_view_page_selected (BookView* _sender, Page* page, gpointer self) {
#line 1983 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_page_selected_cb ((UserInterface*) self, _sender, page);
-#line 9054 "ui.c"
+#line 9055 "ui.c"
}
static void _user_interface_show_page_cb_book_view_show_page (BookView* _sender, Page* page, gpointer self) {
#line 1984 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_show_page_cb ((UserInterface*) self, _sender, page);
-#line 9061 "ui.c"
+#line 9062 "ui.c"
}
static void _user_interface_show_page_menu_cb_book_view_show_menu (BookView* _sender, gpointer self) {
#line 1985 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_show_page_menu_cb ((UserInterface*) self, _sender);
-#line 9068 "ui.c"
+#line 9069 "ui.c"
}
static void _user_interface_book_saving_cb_book_saving (Book* _sender, gint i, gpointer self) {
#line 2009 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_book_saving_cb ((UserInterface*) self, i);
-#line 9075 "ui.c"
+#line 9076 "ui.c"
}
@@ -9095,50 +9096,53 @@ static void user_interface_load (UserInterface* self) {
GApplication* _tmp1_ = NULL;
GtkApplication* _tmp2_ = NULL;
gboolean _tmp3_ = FALSE;
- gboolean _tmp4_ = FALSE;
- gboolean _tmp5_ = FALSE;
- gboolean _tmp6_ = FALSE;
- GtkApplication* _tmp59_ = NULL;
- GtkInfoBar* _tmp60_ = NULL;
- GtkInfoBar* _tmp61_ = NULL;
- GtkBox* _tmp62_ = NULL;
- GtkInfoBar* _tmp63_ = NULL;
+ GtkApplication* _tmp53_ = NULL;
+ GtkInfoBar* _tmp54_ = NULL;
+ GtkInfoBar* _tmp55_ = NULL;
+ GtkBox* _tmp56_ = NULL;
+ GtkInfoBar* _tmp57_ = NULL;
GtkBox* hbox = NULL;
- GtkBox* _tmp64_ = NULL;
+ GtkBox* _tmp58_ = NULL;
GtkContainer* content_area = NULL;
- GtkInfoBar* _tmp65_ = NULL;
- GtkContainer* _tmp66_ = NULL;
- GtkContainer* _tmp67_ = NULL;
- GtkContainer* _tmp68_ = NULL;
- GtkBox* _tmp69_ = NULL;
- GtkBox* _tmp70_ = NULL;
- GtkImage* _tmp71_ = NULL;
- GtkBox* _tmp72_ = NULL;
- GtkImage* _tmp73_ = NULL;
- GtkImage* _tmp74_ = NULL;
- GtkLabel* _tmp75_ = NULL;
- GtkLabel* _tmp76_ = NULL;
- GtkBox* _tmp77_ = NULL;
- GtkLabel* _tmp78_ = NULL;
- GtkLabel* _tmp79_ = NULL;
- GtkInfoBar* _tmp80_ = NULL;
- const gchar* _tmp81_ = NULL;
- GtkButton* _tmp82_ = NULL;
- GtkButton* _tmp83_ = NULL;
- GtkInfoBar* _tmp84_ = NULL;
- const gchar* _tmp85_ = NULL;
- GtkButton* _tmp86_ = NULL;
- GtkButton* _tmp87_ = NULL;
- GtkInfoBar* _tmp88_ = NULL;
- const gchar* _tmp89_ = NULL;
- GtkButton* _tmp90_ = NULL;
- GtkButton* _tmp91_ = NULL;
+ GtkInfoBar* _tmp59_ = NULL;
+ GtkContainer* _tmp60_ = NULL;
+ GtkContainer* _tmp61_ = NULL;
+ GtkContainer* _tmp62_ = NULL;
+ GtkBox* _tmp63_ = NULL;
+ GtkBox* _tmp64_ = NULL;
+ GtkImage* _tmp65_ = NULL;
+ GtkBox* _tmp66_ = NULL;
+ GtkImage* _tmp67_ = NULL;
+ GtkImage* _tmp68_ = NULL;
+ GtkLabel* _tmp69_ = NULL;
+ GtkLabel* _tmp70_ = NULL;
+ GtkBox* _tmp71_ = NULL;
+ GtkLabel* _tmp72_ = NULL;
+ GtkLabel* _tmp73_ = NULL;
+ GtkInfoBar* _tmp74_ = NULL;
+ const gchar* _tmp75_ = NULL;
+ GtkButton* _tmp76_ = NULL;
+ GtkButton* _tmp77_ = NULL;
+ GtkInfoBar* _tmp78_ = NULL;
+ const gchar* _tmp79_ = NULL;
+ GtkButton* _tmp80_ = NULL;
+ GtkButton* _tmp81_ = NULL;
+ GtkInfoBar* _tmp82_ = NULL;
+ const gchar* _tmp83_ = NULL;
+ GtkButton* _tmp84_ = NULL;
+ GtkButton* _tmp85_ = NULL;
GtkTreeIter iter = {0};
- GtkListStore* _tmp92_ = NULL;
- GtkTreeIter _tmp93_ = {0};
- GtkListStore* _tmp94_ = NULL;
- GtkTreeIter _tmp95_ = {0};
- const gchar* _tmp96_ = NULL;
+ GtkListStore* _tmp86_ = NULL;
+ GtkTreeIter _tmp87_ = {0};
+ GtkListStore* _tmp88_ = NULL;
+ GtkTreeIter _tmp89_ = {0};
+ const gchar* _tmp90_ = NULL;
+ GtkListStore* _tmp91_ = NULL;
+ GtkTreeIter _tmp92_ = {0};
+ GtkListStore* _tmp93_ = NULL;
+ GtkTreeIter _tmp94_ = {0};
+ GtkListStore* _tmp95_ = NULL;
+ GtkTreeIter _tmp96_ = {0};
GtkListStore* _tmp97_ = NULL;
GtkTreeIter _tmp98_ = {0};
GtkListStore* _tmp99_ = NULL;
@@ -9157,145 +9161,139 @@ static void user_interface_load (UserInterface* self) {
GtkTreeIter _tmp112_ = {0};
GtkListStore* _tmp113_ = NULL;
GtkTreeIter _tmp114_ = {0};
- GtkListStore* _tmp115_ = NULL;
- GtkTreeIter _tmp116_ = {0};
- GtkListStore* _tmp117_ = NULL;
- GtkTreeIter _tmp118_ = {0};
- GtkListStore* _tmp119_ = NULL;
- GtkTreeIter _tmp120_ = {0};
gint dpi = 0;
+ GSettings* _tmp115_ = NULL;
+ gint _tmp116_ = 0;
+ gint _tmp117_ = 0;
+ GtkComboBox* _tmp118_ = NULL;
+ gint _tmp119_ = 0;
+ GtkComboBox* _tmp120_ = NULL;
GSettings* _tmp121_ = NULL;
gint _tmp122_ = 0;
gint _tmp123_ = 0;
GtkComboBox* _tmp124_ = NULL;
gint _tmp125_ = 0;
GtkComboBox* _tmp126_ = NULL;
- GSettings* _tmp127_ = NULL;
- gint _tmp128_ = 0;
- gint _tmp129_ = 0;
- GtkComboBox* _tmp130_ = NULL;
- gint _tmp131_ = 0;
- GtkComboBox* _tmp132_ = NULL;
GtkCellRendererText* renderer = NULL;
- GtkCellRendererText* _tmp133_ = NULL;
- GtkComboBox* _tmp134_ = NULL;
- GtkCellRendererText* _tmp135_ = NULL;
- GtkComboBox* _tmp136_ = NULL;
- GtkCellRendererText* _tmp137_ = NULL;
- GtkCellRendererText* _tmp138_ = NULL;
+ GtkCellRendererText* _tmp127_ = NULL;
+ GtkComboBox* _tmp128_ = NULL;
+ GtkCellRendererText* _tmp129_ = NULL;
+ GtkComboBox* _tmp130_ = NULL;
+ GtkCellRendererText* _tmp131_ = NULL;
+ GtkCellRendererText* _tmp132_ = NULL;
+ GtkComboBox* _tmp133_ = NULL;
+ GtkCellRendererText* _tmp134_ = NULL;
+ GtkComboBox* _tmp135_ = NULL;
+ GtkCellRendererText* _tmp136_ = NULL;
+ GSettings* _tmp137_ = NULL;
+ gint _tmp138_ = 0;
GtkComboBox* _tmp139_ = NULL;
GtkCellRendererText* _tmp140_ = NULL;
GtkComboBox* _tmp141_ = NULL;
GtkCellRendererText* _tmp142_ = NULL;
- GSettings* _tmp143_ = NULL;
- gint _tmp144_ = 0;
- GtkComboBox* _tmp145_ = NULL;
- GtkCellRendererText* _tmp146_ = NULL;
- GtkComboBox* _tmp147_ = NULL;
- GtkCellRendererText* _tmp148_ = NULL;
- GtkComboBox* _tmp149_ = NULL;
- GtkCellRendererText* _tmp150_ = NULL;
+ GtkComboBox* _tmp143_ = NULL;
+ GtkCellRendererText* _tmp144_ = NULL;
gint paper_width = 0;
- GSettings* _tmp151_ = NULL;
- gint _tmp152_ = 0;
+ GSettings* _tmp145_ = NULL;
+ gint _tmp146_ = 0;
gint paper_height = 0;
- GSettings* _tmp153_ = NULL;
- gint _tmp154_ = 0;
- gint _tmp155_ = 0;
- gint _tmp156_ = 0;
- GtkComboBox* _tmp157_ = NULL;
+ GSettings* _tmp147_ = NULL;
+ gint _tmp148_ = 0;
+ gint _tmp149_ = 0;
+ gint _tmp150_ = 0;
+ GtkComboBox* _tmp151_ = NULL;
gdouble lower = 0.0;
- GtkAdjustment* _tmp158_ = NULL;
- gdouble _tmp159_ = 0.0;
- gdouble _tmp160_ = 0.0;
+ GtkAdjustment* _tmp152_ = NULL;
+ gdouble _tmp153_ = 0.0;
+ gdouble _tmp154_ = 0.0;
gchar* darker_label = NULL;
- const gchar* _tmp161_ = NULL;
- gchar* _tmp162_ = NULL;
+ const gchar* _tmp155_ = NULL;
+ gchar* _tmp156_ = NULL;
gdouble upper = 0.0;
- GtkAdjustment* _tmp163_ = NULL;
- gdouble _tmp164_ = 0.0;
- gdouble _tmp165_ = 0.0;
+ GtkAdjustment* _tmp157_ = NULL;
+ gdouble _tmp158_ = 0.0;
+ gdouble _tmp159_ = 0.0;
gchar* lighter_label = NULL;
- const gchar* _tmp166_ = NULL;
- gchar* _tmp167_ = NULL;
- GtkScale* _tmp168_ = NULL;
- gdouble _tmp169_ = 0.0;
- const gchar* _tmp170_ = NULL;
- GtkScale* _tmp171_ = NULL;
- GtkScale* _tmp172_ = NULL;
+ const gchar* _tmp160_ = NULL;
+ gchar* _tmp161_ = NULL;
+ GtkScale* _tmp162_ = NULL;
+ gdouble _tmp163_ = 0.0;
+ const gchar* _tmp164_ = NULL;
+ GtkScale* _tmp165_ = NULL;
+ GtkScale* _tmp166_ = NULL;
+ gdouble _tmp167_ = 0.0;
+ const gchar* _tmp168_ = NULL;
+ GSettings* _tmp169_ = NULL;
+ gint _tmp170_ = 0;
+ GtkAdjustment* _tmp171_ = NULL;
+ GtkAdjustment* _tmp172_ = NULL;
gdouble _tmp173_ = 0.0;
- const gchar* _tmp174_ = NULL;
- GSettings* _tmp175_ = NULL;
- gint _tmp176_ = 0;
+ gdouble _tmp174_ = 0.0;
+ gchar* less_label = NULL;
+ const gchar* _tmp175_ = NULL;
+ gchar* _tmp176_ = NULL;
GtkAdjustment* _tmp177_ = NULL;
- GtkAdjustment* _tmp178_ = NULL;
+ gdouble _tmp178_ = 0.0;
gdouble _tmp179_ = 0.0;
- gdouble _tmp180_ = 0.0;
- gchar* less_label = NULL;
- const gchar* _tmp181_ = NULL;
- gchar* _tmp182_ = NULL;
- GtkAdjustment* _tmp183_ = NULL;
- gdouble _tmp184_ = 0.0;
- gdouble _tmp185_ = 0.0;
gchar* more_label = NULL;
- const gchar* _tmp186_ = NULL;
- gchar* _tmp187_ = NULL;
- GtkScale* _tmp188_ = NULL;
- gdouble _tmp189_ = 0.0;
- const gchar* _tmp190_ = NULL;
- GtkScale* _tmp191_ = NULL;
- GtkScale* _tmp192_ = NULL;
+ const gchar* _tmp180_ = NULL;
+ gchar* _tmp181_ = NULL;
+ GtkScale* _tmp182_ = NULL;
+ gdouble _tmp183_ = 0.0;
+ const gchar* _tmp184_ = NULL;
+ GtkScale* _tmp185_ = NULL;
+ GtkScale* _tmp186_ = NULL;
+ gdouble _tmp187_ = 0.0;
+ const gchar* _tmp188_ = NULL;
+ GSettings* _tmp189_ = NULL;
+ gint _tmp190_ = 0;
+ GtkAdjustment* _tmp191_ = NULL;
+ GtkAdjustment* _tmp192_ = NULL;
gdouble _tmp193_ = 0.0;
- const gchar* _tmp194_ = NULL;
- GSettings* _tmp195_ = NULL;
- gint _tmp196_ = 0;
+ gdouble _tmp194_ = 0.0;
+ gchar* minimum_label = NULL;
+ const gchar* _tmp195_ = NULL;
+ gchar* _tmp196_ = NULL;
GtkAdjustment* _tmp197_ = NULL;
- GtkAdjustment* _tmp198_ = NULL;
+ gdouble _tmp198_ = 0.0;
gdouble _tmp199_ = 0.0;
- gdouble _tmp200_ = 0.0;
- gchar* minimum_label = NULL;
- const gchar* _tmp201_ = NULL;
- gchar* _tmp202_ = NULL;
- GtkAdjustment* _tmp203_ = NULL;
- gdouble _tmp204_ = 0.0;
- gdouble _tmp205_ = 0.0;
gchar* maximum_label = NULL;
- const gchar* _tmp206_ = NULL;
- gchar* _tmp207_ = NULL;
- GtkScale* _tmp208_ = NULL;
- gdouble _tmp209_ = 0.0;
- const gchar* _tmp210_ = NULL;
- GtkScale* _tmp211_ = NULL;
- GtkScale* _tmp212_ = NULL;
- gdouble _tmp213_ = 0.0;
- const gchar* _tmp214_ = NULL;
- GSettings* _tmp215_ = NULL;
- gint _tmp216_ = 0;
- GtkAdjustment* _tmp217_ = NULL;
+ const gchar* _tmp200_ = NULL;
+ gchar* _tmp201_ = NULL;
+ GtkScale* _tmp202_ = NULL;
+ gdouble _tmp203_ = 0.0;
+ const gchar* _tmp204_ = NULL;
+ GtkScale* _tmp205_ = NULL;
+ GtkScale* _tmp206_ = NULL;
+ gdouble _tmp207_ = 0.0;
+ const gchar* _tmp208_ = NULL;
+ GSettings* _tmp209_ = NULL;
+ gint _tmp210_ = 0;
+ GtkAdjustment* _tmp211_ = NULL;
gchar* document_type = NULL;
- GSettings* _tmp218_ = NULL;
- gchar* _tmp219_ = NULL;
- const gchar* _tmp220_ = NULL;
- Book* _tmp222_ = NULL;
+ GSettings* _tmp212_ = NULL;
+ gchar* _tmp213_ = NULL;
+ const gchar* _tmp214_ = NULL;
+ Book* _tmp216_ = NULL;
+ BookView* _tmp217_ = NULL;
+ BookView* _tmp218_ = NULL;
+ GtkBox* _tmp219_ = NULL;
+ BookView* _tmp220_ = NULL;
+ BookView* _tmp221_ = NULL;
+ BookView* _tmp222_ = NULL;
BookView* _tmp223_ = NULL;
BookView* _tmp224_ = NULL;
- GtkBox* _tmp225_ = NULL;
- BookView* _tmp226_ = NULL;
- BookView* _tmp227_ = NULL;
- BookView* _tmp228_ = NULL;
- BookView* _tmp229_ = NULL;
- BookView* _tmp230_ = NULL;
- GtkDialog* _tmp231_ = NULL;
- GtkDialog* _tmp232_ = NULL;
- gint _tmp233_ = 0;
- gint _tmp234_ = 0;
- gint _tmp235_ = 0;
- gint _tmp236_ = 0;
- gboolean _tmp237_ = FALSE;
- gboolean _tmp238_ = FALSE;
- const gchar* _tmp239_ = NULL;
- ProgressBarDialog* _tmp240_ = NULL;
- Book* _tmp241_ = NULL;
+ GtkDialog* _tmp225_ = NULL;
+ GtkDialog* _tmp226_ = NULL;
+ gint _tmp227_ = 0;
+ gint _tmp228_ = 0;
+ gint _tmp229_ = 0;
+ gint _tmp230_ = 0;
+ gboolean _tmp231_ = FALSE;
+ gboolean _tmp232_ = FALSE;
+ const gchar* _tmp233_ = NULL;
+ ProgressBarDialog* _tmp234_ = NULL;
+ Book* _tmp235_ = NULL;
#line 1814 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
#line 1816 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -9311,911 +9309,872 @@ static void user_interface_load (UserInterface* self) {
#line 1820 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
app = _tmp2_;
#line 1822 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp6_ = user_interface_is_desktop (self, "Unity");
-#line 1822 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- if (_tmp6_) {
-#line 1822 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp5_ = TRUE;
-#line 9306 "ui.c"
- } else {
- gboolean _tmp7_ = FALSE;
-#line 1822 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp7_ = user_interface_is_desktop (self, "XFCE");
-#line 1822 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp5_ = _tmp7_;
-#line 9313 "ui.c"
- }
-#line 1822 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- if (_tmp5_) {
-#line 1822 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp4_ = TRUE;
-#line 9319 "ui.c"
- } else {
- gboolean _tmp8_ = FALSE;
-#line 1822 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp8_ = user_interface_is_desktop (self, "MATE");
-#line 1822 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp4_ = _tmp8_;
-#line 9326 "ui.c"
- }
-#line 1822 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- if (_tmp4_) {
-#line 1822 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp3_ = TRUE;
-#line 9332 "ui.c"
- } else {
- gboolean _tmp9_ = FALSE;
-#line 1822 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp9_ = user_interface_is_desktop (self, "LXDE");
-#line 1822 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp3_ = _tmp9_;
-#line 9339 "ui.c"
- }
+ _tmp3_ = user_interface_is_traditional_desktop (self);
#line 1822 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp3_) {
-#line 9343 "ui.c"
- GtkMenuBar* _tmp10_ = NULL;
- GtkToolbar* _tmp11_ = NULL;
+#line 9302 "ui.c"
+ GtkMenuBar* _tmp4_ = NULL;
+ GtkToolbar* _tmp5_ = NULL;
#line 1824 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_window_set_titlebar ((GtkWindow*) self, NULL);
#line 1825 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp10_ = self->priv->menubar;
+ _tmp4_ = self->priv->menubar;
#line 1825 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- gtk_widget_set_visible ((GtkWidget*) _tmp10_, TRUE);
+ gtk_widget_set_visible ((GtkWidget*) _tmp4_, TRUE);
#line 1826 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp11_ = self->priv->toolbar;
+ _tmp5_ = self->priv->toolbar;
#line 1826 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- gtk_widget_set_visible ((GtkWidget*) _tmp11_, TRUE);
-#line 9356 "ui.c"
+ gtk_widget_set_visible ((GtkWidget*) _tmp5_, TRUE);
+#line 9315 "ui.c"
} else {
- GtkApplication* _tmp12_ = NULL;
+ GtkApplication* _tmp6_ = NULL;
GMenu* appmenu = NULL;
- GMenu* _tmp13_ = NULL;
+ GMenu* _tmp7_ = NULL;
GMenu* section = NULL;
+ GMenu* _tmp8_ = NULL;
+ GMenu* _tmp9_ = NULL;
+ GMenu* _tmp10_ = NULL;
+ GMenu* _tmp11_ = NULL;
+ const gchar* _tmp12_ = NULL;
+ GMenu* _tmp13_ = NULL;
GMenu* _tmp14_ = NULL;
GMenu* _tmp15_ = NULL;
+ GMenu* menu = NULL;
GMenu* _tmp16_ = NULL;
GMenu* _tmp17_ = NULL;
const gchar* _tmp18_ = NULL;
GMenu* _tmp19_ = NULL;
GMenu* _tmp20_ = NULL;
- GMenu* _tmp21_ = NULL;
- GMenu* menu = NULL;
+ const gchar* _tmp21_ = NULL;
GMenu* _tmp22_ = NULL;
- GMenu* _tmp23_ = NULL;
- const gchar* _tmp24_ = NULL;
- GMenu* _tmp25_ = NULL;
+ const gchar* _tmp23_ = NULL;
+ GMenu* _tmp24_ = NULL;
+ const gchar* _tmp25_ = NULL;
GMenu* _tmp26_ = NULL;
const gchar* _tmp27_ = NULL;
GMenu* _tmp28_ = NULL;
const gchar* _tmp29_ = NULL;
GMenu* _tmp30_ = NULL;
- const gchar* _tmp31_ = NULL;
+ GMenu* _tmp31_ = NULL;
GMenu* _tmp32_ = NULL;
- const gchar* _tmp33_ = NULL;
- GMenu* _tmp34_ = NULL;
- const gchar* _tmp35_ = NULL;
+ GMenu* _tmp33_ = NULL;
+ const gchar* _tmp34_ = NULL;
+ GMenu* _tmp35_ = NULL;
GMenu* _tmp36_ = NULL;
GMenu* _tmp37_ = NULL;
GMenu* _tmp38_ = NULL;
- GMenu* _tmp39_ = NULL;
- const gchar* _tmp40_ = NULL;
- GMenu* _tmp41_ = NULL;
+ const gchar* _tmp39_ = NULL;
+ GMenu* _tmp40_ = NULL;
+ const gchar* _tmp41_ = NULL;
GMenu* _tmp42_ = NULL;
- GMenu* _tmp43_ = NULL;
- GMenu* _tmp44_ = NULL;
- const gchar* _tmp45_ = NULL;
- GMenu* _tmp46_ = NULL;
- const gchar* _tmp47_ = NULL;
- GMenu* _tmp48_ = NULL;
- const gchar* _tmp49_ = NULL;
+ const gchar* _tmp43_ = NULL;
+ GtkApplication* _tmp44_ = NULL;
+ GMenu* _tmp45_ = NULL;
+ GtkApplication* _tmp46_ = NULL;
+ GtkApplication* _tmp47_ = NULL;
+ GtkApplication* _tmp48_ = NULL;
+ GtkApplication* _tmp49_ = NULL;
GtkApplication* _tmp50_ = NULL;
- GMenu* _tmp51_ = NULL;
+ GtkApplication* _tmp51_ = NULL;
GtkApplication* _tmp52_ = NULL;
- GtkApplication* _tmp53_ = NULL;
- GtkApplication* _tmp54_ = NULL;
- GtkApplication* _tmp55_ = NULL;
- GtkApplication* _tmp56_ = NULL;
- GtkApplication* _tmp57_ = NULL;
- GtkApplication* _tmp58_ = NULL;
#line 1830 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp12_ = app;
+ _tmp6_ = app;
#line 1830 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- g_action_map_add_action_entries ((GActionMap*) _tmp12_, USER_INTERFACE_action_entries, G_N_ELEMENTS (USER_INTERFACE_action_entries), self);
+ g_action_map_add_action_entries ((GActionMap*) _tmp6_, USER_INTERFACE_action_entries, G_N_ELEMENTS (USER_INTERFACE_action_entries), self);
#line 1832 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp13_ = g_menu_new ();
+ _tmp7_ = g_menu_new ();
#line 1832 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- appmenu = _tmp13_;
+ appmenu = _tmp7_;
#line 1833 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp14_ = g_menu_new ();
+ _tmp8_ = g_menu_new ();
#line 1833 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- section = _tmp14_;
+ section = _tmp8_;
#line 1834 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp15_ = appmenu;
+ _tmp9_ = appmenu;
#line 1834 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp16_ = section;
+ _tmp10_ = section;
#line 1834 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- g_menu_append_section (_tmp15_, NULL, (GMenuModel*) _tmp16_);
+ g_menu_append_section (_tmp9_, NULL, (GMenuModel*) _tmp10_);
#line 1835 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp17_ = section;
+ _tmp11_ = section;
#line 1835 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp18_ = _ ("New Document");
+ _tmp12_ = _ ("New Document");
#line 1835 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- g_menu_append (_tmp17_, _tmp18_, "app.new_document");
+ g_menu_append (_tmp11_, _tmp12_, "app.new_document");
#line 1837 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp19_ = g_menu_new ();
+ _tmp13_ = g_menu_new ();
#line 1837 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (section);
#line 1837 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- section = _tmp19_;
+ section = _tmp13_;
#line 1838 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp20_ = appmenu;
+ _tmp14_ = appmenu;
#line 1838 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp21_ = section;
+ _tmp15_ = section;
#line 1838 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- g_menu_append_section (_tmp20_, NULL, (GMenuModel*) _tmp21_);
+ g_menu_append_section (_tmp14_, NULL, (GMenuModel*) _tmp15_);
#line 1839 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp22_ = g_menu_new ();
+ _tmp16_ = g_menu_new ();
#line 1839 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- menu = _tmp22_;
+ menu = _tmp16_;
#line 1840 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp23_ = section;
+ _tmp17_ = section;
#line 1840 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp24_ = _ ("Document");
+ _tmp18_ = _ ("Document");
#line 1840 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp25_ = menu;
+ _tmp19_ = menu;
#line 1840 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- g_menu_append_submenu (_tmp23_, _tmp24_, (GMenuModel*) _tmp25_);
+ g_menu_append_submenu (_tmp17_, _tmp18_, (GMenuModel*) _tmp19_);
#line 1841 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp26_ = menu;
+ _tmp20_ = menu;
#line 1841 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp27_ = _ ("Reorder Pages");
+ _tmp21_ = _ ("Reorder Pages");
#line 1841 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- g_menu_append (_tmp26_, _tmp27_, "app.reorder");
+ g_menu_append (_tmp20_, _tmp21_, "app.reorder");
#line 1842 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp28_ = menu;
+ _tmp22_ = menu;
#line 1842 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp29_ = _ ("Save");
+ _tmp23_ = _ ("Save");
#line 1842 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- g_menu_append (_tmp28_, _tmp29_, "app.save");
+ g_menu_append (_tmp22_, _tmp23_, "app.save");
#line 1843 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp30_ = menu;
+ _tmp24_ = menu;
#line 1843 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp31_ = _ ("Save As...");
+ _tmp25_ = _ ("Save As...");
#line 1843 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- g_menu_append (_tmp30_, _tmp31_, "app.save_as");
+ g_menu_append (_tmp24_, _tmp25_, "app.save_as");
#line 1844 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp32_ = menu;
+ _tmp26_ = menu;
#line 1844 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp33_ = _ ("Email...");
+ _tmp27_ = _ ("Email...");
#line 1844 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- g_menu_append (_tmp32_, _tmp33_, "app.email");
+ g_menu_append (_tmp26_, _tmp27_, "app.email");
#line 1845 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp34_ = menu;
+ _tmp28_ = menu;
#line 1845 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp35_ = _ ("Print...");
+ _tmp29_ = _ ("Print...");
#line 1845 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- g_menu_append (_tmp34_, _tmp35_, "app.print");
+ g_menu_append (_tmp28_, _tmp29_, "app.print");
#line 1847 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp36_ = g_menu_new ();
+ _tmp30_ = g_menu_new ();
#line 1847 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (section);
#line 1847 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- section = _tmp36_;
+ section = _tmp30_;
#line 1848 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp37_ = appmenu;
+ _tmp31_ = appmenu;
#line 1848 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp38_ = section;
+ _tmp32_ = section;
#line 1848 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- g_menu_append_section (_tmp37_, NULL, (GMenuModel*) _tmp38_);
+ g_menu_append_section (_tmp31_, NULL, (GMenuModel*) _tmp32_);
#line 1849 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp39_ = section;
+ _tmp33_ = section;
#line 1849 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp40_ = _ ("Preferences");
+ _tmp34_ = _ ("Preferences");
#line 1849 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- g_menu_append (_tmp39_, _tmp40_, "app.preferences");
+ g_menu_append (_tmp33_, _tmp34_, "app.preferences");
#line 1851 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp41_ = g_menu_new ();
+ _tmp35_ = g_menu_new ();
#line 1851 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (section);
#line 1851 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- section = _tmp41_;
+ section = _tmp35_;
#line 1852 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp42_ = appmenu;
+ _tmp36_ = appmenu;
#line 1852 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp43_ = section;
+ _tmp37_ = section;
#line 1852 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- g_menu_append_section (_tmp42_, NULL, (GMenuModel*) _tmp43_);
+ g_menu_append_section (_tmp36_, NULL, (GMenuModel*) _tmp37_);
#line 1853 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp44_ = section;
+ _tmp38_ = section;
#line 1853 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp45_ = _ ("Help");
+ _tmp39_ = _ ("Help");
#line 1853 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- g_menu_append (_tmp44_, _tmp45_, "app.help");
+ g_menu_append (_tmp38_, _tmp39_, "app.help");
#line 1854 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp46_ = section;
+ _tmp40_ = section;
#line 1854 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp47_ = _ ("About");
+ _tmp41_ = _ ("About");
#line 1854 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- g_menu_append (_tmp46_, _tmp47_, "app.about");
+ g_menu_append (_tmp40_, _tmp41_, "app.about");
#line 1855 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp48_ = section;
+ _tmp42_ = section;
#line 1855 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp49_ = _ ("Quit");
+ _tmp43_ = _ ("Quit");
#line 1855 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- g_menu_append (_tmp48_, _tmp49_, "app.quit");
+ g_menu_append (_tmp42_, _tmp43_, "app.quit");
#line 1857 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp50_ = app;
+ _tmp44_ = app;
#line 1857 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp51_ = appmenu;
+ _tmp45_ = appmenu;
#line 1857 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- gtk_application_set_app_menu (_tmp50_, (GMenuModel*) _tmp51_);
+ gtk_application_set_app_menu (_tmp44_, (GMenuModel*) _tmp45_);
#line 1859 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp52_ = app;
+ _tmp46_ = app;
#line 1859 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- gtk_application_add_accelerator (_tmp52_, "<Ctrl>N", "app.new_document", NULL);
+ gtk_application_add_accelerator (_tmp46_, "<Ctrl>N", "app.new_document", NULL);
#line 1860 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp53_ = app;
+ _tmp47_ = app;
#line 1860 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- gtk_application_add_accelerator (_tmp53_, "<Ctrl>S", "app.save", NULL);
+ gtk_application_add_accelerator (_tmp47_, "<Ctrl>S", "app.save", NULL);
#line 1861 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp54_ = app;
+ _tmp48_ = app;
#line 1861 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- gtk_application_add_accelerator (_tmp54_, "<Shift><Ctrl>S", "app.save_as", NULL);
+ gtk_application_add_accelerator (_tmp48_, "<Shift><Ctrl>S", "app.save_as", NULL);
#line 1862 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp55_ = app;
+ _tmp49_ = app;
#line 1862 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- gtk_application_add_accelerator (_tmp55_, "<Ctrl>E", "app.email", NULL);
+ gtk_application_add_accelerator (_tmp49_, "<Ctrl>E", "app.email", NULL);
#line 1863 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp56_ = app;
+ _tmp50_ = app;
#line 1863 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- gtk_application_add_accelerator (_tmp56_, "<Ctrl>P", "app.print", NULL);
+ gtk_application_add_accelerator (_tmp50_, "<Ctrl>P", "app.print", NULL);
#line 1864 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp57_ = app;
+ _tmp51_ = app;
#line 1864 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- gtk_application_add_accelerator (_tmp57_, "F1", "app.help", NULL);
+ gtk_application_add_accelerator (_tmp51_, "F1", "app.help", NULL);
#line 1865 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp58_ = app;
+ _tmp52_ = app;
#line 1865 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- gtk_application_add_accelerator (_tmp58_, "<Ctrl>Q", "app.quit", NULL);
+ gtk_application_add_accelerator (_tmp52_, "<Ctrl>Q", "app.quit", NULL);
#line 1822 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (menu);
#line 1822 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (section);
#line 1822 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (appmenu);
-#line 9574 "ui.c"
+#line 9533 "ui.c"
}
#line 1867 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp59_ = app;
+ _tmp53_ = app;
#line 1867 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- gtk_application_add_window (_tmp59_, (GtkWindow*) self);
+ gtk_application_add_window (_tmp53_, (GtkWindow*) self);
#line 1870 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp60_ = (GtkInfoBar*) gtk_info_bar_new ();
+ _tmp54_ = (GtkInfoBar*) gtk_info_bar_new ();
#line 1870 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- g_object_ref_sink (_tmp60_);
+ g_object_ref_sink (_tmp54_);
#line 1870 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->info_bar);
#line 1870 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- self->priv->info_bar = _tmp60_;
+ self->priv->info_bar = _tmp54_;
#line 1871 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp61_ = self->priv->info_bar;
+ _tmp55_ = self->priv->info_bar;
#line 1871 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- g_signal_connect_object (_tmp61_, "response", (GCallback) _user_interface_info_bar_response_cb_gtk_info_bar_response, self, 0);
+ g_signal_connect_object (_tmp55_, "response", (GCallback) _user_interface_info_bar_response_cb_gtk_info_bar_response, self, 0);
#line 1872 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp62_ = self->priv->main_vbox;
+ _tmp56_ = self->priv->main_vbox;
#line 1872 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp63_ = self->priv->info_bar;
+ _tmp57_ = self->priv->info_bar;
#line 1872 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- gtk_box_pack_start (_tmp62_, (GtkWidget*) _tmp63_, FALSE, TRUE, (guint) 0);
+ gtk_box_pack_start (_tmp56_, (GtkWidget*) _tmp57_, FALSE, TRUE, (guint) 0);
#line 1873 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp64_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
+ _tmp58_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
#line 1873 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- g_object_ref_sink (_tmp64_);
+ g_object_ref_sink (_tmp58_);
#line 1873 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- hbox = _tmp64_;
+ hbox = _tmp58_;
#line 1874 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp65_ = self->priv->info_bar;
+ _tmp59_ = self->priv->info_bar;
#line 1874 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp66_ = gtk_info_bar_get_content_area (_tmp65_);
+ _tmp60_ = gtk_info_bar_get_content_area (_tmp59_);
#line 1874 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp67_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp66_, gtk_container_get_type ()) ? ((GtkContainer*) _tmp66_) : NULL);
+ _tmp61_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp60_, gtk_container_get_type ()) ? ((GtkContainer*) _tmp60_) : NULL);
#line 1874 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- content_area = _tmp67_;
+ content_area = _tmp61_;
#line 1875 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp68_ = content_area;
+ _tmp62_ = content_area;
#line 1875 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp69_ = hbox;
+ _tmp63_ = hbox;
#line 1875 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- gtk_container_add (_tmp68_, (GtkWidget*) _tmp69_);
+ gtk_container_add (_tmp62_, (GtkWidget*) _tmp63_);
#line 1876 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp70_ = hbox;
+ _tmp64_ = hbox;
#line 1876 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- gtk_widget_set_visible ((GtkWidget*) _tmp70_, TRUE);
+ gtk_widget_set_visible ((GtkWidget*) _tmp64_, TRUE);
#line 1878 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp71_ = (GtkImage*) gtk_image_new_from_icon_name ("dialog-warning", GTK_ICON_SIZE_DIALOG);
+ _tmp65_ = (GtkImage*) gtk_image_new_from_icon_name ("dialog-warning", GTK_ICON_SIZE_DIALOG);
#line 1878 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- g_object_ref_sink (_tmp71_);
+ g_object_ref_sink (_tmp65_);
#line 1878 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->info_bar_image);
#line 1878 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- self->priv->info_bar_image = _tmp71_;
+ self->priv->info_bar_image = _tmp65_;
#line 1879 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp72_ = hbox;
+ _tmp66_ = hbox;
#line 1879 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp73_ = self->priv->info_bar_image;
+ _tmp67_ = self->priv->info_bar_image;
#line 1879 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- gtk_box_pack_start (_tmp72_, (GtkWidget*) _tmp73_, FALSE, TRUE, (guint) 0);
+ gtk_box_pack_start (_tmp66_, (GtkWidget*) _tmp67_, FALSE, TRUE, (guint) 0);
#line 1880 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp74_ = self->priv->info_bar_image;
+ _tmp68_ = self->priv->info_bar_image;
#line 1880 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- gtk_widget_set_visible ((GtkWidget*) _tmp74_, TRUE);
+ gtk_widget_set_visible ((GtkWidget*) _tmp68_, TRUE);
#line 1882 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp75_ = (GtkLabel*) gtk_label_new (NULL);
+ _tmp69_ = (GtkLabel*) gtk_label_new (NULL);
#line 1882 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- g_object_ref_sink (_tmp75_);
+ g_object_ref_sink (_tmp69_);
#line 1882 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->info_bar_label);
#line 1882 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- self->priv->info_bar_label = _tmp75_;
+ self->priv->info_bar_label = _tmp69_;
#line 1883 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp76_ = self->priv->info_bar_label;
+ _tmp70_ = self->priv->info_bar_label;
#line 1883 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- gtk_misc_set_alignment ((GtkMisc*) _tmp76_, 0.0f, 0.5f);
+ gtk_misc_set_alignment ((GtkMisc*) _tmp70_, 0.0f, 0.5f);
#line 1884 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp77_ = hbox;
+ _tmp71_ = hbox;
#line 1884 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp78_ = self->priv->info_bar_label;
+ _tmp72_ = self->priv->info_bar_label;
#line 1884 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- gtk_box_pack_start (_tmp77_, (GtkWidget*) _tmp78_, TRUE, TRUE, (guint) 0);
+ gtk_box_pack_start (_tmp71_, (GtkWidget*) _tmp72_, TRUE, TRUE, (guint) 0);
#line 1885 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp79_ = self->priv->info_bar_label;
+ _tmp73_ = self->priv->info_bar_label;
#line 1885 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- gtk_widget_set_visible ((GtkWidget*) _tmp79_, TRUE);
+ gtk_widget_set_visible ((GtkWidget*) _tmp73_, TRUE);
#line 1887 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp80_ = self->priv->info_bar;
+ _tmp74_ = self->priv->info_bar;
#line 1887 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp81_ = _ ("_Close");
+ _tmp75_ = _ ("_Close");
#line 1887 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp82_ = gtk_info_bar_add_button (_tmp80_, _tmp81_, (gint) GTK_RESPONSE_CLOSE);
+ _tmp76_ = gtk_info_bar_add_button (_tmp74_, _tmp75_, (gint) GTK_RESPONSE_CLOSE);
#line 1887 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp83_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp82_, gtk_button_get_type ()) ? ((GtkButton*) _tmp82_) : NULL);
+ _tmp77_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp76_, gtk_button_get_type ()) ? ((GtkButton*) _tmp76_) : NULL);
#line 1887 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->info_bar_close_button);
#line 1887 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- self->priv->info_bar_close_button = _tmp83_;
+ self->priv->info_bar_close_button = _tmp77_;
#line 1888 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp84_ = self->priv->info_bar;
+ _tmp78_ = self->priv->info_bar;
#line 1888 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp85_ = _ ("Change _Scanner");
+ _tmp79_ = _ ("Change _Scanner");
#line 1888 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp86_ = gtk_info_bar_add_button (_tmp84_, _tmp85_, 1);
+ _tmp80_ = gtk_info_bar_add_button (_tmp78_, _tmp79_, 1);
#line 1888 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp87_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp86_, gtk_button_get_type ()) ? ((GtkButton*) _tmp86_) : NULL);
+ _tmp81_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp80_, gtk_button_get_type ()) ? ((GtkButton*) _tmp80_) : NULL);
#line 1888 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->info_bar_change_scanner_button);
#line 1888 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- self->priv->info_bar_change_scanner_button = _tmp87_;
+ self->priv->info_bar_change_scanner_button = _tmp81_;
#line 1890 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp88_ = self->priv->info_bar;
+ _tmp82_ = self->priv->info_bar;
#line 1890 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp89_ = _ ("_Install Drivers");
+ _tmp83_ = _ ("_Install Drivers");
#line 1890 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp90_ = gtk_info_bar_add_button (_tmp88_, _tmp89_, 2);
+ _tmp84_ = gtk_info_bar_add_button (_tmp82_, _tmp83_, 2);
#line 1890 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp91_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp90_, gtk_button_get_type ()) ? ((GtkButton*) _tmp90_) : NULL);
+ _tmp85_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp84_, gtk_button_get_type ()) ? ((GtkButton*) _tmp84_) : NULL);
#line 1890 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->info_bar_install_button);
#line 1890 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- self->priv->info_bar_install_button = _tmp91_;
+ self->priv->info_bar_install_button = _tmp85_;
#line 1894 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp92_ = self->priv->paper_size_model;
+ _tmp86_ = self->priv->paper_size_model;
#line 1894 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- gtk_list_store_append (_tmp92_, &_tmp93_);
+ gtk_list_store_append (_tmp86_, &_tmp87_);
#line 1894 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- iter = _tmp93_;
+ iter = _tmp87_;
#line 1895 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp94_ = self->priv->paper_size_model;
+ _tmp88_ = self->priv->paper_size_model;
#line 1895 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp95_ = iter;
+ _tmp89_ = iter;
#line 1895 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp96_ = _ ("Automatic");
+ _tmp90_ = _ ("Automatic");
#line 1895 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- gtk_list_store_set (_tmp94_, &_tmp95_, 0, 0, 1, 0, 2, _tmp96_, -1, -1);
+ gtk_list_store_set (_tmp88_, &_tmp89_, 0, 0, 1, 0, 2, _tmp90_, -1, -1);
#line 1898 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp97_ = self->priv->paper_size_model;
+ _tmp91_ = self->priv->paper_size_model;
#line 1898 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- gtk_list_store_append (_tmp97_, &_tmp98_);
+ gtk_list_store_append (_tmp91_, &_tmp92_);
#line 1898 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- iter = _tmp98_;
+ iter = _tmp92_;
#line 1899 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp99_ = self->priv->paper_size_model;
+ _tmp93_ = self->priv->paper_size_model;
#line 1899 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp100_ = iter;
+ _tmp94_ = iter;
#line 1899 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- gtk_list_store_set (_tmp99_, &_tmp100_, 0, 1050, 1, 1480, 2, "A6", -1, -1);
+ gtk_list_store_set (_tmp93_, &_tmp94_, 0, 1050, 1, 1480, 2, "A6", -1, -1);
#line 1900 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp101_ = self->priv->paper_size_model;
+ _tmp95_ = self->priv->paper_size_model;
#line 1900 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- gtk_list_store_append (_tmp101_, &_tmp102_);
+ gtk_list_store_append (_tmp95_, &_tmp96_);
#line 1900 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- iter = _tmp102_;
+ iter = _tmp96_;
#line 1901 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp103_ = self->priv->paper_size_model;
+ _tmp97_ = self->priv->paper_size_model;
#line 1901 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp104_ = iter;
+ _tmp98_ = iter;
#line 1901 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- gtk_list_store_set (_tmp103_, &_tmp104_, 0, 1480, 1, 2100, 2, "A5", -1, -1);
+ gtk_list_store_set (_tmp97_, &_tmp98_, 0, 1480, 1, 2100, 2, "A5", -1, -1);
#line 1902 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp105_ = self->priv->paper_size_model;
+ _tmp99_ = self->priv->paper_size_model;
#line 1902 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- gtk_list_store_append (_tmp105_, &_tmp106_);
+ gtk_list_store_append (_tmp99_, &_tmp100_);
#line 1902 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- iter = _tmp106_;
+ iter = _tmp100_;
#line 1903 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp107_ = self->priv->paper_size_model;
+ _tmp101_ = self->priv->paper_size_model;
#line 1903 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp108_ = iter;
+ _tmp102_ = iter;
#line 1903 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- gtk_list_store_set (_tmp107_, &_tmp108_, 0, 2100, 1, 2970, 2, "A4", -1, -1);
+ gtk_list_store_set (_tmp101_, &_tmp102_, 0, 2100, 1, 2970, 2, "A4", -1, -1);
#line 1904 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp109_ = self->priv->paper_size_model;
+ _tmp103_ = self->priv->paper_size_model;
#line 1904 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- gtk_list_store_append (_tmp109_, &_tmp110_);
+ gtk_list_store_append (_tmp103_, &_tmp104_);
#line 1904 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- iter = _tmp110_;
+ iter = _tmp104_;
#line 1905 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp111_ = self->priv->paper_size_model;
+ _tmp105_ = self->priv->paper_size_model;
#line 1905 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp112_ = iter;
+ _tmp106_ = iter;
#line 1905 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- gtk_list_store_set (_tmp111_, &_tmp112_, 0, 2159, 1, 2794, 2, "Letter", -1, -1);
+ gtk_list_store_set (_tmp105_, &_tmp106_, 0, 2159, 1, 2794, 2, "Letter", -1, -1);
#line 1906 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp113_ = self->priv->paper_size_model;
+ _tmp107_ = self->priv->paper_size_model;
#line 1906 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- gtk_list_store_append (_tmp113_, &_tmp114_);
+ gtk_list_store_append (_tmp107_, &_tmp108_);
#line 1906 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- iter = _tmp114_;
+ iter = _tmp108_;
#line 1907 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp115_ = self->priv->paper_size_model;
+ _tmp109_ = self->priv->paper_size_model;
#line 1907 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp116_ = iter;
+ _tmp110_ = iter;
#line 1907 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- gtk_list_store_set (_tmp115_, &_tmp116_, 0, 2159, 1, 3556, 2, "Legal", -1, -1);
+ gtk_list_store_set (_tmp109_, &_tmp110_, 0, 2159, 1, 3556, 2, "Legal", -1, -1);
#line 1908 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp117_ = self->priv->paper_size_model;
+ _tmp111_ = self->priv->paper_size_model;
#line 1908 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- gtk_list_store_append (_tmp117_, &_tmp118_);
+ gtk_list_store_append (_tmp111_, &_tmp112_);
#line 1908 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- iter = _tmp118_;
+ iter = _tmp112_;
#line 1909 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp119_ = self->priv->paper_size_model;
+ _tmp113_ = self->priv->paper_size_model;
#line 1909 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp120_ = iter;
+ _tmp114_ = iter;
#line 1909 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- gtk_list_store_set (_tmp119_, &_tmp120_, 0, 1016, 1, 1524, 2, "4×6", -1, -1);
+ gtk_list_store_set (_tmp113_, &_tmp114_, 0, 1016, 1, 1524, 2, "4×6", -1, -1);
#line 1911 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp121_ = self->priv->settings;
+ _tmp115_ = self->priv->settings;
#line 1911 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp122_ = g_settings_get_int (_tmp121_, "text-dpi");
+ _tmp116_ = g_settings_get_int (_tmp115_, "text-dpi");
#line 1911 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- dpi = _tmp122_;
+ dpi = _tmp116_;
#line 1912 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp123_ = dpi;
+ _tmp117_ = dpi;
#line 1912 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- if (_tmp123_ <= 0) {
+ if (_tmp117_ <= 0) {
#line 1913 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
dpi = USER_INTERFACE_DEFAULT_TEXT_DPI;
-#line 9796 "ui.c"
+#line 9755 "ui.c"
}
#line 1914 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp124_ = self->priv->text_dpi_combo;
+ _tmp118_ = self->priv->text_dpi_combo;
#line 1914 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp125_ = dpi;
+ _tmp119_ = dpi;
#line 1914 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- user_interface_set_dpi_combo (self, _tmp124_, USER_INTERFACE_DEFAULT_TEXT_DPI, _tmp125_);
+ user_interface_set_dpi_combo (self, _tmp118_, USER_INTERFACE_DEFAULT_TEXT_DPI, _tmp119_);
#line 1915 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp126_ = self->priv->text_dpi_combo;
+ _tmp120_ = self->priv->text_dpi_combo;
#line 1915 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- g_signal_connect_object (_tmp126_, "changed", (GCallback) ___lambda14__gtk_combo_box_changed, self, 0);
+ g_signal_connect_object (_tmp120_, "changed", (GCallback) ___lambda14__gtk_combo_box_changed, self, 0);
#line 1916 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp127_ = self->priv->settings;
+ _tmp121_ = self->priv->settings;
#line 1916 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp128_ = g_settings_get_int (_tmp127_, "photo-dpi");
+ _tmp122_ = g_settings_get_int (_tmp121_, "photo-dpi");
#line 1916 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- dpi = _tmp128_;
+ dpi = _tmp122_;
#line 1917 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp129_ = dpi;
+ _tmp123_ = dpi;
#line 1917 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- if (_tmp129_ <= 0) {
+ if (_tmp123_ <= 0) {
#line 1918 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
dpi = USER_INTERFACE_DEFAULT_PHOTO_DPI;
-#line 9820 "ui.c"
+#line 9779 "ui.c"
}
#line 1919 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp130_ = self->priv->photo_dpi_combo;
+ _tmp124_ = self->priv->photo_dpi_combo;
#line 1919 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp131_ = dpi;
+ _tmp125_ = dpi;
#line 1919 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- user_interface_set_dpi_combo (self, _tmp130_, USER_INTERFACE_DEFAULT_PHOTO_DPI, _tmp131_);
+ user_interface_set_dpi_combo (self, _tmp124_, USER_INTERFACE_DEFAULT_PHOTO_DPI, _tmp125_);
#line 1920 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp132_ = self->priv->photo_dpi_combo;
+ _tmp126_ = self->priv->photo_dpi_combo;
#line 1920 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- g_signal_connect_object (_tmp132_, "changed", (GCallback) ___lambda15__gtk_combo_box_changed, self, 0);
+ g_signal_connect_object (_tmp126_, "changed", (GCallback) ___lambda15__gtk_combo_box_changed, self, 0);
#line 1922 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp133_ = (GtkCellRendererText*) gtk_cell_renderer_text_new ();
+ _tmp127_ = (GtkCellRendererText*) gtk_cell_renderer_text_new ();
#line 1922 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- g_object_ref_sink (_tmp133_);
+ g_object_ref_sink (_tmp127_);
#line 1922 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- renderer = _tmp133_;
+ renderer = _tmp127_;
#line 1923 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp134_ = self->priv->device_combo;
+ _tmp128_ = self->priv->device_combo;
#line 1923 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp135_ = renderer;
+ _tmp129_ = renderer;
#line 1923 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- gtk_cell_layout_pack_start ((GtkCellLayout*) _tmp134_, (GtkCellRenderer*) _tmp135_, TRUE);
+ gtk_cell_layout_pack_start ((GtkCellLayout*) _tmp128_, (GtkCellRenderer*) _tmp129_, TRUE);
#line 1924 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp136_ = self->priv->device_combo;
+ _tmp130_ = self->priv->device_combo;
#line 1924 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp137_ = renderer;
+ _tmp131_ = renderer;
#line 1924 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- gtk_cell_layout_add_attribute ((GtkCellLayout*) _tmp136_, (GtkCellRenderer*) _tmp137_, "text", 1);
+ gtk_cell_layout_add_attribute ((GtkCellLayout*) _tmp130_, (GtkCellRenderer*) _tmp131_, "text", 1);
#line 1926 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp138_ = (GtkCellRendererText*) gtk_cell_renderer_text_new ();
+ _tmp132_ = (GtkCellRendererText*) gtk_cell_renderer_text_new ();
#line 1926 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- g_object_ref_sink (_tmp138_);
+ g_object_ref_sink (_tmp132_);
#line 1926 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (renderer);
#line 1926 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- renderer = _tmp138_;
+ renderer = _tmp132_;
#line 1927 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp139_ = self->priv->page_side_combo;
+ _tmp133_ = self->priv->page_side_combo;
#line 1927 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp140_ = renderer;
+ _tmp134_ = renderer;
#line 1927 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- gtk_cell_layout_pack_start ((GtkCellLayout*) _tmp139_, (GtkCellRenderer*) _tmp140_, TRUE);
+ gtk_cell_layout_pack_start ((GtkCellLayout*) _tmp133_, (GtkCellRenderer*) _tmp134_, TRUE);
#line 1928 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp141_ = self->priv->page_side_combo;
+ _tmp135_ = self->priv->page_side_combo;
#line 1928 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp142_ = renderer;
+ _tmp136_ = renderer;
#line 1928 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- gtk_cell_layout_add_attribute ((GtkCellLayout*) _tmp141_, (GtkCellRenderer*) _tmp142_, "text", 1);
+ gtk_cell_layout_add_attribute ((GtkCellLayout*) _tmp135_, (GtkCellRenderer*) _tmp136_, "text", 1);
#line 1929 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp143_ = self->priv->settings;
+ _tmp137_ = self->priv->settings;
#line 1929 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp144_ = g_settings_get_enum (_tmp143_, "page-side");
+ _tmp138_ = g_settings_get_enum (_tmp137_, "page-side");
#line 1929 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- user_interface_set_page_side (self, (ScanType) _tmp144_);
+ user_interface_set_page_side (self, (ScanType) _tmp138_);
#line 1930 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp145_ = self->priv->page_side_combo;
+ _tmp139_ = self->priv->page_side_combo;
#line 1930 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- g_signal_connect_object (_tmp145_, "changed", (GCallback) ___lambda16__gtk_combo_box_changed, self, 0);
+ g_signal_connect_object (_tmp139_, "changed", (GCallback) ___lambda16__gtk_combo_box_changed, self, 0);
#line 1932 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp146_ = (GtkCellRendererText*) gtk_cell_renderer_text_new ();
+ _tmp140_ = (GtkCellRendererText*) gtk_cell_renderer_text_new ();
#line 1932 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- g_object_ref_sink (_tmp146_);
+ g_object_ref_sink (_tmp140_);
#line 1932 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (renderer);
#line 1932 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- renderer = _tmp146_;
+ renderer = _tmp140_;
#line 1933 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp147_ = self->priv->paper_size_combo;
+ _tmp141_ = self->priv->paper_size_combo;
#line 1933 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp148_ = renderer;
+ _tmp142_ = renderer;
#line 1933 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- gtk_cell_layout_pack_start ((GtkCellLayout*) _tmp147_, (GtkCellRenderer*) _tmp148_, TRUE);
+ gtk_cell_layout_pack_start ((GtkCellLayout*) _tmp141_, (GtkCellRenderer*) _tmp142_, TRUE);
#line 1934 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp149_ = self->priv->paper_size_combo;
+ _tmp143_ = self->priv->paper_size_combo;
#line 1934 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp150_ = renderer;
+ _tmp144_ = renderer;
#line 1934 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- gtk_cell_layout_add_attribute ((GtkCellLayout*) _tmp149_, (GtkCellRenderer*) _tmp150_, "text", 2);
+ gtk_cell_layout_add_attribute ((GtkCellLayout*) _tmp143_, (GtkCellRenderer*) _tmp144_, "text", 2);
#line 1935 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp151_ = self->priv->settings;
+ _tmp145_ = self->priv->settings;
#line 1935 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp152_ = g_settings_get_int (_tmp151_, "paper-width");
+ _tmp146_ = g_settings_get_int (_tmp145_, "paper-width");
#line 1935 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- paper_width = _tmp152_;
+ paper_width = _tmp146_;
#line 1936 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp153_ = self->priv->settings;
+ _tmp147_ = self->priv->settings;
#line 1936 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp154_ = g_settings_get_int (_tmp153_, "paper-height");
+ _tmp148_ = g_settings_get_int (_tmp147_, "paper-height");
#line 1936 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- paper_height = _tmp154_;
+ paper_height = _tmp148_;
#line 1937 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp155_ = paper_width;
+ _tmp149_ = paper_width;
#line 1937 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp156_ = paper_height;
+ _tmp150_ = paper_height;
#line 1937 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- user_interface_set_paper_size (self, _tmp155_, _tmp156_);
+ user_interface_set_paper_size (self, _tmp149_, _tmp150_);
#line 1938 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp157_ = self->priv->paper_size_combo;
+ _tmp151_ = self->priv->paper_size_combo;
#line 1938 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- g_signal_connect_object (_tmp157_, "changed", (GCallback) ___lambda17__gtk_combo_box_changed, self, 0);
+ g_signal_connect_object (_tmp151_, "changed", (GCallback) ___lambda17__gtk_combo_box_changed, self, 0);
#line 1946 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp158_ = self->priv->brightness_adjustment;
+ _tmp152_ = self->priv->brightness_adjustment;
#line 1946 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp159_ = gtk_adjustment_get_lower (_tmp158_);
+ _tmp153_ = gtk_adjustment_get_lower (_tmp152_);
#line 1946 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp160_ = _tmp159_;
+ _tmp154_ = _tmp153_;
#line 1946 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- lower = _tmp160_;
+ lower = _tmp154_;
#line 1947 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp161_ = _ ("Darker");
+ _tmp155_ = _ ("Darker");
#line 1947 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp162_ = g_strdup_printf ("<small>%s</small>", _tmp161_);
+ _tmp156_ = g_strdup_printf ("<small>%s</small>", _tmp155_);
#line 1947 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- darker_label = _tmp162_;
+ darker_label = _tmp156_;
#line 1948 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp163_ = self->priv->brightness_adjustment;
+ _tmp157_ = self->priv->brightness_adjustment;
#line 1948 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp164_ = gtk_adjustment_get_upper (_tmp163_);
+ _tmp158_ = gtk_adjustment_get_upper (_tmp157_);
#line 1948 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp165_ = _tmp164_;
+ _tmp159_ = _tmp158_;
#line 1948 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- upper = _tmp165_;
+ upper = _tmp159_;
#line 1949 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp166_ = _ ("Lighter");
+ _tmp160_ = _ ("Lighter");
#line 1949 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp167_ = g_strdup_printf ("<small>%s</small>", _tmp166_);
+ _tmp161_ = g_strdup_printf ("<small>%s</small>", _tmp160_);
#line 1949 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- lighter_label = _tmp167_;
+ lighter_label = _tmp161_;
#line 1950 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp168_ = self->priv->brightness_scale;
+ _tmp162_ = self->priv->brightness_scale;
#line 1950 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp169_ = lower;
+ _tmp163_ = lower;
#line 1950 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp170_ = darker_label;
+ _tmp164_ = darker_label;
#line 1950 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- gtk_scale_add_mark (_tmp168_, _tmp169_, GTK_POS_BOTTOM, _tmp170_);
+ gtk_scale_add_mark (_tmp162_, _tmp163_, GTK_POS_BOTTOM, _tmp164_);
#line 1951 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp171_ = self->priv->brightness_scale;
+ _tmp165_ = self->priv->brightness_scale;
#line 1951 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- gtk_scale_add_mark (_tmp171_, (gdouble) 0, GTK_POS_BOTTOM, NULL);
+ gtk_scale_add_mark (_tmp165_, (gdouble) 0, GTK_POS_BOTTOM, NULL);
#line 1952 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp172_ = self->priv->brightness_scale;
+ _tmp166_ = self->priv->brightness_scale;
#line 1952 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp173_ = upper;
+ _tmp167_ = upper;
#line 1952 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp174_ = lighter_label;
+ _tmp168_ = lighter_label;
#line 1952 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- gtk_scale_add_mark (_tmp172_, _tmp173_, GTK_POS_BOTTOM, _tmp174_);
+ gtk_scale_add_mark (_tmp166_, _tmp167_, GTK_POS_BOTTOM, _tmp168_);
#line 1953 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp175_ = self->priv->settings;
+ _tmp169_ = self->priv->settings;
#line 1953 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp176_ = g_settings_get_int (_tmp175_, "brightness");
+ _tmp170_ = g_settings_get_int (_tmp169_, "brightness");
#line 1953 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- user_interface_set_brightness (self, _tmp176_);
+ user_interface_set_brightness (self, _tmp170_);
#line 1954 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp177_ = self->priv->brightness_adjustment;
+ _tmp171_ = self->priv->brightness_adjustment;
#line 1954 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- g_signal_connect_object (_tmp177_, "value-changed", (GCallback) ___lambda18__gtk_adjustment_value_changed, self, 0);
+ g_signal_connect_object (_tmp171_, "value-changed", (GCallback) ___lambda18__gtk_adjustment_value_changed, self, 0);
#line 1956 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp178_ = self->priv->contrast_adjustment;
+ _tmp172_ = self->priv->contrast_adjustment;
#line 1956 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp179_ = gtk_adjustment_get_lower (_tmp178_);
+ _tmp173_ = gtk_adjustment_get_lower (_tmp172_);
#line 1956 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp180_ = _tmp179_;
+ _tmp174_ = _tmp173_;
#line 1956 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- lower = _tmp180_;
+ lower = _tmp174_;
#line 1957 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp181_ = _ ("Less");
+ _tmp175_ = _ ("Less");
#line 1957 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp182_ = g_strdup_printf ("<small>%s</small>", _tmp181_);
+ _tmp176_ = g_strdup_printf ("<small>%s</small>", _tmp175_);
#line 1957 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- less_label = _tmp182_;
+ less_label = _tmp176_;
#line 1958 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp183_ = self->priv->contrast_adjustment;
+ _tmp177_ = self->priv->contrast_adjustment;
#line 1958 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp184_ = gtk_adjustment_get_upper (_tmp183_);
+ _tmp178_ = gtk_adjustment_get_upper (_tmp177_);
#line 1958 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp185_ = _tmp184_;
+ _tmp179_ = _tmp178_;
#line 1958 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- upper = _tmp185_;
+ upper = _tmp179_;
#line 1959 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp186_ = _ ("More");
+ _tmp180_ = _ ("More");
#line 1959 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp187_ = g_strdup_printf ("<small>%s</small>", _tmp186_);
+ _tmp181_ = g_strdup_printf ("<small>%s</small>", _tmp180_);
#line 1959 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- more_label = _tmp187_;
+ more_label = _tmp181_;
#line 1960 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp188_ = self->priv->contrast_scale;
+ _tmp182_ = self->priv->contrast_scale;
#line 1960 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp189_ = lower;
+ _tmp183_ = lower;
#line 1960 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp190_ = less_label;
+ _tmp184_ = less_label;
#line 1960 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- gtk_scale_add_mark (_tmp188_, _tmp189_, GTK_POS_BOTTOM, _tmp190_);
+ gtk_scale_add_mark (_tmp182_, _tmp183_, GTK_POS_BOTTOM, _tmp184_);
#line 1961 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp191_ = self->priv->contrast_scale;
+ _tmp185_ = self->priv->contrast_scale;
#line 1961 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- gtk_scale_add_mark (_tmp191_, (gdouble) 0, GTK_POS_BOTTOM, NULL);
+ gtk_scale_add_mark (_tmp185_, (gdouble) 0, GTK_POS_BOTTOM, NULL);
#line 1962 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp192_ = self->priv->contrast_scale;
+ _tmp186_ = self->priv->contrast_scale;
#line 1962 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp193_ = upper;
+ _tmp187_ = upper;
#line 1962 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp194_ = more_label;
+ _tmp188_ = more_label;
#line 1962 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- gtk_scale_add_mark (_tmp192_, _tmp193_, GTK_POS_BOTTOM, _tmp194_);
+ gtk_scale_add_mark (_tmp186_, _tmp187_, GTK_POS_BOTTOM, _tmp188_);
#line 1963 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp195_ = self->priv->settings;
+ _tmp189_ = self->priv->settings;
#line 1963 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp196_ = g_settings_get_int (_tmp195_, "contrast");
+ _tmp190_ = g_settings_get_int (_tmp189_, "contrast");
#line 1963 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- user_interface_set_contrast (self, _tmp196_);
+ user_interface_set_contrast (self, _tmp190_);
#line 1964 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp197_ = self->priv->contrast_adjustment;
+ _tmp191_ = self->priv->contrast_adjustment;
#line 1964 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- g_signal_connect_object (_tmp197_, "value-changed", (GCallback) ___lambda19__gtk_adjustment_value_changed, self, 0);
+ g_signal_connect_object (_tmp191_, "value-changed", (GCallback) ___lambda19__gtk_adjustment_value_changed, self, 0);
#line 1966 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp198_ = self->priv->quality_adjustment;
+ _tmp192_ = self->priv->quality_adjustment;
#line 1966 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp199_ = gtk_adjustment_get_lower (_tmp198_);
+ _tmp193_ = gtk_adjustment_get_lower (_tmp192_);
#line 1966 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp200_ = _tmp199_;
+ _tmp194_ = _tmp193_;
#line 1966 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- lower = _tmp200_;
+ lower = _tmp194_;
#line 1967 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp201_ = _ ("Minimum");
+ _tmp195_ = _ ("Minimum");
#line 1967 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp202_ = g_strdup_printf ("<small>%s</small>", _tmp201_);
+ _tmp196_ = g_strdup_printf ("<small>%s</small>", _tmp195_);
#line 1967 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- minimum_label = _tmp202_;
+ minimum_label = _tmp196_;
#line 1968 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp203_ = self->priv->quality_adjustment;
+ _tmp197_ = self->priv->quality_adjustment;
#line 1968 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp204_ = gtk_adjustment_get_upper (_tmp203_);
+ _tmp198_ = gtk_adjustment_get_upper (_tmp197_);
#line 1968 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp205_ = _tmp204_;
+ _tmp199_ = _tmp198_;
#line 1968 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- upper = _tmp205_;
+ upper = _tmp199_;
#line 1969 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp206_ = _ ("Maximum");
+ _tmp200_ = _ ("Maximum");
#line 1969 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp207_ = g_strdup_printf ("<small>%s</small>", _tmp206_);
+ _tmp201_ = g_strdup_printf ("<small>%s</small>", _tmp200_);
#line 1969 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- maximum_label = _tmp207_;
+ maximum_label = _tmp201_;
#line 1970 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp208_ = self->priv->quality_scale;
+ _tmp202_ = self->priv->quality_scale;
#line 1970 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp209_ = lower;
+ _tmp203_ = lower;
#line 1970 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp210_ = minimum_label;
+ _tmp204_ = minimum_label;
#line 1970 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- gtk_scale_add_mark (_tmp208_, _tmp209_, GTK_POS_BOTTOM, _tmp210_);
+ gtk_scale_add_mark (_tmp202_, _tmp203_, GTK_POS_BOTTOM, _tmp204_);
#line 1971 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp211_ = self->priv->quality_scale;
+ _tmp205_ = self->priv->quality_scale;
#line 1971 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- gtk_scale_add_mark (_tmp211_, (gdouble) 75, GTK_POS_BOTTOM, NULL);
+ gtk_scale_add_mark (_tmp205_, (gdouble) 75, GTK_POS_BOTTOM, NULL);
#line 1972 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp212_ = self->priv->quality_scale;
+ _tmp206_ = self->priv->quality_scale;
#line 1972 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp213_ = upper;
+ _tmp207_ = upper;
#line 1972 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp214_ = maximum_label;
+ _tmp208_ = maximum_label;
#line 1972 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- gtk_scale_add_mark (_tmp212_, _tmp213_, GTK_POS_BOTTOM, _tmp214_);
+ gtk_scale_add_mark (_tmp206_, _tmp207_, GTK_POS_BOTTOM, _tmp208_);
#line 1973 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp215_ = self->priv->settings;
+ _tmp209_ = self->priv->settings;
#line 1973 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp216_ = g_settings_get_int (_tmp215_, "jpeg-quality");
+ _tmp210_ = g_settings_get_int (_tmp209_, "jpeg-quality");
#line 1973 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- user_interface_set_quality (self, _tmp216_);
+ user_interface_set_quality (self, _tmp210_);
#line 1974 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp217_ = self->priv->quality_adjustment;
+ _tmp211_ = self->priv->quality_adjustment;
#line 1974 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- g_signal_connect_object (_tmp217_, "value-changed", (GCallback) ___lambda20__gtk_adjustment_value_changed, self, 0);
+ g_signal_connect_object (_tmp211_, "value-changed", (GCallback) ___lambda20__gtk_adjustment_value_changed, self, 0);
#line 1976 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp218_ = self->priv->settings;
+ _tmp212_ = self->priv->settings;
#line 1976 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp219_ = g_settings_get_string (_tmp218_, "document-type");
+ _tmp213_ = g_settings_get_string (_tmp212_, "document-type");
#line 1976 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- document_type = _tmp219_;
+ document_type = _tmp213_;
#line 1977 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp220_ = document_type;
+ _tmp214_ = document_type;
#line 1977 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- if (_tmp220_ != NULL) {
-#line 10106 "ui.c"
- const gchar* _tmp221_ = NULL;
+ if (_tmp214_ != NULL) {
+#line 10065 "ui.c"
+ const gchar* _tmp215_ = NULL;
#line 1978 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp221_ = document_type;
+ _tmp215_ = document_type;
#line 1978 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- user_interface_set_document_hint (self, _tmp221_, FALSE);
-#line 10112 "ui.c"
+ user_interface_set_document_hint (self, _tmp215_, FALSE);
+#line 10071 "ui.c"
}
#line 1980 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp222_ = self->priv->_book;
+ _tmp216_ = self->priv->_book;
#line 1980 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp223_ = book_view_new (_tmp222_);
+ _tmp217_ = book_view_new (_tmp216_);
#line 1980 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- g_object_ref_sink (_tmp223_);
+ g_object_ref_sink (_tmp217_);
#line 1980 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->book_view);
#line 1980 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- self->priv->book_view = _tmp223_;
+ self->priv->book_view = _tmp217_;
#line 1981 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp224_ = self->priv->book_view;
+ _tmp218_ = self->priv->book_view;
#line 1981 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- gtk_container_set_border_width ((GtkContainer*) _tmp224_, (guint) 18);
+ gtk_container_set_border_width ((GtkContainer*) _tmp218_, (guint) 18);
#line 1982 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp225_ = self->priv->main_vbox;
+ _tmp219_ = self->priv->main_vbox;
#line 1982 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp226_ = self->priv->book_view;
+ _tmp220_ = self->priv->book_view;
#line 1982 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- gtk_box_pack_end (_tmp225_, (GtkWidget*) _tmp226_, TRUE, TRUE, (guint) 0);
+ gtk_box_pack_end (_tmp219_, (GtkWidget*) _tmp220_, TRUE, TRUE, (guint) 0);
#line 1983 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp227_ = self->priv->book_view;
+ _tmp221_ = self->priv->book_view;
#line 1983 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- g_signal_connect_object (_tmp227_, "page-selected", (GCallback) _user_interface_page_selected_cb_book_view_page_selected, self, 0);
+ g_signal_connect_object (_tmp221_, "page-selected", (GCallback) _user_interface_page_selected_cb_book_view_page_selected, self, 0);
#line 1984 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp228_ = self->priv->book_view;
+ _tmp222_ = self->priv->book_view;
#line 1984 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- g_signal_connect_object (_tmp228_, "show-page", (GCallback) _user_interface_show_page_cb_book_view_show_page, self, 0);
+ g_signal_connect_object (_tmp222_, "show-page", (GCallback) _user_interface_show_page_cb_book_view_show_page, self, 0);
#line 1985 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp229_ = self->priv->book_view;
+ _tmp223_ = self->priv->book_view;
#line 1985 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- g_signal_connect_object (_tmp229_, "show-menu", (GCallback) _user_interface_show_page_menu_cb_book_view_show_menu, self, 0);
+ g_signal_connect_object (_tmp223_, "show-menu", (GCallback) _user_interface_show_page_menu_cb_book_view_show_menu, self, 0);
#line 1986 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp230_ = self->priv->book_view;
+ _tmp224_ = self->priv->book_view;
#line 1986 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- gtk_widget_set_visible ((GtkWidget*) _tmp230_, TRUE);
+ gtk_widget_set_visible ((GtkWidget*) _tmp224_, TRUE);
#line 1988 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp231_ = self->priv->authorize_dialog;
+ _tmp225_ = self->priv->authorize_dialog;
#line 1988 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- gtk_window_set_transient_for ((GtkWindow*) _tmp231_, (GtkWindow*) self);
+ gtk_window_set_transient_for ((GtkWindow*) _tmp225_, (GtkWindow*) self);
#line 1989 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp232_ = self->priv->preferences_dialog;
+ _tmp226_ = self->priv->preferences_dialog;
#line 1989 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- gtk_window_set_transient_for ((GtkWindow*) _tmp232_, (GtkWindow*) self);
+ gtk_window_set_transient_for ((GtkWindow*) _tmp226_, (GtkWindow*) self);
#line 1992 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_load_state (self);
#line 1995 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp233_ = self->priv->window_width;
+ _tmp227_ = self->priv->window_width;
#line 1995 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp234_ = self->priv->window_height;
+ _tmp228_ = self->priv->window_height;
#line 1995 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- g_debug ("ui.vala:1995: Restoring window to %dx%d pixels", _tmp233_, _tmp234_);
+ g_debug ("ui.vala:1995: Restoring window to %dx%d pixels", _tmp227_, _tmp228_);
#line 1996 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp235_ = self->priv->window_width;
+ _tmp229_ = self->priv->window_width;
#line 1996 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp236_ = self->priv->window_height;
+ _tmp230_ = self->priv->window_height;
#line 1996 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- gtk_window_set_default_size ((GtkWindow*) self, _tmp235_, _tmp236_);
+ gtk_window_set_default_size ((GtkWindow*) self, _tmp229_, _tmp230_);
#line 1997 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp237_ = self->priv->window_is_maximized;
+ _tmp231_ = self->priv->window_is_maximized;
#line 1997 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- if (_tmp237_) {
+ if (_tmp231_) {
#line 1999 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_debug ("ui.vala:1999: Restoring window to maximized");
#line 2000 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_window_maximize ((GtkWindow*) self);
-#line 10180 "ui.c"
+#line 10139 "ui.c"
}
#line 2002 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp238_ = self->priv->window_is_fullscreen;
+ _tmp232_ = self->priv->window_is_fullscreen;
#line 2002 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- if (_tmp238_) {
+ if (_tmp232_) {
#line 2004 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_debug ("ui.vala:2004: Restoring window to fullscreen");
#line 2005 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_window_fullscreen ((GtkWindow*) self);
-#line 10190 "ui.c"
+#line 10149 "ui.c"
}
#line 2008 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp239_ = _ ("Saving document...");
+ _tmp233_ = _ ("Saving document...");
#line 2008 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp240_ = progress_bar_dialog_new ((GtkApplicationWindow*) self, _tmp239_);
+ _tmp234_ = progress_bar_dialog_new ((GtkApplicationWindow*) self, _tmp233_);
#line 2008 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- g_object_ref_sink (_tmp240_);
+ g_object_ref_sink (_tmp234_);
#line 2008 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->progress_dialog);
#line 2008 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- self->priv->progress_dialog = _tmp240_;
+ self->priv->progress_dialog = _tmp234_;
#line 2009 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- _tmp241_ = self->priv->_book;
+ _tmp235_ = self->priv->_book;
#line 2009 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- g_signal_connect_object (_tmp241_, "saving", (GCallback) _user_interface_book_saving_cb_book_saving, self, 0);
+ g_signal_connect_object (_tmp235_, "saving", (GCallback) _user_interface_book_saving_cb_book_saving, self, 0);
#line 1814 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (document_type);
#line 1814 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
@@ -10238,7 +10197,7 @@ static void user_interface_load (UserInterface* self) {
_g_object_unref0 (hbox);
#line 1814 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (app);
-#line 10228 "ui.c"
+#line 10187 "ui.c"
}
@@ -10271,13 +10230,13 @@ static gboolean user_interface_is_desktop (UserInterface* self, const gchar* nam
_g_free0 (desktop_name_list);
#line 2016 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 10261 "ui.c"
+#line 10220 "ui.c"
}
#line 2018 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = desktop_name_list;
#line 2018 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_ = _tmp4_ = g_strsplit (_tmp3_, ":", 0);
-#line 10267 "ui.c"
+#line 10226 "ui.c"
{
gchar** n_collection = NULL;
gint n_collection_length1 = 0;
@@ -10289,14 +10248,14 @@ static gboolean user_interface_is_desktop (UserInterface* self, const gchar* nam
n_collection_length1 = _vala_array_length (_tmp4_);
#line 2018 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
for (n_it = 0; n_it < _vala_array_length (_tmp4_); n_it = n_it + 1) {
-#line 10279 "ui.c"
+#line 10238 "ui.c"
gchar* _tmp6_ = NULL;
gchar* n = NULL;
#line 2018 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp6_ = g_strdup (n_collection[n_it]);
#line 2018 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
n = _tmp6_;
-#line 10286 "ui.c"
+#line 10245 "ui.c"
{
const gchar* _tmp7_ = NULL;
const gchar* _tmp8_ = NULL;
@@ -10316,16 +10275,16 @@ static gboolean user_interface_is_desktop (UserInterface* self, const gchar* nam
_g_free0 (desktop_name_list);
#line 2020 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 10306 "ui.c"
+#line 10265 "ui.c"
}
#line 2018 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (n);
-#line 10310 "ui.c"
+#line 10269 "ui.c"
}
}
#line 2018 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
n_collection = (_vala_array_free (n_collection, n_collection_length1, (GDestroyNotify) g_free), NULL);
-#line 10315 "ui.c"
+#line 10274 "ui.c"
}
#line 2022 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = FALSE;
@@ -10333,7 +10292,56 @@ static gboolean user_interface_is_desktop (UserInterface* self, const gchar* nam
_g_free0 (desktop_name_list);
#line 2022 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 10323 "ui.c"
+#line 10282 "ui.c"
+}
+
+
+static gboolean user_interface_is_traditional_desktop (UserInterface* self) {
+ gboolean result = FALSE;
+#line 2027 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ static const gchar* traditional_desktops[] = {"Unity", "XFCE", "MATE", "LXDE", "Cinnamon", "X-Cinnamon"};
+#line 2025 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ g_return_val_if_fail (self != NULL, FALSE);
+#line 10292 "ui.c"
+ {
+ const gchar** name_collection = NULL;
+ gint name_collection_length1 = 0;
+ gint _name_collection_size_ = 0;
+ gint name_it = 0;
+#line 2028 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ name_collection = traditional_desktops;
+#line 2028 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ name_collection_length1 = G_N_ELEMENTS (traditional_desktops);
+#line 2028 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ for (name_it = 0; name_it < G_N_ELEMENTS (traditional_desktops); name_it = name_it + 1) {
+#line 10304 "ui.c"
+ const gchar* name = NULL;
+#line 2028 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ name = name_collection[name_it];
+#line 10308 "ui.c"
+ {
+ const gchar* _tmp0_ = NULL;
+ gboolean _tmp1_ = FALSE;
+#line 2029 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp0_ = name;
+#line 2029 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ _tmp1_ = user_interface_is_desktop (self, _tmp0_);
+#line 2029 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ if (_tmp1_) {
+#line 2030 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ result = TRUE;
+#line 2030 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ return result;
+#line 10322 "ui.c"
+ }
+ }
+ }
+ }
+#line 2031 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ result = FALSE;
+#line 2031 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ return result;
+#line 10331 "ui.c"
}
@@ -10363,51 +10371,51 @@ static void user_interface_load_state (UserInterface* self) {
gchar* _tmp28_ = NULL;
gchar* _tmp29_ = NULL;
GQuark _tmp31_ = 0U;
-#line 2055 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2064 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
static GQuark _tmp30_label0 = 0;
-#line 2055 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2064 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
static GQuark _tmp30_label1 = 0;
-#line 2055 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2064 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
static GQuark _tmp30_label2 = 0;
-#line 10359 "ui.c"
+#line 10367 "ui.c"
GError * _inner_error_ = NULL;
-#line 2030 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2039 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
-#line 2032 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2041 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = user_interface_get_state_filename (self);
-#line 2032 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2041 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = _tmp0_;
-#line 2032 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2041 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = _tmp1_;
-#line 2032 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- g_debug ("ui.vala:2032: Loading state from %s", _tmp2_);
-#line 2032 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2041 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ g_debug ("ui.vala:2041: Loading state from %s", _tmp2_);
+#line 2041 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (_tmp2_);
-#line 2034 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2043 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = g_key_file_new ();
-#line 2034 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2043 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
f = _tmp3_;
-#line 10377 "ui.c"
+#line 10385 "ui.c"
{
GKeyFile* _tmp4_ = NULL;
gchar* _tmp5_ = NULL;
gchar* _tmp6_ = NULL;
gchar* _tmp7_ = NULL;
-#line 2037 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2046 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = f;
-#line 2037 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2046 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_ = user_interface_get_state_filename (self);
-#line 2037 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2046 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp6_ = _tmp5_;
-#line 2037 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2046 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp7_ = _tmp6_;
-#line 2037 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2046 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_key_file_load_from_file (_tmp4_, _tmp7_, G_KEY_FILE_NONE, &_inner_error_);
-#line 2037 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2046 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (_tmp7_);
-#line 2037 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2046 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 10397 "ui.c"
+#line 10405 "ui.c"
goto __catch23_g_error;
}
}
@@ -10416,316 +10424,316 @@ static void user_interface_load_state (UserInterface* self) {
{
GError* e = NULL;
GError* _tmp8_ = NULL;
-#line 2035 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2044 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
e = _inner_error_;
-#line 2035 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2044 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_inner_error_ = NULL;
-#line 2041 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2050 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp8_ = e;
-#line 2041 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2050 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (!g_error_matches (_tmp8_, G_FILE_ERROR, G_FILE_ERROR_NOENT)) {
-#line 10414 "ui.c"
+#line 10422 "ui.c"
GError* _tmp9_ = NULL;
const gchar* _tmp10_ = NULL;
-#line 2042 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2051 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp9_ = e;
-#line 2042 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2051 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp10_ = _tmp9_->message;
-#line 2042 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- g_warning ("ui.vala:2042: Failed to load state: %s", _tmp10_);
-#line 10423 "ui.c"
+#line 2051 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ g_warning ("ui.vala:2051: Failed to load state: %s", _tmp10_);
+#line 10431 "ui.c"
}
-#line 2035 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2044 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_error_free0 (e);
-#line 10427 "ui.c"
+#line 10435 "ui.c"
}
__finally23:
-#line 2035 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2044 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2035 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2044 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_key_file_unref0 (f);
-#line 2035 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2044 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
-#line 2035 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2044 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_clear_error (&_inner_error_);
-#line 2035 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2044 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
-#line 10440 "ui.c"
+#line 10448 "ui.c"
}
-#line 2044 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2053 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp11_ = f;
-#line 2044 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2053 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp12_ = user_interface_state_get_integer (self, _tmp11_, "window", "width", 600);
-#line 2044 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2053 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->window_width = _tmp12_;
-#line 2045 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2054 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp13_ = self->priv->window_width;
-#line 2045 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2054 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp13_ <= 0) {
-#line 2046 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2055 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->window_width = 600;
-#line 10454 "ui.c"
+#line 10462 "ui.c"
}
-#line 2047 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2056 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp14_ = f;
-#line 2047 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2056 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp15_ = user_interface_state_get_integer (self, _tmp14_, "window", "height", 400);
-#line 2047 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2056 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->window_height = _tmp15_;
-#line 2048 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2057 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp16_ = self->priv->window_height;
-#line 2048 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2057 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp16_ <= 0) {
-#line 2049 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2058 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->window_height = 400;
-#line 10468 "ui.c"
+#line 10476 "ui.c"
}
-#line 2050 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2059 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp17_ = f;
-#line 2050 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2059 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp18_ = user_interface_state_get_boolean (self, _tmp17_, "window", "is-maximized", FALSE);
-#line 2050 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2059 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->window_is_maximized = _tmp18_;
-#line 2051 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2060 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp19_ = f;
-#line 2051 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2060 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp20_ = user_interface_state_get_boolean (self, _tmp19_, "window", "is-fullscreen", FALSE);
-#line 2051 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2060 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->window_is_fullscreen = _tmp20_;
-#line 2052 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2061 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp21_ = f;
-#line 2052 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2061 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp22_ = user_interface_state_get_integer (self, _tmp21_, "last-page", "width", 595);
-#line 2052 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2061 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->default_page_width = _tmp22_;
-#line 2053 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2062 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp23_ = f;
-#line 2053 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2062 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp24_ = user_interface_state_get_integer (self, _tmp23_, "last-page", "height", 842);
-#line 2053 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2062 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->default_page_height = _tmp24_;
-#line 2054 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2063 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp25_ = f;
-#line 2054 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2063 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp26_ = user_interface_state_get_integer (self, _tmp25_, "last-page", "dpi", 72);
-#line 2054 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2063 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->default_page_dpi = _tmp26_;
-#line 2055 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2064 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp27_ = f;
-#line 2055 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2064 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp28_ = user_interface_state_get_string (self, _tmp27_, "last-page", "scan-direction", "top-to-bottom");
-#line 2055 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2064 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp29_ = _tmp28_;
-#line 2055 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2064 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp31_ = (NULL == _tmp29_) ? 0 : g_quark_from_string (_tmp29_);
-#line 2055 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2064 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_free (_tmp29_);
-#line 2055 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2064 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp31_ == ((0 != _tmp30_label0) ? _tmp30_label0 : (_tmp30_label0 = g_quark_from_static_string ("bottom-to-top")))) {
-#line 2055 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2064 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
switch (0) {
-#line 10514 "ui.c"
+#line 10522 "ui.c"
default:
{
-#line 2062 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2071 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->default_page_scan_direction = SCAN_DIRECTION_BOTTOM_TO_TOP;
-#line 2063 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2072 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 10521 "ui.c"
+#line 10529 "ui.c"
}
}
} else if (_tmp31_ == ((0 != _tmp30_label1) ? _tmp30_label1 : (_tmp30_label1 = g_quark_from_static_string ("left-to-right")))) {
-#line 2055 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2064 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
switch (0) {
-#line 10527 "ui.c"
+#line 10535 "ui.c"
default:
{
-#line 2065 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2074 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->default_page_scan_direction = SCAN_DIRECTION_LEFT_TO_RIGHT;
-#line 2066 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2075 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 10534 "ui.c"
+#line 10542 "ui.c"
}
}
} else if (_tmp31_ == ((0 != _tmp30_label2) ? _tmp30_label2 : (_tmp30_label2 = g_quark_from_static_string ("right-to-left")))) {
-#line 2055 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2064 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
switch (0) {
-#line 10540 "ui.c"
+#line 10548 "ui.c"
default:
{
-#line 2068 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2077 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->default_page_scan_direction = SCAN_DIRECTION_RIGHT_TO_LEFT;
-#line 2069 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2078 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 10547 "ui.c"
+#line 10555 "ui.c"
}
}
} else {
-#line 2055 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2064 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
switch (0) {
-#line 10553 "ui.c"
+#line 10561 "ui.c"
default:
{
-#line 2059 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2068 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->default_page_scan_direction = SCAN_DIRECTION_TOP_TO_BOTTOM;
-#line 2060 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2069 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 10560 "ui.c"
+#line 10568 "ui.c"
}
}
}
-#line 2030 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2039 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_key_file_unref0 (f);
-#line 10566 "ui.c"
+#line 10574 "ui.c"
}
static gint user_interface_state_get_integer (UserInterface* self, GKeyFile* f, const gchar* group_name, const gchar* key, gint _default_) {
gint result = 0;
GError * _inner_error_ = NULL;
-#line 2073 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2082 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (self != NULL, 0);
-#line 2073 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2082 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (f != NULL, 0);
-#line 2073 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2082 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (group_name != NULL, 0);
-#line 2073 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2082 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (key != NULL, 0);
-#line 10581 "ui.c"
+#line 10589 "ui.c"
{
gint _tmp0_ = 0;
GKeyFile* _tmp1_ = NULL;
const gchar* _tmp2_ = NULL;
const gchar* _tmp3_ = NULL;
gint _tmp4_ = 0;
-#line 2077 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2086 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = f;
-#line 2077 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2086 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = group_name;
-#line 2077 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2086 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = key;
-#line 2077 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2086 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = g_key_file_get_integer (_tmp1_, _tmp2_, _tmp3_, &_inner_error_);
-#line 2077 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2086 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = _tmp4_;
-#line 2077 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2086 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 10600 "ui.c"
+#line 10608 "ui.c"
goto __catch24_g_error;
}
-#line 2077 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2086 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = _tmp0_;
-#line 2077 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2086 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 10607 "ui.c"
+#line 10615 "ui.c"
}
goto __finally24;
__catch24_g_error:
{
gint _tmp5_ = 0;
-#line 2075 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2084 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_clear_error (&_inner_error_);
-#line 2075 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2084 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_inner_error_ = NULL;
-#line 2081 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2090 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_ = _default_;
-#line 2081 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2090 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = _tmp5_;
-#line 2081 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2090 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 10623 "ui.c"
+#line 10631 "ui.c"
}
__finally24:
-#line 2075 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2084 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
-#line 2075 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2084 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_clear_error (&_inner_error_);
-#line 2075 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2084 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return 0;
-#line 10632 "ui.c"
+#line 10640 "ui.c"
}
static gboolean user_interface_state_get_boolean (UserInterface* self, GKeyFile* f, const gchar* group_name, const gchar* key, gboolean _default_) {
gboolean result = FALSE;
GError * _inner_error_ = NULL;
-#line 2085 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2094 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (self != NULL, FALSE);
-#line 2085 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2094 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (f != NULL, FALSE);
-#line 2085 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2094 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (group_name != NULL, FALSE);
-#line 2085 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2094 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (key != NULL, FALSE);
-#line 10647 "ui.c"
+#line 10655 "ui.c"
{
gboolean _tmp0_ = FALSE;
GKeyFile* _tmp1_ = NULL;
const gchar* _tmp2_ = NULL;
const gchar* _tmp3_ = NULL;
gboolean _tmp4_ = FALSE;
-#line 2089 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2098 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = f;
-#line 2089 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2098 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = group_name;
-#line 2089 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2098 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = key;
-#line 2089 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2098 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = g_key_file_get_boolean (_tmp1_, _tmp2_, _tmp3_, &_inner_error_);
-#line 2089 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2098 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = _tmp4_;
-#line 2089 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2098 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 10666 "ui.c"
+#line 10674 "ui.c"
goto __catch25_g_error;
}
-#line 2089 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2098 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = _tmp0_;
-#line 2089 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2098 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 10673 "ui.c"
+#line 10681 "ui.c"
}
goto __finally25;
__catch25_g_error:
{
gboolean _tmp5_ = FALSE;
-#line 2087 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2096 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_clear_error (&_inner_error_);
-#line 2087 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2096 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_inner_error_ = NULL;
-#line 2093 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2102 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_ = _default_;
-#line 2093 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2102 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = _tmp5_;
-#line 2093 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2102 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 10689 "ui.c"
+#line 10697 "ui.c"
}
__finally25:
-#line 2087 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2096 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
-#line 2087 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2096 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_clear_error (&_inner_error_);
-#line 2087 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2096 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return FALSE;
-#line 10698 "ui.c"
+#line 10706 "ui.c"
}
static gchar* user_interface_state_get_string (UserInterface* self, GKeyFile* f, const gchar* group_name, const gchar* key, const gchar* _default_) {
gchar* result = NULL;
GError * _inner_error_ = NULL;
-#line 2097 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2106 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (self != NULL, NULL);
-#line 2097 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2106 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (f != NULL, NULL);
-#line 2097 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2106 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (group_name != NULL, NULL);
-#line 2097 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2106 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (key != NULL, NULL);
-#line 2097 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2106 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (_default_ != NULL, NULL);
-#line 10715 "ui.c"
+#line 10723 "ui.c"
{
gchar* _tmp0_ = NULL;
GKeyFile* _tmp1_ = NULL;
@@ -10733,83 +10741,83 @@ static gchar* user_interface_state_get_string (UserInterface* self, GKeyFile* f,
const gchar* _tmp3_ = NULL;
gchar* _tmp4_ = NULL;
gchar* _tmp5_ = NULL;
-#line 2101 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2110 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = f;
-#line 2101 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2110 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = group_name;
-#line 2101 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2110 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = key;
-#line 2101 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2110 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = g_key_file_get_string (_tmp1_, _tmp2_, _tmp3_, &_inner_error_);
-#line 2101 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2110 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = _tmp4_;
-#line 2101 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2110 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 10735 "ui.c"
+#line 10743 "ui.c"
goto __catch26_g_error;
}
-#line 2101 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2110 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_ = _tmp0_;
-#line 2101 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2110 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = NULL;
-#line 2101 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2110 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = _tmp5_;
-#line 2101 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2110 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (_tmp0_);
-#line 2101 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2110 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 10748 "ui.c"
+#line 10756 "ui.c"
}
goto __finally26;
__catch26_g_error:
{
const gchar* _tmp6_ = NULL;
gchar* _tmp7_ = NULL;
-#line 2099 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2108 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_clear_error (&_inner_error_);
-#line 2099 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2108 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_inner_error_ = NULL;
-#line 2105 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2114 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp6_ = _default_;
-#line 2105 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2114 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp7_ = g_strdup (_tmp6_);
-#line 2105 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2114 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = _tmp7_;
-#line 2105 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2114 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 10767 "ui.c"
+#line 10775 "ui.c"
}
__finally26:
-#line 2099 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2108 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
-#line 2099 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2108 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_clear_error (&_inner_error_);
-#line 2099 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2108 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return NULL;
-#line 10776 "ui.c"
+#line 10784 "ui.c"
}
static gboolean ___lambda11_ (UserInterface* self) {
gboolean result = FALSE;
-#line 2117 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2126 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_save_state (self, TRUE);
-#line 2118 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2127 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->save_state_timeout = (guint) 0;
-#line 2119 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2128 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = FALSE;
-#line 2119 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2128 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 10790 "ui.c"
+#line 10798 "ui.c"
}
static gboolean ____lambda11__gsource_func (gpointer self) {
gboolean result;
result = ___lambda11_ ((UserInterface*) self);
-#line 2115 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2124 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 10799 "ui.c"
+#line 10807 "ui.c"
}
@@ -10836,151 +10844,151 @@ static void user_interface_save_state (UserInterface* self, gboolean force) {
gint _tmp21_ = 0;
ScanDirection _tmp22_ = 0;
GError * _inner_error_ = NULL;
-#line 2109 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2118 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
-#line 2111 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2120 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = force;
-#line 2111 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2120 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (!_tmp0_) {
-#line 10832 "ui.c"
+#line 10840 "ui.c"
guint _tmp1_ = 0U;
guint _tmp3_ = 0U;
-#line 2113 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2122 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = self->priv->save_state_timeout;
-#line 2113 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2122 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp1_ != ((guint) 0)) {
-#line 10839 "ui.c"
+#line 10847 "ui.c"
guint _tmp2_ = 0U;
-#line 2114 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2123 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = self->priv->save_state_timeout;
-#line 2114 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2123 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_source_remove (_tmp2_);
-#line 10845 "ui.c"
+#line 10853 "ui.c"
}
-#line 2115 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2124 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = g_timeout_add_full (G_PRIORITY_DEFAULT, (guint) 100, ____lambda11__gsource_func, g_object_ref (self), g_object_unref);
-#line 2115 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2124 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->save_state_timeout = _tmp3_;
-#line 2121 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2130 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
-#line 10853 "ui.c"
+#line 10861 "ui.c"
}
-#line 2124 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2133 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = user_interface_get_state_filename (self);
-#line 2124 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2133 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_ = _tmp4_;
-#line 2124 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2133 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp6_ = _tmp5_;
-#line 2124 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- g_debug ("ui.vala:2124: Saving state to %s", _tmp6_);
-#line 2124 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2133 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ g_debug ("ui.vala:2133: Saving state to %s", _tmp6_);
+#line 2133 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (_tmp6_);
-#line 2126 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2135 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp7_ = g_key_file_new ();
-#line 2126 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2135 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
f = _tmp7_;
-#line 2127 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2136 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp8_ = f;
-#line 2127 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2136 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp9_ = self->priv->window_width;
-#line 2127 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2136 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_key_file_set_integer (_tmp8_, "window", "width", _tmp9_);
-#line 2128 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2137 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp10_ = f;
-#line 2128 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2137 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp11_ = self->priv->window_height;
-#line 2128 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2137 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_key_file_set_integer (_tmp10_, "window", "height", _tmp11_);
-#line 2129 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2138 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp12_ = f;
-#line 2129 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2138 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp13_ = self->priv->window_is_maximized;
-#line 2129 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2138 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_key_file_set_boolean (_tmp12_, "window", "is-maximized", _tmp13_);
-#line 2130 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2139 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp14_ = f;
-#line 2130 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2139 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp15_ = self->priv->window_is_fullscreen;
-#line 2130 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2139 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_key_file_set_boolean (_tmp14_, "window", "is-fullscreen", _tmp15_);
-#line 2131 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2140 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp16_ = f;
-#line 2131 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2140 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp17_ = self->priv->default_page_width;
-#line 2131 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2140 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_key_file_set_integer (_tmp16_, "last-page", "width", _tmp17_);
-#line 2132 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2141 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp18_ = f;
-#line 2132 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2141 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp19_ = self->priv->default_page_height;
-#line 2132 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2141 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_key_file_set_integer (_tmp18_, "last-page", "height", _tmp19_);
-#line 2133 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2142 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp20_ = f;
-#line 2133 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2142 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp21_ = self->priv->default_page_dpi;
-#line 2133 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2142 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_key_file_set_integer (_tmp20_, "last-page", "dpi", _tmp21_);
-#line 2134 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2143 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp22_ = self->priv->default_page_scan_direction;
-#line 2134 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2143 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
switch (_tmp22_) {
-#line 2134 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2143 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
case SCAN_DIRECTION_TOP_TO_BOTTOM:
-#line 10917 "ui.c"
+#line 10925 "ui.c"
{
GKeyFile* _tmp23_ = NULL;
-#line 2137 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2146 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp23_ = f;
-#line 2137 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2146 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_key_file_set_value (_tmp23_, "last-page", "scan-direction", "top-to-bottom");
-#line 2138 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2147 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 10926 "ui.c"
+#line 10934 "ui.c"
}
-#line 2134 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2143 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
case SCAN_DIRECTION_BOTTOM_TO_TOP:
-#line 10930 "ui.c"
+#line 10938 "ui.c"
{
GKeyFile* _tmp24_ = NULL;
-#line 2140 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2149 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp24_ = f;
-#line 2140 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2149 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_key_file_set_value (_tmp24_, "last-page", "scan-direction", "bottom-to-top");
-#line 2141 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2150 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 10939 "ui.c"
+#line 10947 "ui.c"
}
-#line 2134 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2143 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
case SCAN_DIRECTION_LEFT_TO_RIGHT:
-#line 10943 "ui.c"
+#line 10951 "ui.c"
{
GKeyFile* _tmp25_ = NULL;
-#line 2143 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2152 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp25_ = f;
-#line 2143 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2152 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_key_file_set_value (_tmp25_, "last-page", "scan-direction", "left-to-right");
-#line 2144 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2153 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 10952 "ui.c"
+#line 10960 "ui.c"
}
-#line 2134 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2143 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
case SCAN_DIRECTION_RIGHT_TO_LEFT:
-#line 10956 "ui.c"
+#line 10964 "ui.c"
{
GKeyFile* _tmp26_ = NULL;
-#line 2146 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2155 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp26_ = f;
-#line 2146 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2155 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_key_file_set_value (_tmp26_, "last-page", "scan-direction", "right-to-left");
-#line 2147 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2156 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 10965 "ui.c"
+#line 10973 "ui.c"
}
default:
-#line 2134 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2143 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 10970 "ui.c"
+#line 10978 "ui.c"
}
{
gchar* _tmp27_ = NULL;
@@ -10989,27 +10997,27 @@ static void user_interface_save_state (UserInterface* self, gboolean force) {
GKeyFile* _tmp30_ = NULL;
gchar* _tmp31_ = NULL;
gchar* _tmp32_ = NULL;
-#line 2151 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2160 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp27_ = user_interface_get_state_filename (self);
-#line 2151 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2160 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp28_ = _tmp27_;
-#line 2151 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2160 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp29_ = _tmp28_;
-#line 2151 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2160 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp30_ = f;
-#line 2151 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2160 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp31_ = g_key_file_to_data (_tmp30_, NULL, NULL);
-#line 2151 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2160 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp32_ = _tmp31_;
-#line 2151 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2160 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_file_set_contents (_tmp29_, _tmp32_, (gssize) -1, &_inner_error_);
-#line 2151 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2160 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (_tmp32_);
-#line 2151 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2160 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (_tmp29_);
-#line 2151 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2160 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 10999 "ui.c"
+#line 11007 "ui.c"
goto __catch27_g_error;
}
}
@@ -11019,60 +11027,60 @@ static void user_interface_save_state (UserInterface* self, gboolean force) {
GError* e = NULL;
GError* _tmp33_ = NULL;
const gchar* _tmp34_ = NULL;
-#line 2149 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2158 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
e = _inner_error_;
-#line 2149 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2158 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_inner_error_ = NULL;
-#line 2155 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2164 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp33_ = e;
-#line 2155 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2164 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp34_ = _tmp33_->message;
-#line 2155 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- g_warning ("ui.vala:2155: Failed to write state: %s", _tmp34_);
-#line 2149 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2164 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ g_warning ("ui.vala:2164: Failed to write state: %s", _tmp34_);
+#line 2158 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_error_free0 (e);
-#line 11021 "ui.c"
+#line 11029 "ui.c"
}
__finally27:
-#line 2149 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2158 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2149 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2158 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_key_file_unref0 (f);
-#line 2149 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2158 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
-#line 2149 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2158 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_clear_error (&_inner_error_);
-#line 2149 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2158 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
-#line 11034 "ui.c"
+#line 11042 "ui.c"
}
-#line 2109 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2118 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_key_file_unref0 (f);
-#line 11038 "ui.c"
+#line 11046 "ui.c"
}
static gboolean ___lambda21_ (UserInterface* self) {
gboolean result = FALSE;
ProgressBarDialog* _tmp0_ = NULL;
-#line 2170 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2179 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = self->priv->progress_dialog;
-#line 2170 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2179 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_set_visible ((GtkWidget*) _tmp0_, FALSE);
-#line 2171 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2180 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = FALSE;
-#line 2171 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2180 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 11053 "ui.c"
+#line 11061 "ui.c"
}
static gboolean ____lambda21__gsource_func (gpointer self) {
gboolean result;
result = ___lambda21_ ((UserInterface*) self);
-#line 2169 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2178 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 11062 "ui.c"
+#line 11070 "ui.c"
}
@@ -11095,97 +11103,97 @@ static void user_interface_book_saving_cb (UserInterface* self, gint page_number
ProgressBarDialog* _tmp12_ = NULL;
gdouble _tmp13_ = 0.0;
ProgressBarDialog* _tmp14_ = NULL;
-#line 2159 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2168 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
-#line 2162 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2171 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
while (TRUE) {
-#line 11089 "ui.c"
+#line 11097 "ui.c"
gboolean _tmp0_ = FALSE;
-#line 2162 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2171 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = gtk_events_pending ();
-#line 2162 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2171 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (!_tmp0_) {
-#line 2162 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2171 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 11097 "ui.c"
+#line 11105 "ui.c"
}
-#line 2163 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2172 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_main_iteration ();
-#line 11101 "ui.c"
+#line 11109 "ui.c"
}
-#line 2165 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2174 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = self->priv->_book;
-#line 2165 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2174 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = book_get_n_pages (_tmp1_);
-#line 2165 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2174 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = _tmp2_;
-#line 2165 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2174 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
total = (gint) _tmp3_;
-#line 2166 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2175 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = page_number;
-#line 2166 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2175 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_ = total;
-#line 2166 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2175 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
fraction = (_tmp4_ + 1.0) / _tmp5_;
-#line 2167 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2176 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp6_ = fraction;
-#line 2167 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2176 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
complete = _tmp6_ == 1.0;
-#line 2168 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2177 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp7_ = complete;
-#line 2168 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2177 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp7_) {
-#line 2169 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2178 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_timeout_add_full (G_PRIORITY_DEFAULT, (guint) 500, ____lambda21__gsource_func, g_object_ref (self), g_object_unref);
-#line 11127 "ui.c"
+#line 11135 "ui.c"
}
-#line 2173 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2182 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp8_ = _ ("Saving page %d out of %d");
-#line 2173 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2182 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp9_ = page_number;
-#line 2173 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2182 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp10_ = total;
-#line 2173 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2182 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp11_ = g_strdup_printf (_tmp8_, _tmp9_ + 1, _tmp10_);
-#line 2173 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2182 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
message = _tmp11_;
-#line 2175 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2184 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp12_ = self->priv->progress_dialog;
-#line 2175 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2184 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp13_ = fraction;
-#line 2175 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2184 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
progress_bar_dialog_set_fraction (_tmp12_, _tmp13_);
-#line 2176 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2185 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp14_ = self->priv->progress_dialog;
-#line 2176 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2185 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
progress_bar_dialog_set_message (_tmp14_, message);
-#line 2159 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2168 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (message);
-#line 11151 "ui.c"
+#line 11159 "ui.c"
}
void user_interface_show_progress_dialog (UserInterface* self) {
ProgressBarDialog* _tmp0_ = NULL;
-#line 2179 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2188 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
-#line 2181 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2190 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = self->priv->progress_dialog;
-#line 2181 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2190 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_set_visible ((GtkWidget*) _tmp0_, TRUE);
-#line 11163 "ui.c"
+#line 11171 "ui.c"
}
void user_interface_hide_progress_dialog (UserInterface* self) {
ProgressBarDialog* _tmp0_ = NULL;
-#line 2184 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2193 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
-#line 2186 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2195 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = self->priv->progress_dialog;
-#line 2186 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2195 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_set_visible ((GtkWidget*) _tmp0_, FALSE);
-#line 11175 "ui.c"
+#line 11183 "ui.c"
}
@@ -11195,46 +11203,46 @@ void user_interface_show_error (UserInterface* self, const gchar* error_title, c
const gchar* _tmp2_ = NULL;
gchar* _tmp3_ = NULL;
gboolean _tmp4_ = FALSE;
-#line 2189 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2198 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
-#line 2189 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2198 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (error_title != NULL);
-#line 2189 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2198 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (error_text != NULL);
-#line 2191 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2200 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->have_error = TRUE;
-#line 2192 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2201 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = error_title;
-#line 2192 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2201 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = g_strdup (_tmp0_);
-#line 2192 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2201 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (self->priv->error_title);
-#line 2192 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2201 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->error_title = _tmp1_;
-#line 2193 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2202 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = error_text;
-#line 2193 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2202 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = g_strdup (_tmp2_);
-#line 2193 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2202 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (self->priv->error_text);
-#line 2193 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2202 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->error_text = _tmp3_;
-#line 2194 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2203 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = change_scanner_hint;
-#line 2194 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2203 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->error_change_scanner_hint = _tmp4_;
-#line 2195 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2204 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
user_interface_update_info_bar (self);
-#line 11215 "ui.c"
+#line 11223 "ui.c"
}
void user_interface_start (UserInterface* self) {
-#line 2198 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2207 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
-#line 2200 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2209 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_set_visible ((GtkWidget*) self, TRUE);
-#line 11224 "ui.c"
+#line 11232 "ui.c"
}
@@ -11249,14 +11257,14 @@ Book* user_interface_get_book (UserInterface* self) {
result = _tmp0_;
#line 164 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 11239 "ui.c"
+#line 11247 "ui.c"
}
static gpointer _book_ref0 (gpointer self) {
#line 164 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return self ? book_ref (self) : NULL;
-#line 11246 "ui.c"
+#line 11254 "ui.c"
}
@@ -11275,7 +11283,7 @@ static void user_interface_set_book (UserInterface* self, Book* value) {
self->priv->_book = _tmp1_;
#line 164 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_object_notify ((GObject *) self, "book");
-#line 11265 "ui.c"
+#line 11273 "ui.c"
}
@@ -11296,7 +11304,7 @@ Page* user_interface_get_selected_page (UserInterface* self) {
result = _tmp2_;
#line 171 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 11286 "ui.c"
+#line 11294 "ui.c"
}
@@ -11313,7 +11321,7 @@ void user_interface_set_selected_page (UserInterface* self, Page* value) {
book_view_set_selected_page (_tmp0_, _tmp1_);
#line 173 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_object_notify ((GObject *) self, "selected-page");
-#line 11303 "ui.c"
+#line 11311 "ui.c"
}
@@ -11328,7 +11336,7 @@ gboolean user_interface_get_scanning (UserInterface* self) {
result = _tmp0_;
#line 193 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 11318 "ui.c"
+#line 11326 "ui.c"
}
@@ -11382,7 +11390,7 @@ void user_interface_set_scanning (UserInterface* self, gboolean value) {
gtk_widget_set_visible ((GtkWidget*) _tmp9_, _tmp10_);
#line 194 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_object_notify ((GObject *) self, "scanning");
-#line 11372 "ui.c"
+#line 11380 "ui.c"
}
@@ -11403,7 +11411,7 @@ gint user_interface_get_brightness (UserInterface* self) {
result = (gint) _tmp2_;
#line 214 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 11393 "ui.c"
+#line 11401 "ui.c"
}
@@ -11420,7 +11428,7 @@ void user_interface_set_brightness (UserInterface* self, gint value) {
gtk_adjustment_set_value (_tmp0_, (gdouble) _tmp1_);
#line 215 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_object_notify ((GObject *) self, "brightness");
-#line 11410 "ui.c"
+#line 11418 "ui.c"
}
@@ -11441,7 +11449,7 @@ gint user_interface_get_contrast (UserInterface* self) {
result = (gint) _tmp2_;
#line 220 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 11431 "ui.c"
+#line 11439 "ui.c"
}
@@ -11458,7 +11466,7 @@ void user_interface_set_contrast (UserInterface* self, gint value) {
gtk_adjustment_set_value (_tmp0_, (gdouble) _tmp1_);
#line 221 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_object_notify ((GObject *) self, "contrast");
-#line 11448 "ui.c"
+#line 11456 "ui.c"
}
@@ -11479,7 +11487,7 @@ gint user_interface_get_quality (UserInterface* self) {
result = (gint) _tmp2_;
#line 226 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 11469 "ui.c"
+#line 11477 "ui.c"
}
@@ -11496,7 +11504,7 @@ void user_interface_set_quality (UserInterface* self, gint value) {
gtk_adjustment_set_value (_tmp0_, (gdouble) _tmp1_);
#line 227 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_object_notify ((GObject *) self, "quality");
-#line 11486 "ui.c"
+#line 11494 "ui.c"
}
@@ -11516,7 +11524,7 @@ gchar* user_interface_get_selected_device (UserInterface* self) {
iter = _tmp1_;
#line 236 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (_tmp2_) {
-#line 11506 "ui.c"
+#line 11514 "ui.c"
gchar* device = NULL;
GtkListStore* _tmp3_ = NULL;
GtkTreeIter _tmp4_ = {0};
@@ -11530,13 +11538,13 @@ gchar* user_interface_get_selected_device (UserInterface* self) {
result = device;
#line 240 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 11520 "ui.c"
+#line 11528 "ui.c"
}
#line 243 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = NULL;
#line 243 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 11526 "ui.c"
+#line 11534 "ui.c"
}
@@ -11559,7 +11567,7 @@ void user_interface_set_selected_device (UserInterface* self, const gchar* value
if (!_tmp2_) {
#line 250 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return;
-#line 11549 "ui.c"
+#line 11557 "ui.c"
}
#line 252 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = self->priv->device_combo;
@@ -11571,7 +11579,7 @@ void user_interface_set_selected_device (UserInterface* self, const gchar* value
self->priv->user_selected_device = TRUE;
#line 246 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_object_notify ((GObject *) self, "selected-device");
-#line 11561 "ui.c"
+#line 11569 "ui.c"
}
@@ -11579,17 +11587,17 @@ static gchar* user_interface_get_state_filename (UserInterface* self) {
gchar* result;
const gchar* _tmp0_ = NULL;
gchar* _tmp1_ = NULL;
-#line 2027 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2036 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (self != NULL, NULL);
-#line 2027 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2036 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = g_get_user_cache_dir ();
-#line 2027 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2036 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = g_build_filename (_tmp0_, "simple-scan", "state", NULL);
-#line 2027 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2036 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = _tmp1_;
-#line 2027 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2036 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 11579 "ui.c"
+#line 11587 "ui.c"
}
@@ -11608,19 +11616,19 @@ static void g_cclosure_user_marshal_VOID__STRING_SCAN_OPTIONS (GClosure * closur
data1 = closure->data;
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
data2 = param_values->data[0].v_pointer;
-#line 11598 "ui.c"
+#line 11606 "ui.c"
} else {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
data1 = param_values->data[0].v_pointer;
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
data2 = closure->data;
-#line 11604 "ui.c"
+#line 11612 "ui.c"
}
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
callback = (GMarshalFunc_VOID__STRING_SCAN_OPTIONS) (marshal_data ? marshal_data : cc->callback);
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
callback (data1, g_value_get_string (param_values + 1), value_get_scan_options (param_values + 2), data2);
-#line 11610 "ui.c"
+#line 11618 "ui.c"
}
@@ -11639,19 +11647,19 @@ static void g_cclosure_user_marshal_VOID__STRING_INT (GClosure * closure, GValue
data1 = closure->data;
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
data2 = param_values->data[0].v_pointer;
-#line 11629 "ui.c"
+#line 11637 "ui.c"
} else {
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
data1 = param_values->data[0].v_pointer;
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
data2 = closure->data;
-#line 11635 "ui.c"
+#line 11643 "ui.c"
}
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
callback = (GMarshalFunc_VOID__STRING_INT) (marshal_data ? marshal_data : cc->callback);
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
callback (data1, g_value_get_string (param_values + 1), g_value_get_int (param_values + 2), data2);
-#line 11641 "ui.c"
+#line 11649 "ui.c"
}
@@ -11875,7 +11883,7 @@ static void user_interface_class_init (UserInterfaceClass * klass) {
gtk_widget_class_bind_template_callback_full (GTK_WIDGET_CLASS (klass), "quit_menuitem_activate_cb", G_CALLBACK(_user_interface_quit_menuitem_activate_cb_gtk_menu_item_activate));
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_class_bind_template_callback_full (GTK_WIDGET_CLASS (klass), "window_delete_event_cb", G_CALLBACK(_user_interface_window_delete_event_cb_gtk_widget_delete_event));
-#line 11865 "ui.c"
+#line 11873 "ui.c"
}
@@ -11895,7 +11903,7 @@ static void user_interface_instance_init (UserInterface * self) {
self->priv->scanning_ = FALSE;
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_init_template (GTK_WIDGET (self));
-#line 11885 "ui.c"
+#line 11893 "ui.c"
}
@@ -12071,7 +12079,7 @@ static void user_interface_finalize (GObject* obj) {
_g_free0 (self->priv->document_hint);
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
G_OBJECT_CLASS (user_interface_parent_class)->finalize (obj);
-#line 12061 "ui.c"
+#line 12069 "ui.c"
}
@@ -12134,13 +12142,13 @@ static void _vala_user_interface_get_property (GObject * object, guint property_
g_value_take_string (value, user_interface_get_selected_device (self));
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 12124 "ui.c"
+#line 12132 "ui.c"
default:
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 12130 "ui.c"
+#line 12138 "ui.c"
}
}
@@ -12192,13 +12200,13 @@ static void _vala_user_interface_set_property (GObject * object, guint property_
user_interface_set_selected_device (self, g_value_get_string (value));
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 12182 "ui.c"
+#line 12190 "ui.c"
default:
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 14 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 12188 "ui.c"
+#line 12196 "ui.c"
}
}
@@ -12217,92 +12225,92 @@ ProgressBarDialog* progress_bar_dialog_construct (GType object_type, GtkApplicat
const gchar* _tmp7_ = NULL;
GtkApplicationWindow* _tmp8_ = NULL;
GtkProgressBar* _tmp9_ = NULL;
-#line 2220 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2229 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (parent != NULL, NULL);
-#line 2220 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2229 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (title != NULL, NULL);
-#line 2220 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2229 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self = (ProgressBarDialog*) g_object_new (object_type, NULL);
-#line 2222 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2231 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = (GtkProgressBar*) gtk_progress_bar_new ();
-#line 2222 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2231 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_object_ref_sink (_tmp0_);
-#line 2222 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2231 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->bar);
-#line 2222 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2231 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->bar = _tmp0_;
-#line 2223 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2232 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
-#line 2223 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2232 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_object_ref_sink (_tmp1_);
-#line 2223 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2232 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
hbox = _tmp1_;
-#line 2224 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2233 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
-#line 2224 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2233 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_object_ref_sink (_tmp2_);
-#line 2224 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2233 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
vbox = _tmp2_;
-#line 2225 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2234 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_set_hexpand ((GtkWidget*) hbox, TRUE);
-#line 2227 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2236 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = self->priv->bar;
-#line 2227 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2236 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_progress_bar_set_text (_tmp3_, "");
-#line 2228 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2237 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = self->priv->bar;
-#line 2228 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2237 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_progress_bar_set_show_text (_tmp4_, TRUE);
-#line 2229 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2238 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_ = self->priv->bar;
-#line 2229 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2238 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_set_size_request ((GtkWidget*) _tmp5_, 225, 25);
-#line 2230 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2239 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_set_size_request ((GtkWidget*) self, 250, 50);
-#line 2232 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2241 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp6_ = self->priv->bar;
-#line 2232 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2241 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_box_pack_start (vbox, (GtkWidget*) _tmp6_, TRUE, FALSE, (guint) 0);
-#line 2233 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2242 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_box_pack_start (hbox, (GtkWidget*) vbox, TRUE, FALSE, (guint) 0);
-#line 2234 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2243 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_container_add ((GtkContainer*) self, (GtkWidget*) hbox);
-#line 2235 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2244 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp7_ = title;
-#line 2235 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2244 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_window_set_title ((GtkWindow*) self, _tmp7_);
-#line 2237 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2246 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp8_ = parent;
-#line 2237 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2246 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_window_set_transient_for ((GtkWindow*) self, (GtkWindow*) _tmp8_);
-#line 2238 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2247 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_window_set_position ((GtkWindow*) self, GTK_WIN_POS_CENTER_ON_PARENT);
-#line 2239 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2248 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_window_set_modal ((GtkWindow*) self, TRUE);
-#line 2240 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2249 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_window_set_resizable ((GtkWindow*) self, FALSE);
-#line 2242 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2251 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_set_visible ((GtkWidget*) hbox, TRUE);
-#line 2243 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2252 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_set_visible ((GtkWidget*) vbox, TRUE);
-#line 2244 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2253 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp9_ = self->priv->bar;
-#line 2244 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2253 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_widget_set_visible ((GtkWidget*) _tmp9_, TRUE);
-#line 2220 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2229 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (vbox);
-#line 2220 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2229 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (hbox);
-#line 2220 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2229 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return self;
-#line 12285 "ui.c"
+#line 12293 "ui.c"
}
ProgressBarDialog* progress_bar_dialog_new (GtkApplicationWindow* parent, const gchar* title) {
-#line 2220 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2229 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return progress_bar_dialog_construct (TYPE_PROGRESS_BAR_DIALOG, parent, title);
-#line 12292 "ui.c"
+#line 12300 "ui.c"
}
@@ -12311,36 +12319,36 @@ gdouble progress_bar_dialog_get_fraction (ProgressBarDialog* self) {
GtkProgressBar* _tmp0_ = NULL;
gdouble _tmp1_ = 0.0;
gdouble _tmp2_ = 0.0;
-#line 2210 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2219 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (self != NULL, 0.0);
-#line 2210 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2219 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = self->priv->bar;
-#line 2210 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2219 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = gtk_progress_bar_get_fraction (_tmp0_);
-#line 2210 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2219 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = _tmp1_;
-#line 2210 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2219 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = _tmp2_;
-#line 2210 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2219 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 12313 "ui.c"
+#line 12321 "ui.c"
}
void progress_bar_dialog_set_fraction (ProgressBarDialog* self, gdouble value) {
GtkProgressBar* _tmp0_ = NULL;
gdouble _tmp1_ = 0.0;
-#line 2211 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2220 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
-#line 2211 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2220 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = self->priv->bar;
-#line 2211 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2220 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = value;
-#line 2211 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2220 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_progress_bar_set_fraction (_tmp0_, _tmp1_);
-#line 2211 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2220 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_object_notify ((GObject *) self, "fraction");
-#line 12330 "ui.c"
+#line 12338 "ui.c"
}
@@ -12349,74 +12357,74 @@ const gchar* progress_bar_dialog_get_message (ProgressBarDialog* self) {
GtkProgressBar* _tmp0_ = NULL;
const gchar* _tmp1_ = NULL;
const gchar* _tmp2_ = NULL;
-#line 2216 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2225 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (self != NULL, NULL);
-#line 2216 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2225 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = self->priv->bar;
-#line 2216 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2225 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = gtk_progress_bar_get_text (_tmp0_);
-#line 2216 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2225 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = _tmp1_;
-#line 2216 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2225 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = _tmp2_;
-#line 2216 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2225 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 12351 "ui.c"
+#line 12359 "ui.c"
}
void progress_bar_dialog_set_message (ProgressBarDialog* self, const gchar* value) {
GtkProgressBar* _tmp0_ = NULL;
const gchar* _tmp1_ = NULL;
-#line 2217 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2226 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_if_fail (self != NULL);
-#line 2217 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2226 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = self->priv->bar;
-#line 2217 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2226 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = value;
-#line 2217 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2226 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
gtk_progress_bar_set_text (_tmp0_, _tmp1_);
-#line 2217 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2226 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_object_notify ((GObject *) self, "message");
-#line 12368 "ui.c"
+#line 12376 "ui.c"
}
static void progress_bar_dialog_class_init (ProgressBarDialogClass * klass) {
-#line 2204 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2213 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
progress_bar_dialog_parent_class = g_type_class_peek_parent (klass);
-#line 2204 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2213 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_type_class_add_private (klass, sizeof (ProgressBarDialogPrivate));
-#line 2204 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2213 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
G_OBJECT_CLASS (klass)->get_property = _vala_progress_bar_dialog_get_property;
-#line 2204 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2213 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
G_OBJECT_CLASS (klass)->set_property = _vala_progress_bar_dialog_set_property;
-#line 2204 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2213 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
G_OBJECT_CLASS (klass)->finalize = progress_bar_dialog_finalize;
-#line 2204 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2213 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_object_class_install_property (G_OBJECT_CLASS (klass), PROGRESS_BAR_DIALOG_FRACTION, g_param_spec_double ("fraction", "fraction", "fraction", -G_MAXDOUBLE, G_MAXDOUBLE, 0.0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
-#line 2204 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2213 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_object_class_install_property (G_OBJECT_CLASS (klass), PROGRESS_BAR_DIALOG_MESSAGE, g_param_spec_string ("message", "message", "message", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
-#line 12387 "ui.c"
+#line 12395 "ui.c"
}
static void progress_bar_dialog_instance_init (ProgressBarDialog * self) {
-#line 2204 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2213 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv = PROGRESS_BAR_DIALOG_GET_PRIVATE (self);
-#line 12394 "ui.c"
+#line 12402 "ui.c"
}
static void progress_bar_dialog_finalize (GObject* obj) {
ProgressBarDialog * self;
-#line 2204 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2213 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PROGRESS_BAR_DIALOG, ProgressBarDialog);
-#line 2206 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2215 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_object_unref0 (self->priv->bar);
-#line 2204 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2213 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
G_OBJECT_CLASS (progress_bar_dialog_parent_class)->finalize (obj);
-#line 12406 "ui.c"
+#line 12414 "ui.c"
}
@@ -12435,27 +12443,27 @@ GType progress_bar_dialog_get_type (void) {
static void _vala_progress_bar_dialog_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
ProgressBarDialog * self;
self = G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_PROGRESS_BAR_DIALOG, ProgressBarDialog);
-#line 2204 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2213 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
switch (property_id) {
-#line 2204 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2213 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
case PROGRESS_BAR_DIALOG_FRACTION:
-#line 2204 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2213 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_value_set_double (value, progress_bar_dialog_get_fraction (self));
-#line 2204 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2213 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 2204 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2213 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
case PROGRESS_BAR_DIALOG_MESSAGE:
-#line 2204 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2213 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_value_set_string (value, progress_bar_dialog_get_message (self));
-#line 2204 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2213 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 12439 "ui.c"
+#line 12447 "ui.c"
default:
-#line 2204 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2213 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
-#line 2204 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2213 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 12445 "ui.c"
+#line 12453 "ui.c"
}
}
@@ -12463,27 +12471,27 @@ static void _vala_progress_bar_dialog_get_property (GObject * object, guint prop
static void _vala_progress_bar_dialog_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
ProgressBarDialog * self;
self = G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_PROGRESS_BAR_DIALOG, ProgressBarDialog);
-#line 2204 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2213 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
switch (property_id) {
-#line 2204 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2213 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
case PROGRESS_BAR_DIALOG_FRACTION:
-#line 2204 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2213 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
progress_bar_dialog_set_fraction (self, g_value_get_double (value));
-#line 2204 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2213 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 2204 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2213 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
case PROGRESS_BAR_DIALOG_MESSAGE:
-#line 2204 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2213 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
progress_bar_dialog_set_message (self, g_value_get_string (value));
-#line 2204 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2213 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 12467 "ui.c"
+#line 12475 "ui.c"
default:
-#line 2204 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2213 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
-#line 2204 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2213 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
break;
-#line 12473 "ui.c"
+#line 12481 "ui.c"
}
}
@@ -12496,45 +12504,45 @@ gchar* get_temporary_filename (const gchar* prefix, const gchar* extension) {
gchar* _tmp2_ = NULL;
gchar* path = NULL;
GError * _inner_error_ = NULL;
-#line 2249 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2258 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (prefix != NULL, NULL);
-#line 2249 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2258 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (extension != NULL, NULL);
-#line 2254 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2263 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = prefix;
-#line 2254 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2263 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = extension;
-#line 2254 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2263 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = g_strdup_printf ("%sXXXXXX.%s", _tmp0_, _tmp1_);
-#line 2254 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2263 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
filename = _tmp2_;
-#line 12498 "ui.c"
+#line 12506 "ui.c"
{
gint fd = 0;
const gchar* _tmp3_ = NULL;
gchar* _tmp4_ = NULL;
gint _tmp5_ = 0;
gint _tmp6_ = 0;
-#line 2258 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2267 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = filename;
-#line 2258 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2267 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_ = g_file_open_tmp (_tmp3_, &_tmp4_, &_inner_error_);
-#line 2258 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2267 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (path);
-#line 2258 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2267 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
path = _tmp4_;
-#line 2258 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2267 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
fd = _tmp5_;
-#line 2258 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2267 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 12517 "ui.c"
+#line 12525 "ui.c"
goto __catch28_g_error;
}
-#line 2259 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2268 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp6_ = fd;
-#line 2259 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2268 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
close (_tmp6_);
-#line 12524 "ui.c"
+#line 12532 "ui.c"
}
goto __finally28;
__catch28_g_error:
@@ -12542,50 +12550,50 @@ gchar* get_temporary_filename (const gchar* prefix, const gchar* extension) {
GError* e = NULL;
GError* _tmp7_ = NULL;
const gchar* _tmp8_ = NULL;
-#line 2256 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2265 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
e = _inner_error_;
-#line 2256 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2265 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_inner_error_ = NULL;
-#line 2263 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2272 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp7_ = e;
-#line 2263 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2272 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp8_ = _tmp7_->message;
-#line 2263 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
- g_warning ("ui.vala:2263: Error saving email attachment: %s", _tmp8_);
-#line 2264 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2272 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+ g_warning ("ui.vala:2272: Error saving email attachment: %s", _tmp8_);
+#line 2273 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = NULL;
-#line 2264 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2273 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_error_free0 (e);
-#line 2264 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2273 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (path);
-#line 2264 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2273 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (filename);
-#line 2264 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2273 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 12552 "ui.c"
+#line 12560 "ui.c"
}
__finally28:
-#line 2256 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2265 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2256 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2265 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (path);
-#line 2256 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2265 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (filename);
-#line 2256 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2265 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
-#line 2256 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2265 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_clear_error (&_inner_error_);
-#line 2256 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2265 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return NULL;
-#line 12567 "ui.c"
+#line 12575 "ui.c"
}
-#line 2267 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2276 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = path;
-#line 2267 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2276 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (filename);
-#line 2267 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2276 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 12575 "ui.c"
+#line 12583 "ui.c"
}
@@ -12596,40 +12604,40 @@ PageIcon* page_icon_construct (GType object_type, const gchar* text, gdouble r,
gdouble _tmp2_ = 0.0;
gdouble _tmp3_ = 0.0;
gdouble _tmp4_ = 0.0;
-#line 2278 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2287 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (text != NULL, NULL);
-#line 2278 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2287 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self = (PageIcon*) g_object_new (object_type, NULL);
-#line 2280 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2289 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = text;
-#line 2280 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2289 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = g_strdup (_tmp0_);
-#line 2280 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2289 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (self->priv->text);
-#line 2280 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2289 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->text = _tmp1_;
-#line 2281 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2290 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = r;
-#line 2281 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2290 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->r = _tmp2_;
-#line 2282 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2291 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = g;
-#line 2282 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2291 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->g = _tmp3_;
-#line 2283 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2292 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = b;
-#line 2283 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2292 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv->b = _tmp4_;
-#line 2278 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2287 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return self;
-#line 12612 "ui.c"
+#line 12620 "ui.c"
}
PageIcon* page_icon_new (const gchar* text, gdouble r, gdouble g, gdouble b) {
-#line 2278 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2287 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return page_icon_construct (TYPE_PAGE_ICON, text, r, g, b);
-#line 12619 "ui.c"
+#line 12627 "ui.c"
}
@@ -12637,23 +12645,23 @@ static void page_icon_real_get_preferred_width (GtkWidget* base, gint* minimum_w
PageIcon * self;
gint _vala_minimum_width = 0;
gint _vala_natural_width = 0;
-#line 2286 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2295 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self = (PageIcon*) base;
-#line 2288 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2297 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_vala_natural_width = PAGE_ICON_MINIMUM_WIDTH;
-#line 2288 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2297 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_vala_minimum_width = _vala_natural_width;
-#line 2286 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2295 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (minimum_width) {
-#line 2286 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2295 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
*minimum_width = _vala_minimum_width;
-#line 12637 "ui.c"
+#line 12645 "ui.c"
}
-#line 2286 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2295 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (natural_width) {
-#line 2286 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2295 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
*natural_width = _vala_natural_width;
-#line 12643 "ui.c"
+#line 12651 "ui.c"
}
}
@@ -12663,25 +12671,25 @@ static void page_icon_real_get_preferred_height (GtkWidget* base, gint* minimum_
gint _vala_minimum_height = 0;
gint _vala_natural_height = 0;
gdouble _tmp0_ = 0.0;
-#line 2291 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2300 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self = (PageIcon*) base;
-#line 2293 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2302 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = round (PAGE_ICON_MINIMUM_WIDTH * G_SQRT2);
-#line 2293 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2302 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_vala_natural_height = (gint) _tmp0_;
-#line 2293 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2302 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_vala_minimum_height = _vala_natural_height;
-#line 2291 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2300 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (minimum_height) {
-#line 2291 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2300 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
*minimum_height = _vala_minimum_height;
-#line 12665 "ui.c"
+#line 12673 "ui.c"
}
-#line 2291 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2300 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (natural_height) {
-#line 2291 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2300 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
*natural_height = _vala_natural_height;
-#line 12671 "ui.c"
+#line 12679 "ui.c"
}
}
@@ -12691,25 +12699,25 @@ static void page_icon_real_get_preferred_height_for_width (GtkWidget* base, gint
gint _vala_minimum_height = 0;
gint _vala_natural_height = 0;
gint _tmp0_ = 0;
-#line 2296 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2305 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self = (PageIcon*) base;
-#line 2298 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2307 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = width;
-#line 2298 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2307 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_vala_natural_height = (gint) (_tmp0_ * G_SQRT2);
-#line 2298 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2307 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_vala_minimum_height = _vala_natural_height;
-#line 2296 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2305 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (minimum_height) {
-#line 2296 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2305 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
*minimum_height = _vala_minimum_height;
-#line 12693 "ui.c"
+#line 12701 "ui.c"
}
-#line 2296 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2305 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (natural_height) {
-#line 2296 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2305 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
*natural_height = _vala_natural_height;
-#line 12699 "ui.c"
+#line 12707 "ui.c"
}
}
@@ -12719,25 +12727,25 @@ static void page_icon_real_get_preferred_width_for_height (GtkWidget* base, gint
gint _vala_minimum_width = 0;
gint _vala_natural_width = 0;
gint _tmp0_ = 0;
-#line 2301 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2310 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self = (PageIcon*) base;
-#line 2303 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2312 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = height;
-#line 2303 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2312 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_vala_natural_width = (gint) (_tmp0_ / G_SQRT2);
-#line 2303 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2312 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_vala_minimum_width = _vala_natural_width;
-#line 2301 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2310 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (minimum_width) {
-#line 2301 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2310 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
*minimum_width = _vala_minimum_width;
-#line 12721 "ui.c"
+#line 12729 "ui.c"
}
-#line 2301 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2310 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if (natural_width) {
-#line 2301 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2310 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
*natural_width = _vala_natural_width;
-#line 12727 "ui.c"
+#line 12735 "ui.c"
}
}
@@ -12780,166 +12788,166 @@ static gboolean page_icon_real_draw (GtkWidget* base, cairo_t* c) {
gdouble _tmp33_ = 0.0;
cairo_t* _tmp34_ = NULL;
const gchar* _tmp35_ = NULL;
-#line 2306 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2315 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self = (PageIcon*) base;
-#line 2306 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2315 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_return_val_if_fail (c != NULL, FALSE);
-#line 2308 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2317 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp0_ = gtk_widget_get_allocated_width ((GtkWidget*) self);
-#line 2308 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2317 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
w = _tmp0_;
-#line 2309 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2318 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp1_ = gtk_widget_get_allocated_height ((GtkWidget*) self);
-#line 2309 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2318 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
h = _tmp1_;
-#line 2310 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2319 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp2_ = w;
-#line 2310 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2319 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp3_ = h;
-#line 2310 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2319 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
if ((_tmp2_ * G_SQRT2) > ((gdouble) _tmp3_)) {
-#line 12788 "ui.c"
+#line 12796 "ui.c"
gint _tmp4_ = 0;
gdouble _tmp5_ = 0.0;
-#line 2311 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2320 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp4_ = h;
-#line 2311 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2320 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp5_ = round (_tmp4_ / G_SQRT2);
-#line 2311 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2320 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
w = (gint) _tmp5_;
-#line 12797 "ui.c"
+#line 12805 "ui.c"
} else {
gint _tmp6_ = 0;
gdouble _tmp7_ = 0.0;
-#line 2313 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2322 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp6_ = w;
-#line 2313 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2322 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp7_ = round (_tmp6_ * G_SQRT2);
-#line 2313 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2322 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
h = (gint) _tmp7_;
-#line 12807 "ui.c"
+#line 12815 "ui.c"
}
-#line 2315 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2324 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp8_ = c;
-#line 2315 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2324 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp9_ = gtk_widget_get_allocated_width ((GtkWidget*) self);
-#line 2315 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2324 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp10_ = w;
-#line 2315 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2324 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp11_ = gtk_widget_get_allocated_height ((GtkWidget*) self);
-#line 2315 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2324 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp12_ = h;
-#line 2315 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2324 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
cairo_translate (_tmp8_, (gdouble) ((_tmp9_ - _tmp10_) / 2), (gdouble) ((_tmp11_ - _tmp12_) / 2));
-#line 2317 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2326 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp13_ = c;
-#line 2317 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2326 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp14_ = w;
-#line 2317 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2326 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp15_ = h;
-#line 2317 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2326 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
cairo_rectangle (_tmp13_, 0.5, 0.5, (gdouble) (_tmp14_ - 1), (gdouble) (_tmp15_ - 1));
-#line 2319 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2328 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp16_ = c;
-#line 2319 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2328 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp17_ = self->priv->r;
-#line 2319 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2328 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp18_ = self->priv->g;
-#line 2319 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2328 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp19_ = self->priv->b;
-#line 2319 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2328 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
cairo_set_source_rgb (_tmp16_, _tmp17_, _tmp18_, _tmp19_);
-#line 2320 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2329 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp20_ = c;
-#line 2320 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2329 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
cairo_fill_preserve (_tmp20_);
-#line 2322 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2331 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp21_ = c;
-#line 2322 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2331 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
cairo_set_line_width (_tmp21_, 1.0);
-#line 2323 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2332 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp22_ = c;
-#line 2323 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2332 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
cairo_set_source_rgb (_tmp22_, 0.0, 0.0, 0.0);
-#line 2324 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2333 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp23_ = c;
-#line 2324 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2333 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
cairo_stroke (_tmp23_);
-#line 2327 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2336 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp24_ = c;
-#line 2327 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2336 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp25_ = self->priv->text;
-#line 2327 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2336 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
cairo_text_extents (_tmp24_, _tmp25_, &_tmp26_);
-#line 2327 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2336 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
extents = _tmp26_;
-#line 2328 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2337 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp27_ = c;
-#line 2328 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2337 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp28_ = w;
-#line 2328 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2337 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp29_ = extents;
-#line 2328 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2337 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp30_ = _tmp29_.width;
-#line 2328 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2337 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp31_ = h;
-#line 2328 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2337 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp32_ = extents;
-#line 2328 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2337 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp33_ = _tmp32_.height;
-#line 2328 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2337 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
cairo_translate (_tmp27_, ((_tmp28_ - _tmp30_) * 0.5) - 0.5, ((_tmp31_ + _tmp33_) * 0.5) - 0.5);
-#line 2329 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2338 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp34_ = c;
-#line 2329 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2338 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_tmp35_ = self->priv->text;
-#line 2329 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2338 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
cairo_show_text (_tmp34_, _tmp35_);
-#line 2331 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2340 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
result = TRUE;
-#line 2331 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2340 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
return result;
-#line 12889 "ui.c"
+#line 12897 "ui.c"
}
static void page_icon_class_init (PageIconClass * klass) {
-#line 2270 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2279 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
page_icon_parent_class = g_type_class_peek_parent (klass);
-#line 2270 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2279 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
g_type_class_add_private (klass, sizeof (PageIconPrivate));
-#line 2270 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2279 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
((GtkWidgetClass *) klass)->get_preferred_width = page_icon_real_get_preferred_width;
-#line 2270 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2279 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
((GtkWidgetClass *) klass)->get_preferred_height = page_icon_real_get_preferred_height;
-#line 2270 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2279 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
((GtkWidgetClass *) klass)->get_preferred_height_for_width = page_icon_real_get_preferred_height_for_width;
-#line 2270 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2279 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
((GtkWidgetClass *) klass)->get_preferred_width_for_height = page_icon_real_get_preferred_width_for_height;
-#line 2270 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2279 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
((GtkWidgetClass *) klass)->draw = page_icon_real_draw;
-#line 2270 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2279 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
G_OBJECT_CLASS (klass)->finalize = page_icon_finalize;
-#line 12910 "ui.c"
+#line 12918 "ui.c"
}
static void page_icon_instance_init (PageIcon * self) {
-#line 2270 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2279 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self->priv = PAGE_ICON_GET_PRIVATE (self);
-#line 12917 "ui.c"
+#line 12925 "ui.c"
}
static void page_icon_finalize (GObject* obj) {
PageIcon * self;
-#line 2270 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2279 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PAGE_ICON, PageIcon);
-#line 2272 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2281 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
_g_free0 (self->priv->text);
-#line 2270 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
+#line 2279 "/home/bob/bzr/simple-scan/trunk/src/ui.vala"
G_OBJECT_CLASS (page_icon_parent_class)->finalize (obj);
-#line 12929 "ui.c"
+#line 12937 "ui.c"
}
diff --git a/src/ui.vala b/src/ui.vala
index 2dd1d57..5e375c4 100644
--- a/src/ui.vala
+++ b/src/ui.vala
@@ -1819,7 +1819,7 @@ public class UserInterface : Gtk.ApplicationWindow
var app = Application.get_default () as Gtk.Application;
- if (is_desktop ("Unity") || is_desktop ("XFCE") || is_desktop ("MATE") || is_desktop ("LXDE"))
+ if (is_traditional_desktop ())
{
set_titlebar (null);
menubar.visible = true;
@@ -2022,6 +2022,15 @@ public class UserInterface : Gtk.ApplicationWindow
return false;
}
+ private bool is_traditional_desktop ()
+ {
+ const string[] traditional_desktops = { "Unity", "XFCE", "MATE", "LXDE", "Cinnamon", "X-Cinnamon" };
+ foreach (var name in traditional_desktops)
+ if (is_desktop (name))
+ return true;
+ return false;
+ }
+
private string state_filename
{
owned get { return Path.build_filename (Environment.get_user_cache_dir (), "simple-scan", "state"); }