summaryrefslogtreecommitdiff
path: root/src/ui.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2016-12-01 22:31:21 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2016-12-01 22:31:21 +0100
commit4cd367d92ab485c92a00042abc28188d1a751ca0 (patch)
treef82761acb81f8746627ba1470846c15ba6db10f6 /src/ui.c
parent143fc164f11f08509a1d22943aec5b691612e81a (diff)
New upstream version 3.23.2upstream/3.23.2
Diffstat (limited to 'src/ui.c')
-rw-r--r--src/ui.c3716
1 files changed, 1862 insertions, 1854 deletions
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"
}