summaryrefslogtreecommitdiff
path: root/src/BatchImport.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2018-07-09 12:10:38 +0200
committerJörg Frings-Fürst <debian@jff.email>2018-07-09 12:10:38 +0200
commit709e2d6f5652ec90c194a4ec2b530bebc6f952cb (patch)
tree496b2f3899e1d5728ee9ae76095cc5056c317447 /src/BatchImport.c
parentf1353e9ffd34db5f755c7da0b3f9c10638fbfd38 (diff)
parent5c8be07095cc04a6d8a95204b0504fd7ab030154 (diff)
Merge branch 'release/0.28.3-1'0.28.3-1
Diffstat (limited to 'src/BatchImport.c')
-rw-r--r--src/BatchImport.c20454
1 files changed, 10531 insertions, 9923 deletions
diff --git a/src/BatchImport.c b/src/BatchImport.c
index 89be92d..8ee3b4f 100644
--- a/src/BatchImport.c
+++ b/src/BatchImport.c
@@ -1,4 +1,4 @@
-/* BatchImport.c generated by valac 0.36.6, the Vala compiler
+/* BatchImport.c generated by valac 0.40.4, the Vala compiler
* generated from BatchImport.vala, do not modify */
/* Copyright 2016 Software Freedom Conservancy Inc.
@@ -7,6 +7,7 @@
* See the COPYING file in this distribution.
*/
+
#include <glib.h>
#include <glib-object.h>
#include <stdlib.h>
@@ -158,6 +159,7 @@ typedef struct _ParamSpecBatchImportResult ParamSpecBatchImportResult;
typedef struct _ImportManifest ImportManifest;
typedef struct _ImportManifestClass ImportManifestClass;
typedef struct _ImportManifestPrivate ImportManifestPrivate;
+#define _g_timer_destroy0(var) ((var == NULL) ? NULL : (var = (g_timer_destroy (var), NULL)))
#define _batch_import_result_unref0(var) ((var == NULL) ? NULL : (var = (batch_import_result_unref (var), NULL)))
typedef struct _ParamSpecImportManifest ParamSpecImportManifest;
@@ -191,6 +193,11 @@ typedef struct _PreparedFileClass PreparedFileClass;
typedef struct _CompletedImportObject CompletedImportObject;
typedef struct _CompletedImportObjectClass CompletedImportObjectClass;
+enum {
+ BATCH_IMPORT_0_PROPERTY,
+ BATCH_IMPORT_NUM_PROPERTIES
+};
+static GParamSpec* batch_import_properties[BATCH_IMPORT_NUM_PROPERTIES];
#define TYPE_APPLICATION (application_get_type ())
#define APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APPLICATION, Application))
@@ -680,10 +687,15 @@ enum {
BATCH_IMPORT_FATAL_ERROR_SIGNAL,
BATCH_IMPORT_IMPORT_JOB_FAILED_SIGNAL,
BATCH_IMPORT_IMPORT_COMPLETE_SIGNAL,
- BATCH_IMPORT_LAST_SIGNAL
+ BATCH_IMPORT_NUM_SIGNALS
};
-static guint batch_import_signals[BATCH_IMPORT_LAST_SIGNAL] = {0};
+static guint batch_import_signals[BATCH_IMPORT_NUM_SIGNALS] = {0};
typedef struct _DuplicatedFilePrivate DuplicatedFilePrivate;
+enum {
+ DUPLICATED_FILE_0_PROPERTY,
+ DUPLICATED_FILE_NUM_PROPERTIES
+};
+static GParamSpec* duplicated_file_properties[DUPLICATED_FILE_NUM_PROPERTIES];
#define _video_id_free0(var) ((var == NULL) ? NULL : (var = (video_id_free (var), NULL)))
#define _photo_id_free0(var) ((var == NULL) ? NULL : (var = (photo_id_free (var), NULL)))
@@ -731,7 +743,6 @@ typedef struct _RawFileFormatPropertiesClass RawFileFormatPropertiesClass;
typedef struct _JfifFileFormatProperties JfifFileFormatProperties;
typedef struct _JfifFileFormatPropertiesClass JfifFileFormatPropertiesClass;
typedef struct _ParamSpecPreparedFile ParamSpecPreparedFile;
-#define _g_timer_destroy0(var) ((var == NULL) ? NULL : (var = (g_timer_destroy (var), NULL)))
#define TYPE_PHOTO_FILE_ADAPTER (photo_file_adapter_get_type ())
#define PHOTO_FILE_ADAPTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter))
@@ -833,11 +844,13 @@ struct _BatchImportJobClass {
gchar* (*get_basename) (BatchImportJob* self);
gchar* (*get_path) (BatchImportJob* self);
DuplicatedFile* (*get_duplicated_file) (BatchImportJob* self);
+ GFile* (*get_associated_file) (BatchImportJob* self);
void (*set_associated) (BatchImportJob* self, BatchImportJob* associated);
gboolean (*determine_file_size) (BatchImportJob* self, guint64* filesize, GFile* * file_or_dir);
gboolean (*prepare) (BatchImportJob* self, GFile* * file_to_import, gboolean* copy_to_library, GError** error);
gboolean (*complete) (BatchImportJob* self, MediaSource* source, BatchImportRoll* import_roll, GError** error);
time_t (*get_exposure_time_override) (BatchImportJob* self);
+ gboolean (*recurse) (BatchImportJob* self);
};
struct _ParamSpecBatchImportJob {
@@ -857,6 +870,7 @@ struct _FileImportJobPrivate {
GFile* file_or_dir;
gboolean copy_to_library;
FileImportJob* associated;
+ gboolean _recurse;
};
struct _ImportID {
@@ -917,6 +931,7 @@ struct _ImportManifest {
GeeList* already_imported;
GeeList* corrupt_files;
GeeList* all;
+ GTimer* timer;
};
struct _ImportManifestClass {
@@ -1118,304 +1133,299 @@ struct _BatchImportProcessPreparedFilesData {
GeeList* list;
GeeList* _prepared_file_list;
GeeList* _tmp0_;
- GeeList* _tmp1_;
gint _prepared_file_size;
- GeeList* _tmp2_;
+ GeeList* _tmp1_;
+ gint _tmp2_;
gint _tmp3_;
- gint _tmp4_;
gint _prepared_file_index;
+ gint _tmp4_;
gint _tmp5_;
gint _tmp6_;
- gint _tmp7_;
PreparedFile* prepared_file;
- GeeList* _tmp8_;
- gint _tmp9_;
- gpointer _tmp10_;
+ GeeList* _tmp7_;
+ gint _tmp8_;
+ gpointer _tmp9_;
BatchImportResult* import_result;
LibraryPhotoSourceCollectionState photo_state;
LibraryPhoto* photo;
- LibraryPhotoSourceCollection* _tmp11_;
- PreparedFile* _tmp12_;
- GFile* _tmp13_;
- LibraryPhotoSourceCollectionState _tmp14_;
+ LibraryPhotoSourceCollection* _tmp10_;
+ PreparedFile* _tmp11_;
+ GFile* _tmp12_;
+ LibraryPhotoSourceCollectionState _tmp13_;
+ LibraryPhoto* _tmp14_;
LibraryPhoto* _tmp15_;
- LibraryPhoto* _tmp16_;
- LibraryPhotoSourceCollectionState _tmp17_;
- PreparedFile* _tmp18_;
- BatchImportJob* _tmp19_;
- PreparedFile* _tmp20_;
- GFile* _tmp21_;
- PreparedFile* _tmp22_;
- GFile* _tmp23_;
+ LibraryPhotoSourceCollectionState _tmp16_;
+ PreparedFile* _tmp17_;
+ BatchImportJob* _tmp18_;
+ PreparedFile* _tmp19_;
+ GFile* _tmp20_;
+ PreparedFile* _tmp21_;
+ GFile* _tmp22_;
+ gchar* _tmp23_;
gchar* _tmp24_;
- gchar* _tmp25_;
- PreparedFile* _tmp26_;
- GFile* _tmp27_;
+ PreparedFile* _tmp25_;
+ GFile* _tmp26_;
+ gchar* _tmp27_;
gchar* _tmp28_;
- gchar* _tmp29_;
- LibraryPhoto* _tmp30_;
+ LibraryPhoto* _tmp29_;
+ GFile* _tmp30_;
GFile* _tmp31_;
- GFile* _tmp32_;
+ DuplicatedFile* _tmp32_;
DuplicatedFile* _tmp33_;
- DuplicatedFile* _tmp34_;
- BatchImportResult* _tmp35_;
- LibraryPhotoSourceCollectionState _tmp36_;
- LibraryPhoto* _tmp37_;
- LibraryPhotoSourceCollectionState _tmp38_;
- GEnumValue* _tmp39_;
+ BatchImportResult* _tmp34_;
+ LibraryPhotoSourceCollectionState _tmp35_;
+ LibraryPhoto* _tmp36_;
+ LibraryPhotoSourceCollectionState _tmp37_;
+ GEnumValue* _tmp38_;
+ BatchImportResult* _tmp39_;
BatchImportResult* _tmp40_;
- BatchImportResult* _tmp41_;
VideoSourceCollectionState video_state;
Video* video;
- VideoSourceCollection* _tmp42_;
- PreparedFile* _tmp43_;
- GFile* _tmp44_;
- VideoSourceCollectionState _tmp45_;
+ VideoSourceCollection* _tmp41_;
+ PreparedFile* _tmp42_;
+ GFile* _tmp43_;
+ VideoSourceCollectionState _tmp44_;
+ Video* _tmp45_;
Video* _tmp46_;
- Video* _tmp47_;
- VideoSourceCollectionState _tmp48_;
- PreparedFile* _tmp49_;
- BatchImportJob* _tmp50_;
- PreparedFile* _tmp51_;
- GFile* _tmp52_;
- PreparedFile* _tmp53_;
- GFile* _tmp54_;
+ VideoSourceCollectionState _tmp47_;
+ PreparedFile* _tmp48_;
+ BatchImportJob* _tmp49_;
+ PreparedFile* _tmp50_;
+ GFile* _tmp51_;
+ PreparedFile* _tmp52_;
+ GFile* _tmp53_;
+ gchar* _tmp54_;
gchar* _tmp55_;
- gchar* _tmp56_;
- PreparedFile* _tmp57_;
- GFile* _tmp58_;
+ PreparedFile* _tmp56_;
+ GFile* _tmp57_;
+ gchar* _tmp58_;
gchar* _tmp59_;
- gchar* _tmp60_;
- Video* _tmp61_;
+ Video* _tmp60_;
+ GFile* _tmp61_;
GFile* _tmp62_;
- GFile* _tmp63_;
+ DuplicatedFile* _tmp63_;
DuplicatedFile* _tmp64_;
- DuplicatedFile* _tmp65_;
- BatchImportResult* _tmp66_;
- VideoSourceCollectionState _tmp67_;
- Video* _tmp68_;
- VideoSourceCollectionState _tmp69_;
- GEnumValue* _tmp70_;
+ BatchImportResult* _tmp65_;
+ VideoSourceCollectionState _tmp66_;
+ Video* _tmp67_;
+ VideoSourceCollectionState _tmp68_;
+ GEnumValue* _tmp69_;
+ BatchImportResult* _tmp70_;
BatchImportResult* _tmp71_;
- BatchImportResult* _tmp72_;
- gboolean _tmp73_;
- PreparedFile* _tmp74_;
- gboolean _tmp75_;
- PreparedFile* _tmp76_;
- GFile* _tmp77_;
- PreparedFile* _tmp78_;
- const gchar* _tmp79_;
- gboolean _tmp80_;
+ gboolean _tmp72_;
+ PreparedFile* _tmp73_;
+ gboolean _tmp74_;
+ PreparedFile* _tmp75_;
+ GFile* _tmp76_;
+ PreparedFile* _tmp77_;
+ const gchar* _tmp78_;
VideoID* duplicate_ids;
- VideoTable* _tmp81_;
- VideoTable* _tmp82_;
+ VideoTable* _tmp79_;
+ VideoTable* _tmp80_;
+ PreparedFile* _tmp81_;
+ GFile* _tmp82_;
PreparedFile* _tmp83_;
- GFile* _tmp84_;
- PreparedFile* _tmp85_;
- const gchar* _tmp86_;
- gint _tmp87_;
- VideoID* _tmp88_;
- VideoID* _tmp89_;
- gint _tmp89__length1;
+ const gchar* _tmp84_;
+ gint _tmp85_;
+ VideoID* _tmp86_;
+ VideoID* _tmp87_;
+ gint _tmp87__length1;
gint duplicate_ids_length1;
gint _duplicate_ids_size_;
- VideoID* _tmp90_;
- gint _tmp90__length1;
+ VideoID* _tmp88_;
+ gint _tmp88__length1;
DuplicatedFile* duplicated_file;
- VideoID* _tmp91_;
- gint _tmp91__length1;
- VideoID _tmp92_;
- DuplicatedFile* _tmp93_;
+ VideoID* _tmp89_;
+ gint _tmp89__length1;
+ VideoID _tmp90_;
+ DuplicatedFile* _tmp91_;
ImportResult result_code;
- gboolean _tmp94_;
+ gboolean _tmp92_;
Video* dupe_video;
- VideoSourceCollection* _tmp95_;
- MediaSourceHoldingTank* _tmp96_;
- MediaSourceHoldingTank* _tmp97_;
- PreparedFile* _tmp98_;
- GFile* _tmp99_;
- MediaSource* _tmp100_;
- Video* _tmp101_;
- Video* _tmp102_;
- VideoSourceCollection* _tmp103_;
- MediaSourceHoldingTank* _tmp104_;
- MediaSourceHoldingTank* _tmp105_;
- PreparedFile* _tmp106_;
- const gchar* _tmp107_;
- MediaSource* _tmp108_;
- Video* _tmp109_;
- PreparedFile* _tmp110_;
- GFile* _tmp111_;
- gchar* _tmp112_;
- gchar* _tmp113_;
- Video* _tmp114_;
- PreparedFile* _tmp115_;
- GFile* _tmp116_;
- Video* _tmp117_;
- ImportManifest* _tmp118_;
- GeeList* _tmp119_;
- Video* _tmp120_;
- Video* _tmp121_;
- guint64 _tmp122_;
- PreparedFile* _tmp123_;
- BatchImportJob* _tmp124_;
- PreparedFile* _tmp125_;
- GFile* _tmp126_;
- PreparedFile* _tmp127_;
- GFile* _tmp128_;
- gchar* _tmp129_;
+ VideoSourceCollection* _tmp93_;
+ MediaSourceHoldingTank* _tmp94_;
+ MediaSourceHoldingTank* _tmp95_;
+ PreparedFile* _tmp96_;
+ GFile* _tmp97_;
+ MediaSource* _tmp98_;
+ Video* _tmp99_;
+ Video* _tmp100_;
+ VideoSourceCollection* _tmp101_;
+ MediaSourceHoldingTank* _tmp102_;
+ MediaSourceHoldingTank* _tmp103_;
+ PreparedFile* _tmp104_;
+ const gchar* _tmp105_;
+ MediaSource* _tmp106_;
+ Video* _tmp107_;
+ PreparedFile* _tmp108_;
+ GFile* _tmp109_;
+ gchar* _tmp110_;
+ gchar* _tmp111_;
+ Video* _tmp112_;
+ PreparedFile* _tmp113_;
+ GFile* _tmp114_;
+ Video* _tmp115_;
+ ImportManifest* _tmp116_;
+ GeeList* _tmp117_;
+ Video* _tmp118_;
+ Video* _tmp119_;
+ PreparedFile* _tmp120_;
+ BatchImportJob* _tmp121_;
+ PreparedFile* _tmp122_;
+ GFile* _tmp123_;
+ PreparedFile* _tmp124_;
+ GFile* _tmp125_;
+ gchar* _tmp126_;
+ gchar* _tmp127_;
+ PreparedFile* _tmp128_;
+ GFile* _tmp129_;
gchar* _tmp130_;
- PreparedFile* _tmp131_;
- GFile* _tmp132_;
- gchar* _tmp133_;
- gchar* _tmp134_;
- DuplicatedFile* _tmp135_;
- ImportResult _tmp136_;
+ gchar* _tmp131_;
+ DuplicatedFile* _tmp132_;
+ ImportResult _tmp133_;
+ BatchImportResult* _tmp134_;
+ ImportResult _tmp135_;
+ ImportManifest* _tmp136_;
BatchImportResult* _tmp137_;
- ImportResult _tmp138_;
- ImportManifest* _tmp139_;
- BatchImportResult* _tmp140_;
- PreparedFile* _tmp141_;
- GFile* _tmp142_;
- GFile* _tmp143_;
- gboolean _tmp144_;
- PreparedFile* _tmp145_;
- BatchImportJob* _tmp146_;
- PreparedFile* _tmp147_;
- GFile* _tmp148_;
- PreparedFile* _tmp149_;
- GFile* _tmp150_;
- gchar* _tmp151_;
+ PreparedFile* _tmp138_;
+ GFile* _tmp139_;
+ GFile* _tmp140_;
+ gboolean _tmp141_;
+ PreparedFile* _tmp142_;
+ BatchImportJob* _tmp143_;
+ PreparedFile* _tmp144_;
+ GFile* _tmp145_;
+ PreparedFile* _tmp146_;
+ GFile* _tmp147_;
+ gchar* _tmp148_;
+ gchar* _tmp149_;
+ PreparedFile* _tmp150_;
+ GFile* _tmp151_;
gchar* _tmp152_;
- PreparedFile* _tmp153_;
- GFile* _tmp154_;
- gchar* _tmp155_;
- gchar* _tmp156_;
- PreparedFile* _tmp157_;
- GFile* _tmp158_;
- GFile* _tmp159_;
- DuplicatedFile* _tmp160_;
- DuplicatedFile* _tmp161_;
- BatchImportResult* _tmp162_;
- PreparedFile* _tmp163_;
- GFile* _tmp164_;
- PreparedFile* _tmp165_;
- const gchar* _tmp166_;
- PreparedFile* _tmp167_;
- PhotoFileFormat _tmp168_;
- gboolean _tmp169_;
- gboolean _tmp170_;
- LibraryPhotoSourceCollection* _tmp171_;
- PreparedFile* _tmp172_;
- GFile* _tmp173_;
- LibraryPhoto* _tmp174_;
- gboolean _tmp175_;
- LibraryPhoto* _tmp176_;
- PreparedFile* _tmp177_;
- const gchar* _tmp178_;
- LibraryPhotoSourceCollection* _tmp179_;
+ gchar* _tmp153_;
+ PreparedFile* _tmp154_;
+ GFile* _tmp155_;
+ GFile* _tmp156_;
+ DuplicatedFile* _tmp157_;
+ DuplicatedFile* _tmp158_;
+ BatchImportResult* _tmp159_;
+ PreparedFile* _tmp160_;
+ GFile* _tmp161_;
+ PreparedFile* _tmp162_;
+ const gchar* _tmp163_;
+ PreparedFile* _tmp164_;
+ PhotoFileFormat _tmp165_;
+ gboolean _tmp166_;
+ LibraryPhotoSourceCollection* _tmp167_;
+ PreparedFile* _tmp168_;
+ GFile* _tmp169_;
+ LibraryPhoto* _tmp170_;
+ gboolean _tmp171_;
+ LibraryPhoto* _tmp172_;
+ PreparedFile* _tmp173_;
+ const gchar* _tmp174_;
+ LibraryPhotoSourceCollection* _tmp175_;
+ PreparedFile* _tmp176_;
+ const gchar* _tmp177_;
+ LibraryPhoto* _tmp178_;
+ LibraryPhoto* _tmp179_;
PreparedFile* _tmp180_;
- const gchar* _tmp181_;
- LibraryPhoto* _tmp182_;
- LibraryPhoto* _tmp183_;
- PreparedFile* _tmp184_;
- GFile* _tmp185_;
- gchar* _tmp186_;
- gchar* _tmp187_;
+ GFile* _tmp181_;
+ gchar* _tmp182_;
+ gchar* _tmp183_;
+ LibraryPhoto* _tmp184_;
+ PreparedFile* _tmp185_;
+ GFile* _tmp186_;
+ LibraryPhoto* _tmp187_;
LibraryPhoto* _tmp188_;
- PreparedFile* _tmp189_;
- GFile* _tmp190_;
- LibraryPhoto* _tmp191_;
- LibraryPhoto* _tmp192_;
- gboolean _tmp193_;
- LibraryPhoto* _tmp194_;
- gboolean _tmp195_;
- LibraryPhotoSourceCollection* _tmp196_;
- PreparedFile* _tmp197_;
- GFile* _tmp198_;
- LibraryPhoto* _tmp199_;
- gboolean _tmp200_;
- LibraryPhoto* _tmp201_;
- PreparedFile* _tmp202_;
- const gchar* _tmp203_;
- LibraryPhotoSourceCollection* _tmp204_;
+ gboolean _tmp189_;
+ LibraryPhoto* _tmp190_;
+ gboolean _tmp191_;
+ LibraryPhotoSourceCollection* _tmp192_;
+ PreparedFile* _tmp193_;
+ GFile* _tmp194_;
+ LibraryPhoto* _tmp195_;
+ gboolean _tmp196_;
+ LibraryPhoto* _tmp197_;
+ PreparedFile* _tmp198_;
+ const gchar* _tmp199_;
+ LibraryPhotoSourceCollection* _tmp200_;
+ PreparedFile* _tmp201_;
+ const gchar* _tmp202_;
+ LibraryPhoto* _tmp203_;
+ LibraryPhoto* _tmp204_;
PreparedFile* _tmp205_;
- const gchar* _tmp206_;
- LibraryPhoto* _tmp207_;
- LibraryPhoto* _tmp208_;
- PreparedFile* _tmp209_;
- GFile* _tmp210_;
- gchar* _tmp211_;
- gchar* _tmp212_;
+ GFile* _tmp206_;
+ gchar* _tmp207_;
+ gchar* _tmp208_;
+ LibraryPhoto* _tmp209_;
+ PreparedFile* _tmp210_;
+ GFile* _tmp211_;
+ LibraryPhoto* _tmp212_;
LibraryPhoto* _tmp213_;
PreparedFile* _tmp214_;
- GFile* _tmp215_;
- LibraryPhoto* _tmp216_;
- LibraryPhoto* _tmp217_;
+ BatchImportJob* _tmp215_;
+ PreparedFile* _tmp216_;
+ GFile* _tmp217_;
PreparedFile* _tmp218_;
- BatchImportJob* _tmp219_;
- PreparedFile* _tmp220_;
- GFile* _tmp221_;
+ GFile* _tmp219_;
+ gchar* _tmp220_;
+ gchar* _tmp221_;
PreparedFile* _tmp222_;
GFile* _tmp223_;
gchar* _tmp224_;
gchar* _tmp225_;
- PreparedFile* _tmp226_;
- GFile* _tmp227_;
- gchar* _tmp228_;
- gchar* _tmp229_;
- BatchImportResult* _tmp230_;
- ImportManifest* _tmp231_;
- GeeList* _tmp232_;
- LibraryPhoto* _tmp233_;
- ImportManifest* _tmp234_;
- BatchImportResult* _tmp235_;
- LibraryPhoto* _tmp236_;
- guint64 _tmp237_;
- PreparedFile* _tmp238_;
- GFile* _tmp239_;
- gchar* _tmp240_;
- gchar* _tmp241_;
+ BatchImportResult* _tmp226_;
+ ImportManifest* _tmp227_;
+ GeeList* _tmp228_;
+ LibraryPhoto* _tmp229_;
+ ImportManifest* _tmp230_;
+ BatchImportResult* _tmp231_;
+ LibraryPhoto* _tmp232_;
+ PreparedFile* _tmp233_;
+ GFile* _tmp234_;
+ gchar* _tmp235_;
+ gchar* _tmp236_;
PhotoID* photo_ids;
- PhotoTable* _tmp242_;
- PhotoTable* _tmp243_;
- PreparedFile* _tmp244_;
- GFile* _tmp245_;
- PreparedFile* _tmp246_;
- const gchar* _tmp247_;
- PreparedFile* _tmp248_;
- PhotoFileFormat _tmp249_;
- gint _tmp250_;
- PhotoID* _tmp251_;
- PhotoID* _tmp252_;
- gint _tmp252__length1;
+ PhotoTable* _tmp237_;
+ PhotoTable* _tmp238_;
+ PreparedFile* _tmp239_;
+ GFile* _tmp240_;
+ PreparedFile* _tmp241_;
+ const gchar* _tmp242_;
+ PreparedFile* _tmp243_;
+ PhotoFileFormat _tmp244_;
+ gint _tmp245_;
+ PhotoID* _tmp246_;
+ PhotoID* _tmp247_;
+ gint _tmp247__length1;
gint photo_ids_length1;
gint _photo_ids_size_;
- PhotoID* _tmp253_;
- gint _tmp253__length1;
+ PhotoID* _tmp248_;
+ gint _tmp248__length1;
DuplicatedFile* _vala1_duplicated_file;
- PhotoID* _tmp254_;
- gint _tmp254__length1;
- PhotoID _tmp255_;
- DuplicatedFile* _tmp256_;
- PreparedFile* _tmp257_;
- BatchImportJob* _tmp258_;
- PreparedFile* _tmp259_;
- GFile* _tmp260_;
- PreparedFile* _tmp261_;
- GFile* _tmp262_;
+ PhotoID* _tmp249_;
+ gint _tmp249__length1;
+ PhotoID _tmp250_;
+ DuplicatedFile* _tmp251_;
+ PreparedFile* _tmp252_;
+ BatchImportJob* _tmp253_;
+ PreparedFile* _tmp254_;
+ GFile* _tmp255_;
+ PreparedFile* _tmp256_;
+ GFile* _tmp257_;
+ gchar* _tmp258_;
+ gchar* _tmp259_;
+ PreparedFile* _tmp260_;
+ GFile* _tmp261_;
+ gchar* _tmp262_;
gchar* _tmp263_;
- gchar* _tmp264_;
- PreparedFile* _tmp265_;
- GFile* _tmp266_;
- gchar* _tmp267_;
- gchar* _tmp268_;
- DuplicatedFile* _tmp269_;
- BatchImportResult* _tmp270_;
- BatchImportResult* _tmp271_;
- BatchImportResult* _tmp272_;
- GeeList* _tmp273_;
- PreparedFile* _tmp274_;
+ DuplicatedFile* _tmp264_;
+ BatchImportResult* _tmp265_;
+ BatchImportResult* _tmp266_;
+ BatchImportResult* _tmp267_;
+ GeeList* _tmp268_;
+ PreparedFile* _tmp269_;
};
struct _PrepareFilesJob {
@@ -1677,13 +1687,20 @@ GType import_result_get_type (void) G_GNUC_CONST;
gchar* import_result_to_string (ImportResult self);
gboolean import_result_is_abort (ImportResult self);
gboolean import_result_is_nonuser_abort (ImportResult self);
-ImportResult import_result_convert_error (GError* err, ImportResult default_result);
+ImportResult import_result_convert_error (GError* err,
+ ImportResult default_result);
GQuark gphoto_error_quark (void);
gpointer batch_import_job_ref (gpointer instance);
void batch_import_job_unref (gpointer instance);
-GParamSpec* param_spec_batch_import_job (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_batch_import_job (GValue* value, gpointer v_object);
-void value_take_batch_import_job (GValue* value, gpointer v_object);
+GParamSpec* param_spec_batch_import_job (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_batch_import_job (GValue* value,
+ gpointer v_object);
+void value_take_batch_import_job (GValue* value,
+ gpointer v_object);
gpointer value_get_batch_import_job (const GValue* value);
GType batch_import_job_get_type (void) G_GNUC_CONST;
GType duplicated_file_get_type (void) G_GNUC_CONST;
@@ -1693,14 +1710,17 @@ GType thumbnail_source_get_type (void) G_GNUC_CONST;
GType media_source_get_type (void) G_GNUC_CONST;
gpointer batch_import_roll_ref (gpointer instance);
void batch_import_roll_unref (gpointer instance);
-GParamSpec* param_spec_batch_import_roll (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_batch_import_roll (GValue* value, gpointer v_object);
-void value_take_batch_import_roll (GValue* value, gpointer v_object);
+GParamSpec* param_spec_batch_import_roll (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_batch_import_roll (GValue* value,
+ gpointer v_object);
+void value_take_batch_import_roll (GValue* value,
+ gpointer v_object);
gpointer value_get_batch_import_roll (const GValue* value);
GType batch_import_roll_get_type (void) G_GNUC_CONST;
-enum {
- BATCH_IMPORT_JOB_DUMMY_PROPERTY
-};
gchar* batch_import_job_get_dest_identifier (BatchImportJob* self);
static gchar* batch_import_job_real_get_dest_identifier (BatchImportJob* self);
gchar* batch_import_job_get_source_identifier (BatchImportJob* self);
@@ -1713,123 +1733,216 @@ gchar* batch_import_job_get_path (BatchImportJob* self);
static gchar* batch_import_job_real_get_path (BatchImportJob* self);
DuplicatedFile* batch_import_job_get_duplicated_file (BatchImportJob* self);
static DuplicatedFile* batch_import_job_real_get_duplicated_file (BatchImportJob* self);
-void batch_import_job_set_associated (BatchImportJob* self, BatchImportJob* associated);
-static void batch_import_job_real_set_associated (BatchImportJob* self, BatchImportJob* associated);
-gboolean batch_import_job_determine_file_size (BatchImportJob* self, guint64* filesize, GFile* * file_or_dir);
-static gboolean batch_import_job_real_determine_file_size (BatchImportJob* self, guint64* filesize, GFile* * file_or_dir);
-gboolean batch_import_job_prepare (BatchImportJob* self, GFile* * file_to_import, gboolean* copy_to_library, GError** error);
-static gboolean batch_import_job_real_prepare (BatchImportJob* self, GFile* * file_to_import, gboolean* copy_to_library, GError** error);
-gboolean batch_import_job_complete (BatchImportJob* self, MediaSource* source, BatchImportRoll* import_roll, GError** error);
-static gboolean batch_import_job_real_complete (BatchImportJob* self, MediaSource* source, BatchImportRoll* import_roll, GError** error);
+GFile* batch_import_job_get_associated_file (BatchImportJob* self);
+static GFile* batch_import_job_real_get_associated_file (BatchImportJob* self);
+void batch_import_job_set_associated (BatchImportJob* self,
+ BatchImportJob* associated);
+static void batch_import_job_real_set_associated (BatchImportJob* self,
+ BatchImportJob* associated);
+gboolean batch_import_job_determine_file_size (BatchImportJob* self,
+ guint64* filesize,
+ GFile* * file_or_dir);
+static gboolean batch_import_job_real_determine_file_size (BatchImportJob* self,
+ guint64* filesize,
+ GFile* * file_or_dir);
+gboolean batch_import_job_prepare (BatchImportJob* self,
+ GFile* * file_to_import,
+ gboolean* copy_to_library,
+ GError** error);
+static gboolean batch_import_job_real_prepare (BatchImportJob* self,
+ GFile* * file_to_import,
+ gboolean* copy_to_library,
+ GError** error);
+gboolean batch_import_job_complete (BatchImportJob* self,
+ MediaSource* source,
+ BatchImportRoll* import_roll,
+ GError** error);
+static gboolean batch_import_job_real_complete (BatchImportJob* self,
+ MediaSource* source,
+ BatchImportRoll* import_roll,
+ GError** error);
time_t batch_import_job_get_exposure_time_override (BatchImportJob* self);
static time_t batch_import_job_real_get_exposure_time_override (BatchImportJob* self);
+gboolean batch_import_job_recurse (BatchImportJob* self);
+static gboolean batch_import_job_real_recurse (BatchImportJob* self);
BatchImportJob* batch_import_job_construct (GType object_type);
static void batch_import_job_finalize (BatchImportJob * obj);
GType file_import_job_get_type (void) G_GNUC_CONST;
#define FILE_IMPORT_JOB_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_FILE_IMPORT_JOB, FileImportJobPrivate))
-enum {
- FILE_IMPORT_JOB_DUMMY_PROPERTY
-};
-FileImportJob* file_import_job_new (GFile* file_or_dir, gboolean copy_to_library);
-FileImportJob* file_import_job_construct (GType object_type, GFile* file_or_dir, gboolean copy_to_library);
+FileImportJob* file_import_job_new (GFile* file_or_dir,
+ gboolean copy_to_library,
+ gboolean recurse);
+FileImportJob* file_import_job_construct (GType object_type,
+ GFile* file_or_dir,
+ gboolean copy_to_library,
+ gboolean recurse);
static gchar* file_import_job_real_get_dest_identifier (BatchImportJob* base);
static gchar* file_import_job_real_get_source_identifier (BatchImportJob* base);
static gboolean file_import_job_real_is_directory (BatchImportJob* base);
gboolean query_is_directory (GFile* file);
static gchar* file_import_job_real_get_basename (BatchImportJob* base);
static gchar* file_import_job_real_get_path (BatchImportJob* base);
-static void file_import_job_real_set_associated (BatchImportJob* base, BatchImportJob* associated);
-static gboolean file_import_job_real_determine_file_size (BatchImportJob* base, guint64* filesize, GFile* * file);
-static gboolean file_import_job_real_prepare (BatchImportJob* base, GFile* * file_to_import, gboolean* copy, GError** error);
+static void file_import_job_real_set_associated (BatchImportJob* base,
+ BatchImportJob* associated);
+static gboolean file_import_job_real_determine_file_size (BatchImportJob* base,
+ guint64* filesize,
+ GFile* * file);
+static gboolean file_import_job_real_prepare (BatchImportJob* base,
+ GFile* * file_to_import,
+ gboolean* copy,
+ GError** error);
GFile* file_import_job_get_file (FileImportJob* self);
+static gboolean file_import_job_real_recurse (BatchImportJob* base);
static void file_import_job_finalize (BatchImportJob * obj);
GType import_id_get_type (void) G_GNUC_CONST;
ImportID* import_id_dup (const ImportID* self);
void import_id_free (ImportID* self);
gpointer data_collection_ref (gpointer instance);
void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_data_collection (GValue* value, gpointer v_object);
-void value_take_data_collection (GValue* value, gpointer v_object);
+GParamSpec* param_spec_data_collection (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_data_collection (GValue* value,
+ gpointer v_object);
+void value_take_data_collection (GValue* value,
+ gpointer v_object);
gpointer value_get_data_collection (const GValue* value);
GType data_collection_get_type (void) G_GNUC_CONST;
GType view_collection_get_type (void) G_GNUC_CONST;
-enum {
- BATCH_IMPORT_ROLL_DUMMY_PROPERTY
-};
ViewCollection* view_collection_new (const gchar* name);
-ViewCollection* view_collection_construct (GType object_type, const gchar* name);
+ViewCollection* view_collection_construct (GType object_type,
+ const gchar* name);
BatchImportRoll* batch_import_roll_new (void);
BatchImportRoll* batch_import_roll_construct (GType object_type);
void import_id_generate (ImportID* result);
static void batch_import_roll_finalize (BatchImportRoll * obj);
gpointer batch_import_result_ref (gpointer instance);
void batch_import_result_unref (gpointer instance);
-GParamSpec* param_spec_batch_import_result (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_batch_import_result (GValue* value, gpointer v_object);
-void value_take_batch_import_result (GValue* value, gpointer v_object);
+GParamSpec* param_spec_batch_import_result (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_batch_import_result (GValue* value,
+ gpointer v_object);
+void value_take_batch_import_result (GValue* value,
+ gpointer v_object);
gpointer value_get_batch_import_result (const GValue* value);
GType batch_import_result_get_type (void) G_GNUC_CONST;
-enum {
- BATCH_IMPORT_RESULT_DUMMY_PROPERTY
-};
-BatchImportResult* batch_import_result_new (BatchImportJob* job, GFile* file, const gchar* src_identifier, const gchar* dest_identifier, DuplicatedFile* duplicate_of, ImportResult _result_);
-BatchImportResult* batch_import_result_construct (GType object_type, BatchImportJob* job, GFile* file, const gchar* src_identifier, const gchar* dest_identifier, DuplicatedFile* duplicate_of, ImportResult _result_);
-BatchImportResult* batch_import_result_new_from_error (BatchImportJob* job, GFile* file, const gchar* src_identifier, const gchar* dest_identifier, GError* err, ImportResult default_result);
-BatchImportResult* batch_import_result_construct_from_error (GType object_type, BatchImportJob* job, GFile* file, const gchar* src_identifier, const gchar* dest_identifier, GError* err, ImportResult default_result);
+BatchImportResult* batch_import_result_new (BatchImportJob* job,
+ GFile* file,
+ const gchar* src_identifier,
+ const gchar* dest_identifier,
+ DuplicatedFile* duplicate_of,
+ ImportResult _result_);
+BatchImportResult* batch_import_result_construct (GType object_type,
+ BatchImportJob* job,
+ GFile* file,
+ const gchar* src_identifier,
+ const gchar* dest_identifier,
+ DuplicatedFile* duplicate_of,
+ ImportResult _result_);
+BatchImportResult* batch_import_result_new_from_error (BatchImportJob* job,
+ GFile* file,
+ const gchar* src_identifier,
+ const gchar* dest_identifier,
+ GError* err,
+ ImportResult default_result);
+BatchImportResult* batch_import_result_construct_from_error (GType object_type,
+ BatchImportJob* job,
+ GFile* file,
+ const gchar* src_identifier,
+ const gchar* dest_identifier,
+ GError* err,
+ ImportResult default_result);
static void batch_import_result_finalize (BatchImportResult * obj);
gpointer import_manifest_ref (gpointer instance);
void import_manifest_unref (gpointer instance);
-GParamSpec* param_spec_import_manifest (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_import_manifest (GValue* value, gpointer v_object);
-void value_take_import_manifest (GValue* value, gpointer v_object);
+GParamSpec* param_spec_import_manifest (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_import_manifest (GValue* value,
+ gpointer v_object);
+void value_take_import_manifest (GValue* value,
+ gpointer v_object);
gpointer value_get_import_manifest (const GValue* value);
GType import_manifest_get_type (void) G_GNUC_CONST;
-enum {
- IMPORT_MANIFEST_DUMMY_PROPERTY
-};
-ImportManifest* import_manifest_new (GeeList* prefailed, GeeList* pre_already_imported);
-ImportManifest* import_manifest_construct (GType object_type, GeeList* prefailed, GeeList* pre_already_imported);
-void import_manifest_add_result (ImportManifest* self, BatchImportResult* batch_result);
+ImportManifest* import_manifest_new (GeeList* prefailed,
+ GeeList* pre_already_imported);
+ImportManifest* import_manifest_construct (GType object_type,
+ GeeList* prefailed,
+ GeeList* pre_already_imported);
+void import_manifest_add_result (ImportManifest* self,
+ BatchImportResult* batch_result);
static void import_manifest_finalize (ImportManifest * obj);
GType batch_import_get_type (void) G_GNUC_CONST;
gpointer prepared_file_ref (gpointer instance);
void prepared_file_unref (gpointer instance);
-GParamSpec* param_spec_prepared_file (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_prepared_file (GValue* value, gpointer v_object);
-void value_take_prepared_file (GValue* value, gpointer v_object);
+GParamSpec* param_spec_prepared_file (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_prepared_file (GValue* value,
+ gpointer v_object);
+void value_take_prepared_file (GValue* value,
+ gpointer v_object);
gpointer value_get_prepared_file (const GValue* value);
GType prepared_file_get_type (void) G_GNUC_CONST;
gpointer completed_import_object_ref (gpointer instance);
void completed_import_object_unref (gpointer instance);
-GParamSpec* param_spec_completed_import_object (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_completed_import_object (GValue* value, gpointer v_object);
-void value_take_completed_import_object (GValue* value, gpointer v_object);
+GParamSpec* param_spec_completed_import_object (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_completed_import_object (GValue* value,
+ gpointer v_object);
+void value_take_completed_import_object (GValue* value,
+ gpointer v_object);
gpointer value_get_completed_import_object (const GValue* value);
GType completed_import_object_get_type (void) G_GNUC_CONST;
#define BATCH_IMPORT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_BATCH_IMPORT, BatchImportPrivate))
-enum {
- BATCH_IMPORT_DUMMY_PROPERTY
-};
gpointer application_ref (gpointer instance);
void application_unref (gpointer instance);
-GParamSpec* param_spec_application (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_application (GValue* value, gpointer v_object);
-void value_take_application (GValue* value, gpointer v_object);
+GParamSpec* param_spec_application (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_application (GValue* value,
+ gpointer v_object);
+void value_take_application (GValue* value,
+ gpointer v_object);
gpointer value_get_application (const GValue* value);
GType application_get_type (void) G_GNUC_CONST;
Application* application_get_instance (void);
void batch_import_user_halt (BatchImport* self);
-static void _batch_import_user_halt_application_exiting (Application* _sender, gboolean panicked, gpointer self);
+static void _batch_import_user_halt_application_exiting (Application* _sender,
+ gboolean panicked,
+ gpointer self);
gpointer workers_ref (gpointer instance);
void workers_unref (gpointer instance);
-GParamSpec* param_spec_workers (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_workers (GValue* value, gpointer v_object);
-void value_take_workers (GValue* value, gpointer v_object);
+GParamSpec* param_spec_workers (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_workers (GValue* value,
+ gpointer v_object);
+void value_take_workers (GValue* value,
+ gpointer v_object);
gpointer value_get_workers (const GValue* value);
GType workers_get_type (void) G_GNUC_CONST;
-Workers* workers_new (guint max_threads, gboolean exclusive);
-Workers* workers_construct (GType object_type, guint max_threads, gboolean exclusive);
+Workers* workers_new (guint max_threads,
+ gboolean exclusive);
+Workers* workers_construct (GType object_type,
+ guint max_threads,
+ gboolean exclusive);
guint workers_thread_per_cpu_minus_one (void);
#define BATCH_IMPORT_WORK_SNIFFER_THROBBER_MSEC 125
#define BATCH_IMPORT_REPORT_EVERY_N_PREPARED_FILES 100
@@ -1837,96 +1950,232 @@ guint workers_thread_per_cpu_minus_one (void);
#define BATCH_IMPORT_READY_SOURCES_COUNT_OVERFLOW 10
#define BATCH_IMPORT_DISPLAY_QUEUE_TIMER_MSEC 125
#define BATCH_IMPORT_DISPLAY_QUEUE_HYSTERESIS_OVERFLOW ((3 * 1000) / BATCH_IMPORT_DISPLAY_QUEUE_TIMER_MSEC)
-BatchImport* batch_import_new (GeeIterable* jobs, const gchar* name, BatchImportImportReporter reporter, void* reporter_target, GeeArrayList* prefailed, GeeArrayList* pre_already_imported, GCancellable* cancellable, BatchImportRoll* import_roll, ImportManifest* skip_manifest);
-BatchImport* batch_import_construct (GType object_type, GeeIterable* jobs, const gchar* name, BatchImportImportReporter reporter, void* reporter_target, GeeArrayList* prefailed, GeeArrayList* pre_already_imported, GCancellable* cancellable, BatchImportRoll* import_roll, ImportManifest* skip_manifest);
+BatchImport* batch_import_new (GeeIterable* jobs,
+ const gchar* name,
+ BatchImportImportReporter reporter,
+ void* reporter_target,
+ GeeArrayList* prefailed,
+ GeeArrayList* pre_already_imported,
+ GCancellable* cancellable,
+ BatchImportRoll* import_roll,
+ ImportManifest* skip_manifest);
+BatchImport* batch_import_construct (GType object_type,
+ GeeIterable* jobs,
+ const gchar* name,
+ BatchImportImportReporter reporter,
+ void* reporter_target,
+ GeeArrayList* prefailed,
+ GeeArrayList* pre_already_imported,
+ GCancellable* cancellable,
+ BatchImportRoll* import_roll,
+ ImportManifest* skip_manifest);
guint file_hash (GFile* file);
-static guint _file_hash_gee_hash_data_func (gconstpointer v, gpointer self);
-gboolean file_equal (GFile* a, GFile* b);
-static gboolean _file_equal_gee_equal_data_func (gconstpointer a, gconstpointer b, gpointer self);
+static guint _file_hash_gee_hash_data_func (gconstpointer v,
+ gpointer self);
+gboolean file_equal (GFile* a,
+ GFile* b);
+static gboolean _file_equal_gee_equal_data_func (gconstpointer a,
+ gconstpointer b,
+ gpointer self);
GFile* media_source_get_file (MediaSource* self);
static gboolean batch_import_display_imported_timer (BatchImport* self);
static gboolean _batch_import_display_imported_timer_gsource_func (gpointer self);
gchar* batch_import_get_name (BatchImport* self);
gboolean batch_import_get_untrash_duplicates (BatchImport* self);
-void batch_import_set_untrash_duplicates (BatchImport* self, gboolean untrash_duplicates);
+void batch_import_set_untrash_duplicates (BatchImport* self,
+ gboolean untrash_duplicates);
gboolean batch_import_get_mark_duplicates_online (BatchImport* self);
-void batch_import_set_mark_duplicates_online (BatchImport* self, gboolean mark_duplicates_online);
-static void batch_import_log_status (BatchImport* self, const gchar* where);
-static gboolean batch_import_report_failure (BatchImport* self, BatchImportResult* import_result);
-guint64 query_total_file_size (GFile* file_or_dir, GCancellable* cancellable, GError** error);
-static void batch_import_report_progress (BatchImport* self, guint64 increment_of_progress);
+void batch_import_set_mark_duplicates_online (BatchImport* self,
+ gboolean mark_duplicates_online);
+static void batch_import_log_status (BatchImport* self,
+ const gchar* where);
+static gboolean batch_import_report_failure (BatchImport* self,
+ BatchImportResult* import_result);
+guint64 query_total_file_size (GFile* file_or_dir,
+ GCancellable* cancellable,
+ GError** error);
+static void batch_import_report_progress (BatchImport* self,
+ guint64 increment_of_progress);
gulong now_ms (void);
gpointer background_job_ref (gpointer instance);
void background_job_unref (gpointer instance);
-GParamSpec* param_spec_background_job (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_background_job (GValue* value, gpointer v_object);
-void value_take_background_job (GValue* value, gpointer v_object);
+GParamSpec* param_spec_background_job (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_background_job (GValue* value,
+ gpointer v_object);
+void value_take_background_job (GValue* value,
+ gpointer v_object);
gpointer value_get_background_job (const GValue* value);
GType background_job_get_type (void) G_GNUC_CONST;
GType background_import_job_get_type (void) G_GNUC_CONST;
-static gboolean batch_import_report_failures (BatchImport* self, BackgroundImportJob* background_job);
+static gboolean batch_import_report_failures (BatchImport* self,
+ BackgroundImportJob* background_job);
GType background_job_job_priority_get_type (void) G_GNUC_CONST;
-static void batch_import_report_completed (BatchImport* self, const gchar* where);
+static void batch_import_report_completed (BatchImport* self,
+ const gchar* where);
static void batch_import_flush_ready_sources (BatchImport* self);
static void batch_import_file_import_complete (BatchImport* self);
void batch_import_schedule (BatchImport* self);
-void workers_enqueue (Workers* self, BackgroundJob* job);
-static void batch_import_on_work_sniffed_out (BatchImport* self, BackgroundJob* j);
-static void _batch_import_on_work_sniffed_out_completion_callback (BackgroundJob* job, gpointer self);
-static void batch_import_on_sniffer_cancelled (BatchImport* self, BackgroundJob* j);
-static void _batch_import_on_sniffer_cancelled_cancellation_callback (BackgroundJob* job, gpointer self);
-WorkSniffer* work_sniffer_new (BatchImport* owner, GeeIterable* jobs, CompletionCallback callback, void* callback_target, GCancellable* cancellable, CancellationCallback cancellation, void* cancellation_target, GeeHashSet* skipset);
-WorkSniffer* work_sniffer_construct (GType object_type, BatchImport* owner, GeeIterable* jobs, CompletionCallback callback, void* callback_target, GCancellable* cancellable, CancellationCallback cancellation, void* cancellation_target, GeeHashSet* skipset);
+void workers_enqueue (Workers* self,
+ BackgroundJob* job);
+static void batch_import_on_work_sniffed_out (BatchImport* self,
+ BackgroundJob* j);
+static void _batch_import_on_work_sniffed_out_completion_callback (BackgroundJob* job,
+ gpointer self);
+static void batch_import_on_sniffer_cancelled (BatchImport* self,
+ BackgroundJob* j);
+static void _batch_import_on_sniffer_cancelled_cancellation_callback (BackgroundJob* job,
+ gpointer self);
+WorkSniffer* work_sniffer_new (BatchImport* owner,
+ GeeIterable* jobs,
+ CompletionCallback callback,
+ void* callback_target,
+ GCancellable* cancellable,
+ CancellationCallback cancellation,
+ void* cancellation_target,
+ GeeHashSet* skipset);
+WorkSniffer* work_sniffer_construct (GType object_type,
+ BatchImport* owner,
+ GeeIterable* jobs,
+ CompletionCallback callback,
+ void* callback_target,
+ GCancellable* cancellable,
+ CancellationCallback cancellation,
+ void* cancellation_target,
+ GeeHashSet* skipset);
GType work_sniffer_get_type (void) G_GNUC_CONST;
static gboolean batch_import_on_sniffer_working (BatchImport* self);
static gboolean _batch_import_on_sniffer_working_gsource_func (gpointer self);
gpointer file_to_prepare_ref (gpointer instance);
void file_to_prepare_unref (gpointer instance);
-GParamSpec* param_spec_file_to_prepare (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_file_to_prepare (GValue* value, gpointer v_object);
-void value_take_file_to_prepare (GValue* value, gpointer v_object);
+GParamSpec* param_spec_file_to_prepare (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_file_to_prepare (GValue* value,
+ gpointer v_object);
+void value_take_file_to_prepare (GValue* value,
+ gpointer v_object);
gpointer value_get_file_to_prepare (const GValue* value);
GType file_to_prepare_get_type (void) G_GNUC_CONST;
GType prepare_files_job_get_type (void) G_GNUC_CONST;
gpointer notification_object_ref (gpointer instance);
void notification_object_unref (gpointer instance);
-GParamSpec* param_spec_notification_object (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_notification_object (GValue* value, gpointer v_object);
-void value_take_notification_object (GValue* value, gpointer v_object);
+GParamSpec* param_spec_notification_object (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_notification_object (GValue* value,
+ gpointer v_object);
+void value_take_notification_object (GValue* value,
+ gpointer v_object);
gpointer value_get_notification_object (const GValue* value);
GType notification_object_get_type (void) G_GNUC_CONST;
-static void batch_import_on_file_prepared (BatchImport* self, BackgroundJob* j, NotificationObject* user);
-static void _batch_import_on_file_prepared_notification_callback (BackgroundJob* job, NotificationObject* user, gpointer self);
-static void batch_import_on_files_prepared (BatchImport* self, BackgroundJob* j);
-static void _batch_import_on_files_prepared_completion_callback (BackgroundJob* job, gpointer self);
-static void batch_import_on_file_prepare_cancelled (BatchImport* self, BackgroundJob* j);
-static void _batch_import_on_file_prepare_cancelled_cancellation_callback (BackgroundJob* job, gpointer self);
-PrepareFilesJob* prepare_files_job_new (BatchImport* owner, GeeList* files_to_prepare, NotificationCallback notification, void* notification_target, CompletionCallback callback, void* callback_target, GCancellable* cancellable, CancellationCallback cancellation, void* cancellation_target);
-PrepareFilesJob* prepare_files_job_construct (GType object_type, BatchImport* owner, GeeList* files_to_prepare, NotificationCallback notification, void* notification_target, CompletionCallback callback, void* callback_target, GCancellable* cancellable, CancellationCallback cancellation, void* cancellation_target);
+static void batch_import_on_file_prepared (BatchImport* self,
+ BackgroundJob* j,
+ NotificationObject* user);
+static void _batch_import_on_file_prepared_notification_callback (BackgroundJob* job,
+ NotificationObject* user,
+ gpointer self);
+static void batch_import_on_files_prepared (BatchImport* self,
+ BackgroundJob* j);
+static void _batch_import_on_files_prepared_completion_callback (BackgroundJob* job,
+ gpointer self);
+static void batch_import_on_file_prepare_cancelled (BatchImport* self,
+ BackgroundJob* j);
+static void _batch_import_on_file_prepare_cancelled_cancellation_callback (BackgroundJob* job,
+ gpointer self);
+PrepareFilesJob* prepare_files_job_new (BatchImport* owner,
+ GeeList* files_to_prepare,
+ NotificationCallback notification,
+ void* notification_target,
+ CompletionCallback callback,
+ void* callback_target,
+ GCancellable* cancellable,
+ CancellationCallback cancellation,
+ void* cancellation_target);
+PrepareFilesJob* prepare_files_job_construct (GType object_type,
+ BatchImport* owner,
+ GeeList* files_to_prepare,
+ NotificationCallback notification,
+ void* notification_target,
+ CompletionCallback callback,
+ void* callback_target,
+ GCancellable* cancellable,
+ CancellationCallback cancellation,
+ void* cancellation_target);
static void batch_import_flush_import_jobs (BatchImport* self);
gint workers_get_pending_job_count (Workers* self);
-static void batch_import_on_thumbnail_writer_completed (BatchImport* self, BackgroundJob* j);
-static void _batch_import_on_thumbnail_writer_completed_completion_callback (BackgroundJob* job, gpointer self);
-static void batch_import_on_thumbnail_writer_cancelled (BatchImport* self, BackgroundJob* j);
-static void _batch_import_on_thumbnail_writer_cancelled_cancellation_callback (BackgroundJob* job, gpointer self);
-ThumbnailWriterJob* thumbnail_writer_job_new (BatchImport* owner, CompletedImportObject* completed_import_source, CompletionCallback callback, void* callback_target, GCancellable* cancellable, CancellationCallback cancel_callback, void* cancel_callback_target);
-ThumbnailWriterJob* thumbnail_writer_job_construct (GType object_type, BatchImport* owner, CompletedImportObject* completed_import_source, CompletionCallback callback, void* callback_target, GCancellable* cancellable, CancellationCallback cancel_callback, void* cancel_callback_target);
+static void batch_import_on_thumbnail_writer_completed (BatchImport* self,
+ BackgroundJob* j);
+static void _batch_import_on_thumbnail_writer_completed_completion_callback (BackgroundJob* job,
+ gpointer self);
+static void batch_import_on_thumbnail_writer_cancelled (BatchImport* self,
+ BackgroundJob* j);
+static void _batch_import_on_thumbnail_writer_cancelled_cancellation_callback (BackgroundJob* job,
+ gpointer self);
+ThumbnailWriterJob* thumbnail_writer_job_new (BatchImport* owner,
+ CompletedImportObject* completed_import_source,
+ CompletionCallback callback,
+ void* callback_target,
+ GCancellable* cancellable,
+ CancellationCallback cancel_callback,
+ void* cancel_callback_target);
+ThumbnailWriterJob* thumbnail_writer_job_construct (GType object_type,
+ BatchImport* owner,
+ CompletedImportObject* completed_import_source,
+ CompletionCallback callback,
+ void* callback_target,
+ GCancellable* cancellable,
+ CancellationCallback cancel_callback,
+ void* cancel_callback_target);
GType thumbnail_writer_job_get_type (void) G_GNUC_CONST;
-static void batch_import_on_import_files_completed (BatchImport* self, BackgroundJob* j);
-static void _batch_import_on_import_files_completed_completion_callback (BackgroundJob* job, gpointer self);
-static void batch_import_on_import_files_cancelled (BatchImport* self, BackgroundJob* j);
-static void _batch_import_on_import_files_cancelled_cancellation_callback (BackgroundJob* job, gpointer self);
-PreparedFileImportJob* prepared_file_import_job_new (BatchImport* owner, PreparedFile* prepared_file, ImportID* import_id, CompletionCallback callback, void* callback_target, GCancellable* cancellable, CancellationCallback cancellation, void* cancellation_target);
-PreparedFileImportJob* prepared_file_import_job_construct (GType object_type, BatchImport* owner, PreparedFile* prepared_file, ImportID* import_id, CompletionCallback callback, void* callback_target, GCancellable* cancellable, CancellationCallback cancellation, void* cancellation_target);
+static void batch_import_on_import_files_completed (BatchImport* self,
+ BackgroundJob* j);
+static void _batch_import_on_import_files_completed_completion_callback (BackgroundJob* job,
+ gpointer self);
+static void batch_import_on_import_files_cancelled (BatchImport* self,
+ BackgroundJob* j);
+static void _batch_import_on_import_files_cancelled_cancellation_callback (BackgroundJob* job,
+ gpointer self);
+PreparedFileImportJob* prepared_file_import_job_new (BatchImport* owner,
+ PreparedFile* prepared_file,
+ ImportID* import_id,
+ CompletionCallback callback,
+ void* callback_target,
+ GCancellable* cancellable,
+ CancellationCallback cancellation,
+ void* cancellation_target);
+PreparedFileImportJob* prepared_file_import_job_construct (GType object_type,
+ BatchImport* owner,
+ PreparedFile* prepared_file,
+ ImportID* import_id,
+ CompletionCallback callback,
+ void* callback_target,
+ GCancellable* cancellable,
+ CancellationCallback cancellation,
+ void* cancellation_target);
GType prepared_file_import_job_get_type (void) G_GNUC_CONST;
-static GFile* batch_import_get_in_current_import (BatchImport* self, PreparedFile* prepared_file);
+static GFile* batch_import_get_in_current_import (BatchImport* self,
+ PreparedFile* prepared_file);
GType photo_file_format_get_type (void) G_GNUC_CONST;
GType interlocked_notification_object_get_type (void) G_GNUC_CONST;
GType prepared_file_cluster_get_type (void) G_GNUC_CONST;
-static void batch_import_process_prepared_files (BatchImport* self, GeeList* list, GAsyncReadyCallback _callback_, gpointer _user_data_);
-static void batch_import_process_prepared_files_finish (BatchImport* self, GAsyncResult* _res_);
+static void batch_import_process_prepared_files (BatchImport* self,
+ GeeList* list,
+ GAsyncReadyCallback _callback_,
+ gpointer _user_data_);
+static void batch_import_process_prepared_files_finish (BatchImport* self,
+ GAsyncResult* _res_);
static void batch_import_process_prepared_files_data_free (gpointer _data);
-static void batch_import_process_prepared_files_async_ready_wrapper (GObject *source_object, GAsyncResult *res, void *user_data);
+static void batch_import_process_prepared_files_async_ready_wrapper (GObject *source_object,
+ GAsyncResult *res,
+ void *user_data);
static gboolean batch_import_process_prepared_files_co (BatchImportProcessPreparedFilesData* _data_);
static gboolean _batch_import_process_prepared_files_co_gsource_func (gpointer self);
GType library_photo_source_collection_state_get_type (void) G_GNUC_CONST;
@@ -1937,7 +2186,9 @@ GType source_collection_get_type (void) G_GNUC_CONST;
GType database_source_collection_get_type (void) G_GNUC_CONST;
GType media_source_collection_get_type (void) G_GNUC_CONST;
GType library_photo_source_collection_get_type (void) G_GNUC_CONST;
-LibraryPhoto* library_photo_source_collection_get_state_by_file (LibraryPhotoSourceCollection* self, GFile* file, LibraryPhotoSourceCollectionState* state);
+LibraryPhoto* library_photo_source_collection_get_state_by_file (LibraryPhotoSourceCollection* self,
+ GFile* file,
+ LibraryPhotoSourceCollectionState* state);
DuplicatedFile* duplicated_file_create_from_file (GFile* file);
GFile* media_source_get_master_file (MediaSource* self);
void media_source_mark_online (MediaSource* self);
@@ -1946,100 +2197,175 @@ GType video_source_collection_state_get_type (void) G_GNUC_CONST;
GType video_source_get_type (void) G_GNUC_CONST;
GType video_get_type (void) G_GNUC_CONST;
GType video_source_collection_get_type (void) G_GNUC_CONST;
-Video* video_source_collection_get_state_by_file (VideoSourceCollection* self, GFile* file, VideoSourceCollectionState* state);
+Video* video_source_collection_get_state_by_file (VideoSourceCollection* self,
+ GFile* file,
+ VideoSourceCollectionState* state);
const gchar* video_source_collection_state_to_string (VideoSourceCollectionState self);
-gboolean video_is_duplicate (GFile* file, const gchar* full_md5);
+gboolean video_is_duplicate (GFile* file,
+ const gchar* full_md5);
GType video_id_get_type (void) G_GNUC_CONST;
VideoID* video_id_dup (const VideoID* self);
void video_id_free (VideoID* self);
gpointer database_table_ref (gpointer instance);
void database_table_unref (gpointer instance);
-GParamSpec* param_spec_database_table (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_database_table (GValue* value, gpointer v_object);
-void value_take_database_table (GValue* value, gpointer v_object);
+GParamSpec* param_spec_database_table (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_database_table (GValue* value,
+ gpointer v_object);
+void value_take_database_table (GValue* value,
+ gpointer v_object);
gpointer value_get_database_table (const GValue* value);
GType database_table_get_type (void) G_GNUC_CONST;
GType video_table_get_type (void) G_GNUC_CONST;
VideoTable* video_table_get_instance (void);
-VideoID* video_table_get_duplicate_ids (VideoTable* self, GFile* file, const gchar* md5, int* result_length1);
+VideoID* video_table_get_duplicate_ids (VideoTable* self,
+ GFile* file,
+ const gchar* md5,
+ int* result_length1);
DuplicatedFile* duplicated_file_create_from_video_id (VideoID* video_id);
gpointer source_holding_tank_ref (gpointer instance);
void source_holding_tank_unref (gpointer instance);
-GParamSpec* param_spec_source_holding_tank (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_source_holding_tank (GValue* value, gpointer v_object);
-void value_take_source_holding_tank (GValue* value, gpointer v_object);
+GParamSpec* param_spec_source_holding_tank (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_source_holding_tank (GValue* value,
+ gpointer v_object);
+void value_take_source_holding_tank (GValue* value,
+ gpointer v_object);
gpointer value_get_source_holding_tank (const GValue* value);
GType source_holding_tank_get_type (void) G_GNUC_CONST;
GType database_source_holding_tank_get_type (void) G_GNUC_CONST;
GType media_source_holding_tank_get_type (void) G_GNUC_CONST;
MediaSourceHoldingTank* media_source_collection_get_offline_bin (MediaSourceCollection* self);
-MediaSource* media_source_holding_tank_fetch_by_master_file (MediaSourceHoldingTank* self, GFile* file);
-MediaSource* media_source_holding_tank_fetch_by_md5 (MediaSourceHoldingTank* self, const gchar* md5);
+MediaSource* media_source_holding_tank_fetch_by_master_file (MediaSourceHoldingTank* self,
+ GFile* file);
+MediaSource* media_source_holding_tank_fetch_by_md5 (MediaSourceHoldingTank* self,
+ const gchar* md5);
GType monitorable_get_type (void) G_GNUC_CONST;
-void monitorable_set_master_file (Monitorable* self, GFile* file);
+void monitorable_set_master_file (Monitorable* self,
+ GFile* file);
guint64 media_source_get_filesize (MediaSource* self);
-gboolean photo_is_duplicate (GFile* file, const gchar* thumbnail_md5, const gchar* full_md5, PhotoFileFormat file_format);
-LibraryPhoto* library_photo_source_collection_get_trashed_by_file (LibraryPhotoSourceCollection* self, GFile* file);
-LibraryPhoto* library_photo_source_collection_get_trashed_by_md5 (LibraryPhotoSourceCollection* self, const gchar* md5);
+gboolean photo_is_duplicate (GFile* file,
+ const gchar* thumbnail_md5,
+ const gchar* full_md5,
+ PhotoFileFormat file_format);
+LibraryPhoto* library_photo_source_collection_get_trashed_by_file (LibraryPhotoSourceCollection* self,
+ GFile* file);
+LibraryPhoto* library_photo_source_collection_get_trashed_by_md5 (LibraryPhotoSourceCollection* self,
+ const gchar* md5);
void media_source_untrash (MediaSource* self);
void photo_remove_all_transformations (Photo* self);
-LibraryPhoto* library_photo_source_collection_get_offline_by_file (LibraryPhotoSourceCollection* self, GFile* file);
-LibraryPhoto* library_photo_source_collection_get_offline_by_md5 (LibraryPhotoSourceCollection* self, const gchar* md5);
+LibraryPhoto* library_photo_source_collection_get_offline_by_file (LibraryPhotoSourceCollection* self,
+ GFile* file);
+LibraryPhoto* library_photo_source_collection_get_offline_by_md5 (LibraryPhotoSourceCollection* self,
+ const gchar* md5);
GType photo_id_get_type (void) G_GNUC_CONST;
PhotoID* photo_id_dup (const PhotoID* self);
void photo_id_free (PhotoID* self);
GType photo_table_get_type (void) G_GNUC_CONST;
PhotoTable* photo_table_get_instance (void);
-PhotoID* photo_table_get_duplicate_ids (PhotoTable* self, GFile* file, const gchar* thumbnail_md5, const gchar* md5, PhotoFileFormat file_format, int* result_length1);
+PhotoID* photo_table_get_duplicate_ids (PhotoTable* self,
+ GFile* file,
+ const gchar* thumbnail_md5,
+ const gchar* md5,
+ PhotoFileFormat file_format,
+ int* result_length1);
DuplicatedFile* duplicated_file_create_from_photo_id (PhotoID* photo_id);
-static void batch_import_done_preparing_files (BatchImport* self, BackgroundJob* j, const gchar* caller);
+static void batch_import_done_preparing_files (BatchImport* self,
+ BackgroundJob* j,
+ const gchar* caller);
gpointer ready_for_import_ref (gpointer instance);
void ready_for_import_unref (gpointer instance);
-GParamSpec* param_spec_ready_for_import (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_ready_for_import (GValue* value, gpointer v_object);
-void value_take_ready_for_import (GValue* value, gpointer v_object);
+GParamSpec* param_spec_ready_for_import (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_ready_for_import (GValue* value,
+ gpointer v_object);
+void value_take_ready_for_import (GValue* value,
+ gpointer v_object);
gpointer value_get_ready_for_import (const GValue* value);
GType ready_for_import_get_type (void) G_GNUC_CONST;
gpointer photo_import_params_ref (gpointer instance);
void photo_import_params_unref (gpointer instance);
-GParamSpec* param_spec_photo_import_params (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_photo_import_params (GValue* value, gpointer v_object);
-void value_take_photo_import_params (GValue* value, gpointer v_object);
+GParamSpec* param_spec_photo_import_params (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_photo_import_params (GValue* value,
+ gpointer v_object);
+void value_take_photo_import_params (GValue* value,
+ gpointer v_object);
gpointer value_get_photo_import_params (const GValue* value);
GType photo_import_params_get_type (void) G_GNUC_CONST;
gpointer video_import_params_ref (gpointer instance);
void video_import_params_unref (gpointer instance);
-GParamSpec* param_spec_video_import_params (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_video_import_params (GValue* value, gpointer v_object);
-void value_take_video_import_params (GValue* value, gpointer v_object);
+GParamSpec* param_spec_video_import_params (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_video_import_params (GValue* value,
+ gpointer v_object);
+void value_take_video_import_params (GValue* value,
+ gpointer v_object);
gpointer value_get_video_import_params (const GValue* value);
GType video_import_params_get_type (void) G_GNUC_CONST;
GType tombstone_get_type (void) G_GNUC_CONST;
GType tombstone_source_collection_get_type (void) G_GNUC_CONST;
-Tombstone* tombstone_source_collection_locate (TombstoneSourceCollection* self, GFile* file);
-void tombstone_source_collection_resurrect (TombstoneSourceCollection* self, Tombstone* tombstone);
-ImportResult video_import_create (VideoImportParams* params, Video* * video);
-ImportResult library_photo_import_create (PhotoImportParams* params, LibraryPhoto* * photo);
+Tombstone* tombstone_source_collection_locate (TombstoneSourceCollection* self,
+ GFile* file);
+void tombstone_source_collection_resurrect (TombstoneSourceCollection* self,
+ Tombstone* tombstone);
+ImportResult video_import_create (VideoImportParams* params,
+ Video* * video);
+ImportResult library_photo_import_create (PhotoImportParams* params,
+ LibraryPhoto* * photo);
GType photo_file_sniffer_options_get_type (void) G_GNUC_CONST;
gpointer thumbnails_ref (gpointer instance);
void thumbnails_unref (gpointer instance);
-GParamSpec* param_spec_thumbnails (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_thumbnails (GValue* value, gpointer v_object);
-void value_take_thumbnails (GValue* value, gpointer v_object);
+GParamSpec* param_spec_thumbnails (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_thumbnails (GValue* value,
+ gpointer v_object);
+void value_take_thumbnails (GValue* value,
+ gpointer v_object);
gpointer value_get_thumbnails (const GValue* value);
GType thumbnails_get_type (void) G_GNUC_CONST;
gpointer photo_row_ref (gpointer instance);
void photo_row_unref (gpointer instance);
-GParamSpec* param_spec_photo_row (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_photo_row (GValue* value, gpointer v_object);
-void value_take_photo_row (GValue* value, gpointer v_object);
+GParamSpec* param_spec_photo_row (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_photo_row (GValue* value,
+ gpointer v_object);
+void value_take_photo_row (GValue* value,
+ gpointer v_object);
gpointer value_get_photo_row (const GValue* value);
GType photo_row_get_type (void) G_GNUC_CONST;
gpointer backing_photo_row_ref (gpointer instance);
void backing_photo_row_unref (gpointer instance);
-GParamSpec* param_spec_backing_photo_row (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_backing_photo_row (GValue* value, gpointer v_object);
-void value_take_backing_photo_row (GValue* value, gpointer v_object);
+GParamSpec* param_spec_backing_photo_row (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_backing_photo_row (GValue* value,
+ gpointer v_object);
+void value_take_backing_photo_row (GValue* value,
+ gpointer v_object);
gpointer value_get_backing_photo_row (const GValue* value);
GType backing_photo_row_get_type (void) G_GNUC_CONST;
BackingPhotoRow* backing_photo_row_new (void);
@@ -2052,27 +2378,48 @@ Dimensions* dimensions_dup (const Dimensions* self);
void dimensions_free (Dimensions* self);
GType orientation_get_type (void) G_GNUC_CONST;
GType raw_developer_get_type (void) G_GNUC_CONST;
-void photo_add_backing_photo_for_development (Photo* self, RawDeveloper d, BackingPhotoRow* bpr, GError** error);
+void photo_add_backing_photo_for_development (Photo* self,
+ RawDeveloper d,
+ BackingPhotoRow* bpr,
+ gboolean notify,
+ GError** error);
PhotoFileFormat photo_get_master_file_format (Photo* self);
GType configuration_facade_get_type (void) G_GNUC_CONST;
GType config_facade_get_type (void) G_GNUC_CONST;
ConfigFacade* config_facade_get_instance (void);
RawDeveloper configuration_facade_get_default_raw_developer (ConfigurationFacade* self);
-gboolean photo_is_raw_developer_available (Photo* self, RawDeveloper d);
-void photo_set_default_raw_developer (Photo* self, RawDeveloper d);
-void photo_set_raw_developer (Photo* self, RawDeveloper d);
+gboolean photo_is_raw_developer_available (Photo* self,
+ RawDeveloper d);
+void photo_set_default_raw_developer (Photo* self,
+ RawDeveloper d);
+void photo_set_raw_developer (Photo* self,
+ RawDeveloper d,
+ gboolean notify);
Thumbnails* ready_for_import_get_thumbnails (ReadyForImport* self);
-CompletedImportObject* completed_import_object_new (MediaSource* source, Thumbnails* thumbnails, BatchImportJob* original_job, BatchImportResult* import_result);
-CompletedImportObject* completed_import_object_construct (GType object_type, MediaSource* source, Thumbnails* thumbnails, BatchImportJob* original_job, BatchImportResult* import_result);
+CompletedImportObject* completed_import_object_new (MediaSource* source,
+ Thumbnails* thumbnails,
+ BatchImportJob* original_job,
+ BatchImportResult* import_result);
+CompletedImportObject* completed_import_object_construct (GType object_type,
+ MediaSource* source,
+ Thumbnails* thumbnails,
+ BatchImportJob* original_job,
+ BatchImportResult* import_result);
BatchImportResult* ready_for_import_abort (ReadyForImport* self);
gchar* data_object_to_string (DataObject* self);
void library_photo_import_failed (LibraryPhoto* photo);
void video_import_failed (Video* video);
gpointer media_collection_registry_ref (gpointer instance);
void media_collection_registry_unref (gpointer instance);
-GParamSpec* param_spec_media_collection_registry (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_media_collection_registry (GValue* value, gpointer v_object);
-void value_take_media_collection_registry (GValue* value, gpointer v_object);
+GParamSpec* param_spec_media_collection_registry (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_media_collection_registry (GValue* value,
+ gpointer v_object);
+void value_take_media_collection_registry (GValue* value,
+ gpointer v_object);
gpointer value_get_media_collection_registry (const GValue* value);
GType media_collection_registry_get_type (void) G_GNUC_CONST;
MediaCollectionRegistry* media_collection_registry_get_instance (void);
@@ -2081,186 +2428,342 @@ GType container_source_collection_get_type (void) G_GNUC_CONST;
GType event_source_collection_get_type (void) G_GNUC_CONST;
void data_collection_freeze_notifications (DataCollection* self);
GType tag_source_collection_get_type (void) G_GNUC_CONST;
-void media_source_collection_import_many (MediaSourceCollection* self, GeeCollection* media);
-void event_generate_many_events (GeeCollection* sources, ViewCollection* events_so_far);
+void media_source_collection_import_many (MediaSourceCollection* self,
+ GeeCollection* media);
+void event_generate_many_events (GeeCollection* sources,
+ ViewCollection* events_so_far);
void data_collection_thaw_notifications (DataCollection* self);
void media_collection_registry_commit_transaction_on_all (MediaCollectionRegistry* self);
guint64 media_source_get_master_filesize (MediaSource* self);
-static void g_cclosure_user_marshal_VOID__UINT64_UINT64 (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data);
-static void g_cclosure_user_marshal_VOID__OBJECT_OBJECT_INT (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data);
-static void g_cclosure_user_marshal_VOID__ENUM_STRING (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data);
-static void g_cclosure_user_marshal_VOID__BATCH_IMPORT_RESULT (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data);
-static void g_cclosure_user_marshal_VOID__IMPORT_MANIFEST_BATCH_IMPORT_ROLL (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data);
+static void g_cclosure_user_marshal_VOID__UINT64_UINT64 (GClosure * closure,
+ GValue * return_value,
+ guint n_param_values,
+ const GValue * param_values,
+ gpointer invocation_hint,
+ gpointer marshal_data);
+static void g_cclosure_user_marshal_VOID__OBJECT_OBJECT_INT (GClosure * closure,
+ GValue * return_value,
+ guint n_param_values,
+ const GValue * param_values,
+ gpointer invocation_hint,
+ gpointer marshal_data);
+static void g_cclosure_user_marshal_VOID__ENUM_STRING (GClosure * closure,
+ GValue * return_value,
+ guint n_param_values,
+ const GValue * param_values,
+ gpointer invocation_hint,
+ gpointer marshal_data);
+static void g_cclosure_user_marshal_VOID__BATCH_IMPORT_RESULT (GClosure * closure,
+ GValue * return_value,
+ guint n_param_values,
+ const GValue * param_values,
+ gpointer invocation_hint,
+ gpointer marshal_data);
+static void g_cclosure_user_marshal_VOID__IMPORT_MANIFEST_BATCH_IMPORT_ROLL (GClosure * closure,
+ GValue * return_value,
+ guint n_param_values,
+ const GValue * param_values,
+ gpointer invocation_hint,
+ gpointer marshal_data);
static void batch_import_finalize (GObject * obj);
#define DUPLICATED_FILE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_DUPLICATED_FILE, DuplicatedFilePrivate))
-enum {
- DUPLICATED_FILE_DUMMY_PROPERTY
-};
static DuplicatedFile* duplicated_file_new (void);
static DuplicatedFile* duplicated_file_construct (GType object_type);
gboolean photo_id_is_valid (PhotoID *self);
gboolean video_id_is_valid (VideoID *self);
GFile* duplicated_file_get_file (DuplicatedFile* self);
-LibraryPhoto* library_photo_source_collection_fetch (LibraryPhotoSourceCollection* self, PhotoID* photo_id);
-Video* video_source_collection_fetch (VideoSourceCollection* self, VideoID* video_id);
+LibraryPhoto* library_photo_source_collection_fetch (LibraryPhotoSourceCollection* self,
+ PhotoID* photo_id);
+Video* video_source_collection_fetch (VideoSourceCollection* self,
+ VideoID* video_id);
static void duplicated_file_finalize (GObject * obj);
-enum {
- BACKGROUND_IMPORT_JOB_DUMMY_PROPERTY
-};
-BackgroundImportJob* background_import_job_construct (GType object_type, BatchImport* owner, CompletionCallback callback, void* callback_target, GCancellable* cancellable, CancellationCallback cancellation, void* cancellation_target);
+BackgroundImportJob* background_import_job_construct (GType object_type,
+ BatchImport* owner,
+ CompletionCallback callback,
+ void* callback_target,
+ GCancellable* cancellable,
+ CancellationCallback cancellation,
+ void* cancellation_target);
gpointer abstract_semaphore_ref (gpointer instance);
void abstract_semaphore_unref (gpointer instance);
-GParamSpec* param_spec_abstract_semaphore (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_abstract_semaphore (GValue* value, gpointer v_object);
-void value_take_abstract_semaphore (GValue* value, gpointer v_object);
+GParamSpec* param_spec_abstract_semaphore (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_abstract_semaphore (GValue* value,
+ gpointer v_object);
+void value_take_abstract_semaphore (GValue* value,
+ gpointer v_object);
gpointer value_get_abstract_semaphore (const GValue* value);
GType abstract_semaphore_get_type (void) G_GNUC_CONST;
-BackgroundJob* background_job_construct (GType object_type, GObject* owner, CompletionCallback callback, void* callback_target, GCancellable* cancellable, CancellationCallback cancellation, void* cancellation_target, AbstractSemaphore* completion_semaphore);
+BackgroundJob* background_job_construct (GType object_type,
+ GObject* owner,
+ CompletionCallback callback,
+ void* callback_target,
+ GCancellable* cancellable,
+ CancellationCallback cancellation,
+ void* cancellation_target,
+ AbstractSemaphore* completion_semaphore);
ImportResult background_import_job_abort_check (BackgroundImportJob* self);
gboolean background_job_is_cancelled (BackgroundJob* self);
-void background_import_job_abort (BackgroundImportJob* self, ImportResult _result_);
-void background_import_job_report_failure (BackgroundImportJob* self, BatchImportJob* job, GFile* file, const gchar* src_identifier, const gchar* dest_identifier, ImportResult _result_);
-void background_import_job_report_error (BackgroundImportJob* self, BatchImportJob* job, GFile* file, const gchar* src_identifier, const gchar* dest_identifier, GError* err, ImportResult default_result);
+void background_import_job_abort (BackgroundImportJob* self,
+ ImportResult _result_);
+void background_import_job_report_failure (BackgroundImportJob* self,
+ BatchImportJob* job,
+ GFile* file,
+ const gchar* src_identifier,
+ const gchar* dest_identifier,
+ ImportResult _result_);
+void background_import_job_report_error (BackgroundImportJob* self,
+ BatchImportJob* job,
+ GFile* file,
+ const gchar* src_identifier,
+ const gchar* dest_identifier,
+ GError* err,
+ ImportResult default_result);
static void background_import_job_finalize (BackgroundJob * obj);
-enum {
- FILE_TO_PREPARE_DUMMY_PROPERTY
-};
-FileToPrepare* file_to_prepare_new (BatchImportJob* job, GFile* file, gboolean copy_to_library);
-FileToPrepare* file_to_prepare_construct (GType object_type, BatchImportJob* job, GFile* file, gboolean copy_to_library);
-void file_to_prepare_set_associated (FileToPrepare* self, FileToPrepare* a);
+FileToPrepare* file_to_prepare_new (BatchImportJob* job,
+ GFile* file,
+ gboolean copy_to_library);
+FileToPrepare* file_to_prepare_construct (GType object_type,
+ BatchImportJob* job,
+ GFile* file,
+ gboolean copy_to_library);
+void file_to_prepare_set_associated (FileToPrepare* self,
+ FileToPrepare* a);
gchar* file_to_prepare_get_parent_path (FileToPrepare* self);
gchar* file_to_prepare_get_path (FileToPrepare* self);
gchar* file_to_prepare_get_basename (FileToPrepare* self);
gboolean file_to_prepare_is_directory (FileToPrepare* self);
static void file_to_prepare_finalize (FileToPrepare * obj);
#define WORK_SNIFFER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_WORK_SNIFFER, WorkSnifferPrivate))
-enum {
- WORK_SNIFFER_DUMMY_PROPERTY
-};
static void work_sniffer_real_execute (BackgroundJob* base);
-static void work_sniffer_sniff_job (WorkSniffer* self, BatchImportJob* job, GError** error);
-static gint __lambda11_ (WorkSniffer* self, FileToPrepare* a, FileToPrepare* b);
-gint utf8_cs_compare (void* a, void* b);
-static gint ___lambda11__gcompare_data_func (gconstpointer a, gconstpointer b, gpointer self);
-void disassemble_filename (const gchar* basename, gchar* * name, gchar* * ext);
+static void work_sniffer_sniff_job (WorkSniffer* self,
+ BatchImportJob* job,
+ GError** error);
+static gint __lambda11_ (WorkSniffer* self,
+ FileToPrepare* a,
+ FileToPrepare* b);
+gint utf8_cs_compare (void* a,
+ void* b);
+static gint ___lambda11__gcompare_data_func (gconstpointer a,
+ gconstpointer b,
+ gpointer self);
+void disassemble_filename (const gchar* basename,
+ gchar* * name,
+ gchar* * ext);
gboolean is_string_empty (const gchar* s);
gpointer photo_file_format_properties_ref (gpointer instance);
void photo_file_format_properties_unref (gpointer instance);
-GParamSpec* param_spec_photo_file_format_properties (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_photo_file_format_properties (GValue* value, gpointer v_object);
-void value_take_photo_file_format_properties (GValue* value, gpointer v_object);
+GParamSpec* param_spec_photo_file_format_properties (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_photo_file_format_properties (GValue* value,
+ gpointer v_object);
+void value_take_photo_file_format_properties (GValue* value,
+ gpointer v_object);
gpointer value_get_photo_file_format_properties (const GValue* value);
GType photo_file_format_properties_get_type (void) G_GNUC_CONST;
GType raw_file_format_properties_get_type (void) G_GNUC_CONST;
RawFileFormatProperties* raw_file_format_properties_get_instance (void);
-gboolean photo_file_format_properties_is_recognized_extension (PhotoFileFormatProperties* self, const gchar* ext);
-static gboolean work_sniffer_is_paired (WorkSniffer* self, FileToPrepare* raw, FileToPrepare* maybe_paired);
+gboolean photo_file_format_properties_is_recognized_extension (PhotoFileFormatProperties* self,
+ const gchar* ext);
+static gboolean work_sniffer_is_paired (WorkSniffer* self,
+ FileToPrepare* raw,
+ FileToPrepare* maybe_paired);
GType jfif_file_format_properties_get_type (void) G_GNUC_CONST;
JfifFileFormatProperties* jfif_file_format_properties_get_instance (void);
-void work_sniffer_search_dir (WorkSniffer* self, BatchImportJob* job, GFile* dir, gboolean copy_to_library, GError** error);
+void work_sniffer_search_dir (WorkSniffer* self,
+ BatchImportJob* job,
+ GFile* dir,
+ gboolean copy_to_library,
+ gboolean recurse,
+ GError** error);
GCancellable* background_job_get_cancellable (BackgroundJob* self);
gboolean photo_is_file_image (GFile* file);
gboolean photo_file_format_is_file_supported (GFile* file);
gboolean video_reader_is_supported_video_file (GFile* file);
static void work_sniffer_finalize (BackgroundJob * obj);
-enum {
- PREPARED_FILE_DUMMY_PROPERTY
-};
-PreparedFile* prepared_file_new (BatchImportJob* job, GFile* file, GFile* associated_file, const gchar* source_id, const gchar* dest_id, gboolean copy_to_library, const gchar* exif_md5, const gchar* thumbnail_md5, const gchar* full_md5, PhotoFileFormat file_format, guint64 filesize, gboolean is_video);
-PreparedFile* prepared_file_construct (GType object_type, BatchImportJob* job, GFile* file, GFile* associated_file, const gchar* source_id, const gchar* dest_id, gboolean copy_to_library, const gchar* exif_md5, const gchar* thumbnail_md5, const gchar* full_md5, PhotoFileFormat file_format, guint64 filesize, gboolean is_video);
+PreparedFile* prepared_file_new (BatchImportJob* job,
+ GFile* file,
+ GFile* associated_file,
+ const gchar* source_id,
+ const gchar* dest_id,
+ gboolean copy_to_library,
+ const gchar* exif_md5,
+ const gchar* thumbnail_md5,
+ const gchar* full_md5,
+ PhotoFileFormat file_format,
+ guint64 filesize,
+ gboolean is_video);
+PreparedFile* prepared_file_construct (GType object_type,
+ BatchImportJob* job,
+ GFile* file,
+ GFile* associated_file,
+ const gchar* source_id,
+ const gchar* dest_id,
+ gboolean copy_to_library,
+ const gchar* exif_md5,
+ const gchar* thumbnail_md5,
+ const gchar* full_md5,
+ PhotoFileFormat file_format,
+ guint64 filesize,
+ gboolean is_video);
static void prepared_file_finalize (PreparedFile * obj);
-enum {
- PREPARED_FILE_CLUSTER_DUMMY_PROPERTY
-};
PreparedFileCluster* prepared_file_cluster_new (GeeArrayList* list);
-PreparedFileCluster* prepared_file_cluster_construct (GType object_type, GeeArrayList* list);
+PreparedFileCluster* prepared_file_cluster_construct (GType object_type,
+ GeeArrayList* list);
InterlockedNotificationObject* interlocked_notification_object_construct (GType object_type);
static void prepared_file_cluster_finalize (NotificationObject * obj);
#define PREPARE_FILES_JOB_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_PREPARE_FILES_JOB, PrepareFilesJobPrivate))
-enum {
- PREPARE_FILES_JOB_DUMMY_PROPERTY
-};
GFile* app_dirs_get_import_dir (void);
static gint prepare_files_job_get_test_variable (const gchar* name);
-void background_job_set_notification_priority (BackgroundJob* self, gint priority);
+void background_job_set_notification_priority (BackgroundJob* self,
+ gint priority);
static void prepare_files_job_real_execute (BackgroundJob* base);
-static gboolean prepare_files_job_create_file (PrepareFilesJob* self, BatchImportJob* job, GFile* * file, gboolean* copy_to_library);
-static ImportResult prepare_files_job_prepare_file (PrepareFilesJob* self, BatchImportJob* job, GFile* file, GFile* associated_file, gboolean copy_to_library, PreparedFile* * prepared_file);
-void background_job_notify (BackgroundJob* self, NotificationCallback callback, void* callback_target, NotificationObject* user);
-gchar* md5_file (GFile* file, GError** error);
+static gboolean prepare_files_job_create_file (PrepareFilesJob* self,
+ BatchImportJob* job,
+ GFile* * file,
+ gboolean* copy_to_library);
+static ImportResult prepare_files_job_prepare_file (PrepareFilesJob* self,
+ BatchImportJob* job,
+ GFile* file,
+ GFile* associated_file,
+ gboolean copy_to_library,
+ PreparedFile* * prepared_file);
+void background_job_notify (BackgroundJob* self,
+ NotificationCallback callback,
+ void* callback_target,
+ NotificationObject* user);
+gchar* md5_file (GFile* file,
+ GError** error);
PhotoFileFormat photo_file_format_get_by_file_extension (GFile* file);
gpointer photo_file_adapter_ref (gpointer instance);
void photo_file_adapter_unref (gpointer instance);
-GParamSpec* param_spec_photo_file_adapter (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_photo_file_adapter (GValue* value, gpointer v_object);
-void value_take_photo_file_adapter (GValue* value, gpointer v_object);
+GParamSpec* param_spec_photo_file_adapter (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_photo_file_adapter (GValue* value,
+ gpointer v_object);
+void value_take_photo_file_adapter (GValue* value,
+ gpointer v_object);
gpointer value_get_photo_file_adapter (const GValue* value);
GType photo_file_adapter_get_type (void) G_GNUC_CONST;
GType photo_file_reader_get_type (void) G_GNUC_CONST;
-PhotoFileReader* photo_file_format_create_reader (PhotoFileFormat self, const gchar* filepath);
+PhotoFileReader* photo_file_format_create_reader (PhotoFileFormat self,
+ const gchar* filepath);
gpointer media_metadata_ref (gpointer instance);
void media_metadata_unref (gpointer instance);
-GParamSpec* param_spec_media_metadata (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_media_metadata (GValue* value, gpointer v_object);
-void value_take_media_metadata (GValue* value, gpointer v_object);
+GParamSpec* param_spec_media_metadata (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_media_metadata (GValue* value,
+ gpointer v_object);
+void value_take_media_metadata (GValue* value,
+ gpointer v_object);
gpointer value_get_media_metadata (const GValue* value);
GType media_metadata_get_type (void) G_GNUC_CONST;
GType photo_metadata_get_type (void) G_GNUC_CONST;
-PhotoMetadata* photo_file_reader_read_metadata (PhotoFileReader* self, GError** error);
-guint8* photo_metadata_flatten_exif (PhotoMetadata* self, gboolean include_preview, int* result_length1);
-gchar* md5_binary (guint8* buffer, gsize length);
-guint8* photo_metadata_flatten_exif_preview (PhotoMetadata* self, int* result_length1);
+PhotoMetadata* photo_file_reader_read_metadata (PhotoFileReader* self,
+ GError** error);
+gchar* photo_metadata_exif_hash (PhotoMetadata* self);
+gchar* photo_metadata_thumbnail_hash (PhotoMetadata* self);
static void prepare_files_job_finalize (BackgroundJob * obj);
-enum {
- READY_FOR_IMPORT_DUMMY_PROPERTY
-};
-ReadyForImport* ready_for_import_new (GFile* final_file, PreparedFile* prepared_file, PhotoImportParams* photo_import_params, VideoImportParams* video_import_params, BatchImportResult* batch_result);
-ReadyForImport* ready_for_import_construct (GType object_type, GFile* final_file, PreparedFile* prepared_file, PhotoImportParams* photo_import_params, VideoImportParams* video_import_params, BatchImportResult* batch_result);
+ReadyForImport* ready_for_import_new (GFile* final_file,
+ PreparedFile* prepared_file,
+ PhotoImportParams* photo_import_params,
+ VideoImportParams* video_import_params,
+ BatchImportResult* batch_result);
+ReadyForImport* ready_for_import_construct (GType object_type,
+ GFile* final_file,
+ PreparedFile* prepared_file,
+ PhotoImportParams* photo_import_params,
+ VideoImportParams* video_import_params,
+ BatchImportResult* batch_result);
gpointer video_row_ref (gpointer instance);
void video_row_unref (gpointer instance);
-GParamSpec* param_spec_video_row (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_video_row (GValue* value, gpointer v_object);
-void value_take_video_row (GValue* value, gpointer v_object);
+GParamSpec* param_spec_video_row (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_video_row (GValue* value,
+ gpointer v_object);
+void value_take_video_row (GValue* value,
+ gpointer v_object);
gpointer value_get_video_row (const GValue* value);
GType video_row_get_type (void) G_GNUC_CONST;
static void ready_for_import_finalize (ReadyForImport * obj);
#define PREPARED_FILE_IMPORT_JOB_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_PREPARED_FILE_IMPORT_JOB, PreparedFileImportJobPrivate))
-enum {
- PREPARED_FILE_IMPORT_JOB_DUMMY_PROPERTY
-};
-void background_job_set_completion_priority (BackgroundJob* self, gint priority);
+void background_job_set_completion_priority (BackgroundJob* self,
+ gint priority);
static void prepared_file_import_job_real_execute (BackgroundJob* base);
-GFile* library_files_duplicate (GFile* src, GFileProgressCallback progress_callback, void* progress_callback_target, gboolean blacklist, GError** error);
+GFile* library_files_duplicate (GFile* src,
+ GFileProgressCallback progress_callback,
+ void* progress_callback_target,
+ gboolean blacklist,
+ GError** error);
Thumbnails* thumbnails_new (void);
Thumbnails* thumbnails_construct (GType object_type);
-VideoImportParams* video_import_params_new (GFile* file, ImportID* import_id, const gchar* md5, Thumbnails* thumbnails, time_t exposure_time_override);
-VideoImportParams* video_import_params_construct (GType object_type, GFile* file, ImportID* import_id, const gchar* md5, Thumbnails* thumbnails, time_t exposure_time_override);
+VideoImportParams* video_import_params_new (GFile* file,
+ ImportID* import_id,
+ const gchar* md5,
+ Thumbnails* thumbnails,
+ time_t exposure_time_override);
+VideoImportParams* video_import_params_construct (GType object_type,
+ GFile* file,
+ ImportID* import_id,
+ const gchar* md5,
+ Thumbnails* thumbnails,
+ time_t exposure_time_override);
ImportResult video_reader_prepare_for_import (VideoImportParams* params);
-PhotoImportParams* photo_import_params_new (GFile* file, GFile* final_associated_file, ImportID* import_id, PhotoFileSnifferOptions sniffer_options, const gchar* exif_md5, const gchar* thumbnail_md5, const gchar* full_md5, Thumbnails* thumbnails);
-PhotoImportParams* photo_import_params_construct (GType object_type, GFile* file, GFile* final_associated_file, ImportID* import_id, PhotoFileSnifferOptions sniffer_options, const gchar* exif_md5, const gchar* thumbnail_md5, const gchar* full_md5, Thumbnails* thumbnails);
+PhotoImportParams* photo_import_params_new (GFile* file,
+ GFile* final_associated_file,
+ ImportID* import_id,
+ PhotoFileSnifferOptions sniffer_options,
+ const gchar* exif_md5,
+ const gchar* thumbnail_md5,
+ const gchar* full_md5,
+ Thumbnails* thumbnails);
+PhotoImportParams* photo_import_params_construct (GType object_type,
+ GFile* file,
+ GFile* final_associated_file,
+ ImportID* import_id,
+ PhotoFileSnifferOptions sniffer_options,
+ const gchar* exif_md5,
+ const gchar* thumbnail_md5,
+ const gchar* full_md5,
+ Thumbnails* thumbnails);
ImportResult photo_prepare_for_import (PhotoImportParams* params);
static void prepared_file_import_job_finalize (BackgroundJob * obj);
-enum {
- COMPLETED_IMPORT_OBJECT_DUMMY_PROPERTY
-};
GType thumbnail_cache_size_get_type (void) G_GNUC_CONST;
-GdkPixbuf* thumbnails_get (Thumbnails* self, ThumbnailCacheSize size);
+GdkPixbuf* thumbnails_get (Thumbnails* self,
+ ThumbnailCacheSize size);
static void completed_import_object_finalize (CompletedImportObject * obj);
-enum {
- THUMBNAIL_WRITER_JOB_DUMMY_PROPERTY
-};
static void thumbnail_writer_job_real_execute (BackgroundJob* base);
-void thumbnail_cache_import_thumbnails (ThumbnailSource* source, Thumbnails* thumbnails, gboolean force, GError** error);
+void thumbnail_cache_import_thumbnails (ThumbnailSource* source,
+ Thumbnails* thumbnails,
+ gboolean force,
+ GError** error);
static void thumbnail_writer_job_finalize (BackgroundJob * obj);
-gchar* import_result_to_string (ImportResult self) {
+gchar*
+import_result_to_string (ImportResult self)
+{
gchar* result = NULL;
#line 24 "/home/jens/Source/shotwell/src/BatchImport.vala"
switch (self) {
#line 24 "/home/jens/Source/shotwell/src/BatchImport.vala"
case IMPORT_RESULT_SUCCESS:
-#line 2264 "BatchImport.c"
+#line 2767 "BatchImport.c"
{
gchar* _tmp0_;
#line 26 "/home/jens/Source/shotwell/src/BatchImport.vala"
@@ -2269,11 +2772,11 @@ gchar* import_result_to_string (ImportResult self) {
result = _tmp0_;
#line 26 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 2273 "BatchImport.c"
+#line 2776 "BatchImport.c"
}
#line 24 "/home/jens/Source/shotwell/src/BatchImport.vala"
case IMPORT_RESULT_FILE_ERROR:
-#line 2277 "BatchImport.c"
+#line 2780 "BatchImport.c"
{
gchar* _tmp1_;
#line 29 "/home/jens/Source/shotwell/src/BatchImport.vala"
@@ -2282,11 +2785,11 @@ gchar* import_result_to_string (ImportResult self) {
result = _tmp1_;
#line 29 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 2286 "BatchImport.c"
+#line 2789 "BatchImport.c"
}
#line 24 "/home/jens/Source/shotwell/src/BatchImport.vala"
case IMPORT_RESULT_DECODE_ERROR:
-#line 2290 "BatchImport.c"
+#line 2793 "BatchImport.c"
{
gchar* _tmp2_;
#line 32 "/home/jens/Source/shotwell/src/BatchImport.vala"
@@ -2295,11 +2798,11 @@ gchar* import_result_to_string (ImportResult self) {
result = _tmp2_;
#line 32 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 2299 "BatchImport.c"
+#line 2802 "BatchImport.c"
}
#line 24 "/home/jens/Source/shotwell/src/BatchImport.vala"
case IMPORT_RESULT_DATABASE_ERROR:
-#line 2303 "BatchImport.c"
+#line 2806 "BatchImport.c"
{
gchar* _tmp3_;
#line 35 "/home/jens/Source/shotwell/src/BatchImport.vala"
@@ -2308,11 +2811,11 @@ gchar* import_result_to_string (ImportResult self) {
result = _tmp3_;
#line 35 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 2312 "BatchImport.c"
+#line 2815 "BatchImport.c"
}
#line 24 "/home/jens/Source/shotwell/src/BatchImport.vala"
case IMPORT_RESULT_USER_ABORT:
-#line 2316 "BatchImport.c"
+#line 2819 "BatchImport.c"
{
gchar* _tmp4_;
#line 38 "/home/jens/Source/shotwell/src/BatchImport.vala"
@@ -2321,11 +2824,11 @@ gchar* import_result_to_string (ImportResult self) {
result = _tmp4_;
#line 38 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 2325 "BatchImport.c"
+#line 2828 "BatchImport.c"
}
#line 24 "/home/jens/Source/shotwell/src/BatchImport.vala"
case IMPORT_RESULT_NOT_A_FILE:
-#line 2329 "BatchImport.c"
+#line 2832 "BatchImport.c"
{
gchar* _tmp5_;
#line 41 "/home/jens/Source/shotwell/src/BatchImport.vala"
@@ -2334,11 +2837,11 @@ gchar* import_result_to_string (ImportResult self) {
result = _tmp5_;
#line 41 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 2338 "BatchImport.c"
+#line 2841 "BatchImport.c"
}
#line 24 "/home/jens/Source/shotwell/src/BatchImport.vala"
case IMPORT_RESULT_PHOTO_EXISTS:
-#line 2342 "BatchImport.c"
+#line 2845 "BatchImport.c"
{
gchar* _tmp6_;
#line 44 "/home/jens/Source/shotwell/src/BatchImport.vala"
@@ -2347,11 +2850,11 @@ gchar* import_result_to_string (ImportResult self) {
result = _tmp6_;
#line 44 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 2351 "BatchImport.c"
+#line 2854 "BatchImport.c"
}
#line 24 "/home/jens/Source/shotwell/src/BatchImport.vala"
case IMPORT_RESULT_UNSUPPORTED_FORMAT:
-#line 2355 "BatchImport.c"
+#line 2858 "BatchImport.c"
{
gchar* _tmp7_;
#line 47 "/home/jens/Source/shotwell/src/BatchImport.vala"
@@ -2360,11 +2863,11 @@ gchar* import_result_to_string (ImportResult self) {
result = _tmp7_;
#line 47 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 2364 "BatchImport.c"
+#line 2867 "BatchImport.c"
}
#line 24 "/home/jens/Source/shotwell/src/BatchImport.vala"
case IMPORT_RESULT_NOT_AN_IMAGE:
-#line 2368 "BatchImport.c"
+#line 2871 "BatchImport.c"
{
gchar* _tmp8_;
#line 50 "/home/jens/Source/shotwell/src/BatchImport.vala"
@@ -2373,11 +2876,11 @@ gchar* import_result_to_string (ImportResult self) {
result = _tmp8_;
#line 50 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 2377 "BatchImport.c"
+#line 2880 "BatchImport.c"
}
#line 24 "/home/jens/Source/shotwell/src/BatchImport.vala"
case IMPORT_RESULT_DISK_FAILURE:
-#line 2381 "BatchImport.c"
+#line 2884 "BatchImport.c"
{
gchar* _tmp9_;
#line 53 "/home/jens/Source/shotwell/src/BatchImport.vala"
@@ -2386,11 +2889,11 @@ gchar* import_result_to_string (ImportResult self) {
result = _tmp9_;
#line 53 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 2390 "BatchImport.c"
+#line 2893 "BatchImport.c"
}
#line 24 "/home/jens/Source/shotwell/src/BatchImport.vala"
case IMPORT_RESULT_DISK_FULL:
-#line 2394 "BatchImport.c"
+#line 2897 "BatchImport.c"
{
gchar* _tmp10_;
#line 56 "/home/jens/Source/shotwell/src/BatchImport.vala"
@@ -2399,11 +2902,11 @@ gchar* import_result_to_string (ImportResult self) {
result = _tmp10_;
#line 56 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 2403 "BatchImport.c"
+#line 2906 "BatchImport.c"
}
#line 24 "/home/jens/Source/shotwell/src/BatchImport.vala"
case IMPORT_RESULT_CAMERA_ERROR:
-#line 2407 "BatchImport.c"
+#line 2910 "BatchImport.c"
{
gchar* _tmp11_;
#line 59 "/home/jens/Source/shotwell/src/BatchImport.vala"
@@ -2412,11 +2915,11 @@ gchar* import_result_to_string (ImportResult self) {
result = _tmp11_;
#line 59 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 2416 "BatchImport.c"
+#line 2919 "BatchImport.c"
}
#line 24 "/home/jens/Source/shotwell/src/BatchImport.vala"
case IMPORT_RESULT_FILE_WRITE_ERROR:
-#line 2420 "BatchImport.c"
+#line 2923 "BatchImport.c"
{
gchar* _tmp12_;
#line 62 "/home/jens/Source/shotwell/src/BatchImport.vala"
@@ -2425,11 +2928,11 @@ gchar* import_result_to_string (ImportResult self) {
result = _tmp12_;
#line 62 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 2429 "BatchImport.c"
+#line 2932 "BatchImport.c"
}
#line 24 "/home/jens/Source/shotwell/src/BatchImport.vala"
case IMPORT_RESULT_PIXBUF_CORRUPT_IMAGE:
-#line 2433 "BatchImport.c"
+#line 2936 "BatchImport.c"
{
gchar* _tmp13_;
#line 65 "/home/jens/Source/shotwell/src/BatchImport.vala"
@@ -2438,7 +2941,7 @@ gchar* import_result_to_string (ImportResult self) {
result = _tmp13_;
#line 65 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 2442 "BatchImport.c"
+#line 2945 "BatchImport.c"
}
default:
{
@@ -2449,13 +2952,15 @@ gchar* import_result_to_string (ImportResult self) {
result = _tmp14_;
#line 68 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 2453 "BatchImport.c"
+#line 2956 "BatchImport.c"
}
}
}
-gboolean import_result_is_abort (ImportResult self) {
+gboolean
+import_result_is_abort (ImportResult self)
+{
gboolean result = FALSE;
#line 73 "/home/jens/Source/shotwell/src/BatchImport.vala"
switch (self) {
@@ -2465,13 +2970,13 @@ gboolean import_result_is_abort (ImportResult self) {
case IMPORT_RESULT_DISK_FAILURE:
#line 73 "/home/jens/Source/shotwell/src/BatchImport.vala"
case IMPORT_RESULT_USER_ABORT:
-#line 2469 "BatchImport.c"
+#line 2974 "BatchImport.c"
{
#line 77 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = TRUE;
#line 77 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 2475 "BatchImport.c"
+#line 2980 "BatchImport.c"
}
default:
{
@@ -2479,13 +2984,15 @@ gboolean import_result_is_abort (ImportResult self) {
result = FALSE;
#line 80 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 2483 "BatchImport.c"
+#line 2988 "BatchImport.c"
}
}
}
-gboolean import_result_is_nonuser_abort (ImportResult self) {
+gboolean
+import_result_is_nonuser_abort (ImportResult self)
+{
gboolean result = FALSE;
#line 85 "/home/jens/Source/shotwell/src/BatchImport.vala"
switch (self) {
@@ -2493,13 +3000,13 @@ gboolean import_result_is_nonuser_abort (ImportResult self) {
case IMPORT_RESULT_DISK_FULL:
#line 85 "/home/jens/Source/shotwell/src/BatchImport.vala"
case IMPORT_RESULT_DISK_FAILURE:
-#line 2497 "BatchImport.c"
+#line 3004 "BatchImport.c"
{
#line 88 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = TRUE;
#line 88 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 2503 "BatchImport.c"
+#line 3010 "BatchImport.c"
}
default:
{
@@ -2507,101 +3014,99 @@ gboolean import_result_is_nonuser_abort (ImportResult self) {
result = FALSE;
#line 91 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 2511 "BatchImport.c"
+#line 3018 "BatchImport.c"
}
}
}
-static gpointer _g_error_copy0 (gpointer self) {
+static gpointer
+_g_error_copy0 (gpointer self)
+{
#line 97 "/home/jens/Source/shotwell/src/BatchImport.vala"
return self ? g_error_copy (self) : NULL;
-#line 2520 "BatchImport.c"
+#line 3029 "BatchImport.c"
}
-ImportResult import_result_convert_error (GError* err, ImportResult default_result) {
+ImportResult
+import_result_convert_error (GError* err,
+ ImportResult default_result)
+{
ImportResult result = 0;
- GError* _tmp0_;
- ImportResult _tmp32_;
#line 96 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = err;
-#line 96 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp0_->domain == G_FILE_ERROR) {
-#line 2532 "BatchImport.c"
+ if (err->domain == G_FILE_ERROR) {
+#line 3040 "BatchImport.c"
GError* ferr = NULL;
+ GError* _tmp0_;
GError* _tmp1_;
- GError* _tmp2_;
- GError* _tmp3_;
-#line 97 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = err;
#line 97 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = _g_error_copy0 ((GError*) _tmp1_);
+ _tmp0_ = _g_error_copy0 ((GError*) err);
#line 97 "/home/jens/Source/shotwell/src/BatchImport.vala"
- ferr = _tmp2_;
+ ferr = _tmp0_;
#line 99 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = ferr;
+ _tmp1_ = ferr;
#line 99 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (g_error_matches (_tmp3_, G_FILE_ERROR, G_FILE_ERROR_NOSPC)) {
+ if (g_error_matches (_tmp1_, G_FILE_ERROR, G_FILE_ERROR_NOSPC)) {
#line 100 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = IMPORT_RESULT_DISK_FULL;
#line 100 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_error_free0 (ferr);
#line 100 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 2553 "BatchImport.c"
+#line 3058 "BatchImport.c"
} else {
- GError* _tmp4_;
+ GError* _tmp2_;
#line 101 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = ferr;
+ _tmp2_ = ferr;
#line 101 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (g_error_matches (_tmp4_, G_FILE_ERROR, G_FILE_ERROR_IO)) {
+ if (g_error_matches (_tmp2_, G_FILE_ERROR, G_FILE_ERROR_IO)) {
#line 102 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = IMPORT_RESULT_DISK_FAILURE;
#line 102 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_error_free0 (ferr);
#line 102 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 2566 "BatchImport.c"
+#line 3071 "BatchImport.c"
} else {
- GError* _tmp5_;
+ GError* _tmp3_;
#line 103 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = ferr;
+ _tmp3_ = ferr;
#line 103 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (g_error_matches (_tmp5_, G_FILE_ERROR, G_FILE_ERROR_ISDIR)) {
+ if (g_error_matches (_tmp3_, G_FILE_ERROR, G_FILE_ERROR_ISDIR)) {
#line 104 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = IMPORT_RESULT_NOT_A_FILE;
#line 104 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_error_free0 (ferr);
#line 104 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 2579 "BatchImport.c"
+#line 3084 "BatchImport.c"
} else {
- GError* _tmp6_;
+ GError* _tmp4_;
#line 105 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = ferr;
+ _tmp4_ = ferr;
#line 105 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (g_error_matches (_tmp6_, G_FILE_ERROR, G_FILE_ERROR_ACCES)) {
+ if (g_error_matches (_tmp4_, G_FILE_ERROR, G_FILE_ERROR_ACCES)) {
#line 106 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = IMPORT_RESULT_FILE_WRITE_ERROR;
#line 106 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_error_free0 (ferr);
#line 106 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 2592 "BatchImport.c"
+#line 3097 "BatchImport.c"
} else {
- GError* _tmp7_;
+ GError* _tmp5_;
#line 107 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = ferr;
+ _tmp5_ = ferr;
#line 107 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (g_error_matches (_tmp7_, G_FILE_ERROR, G_FILE_ERROR_PERM)) {
+ if (g_error_matches (_tmp5_, G_FILE_ERROR, G_FILE_ERROR_PERM)) {
#line 108 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = IMPORT_RESULT_FILE_WRITE_ERROR;
#line 108 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_error_free0 (ferr);
#line 108 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 2605 "BatchImport.c"
+#line 3110 "BatchImport.c"
} else {
#line 110 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = IMPORT_RESULT_FILE_ERROR;
@@ -2609,7 +3114,7 @@ ImportResult import_result_convert_error (GError* err, ImportResult default_resu
_g_error_free0 (ferr);
#line 110 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 2613 "BatchImport.c"
+#line 3118 "BatchImport.c"
}
}
}
@@ -2617,100 +3122,94 @@ ImportResult import_result_convert_error (GError* err, ImportResult default_resu
}
#line 96 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_error_free0 (ferr);
-#line 2621 "BatchImport.c"
+#line 3126 "BatchImport.c"
} else {
- GError* _tmp8_;
-#line 111 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = err;
#line 111 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp8_->domain == G_IO_ERROR) {
-#line 2628 "BatchImport.c"
+ if (err->domain == G_IO_ERROR) {
+#line 3130 "BatchImport.c"
GError* ioerr = NULL;
- GError* _tmp9_;
- GError* _tmp10_;
- GError* _tmp11_;
+ GError* _tmp6_;
+ GError* _tmp7_;
#line 112 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = err;
+ _tmp6_ = _g_error_copy0 ((GError*) err);
#line 112 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = _g_error_copy0 ((GError*) _tmp9_);
-#line 112 "/home/jens/Source/shotwell/src/BatchImport.vala"
- ioerr = _tmp10_;
+ ioerr = _tmp6_;
#line 114 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp11_ = ioerr;
+ _tmp7_ = ioerr;
#line 114 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (g_error_matches (_tmp11_, G_IO_ERROR, G_IO_ERROR_NO_SPACE)) {
+ if (g_error_matches (_tmp7_, G_IO_ERROR, G_IO_ERROR_NO_SPACE)) {
#line 115 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = IMPORT_RESULT_DISK_FULL;
#line 115 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_error_free0 (ioerr);
#line 115 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 2649 "BatchImport.c"
+#line 3148 "BatchImport.c"
} else {
- GError* _tmp12_;
+ GError* _tmp8_;
#line 116 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp12_ = ioerr;
+ _tmp8_ = ioerr;
#line 116 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (g_error_matches (_tmp12_, G_IO_ERROR, G_IO_ERROR_FAILED)) {
+ if (g_error_matches (_tmp8_, G_IO_ERROR, G_IO_ERROR_FAILED)) {
#line 117 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = IMPORT_RESULT_DISK_FAILURE;
#line 117 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_error_free0 (ioerr);
#line 117 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 2662 "BatchImport.c"
+#line 3161 "BatchImport.c"
} else {
- GError* _tmp13_;
+ GError* _tmp9_;
#line 118 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp13_ = ioerr;
+ _tmp9_ = ioerr;
#line 118 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (g_error_matches (_tmp13_, G_IO_ERROR, G_IO_ERROR_IS_DIRECTORY)) {
+ if (g_error_matches (_tmp9_, G_IO_ERROR, G_IO_ERROR_IS_DIRECTORY)) {
#line 119 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = IMPORT_RESULT_NOT_A_FILE;
#line 119 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_error_free0 (ioerr);
#line 119 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 2675 "BatchImport.c"
+#line 3174 "BatchImport.c"
} else {
- GError* _tmp14_;
+ GError* _tmp10_;
#line 120 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp14_ = ioerr;
+ _tmp10_ = ioerr;
#line 120 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (g_error_matches (_tmp14_, G_IO_ERROR, G_IO_ERROR_CANCELLED)) {
+ if (g_error_matches (_tmp10_, G_IO_ERROR, G_IO_ERROR_CANCELLED)) {
#line 121 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = IMPORT_RESULT_USER_ABORT;
#line 121 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_error_free0 (ioerr);
#line 121 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 2688 "BatchImport.c"
+#line 3187 "BatchImport.c"
} else {
- GError* _tmp15_;
+ GError* _tmp11_;
#line 122 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp15_ = ioerr;
+ _tmp11_ = ioerr;
#line 122 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (g_error_matches (_tmp15_, G_IO_ERROR, G_IO_ERROR_READ_ONLY)) {
+ if (g_error_matches (_tmp11_, G_IO_ERROR, G_IO_ERROR_READ_ONLY)) {
#line 123 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = IMPORT_RESULT_FILE_WRITE_ERROR;
#line 123 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_error_free0 (ioerr);
#line 123 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 2701 "BatchImport.c"
+#line 3200 "BatchImport.c"
} else {
- GError* _tmp16_;
+ GError* _tmp12_;
#line 124 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp16_ = ioerr;
+ _tmp12_ = ioerr;
#line 124 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (g_error_matches (_tmp16_, G_IO_ERROR, G_IO_ERROR_PERMISSION_DENIED)) {
+ if (g_error_matches (_tmp12_, G_IO_ERROR, G_IO_ERROR_PERMISSION_DENIED)) {
#line 125 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = IMPORT_RESULT_FILE_WRITE_ERROR;
#line 125 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_error_free0 (ioerr);
#line 125 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 2714 "BatchImport.c"
+#line 3213 "BatchImport.c"
} else {
#line 127 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = IMPORT_RESULT_FILE_ERROR;
@@ -2718,7 +3217,7 @@ ImportResult import_result_convert_error (GError* err, ImportResult default_resu
_g_error_free0 (ioerr);
#line 127 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 2722 "BatchImport.c"
+#line 3221 "BatchImport.c"
}
}
}
@@ -2727,138 +3226,110 @@ ImportResult import_result_convert_error (GError* err, ImportResult default_resu
}
#line 111 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_error_free0 (ioerr);
-#line 2731 "BatchImport.c"
+#line 3230 "BatchImport.c"
} else {
- GError* _tmp17_;
#line 128 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp17_ = err;
-#line 128 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp17_->domain == GPHOTO_ERROR) {
+ if (err->domain == GPHOTO_ERROR) {
#line 129 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = IMPORT_RESULT_CAMERA_ERROR;
#line 129 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 2742 "BatchImport.c"
+#line 3238 "BatchImport.c"
} else {
- GError* _tmp18_;
-#line 130 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp18_ = err;
#line 130 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp18_->domain == GDK_PIXBUF_ERROR) {
-#line 2749 "BatchImport.c"
+ if (err->domain == GDK_PIXBUF_ERROR) {
+#line 3242 "BatchImport.c"
GError* pixbuferr = NULL;
- GError* _tmp19_;
- GError* _tmp20_;
- GError* _tmp21_;
-#line 131 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp19_ = err;
+ GError* _tmp13_;
+ GError* _tmp14_;
#line 131 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp20_ = _g_error_copy0 ((GError*) _tmp19_);
+ _tmp13_ = _g_error_copy0 ((GError*) err);
#line 131 "/home/jens/Source/shotwell/src/BatchImport.vala"
- pixbuferr = _tmp20_;
+ pixbuferr = _tmp13_;
#line 133 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp21_ = pixbuferr;
+ _tmp14_ = pixbuferr;
#line 133 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (g_error_matches (_tmp21_, GDK_PIXBUF_ERROR, GDK_PIXBUF_ERROR_CORRUPT_IMAGE)) {
+ if (g_error_matches (_tmp14_, GDK_PIXBUF_ERROR, GDK_PIXBUF_ERROR_CORRUPT_IMAGE)) {
#line 134 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = IMPORT_RESULT_PIXBUF_CORRUPT_IMAGE;
#line 134 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_error_free0 (pixbuferr);
#line 134 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 2770 "BatchImport.c"
+#line 3260 "BatchImport.c"
} else {
- GError* _tmp22_;
+ GError* _tmp15_;
#line 135 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp22_ = pixbuferr;
+ _tmp15_ = pixbuferr;
#line 135 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (g_error_matches (_tmp22_, GDK_PIXBUF_ERROR, GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY)) {
-#line 2777 "BatchImport.c"
- ImportResult _tmp23_;
-#line 136 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp23_ = default_result;
+ if (g_error_matches (_tmp15_, GDK_PIXBUF_ERROR, GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY)) {
#line 136 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = _tmp23_;
+ result = default_result;
#line 136 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_error_free0 (pixbuferr);
#line 136 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 2787 "BatchImport.c"
+#line 3273 "BatchImport.c"
} else {
- GError* _tmp24_;
+ GError* _tmp16_;
#line 137 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp24_ = pixbuferr;
+ _tmp16_ = pixbuferr;
#line 137 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (g_error_matches (_tmp24_, GDK_PIXBUF_ERROR, GDK_PIXBUF_ERROR_BAD_OPTION)) {
-#line 2794 "BatchImport.c"
- ImportResult _tmp25_;
+ if (g_error_matches (_tmp16_, GDK_PIXBUF_ERROR, GDK_PIXBUF_ERROR_BAD_OPTION)) {
#line 138 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp25_ = default_result;
-#line 138 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = _tmp25_;
+ result = default_result;
#line 138 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_error_free0 (pixbuferr);
#line 138 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 2804 "BatchImport.c"
+#line 3286 "BatchImport.c"
} else {
- GError* _tmp26_;
+ GError* _tmp17_;
#line 139 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp26_ = pixbuferr;
+ _tmp17_ = pixbuferr;
#line 139 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (g_error_matches (_tmp26_, GDK_PIXBUF_ERROR, GDK_PIXBUF_ERROR_UNKNOWN_TYPE)) {
+ if (g_error_matches (_tmp17_, GDK_PIXBUF_ERROR, GDK_PIXBUF_ERROR_UNKNOWN_TYPE)) {
#line 140 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = IMPORT_RESULT_UNSUPPORTED_FORMAT;
#line 140 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_error_free0 (pixbuferr);
#line 140 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 2817 "BatchImport.c"
+#line 3299 "BatchImport.c"
} else {
- GError* _tmp27_;
+ GError* _tmp18_;
#line 141 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp27_ = pixbuferr;
+ _tmp18_ = pixbuferr;
#line 141 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (g_error_matches (_tmp27_, GDK_PIXBUF_ERROR, GDK_PIXBUF_ERROR_UNSUPPORTED_OPERATION)) {
-#line 2824 "BatchImport.c"
- ImportResult _tmp28_;
-#line 142 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp28_ = default_result;
+ if (g_error_matches (_tmp18_, GDK_PIXBUF_ERROR, GDK_PIXBUF_ERROR_UNSUPPORTED_OPERATION)) {
#line 142 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = _tmp28_;
+ result = default_result;
#line 142 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_error_free0 (pixbuferr);
#line 142 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 2834 "BatchImport.c"
+#line 3312 "BatchImport.c"
} else {
- GError* _tmp29_;
+ GError* _tmp19_;
#line 143 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp29_ = pixbuferr;
+ _tmp19_ = pixbuferr;
#line 143 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (g_error_matches (_tmp29_, GDK_PIXBUF_ERROR, GDK_PIXBUF_ERROR_FAILED)) {
-#line 2841 "BatchImport.c"
- ImportResult _tmp30_;
-#line 144 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp30_ = default_result;
+ if (g_error_matches (_tmp19_, GDK_PIXBUF_ERROR, GDK_PIXBUF_ERROR_FAILED)) {
#line 144 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = _tmp30_;
+ result = default_result;
#line 144 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_error_free0 (pixbuferr);
#line 144 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 2851 "BatchImport.c"
+#line 3325 "BatchImport.c"
} else {
- ImportResult _tmp31_;
-#line 146 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp31_ = default_result;
#line 146 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = _tmp31_;
+ result = default_result;
#line 146 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_error_free0 (pixbuferr);
#line 146 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 2862 "BatchImport.c"
+#line 3333 "BatchImport.c"
}
}
}
@@ -2867,22 +3338,22 @@ ImportResult import_result_convert_error (GError* err, ImportResult default_resu
}
#line 130 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_error_free0 (pixbuferr);
-#line 2871 "BatchImport.c"
+#line 3342 "BatchImport.c"
}
}
}
}
#line 149 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp32_ = default_result;
-#line 149 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = _tmp32_;
+ result = default_result;
#line 149 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 2882 "BatchImport.c"
+#line 3351 "BatchImport.c"
}
-GType import_result_get_type (void) {
+GType
+import_result_get_type (void)
+{
static volatile gsize import_result_type_id__volatile = 0;
if (g_once_init_enter (&import_result_type_id__volatile)) {
static const GEnumValue values[] = {{IMPORT_RESULT_SUCCESS, "IMPORT_RESULT_SUCCESS", "success"}, {IMPORT_RESULT_FILE_ERROR, "IMPORT_RESULT_FILE_ERROR", "file-error"}, {IMPORT_RESULT_DECODE_ERROR, "IMPORT_RESULT_DECODE_ERROR", "decode-error"}, {IMPORT_RESULT_DATABASE_ERROR, "IMPORT_RESULT_DATABASE_ERROR", "database-error"}, {IMPORT_RESULT_USER_ABORT, "IMPORT_RESULT_USER_ABORT", "user-abort"}, {IMPORT_RESULT_NOT_A_FILE, "IMPORT_RESULT_NOT_A_FILE", "not-a-file"}, {IMPORT_RESULT_PHOTO_EXISTS, "IMPORT_RESULT_PHOTO_EXISTS", "photo-exists"}, {IMPORT_RESULT_UNSUPPORTED_FORMAT, "IMPORT_RESULT_UNSUPPORTED_FORMAT", "unsupported-format"}, {IMPORT_RESULT_NOT_AN_IMAGE, "IMPORT_RESULT_NOT_AN_IMAGE", "not-an-image"}, {IMPORT_RESULT_DISK_FAILURE, "IMPORT_RESULT_DISK_FAILURE", "disk-failure"}, {IMPORT_RESULT_DISK_FULL, "IMPORT_RESULT_DISK_FULL", "disk-full"}, {IMPORT_RESULT_CAMERA_ERROR, "IMPORT_RESULT_CAMERA_ERROR", "camera-error"}, {IMPORT_RESULT_FILE_WRITE_ERROR, "IMPORT_RESULT_FILE_WRITE_ERROR", "file-write-error"}, {IMPORT_RESULT_PIXBUF_CORRUPT_IMAGE, "IMPORT_RESULT_PIXBUF_CORRUPT_IMAGE", "pixbuf-corrupt-image"}, {0, NULL, NULL}};
@@ -2894,322 +3365,457 @@ GType import_result_get_type (void) {
}
-static gchar* batch_import_job_real_get_dest_identifier (BatchImportJob* self) {
+static gchar*
+batch_import_job_real_get_dest_identifier (BatchImportJob* self)
+{
#line 161 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_critical ("Type `%s' does not implement abstract method `batch_import_job_get_dest_identifier'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
#line 161 "/home/jens/Source/shotwell/src/BatchImport.vala"
return NULL;
-#line 2903 "BatchImport.c"
+#line 3376 "BatchImport.c"
}
-gchar* batch_import_job_get_dest_identifier (BatchImportJob* self) {
+gchar*
+batch_import_job_get_dest_identifier (BatchImportJob* self)
+{
#line 161 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (IS_BATCH_IMPORT_JOB (self), NULL);
#line 161 "/home/jens/Source/shotwell/src/BatchImport.vala"
return BATCH_IMPORT_JOB_GET_CLASS (self)->get_dest_identifier (self);
-#line 2912 "BatchImport.c"
+#line 3387 "BatchImport.c"
}
-static gchar* batch_import_job_real_get_source_identifier (BatchImportJob* self) {
+static gchar*
+batch_import_job_real_get_source_identifier (BatchImportJob* self)
+{
#line 163 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_critical ("Type `%s' does not implement abstract method `batch_import_job_get_source_identifier'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
#line 163 "/home/jens/Source/shotwell/src/BatchImport.vala"
return NULL;
-#line 2921 "BatchImport.c"
+#line 3398 "BatchImport.c"
}
-gchar* batch_import_job_get_source_identifier (BatchImportJob* self) {
+gchar*
+batch_import_job_get_source_identifier (BatchImportJob* self)
+{
#line 163 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (IS_BATCH_IMPORT_JOB (self), NULL);
#line 163 "/home/jens/Source/shotwell/src/BatchImport.vala"
return BATCH_IMPORT_JOB_GET_CLASS (self)->get_source_identifier (self);
-#line 2930 "BatchImport.c"
+#line 3409 "BatchImport.c"
}
-static gboolean batch_import_job_real_is_directory (BatchImportJob* self) {
+static gboolean
+batch_import_job_real_is_directory (BatchImportJob* self)
+{
gboolean _tmp0_ = FALSE;
#line 165 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_critical ("Type `%s' does not implement abstract method `batch_import_job_is_directory'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
#line 165 "/home/jens/Source/shotwell/src/BatchImport.vala"
return _tmp0_;
-#line 2940 "BatchImport.c"
+#line 3421 "BatchImport.c"
}
-gboolean batch_import_job_is_directory (BatchImportJob* self) {
+gboolean
+batch_import_job_is_directory (BatchImportJob* self)
+{
#line 165 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (IS_BATCH_IMPORT_JOB (self), FALSE);
#line 165 "/home/jens/Source/shotwell/src/BatchImport.vala"
return BATCH_IMPORT_JOB_GET_CLASS (self)->is_directory (self);
-#line 2949 "BatchImport.c"
+#line 3432 "BatchImport.c"
}
-static gchar* batch_import_job_real_get_basename (BatchImportJob* self) {
+static gchar*
+batch_import_job_real_get_basename (BatchImportJob* self)
+{
#line 167 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_critical ("Type `%s' does not implement abstract method `batch_import_job_get_basename'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
#line 167 "/home/jens/Source/shotwell/src/BatchImport.vala"
return NULL;
-#line 2958 "BatchImport.c"
+#line 3443 "BatchImport.c"
}
-gchar* batch_import_job_get_basename (BatchImportJob* self) {
+gchar*
+batch_import_job_get_basename (BatchImportJob* self)
+{
#line 167 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (IS_BATCH_IMPORT_JOB (self), NULL);
#line 167 "/home/jens/Source/shotwell/src/BatchImport.vala"
return BATCH_IMPORT_JOB_GET_CLASS (self)->get_basename (self);
-#line 2967 "BatchImport.c"
+#line 3454 "BatchImport.c"
}
-static gchar* batch_import_job_real_get_path (BatchImportJob* self) {
+static gchar*
+batch_import_job_real_get_path (BatchImportJob* self)
+{
#line 169 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_critical ("Type `%s' does not implement abstract method `batch_import_job_get_path'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
#line 169 "/home/jens/Source/shotwell/src/BatchImport.vala"
return NULL;
-#line 2976 "BatchImport.c"
+#line 3465 "BatchImport.c"
}
-gchar* batch_import_job_get_path (BatchImportJob* self) {
+gchar*
+batch_import_job_get_path (BatchImportJob* self)
+{
#line 169 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (IS_BATCH_IMPORT_JOB (self), NULL);
#line 169 "/home/jens/Source/shotwell/src/BatchImport.vala"
return BATCH_IMPORT_JOB_GET_CLASS (self)->get_path (self);
-#line 2985 "BatchImport.c"
+#line 3476 "BatchImport.c"
}
-static DuplicatedFile* batch_import_job_real_get_duplicated_file (BatchImportJob* self) {
+static DuplicatedFile*
+batch_import_job_real_get_duplicated_file (BatchImportJob* self)
+{
DuplicatedFile* result = NULL;
#line 172 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = NULL;
#line 172 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 2995 "BatchImport.c"
+#line 3488 "BatchImport.c"
}
-DuplicatedFile* batch_import_job_get_duplicated_file (BatchImportJob* self) {
+DuplicatedFile*
+batch_import_job_get_duplicated_file (BatchImportJob* self)
+{
#line 171 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (IS_BATCH_IMPORT_JOB (self), NULL);
#line 171 "/home/jens/Source/shotwell/src/BatchImport.vala"
return BATCH_IMPORT_JOB_GET_CLASS (self)->get_duplicated_file (self);
-#line 3004 "BatchImport.c"
+#line 3499 "BatchImport.c"
}
-static void batch_import_job_real_set_associated (BatchImportJob* self, BatchImportJob* associated) {
+static GFile*
+batch_import_job_real_get_associated_file (BatchImportJob* self)
+{
+ GFile* result = NULL;
#line 176 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_critical ("Type `%s' does not implement abstract method `batch_import_job_set_associated'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
+ result = NULL;
#line 176 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ return result;
+#line 3511 "BatchImport.c"
+}
+
+
+GFile*
+batch_import_job_get_associated_file (BatchImportJob* self)
+{
+#line 175 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ g_return_val_if_fail (IS_BATCH_IMPORT_JOB (self), NULL);
+#line 175 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ return BATCH_IMPORT_JOB_GET_CLASS (self)->get_associated_file (self);
+#line 3522 "BatchImport.c"
+}
+
+
+static void
+batch_import_job_real_set_associated (BatchImportJob* self,
+ BatchImportJob* associated)
+{
+#line 180 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ g_critical ("Type `%s' does not implement abstract method `batch_import_job_set_associated'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
+#line 180 "/home/jens/Source/shotwell/src/BatchImport.vala"
return;
-#line 3013 "BatchImport.c"
+#line 3534 "BatchImport.c"
}
-void batch_import_job_set_associated (BatchImportJob* self, BatchImportJob* associated) {
-#line 176 "/home/jens/Source/shotwell/src/BatchImport.vala"
+void
+batch_import_job_set_associated (BatchImportJob* self,
+ BatchImportJob* associated)
+{
+#line 180 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (IS_BATCH_IMPORT_JOB (self));
-#line 176 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 180 "/home/jens/Source/shotwell/src/BatchImport.vala"
BATCH_IMPORT_JOB_GET_CLASS (self)->set_associated (self, associated);
-#line 3022 "BatchImport.c"
+#line 3546 "BatchImport.c"
}
-static gboolean batch_import_job_real_determine_file_size (BatchImportJob* self, guint64* filesize, GFile* * file_or_dir) {
+static gboolean
+batch_import_job_real_determine_file_size (BatchImportJob* self,
+ guint64* filesize,
+ GFile* * file_or_dir)
+{
gboolean _tmp0_ = FALSE;
-#line 183 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 187 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_critical ("Type `%s' does not implement abstract method `batch_import_job_determine_file_size'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 183 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 187 "/home/jens/Source/shotwell/src/BatchImport.vala"
return _tmp0_;
-#line 3032 "BatchImport.c"
+#line 3560 "BatchImport.c"
}
-gboolean batch_import_job_determine_file_size (BatchImportJob* self, guint64* filesize, GFile* * file_or_dir) {
-#line 183 "/home/jens/Source/shotwell/src/BatchImport.vala"
+gboolean
+batch_import_job_determine_file_size (BatchImportJob* self,
+ guint64* filesize,
+ GFile* * file_or_dir)
+{
+#line 187 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (IS_BATCH_IMPORT_JOB (self), FALSE);
-#line 183 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 187 "/home/jens/Source/shotwell/src/BatchImport.vala"
return BATCH_IMPORT_JOB_GET_CLASS (self)->determine_file_size (self, filesize, file_or_dir);
-#line 3041 "BatchImport.c"
+#line 3573 "BatchImport.c"
}
-static gboolean batch_import_job_real_prepare (BatchImportJob* self, GFile* * file_to_import, gboolean* copy_to_library, GError** error) {
+static gboolean
+batch_import_job_real_prepare (BatchImportJob* self,
+ GFile* * file_to_import,
+ gboolean* copy_to_library,
+ GError** error)
+{
gboolean _tmp0_ = FALSE;
-#line 186 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 190 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_critical ("Type `%s' does not implement abstract method `batch_import_job_prepare'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
-#line 186 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 190 "/home/jens/Source/shotwell/src/BatchImport.vala"
return _tmp0_;
-#line 3051 "BatchImport.c"
+#line 3588 "BatchImport.c"
}
-gboolean batch_import_job_prepare (BatchImportJob* self, GFile* * file_to_import, gboolean* copy_to_library, GError** error) {
-#line 186 "/home/jens/Source/shotwell/src/BatchImport.vala"
+gboolean
+batch_import_job_prepare (BatchImportJob* self,
+ GFile* * file_to_import,
+ gboolean* copy_to_library,
+ GError** error)
+{
+#line 190 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (IS_BATCH_IMPORT_JOB (self), FALSE);
-#line 186 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 190 "/home/jens/Source/shotwell/src/BatchImport.vala"
return BATCH_IMPORT_JOB_GET_CLASS (self)->prepare (self, file_to_import, copy_to_library, error);
-#line 3060 "BatchImport.c"
+#line 3602 "BatchImport.c"
}
-static gboolean batch_import_job_real_complete (BatchImportJob* self, MediaSource* source, BatchImportRoll* import_roll, GError** error) {
+static gboolean
+batch_import_job_real_complete (BatchImportJob* self,
+ MediaSource* source,
+ BatchImportRoll* import_roll,
+ GError** error)
+{
gboolean result = FALSE;
-#line 196 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 200 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (IS_MEDIA_SOURCE (source), FALSE);
-#line 196 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 200 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (IS_BATCH_IMPORT_ROLL (import_roll), FALSE);
-#line 197 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 201 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = FALSE;
-#line 197 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 201 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 3074 "BatchImport.c"
+#line 3621 "BatchImport.c"
}
-gboolean batch_import_job_complete (BatchImportJob* self, MediaSource* source, BatchImportRoll* import_roll, GError** error) {
-#line 196 "/home/jens/Source/shotwell/src/BatchImport.vala"
+gboolean
+batch_import_job_complete (BatchImportJob* self,
+ MediaSource* source,
+ BatchImportRoll* import_roll,
+ GError** error)
+{
+#line 200 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (IS_BATCH_IMPORT_JOB (self), FALSE);
-#line 196 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 200 "/home/jens/Source/shotwell/src/BatchImport.vala"
return BATCH_IMPORT_JOB_GET_CLASS (self)->complete (self, source, import_roll, error);
-#line 3083 "BatchImport.c"
+#line 3635 "BatchImport.c"
}
-static time_t batch_import_job_real_get_exposure_time_override (BatchImportJob* self) {
+static time_t
+batch_import_job_real_get_exposure_time_override (BatchImportJob* self)
+{
time_t result = 0;
-#line 203 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 207 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = (time_t) 0;
-#line 203 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 207 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 3093 "BatchImport.c"
+#line 3647 "BatchImport.c"
}
-time_t batch_import_job_get_exposure_time_override (BatchImportJob* self) {
-#line 202 "/home/jens/Source/shotwell/src/BatchImport.vala"
+time_t
+batch_import_job_get_exposure_time_override (BatchImportJob* self)
+{
+#line 206 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (IS_BATCH_IMPORT_JOB (self), 0);
-#line 202 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 206 "/home/jens/Source/shotwell/src/BatchImport.vala"
return BATCH_IMPORT_JOB_GET_CLASS (self)->get_exposure_time_override (self);
-#line 3102 "BatchImport.c"
+#line 3658 "BatchImport.c"
}
-BatchImportJob* batch_import_job_construct (GType object_type) {
+static gboolean
+batch_import_job_real_recurse (BatchImportJob* self)
+{
+ gboolean result = FALSE;
+#line 211 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ result = TRUE;
+#line 211 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ return result;
+#line 3670 "BatchImport.c"
+}
+
+
+gboolean
+batch_import_job_recurse (BatchImportJob* self)
+{
+#line 210 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ g_return_val_if_fail (IS_BATCH_IMPORT_JOB (self), FALSE);
+#line 210 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ return BATCH_IMPORT_JOB_GET_CLASS (self)->recurse (self);
+#line 3681 "BatchImport.c"
+}
+
+
+BatchImportJob*
+batch_import_job_construct (GType object_type)
+{
BatchImportJob* self = NULL;
#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
self = (BatchImportJob*) g_type_create_instance (object_type);
#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
return self;
-#line 3112 "BatchImport.c"
+#line 3693 "BatchImport.c"
}
-static void value_batch_import_job_init (GValue* value) {
+static void
+value_batch_import_job_init (GValue* value)
+{
#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
value->data[0].v_pointer = NULL;
-#line 3119 "BatchImport.c"
+#line 3702 "BatchImport.c"
}
-static void value_batch_import_job_free_value (GValue* value) {
+static void
+value_batch_import_job_free_value (GValue* value)
+{
#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (value->data[0].v_pointer) {
#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_job_unref (value->data[0].v_pointer);
-#line 3128 "BatchImport.c"
+#line 3713 "BatchImport.c"
}
}
-static void value_batch_import_job_copy_value (const GValue* src_value, GValue* dest_value) {
+static void
+value_batch_import_job_copy_value (const GValue* src_value,
+ GValue* dest_value)
+{
#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (src_value->data[0].v_pointer) {
#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
dest_value->data[0].v_pointer = batch_import_job_ref (src_value->data[0].v_pointer);
-#line 3138 "BatchImport.c"
+#line 3726 "BatchImport.c"
} else {
#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
dest_value->data[0].v_pointer = NULL;
-#line 3142 "BatchImport.c"
+#line 3730 "BatchImport.c"
}
}
-static gpointer value_batch_import_job_peek_pointer (const GValue* value) {
+static gpointer
+value_batch_import_job_peek_pointer (const GValue* value)
+{
#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
return value->data[0].v_pointer;
-#line 3150 "BatchImport.c"
+#line 3740 "BatchImport.c"
}
-static gchar* value_batch_import_job_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+static gchar*
+value_batch_import_job_collect_value (GValue* value,
+ guint n_collect_values,
+ GTypeCValue* collect_values,
+ guint collect_flags)
+{
#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (collect_values[0].v_pointer) {
-#line 3157 "BatchImport.c"
+#line 3752 "BatchImport.c"
BatchImportJob * object;
object = collect_values[0].v_pointer;
#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (object->parent_instance.g_class == NULL) {
#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 3164 "BatchImport.c"
+#line 3759 "BatchImport.c"
} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 3168 "BatchImport.c"
+#line 3763 "BatchImport.c"
}
#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
value->data[0].v_pointer = batch_import_job_ref (object);
-#line 3172 "BatchImport.c"
+#line 3767 "BatchImport.c"
} else {
#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
value->data[0].v_pointer = NULL;
-#line 3176 "BatchImport.c"
+#line 3771 "BatchImport.c"
}
#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
return NULL;
-#line 3180 "BatchImport.c"
+#line 3775 "BatchImport.c"
}
-static gchar* value_batch_import_job_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+static gchar*
+value_batch_import_job_lcopy_value (const GValue* value,
+ guint n_collect_values,
+ GTypeCValue* collect_values,
+ guint collect_flags)
+{
BatchImportJob ** object_p;
object_p = collect_values[0].v_pointer;
#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (!object_p) {
#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 3191 "BatchImport.c"
+#line 3791 "BatchImport.c"
}
#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (!value->data[0].v_pointer) {
#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
*object_p = NULL;
-#line 3197 "BatchImport.c"
+#line 3797 "BatchImport.c"
} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
*object_p = value->data[0].v_pointer;
-#line 3201 "BatchImport.c"
+#line 3801 "BatchImport.c"
} else {
#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
*object_p = batch_import_job_ref (value->data[0].v_pointer);
-#line 3205 "BatchImport.c"
+#line 3805 "BatchImport.c"
}
#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
return NULL;
-#line 3209 "BatchImport.c"
+#line 3809 "BatchImport.c"
}
-GParamSpec* param_spec_batch_import_job (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+GParamSpec*
+param_spec_batch_import_job (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags)
+{
ParamSpecBatchImportJob* spec;
#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (g_type_is_a (object_type, TYPE_BATCH_IMPORT_JOB), NULL);
@@ -3219,20 +3825,25 @@ GParamSpec* param_spec_batch_import_job (const gchar* name, const gchar* nick, c
G_PARAM_SPEC (spec)->value_type = object_type;
#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
return G_PARAM_SPEC (spec);
-#line 3223 "BatchImport.c"
+#line 3829 "BatchImport.c"
}
-gpointer value_get_batch_import_job (const GValue* value) {
+gpointer
+value_get_batch_import_job (const GValue* value)
+{
#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_BATCH_IMPORT_JOB), NULL);
#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
return value->data[0].v_pointer;
-#line 3232 "BatchImport.c"
+#line 3840 "BatchImport.c"
}
-void value_set_batch_import_job (GValue* value, gpointer v_object) {
+void
+value_set_batch_import_job (GValue* value,
+ gpointer v_object)
+{
BatchImportJob * old;
#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_BATCH_IMPORT_JOB));
@@ -3248,22 +3859,25 @@ void value_set_batch_import_job (GValue* value, gpointer v_object) {
value->data[0].v_pointer = v_object;
#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_job_ref (value->data[0].v_pointer);
-#line 3252 "BatchImport.c"
+#line 3863 "BatchImport.c"
} else {
#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
value->data[0].v_pointer = NULL;
-#line 3256 "BatchImport.c"
+#line 3867 "BatchImport.c"
}
#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (old) {
#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_job_unref (old);
-#line 3262 "BatchImport.c"
+#line 3873 "BatchImport.c"
}
}
-void value_take_batch_import_job (GValue* value, gpointer v_object) {
+void
+value_take_batch_import_job (GValue* value,
+ gpointer v_object)
+{
BatchImportJob * old;
#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_BATCH_IMPORT_JOB));
@@ -3277,22 +3891,24 @@ void value_take_batch_import_job (GValue* value, gpointer v_object) {
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
value->data[0].v_pointer = v_object;
-#line 3281 "BatchImport.c"
+#line 3895 "BatchImport.c"
} else {
#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
value->data[0].v_pointer = NULL;
-#line 3285 "BatchImport.c"
+#line 3899 "BatchImport.c"
}
#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (old) {
#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_job_unref (old);
-#line 3291 "BatchImport.c"
+#line 3905 "BatchImport.c"
}
}
-static void batch_import_job_class_init (BatchImportJobClass * klass) {
+static void
+batch_import_job_class_init (BatchImportJobClass * klass)
+{
#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_job_parent_class = g_type_class_peek_parent (klass);
#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
@@ -3310,6 +3926,8 @@ static void batch_import_job_class_init (BatchImportJobClass * klass) {
#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
((BatchImportJobClass *) klass)->get_duplicated_file = (DuplicatedFile* (*) (BatchImportJob *)) batch_import_job_real_get_duplicated_file;
#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ ((BatchImportJobClass *) klass)->get_associated_file = (GFile* (*) (BatchImportJob *)) batch_import_job_real_get_associated_file;
+#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
((BatchImportJobClass *) klass)->set_associated = (void (*) (BatchImportJob *, BatchImportJob*)) batch_import_job_real_set_associated;
#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
((BatchImportJobClass *) klass)->determine_file_size = (gboolean (*) (BatchImportJob *, guint64*, GFile* *)) batch_import_job_real_determine_file_size;
@@ -3319,28 +3937,36 @@ static void batch_import_job_class_init (BatchImportJobClass * klass) {
((BatchImportJobClass *) klass)->complete = (gboolean (*) (BatchImportJob *, MediaSource*, BatchImportRoll*, GError**)) batch_import_job_real_complete;
#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
((BatchImportJobClass *) klass)->get_exposure_time_override = (time_t (*) (BatchImportJob *)) batch_import_job_real_get_exposure_time_override;
-#line 3323 "BatchImport.c"
+#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ ((BatchImportJobClass *) klass)->recurse = (gboolean (*) (BatchImportJob *)) batch_import_job_real_recurse;
+#line 3943 "BatchImport.c"
}
-static void batch_import_job_instance_init (BatchImportJob * self) {
+static void
+batch_import_job_instance_init (BatchImportJob * self)
+{
#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->ref_count = 1;
-#line 3330 "BatchImport.c"
+#line 3952 "BatchImport.c"
}
-static void batch_import_job_finalize (BatchImportJob * obj) {
+static void
+batch_import_job_finalize (BatchImportJob * obj)
+{
BatchImportJob * self;
#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_BATCH_IMPORT_JOB, BatchImportJob);
#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_signal_handlers_destroy (self);
-#line 3340 "BatchImport.c"
+#line 3964 "BatchImport.c"
}
-GType batch_import_job_get_type (void) {
+GType
+batch_import_job_get_type (void)
+{
static volatile gsize batch_import_job_type_id__volatile = 0;
if (g_once_init_enter (&batch_import_job_type_id__volatile)) {
static const GTypeValueTable g_define_type_value_table = { value_batch_import_job_init, value_batch_import_job_free_value, value_batch_import_job_copy_value, value_batch_import_job_peek_pointer, "p", value_batch_import_job_collect_value, "p", value_batch_import_job_lcopy_value };
@@ -3354,18 +3980,22 @@ GType batch_import_job_get_type (void) {
}
-gpointer batch_import_job_ref (gpointer instance) {
+gpointer
+batch_import_job_ref (gpointer instance)
+{
BatchImportJob * self;
self = instance;
#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_atomic_int_inc (&self->ref_count);
#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
return instance;
-#line 3365 "BatchImport.c"
+#line 3993 "BatchImport.c"
}
-void batch_import_job_unref (gpointer instance) {
+void
+batch_import_job_unref (gpointer instance)
+{
BatchImportJob * self;
self = instance;
#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
@@ -3374,251 +4004,273 @@ void batch_import_job_unref (gpointer instance) {
BATCH_IMPORT_JOB_GET_CLASS (self)->finalize (self);
#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_type_free_instance ((GTypeInstance *) self);
-#line 3378 "BatchImport.c"
+#line 4008 "BatchImport.c"
}
}
-static gpointer _g_object_ref0 (gpointer self) {
-#line 213 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static gpointer
+_g_object_ref0 (gpointer self)
+{
+#line 222 "/home/jens/Source/shotwell/src/BatchImport.vala"
return self ? g_object_ref (self) : NULL;
-#line 3386 "BatchImport.c"
+#line 4018 "BatchImport.c"
}
-FileImportJob* file_import_job_construct (GType object_type, GFile* file_or_dir, gboolean copy_to_library) {
+FileImportJob*
+file_import_job_construct (GType object_type,
+ GFile* file_or_dir,
+ gboolean copy_to_library,
+ gboolean recurse)
+{
FileImportJob* self = NULL;
GFile* _tmp0_;
- GFile* _tmp1_;
- gboolean _tmp2_;
-#line 212 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 221 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (G_IS_FILE (file_or_dir), NULL);
-#line 212 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 221 "/home/jens/Source/shotwell/src/BatchImport.vala"
self = (FileImportJob*) batch_import_job_construct (object_type);
-#line 213 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = file_or_dir;
-#line 213 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 213 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 222 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp0_ = _g_object_ref0 (file_or_dir);
+#line 222 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (self->priv->file_or_dir);
-#line 213 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->file_or_dir = _tmp1_;
-#line 214 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = copy_to_library;
-#line 214 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->copy_to_library = _tmp2_;
-#line 212 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 222 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->priv->file_or_dir = _tmp0_;
+#line 223 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->priv->copy_to_library = copy_to_library;
+#line 224 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->priv->_recurse = recurse;
+#line 221 "/home/jens/Source/shotwell/src/BatchImport.vala"
return self;
-#line 3413 "BatchImport.c"
+#line 4046 "BatchImport.c"
}
-FileImportJob* file_import_job_new (GFile* file_or_dir, gboolean copy_to_library) {
-#line 212 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return file_import_job_construct (TYPE_FILE_IMPORT_JOB, file_or_dir, copy_to_library);
-#line 3420 "BatchImport.c"
+FileImportJob*
+file_import_job_new (GFile* file_or_dir,
+ gboolean copy_to_library,
+ gboolean recurse)
+{
+#line 221 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ return file_import_job_construct (TYPE_FILE_IMPORT_JOB, file_or_dir, copy_to_library, recurse);
+#line 4057 "BatchImport.c"
}
-static gchar* file_import_job_real_get_dest_identifier (BatchImportJob* base) {
+static gchar*
+file_import_job_real_get_dest_identifier (BatchImportJob* base)
+{
FileImportJob * self;
gchar* result = NULL;
GFile* _tmp0_;
gchar* _tmp1_;
-#line 217 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 227 "/home/jens/Source/shotwell/src/BatchImport.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FILE_IMPORT_JOB, FileImportJob);
-#line 218 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 228 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp0_ = self->priv->file_or_dir;
-#line 218 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 228 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp1_ = g_file_get_path (_tmp0_);
-#line 218 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 228 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = _tmp1_;
-#line 218 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 228 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 3439 "BatchImport.c"
+#line 4078 "BatchImport.c"
}
-static gchar* file_import_job_real_get_source_identifier (BatchImportJob* base) {
+static gchar*
+file_import_job_real_get_source_identifier (BatchImportJob* base)
+{
FileImportJob * self;
gchar* result = NULL;
GFile* _tmp0_;
gchar* _tmp1_;
-#line 221 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 231 "/home/jens/Source/shotwell/src/BatchImport.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FILE_IMPORT_JOB, FileImportJob);
-#line 222 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 232 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp0_ = self->priv->file_or_dir;
-#line 222 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 232 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp1_ = g_file_get_path (_tmp0_);
-#line 222 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 232 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = _tmp1_;
-#line 222 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 232 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 3458 "BatchImport.c"
+#line 4099 "BatchImport.c"
}
-static gboolean file_import_job_real_is_directory (BatchImportJob* base) {
+static gboolean
+file_import_job_real_is_directory (BatchImportJob* base)
+{
FileImportJob * self;
gboolean result = FALSE;
GFile* _tmp0_;
- gboolean _tmp1_;
-#line 225 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 235 "/home/jens/Source/shotwell/src/BatchImport.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FILE_IMPORT_JOB, FileImportJob);
-#line 226 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 236 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp0_ = self->priv->file_or_dir;
-#line 226 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = query_is_directory (_tmp0_);
-#line 226 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = _tmp1_;
-#line 226 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 236 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ result = query_is_directory (_tmp0_);
+#line 236 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 3477 "BatchImport.c"
+#line 4117 "BatchImport.c"
}
-static gchar* file_import_job_real_get_basename (BatchImportJob* base) {
+static gchar*
+file_import_job_real_get_basename (BatchImportJob* base)
+{
FileImportJob * self;
gchar* result = NULL;
GFile* _tmp0_;
gchar* _tmp1_;
-#line 229 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 239 "/home/jens/Source/shotwell/src/BatchImport.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FILE_IMPORT_JOB, FileImportJob);
-#line 230 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 240 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp0_ = self->priv->file_or_dir;
-#line 230 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 240 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp1_ = g_file_get_basename (_tmp0_);
-#line 230 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 240 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = _tmp1_;
-#line 230 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 240 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 3496 "BatchImport.c"
+#line 4138 "BatchImport.c"
}
-static gchar* file_import_job_real_get_path (BatchImportJob* base) {
+static gchar*
+file_import_job_real_get_path (BatchImportJob* base)
+{
FileImportJob * self;
gchar* result = NULL;
gchar* _tmp0_ = NULL;
- gboolean _tmp1_;
-#line 233 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 243 "/home/jens/Source/shotwell/src/BatchImport.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FILE_IMPORT_JOB, FileImportJob);
-#line 234 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = batch_import_job_is_directory (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BATCH_IMPORT_JOB, BatchImportJob));
-#line 234 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp1_) {
-#line 3511 "BatchImport.c"
- GFile* _tmp2_;
- gchar* _tmp3_;
-#line 234 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = self->priv->file_or_dir;
-#line 234 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = g_file_get_path (_tmp2_);
-#line 234 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 244 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (batch_import_job_is_directory (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BATCH_IMPORT_JOB, BatchImportJob))) {
+#line 4152 "BatchImport.c"
+ GFile* _tmp1_;
+ gchar* _tmp2_;
+#line 244 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp1_ = self->priv->file_or_dir;
+#line 244 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp2_ = g_file_get_path (_tmp1_);
+#line 244 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (_tmp0_);
-#line 234 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = _tmp3_;
-#line 3522 "BatchImport.c"
+#line 244 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp0_ = _tmp2_;
+#line 4163 "BatchImport.c"
} else {
+ GFile* _tmp3_;
GFile* _tmp4_;
GFile* _tmp5_;
- GFile* _tmp6_;
- gchar* _tmp7_;
-#line 234 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = self->priv->file_or_dir;
-#line 234 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = g_file_get_parent (_tmp4_);
-#line 234 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = _tmp5_;
-#line 234 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = g_file_get_path (_tmp6_);
-#line 234 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ gchar* _tmp6_;
+#line 244 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp3_ = self->priv->file_or_dir;
+#line 244 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp4_ = g_file_get_parent (_tmp3_);
+#line 244 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp5_ = _tmp4_;
+#line 244 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp6_ = g_file_get_path (_tmp5_);
+#line 244 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (_tmp0_);
-#line 234 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = _tmp7_;
-#line 234 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_tmp6_);
-#line 3542 "BatchImport.c"
+#line 244 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp0_ = _tmp6_;
+#line 244 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_object_unref0 (_tmp5_);
+#line 4183 "BatchImport.c"
}
-#line 234 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 244 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = _tmp0_;
-#line 234 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 244 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 3548 "BatchImport.c"
+#line 4189 "BatchImport.c"
}
-static gpointer _batch_import_job_ref0 (gpointer self) {
-#line 238 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static gpointer
+_batch_import_job_ref0 (gpointer self)
+{
+#line 248 "/home/jens/Source/shotwell/src/BatchImport.vala"
return self ? batch_import_job_ref (self) : NULL;
-#line 3555 "BatchImport.c"
+#line 4198 "BatchImport.c"
}
-static void file_import_job_real_set_associated (BatchImportJob* base, BatchImportJob* associated) {
+static void
+file_import_job_real_set_associated (BatchImportJob* base,
+ BatchImportJob* associated)
+{
FileImportJob * self;
- BatchImportJob* _tmp0_;
- FileImportJob* _tmp1_;
-#line 237 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ FileImportJob* _tmp0_;
+#line 247 "/home/jens/Source/shotwell/src/BatchImport.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FILE_IMPORT_JOB, FileImportJob);
-#line 237 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 247 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (IS_BATCH_IMPORT_JOB (associated));
-#line 238 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = associated;
-#line 238 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = _batch_import_job_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_FILE_IMPORT_JOB) ? ((FileImportJob*) _tmp0_) : NULL);
-#line 238 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 248 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp0_ = _batch_import_job_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (associated, TYPE_FILE_IMPORT_JOB) ? ((FileImportJob*) associated) : NULL);
+#line 248 "/home/jens/Source/shotwell/src/BatchImport.vala"
_batch_import_job_unref0 (self->priv->associated);
-#line 238 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->associated = _tmp1_;
-#line 3575 "BatchImport.c"
+#line 248 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->priv->associated = _tmp0_;
+#line 4218 "BatchImport.c"
}
-static gboolean file_import_job_real_determine_file_size (BatchImportJob* base, guint64* filesize, GFile* * file) {
+static gboolean
+file_import_job_real_determine_file_size (BatchImportJob* base,
+ guint64* filesize,
+ GFile* * file)
+{
FileImportJob * self;
guint64 _vala_filesize = 0ULL;
GFile* _vala_file = NULL;
gboolean result = FALSE;
GFile* _tmp0_;
GFile* _tmp1_;
-#line 241 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 251 "/home/jens/Source/shotwell/src/BatchImport.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FILE_IMPORT_JOB, FileImportJob);
-#line 242 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 252 "/home/jens/Source/shotwell/src/BatchImport.vala"
_vala_filesize = (guint64) 0;
-#line 243 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 253 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp0_ = self->priv->file_or_dir;
-#line 243 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 253 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp1_ = _g_object_ref0 (_tmp0_);
-#line 243 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 253 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (_vala_file);
-#line 243 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 253 "/home/jens/Source/shotwell/src/BatchImport.vala"
_vala_file = _tmp1_;
-#line 245 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 255 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = FALSE;
-#line 245 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 255 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (filesize) {
-#line 245 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 255 "/home/jens/Source/shotwell/src/BatchImport.vala"
*filesize = _vala_filesize;
-#line 3604 "BatchImport.c"
+#line 4251 "BatchImport.c"
}
-#line 245 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 255 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (file) {
-#line 245 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 255 "/home/jens/Source/shotwell/src/BatchImport.vala"
*file = _vala_file;
-#line 3610 "BatchImport.c"
+#line 4257 "BatchImport.c"
} else {
-#line 245 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 255 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (_vala_file);
-#line 3614 "BatchImport.c"
+#line 4261 "BatchImport.c"
}
-#line 245 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 255 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 3618 "BatchImport.c"
+#line 4265 "BatchImport.c"
}
-static gboolean file_import_job_real_prepare (BatchImportJob* base, GFile* * file_to_import, gboolean* copy, GError** error) {
+static gboolean
+file_import_job_real_prepare (BatchImportJob* base,
+ GFile* * file_to_import,
+ gboolean* copy,
+ GError** error)
+{
FileImportJob * self;
GFile* _vala_file_to_import = NULL;
gboolean _vala_copy = FALSE;
@@ -3626,113 +4278,143 @@ static gboolean file_import_job_real_prepare (BatchImportJob* base, GFile* * fil
GFile* _tmp0_;
GFile* _tmp1_;
gboolean _tmp2_;
-#line 248 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 258 "/home/jens/Source/shotwell/src/BatchImport.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FILE_IMPORT_JOB, FileImportJob);
-#line 249 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 259 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp0_ = self->priv->file_or_dir;
-#line 249 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 259 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp1_ = _g_object_ref0 (_tmp0_);
-#line 249 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 259 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (_vala_file_to_import);
-#line 249 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 259 "/home/jens/Source/shotwell/src/BatchImport.vala"
_vala_file_to_import = _tmp1_;
-#line 250 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 260 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp2_ = self->priv->copy_to_library;
-#line 250 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 260 "/home/jens/Source/shotwell/src/BatchImport.vala"
_vala_copy = _tmp2_;
-#line 252 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 262 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = TRUE;
-#line 252 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 262 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (file_to_import) {
-#line 252 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 262 "/home/jens/Source/shotwell/src/BatchImport.vala"
*file_to_import = _vala_file_to_import;
-#line 3650 "BatchImport.c"
+#line 4302 "BatchImport.c"
} else {
-#line 252 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 262 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (_vala_file_to_import);
-#line 3654 "BatchImport.c"
+#line 4306 "BatchImport.c"
}
-#line 252 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 262 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (copy) {
-#line 252 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 262 "/home/jens/Source/shotwell/src/BatchImport.vala"
*copy = _vala_copy;
-#line 3660 "BatchImport.c"
+#line 4312 "BatchImport.c"
}
-#line 252 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 262 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 3664 "BatchImport.c"
+#line 4316 "BatchImport.c"
}
-GFile* file_import_job_get_file (FileImportJob* self) {
+GFile*
+file_import_job_get_file (FileImportJob* self)
+{
GFile* result = NULL;
GFile* _tmp0_;
GFile* _tmp1_;
-#line 255 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 265 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (IS_FILE_IMPORT_JOB (self), NULL);
-#line 256 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 266 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp0_ = self->priv->file_or_dir;
-#line 256 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 266 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp1_ = _g_object_ref0 (_tmp0_);
-#line 256 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 266 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = _tmp1_;
-#line 256 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 266 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 3682 "BatchImport.c"
+#line 4336 "BatchImport.c"
}
-static void file_import_job_class_init (FileImportJobClass * klass) {
-#line 207 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static gboolean
+file_import_job_real_recurse (BatchImportJob* base)
+{
+ FileImportJob * self;
+ gboolean result = FALSE;
+ gboolean _tmp0_;
+#line 269 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FILE_IMPORT_JOB, FileImportJob);
+#line 270 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp0_ = self->priv->_recurse;
+#line 270 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ result = _tmp0_;
+#line 270 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ return result;
+#line 4354 "BatchImport.c"
+}
+
+
+static void
+file_import_job_class_init (FileImportJobClass * klass)
+{
+#line 215 "/home/jens/Source/shotwell/src/BatchImport.vala"
file_import_job_parent_class = g_type_class_peek_parent (klass);
-#line 207 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 215 "/home/jens/Source/shotwell/src/BatchImport.vala"
((BatchImportJobClass *) klass)->finalize = file_import_job_finalize;
-#line 207 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 215 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_type_class_add_private (klass, sizeof (FileImportJobPrivate));
-#line 207 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 215 "/home/jens/Source/shotwell/src/BatchImport.vala"
((BatchImportJobClass *) klass)->get_dest_identifier = (gchar* (*) (BatchImportJob *)) file_import_job_real_get_dest_identifier;
-#line 207 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 215 "/home/jens/Source/shotwell/src/BatchImport.vala"
((BatchImportJobClass *) klass)->get_source_identifier = (gchar* (*) (BatchImportJob *)) file_import_job_real_get_source_identifier;
-#line 207 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 215 "/home/jens/Source/shotwell/src/BatchImport.vala"
((BatchImportJobClass *) klass)->is_directory = (gboolean (*) (BatchImportJob *)) file_import_job_real_is_directory;
-#line 207 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 215 "/home/jens/Source/shotwell/src/BatchImport.vala"
((BatchImportJobClass *) klass)->get_basename = (gchar* (*) (BatchImportJob *)) file_import_job_real_get_basename;
-#line 207 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 215 "/home/jens/Source/shotwell/src/BatchImport.vala"
((BatchImportJobClass *) klass)->get_path = (gchar* (*) (BatchImportJob *)) file_import_job_real_get_path;
-#line 207 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 215 "/home/jens/Source/shotwell/src/BatchImport.vala"
((BatchImportJobClass *) klass)->set_associated = (void (*) (BatchImportJob *, BatchImportJob*)) file_import_job_real_set_associated;
-#line 207 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 215 "/home/jens/Source/shotwell/src/BatchImport.vala"
((BatchImportJobClass *) klass)->determine_file_size = (gboolean (*) (BatchImportJob *, guint64*, GFile* *)) file_import_job_real_determine_file_size;
-#line 207 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 215 "/home/jens/Source/shotwell/src/BatchImport.vala"
((BatchImportJobClass *) klass)->prepare = (gboolean (*) (BatchImportJob *, GFile* *, gboolean*, GError**)) file_import_job_real_prepare;
-#line 3709 "BatchImport.c"
+#line 215 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ ((BatchImportJobClass *) klass)->recurse = (gboolean (*) (BatchImportJob *)) file_import_job_real_recurse;
+#line 4385 "BatchImport.c"
}
-static void file_import_job_instance_init (FileImportJob * self) {
-#line 207 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static void
+file_import_job_instance_init (FileImportJob * self)
+{
+#line 215 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->priv = FILE_IMPORT_JOB_GET_PRIVATE (self);
-#line 210 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 218 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->priv->associated = NULL;
-#line 3718 "BatchImport.c"
+#line 4396 "BatchImport.c"
}
-static void file_import_job_finalize (BatchImportJob * obj) {
+static void
+file_import_job_finalize (BatchImportJob * obj)
+{
FileImportJob * self;
-#line 207 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 215 "/home/jens/Source/shotwell/src/BatchImport.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_FILE_IMPORT_JOB, FileImportJob);
-#line 208 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 216 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (self->priv->file_or_dir);
-#line 210 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 218 "/home/jens/Source/shotwell/src/BatchImport.vala"
_batch_import_job_unref0 (self->priv->associated);
-#line 207 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 215 "/home/jens/Source/shotwell/src/BatchImport.vala"
BATCH_IMPORT_JOB_CLASS (file_import_job_parent_class)->finalize (obj);
-#line 3732 "BatchImport.c"
+#line 4412 "BatchImport.c"
}
-GType file_import_job_get_type (void) {
+GType
+file_import_job_get_type (void)
+{
static volatile gsize file_import_job_type_id__volatile = 0;
if (g_once_init_enter (&file_import_job_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (FileImportJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) file_import_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (FileImportJob), 0, (GInstanceInitFunc) file_import_job_instance_init, NULL };
@@ -3744,242 +4426,287 @@ GType file_import_job_get_type (void) {
}
-BatchImportRoll* batch_import_roll_construct (GType object_type) {
+BatchImportRoll*
+batch_import_roll_construct (GType object_type)
+{
BatchImportRoll* self = NULL;
ImportID _tmp0_ = {0};
-#line 267 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 281 "/home/jens/Source/shotwell/src/BatchImport.vala"
self = (BatchImportRoll*) g_type_create_instance (object_type);
-#line 268 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 282 "/home/jens/Source/shotwell/src/BatchImport.vala"
import_id_generate (&_tmp0_);
-#line 268 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 282 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->import_id = _tmp0_;
-#line 267 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 281 "/home/jens/Source/shotwell/src/BatchImport.vala"
return self;
-#line 3759 "BatchImport.c"
+#line 4443 "BatchImport.c"
}
-BatchImportRoll* batch_import_roll_new (void) {
-#line 267 "/home/jens/Source/shotwell/src/BatchImport.vala"
+BatchImportRoll*
+batch_import_roll_new (void)
+{
+#line 281 "/home/jens/Source/shotwell/src/BatchImport.vala"
return batch_import_roll_construct (TYPE_BATCH_IMPORT_ROLL);
-#line 3766 "BatchImport.c"
+#line 4452 "BatchImport.c"
}
-static void value_batch_import_roll_init (GValue* value) {
-#line 263 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static void
+value_batch_import_roll_init (GValue* value)
+{
+#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
value->data[0].v_pointer = NULL;
-#line 3773 "BatchImport.c"
+#line 4461 "BatchImport.c"
}
-static void value_batch_import_roll_free_value (GValue* value) {
-#line 263 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static void
+value_batch_import_roll_free_value (GValue* value)
+{
+#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (value->data[0].v_pointer) {
-#line 263 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_roll_unref (value->data[0].v_pointer);
-#line 3782 "BatchImport.c"
+#line 4472 "BatchImport.c"
}
}
-static void value_batch_import_roll_copy_value (const GValue* src_value, GValue* dest_value) {
-#line 263 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static void
+value_batch_import_roll_copy_value (const GValue* src_value,
+ GValue* dest_value)
+{
+#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (src_value->data[0].v_pointer) {
-#line 263 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
dest_value->data[0].v_pointer = batch_import_roll_ref (src_value->data[0].v_pointer);
-#line 3792 "BatchImport.c"
+#line 4485 "BatchImport.c"
} else {
-#line 263 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
dest_value->data[0].v_pointer = NULL;
-#line 3796 "BatchImport.c"
+#line 4489 "BatchImport.c"
}
}
-static gpointer value_batch_import_roll_peek_pointer (const GValue* value) {
-#line 263 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static gpointer
+value_batch_import_roll_peek_pointer (const GValue* value)
+{
+#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
return value->data[0].v_pointer;
-#line 3804 "BatchImport.c"
+#line 4499 "BatchImport.c"
}
-static gchar* value_batch_import_roll_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
-#line 263 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static gchar*
+value_batch_import_roll_collect_value (GValue* value,
+ guint n_collect_values,
+ GTypeCValue* collect_values,
+ guint collect_flags)
+{
+#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (collect_values[0].v_pointer) {
-#line 3811 "BatchImport.c"
+#line 4511 "BatchImport.c"
BatchImportRoll * object;
object = collect_values[0].v_pointer;
-#line 263 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (object->parent_instance.g_class == NULL) {
-#line 263 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 3818 "BatchImport.c"
+#line 4518 "BatchImport.c"
} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 263 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 3822 "BatchImport.c"
+#line 4522 "BatchImport.c"
}
-#line 263 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
value->data[0].v_pointer = batch_import_roll_ref (object);
-#line 3826 "BatchImport.c"
+#line 4526 "BatchImport.c"
} else {
-#line 263 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
value->data[0].v_pointer = NULL;
-#line 3830 "BatchImport.c"
+#line 4530 "BatchImport.c"
}
-#line 263 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
return NULL;
-#line 3834 "BatchImport.c"
+#line 4534 "BatchImport.c"
}
-static gchar* value_batch_import_roll_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+static gchar*
+value_batch_import_roll_lcopy_value (const GValue* value,
+ guint n_collect_values,
+ GTypeCValue* collect_values,
+ guint collect_flags)
+{
BatchImportRoll ** object_p;
object_p = collect_values[0].v_pointer;
-#line 263 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (!object_p) {
-#line 263 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 3845 "BatchImport.c"
+#line 4550 "BatchImport.c"
}
-#line 263 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (!value->data[0].v_pointer) {
-#line 263 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
*object_p = NULL;
-#line 3851 "BatchImport.c"
+#line 4556 "BatchImport.c"
} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 263 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
*object_p = value->data[0].v_pointer;
-#line 3855 "BatchImport.c"
+#line 4560 "BatchImport.c"
} else {
-#line 263 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
*object_p = batch_import_roll_ref (value->data[0].v_pointer);
-#line 3859 "BatchImport.c"
+#line 4564 "BatchImport.c"
}
-#line 263 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
return NULL;
-#line 3863 "BatchImport.c"
+#line 4568 "BatchImport.c"
}
-GParamSpec* param_spec_batch_import_roll (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+GParamSpec*
+param_spec_batch_import_roll (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags)
+{
ParamSpecBatchImportRoll* spec;
-#line 263 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (g_type_is_a (object_type, TYPE_BATCH_IMPORT_ROLL), NULL);
-#line 263 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 263 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
G_PARAM_SPEC (spec)->value_type = object_type;
-#line 263 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
return G_PARAM_SPEC (spec);
-#line 3877 "BatchImport.c"
+#line 4588 "BatchImport.c"
}
-gpointer value_get_batch_import_roll (const GValue* value) {
-#line 263 "/home/jens/Source/shotwell/src/BatchImport.vala"
+gpointer
+value_get_batch_import_roll (const GValue* value)
+{
+#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_BATCH_IMPORT_ROLL), NULL);
-#line 263 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
return value->data[0].v_pointer;
-#line 3886 "BatchImport.c"
+#line 4599 "BatchImport.c"
}
-void value_set_batch_import_roll (GValue* value, gpointer v_object) {
+void
+value_set_batch_import_roll (GValue* value,
+ gpointer v_object)
+{
BatchImportRoll * old;
-#line 263 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_BATCH_IMPORT_ROLL));
-#line 263 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
old = value->data[0].v_pointer;
-#line 263 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (v_object) {
-#line 263 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_BATCH_IMPORT_ROLL));
-#line 263 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 263 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
value->data[0].v_pointer = v_object;
-#line 263 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_roll_ref (value->data[0].v_pointer);
-#line 3906 "BatchImport.c"
+#line 4622 "BatchImport.c"
} else {
-#line 263 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
value->data[0].v_pointer = NULL;
-#line 3910 "BatchImport.c"
+#line 4626 "BatchImport.c"
}
-#line 263 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (old) {
-#line 263 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_roll_unref (old);
-#line 3916 "BatchImport.c"
+#line 4632 "BatchImport.c"
}
}
-void value_take_batch_import_roll (GValue* value, gpointer v_object) {
+void
+value_take_batch_import_roll (GValue* value,
+ gpointer v_object)
+{
BatchImportRoll * old;
-#line 263 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_BATCH_IMPORT_ROLL));
-#line 263 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
old = value->data[0].v_pointer;
-#line 263 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (v_object) {
-#line 263 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_BATCH_IMPORT_ROLL));
-#line 263 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 263 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
value->data[0].v_pointer = v_object;
-#line 3935 "BatchImport.c"
+#line 4654 "BatchImport.c"
} else {
-#line 263 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
value->data[0].v_pointer = NULL;
-#line 3939 "BatchImport.c"
+#line 4658 "BatchImport.c"
}
-#line 263 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (old) {
-#line 263 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_roll_unref (old);
-#line 3945 "BatchImport.c"
+#line 4664 "BatchImport.c"
}
}
-static void batch_import_roll_class_init (BatchImportRollClass * klass) {
-#line 263 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static void
+batch_import_roll_class_init (BatchImportRollClass * klass)
+{
+#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_roll_parent_class = g_type_class_peek_parent (klass);
-#line 263 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
((BatchImportRollClass *) klass)->finalize = batch_import_roll_finalize;
-#line 3955 "BatchImport.c"
+#line 4676 "BatchImport.c"
}
-static void batch_import_roll_instance_init (BatchImportRoll * self) {
+static void
+batch_import_roll_instance_init (BatchImportRoll * self)
+{
ViewCollection* _tmp0_;
-#line 265 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 279 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp0_ = view_collection_new ("BatchImportRoll generated events");
-#line 265 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 279 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->generated_events = _tmp0_;
-#line 263 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->ref_count = 1;
-#line 3967 "BatchImport.c"
+#line 4690 "BatchImport.c"
}
-static void batch_import_roll_finalize (BatchImportRoll * obj) {
+static void
+batch_import_roll_finalize (BatchImportRoll * obj)
+{
BatchImportRoll * self;
-#line 263 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_BATCH_IMPORT_ROLL, BatchImportRoll);
-#line 263 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_signal_handlers_destroy (self);
-#line 265 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 279 "/home/jens/Source/shotwell/src/BatchImport.vala"
_data_collection_unref0 (self->generated_events);
-#line 3979 "BatchImport.c"
+#line 4704 "BatchImport.c"
}
-GType batch_import_roll_get_type (void) {
+GType
+batch_import_roll_get_type (void)
+{
static volatile gsize batch_import_roll_type_id__volatile = 0;
if (g_once_init_enter (&batch_import_roll_type_id__volatile)) {
static const GTypeValueTable g_define_type_value_table = { value_batch_import_roll_init, value_batch_import_roll_free_value, value_batch_import_roll_copy_value, value_batch_import_roll_peek_pointer, "p", value_batch_import_roll_collect_value, "p", value_batch_import_roll_lcopy_value };
@@ -3993,423 +4720,456 @@ GType batch_import_roll_get_type (void) {
}
-gpointer batch_import_roll_ref (gpointer instance) {
+gpointer
+batch_import_roll_ref (gpointer instance)
+{
BatchImportRoll * self;
self = instance;
-#line 263 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_atomic_int_inc (&self->ref_count);
-#line 263 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
return instance;
-#line 4004 "BatchImport.c"
+#line 4733 "BatchImport.c"
}
-void batch_import_roll_unref (gpointer instance) {
+void
+batch_import_roll_unref (gpointer instance)
+{
BatchImportRoll * self;
self = instance;
-#line 263 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 263 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
BATCH_IMPORT_ROLL_GET_CLASS (self)->finalize (self);
-#line 263 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_type_free_instance ((GTypeInstance *) self);
-#line 4017 "BatchImport.c"
+#line 4748 "BatchImport.c"
}
}
-BatchImportResult* batch_import_result_construct (GType object_type, BatchImportJob* job, GFile* file, const gchar* src_identifier, const gchar* dest_identifier, DuplicatedFile* duplicate_of, ImportResult _result_) {
+BatchImportResult*
+batch_import_result_construct (GType object_type,
+ BatchImportJob* job,
+ GFile* file,
+ const gchar* src_identifier,
+ const gchar* dest_identifier,
+ DuplicatedFile* duplicate_of,
+ ImportResult _result_)
+{
BatchImportResult* self = NULL;
BatchImportJob* _tmp0_;
- BatchImportJob* _tmp1_;
- GFile* _tmp2_;
- GFile* _tmp3_;
- const gchar* _tmp4_;
- gchar* _tmp5_;
- const gchar* _tmp6_;
- gchar* _tmp7_;
- DuplicatedFile* _tmp8_;
- DuplicatedFile* _tmp9_;
- ImportResult _tmp10_;
-#line 287 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ GFile* _tmp1_;
+ gchar* _tmp2_;
+ gchar* _tmp3_;
+ DuplicatedFile* _tmp4_;
+#line 301 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (IS_BATCH_IMPORT_JOB (job), NULL);
-#line 287 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 301 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail ((file == NULL) || G_IS_FILE (file), NULL);
-#line 287 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 301 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (src_identifier != NULL, NULL);
-#line 287 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 301 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (dest_identifier != NULL, NULL);
-#line 287 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 301 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail ((duplicate_of == NULL) || IS_DUPLICATED_FILE (duplicate_of), NULL);
-#line 287 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 301 "/home/jens/Source/shotwell/src/BatchImport.vala"
self = (BatchImportResult*) g_type_create_instance (object_type);
-#line 289 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = job;
-#line 289 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = _batch_import_job_ref0 (_tmp0_);
-#line 289 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 303 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp0_ = _batch_import_job_ref0 (job);
+#line 303 "/home/jens/Source/shotwell/src/BatchImport.vala"
_batch_import_job_unref0 (self->job);
-#line 289 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->job = _tmp1_;
-#line 290 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = file;
-#line 290 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = _g_object_ref0 (_tmp2_);
-#line 290 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 303 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->job = _tmp0_;
+#line 304 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp1_ = _g_object_ref0 (file);
+#line 304 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (self->file);
-#line 290 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->file = _tmp3_;
-#line 291 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = src_identifier;
-#line 291 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = g_strdup (_tmp4_);
-#line 291 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 304 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->file = _tmp1_;
+#line 305 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp2_ = g_strdup (src_identifier);
+#line 305 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (self->src_identifier);
-#line 291 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->src_identifier = _tmp5_;
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = dest_identifier;
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = g_strdup (_tmp6_);
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 305 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->src_identifier = _tmp2_;
+#line 306 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp3_ = g_strdup (dest_identifier);
+#line 306 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (self->dest_identifier);
-#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->dest_identifier = _tmp7_;
-#line 293 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = duplicate_of;
-#line 293 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = _g_object_ref0 (_tmp8_);
-#line 293 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 306 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->dest_identifier = _tmp3_;
+#line 307 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp4_ = _g_object_ref0 (duplicate_of);
+#line 307 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (self->duplicate_of);
-#line 293 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->duplicate_of = _tmp9_;
-#line 294 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = _result_;
-#line 294 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->result = _tmp10_;
-#line 287 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 307 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->duplicate_of = _tmp4_;
+#line 308 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->result = _result_;
+#line 301 "/home/jens/Source/shotwell/src/BatchImport.vala"
return self;
-#line 4093 "BatchImport.c"
+#line 4814 "BatchImport.c"
}
-BatchImportResult* batch_import_result_new (BatchImportJob* job, GFile* file, const gchar* src_identifier, const gchar* dest_identifier, DuplicatedFile* duplicate_of, ImportResult _result_) {
-#line 287 "/home/jens/Source/shotwell/src/BatchImport.vala"
+BatchImportResult*
+batch_import_result_new (BatchImportJob* job,
+ GFile* file,
+ const gchar* src_identifier,
+ const gchar* dest_identifier,
+ DuplicatedFile* duplicate_of,
+ ImportResult _result_)
+{
+#line 301 "/home/jens/Source/shotwell/src/BatchImport.vala"
return batch_import_result_construct (TYPE_BATCH_IMPORT_RESULT, job, file, src_identifier, dest_identifier, duplicate_of, _result_);
-#line 4100 "BatchImport.c"
+#line 4828 "BatchImport.c"
}
-BatchImportResult* batch_import_result_construct_from_error (GType object_type, BatchImportJob* job, GFile* file, const gchar* src_identifier, const gchar* dest_identifier, GError* err, ImportResult default_result) {
+BatchImportResult*
+batch_import_result_construct_from_error (GType object_type,
+ BatchImportJob* job,
+ GFile* file,
+ const gchar* src_identifier,
+ const gchar* dest_identifier,
+ GError* err,
+ ImportResult default_result)
+{
BatchImportResult* self = NULL;
BatchImportJob* _tmp0_;
- BatchImportJob* _tmp1_;
- GFile* _tmp2_;
- GFile* _tmp3_;
+ GFile* _tmp1_;
+ gchar* _tmp2_;
+ gchar* _tmp3_;
const gchar* _tmp4_;
gchar* _tmp5_;
- const gchar* _tmp6_;
- gchar* _tmp7_;
- GError* _tmp8_;
- ImportResult _tmp9_;
- ImportResult _tmp10_;
- GError* _tmp11_;
- const gchar* _tmp12_;
- gchar* _tmp13_;
-#line 297 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 311 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (IS_BATCH_IMPORT_JOB (job), NULL);
-#line 297 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 311 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail ((file == NULL) || G_IS_FILE (file), NULL);
-#line 297 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 311 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (src_identifier != NULL, NULL);
-#line 297 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 311 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (dest_identifier != NULL, NULL);
-#line 297 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 311 "/home/jens/Source/shotwell/src/BatchImport.vala"
self = (BatchImportResult*) g_type_create_instance (object_type);
-#line 299 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = job;
-#line 299 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = _batch_import_job_ref0 (_tmp0_);
-#line 299 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 313 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp0_ = _batch_import_job_ref0 (job);
+#line 313 "/home/jens/Source/shotwell/src/BatchImport.vala"
_batch_import_job_unref0 (self->job);
-#line 299 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->job = _tmp1_;
-#line 300 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = file;
-#line 300 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = _g_object_ref0 (_tmp2_);
-#line 300 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 313 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->job = _tmp0_;
+#line 314 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp1_ = _g_object_ref0 (file);
+#line 314 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (self->file);
-#line 300 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->file = _tmp3_;
-#line 301 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = src_identifier;
-#line 301 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = g_strdup (_tmp4_);
-#line 301 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 314 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->file = _tmp1_;
+#line 315 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp2_ = g_strdup (src_identifier);
+#line 315 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (self->src_identifier);
-#line 301 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->src_identifier = _tmp5_;
-#line 302 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = dest_identifier;
-#line 302 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = g_strdup (_tmp6_);
-#line 302 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 315 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->src_identifier = _tmp2_;
+#line 316 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp3_ = g_strdup (dest_identifier);
+#line 316 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (self->dest_identifier);
-#line 302 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->dest_identifier = _tmp7_;
-#line 303 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = err;
-#line 303 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = default_result;
-#line 303 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = import_result_convert_error (_tmp8_, _tmp9_);
-#line 303 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->result = _tmp10_;
-#line 304 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp11_ = err;
-#line 304 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp12_ = _tmp11_->message;
-#line 304 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp13_ = g_strdup (_tmp12_);
-#line 304 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 316 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->dest_identifier = _tmp3_;
+#line 317 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->result = import_result_convert_error (err, default_result);
+#line 318 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp4_ = err->message;
+#line 318 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp5_ = g_strdup (_tmp4_);
+#line 318 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (self->errmsg);
-#line 304 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->errmsg = _tmp13_;
-#line 297 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 318 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->errmsg = _tmp5_;
+#line 311 "/home/jens/Source/shotwell/src/BatchImport.vala"
return self;
-#line 4182 "BatchImport.c"
+#line 4894 "BatchImport.c"
}
-BatchImportResult* batch_import_result_new_from_error (BatchImportJob* job, GFile* file, const gchar* src_identifier, const gchar* dest_identifier, GError* err, ImportResult default_result) {
-#line 297 "/home/jens/Source/shotwell/src/BatchImport.vala"
+BatchImportResult*
+batch_import_result_new_from_error (BatchImportJob* job,
+ GFile* file,
+ const gchar* src_identifier,
+ const gchar* dest_identifier,
+ GError* err,
+ ImportResult default_result)
+{
+#line 311 "/home/jens/Source/shotwell/src/BatchImport.vala"
return batch_import_result_construct_from_error (TYPE_BATCH_IMPORT_RESULT, job, file, src_identifier, dest_identifier, err, default_result);
-#line 4189 "BatchImport.c"
+#line 4908 "BatchImport.c"
}
-static void value_batch_import_result_init (GValue* value) {
-#line 278 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static void
+value_batch_import_result_init (GValue* value)
+{
+#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
value->data[0].v_pointer = NULL;
-#line 4196 "BatchImport.c"
+#line 4917 "BatchImport.c"
}
-static void value_batch_import_result_free_value (GValue* value) {
-#line 278 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static void
+value_batch_import_result_free_value (GValue* value)
+{
+#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (value->data[0].v_pointer) {
-#line 278 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_result_unref (value->data[0].v_pointer);
-#line 4205 "BatchImport.c"
+#line 4928 "BatchImport.c"
}
}
-static void value_batch_import_result_copy_value (const GValue* src_value, GValue* dest_value) {
-#line 278 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static void
+value_batch_import_result_copy_value (const GValue* src_value,
+ GValue* dest_value)
+{
+#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (src_value->data[0].v_pointer) {
-#line 278 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
dest_value->data[0].v_pointer = batch_import_result_ref (src_value->data[0].v_pointer);
-#line 4215 "BatchImport.c"
+#line 4941 "BatchImport.c"
} else {
-#line 278 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
dest_value->data[0].v_pointer = NULL;
-#line 4219 "BatchImport.c"
+#line 4945 "BatchImport.c"
}
}
-static gpointer value_batch_import_result_peek_pointer (const GValue* value) {
-#line 278 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static gpointer
+value_batch_import_result_peek_pointer (const GValue* value)
+{
+#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
return value->data[0].v_pointer;
-#line 4227 "BatchImport.c"
+#line 4955 "BatchImport.c"
}
-static gchar* value_batch_import_result_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
-#line 278 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static gchar*
+value_batch_import_result_collect_value (GValue* value,
+ guint n_collect_values,
+ GTypeCValue* collect_values,
+ guint collect_flags)
+{
+#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (collect_values[0].v_pointer) {
-#line 4234 "BatchImport.c"
+#line 4967 "BatchImport.c"
BatchImportResult * object;
object = collect_values[0].v_pointer;
-#line 278 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (object->parent_instance.g_class == NULL) {
-#line 278 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 4241 "BatchImport.c"
+#line 4974 "BatchImport.c"
} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 278 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 4245 "BatchImport.c"
+#line 4978 "BatchImport.c"
}
-#line 278 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
value->data[0].v_pointer = batch_import_result_ref (object);
-#line 4249 "BatchImport.c"
+#line 4982 "BatchImport.c"
} else {
-#line 278 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
value->data[0].v_pointer = NULL;
-#line 4253 "BatchImport.c"
+#line 4986 "BatchImport.c"
}
-#line 278 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
return NULL;
-#line 4257 "BatchImport.c"
+#line 4990 "BatchImport.c"
}
-static gchar* value_batch_import_result_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+static gchar*
+value_batch_import_result_lcopy_value (const GValue* value,
+ guint n_collect_values,
+ GTypeCValue* collect_values,
+ guint collect_flags)
+{
BatchImportResult ** object_p;
object_p = collect_values[0].v_pointer;
-#line 278 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (!object_p) {
-#line 278 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 4268 "BatchImport.c"
+#line 5006 "BatchImport.c"
}
-#line 278 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (!value->data[0].v_pointer) {
-#line 278 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
*object_p = NULL;
-#line 4274 "BatchImport.c"
+#line 5012 "BatchImport.c"
} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 278 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
*object_p = value->data[0].v_pointer;
-#line 4278 "BatchImport.c"
+#line 5016 "BatchImport.c"
} else {
-#line 278 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
*object_p = batch_import_result_ref (value->data[0].v_pointer);
-#line 4282 "BatchImport.c"
+#line 5020 "BatchImport.c"
}
-#line 278 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
return NULL;
-#line 4286 "BatchImport.c"
+#line 5024 "BatchImport.c"
}
-GParamSpec* param_spec_batch_import_result (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+GParamSpec*
+param_spec_batch_import_result (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags)
+{
ParamSpecBatchImportResult* spec;
-#line 278 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (g_type_is_a (object_type, TYPE_BATCH_IMPORT_RESULT), NULL);
-#line 278 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 278 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
G_PARAM_SPEC (spec)->value_type = object_type;
-#line 278 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
return G_PARAM_SPEC (spec);
-#line 4300 "BatchImport.c"
+#line 5044 "BatchImport.c"
}
-gpointer value_get_batch_import_result (const GValue* value) {
-#line 278 "/home/jens/Source/shotwell/src/BatchImport.vala"
+gpointer
+value_get_batch_import_result (const GValue* value)
+{
+#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_BATCH_IMPORT_RESULT), NULL);
-#line 278 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
return value->data[0].v_pointer;
-#line 4309 "BatchImport.c"
+#line 5055 "BatchImport.c"
}
-void value_set_batch_import_result (GValue* value, gpointer v_object) {
+void
+value_set_batch_import_result (GValue* value,
+ gpointer v_object)
+{
BatchImportResult * old;
-#line 278 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_BATCH_IMPORT_RESULT));
-#line 278 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
old = value->data[0].v_pointer;
-#line 278 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (v_object) {
-#line 278 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_BATCH_IMPORT_RESULT));
-#line 278 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 278 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
value->data[0].v_pointer = v_object;
-#line 278 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_result_ref (value->data[0].v_pointer);
-#line 4329 "BatchImport.c"
+#line 5078 "BatchImport.c"
} else {
-#line 278 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
value->data[0].v_pointer = NULL;
-#line 4333 "BatchImport.c"
+#line 5082 "BatchImport.c"
}
-#line 278 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (old) {
-#line 278 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_result_unref (old);
-#line 4339 "BatchImport.c"
+#line 5088 "BatchImport.c"
}
}
-void value_take_batch_import_result (GValue* value, gpointer v_object) {
+void
+value_take_batch_import_result (GValue* value,
+ gpointer v_object)
+{
BatchImportResult * old;
-#line 278 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_BATCH_IMPORT_RESULT));
-#line 278 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
old = value->data[0].v_pointer;
-#line 278 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (v_object) {
-#line 278 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_BATCH_IMPORT_RESULT));
-#line 278 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 278 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
value->data[0].v_pointer = v_object;
-#line 4358 "BatchImport.c"
+#line 5110 "BatchImport.c"
} else {
-#line 278 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
value->data[0].v_pointer = NULL;
-#line 4362 "BatchImport.c"
+#line 5114 "BatchImport.c"
}
-#line 278 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (old) {
-#line 278 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_result_unref (old);
-#line 4368 "BatchImport.c"
+#line 5120 "BatchImport.c"
}
}
-static void batch_import_result_class_init (BatchImportResultClass * klass) {
-#line 278 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static void
+batch_import_result_class_init (BatchImportResultClass * klass)
+{
+#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_result_parent_class = g_type_class_peek_parent (klass);
-#line 278 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
((BatchImportResultClass *) klass)->finalize = batch_import_result_finalize;
-#line 4378 "BatchImport.c"
+#line 5132 "BatchImport.c"
}
-static void batch_import_result_instance_init (BatchImportResult * self) {
-#line 284 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static void
+batch_import_result_instance_init (BatchImportResult * self)
+{
+#line 298 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->errmsg = NULL;
-#line 278 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->ref_count = 1;
-#line 4387 "BatchImport.c"
+#line 5143 "BatchImport.c"
}
-static void batch_import_result_finalize (BatchImportResult * obj) {
+static void
+batch_import_result_finalize (BatchImportResult * obj)
+{
BatchImportResult * self;
-#line 278 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_BATCH_IMPORT_RESULT, BatchImportResult);
-#line 278 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_signal_handlers_destroy (self);
-#line 279 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 293 "/home/jens/Source/shotwell/src/BatchImport.vala"
_batch_import_job_unref0 (self->job);
-#line 280 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 294 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (self->file);
-#line 281 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 295 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (self->src_identifier);
-#line 282 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 296 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (self->dest_identifier);
-#line 284 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 298 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (self->errmsg);
-#line 285 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 299 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (self->duplicate_of);
-#line 4409 "BatchImport.c"
+#line 5167 "BatchImport.c"
}
-GType batch_import_result_get_type (void) {
+GType
+batch_import_result_get_type (void)
+{
static volatile gsize batch_import_result_type_id__volatile = 0;
if (g_once_init_enter (&batch_import_result_type_id__volatile)) {
static const GTypeValueTable g_define_type_value_table = { value_batch_import_result_init, value_batch_import_result_free_value, value_batch_import_result_copy_value, value_batch_import_result_peek_pointer, "p", value_batch_import_result_collect_value, "p", value_batch_import_result_lcopy_value };
@@ -4423,714 +5183,718 @@ GType batch_import_result_get_type (void) {
}
-gpointer batch_import_result_ref (gpointer instance) {
+gpointer
+batch_import_result_ref (gpointer instance)
+{
BatchImportResult * self;
self = instance;
-#line 278 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_atomic_int_inc (&self->ref_count);
-#line 278 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
return instance;
-#line 4434 "BatchImport.c"
+#line 5196 "BatchImport.c"
}
-void batch_import_result_unref (gpointer instance) {
+void
+batch_import_result_unref (gpointer instance)
+{
BatchImportResult * self;
self = instance;
-#line 278 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 278 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
BATCH_IMPORT_RESULT_GET_CLASS (self)->finalize (self);
-#line 278 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_type_free_instance ((GTypeInstance *) self);
-#line 4447 "BatchImport.c"
+#line 5211 "BatchImport.c"
}
}
-ImportManifest* import_manifest_construct (GType object_type, GeeList* prefailed, GeeList* pre_already_imported) {
+ImportManifest*
+import_manifest_construct (GType object_type,
+ GeeList* prefailed,
+ GeeList* pre_already_imported)
+{
ImportManifest* self = NULL;
- GeeList* _tmp0_;
- GeeList* _tmp22_;
-#line 321 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ GTimer* _tmp0_;
+#line 336 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail ((prefailed == NULL) || GEE_IS_LIST (prefailed), NULL);
-#line 321 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 336 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail ((pre_already_imported == NULL) || GEE_IS_LIST (pre_already_imported), NULL);
-#line 321 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 336 "/home/jens/Source/shotwell/src/BatchImport.vala"
self = (ImportManifest*) g_type_create_instance (object_type);
-#line 323 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = prefailed;
-#line 323 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp0_ != NULL) {
-#line 4466 "BatchImport.c"
+#line 338 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp0_ = g_timer_new ();
+#line 338 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_timer_destroy0 (self->timer);
+#line 338 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->timer = _tmp0_;
+#line 339 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (prefailed != NULL) {
+#line 5237 "BatchImport.c"
{
GeeList* _job_list = NULL;
GeeList* _tmp1_;
- GeeList* _tmp2_;
gint _job_size = 0;
- GeeList* _tmp3_;
+ GeeList* _tmp2_;
+ gint _tmp3_;
gint _tmp4_;
- gint _tmp5_;
gint _job_index = 0;
-#line 324 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = prefailed;
-#line 324 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = _g_object_ref0 (_tmp1_);
-#line 324 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _job_list = _tmp2_;
-#line 324 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = _job_list;
-#line 324 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 324 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = _tmp4_;
-#line 324 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _job_size = _tmp5_;
-#line 324 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp1_ = _g_object_ref0 (prefailed);
+#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _job_list = _tmp1_;
+#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp2_ = _job_list;
+#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp3_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection));
+#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp4_ = _tmp3_;
+#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _job_size = _tmp4_;
+#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala"
_job_index = -1;
-#line 324 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala"
while (TRUE) {
-#line 4494 "BatchImport.c"
+#line 5262 "BatchImport.c"
+ gint _tmp5_;
gint _tmp6_;
gint _tmp7_;
- gint _tmp8_;
BatchImportJob* job = NULL;
- GeeList* _tmp9_;
- gint _tmp10_;
- gpointer _tmp11_;
+ GeeList* _tmp8_;
+ gint _tmp9_;
+ gpointer _tmp10_;
BatchImportResult* batch_result = NULL;
+ BatchImportJob* _tmp11_;
BatchImportJob* _tmp12_;
- BatchImportJob* _tmp13_;
+ gchar* _tmp13_;
gchar* _tmp14_;
- gchar* _tmp15_;
- BatchImportJob* _tmp16_;
+ BatchImportJob* _tmp15_;
+ gchar* _tmp16_;
gchar* _tmp17_;
- gchar* _tmp18_;
+ BatchImportResult* _tmp18_;
BatchImportResult* _tmp19_;
BatchImportResult* _tmp20_;
- BatchImportResult* _tmp21_;
-#line 324 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp5_ = _job_index;
+#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _job_index = _tmp5_ + 1;
+#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp6_ = _job_index;
-#line 324 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _job_index = _tmp6_ + 1;
-#line 324 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = _job_index;
-#line 324 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = _job_size;
-#line 324 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!(_tmp7_ < _tmp8_)) {
-#line 324 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp7_ = _job_size;
+#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (!(_tmp6_ < _tmp7_)) {
+#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala"
break;
-#line 4525 "BatchImport.c"
+#line 5293 "BatchImport.c"
}
-#line 324 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = _job_list;
-#line 324 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = _job_index;
-#line 324 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp11_ = gee_list_get (_tmp9_, _tmp10_);
-#line 324 "/home/jens/Source/shotwell/src/BatchImport.vala"
- job = (BatchImportJob*) _tmp11_;
-#line 325 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp8_ = _job_list;
+#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp9_ = _job_index;
+#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp10_ = gee_list_get (_tmp8_, _tmp9_);
+#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ job = (BatchImportJob*) _tmp10_;
+#line 341 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp11_ = job;
+#line 341 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp12_ = job;
-#line 325 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp13_ = job;
-#line 325 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp14_ = batch_import_job_get_source_identifier (_tmp13_);
-#line 325 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp15_ = _tmp14_;
-#line 325 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp16_ = job;
-#line 325 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp17_ = batch_import_job_get_dest_identifier (_tmp16_);
-#line 325 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp18_ = _tmp17_;
-#line 325 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp19_ = batch_import_result_new (_tmp12_, NULL, _tmp15_, _tmp18_, NULL, IMPORT_RESULT_FILE_ERROR);
-#line 325 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp20_ = _tmp19_;
-#line 325 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp18_);
-#line 325 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp15_);
-#line 325 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_result = _tmp20_;
-#line 329 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp21_ = batch_result;
-#line 329 "/home/jens/Source/shotwell/src/BatchImport.vala"
- import_manifest_add_result (self, _tmp21_);
-#line 324 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 341 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp13_ = batch_import_job_get_source_identifier (_tmp12_);
+#line 341 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp14_ = _tmp13_;
+#line 341 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp15_ = job;
+#line 341 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp16_ = batch_import_job_get_dest_identifier (_tmp15_);
+#line 341 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp17_ = _tmp16_;
+#line 341 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp18_ = batch_import_result_new (_tmp11_, NULL, _tmp14_, _tmp17_, NULL, IMPORT_RESULT_FILE_ERROR);
+#line 341 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp19_ = _tmp18_;
+#line 341 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_tmp17_);
+#line 341 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_tmp14_);
+#line 341 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ batch_result = _tmp19_;
+#line 345 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp20_ = batch_result;
+#line 345 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ import_manifest_add_result (self, _tmp20_);
+#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala"
_batch_import_result_unref0 (batch_result);
-#line 324 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala"
_batch_import_job_unref0 (job);
-#line 4567 "BatchImport.c"
+#line 5335 "BatchImport.c"
}
-#line 324 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (_job_list);
-#line 4571 "BatchImport.c"
+#line 5339 "BatchImport.c"
}
}
-#line 333 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp22_ = pre_already_imported;
-#line 333 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp22_ != NULL) {
-#line 4578 "BatchImport.c"
+#line 349 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (pre_already_imported != NULL) {
+#line 5344 "BatchImport.c"
{
GeeList* _job_list = NULL;
- GeeList* _tmp23_;
- GeeList* _tmp24_;
+ GeeList* _tmp21_;
gint _job_size = 0;
- GeeList* _tmp25_;
- gint _tmp26_;
- gint _tmp27_;
+ GeeList* _tmp22_;
+ gint _tmp23_;
+ gint _tmp24_;
gint _job_index = 0;
-#line 334 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp23_ = pre_already_imported;
-#line 334 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp24_ = _g_object_ref0 (_tmp23_);
-#line 334 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _job_list = _tmp24_;
-#line 334 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp25_ = _job_list;
-#line 334 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp26_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 334 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp27_ = _tmp26_;
-#line 334 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _job_size = _tmp27_;
-#line 334 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp21_ = _g_object_ref0 (pre_already_imported);
+#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _job_list = _tmp21_;
+#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp22_ = _job_list;
+#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp23_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GEE_TYPE_COLLECTION, GeeCollection));
+#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp24_ = _tmp23_;
+#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _job_size = _tmp24_;
+#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala"
_job_index = -1;
-#line 334 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala"
while (TRUE) {
-#line 4606 "BatchImport.c"
- gint _tmp28_;
- gint _tmp29_;
- gint _tmp30_;
+#line 5369 "BatchImport.c"
+ gint _tmp25_;
+ gint _tmp26_;
+ gint _tmp27_;
BatchImportJob* job = NULL;
- GeeList* _tmp31_;
- gint _tmp32_;
- gpointer _tmp33_;
+ GeeList* _tmp28_;
+ gint _tmp29_;
+ gpointer _tmp30_;
BatchImportResult* batch_result = NULL;
- BatchImportJob* _tmp34_;
- BatchImportJob* _tmp35_;
- gchar* _tmp36_;
- gchar* _tmp37_;
- GFile* _tmp38_;
- GFile* _tmp39_;
+ BatchImportJob* _tmp31_;
+ BatchImportJob* _tmp32_;
+ gchar* _tmp33_;
+ gchar* _tmp34_;
+ GFile* _tmp35_;
+ GFile* _tmp36_;
+ BatchImportJob* _tmp37_;
+ gchar* _tmp38_;
+ gchar* _tmp39_;
BatchImportJob* _tmp40_;
gchar* _tmp41_;
gchar* _tmp42_;
BatchImportJob* _tmp43_;
- gchar* _tmp44_;
- gchar* _tmp45_;
- BatchImportJob* _tmp46_;
- DuplicatedFile* _tmp47_;
- DuplicatedFile* _tmp48_;
- BatchImportResult* _tmp49_;
- BatchImportResult* _tmp50_;
- BatchImportResult* _tmp51_;
-#line 334 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp28_ = _job_index;
-#line 334 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _job_index = _tmp28_ + 1;
-#line 334 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp29_ = _job_index;
-#line 334 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp30_ = _job_size;
-#line 334 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!(_tmp29_ < _tmp30_)) {
-#line 334 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ DuplicatedFile* _tmp44_;
+ DuplicatedFile* _tmp45_;
+ BatchImportResult* _tmp46_;
+ BatchImportResult* _tmp47_;
+ BatchImportResult* _tmp48_;
+#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp25_ = _job_index;
+#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _job_index = _tmp25_ + 1;
+#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp26_ = _job_index;
+#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp27_ = _job_size;
+#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (!(_tmp26_ < _tmp27_)) {
+#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala"
break;
-#line 4645 "BatchImport.c"
+#line 5408 "BatchImport.c"
}
-#line 334 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp31_ = _job_list;
-#line 334 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp32_ = _job_index;
-#line 334 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp33_ = gee_list_get (_tmp31_, _tmp32_);
-#line 334 "/home/jens/Source/shotwell/src/BatchImport.vala"
- job = (BatchImportJob*) _tmp33_;
-#line 335 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp34_ = job;
-#line 335 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp35_ = job;
-#line 335 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp36_ = batch_import_job_get_basename (_tmp35_);
-#line 335 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp37_ = _tmp36_;
-#line 335 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp38_ = g_file_new_for_path (_tmp37_);
-#line 335 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp28_ = _job_list;
+#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp29_ = _job_index;
+#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp30_ = gee_list_get (_tmp28_, _tmp29_);
+#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ job = (BatchImportJob*) _tmp30_;
+#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp31_ = job;
+#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp32_ = job;
+#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp33_ = batch_import_job_get_basename (_tmp32_);
+#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp34_ = _tmp33_;
+#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp35_ = g_file_new_for_path (_tmp34_);
+#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp36_ = _tmp35_;
+#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp37_ = job;
+#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp38_ = batch_import_job_get_source_identifier (_tmp37_);
+#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp39_ = _tmp38_;
-#line 335 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp40_ = job;
-#line 335 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp41_ = batch_import_job_get_source_identifier (_tmp40_);
-#line 335 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp41_ = batch_import_job_get_dest_identifier (_tmp40_);
+#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp42_ = _tmp41_;
-#line 335 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp43_ = job;
-#line 335 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp44_ = batch_import_job_get_dest_identifier (_tmp43_);
-#line 335 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp44_ = batch_import_job_get_duplicated_file (_tmp43_);
+#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp45_ = _tmp44_;
-#line 335 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp46_ = job;
-#line 335 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp47_ = batch_import_job_get_duplicated_file (_tmp46_);
-#line 335 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp48_ = _tmp47_;
-#line 335 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp49_ = batch_import_result_new (_tmp34_, _tmp39_, _tmp42_, _tmp45_, _tmp48_, IMPORT_RESULT_PHOTO_EXISTS);
-#line 335 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp50_ = _tmp49_;
-#line 335 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_tmp48_);
-#line 335 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp45_);
-#line 335 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp46_ = batch_import_result_new (_tmp31_, _tmp36_, _tmp39_, _tmp42_, _tmp45_, IMPORT_RESULT_PHOTO_EXISTS);
+#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp47_ = _tmp46_;
+#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_object_unref0 (_tmp45_);
+#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (_tmp42_);
-#line 335 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_tmp39_);
-#line 335 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp37_);
-#line 335 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_result = _tmp50_;
-#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp51_ = batch_result;
-#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala"
- import_manifest_add_result (self, _tmp51_);
-#line 334 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_tmp39_);
+#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_object_unref0 (_tmp36_);
+#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_tmp34_);
+#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ batch_result = _tmp47_;
+#line 356 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp48_ = batch_result;
+#line 356 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ import_manifest_add_result (self, _tmp48_);
+#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala"
_batch_import_result_unref0 (batch_result);
-#line 334 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala"
_batch_import_job_unref0 (job);
-#line 4709 "BatchImport.c"
+#line 5472 "BatchImport.c"
}
-#line 334 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (_job_list);
-#line 4713 "BatchImport.c"
+#line 5476 "BatchImport.c"
}
}
-#line 321 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 336 "/home/jens/Source/shotwell/src/BatchImport.vala"
return self;
-#line 4718 "BatchImport.c"
+#line 5481 "BatchImport.c"
}
-ImportManifest* import_manifest_new (GeeList* prefailed, GeeList* pre_already_imported) {
-#line 321 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ImportManifest*
+import_manifest_new (GeeList* prefailed,
+ GeeList* pre_already_imported)
+{
+#line 336 "/home/jens/Source/shotwell/src/BatchImport.vala"
return import_manifest_construct (TYPE_IMPORT_MANIFEST, prefailed, pre_already_imported);
-#line 4725 "BatchImport.c"
+#line 5491 "BatchImport.c"
}
-void import_manifest_add_result (ImportManifest* self, BatchImportResult* batch_result) {
+void
+import_manifest_add_result (ImportManifest* self,
+ BatchImportResult* batch_result)
+{
gboolean reported = FALSE;
- BatchImportResult* _tmp0_;
- ImportResult _tmp1_;
- gboolean _tmp26_;
-#line 345 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ ImportResult _tmp0_;
+ gboolean _tmp13_;
+#line 361 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (IS_IMPORT_MANIFEST (self));
-#line 345 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 361 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (IS_BATCH_IMPORT_RESULT (batch_result));
-#line 346 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 362 "/home/jens/Source/shotwell/src/BatchImport.vala"
reported = TRUE;
-#line 347 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = batch_result;
-#line 347 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = _tmp0_->result;
-#line 347 "/home/jens/Source/shotwell/src/BatchImport.vala"
- switch (_tmp1_) {
-#line 347 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 363 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp0_ = batch_result->result;
+#line 363 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ switch (_tmp0_) {
+#line 363 "/home/jens/Source/shotwell/src/BatchImport.vala"
case IMPORT_RESULT_SUCCESS:
-#line 4748 "BatchImport.c"
+#line 5514 "BatchImport.c"
{
- GeeList* _tmp2_;
- BatchImportResult* _tmp3_;
-#line 349 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = self->success;
-#line 349 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = batch_result;
-#line 349 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection), _tmp3_);
-#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ GeeList* _tmp1_;
+#line 365 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp1_ = self->success;
+#line 365 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection), batch_result);
+#line 366 "/home/jens/Source/shotwell/src/BatchImport.vala"
break;
-#line 4760 "BatchImport.c"
+#line 5523 "BatchImport.c"
}
-#line 347 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 363 "/home/jens/Source/shotwell/src/BatchImport.vala"
case IMPORT_RESULT_USER_ABORT:
-#line 4764 "BatchImport.c"
+#line 5527 "BatchImport.c"
{
- gboolean _tmp4_ = FALSE;
- BatchImportResult* _tmp5_;
- GFile* _tmp6_;
-#line 353 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = batch_result;
-#line 353 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = _tmp5_->file;
-#line 353 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp6_ != NULL) {
-#line 4775 "BatchImport.c"
- BatchImportResult* _tmp7_;
- GFile* _tmp8_;
- gboolean _tmp9_;
-#line 353 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = batch_result;
-#line 353 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = _tmp7_->file;
-#line 353 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = query_is_directory (_tmp8_);
-#line 353 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = !_tmp9_;
-#line 4787 "BatchImport.c"
+ gboolean _tmp2_ = FALSE;
+ GFile* _tmp3_;
+#line 369 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp3_ = batch_result->file;
+#line 369 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp3_ != NULL) {
+#line 5535 "BatchImport.c"
+ GFile* _tmp4_;
+#line 369 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp4_ = batch_result->file;
+#line 369 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp2_ = !query_is_directory (_tmp4_);
+#line 5541 "BatchImport.c"
} else {
-#line 353 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = FALSE;
-#line 4791 "BatchImport.c"
+#line 369 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp2_ = FALSE;
+#line 5545 "BatchImport.c"
}
-#line 353 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp4_) {
-#line 4795 "BatchImport.c"
- GeeList* _tmp10_;
- BatchImportResult* _tmp11_;
-#line 354 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = self->aborted;
-#line 354 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp11_ = batch_result;
-#line 354 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_COLLECTION, GeeCollection), _tmp11_);
-#line 4804 "BatchImport.c"
+#line 369 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp2_) {
+#line 5549 "BatchImport.c"
+ GeeList* _tmp5_;
+#line 370 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp5_ = self->aborted;
+#line 370 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection), batch_result);
+#line 5555 "BatchImport.c"
} else {
-#line 356 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 372 "/home/jens/Source/shotwell/src/BatchImport.vala"
reported = FALSE;
-#line 4808 "BatchImport.c"
+#line 5559 "BatchImport.c"
}
-#line 357 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 373 "/home/jens/Source/shotwell/src/BatchImport.vala"
break;
-#line 4812 "BatchImport.c"
+#line 5563 "BatchImport.c"
}
-#line 347 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 363 "/home/jens/Source/shotwell/src/BatchImport.vala"
case IMPORT_RESULT_UNSUPPORTED_FORMAT:
-#line 4816 "BatchImport.c"
+#line 5567 "BatchImport.c"
{
- GeeList* _tmp12_;
- BatchImportResult* _tmp13_;
-#line 360 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp12_ = self->skipped_photos;
-#line 360 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp13_ = batch_result;
-#line 360 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_COLLECTION, GeeCollection), _tmp13_);
-#line 361 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ GeeList* _tmp6_;
+#line 376 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp6_ = self->skipped_photos;
+#line 376 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection), batch_result);
+#line 377 "/home/jens/Source/shotwell/src/BatchImport.vala"
break;
-#line 4828 "BatchImport.c"
+#line 5576 "BatchImport.c"
}
-#line 347 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 363 "/home/jens/Source/shotwell/src/BatchImport.vala"
case IMPORT_RESULT_NOT_A_FILE:
-#line 347 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 363 "/home/jens/Source/shotwell/src/BatchImport.vala"
case IMPORT_RESULT_NOT_AN_IMAGE:
-#line 4834 "BatchImport.c"
+#line 5582 "BatchImport.c"
{
- GeeList* _tmp14_;
- BatchImportResult* _tmp15_;
-#line 365 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp14_ = self->skipped_files;
-#line 365 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp15_ = batch_result;
-#line 365 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_COLLECTION, GeeCollection), _tmp15_);
-#line 366 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ GeeList* _tmp7_;
+#line 381 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp7_ = self->skipped_files;
+#line 381 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_COLLECTION, GeeCollection), batch_result);
+#line 382 "/home/jens/Source/shotwell/src/BatchImport.vala"
break;
-#line 4846 "BatchImport.c"
+#line 5591 "BatchImport.c"
}
-#line 347 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 363 "/home/jens/Source/shotwell/src/BatchImport.vala"
case IMPORT_RESULT_PHOTO_EXISTS:
-#line 4850 "BatchImport.c"
+#line 5595 "BatchImport.c"
{
- GeeList* _tmp16_;
- BatchImportResult* _tmp17_;
-#line 369 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp16_ = self->already_imported;
-#line 369 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp17_ = batch_result;
-#line 369 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_COLLECTION, GeeCollection), _tmp17_);
-#line 370 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ GeeList* _tmp8_;
+#line 385 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp8_ = self->already_imported;
+#line 385 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_COLLECTION, GeeCollection), batch_result);
+#line 386 "/home/jens/Source/shotwell/src/BatchImport.vala"
break;
-#line 4862 "BatchImport.c"
+#line 5604 "BatchImport.c"
}
-#line 347 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 363 "/home/jens/Source/shotwell/src/BatchImport.vala"
case IMPORT_RESULT_CAMERA_ERROR:
-#line 4866 "BatchImport.c"
+#line 5608 "BatchImport.c"
{
- GeeList* _tmp18_;
- BatchImportResult* _tmp19_;
-#line 373 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp18_ = self->camera_failed;
-#line 373 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp19_ = batch_result;
-#line 373 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_COLLECTION, GeeCollection), _tmp19_);
-#line 374 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ GeeList* _tmp9_;
+#line 389 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp9_ = self->camera_failed;
+#line 389 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_COLLECTION, GeeCollection), batch_result);
+#line 390 "/home/jens/Source/shotwell/src/BatchImport.vala"
break;
-#line 4878 "BatchImport.c"
+#line 5617 "BatchImport.c"
}
-#line 347 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 363 "/home/jens/Source/shotwell/src/BatchImport.vala"
case IMPORT_RESULT_FILE_WRITE_ERROR:
-#line 4882 "BatchImport.c"
+#line 5621 "BatchImport.c"
{
- GeeList* _tmp20_;
- BatchImportResult* _tmp21_;
-#line 377 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp20_ = self->write_failed;
-#line 377 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp21_ = batch_result;
-#line 377 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_COLLECTION, GeeCollection), _tmp21_);
-#line 378 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ GeeList* _tmp10_;
+#line 393 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp10_ = self->write_failed;
+#line 393 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_COLLECTION, GeeCollection), batch_result);
+#line 394 "/home/jens/Source/shotwell/src/BatchImport.vala"
break;
-#line 4894 "BatchImport.c"
+#line 5630 "BatchImport.c"
}
-#line 347 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 363 "/home/jens/Source/shotwell/src/BatchImport.vala"
case IMPORT_RESULT_PIXBUF_CORRUPT_IMAGE:
-#line 4898 "BatchImport.c"
+#line 5634 "BatchImport.c"
{
- GeeList* _tmp22_;
- BatchImportResult* _tmp23_;
-#line 381 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp22_ = self->corrupt_files;
-#line 381 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp23_ = batch_result;
-#line 381 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GEE_TYPE_COLLECTION, GeeCollection), _tmp23_);
-#line 382 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ GeeList* _tmp11_;
+#line 397 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp11_ = self->corrupt_files;
+#line 397 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_COLLECTION, GeeCollection), batch_result);
+#line 398 "/home/jens/Source/shotwell/src/BatchImport.vala"
break;
-#line 4910 "BatchImport.c"
+#line 5643 "BatchImport.c"
}
default:
{
- GeeList* _tmp24_;
- BatchImportResult* _tmp25_;
-#line 385 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp24_ = self->failed;
-#line 385 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp25_ = batch_result;
-#line 385 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, GEE_TYPE_COLLECTION, GeeCollection), _tmp25_);
-#line 386 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ GeeList* _tmp12_;
+#line 401 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp12_ = self->failed;
+#line 401 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_COLLECTION, GeeCollection), batch_result);
+#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
break;
-#line 4924 "BatchImport.c"
+#line 5654 "BatchImport.c"
}
}
-#line 389 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp26_ = reported;
-#line 389 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp26_) {
-#line 4931 "BatchImport.c"
- GeeList* _tmp27_;
- BatchImportResult* _tmp28_;
-#line 390 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp27_ = self->all;
-#line 390 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp28_ = batch_result;
-#line 390 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, GEE_TYPE_COLLECTION, GeeCollection), _tmp28_);
-#line 4940 "BatchImport.c"
+#line 405 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp13_ = reported;
+#line 405 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp13_) {
+#line 5661 "BatchImport.c"
+ GeeList* _tmp14_;
+#line 406 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp14_ = self->all;
+#line 406 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_COLLECTION, GeeCollection), batch_result);
+#line 5667 "BatchImport.c"
}
}
-static void value_import_manifest_init (GValue* value) {
-#line 308 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static void
+value_import_manifest_init (GValue* value)
+{
+#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
value->data[0].v_pointer = NULL;
-#line 4948 "BatchImport.c"
+#line 5677 "BatchImport.c"
}
-static void value_import_manifest_free_value (GValue* value) {
-#line 308 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static void
+value_import_manifest_free_value (GValue* value)
+{
+#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (value->data[0].v_pointer) {
-#line 308 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
import_manifest_unref (value->data[0].v_pointer);
-#line 4957 "BatchImport.c"
+#line 5688 "BatchImport.c"
}
}
-static void value_import_manifest_copy_value (const GValue* src_value, GValue* dest_value) {
-#line 308 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static void
+value_import_manifest_copy_value (const GValue* src_value,
+ GValue* dest_value)
+{
+#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (src_value->data[0].v_pointer) {
-#line 308 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
dest_value->data[0].v_pointer = import_manifest_ref (src_value->data[0].v_pointer);
-#line 4967 "BatchImport.c"
+#line 5701 "BatchImport.c"
} else {
-#line 308 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
dest_value->data[0].v_pointer = NULL;
-#line 4971 "BatchImport.c"
+#line 5705 "BatchImport.c"
}
}
-static gpointer value_import_manifest_peek_pointer (const GValue* value) {
-#line 308 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static gpointer
+value_import_manifest_peek_pointer (const GValue* value)
+{
+#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
return value->data[0].v_pointer;
-#line 4979 "BatchImport.c"
+#line 5715 "BatchImport.c"
}
-static gchar* value_import_manifest_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
-#line 308 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static gchar*
+value_import_manifest_collect_value (GValue* value,
+ guint n_collect_values,
+ GTypeCValue* collect_values,
+ guint collect_flags)
+{
+#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (collect_values[0].v_pointer) {
-#line 4986 "BatchImport.c"
+#line 5727 "BatchImport.c"
ImportManifest * object;
object = collect_values[0].v_pointer;
-#line 308 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (object->parent_instance.g_class == NULL) {
-#line 308 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 4993 "BatchImport.c"
+#line 5734 "BatchImport.c"
} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 308 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 4997 "BatchImport.c"
+#line 5738 "BatchImport.c"
}
-#line 308 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
value->data[0].v_pointer = import_manifest_ref (object);
-#line 5001 "BatchImport.c"
+#line 5742 "BatchImport.c"
} else {
-#line 308 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
value->data[0].v_pointer = NULL;
-#line 5005 "BatchImport.c"
+#line 5746 "BatchImport.c"
}
-#line 308 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
return NULL;
-#line 5009 "BatchImport.c"
+#line 5750 "BatchImport.c"
}
-static gchar* value_import_manifest_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+static gchar*
+value_import_manifest_lcopy_value (const GValue* value,
+ guint n_collect_values,
+ GTypeCValue* collect_values,
+ guint collect_flags)
+{
ImportManifest ** object_p;
object_p = collect_values[0].v_pointer;
-#line 308 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (!object_p) {
-#line 308 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 5020 "BatchImport.c"
+#line 5766 "BatchImport.c"
}
-#line 308 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (!value->data[0].v_pointer) {
-#line 308 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
*object_p = NULL;
-#line 5026 "BatchImport.c"
+#line 5772 "BatchImport.c"
} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 308 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
*object_p = value->data[0].v_pointer;
-#line 5030 "BatchImport.c"
+#line 5776 "BatchImport.c"
} else {
-#line 308 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
*object_p = import_manifest_ref (value->data[0].v_pointer);
-#line 5034 "BatchImport.c"
+#line 5780 "BatchImport.c"
}
-#line 308 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
return NULL;
-#line 5038 "BatchImport.c"
+#line 5784 "BatchImport.c"
}
-GParamSpec* param_spec_import_manifest (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+GParamSpec*
+param_spec_import_manifest (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags)
+{
ParamSpecImportManifest* spec;
-#line 308 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (g_type_is_a (object_type, TYPE_IMPORT_MANIFEST), NULL);
-#line 308 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 308 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
G_PARAM_SPEC (spec)->value_type = object_type;
-#line 308 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
return G_PARAM_SPEC (spec);
-#line 5052 "BatchImport.c"
+#line 5804 "BatchImport.c"
}
-gpointer value_get_import_manifest (const GValue* value) {
-#line 308 "/home/jens/Source/shotwell/src/BatchImport.vala"
+gpointer
+value_get_import_manifest (const GValue* value)
+{
+#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_IMPORT_MANIFEST), NULL);
-#line 308 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
return value->data[0].v_pointer;
-#line 5061 "BatchImport.c"
+#line 5815 "BatchImport.c"
}
-void value_set_import_manifest (GValue* value, gpointer v_object) {
+void
+value_set_import_manifest (GValue* value,
+ gpointer v_object)
+{
ImportManifest * old;
-#line 308 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_IMPORT_MANIFEST));
-#line 308 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
old = value->data[0].v_pointer;
-#line 308 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (v_object) {
-#line 308 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_IMPORT_MANIFEST));
-#line 308 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 308 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
value->data[0].v_pointer = v_object;
-#line 308 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
import_manifest_ref (value->data[0].v_pointer);
-#line 5081 "BatchImport.c"
+#line 5838 "BatchImport.c"
} else {
-#line 308 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
value->data[0].v_pointer = NULL;
-#line 5085 "BatchImport.c"
+#line 5842 "BatchImport.c"
}
-#line 308 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (old) {
-#line 308 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
import_manifest_unref (old);
-#line 5091 "BatchImport.c"
+#line 5848 "BatchImport.c"
}
}
-void value_take_import_manifest (GValue* value, gpointer v_object) {
+void
+value_take_import_manifest (GValue* value,
+ gpointer v_object)
+{
ImportManifest * old;
-#line 308 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_IMPORT_MANIFEST));
-#line 308 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
old = value->data[0].v_pointer;
-#line 308 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (v_object) {
-#line 308 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_IMPORT_MANIFEST));
-#line 308 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 308 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
value->data[0].v_pointer = v_object;
-#line 5110 "BatchImport.c"
+#line 5870 "BatchImport.c"
} else {
-#line 308 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
value->data[0].v_pointer = NULL;
-#line 5114 "BatchImport.c"
+#line 5874 "BatchImport.c"
}
-#line 308 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (old) {
-#line 308 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
import_manifest_unref (old);
-#line 5120 "BatchImport.c"
+#line 5880 "BatchImport.c"
}
}
-static void import_manifest_class_init (ImportManifestClass * klass) {
-#line 308 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static void
+import_manifest_class_init (ImportManifestClass * klass)
+{
+#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
import_manifest_parent_class = g_type_class_peek_parent (klass);
-#line 308 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
((ImportManifestClass *) klass)->finalize = import_manifest_finalize;
-#line 5130 "BatchImport.c"
+#line 5892 "BatchImport.c"
}
-static void import_manifest_instance_init (ImportManifest * self) {
+static void
+import_manifest_instance_init (ImportManifest * self)
+{
GeeArrayList* _tmp0_;
GeeArrayList* _tmp1_;
GeeArrayList* _tmp2_;
@@ -5142,89 +5906,95 @@ static void import_manifest_instance_init (ImportManifest * self) {
GeeArrayList* _tmp8_;
GeeArrayList* _tmp9_;
GeeArrayList* _tmp10_;
-#line 309 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 323 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp0_ = gee_array_list_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 309 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 323 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->imported = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_LIST, GeeList);
-#line 310 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 324 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp1_ = gee_array_list_new (TYPE_BATCH_IMPORT_RESULT, (GBoxedCopyFunc) batch_import_result_ref, (GDestroyNotify) batch_import_result_unref, NULL, NULL, NULL);
-#line 310 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 324 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->success = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_LIST, GeeList);
-#line 311 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 325 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp2_ = gee_array_list_new (TYPE_BATCH_IMPORT_RESULT, (GBoxedCopyFunc) batch_import_result_ref, (GDestroyNotify) batch_import_result_unref, NULL, NULL, NULL);
-#line 311 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 325 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->camera_failed = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_LIST, GeeList);
-#line 312 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 326 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp3_ = gee_array_list_new (TYPE_BATCH_IMPORT_RESULT, (GBoxedCopyFunc) batch_import_result_ref, (GDestroyNotify) batch_import_result_unref, NULL, NULL, NULL);
-#line 312 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 326 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->failed = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_LIST, GeeList);
-#line 313 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 327 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp4_ = gee_array_list_new (TYPE_BATCH_IMPORT_RESULT, (GBoxedCopyFunc) batch_import_result_ref, (GDestroyNotify) batch_import_result_unref, NULL, NULL, NULL);
-#line 313 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 327 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->write_failed = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_LIST, GeeList);
-#line 314 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 328 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp5_ = gee_array_list_new (TYPE_BATCH_IMPORT_RESULT, (GBoxedCopyFunc) batch_import_result_ref, (GDestroyNotify) batch_import_result_unref, NULL, NULL, NULL);
-#line 314 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 328 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->skipped_photos = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_LIST, GeeList);
-#line 315 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 329 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp6_ = gee_array_list_new (TYPE_BATCH_IMPORT_RESULT, (GBoxedCopyFunc) batch_import_result_ref, (GDestroyNotify) batch_import_result_unref, NULL, NULL, NULL);
-#line 315 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 329 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->skipped_files = G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_LIST, GeeList);
-#line 316 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 330 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp7_ = gee_array_list_new (TYPE_BATCH_IMPORT_RESULT, (GBoxedCopyFunc) batch_import_result_ref, (GDestroyNotify) batch_import_result_unref, NULL, NULL, NULL);
-#line 316 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 330 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->aborted = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_LIST, GeeList);
-#line 317 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 331 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp8_ = gee_array_list_new (TYPE_BATCH_IMPORT_RESULT, (GBoxedCopyFunc) batch_import_result_ref, (GDestroyNotify) batch_import_result_unref, NULL, NULL, NULL);
-#line 317 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 331 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->already_imported = G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_LIST, GeeList);
-#line 318 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 332 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp9_ = gee_array_list_new (TYPE_BATCH_IMPORT_RESULT, (GBoxedCopyFunc) batch_import_result_ref, (GDestroyNotify) batch_import_result_unref, NULL, NULL, NULL);
-#line 318 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 332 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->corrupt_files = G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_LIST, GeeList);
-#line 319 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 333 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp10_ = gee_array_list_new (TYPE_BATCH_IMPORT_RESULT, (GBoxedCopyFunc) batch_import_result_ref, (GDestroyNotify) batch_import_result_unref, NULL, NULL, NULL);
-#line 319 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 333 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->all = G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_LIST, GeeList);
-#line 308 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->ref_count = 1;
-#line 5192 "BatchImport.c"
+#line 5956 "BatchImport.c"
}
-static void import_manifest_finalize (ImportManifest * obj) {
+static void
+import_manifest_finalize (ImportManifest * obj)
+{
ImportManifest * self;
-#line 308 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_IMPORT_MANIFEST, ImportManifest);
-#line 308 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_signal_handlers_destroy (self);
-#line 309 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 323 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (self->imported);
-#line 310 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 324 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (self->success);
-#line 311 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 325 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (self->camera_failed);
-#line 312 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 326 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (self->failed);
-#line 313 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 327 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (self->write_failed);
-#line 314 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 328 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (self->skipped_photos);
-#line 315 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 329 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (self->skipped_files);
-#line 316 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 330 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (self->aborted);
-#line 317 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 331 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (self->already_imported);
-#line 318 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 332 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (self->corrupt_files);
-#line 319 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 333 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (self->all);
-#line 5224 "BatchImport.c"
+#line 334 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_timer_destroy0 (self->timer);
+#line 5992 "BatchImport.c"
}
-GType import_manifest_get_type (void) {
+GType
+import_manifest_get_type (void)
+{
static volatile gsize import_manifest_type_id__volatile = 0;
if (g_once_init_enter (&import_manifest_type_id__volatile)) {
static const GTypeValueTable g_define_type_value_table = { value_import_manifest_init, value_import_manifest_free_value, value_import_manifest_copy_value, value_import_manifest_peek_pointer, "p", value_import_manifest_collect_value, "p", value_import_manifest_lcopy_value };
@@ -5238,952 +6008,938 @@ GType import_manifest_get_type (void) {
}
-gpointer import_manifest_ref (gpointer instance) {
+gpointer
+import_manifest_ref (gpointer instance)
+{
ImportManifest * self;
self = instance;
-#line 308 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_atomic_int_inc (&self->ref_count);
-#line 308 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
return instance;
-#line 5249 "BatchImport.c"
+#line 6021 "BatchImport.c"
}
-void import_manifest_unref (gpointer instance) {
+void
+import_manifest_unref (gpointer instance)
+{
ImportManifest * self;
self = instance;
-#line 308 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 308 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
IMPORT_MANIFEST_GET_CLASS (self)->finalize (self);
-#line 308 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_type_free_instance ((GTypeInstance *) self);
-#line 5262 "BatchImport.c"
+#line 6036 "BatchImport.c"
}
}
-static void _batch_import_user_halt_application_exiting (Application* _sender, gboolean panicked, gpointer self) {
-#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static void
+_batch_import_user_halt_application_exiting (Application* _sender,
+ gboolean panicked,
+ gpointer self)
+{
+#line 524 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_user_halt ((BatchImport*) self);
-#line 5270 "BatchImport.c"
+#line 6048 "BatchImport.c"
}
-static gpointer _batch_import_roll_ref0 (gpointer self) {
-#line 488 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static gpointer
+_batch_import_roll_ref0 (gpointer self)
+{
+#line 504 "/home/jens/Source/shotwell/src/BatchImport.vala"
return self ? batch_import_roll_ref (self) : NULL;
-#line 5277 "BatchImport.c"
+#line 6057 "BatchImport.c"
}
-static guint _file_hash_gee_hash_data_func (gconstpointer v, gpointer self) {
+static guint
+_file_hash_gee_hash_data_func (gconstpointer v,
+ gpointer self)
+{
guint result;
result = file_hash ((GFile*) v);
-#line 491 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 507 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 5286 "BatchImport.c"
+#line 6069 "BatchImport.c"
}
-static gboolean _file_equal_gee_equal_data_func (gconstpointer a, gconstpointer b, gpointer self) {
+static gboolean
+_file_equal_gee_equal_data_func (gconstpointer a,
+ gconstpointer b,
+ gpointer self)
+{
gboolean result;
result = file_equal ((GFile*) a, (GFile*) b);
-#line 491 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 507 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 5295 "BatchImport.c"
+#line 6082 "BatchImport.c"
}
-static gboolean _batch_import_display_imported_timer_gsource_func (gpointer self) {
+static gboolean
+_batch_import_display_imported_timer_gsource_func (gpointer self)
+{
gboolean result;
result = batch_import_display_imported_timer ((BatchImport*) self);
-#line 501 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 517 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 5304 "BatchImport.c"
-}
-
-
-BatchImport* batch_import_construct (GType object_type, GeeIterable* jobs, const gchar* name, BatchImportImportReporter reporter, void* reporter_target, GeeArrayList* prefailed, GeeArrayList* pre_already_imported, GCancellable* cancellable, BatchImportRoll* import_roll, ImportManifest* skip_manifest) {
+#line 6093 "BatchImport.c"
+}
+
+
+BatchImport*
+batch_import_construct (GType object_type,
+ GeeIterable* jobs,
+ const gchar* name,
+ BatchImportImportReporter reporter,
+ void* reporter_target,
+ GeeArrayList* prefailed,
+ GeeArrayList* pre_already_imported,
+ GCancellable* cancellable,
+ BatchImportRoll* import_roll,
+ ImportManifest* skip_manifest)
+{
BatchImport * self = NULL;
GeeIterable* _tmp0_;
- GeeIterable* _tmp1_;
- const gchar* _tmp2_;
- gchar* _tmp3_;
- BatchImportImportReporter _tmp4_;
- void* _tmp4__target;
- GeeArrayList* _tmp5_;
- GeeArrayList* _tmp6_;
- ImportManifest* _tmp7_;
- GCancellable* _tmp8_ = NULL;
- GCancellable* _tmp9_;
- GCancellable* _tmp13_;
- BatchImportRoll* _tmp14_ = NULL;
- BatchImportRoll* _tmp15_;
- BatchImportRoll* _tmp19_;
- ImportManifest* _tmp20_;
- Application* _tmp38_;
- Application* _tmp39_;
-#line 478 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ gchar* _tmp1_;
+ ImportManifest* _tmp2_;
+ GCancellable* _tmp3_ = NULL;
+ GCancellable* _tmp6_;
+ BatchImportRoll* _tmp7_ = NULL;
+ BatchImportRoll* _tmp10_;
+ Application* _tmp27_;
+ Application* _tmp28_;
+#line 494 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (GEE_IS_ITERABLE (jobs), NULL);
-#line 478 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 494 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (name != NULL, NULL);
-#line 478 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 494 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail ((prefailed == NULL) || GEE_IS_ARRAY_LIST (prefailed), NULL);
-#line 478 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 494 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail ((pre_already_imported == NULL) || GEE_IS_ARRAY_LIST (pre_already_imported), NULL);
-#line 478 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 494 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail ((cancellable == NULL) || G_IS_CANCELLABLE (cancellable), NULL);
-#line 478 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 494 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail ((import_roll == NULL) || IS_BATCH_IMPORT_ROLL (import_roll), NULL);
-#line 478 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 494 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail ((skip_manifest == NULL) || IS_IMPORT_MANIFEST (skip_manifest), NULL);
-#line 478 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 494 "/home/jens/Source/shotwell/src/BatchImport.vala"
self = (BatchImport*) g_object_new (object_type, NULL);
-#line 483 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = jobs;
-#line 483 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 483 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 499 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp0_ = _g_object_ref0 (jobs);
+#line 499 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (self->priv->jobs);
-#line 483 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->jobs = _tmp1_;
-#line 484 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = name;
-#line 484 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = g_strdup (_tmp2_);
-#line 484 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 499 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->priv->jobs = _tmp0_;
+#line 500 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp1_ = g_strdup (name);
+#line 500 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (self->priv->name);
-#line 484 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->name = _tmp3_;
-#line 485 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = reporter;
-#line 485 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4__target = reporter_target;
-#line 485 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->reporter = _tmp4_;
-#line 485 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->reporter_target = _tmp4__target;
-#line 486 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = prefailed;
-#line 486 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = pre_already_imported;
-#line 486 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = import_manifest_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_LIST, GeeList), G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_LIST, GeeList));
-#line 486 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 500 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->priv->name = _tmp1_;
+#line 501 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->priv->reporter = reporter;
+#line 501 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->priv->reporter_target = reporter_target;
+#line 502 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp2_ = import_manifest_new (G_TYPE_CHECK_INSTANCE_CAST (prefailed, GEE_TYPE_LIST, GeeList), G_TYPE_CHECK_INSTANCE_CAST (pre_already_imported, GEE_TYPE_LIST, GeeList));
+#line 502 "/home/jens/Source/shotwell/src/BatchImport.vala"
_import_manifest_unref0 (self->priv->manifest);
-#line 486 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->manifest = _tmp7_;
-#line 487 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = cancellable;
-#line 487 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp9_ != NULL) {
-#line 5382 "BatchImport.c"
- GCancellable* _tmp10_;
- GCancellable* _tmp11_;
-#line 487 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = cancellable;
-#line 487 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp11_ = _g_object_ref0 (_tmp10_);
-#line 487 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_tmp8_);
-#line 487 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = _tmp11_;
-#line 5393 "BatchImport.c"
+#line 502 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->priv->manifest = _tmp2_;
+#line 503 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (cancellable != NULL) {
+#line 6159 "BatchImport.c"
+ GCancellable* _tmp4_;
+#line 503 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp4_ = _g_object_ref0 (cancellable);
+#line 503 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_object_unref0 (_tmp3_);
+#line 503 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp3_ = _tmp4_;
+#line 6167 "BatchImport.c"
} else {
- GCancellable* _tmp12_;
-#line 487 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp12_ = g_cancellable_new ();
-#line 487 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_tmp8_);
-#line 487 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = _tmp12_;
-#line 5402 "BatchImport.c"
+ GCancellable* _tmp5_;
+#line 503 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp5_ = g_cancellable_new ();
+#line 503 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_object_unref0 (_tmp3_);
+#line 503 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp3_ = _tmp5_;
+#line 6176 "BatchImport.c"
}
-#line 487 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp13_ = _g_object_ref0 (_tmp8_);
-#line 487 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 503 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp6_ = _g_object_ref0 (_tmp3_);
+#line 503 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (self->priv->cancellable);
-#line 487 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->cancellable = _tmp13_;
-#line 488 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp15_ = import_roll;
-#line 488 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp15_ != NULL) {
-#line 5414 "BatchImport.c"
- BatchImportRoll* _tmp16_;
- BatchImportRoll* _tmp17_;
-#line 488 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp16_ = import_roll;
-#line 488 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp17_ = _batch_import_roll_ref0 (_tmp16_);
-#line 488 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_roll_unref0 (_tmp14_);
-#line 488 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp14_ = _tmp17_;
-#line 5425 "BatchImport.c"
+#line 503 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->priv->cancellable = _tmp6_;
+#line 504 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (import_roll != NULL) {
+#line 6186 "BatchImport.c"
+ BatchImportRoll* _tmp8_;
+#line 504 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp8_ = _batch_import_roll_ref0 (import_roll);
+#line 504 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _batch_import_roll_unref0 (_tmp7_);
+#line 504 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp7_ = _tmp8_;
+#line 6194 "BatchImport.c"
} else {
- BatchImportRoll* _tmp18_;
-#line 488 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp18_ = batch_import_roll_new ();
-#line 488 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_roll_unref0 (_tmp14_);
-#line 488 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp14_ = _tmp18_;
-#line 5434 "BatchImport.c"
+ BatchImportRoll* _tmp9_;
+#line 504 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp9_ = batch_import_roll_new ();
+#line 504 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _batch_import_roll_unref0 (_tmp7_);
+#line 504 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp7_ = _tmp9_;
+#line 6203 "BatchImport.c"
}
-#line 488 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp19_ = _batch_import_roll_ref0 (_tmp14_);
-#line 488 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 504 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp10_ = _batch_import_roll_ref0 (_tmp7_);
+#line 504 "/home/jens/Source/shotwell/src/BatchImport.vala"
_batch_import_roll_unref0 (self->priv->import_roll);
-#line 488 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->import_roll = _tmp19_;
-#line 490 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp20_ = skip_manifest;
-#line 490 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp20_ != NULL) {
-#line 5446 "BatchImport.c"
- GeeHashSet* _tmp21_;
-#line 491 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp21_ = gee_hash_set_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL);
-#line 491 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 504 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->priv->import_roll = _tmp10_;
+#line 506 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (skip_manifest != NULL) {
+#line 6213 "BatchImport.c"
+ GeeHashSet* _tmp11_;
+#line 507 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp11_ = gee_hash_set_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL);
+#line 507 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (self->priv->skipset);
-#line 491 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->skipset = _tmp21_;
-#line 5454 "BatchImport.c"
+#line 507 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->priv->skipset = _tmp11_;
+#line 6221 "BatchImport.c"
{
GeeList* _source_list = NULL;
- ImportManifest* _tmp22_;
- GeeList* _tmp23_;
- GeeList* _tmp24_;
+ GeeList* _tmp12_;
+ GeeList* _tmp13_;
gint _source_size = 0;
- GeeList* _tmp25_;
- gint _tmp26_;
- gint _tmp27_;
+ GeeList* _tmp14_;
+ gint _tmp15_;
+ gint _tmp16_;
gint _source_index = 0;
-#line 492 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp22_ = skip_manifest;
-#line 492 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp23_ = _tmp22_->imported;
-#line 492 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp24_ = _g_object_ref0 (_tmp23_);
-#line 492 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _source_list = _tmp24_;
-#line 492 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp25_ = _source_list;
-#line 492 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp26_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 492 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp27_ = _tmp26_;
-#line 492 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _source_size = _tmp27_;
-#line 492 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp12_ = skip_manifest->imported;
+#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp13_ = _g_object_ref0 (_tmp12_);
+#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _source_list = _tmp13_;
+#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp14_ = _source_list;
+#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp15_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_COLLECTION, GeeCollection));
+#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp16_ = _tmp15_;
+#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _source_size = _tmp16_;
+#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala"
_source_index = -1;
-#line 492 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala"
while (TRUE) {
-#line 5485 "BatchImport.c"
- gint _tmp28_;
- gint _tmp29_;
- gint _tmp30_;
+#line 6249 "BatchImport.c"
+ gint _tmp17_;
+ gint _tmp18_;
+ gint _tmp19_;
MediaSource* source = NULL;
- GeeList* _tmp31_;
- gint _tmp32_;
- gpointer _tmp33_;
- GeeHashSet* _tmp34_;
- MediaSource* _tmp35_;
- GFile* _tmp36_;
- GFile* _tmp37_;
-#line 492 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp28_ = _source_index;
-#line 492 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _source_index = _tmp28_ + 1;
-#line 492 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp29_ = _source_index;
-#line 492 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp30_ = _source_size;
-#line 492 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!(_tmp29_ < _tmp30_)) {
-#line 492 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ GeeList* _tmp20_;
+ gint _tmp21_;
+ gpointer _tmp22_;
+ GeeHashSet* _tmp23_;
+ MediaSource* _tmp24_;
+ GFile* _tmp25_;
+ GFile* _tmp26_;
+#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp17_ = _source_index;
+#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _source_index = _tmp17_ + 1;
+#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp18_ = _source_index;
+#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp19_ = _source_size;
+#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (!(_tmp18_ < _tmp19_)) {
+#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala"
break;
-#line 5509 "BatchImport.c"
+#line 6273 "BatchImport.c"
}
-#line 492 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp31_ = _source_list;
-#line 492 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp32_ = _source_index;
-#line 492 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp33_ = gee_list_get (_tmp31_, _tmp32_);
-#line 492 "/home/jens/Source/shotwell/src/BatchImport.vala"
- source = (MediaSource*) _tmp33_;
-#line 493 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp34_ = self->priv->skipset;
-#line 493 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp35_ = source;
-#line 493 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp36_ = media_source_get_file (_tmp35_);
-#line 493 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp37_ = _tmp36_;
-#line 493 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp37_);
-#line 493 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_tmp37_);
-#line 492 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp20_ = _source_list;
+#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp21_ = _source_index;
+#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp22_ = gee_list_get (_tmp20_, _tmp21_);
+#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ source = (MediaSource*) _tmp22_;
+#line 509 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp23_ = self->priv->skipset;
+#line 509 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp24_ = source;
+#line 509 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp25_ = media_source_get_file (_tmp24_);
+#line 509 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp26_ = _tmp25_;
+#line 509 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp26_);
+#line 509 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_object_unref0 (_tmp26_);
+#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (source);
-#line 5533 "BatchImport.c"
+#line 6297 "BatchImport.c"
}
-#line 492 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (_source_list);
-#line 5537 "BatchImport.c"
+#line 6301 "BatchImport.c"
}
}
-#line 498 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp38_ = application_get_instance ();
-#line 498 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp39_ = _tmp38_;
-#line 498 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_signal_connect_object (_tmp39_, "exiting", (GCallback) _batch_import_user_halt_application_exiting, self, 0);
-#line 498 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _application_unref0 (_tmp39_);
-#line 501 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 514 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp27_ = application_get_instance ();
+#line 514 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp28_ = _tmp27_;
+#line 514 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ g_signal_connect_object (_tmp28_, "exiting", (GCallback) _batch_import_user_halt_application_exiting, self, 0);
+#line 514 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _application_unref0 (_tmp28_);
+#line 517 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_timeout_add_full (G_PRIORITY_DEFAULT, (guint) BATCH_IMPORT_DISPLAY_QUEUE_TIMER_MSEC, _batch_import_display_imported_timer_gsource_func, g_object_ref (self), g_object_unref);
-#line 478 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_roll_unref0 (_tmp14_);
-#line 478 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_tmp8_);
-#line 478 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 494 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _batch_import_roll_unref0 (_tmp7_);
+#line 494 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_object_unref0 (_tmp3_);
+#line 494 "/home/jens/Source/shotwell/src/BatchImport.vala"
return self;
-#line 5556 "BatchImport.c"
-}
-
-
-BatchImport* batch_import_new (GeeIterable* jobs, const gchar* name, BatchImportImportReporter reporter, void* reporter_target, GeeArrayList* prefailed, GeeArrayList* pre_already_imported, GCancellable* cancellable, BatchImportRoll* import_roll, ImportManifest* skip_manifest) {
-#line 478 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 6320 "BatchImport.c"
+}
+
+
+BatchImport*
+batch_import_new (GeeIterable* jobs,
+ const gchar* name,
+ BatchImportImportReporter reporter,
+ void* reporter_target,
+ GeeArrayList* prefailed,
+ GeeArrayList* pre_already_imported,
+ GCancellable* cancellable,
+ BatchImportRoll* import_roll,
+ ImportManifest* skip_manifest)
+{
+#line 494 "/home/jens/Source/shotwell/src/BatchImport.vala"
return batch_import_construct (TYPE_BATCH_IMPORT, jobs, name, reporter, reporter_target, prefailed, pre_already_imported, cancellable, import_roll, skip_manifest);
-#line 5563 "BatchImport.c"
+#line 6337 "BatchImport.c"
}
-gchar* batch_import_get_name (BatchImport* self) {
+gchar*
+batch_import_get_name (BatchImport* self)
+{
gchar* result = NULL;
const gchar* _tmp0_;
gchar* _tmp1_;
-#line 511 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 527 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (IS_BATCH_IMPORT (self), NULL);
-#line 512 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 528 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp0_ = self->priv->name;
-#line 512 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 528 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp1_ = g_strdup (_tmp0_);
-#line 512 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 528 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = _tmp1_;
-#line 512 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 528 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 5581 "BatchImport.c"
+#line 6357 "BatchImport.c"
}
-void batch_import_user_halt (BatchImport* self) {
+void
+batch_import_user_halt (BatchImport* self)
+{
GCancellable* _tmp0_;
-#line 515 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 531 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (IS_BATCH_IMPORT (self));
-#line 516 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 532 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp0_ = self->priv->cancellable;
-#line 516 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 532 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_cancellable_cancel (_tmp0_);
-#line 5593 "BatchImport.c"
+#line 6371 "BatchImport.c"
}
-gboolean batch_import_get_untrash_duplicates (BatchImport* self) {
+gboolean
+batch_import_get_untrash_duplicates (BatchImport* self)
+{
gboolean result = FALSE;
gboolean _tmp0_;
-#line 519 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 535 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (IS_BATCH_IMPORT (self), FALSE);
-#line 520 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 536 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp0_ = self->priv->untrash_duplicates;
-#line 520 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 536 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = _tmp0_;
-#line 520 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 536 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 5608 "BatchImport.c"
+#line 6388 "BatchImport.c"
}
-void batch_import_set_untrash_duplicates (BatchImport* self, gboolean untrash_duplicates) {
- gboolean _tmp0_;
-#line 523 "/home/jens/Source/shotwell/src/BatchImport.vala"
+void
+batch_import_set_untrash_duplicates (BatchImport* self,
+ gboolean untrash_duplicates)
+{
+#line 539 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (IS_BATCH_IMPORT (self));
-#line 524 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = untrash_duplicates;
-#line 524 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->untrash_duplicates = _tmp0_;
-#line 5620 "BatchImport.c"
+#line 540 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->priv->untrash_duplicates = untrash_duplicates;
+#line 6400 "BatchImport.c"
}
-gboolean batch_import_get_mark_duplicates_online (BatchImport* self) {
+gboolean
+batch_import_get_mark_duplicates_online (BatchImport* self)
+{
gboolean result = FALSE;
gboolean _tmp0_;
-#line 527 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 543 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (IS_BATCH_IMPORT (self), FALSE);
-#line 528 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 544 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp0_ = self->priv->mark_duplicates_online;
-#line 528 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 544 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = _tmp0_;
-#line 528 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 544 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 5635 "BatchImport.c"
+#line 6417 "BatchImport.c"
}
-void batch_import_set_mark_duplicates_online (BatchImport* self, gboolean mark_duplicates_online) {
- gboolean _tmp0_;
-#line 531 "/home/jens/Source/shotwell/src/BatchImport.vala"
+void
+batch_import_set_mark_duplicates_online (BatchImport* self,
+ gboolean mark_duplicates_online)
+{
+#line 547 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (IS_BATCH_IMPORT (self));
-#line 532 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = mark_duplicates_online;
-#line 532 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->mark_duplicates_online = _tmp0_;
-#line 5647 "BatchImport.c"
+#line 548 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->priv->mark_duplicates_online = mark_duplicates_online;
+#line 6429 "BatchImport.c"
}
-static void batch_import_log_status (BatchImport* self, const gchar* where) {
-#line 535 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static void
+batch_import_log_status (BatchImport* self,
+ const gchar* where)
+{
+#line 551 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (IS_BATCH_IMPORT (self));
-#line 535 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 551 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (where != NULL);
-#line 5656 "BatchImport.c"
+#line 6441 "BatchImport.c"
}
-static gboolean batch_import_report_failure (BatchImport* self, BatchImportResult* import_result) {
+static gboolean
+batch_import_report_failure (BatchImport* self,
+ BatchImportResult* import_result)
+{
gboolean result = FALSE;
gboolean proceed = FALSE;
ImportManifest* _tmp0_;
- BatchImportResult* _tmp1_;
- BatchImportResult* _tmp2_;
- ImportResult _tmp3_;
- gboolean _tmp23_ = FALSE;
- BatchImportResult* _tmp24_;
- ImportResult _tmp25_;
- gboolean _tmp26_;
+ ImportResult _tmp1_;
+ gboolean _tmp14_ = FALSE;
+ ImportResult _tmp15_;
GError * _inner_error_ = NULL;
-#line 545 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 561 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (IS_BATCH_IMPORT (self), FALSE);
-#line 545 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 561 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (IS_BATCH_IMPORT_RESULT (import_result), FALSE);
-#line 546 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 562 "/home/jens/Source/shotwell/src/BatchImport.vala"
proceed = TRUE;
-#line 548 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 564 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp0_ = self->priv->manifest;
-#line 548 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = import_result;
-#line 548 "/home/jens/Source/shotwell/src/BatchImport.vala"
- import_manifest_add_result (_tmp0_, _tmp1_);
-#line 550 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = import_result;
-#line 550 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = _tmp2_->result;
-#line 550 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp3_ != IMPORT_RESULT_SUCCESS) {
-#line 5690 "BatchImport.c"
- BatchImportResult* _tmp4_;
- gboolean _tmp5_ = FALSE;
- BatchImportResult* _tmp6_;
- GFile* _tmp7_;
-#line 551 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = import_result;
-#line 551 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_signal_emit (self, batch_import_signals[BATCH_IMPORT_IMPORT_JOB_FAILED_SIGNAL], 0, _tmp4_);
-#line 553 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = import_result;
-#line 553 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = _tmp6_->file;
-#line 553 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp7_ != NULL) {
-#line 5705 "BatchImport.c"
- BatchImportResult* _tmp8_;
- ImportResult _tmp9_;
- gboolean _tmp10_;
-#line 553 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = import_result;
-#line 553 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = _tmp8_->result;
-#line 553 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = import_result_is_abort (_tmp9_);
-#line 553 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = !_tmp10_;
-#line 5717 "BatchImport.c"
+#line 564 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ import_manifest_add_result (_tmp0_, import_result);
+#line 566 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp1_ = import_result->result;
+#line 566 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp1_ != IMPORT_RESULT_SUCCESS) {
+#line 6470 "BatchImport.c"
+ gboolean _tmp2_ = FALSE;
+ GFile* _tmp3_;
+#line 567 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ g_signal_emit (self, batch_import_signals[BATCH_IMPORT_IMPORT_JOB_FAILED_SIGNAL], 0, import_result);
+#line 569 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp3_ = import_result->file;
+#line 569 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp3_ != NULL) {
+#line 6479 "BatchImport.c"
+ ImportResult _tmp4_;
+#line 569 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp4_ = import_result->result;
+#line 569 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp2_ = !import_result_is_abort (_tmp4_);
+#line 6485 "BatchImport.c"
} else {
-#line 553 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = FALSE;
-#line 5721 "BatchImport.c"
+#line 569 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp2_ = FALSE;
+#line 6489 "BatchImport.c"
}
-#line 553 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp5_) {
-#line 5725 "BatchImport.c"
+#line 569 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp2_) {
+#line 6493 "BatchImport.c"
guint64 filesize = 0ULL;
- guint64 _tmp22_;
-#line 554 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ guint64 _tmp13_;
+#line 570 "/home/jens/Source/shotwell/src/BatchImport.vala"
filesize = (guint64) 0;
-#line 5730 "BatchImport.c"
+#line 6498 "BatchImport.c"
{
- guint64 _tmp11_ = 0ULL;
- BatchImportResult* _tmp12_;
- GFile* _tmp13_;
- guint64 _tmp14_;
-#line 557 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp12_ = import_result;
-#line 557 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp13_ = _tmp12_->file;
-#line 557 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp14_ = query_total_file_size (_tmp13_, NULL, &_inner_error_);
-#line 557 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp11_ = _tmp14_;
-#line 557 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ guint64 _tmp5_ = 0ULL;
+ GFile* _tmp6_;
+#line 573 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp6_ = import_result->file;
+#line 573 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp5_ = query_total_file_size (_tmp6_, NULL, &_inner_error_);
+#line 573 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 5746 "BatchImport.c"
- goto __catch411_g_error;
+#line 6508 "BatchImport.c"
+ goto __catch423_g_error;
}
-#line 557 "/home/jens/Source/shotwell/src/BatchImport.vala"
- filesize = _tmp11_;
-#line 5751 "BatchImport.c"
+#line 573 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ filesize = _tmp5_;
+#line 6513 "BatchImport.c"
}
- goto __finally411;
- __catch411_g_error:
+ goto __finally423;
+ __catch423_g_error:
{
GError* err = NULL;
- BatchImportResult* _tmp15_;
- GFile* _tmp16_;
- gchar* _tmp17_;
- gchar* _tmp18_;
- GError* _tmp19_;
- const gchar* _tmp20_;
-#line 555 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ GFile* _tmp7_;
+ gchar* _tmp8_;
+ gchar* _tmp9_;
+ GError* _tmp10_;
+ const gchar* _tmp11_;
+#line 571 "/home/jens/Source/shotwell/src/BatchImport.vala"
err = _inner_error_;
-#line 555 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 571 "/home/jens/Source/shotwell/src/BatchImport.vala"
_inner_error_ = NULL;
-#line 559 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp15_ = import_result;
-#line 559 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp16_ = _tmp15_->file;
-#line 559 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp17_ = g_file_get_path (_tmp16_);
-#line 559 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp18_ = _tmp17_;
-#line 559 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp19_ = err;
-#line 559 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp20_ = _tmp19_->message;
-#line 559 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_warning ("BatchImport.vala:559: Unable to query file size of %s: %s", _tmp18_, _tmp20_);
-#line 559 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp18_);
-#line 555 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 575 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp7_ = import_result->file;
+#line 575 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp8_ = g_file_get_path (_tmp7_);
+#line 575 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp9_ = _tmp8_;
+#line 575 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp10_ = err;
+#line 575 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp11_ = _tmp10_->message;
+#line 575 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ g_warning ("BatchImport.vala:575: Unable to query file size of %s: %s", _tmp9_, _tmp11_);
+#line 575 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_tmp9_);
+#line 571 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_error_free0 (err);
-#line 5785 "BatchImport.c"
+#line 6544 "BatchImport.c"
}
- __finally411:
-#line 555 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ __finally423:
+#line 571 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 5790 "BatchImport.c"
- gboolean _tmp21_ = FALSE;
-#line 555 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 6549 "BatchImport.c"
+ gboolean _tmp12_ = FALSE;
+#line 571 "/home/jens/Source/shotwell/src/BatchImport.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 555 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 571 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_clear_error (&_inner_error_);
-#line 555 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return _tmp21_;
-#line 5798 "BatchImport.c"
+#line 571 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ return _tmp12_;
+#line 6557 "BatchImport.c"
}
-#line 563 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp22_ = filesize;
-#line 563 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_report_progress (self, _tmp22_);
-#line 5804 "BatchImport.c"
+#line 579 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp13_ = filesize;
+#line 579 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ batch_import_report_progress (self, _tmp13_);
+#line 6563 "BatchImport.c"
}
}
-#line 568 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp24_ = import_result;
-#line 568 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp25_ = _tmp24_->result;
-#line 568 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp26_ = import_result_is_nonuser_abort (_tmp25_);
-#line 568 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp26_) {
-#line 5815 "BatchImport.c"
- gboolean _tmp27_;
-#line 568 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp27_ = proceed;
-#line 568 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp23_ = _tmp27_;
-#line 5821 "BatchImport.c"
+#line 584 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp15_ = import_result->result;
+#line 584 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (import_result_is_nonuser_abort (_tmp15_)) {
+#line 6570 "BatchImport.c"
+ gboolean _tmp16_;
+#line 584 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp16_ = proceed;
+#line 584 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp14_ = _tmp16_;
+#line 6576 "BatchImport.c"
} else {
-#line 568 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp23_ = FALSE;
-#line 5825 "BatchImport.c"
+#line 584 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp14_ = FALSE;
+#line 6580 "BatchImport.c"
}
-#line 568 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp23_) {
-#line 5829 "BatchImport.c"
- BatchImportResult* _tmp28_;
- ImportResult _tmp29_;
- BatchImportResult* _tmp30_;
- const gchar* _tmp31_;
-#line 569 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp28_ = import_result;
-#line 569 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp29_ = _tmp28_->result;
-#line 569 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp30_ = import_result;
-#line 569 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp31_ = _tmp30_->errmsg;
-#line 569 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_signal_emit (self, batch_import_signals[BATCH_IMPORT_FATAL_ERROR_SIGNAL], 0, _tmp29_, _tmp31_);
-#line 570 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 584 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp14_) {
+#line 6584 "BatchImport.c"
+ ImportResult _tmp17_;
+ const gchar* _tmp18_;
+#line 585 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp17_ = import_result->result;
+#line 585 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp18_ = import_result->errmsg;
+#line 585 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ g_signal_emit (self, batch_import_signals[BATCH_IMPORT_FATAL_ERROR_SIGNAL], 0, _tmp17_, _tmp18_);
+#line 586 "/home/jens/Source/shotwell/src/BatchImport.vala"
proceed = FALSE;
-#line 5846 "BatchImport.c"
+#line 6595 "BatchImport.c"
}
-#line 573 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 589 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = proceed;
-#line 573 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 589 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 5852 "BatchImport.c"
+#line 6601 "BatchImport.c"
}
-static void batch_import_report_progress (BatchImport* self, guint64 increment_of_progress) {
+static void
+batch_import_report_progress (BatchImport* self,
+ guint64 increment_of_progress)
+{
guint64 _tmp0_;
guint64 _tmp1_;
- guint64 _tmp2_;
-#line 576 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 592 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (IS_BATCH_IMPORT (self));
-#line 577 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 593 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp0_ = self->priv->completed_bytes;
-#line 577 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = increment_of_progress;
-#line 577 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->completed_bytes = _tmp0_ + _tmp1_;
-#line 581 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = self->priv->completed_bytes;
-#line 581 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp2_ == ((guint64) 0)) {
-#line 5872 "BatchImport.c"
+#line 593 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->priv->completed_bytes = _tmp0_ + increment_of_progress;
+#line 597 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp1_ = self->priv->completed_bytes;
+#line 597 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp1_ == ((guint64) 0)) {
+#line 6621 "BatchImport.c"
gulong now = 0UL;
+ gulong _tmp2_;
gulong _tmp3_;
- gulong _tmp4_;
- gulong _tmp5_;
-#line 582 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = now_ms ();
-#line 582 "/home/jens/Source/shotwell/src/BatchImport.vala"
- now = _tmp3_;
-#line 583 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = now;
-#line 583 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = self->priv->last_preparing_ms;
-#line 583 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if ((_tmp4_ - _tmp5_) > ((gulong) 250)) {
-#line 5887 "BatchImport.c"
- gulong _tmp6_;
-#line 584 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = now;
-#line 584 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->last_preparing_ms = _tmp6_;
-#line 585 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 598 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ now = now_ms ();
+#line 599 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp2_ = now;
+#line 599 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp3_ = self->priv->last_preparing_ms;
+#line 599 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if ((_tmp2_ - _tmp3_) > ((gulong) 250)) {
+#line 6633 "BatchImport.c"
+ gulong _tmp4_;
+#line 600 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp4_ = now;
+#line 600 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->priv->last_preparing_ms = _tmp4_;
+#line 601 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_signal_emit (self, batch_import_signals[BATCH_IMPORT_PREPARING_SIGNAL], 0);
-#line 5895 "BatchImport.c"
+#line 6641 "BatchImport.c"
}
} else {
- guint64 _tmp7_;
-#line 587 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = increment_of_progress;
-#line 587 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp7_ > ((guint64) 0)) {
-#line 5903 "BatchImport.c"
+#line 603 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (increment_of_progress > ((guint64) 0)) {
+#line 6646 "BatchImport.c"
gulong now = 0UL;
- gulong _tmp8_;
- gulong _tmp9_;
- gulong _tmp10_;
-#line 588 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = now_ms ();
-#line 588 "/home/jens/Source/shotwell/src/BatchImport.vala"
- now = _tmp8_;
-#line 589 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = now;
-#line 589 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = self->priv->last_preparing_ms;
-#line 589 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if ((_tmp9_ - _tmp10_) > ((gulong) 250)) {
-#line 5918 "BatchImport.c"
- gulong _tmp11_;
- guint64 _tmp12_;
- guint64 _tmp13_;
-#line 590 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp11_ = now;
-#line 590 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->last_preparing_ms = _tmp11_;
-#line 591 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp12_ = self->priv->completed_bytes;
-#line 591 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp13_ = self->priv->total_bytes;
-#line 591 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_signal_emit (self, batch_import_signals[BATCH_IMPORT_PROGRESS_SIGNAL], 0, _tmp12_, _tmp13_);
-#line 5932 "BatchImport.c"
+ gulong _tmp5_;
+ gulong _tmp6_;
+#line 604 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ now = now_ms ();
+#line 605 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp5_ = now;
+#line 605 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp6_ = self->priv->last_preparing_ms;
+#line 605 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if ((_tmp5_ - _tmp6_) > ((gulong) 250)) {
+#line 6658 "BatchImport.c"
+ gulong _tmp7_;
+ guint64 _tmp8_;
+ guint64 _tmp9_;
+#line 606 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp7_ = now;
+#line 606 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->priv->last_preparing_ms = _tmp7_;
+#line 607 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp8_ = self->priv->completed_bytes;
+#line 607 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp9_ = self->priv->total_bytes;
+#line 607 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ g_signal_emit (self, batch_import_signals[BATCH_IMPORT_PROGRESS_SIGNAL], 0, _tmp8_, _tmp9_);
+#line 6672 "BatchImport.c"
}
}
}
}
-static gboolean batch_import_report_failures (BatchImport* self, BackgroundImportJob* background_job) {
+static gboolean
+batch_import_report_failures (BatchImport* self,
+ BackgroundImportJob* background_job)
+{
gboolean result = FALSE;
gboolean proceed = FALSE;
-#line 596 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 612 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (IS_BATCH_IMPORT (self), FALSE);
-#line 596 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 612 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (IS_BACKGROUND_IMPORT_JOB (background_job), FALSE);
-#line 597 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 613 "/home/jens/Source/shotwell/src/BatchImport.vala"
proceed = TRUE;
-#line 5948 "BatchImport.c"
+#line 6691 "BatchImport.c"
{
GeeList* _import_result_list = NULL;
- BackgroundImportJob* _tmp0_;
+ GeeList* _tmp0_;
GeeList* _tmp1_;
- GeeList* _tmp2_;
gint _import_result_size = 0;
- GeeList* _tmp3_;
+ GeeList* _tmp2_;
+ gint _tmp3_;
gint _tmp4_;
- gint _tmp5_;
gint _import_result_index = 0;
-#line 599 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = background_job;
-#line 599 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = _tmp0_->failed;
-#line 599 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = _g_object_ref0 (_tmp1_);
-#line 599 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _import_result_list = _tmp2_;
-#line 599 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = _import_result_list;
-#line 599 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 599 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = _tmp4_;
-#line 599 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _import_result_size = _tmp5_;
-#line 599 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp0_ = background_job->failed;
+#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp1_ = _g_object_ref0 (_tmp0_);
+#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _import_result_list = _tmp1_;
+#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp2_ = _import_result_list;
+#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp3_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection));
+#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp4_ = _tmp3_;
+#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _import_result_size = _tmp4_;
+#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala"
_import_result_index = -1;
-#line 599 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala"
while (TRUE) {
-#line 5979 "BatchImport.c"
+#line 6719 "BatchImport.c"
+ gint _tmp5_;
gint _tmp6_;
gint _tmp7_;
- gint _tmp8_;
BatchImportResult* import_result = NULL;
- GeeList* _tmp9_;
- gint _tmp10_;
- gpointer _tmp11_;
- BatchImportResult* _tmp12_;
- gboolean _tmp13_;
-#line 599 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ GeeList* _tmp8_;
+ gint _tmp9_;
+ gpointer _tmp10_;
+ BatchImportResult* _tmp11_;
+#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp5_ = _import_result_index;
+#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _import_result_index = _tmp5_ + 1;
+#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp6_ = _import_result_index;
-#line 599 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _import_result_index = _tmp6_ + 1;
-#line 599 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = _import_result_index;
-#line 599 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = _import_result_size;
-#line 599 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!(_tmp7_ < _tmp8_)) {
-#line 599 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp7_ = _import_result_size;
+#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (!(_tmp6_ < _tmp7_)) {
+#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala"
break;
-#line 6001 "BatchImport.c"
+#line 6740 "BatchImport.c"
}
-#line 599 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = _import_result_list;
-#line 599 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = _import_result_index;
-#line 599 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp11_ = gee_list_get (_tmp9_, _tmp10_);
-#line 599 "/home/jens/Source/shotwell/src/BatchImport.vala"
- import_result = (BatchImportResult*) _tmp11_;
-#line 600 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp12_ = import_result;
-#line 600 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp13_ = batch_import_report_failure (self, _tmp12_);
-#line 600 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!_tmp13_) {
-#line 601 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp8_ = _import_result_list;
+#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp9_ = _import_result_index;
+#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp10_ = gee_list_get (_tmp8_, _tmp9_);
+#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ import_result = (BatchImportResult*) _tmp10_;
+#line 616 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp11_ = import_result;
+#line 616 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (!batch_import_report_failure (self, _tmp11_)) {
+#line 617 "/home/jens/Source/shotwell/src/BatchImport.vala"
proceed = FALSE;
-#line 6019 "BatchImport.c"
+#line 6756 "BatchImport.c"
}
-#line 599 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala"
_batch_import_result_unref0 (import_result);
-#line 6023 "BatchImport.c"
+#line 6760 "BatchImport.c"
}
-#line 599 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (_import_result_list);
-#line 6027 "BatchImport.c"
+#line 6764 "BatchImport.c"
}
-#line 604 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 620 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = proceed;
-#line 604 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 620 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 6033 "BatchImport.c"
+#line 6770 "BatchImport.c"
}
-static void batch_import_report_completed (BatchImport* self, const gchar* where) {
+static void
+batch_import_report_completed (BatchImport* self,
+ const gchar* where)
+{
gboolean _tmp0_;
- const gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- BatchImportImportReporter _tmp5_;
- void* _tmp5__target;
- ImportManifest* _tmp9_;
- BatchImportRoll* _tmp10_;
-#line 607 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ gchar* _tmp1_;
+ gchar* _tmp2_;
+ ImportManifest* _tmp3_;
+ GTimer* _tmp4_;
+ gdouble _tmp5_;
+ BatchImportImportReporter _tmp6_;
+ void* _tmp6__target;
+ ImportManifest* _tmp10_;
+ BatchImportRoll* _tmp11_;
+#line 623 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (IS_BATCH_IMPORT (self));
-#line 607 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 623 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (where != NULL);
-#line 608 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 624 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp0_ = self->priv->completed;
-#line 608 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 624 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (_tmp0_) {
-#line 6054 "BatchImport.c"
- const gchar* _tmp1_;
-#line 609 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = where;
-#line 609 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_error ("BatchImport.vala:609: Attempted to complete already-completed import: " \
-"%s", _tmp1_);
-#line 6060 "BatchImport.c"
+#line 625 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ g_error ("BatchImport.vala:625: Attempted to complete already-completed import: " \
+"%s", where);
+#line 6798 "BatchImport.c"
}
-#line 611 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 627 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->priv->completed = TRUE;
-#line 613 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 629 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_flush_ready_sources (self);
-#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = where;
-#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = g_strdup_printf ("Import completed: %s", _tmp2_);
-#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = _tmp3_;
-#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_log_status (self, _tmp4_);
-#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp4_);
-#line 618 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = self->priv->reporter;
-#line 618 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5__target = self->priv->reporter_target;
-#line 618 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp5_ != NULL) {
-#line 6082 "BatchImport.c"
- BatchImportImportReporter _tmp6_;
- void* _tmp6__target;
- ImportManifest* _tmp7_;
- BatchImportRoll* _tmp8_;
-#line 619 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = self->priv->reporter;
-#line 619 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6__target = self->priv->reporter_target;
-#line 619 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = self->priv->manifest;
-#line 619 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = self->priv->import_roll;
-#line 619 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ (_tmp7_, _tmp8_, _tmp6__target);
-#line 6097 "BatchImport.c"
+#line 631 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp1_ = g_strdup_printf ("Import completed: %s", where);
+#line 631 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp2_ = _tmp1_;
+#line 631 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ batch_import_log_status (self, _tmp2_);
+#line 631 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_tmp2_);
+#line 632 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp3_ = self->priv->manifest;
+#line 632 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp4_ = _tmp3_->timer;
+#line 632 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp5_ = g_timer_elapsed (_tmp4_, NULL);
+#line 632 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ g_debug ("BatchImport.vala:632: Import complete after %f", _tmp5_);
+#line 635 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp6_ = self->priv->reporter;
+#line 635 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp6__target = self->priv->reporter_target;
+#line 635 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp6_ != NULL) {
+#line 6826 "BatchImport.c"
+ BatchImportImportReporter _tmp7_;
+ void* _tmp7__target;
+ ImportManifest* _tmp8_;
+ BatchImportRoll* _tmp9_;
+#line 636 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp7_ = self->priv->reporter;
+#line 636 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp7__target = self->priv->reporter_target;
+#line 636 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp8_ = self->priv->manifest;
+#line 636 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp9_ = self->priv->import_roll;
+#line 636 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp7_ (_tmp8_, _tmp9_, _tmp7__target);
+#line 6841 "BatchImport.c"
}
-#line 621 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = self->priv->manifest;
-#line 621 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = self->priv->import_roll;
-#line 621 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_signal_emit (self, batch_import_signals[BATCH_IMPORT_IMPORT_COMPLETE_SIGNAL], 0, _tmp9_, _tmp10_);
-#line 6105 "BatchImport.c"
+#line 638 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp10_ = self->priv->manifest;
+#line 638 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp11_ = self->priv->import_roll;
+#line 638 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ g_signal_emit (self, batch_import_signals[BATCH_IMPORT_IMPORT_COMPLETE_SIGNAL], 0, _tmp10_, _tmp11_);
+#line 6849 "BatchImport.c"
}
-static void batch_import_file_import_complete (BatchImport* self) {
+static void
+batch_import_file_import_complete (BatchImport* self)
+{
gint _tmp0_;
gint _tmp1_;
gboolean _tmp4_ = FALSE;
gint _tmp5_;
-#line 625 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 642 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (IS_BATCH_IMPORT (self));
-#line 627 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 644 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp0_ = self->priv->file_imports_completed;
-#line 627 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 644 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->priv->file_imports_completed = _tmp0_ + 1;
-#line 628 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 645 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp1_ = self->priv->file_imports_to_perform;
-#line 628 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 645 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (_tmp1_ != -1) {
-#line 6124 "BatchImport.c"
+#line 6870 "BatchImport.c"
gint _tmp2_;
gint _tmp3_;
-#line 629 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 646 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp2_ = self->priv->file_imports_completed;
-#line 629 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 646 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp3_ = self->priv->file_imports_to_perform;
-#line 629 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 646 "/home/jens/Source/shotwell/src/BatchImport.vala"
_vala_assert (_tmp2_ <= _tmp3_, "file_imports_completed <= file_imports_to_perform");
-#line 6133 "BatchImport.c"
+#line 6879 "BatchImport.c"
}
-#line 633 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 650 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp5_ = self->priv->file_imports_to_perform;
-#line 633 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 650 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (_tmp5_ != -1) {
-#line 6139 "BatchImport.c"
+#line 6885 "BatchImport.c"
gint _tmp6_;
gint _tmp7_;
-#line 633 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 650 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp6_ = self->priv->file_imports_completed;
-#line 633 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 650 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp7_ = self->priv->file_imports_to_perform;
-#line 633 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 650 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp4_ = _tmp6_ == _tmp7_;
-#line 6148 "BatchImport.c"
+#line 6894 "BatchImport.c"
} else {
-#line 633 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 650 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp4_ = FALSE;
-#line 6152 "BatchImport.c"
+#line 6898 "BatchImport.c"
}
-#line 633 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 650 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (_tmp4_) {
-#line 634 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 651 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_report_completed (self, "completed preparing files, all outstanding imports completed");
-#line 6158 "BatchImport.c"
+#line 6904 "BatchImport.c"
}
}
-static void _batch_import_on_work_sniffed_out_completion_callback (BackgroundJob* job, gpointer self) {
-#line 644 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static void
+_batch_import_on_work_sniffed_out_completion_callback (BackgroundJob* job,
+ gpointer self)
+{
+#line 661 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_on_work_sniffed_out ((BatchImport*) self, job);
-#line 6166 "BatchImport.c"
+#line 6915 "BatchImport.c"
}
-static void _batch_import_on_sniffer_cancelled_cancellation_callback (BackgroundJob* job, gpointer self) {
-#line 644 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static void
+_batch_import_on_sniffer_cancelled_cancellation_callback (BackgroundJob* job,
+ gpointer self)
+{
+#line 661 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_on_sniffer_cancelled ((BatchImport*) self, job);
-#line 6173 "BatchImport.c"
+#line 6925 "BatchImport.c"
}
-static gboolean _batch_import_on_sniffer_working_gsource_func (gpointer self) {
+static gboolean
+_batch_import_on_sniffer_working_gsource_func (gpointer self)
+{
gboolean result;
result = batch_import_on_sniffer_working ((BatchImport*) self);
-#line 646 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 663 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 6182 "BatchImport.c"
+#line 6936 "BatchImport.c"
}
-void batch_import_schedule (BatchImport* self) {
+void
+batch_import_schedule (BatchImport* self)
+{
gboolean _tmp0_;
Workers* _tmp1_;
GeeIterable* _tmp2_;
@@ -6191,2831 +6947,2830 @@ void batch_import_schedule (BatchImport* self) {
GeeHashSet* _tmp4_;
WorkSniffer* _tmp5_;
WorkSniffer* _tmp6_;
- guint _tmp7_;
-#line 637 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 654 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (IS_BATCH_IMPORT (self));
-#line 638 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 655 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp0_ = self->priv->scheduled;
-#line 638 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 655 "/home/jens/Source/shotwell/src/BatchImport.vala"
_vala_assert (_tmp0_ == FALSE, "scheduled == false");
-#line 639 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 656 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->priv->scheduled = TRUE;
-#line 641 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 658 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_signal_emit (self, batch_import_signals[BATCH_IMPORT_STARTING_SIGNAL], 0);
-#line 644 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 661 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp1_ = batch_import_feeder_workers;
-#line 644 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 661 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp2_ = self->priv->jobs;
-#line 644 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 661 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp3_ = self->priv->cancellable;
-#line 644 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 661 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp4_ = self->priv->skipset;
-#line 644 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 661 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp5_ = work_sniffer_new (self, _tmp2_, _batch_import_on_work_sniffed_out_completion_callback, self, _tmp3_, _batch_import_on_sniffer_cancelled_cancellation_callback, self, _tmp4_);
-#line 644 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 661 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp6_ = _tmp5_;
-#line 644 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 661 "/home/jens/Source/shotwell/src/BatchImport.vala"
workers_enqueue (_tmp1_, G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_BACKGROUND_JOB, BackgroundJob));
-#line 644 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 661 "/home/jens/Source/shotwell/src/BatchImport.vala"
_background_job_unref0 (_tmp6_);
-#line 646 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = g_timeout_add_full (G_PRIORITY_DEFAULT, (guint) BATCH_IMPORT_WORK_SNIFFER_THROBBER_MSEC, _batch_import_on_sniffer_working_gsource_func, g_object_ref (self), g_object_unref);
-#line 646 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->throbber_id = _tmp7_;
-#line 6225 "BatchImport.c"
+#line 663 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->priv->throbber_id = g_timeout_add_full (G_PRIORITY_DEFAULT, (guint) BATCH_IMPORT_WORK_SNIFFER_THROBBER_MSEC, _batch_import_on_sniffer_working_gsource_func, g_object_ref (self), g_object_unref);
+#line 6978 "BatchImport.c"
}
-static gboolean batch_import_on_sniffer_working (BatchImport* self) {
+static gboolean
+batch_import_on_sniffer_working (BatchImport* self)
+{
gboolean result = FALSE;
-#line 653 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 670 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (IS_BATCH_IMPORT (self), FALSE);
-#line 654 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 671 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_report_progress (self, (guint64) 0);
-#line 656 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 673 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = TRUE;
-#line 656 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 673 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 6239 "BatchImport.c"
+#line 6994 "BatchImport.c"
}
-static gpointer _background_job_ref0 (gpointer self) {
-#line 662 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static gpointer
+_background_job_ref0 (gpointer self)
+{
+#line 679 "/home/jens/Source/shotwell/src/BatchImport.vala"
return self ? background_job_ref (self) : NULL;
-#line 6246 "BatchImport.c"
+#line 7003 "BatchImport.c"
}
-static void _batch_import_on_file_prepared_notification_callback (BackgroundJob* job, NotificationObject* user, gpointer self) {
-#line 679 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static void
+_batch_import_on_file_prepared_notification_callback (BackgroundJob* job,
+ NotificationObject* user,
+ gpointer self)
+{
+#line 696 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_on_file_prepared ((BatchImport*) self, job, user);
-#line 6253 "BatchImport.c"
+#line 7014 "BatchImport.c"
}
-static void _batch_import_on_files_prepared_completion_callback (BackgroundJob* job, gpointer self) {
-#line 679 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static void
+_batch_import_on_files_prepared_completion_callback (BackgroundJob* job,
+ gpointer self)
+{
+#line 696 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_on_files_prepared ((BatchImport*) self, job);
-#line 6260 "BatchImport.c"
+#line 7024 "BatchImport.c"
}
-static void _batch_import_on_file_prepare_cancelled_cancellation_callback (BackgroundJob* job, gpointer self) {
-#line 679 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static void
+_batch_import_on_file_prepare_cancelled_cancellation_callback (BackgroundJob* job,
+ gpointer self)
+{
+#line 696 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_on_file_prepare_cancelled ((BatchImport*) self, job);
-#line 6267 "BatchImport.c"
+#line 7034 "BatchImport.c"
}
-static void batch_import_on_work_sniffed_out (BatchImport* self, BackgroundJob* j) {
+static void
+batch_import_on_work_sniffed_out (BatchImport* self,
+ BackgroundJob* j)
+{
gboolean _tmp0_;
WorkSniffer* sniffer = NULL;
- BackgroundJob* _tmp1_;
- WorkSniffer* _tmp2_;
- gboolean _tmp3_ = FALSE;
- WorkSniffer* _tmp4_;
- gboolean _tmp5_;
- WorkSniffer* _tmp10_;
- guint64 _tmp11_;
+ WorkSniffer* _tmp1_;
+ gboolean _tmp2_ = FALSE;
+ WorkSniffer* _tmp3_;
+ WorkSniffer* _tmp8_;
+ guint64 _tmp9_;
PrepareFilesJob* prepare_files_job = NULL;
- WorkSniffer* _tmp12_;
- GeeList* _tmp13_;
- GCancellable* _tmp14_;
+ WorkSniffer* _tmp10_;
+ GeeList* _tmp11_;
+ GCancellable* _tmp12_;
+ PrepareFilesJob* _tmp13_;
+ Workers* _tmp14_;
PrepareFilesJob* _tmp15_;
- Workers* _tmp16_;
- PrepareFilesJob* _tmp17_;
- guint _tmp18_;
-#line 659 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ guint _tmp16_;
+#line 676 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (IS_BATCH_IMPORT (self));
-#line 659 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 676 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (IS_BACKGROUND_JOB (j));
-#line 660 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 677 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp0_ = self->priv->completed;
-#line 660 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 677 "/home/jens/Source/shotwell/src/BatchImport.vala"
_vala_assert (!_tmp0_, "!completed");
-#line 662 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = j;
-#line 662 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = _background_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_WORK_SNIFFER, WorkSniffer));
-#line 662 "/home/jens/Source/shotwell/src/BatchImport.vala"
- sniffer = _tmp2_;
-#line 664 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 679 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp1_ = _background_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST (j, TYPE_WORK_SNIFFER, WorkSniffer));
+#line 679 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ sniffer = _tmp1_;
+#line 681 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_log_status (self, "on_work_sniffed_out");
-#line 666 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = sniffer;
-#line 666 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = batch_import_report_failures (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob));
-#line 666 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!_tmp5_) {
-#line 666 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = TRUE;
-#line 6313 "BatchImport.c"
+#line 683 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp3_ = sniffer;
+#line 683 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (!batch_import_report_failures (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob))) {
+#line 683 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp2_ = TRUE;
+#line 7077 "BatchImport.c"
} else {
- WorkSniffer* _tmp6_;
- GeeList* _tmp7_;
- gint _tmp8_;
- gint _tmp9_;
-#line 666 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = sniffer;
-#line 666 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = _tmp6_->files_to_prepare;
-#line 666 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 666 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = _tmp8_;
-#line 666 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = _tmp9_ == 0;
-#line 6329 "BatchImport.c"
+ WorkSniffer* _tmp4_;
+ GeeList* _tmp5_;
+ gint _tmp6_;
+ gint _tmp7_;
+#line 683 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp4_ = sniffer;
+#line 683 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp5_ = _tmp4_->files_to_prepare;
+#line 683 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp6_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection));
+#line 683 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp7_ = _tmp6_;
+#line 683 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp2_ = _tmp7_ == 0;
+#line 7093 "BatchImport.c"
}
-#line 666 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp3_) {
-#line 667 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 683 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp2_) {
+#line 684 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_report_completed (self, "work sniffed out: nothing to do");
-#line 669 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 686 "/home/jens/Source/shotwell/src/BatchImport.vala"
_background_job_unref0 (sniffer);
-#line 669 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 686 "/home/jens/Source/shotwell/src/BatchImport.vala"
return;
-#line 6339 "BatchImport.c"
+#line 7103 "BatchImport.c"
}
-#line 672 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 689 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp8_ = sniffer;
+#line 689 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp9_ = _tmp8_->total_bytes;
+#line 689 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->priv->total_bytes = _tmp9_;
+#line 696 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp10_ = sniffer;
-#line 672 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp11_ = _tmp10_->total_bytes;
-#line 672 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->total_bytes = _tmp11_;
-#line 679 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp12_ = sniffer;
-#line 679 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp13_ = _tmp12_->files_to_prepare;
-#line 679 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp14_ = self->priv->cancellable;
-#line 679 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp15_ = prepare_files_job_new (self, _tmp13_, _batch_import_on_file_prepared_notification_callback, self, _batch_import_on_files_prepared_completion_callback, self, _tmp14_, _batch_import_on_file_prepare_cancelled_cancellation_callback, self);
-#line 679 "/home/jens/Source/shotwell/src/BatchImport.vala"
- prepare_files_job = _tmp15_;
-#line 682 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp16_ = batch_import_feeder_workers;
-#line 682 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp17_ = prepare_files_job;
-#line 682 "/home/jens/Source/shotwell/src/BatchImport.vala"
- workers_enqueue (_tmp16_, G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_BACKGROUND_JOB, BackgroundJob));
-#line 684 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp18_ = self->priv->throbber_id;
-#line 684 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp18_ > ((guint) 0)) {
-#line 6367 "BatchImport.c"
- guint _tmp19_;
-#line 685 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp19_ = self->priv->throbber_id;
-#line 685 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_source_remove (_tmp19_);
-#line 686 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 696 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp11_ = _tmp10_->files_to_prepare;
+#line 696 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp12_ = self->priv->cancellable;
+#line 696 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp13_ = prepare_files_job_new (self, _tmp11_, _batch_import_on_file_prepared_notification_callback, self, _batch_import_on_files_prepared_completion_callback, self, _tmp12_, _batch_import_on_file_prepare_cancelled_cancellation_callback, self);
+#line 696 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ prepare_files_job = _tmp13_;
+#line 699 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp14_ = batch_import_feeder_workers;
+#line 699 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp15_ = prepare_files_job;
+#line 699 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ workers_enqueue (_tmp14_, G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_BACKGROUND_JOB, BackgroundJob));
+#line 701 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp16_ = self->priv->throbber_id;
+#line 701 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp16_ > ((guint) 0)) {
+#line 7131 "BatchImport.c"
+ guint _tmp17_;
+#line 702 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp17_ = self->priv->throbber_id;
+#line 702 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ g_source_remove (_tmp17_);
+#line 703 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->priv->throbber_id = (guint) 0;
-#line 6375 "BatchImport.c"
+#line 7139 "BatchImport.c"
}
-#line 659 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 676 "/home/jens/Source/shotwell/src/BatchImport.vala"
_background_job_unref0 (prepare_files_job);
-#line 659 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 676 "/home/jens/Source/shotwell/src/BatchImport.vala"
_background_job_unref0 (sniffer);
-#line 6381 "BatchImport.c"
+#line 7145 "BatchImport.c"
}
-static void batch_import_on_sniffer_cancelled (BatchImport* self, BackgroundJob* j) {
+static void
+batch_import_on_sniffer_cancelled (BatchImport* self,
+ BackgroundJob* j)
+{
gboolean _tmp0_;
WorkSniffer* sniffer = NULL;
- BackgroundJob* _tmp1_;
+ WorkSniffer* _tmp1_;
WorkSniffer* _tmp2_;
- WorkSniffer* _tmp3_;
- guint _tmp4_;
-#line 690 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ guint _tmp3_;
+#line 707 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (IS_BATCH_IMPORT (self));
-#line 690 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 707 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (IS_BACKGROUND_JOB (j));
-#line 691 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 708 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp0_ = self->priv->completed;
-#line 691 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 708 "/home/jens/Source/shotwell/src/BatchImport.vala"
_vala_assert (!_tmp0_, "!completed");
-#line 693 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = j;
-#line 693 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = _background_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_WORK_SNIFFER, WorkSniffer));
-#line 693 "/home/jens/Source/shotwell/src/BatchImport.vala"
- sniffer = _tmp2_;
-#line 695 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 710 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp1_ = _background_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST (j, TYPE_WORK_SNIFFER, WorkSniffer));
+#line 710 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ sniffer = _tmp1_;
+#line 712 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_log_status (self, "on_sniffer_cancelled");
-#line 697 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = sniffer;
-#line 697 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_report_failures (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob));
-#line 698 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 714 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp2_ = sniffer;
+#line 714 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ batch_import_report_failures (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob));
+#line 715 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_report_completed (self, "work sniffer cancelled");
-#line 700 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = self->priv->throbber_id;
-#line 700 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp4_ > ((guint) 0)) {
-#line 6418 "BatchImport.c"
- guint _tmp5_;
-#line 701 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = self->priv->throbber_id;
-#line 701 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_source_remove (_tmp5_);
-#line 702 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 717 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp3_ = self->priv->throbber_id;
+#line 717 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp3_ > ((guint) 0)) {
+#line 7182 "BatchImport.c"
+ guint _tmp4_;
+#line 718 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp4_ = self->priv->throbber_id;
+#line 718 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ g_source_remove (_tmp4_);
+#line 719 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->priv->throbber_id = (guint) 0;
-#line 6426 "BatchImport.c"
+#line 7190 "BatchImport.c"
}
-#line 690 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 707 "/home/jens/Source/shotwell/src/BatchImport.vala"
_background_job_unref0 (sniffer);
-#line 6430 "BatchImport.c"
+#line 7194 "BatchImport.c"
}
-static void _batch_import_on_thumbnail_writer_completed_completion_callback (BackgroundJob* job, gpointer self) {
-#line 716 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static void
+_batch_import_on_thumbnail_writer_completed_completion_callback (BackgroundJob* job,
+ gpointer self)
+{
+#line 733 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_on_thumbnail_writer_completed ((BatchImport*) self, job);
-#line 6437 "BatchImport.c"
+#line 7204 "BatchImport.c"
}
-static void _batch_import_on_thumbnail_writer_cancelled_cancellation_callback (BackgroundJob* job, gpointer self) {
-#line 716 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static void
+_batch_import_on_thumbnail_writer_cancelled_cancellation_callback (BackgroundJob* job,
+ gpointer self)
+{
+#line 733 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_on_thumbnail_writer_cancelled ((BatchImport*) self, job);
-#line 6444 "BatchImport.c"
+#line 7214 "BatchImport.c"
}
-static void _batch_import_on_import_files_completed_completion_callback (BackgroundJob* job, gpointer self) {
-#line 721 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static void
+_batch_import_on_import_files_completed_completion_callback (BackgroundJob* job,
+ gpointer self)
+{
+#line 738 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_on_import_files_completed ((BatchImport*) self, job);
-#line 6451 "BatchImport.c"
+#line 7224 "BatchImport.c"
}
-static void _batch_import_on_import_files_cancelled_cancellation_callback (BackgroundJob* job, gpointer self) {
-#line 721 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static void
+_batch_import_on_import_files_cancelled_cancellation_callback (BackgroundJob* job,
+ gpointer self)
+{
+#line 738 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_on_import_files_cancelled ((BatchImport*) self, job);
-#line 6458 "BatchImport.c"
+#line 7234 "BatchImport.c"
}
-static void batch_import_flush_import_jobs (BatchImport* self) {
-#line 710 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static void
+batch_import_flush_import_jobs (BatchImport* self)
+{
+#line 727 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (IS_BATCH_IMPORT (self));
-#line 715 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 732 "/home/jens/Source/shotwell/src/BatchImport.vala"
while (TRUE) {
-#line 6467 "BatchImport.c"
+#line 7245 "BatchImport.c"
gboolean _tmp0_ = FALSE;
GeeList* _tmp1_;
gint _tmp2_;
gint _tmp3_;
- Workers* _tmp7_;
- GeeList* _tmp8_;
- gpointer _tmp9_;
- CompletedImportObject* _tmp10_;
- GCancellable* _tmp11_;
+ Workers* _tmp6_;
+ GeeList* _tmp7_;
+ gpointer _tmp8_;
+ CompletedImportObject* _tmp9_;
+ GCancellable* _tmp10_;
+ ThumbnailWriterJob* _tmp11_;
ThumbnailWriterJob* _tmp12_;
- ThumbnailWriterJob* _tmp13_;
-#line 715 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 732 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp1_ = self->priv->ready_thumbnails;
-#line 715 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 732 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp2_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 715 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 732 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp3_ = _tmp2_;
-#line 715 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 732 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (_tmp3_ > 0) {
-#line 6487 "BatchImport.c"
+#line 7265 "BatchImport.c"
Workers* _tmp4_;
- gint _tmp5_;
- guint _tmp6_;
-#line 715 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ guint _tmp5_;
+#line 732 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp4_ = batch_import_import_workers;
-#line 715 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = workers_get_pending_job_count (_tmp4_);
-#line 715 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = self->priv->max_outstanding_import_jobs;
-#line 715 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = ((guint) _tmp5_) < _tmp6_;
-#line 6499 "BatchImport.c"
+#line 732 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp5_ = self->priv->max_outstanding_import_jobs;
+#line 732 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp0_ = ((guint) workers_get_pending_job_count (_tmp4_)) < _tmp5_;
+#line 7274 "BatchImport.c"
} else {
-#line 715 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 732 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp0_ = FALSE;
-#line 6503 "BatchImport.c"
+#line 7278 "BatchImport.c"
}
-#line 715 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 732 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (!_tmp0_) {
-#line 715 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 732 "/home/jens/Source/shotwell/src/BatchImport.vala"
break;
-#line 6509 "BatchImport.c"
+#line 7284 "BatchImport.c"
}
-#line 716 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = batch_import_import_workers;
-#line 716 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = self->priv->ready_thumbnails;
-#line 716 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = gee_list_remove_at (_tmp8_, 0);
-#line 716 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = (CompletedImportObject*) _tmp9_;
-#line 716 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp11_ = self->priv->cancellable;
-#line 716 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp12_ = thumbnail_writer_job_new (self, _tmp10_, _batch_import_on_thumbnail_writer_completed_completion_callback, self, _tmp11_, _batch_import_on_thumbnail_writer_cancelled_cancellation_callback, self);
-#line 716 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp13_ = _tmp12_;
-#line 716 "/home/jens/Source/shotwell/src/BatchImport.vala"
- workers_enqueue (_tmp7_, G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_BACKGROUND_JOB, BackgroundJob));
-#line 716 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _background_job_unref0 (_tmp13_);
-#line 716 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _completed_import_object_unref0 (_tmp10_);
-#line 6531 "BatchImport.c"
+#line 733 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp6_ = batch_import_import_workers;
+#line 733 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp7_ = self->priv->ready_thumbnails;
+#line 733 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp8_ = gee_list_remove_at (_tmp7_, 0);
+#line 733 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp9_ = (CompletedImportObject*) _tmp8_;
+#line 733 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp10_ = self->priv->cancellable;
+#line 733 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp11_ = thumbnail_writer_job_new (self, _tmp9_, _batch_import_on_thumbnail_writer_completed_completion_callback, self, _tmp10_, _batch_import_on_thumbnail_writer_cancelled_cancellation_callback, self);
+#line 733 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp12_ = _tmp11_;
+#line 733 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ workers_enqueue (_tmp6_, G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_BACKGROUND_JOB, BackgroundJob));
+#line 733 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _background_job_unref0 (_tmp12_);
+#line 733 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _completed_import_object_unref0 (_tmp9_);
+#line 7306 "BatchImport.c"
}
-#line 720 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 737 "/home/jens/Source/shotwell/src/BatchImport.vala"
while (TRUE) {
-#line 6535 "BatchImport.c"
- gboolean _tmp14_ = FALSE;
- GeeList* _tmp15_;
+#line 7310 "BatchImport.c"
+ gboolean _tmp13_ = FALSE;
+ GeeList* _tmp14_;
+ gint _tmp15_;
gint _tmp16_;
- gint _tmp17_;
- Workers* _tmp21_;
- GeeList* _tmp22_;
- gpointer _tmp23_;
- PreparedFile* _tmp24_;
- BatchImportRoll* _tmp25_;
- ImportID _tmp26_;
- GCancellable* _tmp27_;
- PreparedFileImportJob* _tmp28_;
- PreparedFileImportJob* _tmp29_;
-#line 720 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp15_ = self->priv->ready_files;
-#line 720 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp16_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 720 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp17_ = _tmp16_;
-#line 720 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp17_ > 0) {
-#line 6557 "BatchImport.c"
- Workers* _tmp18_;
- gint _tmp19_;
- guint _tmp20_;
-#line 720 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp18_ = batch_import_import_workers;
-#line 720 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp19_ = workers_get_pending_job_count (_tmp18_);
-#line 720 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp20_ = self->priv->max_outstanding_import_jobs;
-#line 720 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp14_ = ((guint) _tmp19_) < _tmp20_;
-#line 6569 "BatchImport.c"
+ Workers* _tmp19_;
+ GeeList* _tmp20_;
+ gpointer _tmp21_;
+ PreparedFile* _tmp22_;
+ BatchImportRoll* _tmp23_;
+ ImportID _tmp24_;
+ GCancellable* _tmp25_;
+ PreparedFileImportJob* _tmp26_;
+ PreparedFileImportJob* _tmp27_;
+#line 737 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp14_ = self->priv->ready_files;
+#line 737 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp15_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_COLLECTION, GeeCollection));
+#line 737 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp16_ = _tmp15_;
+#line 737 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp16_ > 0) {
+#line 7332 "BatchImport.c"
+ Workers* _tmp17_;
+ guint _tmp18_;
+#line 737 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp17_ = batch_import_import_workers;
+#line 737 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp18_ = self->priv->max_outstanding_import_jobs;
+#line 737 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp13_ = ((guint) workers_get_pending_job_count (_tmp17_)) < _tmp18_;
+#line 7341 "BatchImport.c"
} else {
-#line 720 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp14_ = FALSE;
-#line 6573 "BatchImport.c"
+#line 737 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp13_ = FALSE;
+#line 7345 "BatchImport.c"
}
-#line 720 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!_tmp14_) {
-#line 720 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 737 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (!_tmp13_) {
+#line 737 "/home/jens/Source/shotwell/src/BatchImport.vala"
break;
-#line 6579 "BatchImport.c"
+#line 7351 "BatchImport.c"
}
-#line 721 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp21_ = batch_import_import_workers;
-#line 721 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp22_ = self->priv->ready_files;
-#line 721 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp23_ = gee_list_remove_at (_tmp22_, 0);
-#line 721 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp24_ = (PreparedFile*) _tmp23_;
-#line 721 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp25_ = self->priv->import_roll;
-#line 721 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp26_ = _tmp25_->import_id;
-#line 721 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp27_ = self->priv->cancellable;
-#line 721 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp28_ = prepared_file_import_job_new (self, _tmp24_, &_tmp26_, _batch_import_on_import_files_completed_completion_callback, self, _tmp27_, _batch_import_on_import_files_cancelled_cancellation_callback, self);
-#line 721 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp29_ = _tmp28_;
-#line 721 "/home/jens/Source/shotwell/src/BatchImport.vala"
- workers_enqueue (_tmp21_, G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, TYPE_BACKGROUND_JOB, BackgroundJob));
-#line 721 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _background_job_unref0 (_tmp29_);
-#line 721 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _prepared_file_unref0 (_tmp24_);
-#line 6605 "BatchImport.c"
+#line 738 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp19_ = batch_import_import_workers;
+#line 738 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp20_ = self->priv->ready_files;
+#line 738 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp21_ = gee_list_remove_at (_tmp20_, 0);
+#line 738 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp22_ = (PreparedFile*) _tmp21_;
+#line 738 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp23_ = self->priv->import_roll;
+#line 738 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp24_ = _tmp23_->import_id;
+#line 738 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp25_ = self->priv->cancellable;
+#line 738 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp26_ = prepared_file_import_job_new (self, _tmp22_, &_tmp24_, _batch_import_on_import_files_completed_completion_callback, self, _tmp25_, _batch_import_on_import_files_cancelled_cancellation_callback, self);
+#line 738 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp27_ = _tmp26_;
+#line 738 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ workers_enqueue (_tmp19_, G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, TYPE_BACKGROUND_JOB, BackgroundJob));
+#line 738 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _background_job_unref0 (_tmp27_);
+#line 738 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _prepared_file_unref0 (_tmp22_);
+#line 7377 "BatchImport.c"
}
}
-static GFile* batch_import_get_in_current_import (BatchImport* self, PreparedFile* prepared_file) {
+static GFile*
+batch_import_get_in_current_import (BatchImport* self,
+ PreparedFile* prepared_file)
+{
GFile* result = NULL;
gboolean _tmp0_ = FALSE;
- PreparedFile* _tmp1_;
- const gchar* _tmp2_;
- PreparedFile* _tmp11_;
- const gchar* _tmp12_;
-#line 729 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ const gchar* _tmp1_;
+ const gchar* _tmp7_;
+#line 746 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (IS_BATCH_IMPORT (self), NULL);
-#line 729 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 746 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (IS_PREPARED_FILE (prepared_file), NULL);
-#line 731 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = prepared_file;
-#line 731 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = _tmp1_->full_md5;
-#line 731 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp2_ != NULL) {
-#line 6627 "BatchImport.c"
- GeeHashMap* _tmp3_;
- PreparedFile* _tmp4_;
- const gchar* _tmp5_;
- gboolean _tmp6_;
-#line 732 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = self->priv->imported_full_md5_table;
-#line 732 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = prepared_file;
-#line 732 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = _tmp4_->full_md5;
-#line 732 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp5_);
-#line 732 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = _tmp6_;
-#line 6642 "BatchImport.c"
+#line 748 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp1_ = prepared_file->full_md5;
+#line 748 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp1_ != NULL) {
+#line 7398 "BatchImport.c"
+ GeeHashMap* _tmp2_;
+ const gchar* _tmp3_;
+#line 749 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp2_ = self->priv->imported_full_md5_table;
+#line 749 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp3_ = prepared_file->full_md5;
+#line 749 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp0_ = gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp3_);
+#line 7407 "BatchImport.c"
} else {
-#line 731 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 748 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp0_ = FALSE;
-#line 6646 "BatchImport.c"
+#line 7411 "BatchImport.c"
}
-#line 731 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 748 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (_tmp0_) {
-#line 6650 "BatchImport.c"
- GeeHashMap* _tmp7_;
- PreparedFile* _tmp8_;
- const gchar* _tmp9_;
- gpointer _tmp10_;
-#line 734 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = self->priv->imported_full_md5_table;
-#line 734 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = prepared_file;
-#line 734 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = _tmp8_->full_md5;
-#line 734 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp9_);
-#line 734 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = (GFile*) _tmp10_;
-#line 734 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 7415 "BatchImport.c"
+ GeeHashMap* _tmp4_;
+ const gchar* _tmp5_;
+ gpointer _tmp6_;
+#line 751 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp4_ = self->priv->imported_full_md5_table;
+#line 751 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp5_ = prepared_file->full_md5;
+#line 751 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp6_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp5_);
+#line 751 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ result = (GFile*) _tmp6_;
+#line 751 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 6667 "BatchImport.c"
+#line 7429 "BatchImport.c"
}
-#line 738 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp11_ = prepared_file;
-#line 738 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp12_ = _tmp11_->full_md5;
-#line 738 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp12_ != NULL) {
-#line 6675 "BatchImport.c"
- GeeHashMap* _tmp13_;
- PreparedFile* _tmp14_;
- const gchar* _tmp15_;
- PreparedFile* _tmp16_;
- GFile* _tmp17_;
-#line 739 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp13_ = self->priv->imported_full_md5_table;
-#line 739 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp14_ = prepared_file;
-#line 739 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp15_ = _tmp14_->full_md5;
-#line 739 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp16_ = prepared_file;
-#line 739 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp17_ = _tmp16_->file;
-#line 739 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp15_, _tmp17_);
-#line 6693 "BatchImport.c"
+#line 755 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp7_ = prepared_file->full_md5;
+#line 755 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp7_ != NULL) {
+#line 7435 "BatchImport.c"
+ GeeHashMap* _tmp8_;
+ const gchar* _tmp9_;
+ GFile* _tmp10_;
+#line 756 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp8_ = self->priv->imported_full_md5_table;
+#line 756 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp9_ = prepared_file->full_md5;
+#line 756 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp10_ = prepared_file->file;
+#line 756 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp9_, _tmp10_);
+#line 7447 "BatchImport.c"
}
-#line 741 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 758 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = NULL;
-#line 741 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 758 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 6699 "BatchImport.c"
+#line 7453 "BatchImport.c"
}
-static gpointer _notification_object_ref0 (gpointer self) {
-#line 748 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static gpointer
+_notification_object_ref0 (gpointer self)
+{
+#line 765 "/home/jens/Source/shotwell/src/BatchImport.vala"
return self ? notification_object_ref (self) : NULL;
-#line 6706 "BatchImport.c"
+#line 7462 "BatchImport.c"
}
-static void batch_import_on_file_prepared (BatchImport* self, BackgroundJob* j, NotificationObject* user) {
+static void
+batch_import_on_file_prepared (BatchImport* self,
+ BackgroundJob* j,
+ NotificationObject* user)
+{
gboolean _tmp0_;
PreparedFileCluster* cluster = NULL;
- NotificationObject* _tmp1_;
- PreparedFileCluster* _tmp2_;
- GeeArrayList* _tmp3_;
+ PreparedFileCluster* _tmp1_;
+ GeeArrayList* _tmp2_;
+ gint _tmp3_;
gint _tmp4_;
- gint _tmp5_;
+ gchar* _tmp5_;
gchar* _tmp6_;
- gchar* _tmp7_;
- GeeArrayList* _tmp8_;
-#line 745 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ GeeArrayList* _tmp7_;
+#line 762 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (IS_BATCH_IMPORT (self));
-#line 745 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 762 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (IS_BACKGROUND_JOB (j));
-#line 745 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 762 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail ((user == NULL) || IS_NOTIFICATION_OBJECT (user));
-#line 746 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 763 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp0_ = self->priv->completed;
-#line 746 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 763 "/home/jens/Source/shotwell/src/BatchImport.vala"
_vala_assert (!_tmp0_, "!completed");
-#line 748 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = user;
-#line 748 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = _notification_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PREPARED_FILE_CLUSTER, PreparedFileCluster));
-#line 748 "/home/jens/Source/shotwell/src/BatchImport.vala"
- cluster = _tmp2_;
-#line 750 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = cluster->list;
-#line 750 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 750 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = _tmp4_;
-#line 750 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = g_strdup_printf ("on_file_prepared (%d files)", _tmp5_);
-#line 750 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = _tmp6_;
-#line 750 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_log_status (self, _tmp7_);
-#line 750 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp7_);
-#line 752 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = cluster->list;
-#line 752 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_process_prepared_files (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_LIST, GeeList), NULL, NULL);
-#line 745 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 765 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp1_ = _notification_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (user, TYPE_PREPARED_FILE_CLUSTER, PreparedFileCluster));
+#line 765 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ cluster = _tmp1_;
+#line 767 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp2_ = cluster->list;
+#line 767 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp3_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
+#line 767 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp4_ = _tmp3_;
+#line 767 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp5_ = g_strdup_printf ("on_file_prepared (%d files)", _tmp4_);
+#line 767 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp6_ = _tmp5_;
+#line 767 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ batch_import_log_status (self, _tmp6_);
+#line 767 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_tmp6_);
+#line 769 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp7_ = cluster->list;
+#line 769 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ batch_import_process_prepared_files (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_LIST, GeeList), NULL, NULL);
+#line 762 "/home/jens/Source/shotwell/src/BatchImport.vala"
_notification_object_unref0 (cluster);
-#line 6757 "BatchImport.c"
+#line 7514 "BatchImport.c"
}
-static void batch_import_process_prepared_files_data_free (gpointer _data) {
+static void
+batch_import_process_prepared_files_data_free (gpointer _data)
+{
BatchImportProcessPreparedFilesData* _data_;
_data_ = _data;
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (_data_->list);
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (_data_->self);
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_slice_free (BatchImportProcessPreparedFilesData, _data_);
-#line 6770 "BatchImport.c"
+#line 7529 "BatchImport.c"
}
-static void batch_import_process_prepared_files_async_ready_wrapper (GObject *source_object, GAsyncResult *res, void *user_data) {
+static void
+batch_import_process_prepared_files_async_ready_wrapper (GObject *source_object,
+ GAsyncResult *res,
+ void *user_data)
+{
BatchImportProcessPreparedFilesData* _task_data_;
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
_task_data_ = g_task_get_task_data (G_TASK (res));
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (_task_data_->_callback_ != NULL) {
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
_task_data_->_callback_ (source_object, res, user_data);
-#line 6782 "BatchImport.c"
+#line 7545 "BatchImport.c"
}
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
_task_data_->_task_complete_ = TRUE;
-#line 6786 "BatchImport.c"
+#line 7549 "BatchImport.c"
}
-static void batch_import_process_prepared_files (BatchImport* self, GeeList* list, GAsyncReadyCallback _callback_, gpointer _user_data_) {
+static void
+batch_import_process_prepared_files (BatchImport* self,
+ GeeList* list,
+ GAsyncReadyCallback _callback_,
+ gpointer _user_data_)
+{
BatchImportProcessPreparedFilesData* _data_;
BatchImport* _tmp0_;
GeeList* _tmp1_;
- GeeList* _tmp2_;
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
_data_ = g_slice_new0 (BatchImportProcessPreparedFilesData);
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
_data_->_callback_ = _callback_;
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
_data_->_async_result = g_task_new (G_OBJECT (self), NULL, batch_import_process_prepared_files_async_ready_wrapper, _user_data_);
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (_callback_ == NULL) {
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
_data_->_task_complete_ = TRUE;
-#line 6805 "BatchImport.c"
+#line 7572 "BatchImport.c"
}
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_task_set_task_data (_data_->_async_result, _data_, batch_import_process_prepared_files_data_free);
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp0_ = _g_object_ref0 (self);
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
_data_->self = _tmp0_;
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = list;
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = _g_object_ref0 (_tmp1_);
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp1_ = _g_object_ref0 (list);
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (_data_->list);
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->list = _tmp2_;
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->list = _tmp1_;
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_process_prepared_files_co (_data_);
-#line 6823 "BatchImport.c"
+#line 7588 "BatchImport.c"
}
-static void batch_import_process_prepared_files_finish (BatchImport* self, GAsyncResult* _res_) {
+static void
+batch_import_process_prepared_files_finish (BatchImport* self,
+ GAsyncResult* _res_)
+{
BatchImportProcessPreparedFilesData* _data_;
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
_data_ = g_task_propagate_pointer (G_TASK (_res_), NULL);
-#line 6831 "BatchImport.c"
+#line 7599 "BatchImport.c"
}
-static gboolean _batch_import_process_prepared_files_co_gsource_func (gpointer self) {
+static gboolean
+_batch_import_process_prepared_files_co_gsource_func (gpointer self)
+{
gboolean result;
result = batch_import_process_prepared_files_co (self);
-#line 759 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 776 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 6840 "BatchImport.c"
+#line 7610 "BatchImport.c"
}
-static gboolean batch_import_process_prepared_files_co (BatchImportProcessPreparedFilesData* _data_) {
-#line 757 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static gboolean
+batch_import_process_prepared_files_co (BatchImportProcessPreparedFilesData* _data_)
+{
+#line 774 "/home/jens/Source/shotwell/src/BatchImport.vala"
switch (_data_->_state_) {
-#line 757 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 774 "/home/jens/Source/shotwell/src/BatchImport.vala"
case 0:
-#line 6849 "BatchImport.c"
+#line 7621 "BatchImport.c"
goto _state_0;
-#line 757 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 774 "/home/jens/Source/shotwell/src/BatchImport.vala"
case 1:
-#line 6853 "BatchImport.c"
+#line 7625 "BatchImport.c"
goto _state_1;
default:
-#line 757 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 774 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_assert_not_reached ();
-#line 6858 "BatchImport.c"
+#line 7630 "BatchImport.c"
}
_state_0:
{
-#line 758 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp0_ = _data_->list;
-#line 758 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp1_ = _g_object_ref0 (_data_->_tmp0_);
-#line 758 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_prepared_file_list = _data_->_tmp1_;
-#line 758 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp2_ = _data_->_prepared_file_list;
-#line 758 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp3_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp2_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 758 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp4_ = _data_->_tmp3_;
-#line 758 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_prepared_file_size = _data_->_tmp4_;
-#line 758 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_prepared_file_index = -1;
-#line 758 "/home/jens/Source/shotwell/src/BatchImport.vala"
- while (TRUE) {
-#line 758 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp5_ = _data_->_prepared_file_index;
-#line 758 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_prepared_file_index = _data_->_tmp5_ + 1;
-#line 758 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp6_ = _data_->_prepared_file_index;
-#line 758 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp7_ = _data_->_prepared_file_size;
-#line 758 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!(_data_->_tmp6_ < _data_->_tmp7_)) {
-#line 758 "/home/jens/Source/shotwell/src/BatchImport.vala"
- break;
-#line 6892 "BatchImport.c"
- }
-#line 758 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp8_ = _data_->_prepared_file_list;
-#line 758 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp9_ = _data_->_prepared_file_index;
-#line 758 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp10_ = gee_list_get (_data_->_tmp8_, _data_->_tmp9_);
-#line 758 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->prepared_file = (PreparedFile*) _data_->_tmp10_;
-#line 759 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, _batch_import_process_prepared_files_co_gsource_func, _data_, NULL);
-#line 760 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_state_ = 1;
-#line 760 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return FALSE;
-#line 6908 "BatchImport.c"
- _state_1:
- ;
-#line 762 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->import_result = NULL;
-#line 767 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp11_ = library_photo_global;
-#line 767 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp12_ = _data_->prepared_file;
-#line 767 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp13_ = _data_->_tmp12_->file;
-#line 767 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp14_ = 0;
-#line 767 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp15_ = library_photo_source_collection_get_state_by_file (_data_->_tmp11_, _data_->_tmp13_, &_data_->_tmp14_);
-#line 767 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->photo_state = _data_->_tmp14_;
-#line 767 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->photo = _data_->_tmp15_;
-#line 769 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp16_ = _data_->photo;
-#line 769 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_data_->_tmp16_ != NULL) {
-#line 770 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp17_ = _data_->photo_state;
-#line 770 "/home/jens/Source/shotwell/src/BatchImport.vala"
- switch (_data_->_tmp17_) {
-#line 770 "/home/jens/Source/shotwell/src/BatchImport.vala"
- case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_ONLINE:
-#line 770 "/home/jens/Source/shotwell/src/BatchImport.vala"
- case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_OFFLINE:
-#line 770 "/home/jens/Source/shotwell/src/BatchImport.vala"
- case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_EDITABLE:
-#line 770 "/home/jens/Source/shotwell/src/BatchImport.vala"
- case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_DEVELOPER:
-#line 6943 "BatchImport.c"
- {
#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp18_ = _data_->prepared_file;
+ _data_->_tmp0_ = _g_object_ref0 (_data_->list);
#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp19_ = _data_->_tmp18_->job;
+ _data_->_prepared_file_list = _data_->_tmp0_;
#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp20_ = _data_->prepared_file;
+ _data_->_tmp1_ = _data_->_prepared_file_list;
#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp21_ = _data_->_tmp20_->file;
+ _data_->_tmp2_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp1_, GEE_TYPE_COLLECTION, GeeCollection));
#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp22_ = _data_->prepared_file;
+ _data_->_tmp3_ = _data_->_tmp2_;
#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp23_ = _data_->_tmp22_->file;
+ _data_->_prepared_file_size = _data_->_tmp3_;
#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp24_ = g_file_get_path (_data_->_tmp23_);
-#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp25_ = _data_->_tmp24_;
+ _data_->_prepared_file_index = -1;
#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp26_ = _data_->prepared_file;
+ while (TRUE) {
#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp27_ = _data_->_tmp26_->file;
+ _data_->_tmp4_ = _data_->_prepared_file_index;
#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp28_ = g_file_get_path (_data_->_tmp27_);
+ _data_->_prepared_file_index = _data_->_tmp4_ + 1;
#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp29_ = _data_->_tmp28_;
+ _data_->_tmp5_ = _data_->_prepared_file_index;
#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp30_ = _data_->photo;
+ _data_->_tmp6_ = _data_->_prepared_file_size;
#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp31_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp30_, TYPE_MEDIA_SOURCE, MediaSource));
+ if (!(_data_->_tmp5_ < _data_->_tmp6_)) {
#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp32_ = _data_->_tmp31_;
+ break;
+#line 7662 "BatchImport.c"
+ }
#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp33_ = duplicated_file_create_from_file (_data_->_tmp32_);
+ _data_->_tmp7_ = _data_->_prepared_file_list;
#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp34_ = _data_->_tmp33_;
+ _data_->_tmp8_ = _data_->_prepared_file_index;
#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp35_ = batch_import_result_new (_data_->_tmp19_, _data_->_tmp21_, _data_->_tmp25_, _data_->_tmp29_, _data_->_tmp34_, IMPORT_RESULT_PHOTO_EXISTS);
+ _data_->_tmp9_ = gee_list_get (_data_->_tmp7_, _data_->_tmp8_);
#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->prepared_file = (PreparedFile*) _data_->_tmp9_;
+#line 776 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, _batch_import_process_prepared_files_co_gsource_func, _data_, NULL);
+#line 777 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_state_ = 1;
+#line 777 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ return FALSE;
+#line 7678 "BatchImport.c"
+ _state_1:
+ ;
+#line 779 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->import_result = NULL;
+#line 784 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp10_ = library_photo_global;
+#line 784 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp11_ = _data_->prepared_file;
+#line 784 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp12_ = _data_->_tmp11_->file;
+#line 784 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp13_ = 0;
+#line 784 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp14_ = library_photo_source_collection_get_state_by_file (_data_->_tmp10_, _data_->_tmp12_, &_data_->_tmp13_);
+#line 784 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->photo_state = _data_->_tmp13_;
+#line 784 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->photo = _data_->_tmp14_;
+#line 786 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp15_ = _data_->photo;
+#line 786 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_data_->_tmp15_ != NULL) {
+#line 787 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp16_ = _data_->photo_state;
+#line 787 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ switch (_data_->_tmp16_) {
+#line 787 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_ONLINE:
+#line 787 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_OFFLINE:
+#line 787 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_EDITABLE:
+#line 787 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_DEVELOPER:
+#line 7713 "BatchImport.c"
+ {
+#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp17_ = _data_->prepared_file;
+#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp18_ = _data_->_tmp17_->job;
+#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp19_ = _data_->prepared_file;
+#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp20_ = _data_->_tmp19_->file;
+#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp21_ = _data_->prepared_file;
+#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp22_ = _data_->_tmp21_->file;
+#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp23_ = g_file_get_path (_data_->_tmp22_);
+#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp24_ = _data_->_tmp23_;
+#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp25_ = _data_->prepared_file;
+#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp26_ = _data_->_tmp25_->file;
+#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp27_ = g_file_get_path (_data_->_tmp26_);
+#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp28_ = _data_->_tmp27_;
+#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp29_ = _data_->photo;
+#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp30_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp29_, TYPE_MEDIA_SOURCE, MediaSource));
+#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp31_ = _data_->_tmp30_;
+#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp32_ = duplicated_file_create_from_file (_data_->_tmp31_);
+#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp33_ = _data_->_tmp32_;
+#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp34_ = batch_import_result_new (_data_->_tmp18_, _data_->_tmp20_, _data_->_tmp24_, _data_->_tmp28_, _data_->_tmp33_, IMPORT_RESULT_PHOTO_EXISTS);
+#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala"
_batch_import_result_unref0 (_data_->import_result);
-#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->import_result = _data_->_tmp35_;
-#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_data_->_tmp34_);
-#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_data_->_tmp32_);
-#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_data_->_tmp29_);
-#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_data_->_tmp25_);
-#line 780 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp36_ = _data_->photo_state;
-#line 780 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_data_->_tmp36_ == LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_OFFLINE) {
-#line 781 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp37_ = _data_->photo;
-#line 781 "/home/jens/Source/shotwell/src/BatchImport.vala"
- media_source_mark_online (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp37_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 7001 "BatchImport.c"
+#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->import_result = _data_->_tmp34_;
+#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_object_unref0 (_data_->_tmp33_);
+#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_object_unref0 (_data_->_tmp31_);
+#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_data_->_tmp28_);
+#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_data_->_tmp24_);
+#line 797 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp35_ = _data_->photo_state;
+#line 797 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_data_->_tmp35_ == LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_OFFLINE) {
+#line 798 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp36_ = _data_->photo;
+#line 798 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ media_source_mark_online (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp36_, TYPE_MEDIA_SOURCE, MediaSource));
+#line 7771 "BatchImport.c"
}
-#line 782 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 799 "/home/jens/Source/shotwell/src/BatchImport.vala"
break;
-#line 7005 "BatchImport.c"
+#line 7775 "BatchImport.c"
}
-#line 770 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 787 "/home/jens/Source/shotwell/src/BatchImport.vala"
case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_TRASH:
-#line 7009 "BatchImport.c"
+#line 7779 "BatchImport.c"
{
-#line 786 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 803 "/home/jens/Source/shotwell/src/BatchImport.vala"
break;
-#line 7013 "BatchImport.c"
+#line 7783 "BatchImport.c"
}
default:
{
-#line 789 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp38_ = _data_->photo_state;
-#line 789 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp39_ = g_enum_get_value (g_type_class_ref (LIBRARY_PHOTO_SOURCE_COLLECTION_TYPE_STATE), _data_->_tmp38_);
-#line 789 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_error ("BatchImport.vala:789: Unknown LibraryPhotoSourceCollection state: %s", (_data_->_tmp39_ != NULL) ? _data_->_tmp39_->value_name : NULL);
-#line 7023 "BatchImport.c"
+#line 806 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp37_ = _data_->photo_state;
+#line 806 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp38_ = g_enum_get_value (g_type_class_ref (LIBRARY_PHOTO_SOURCE_COLLECTION_TYPE_STATE), _data_->_tmp37_);
+#line 806 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ g_error ("BatchImport.vala:806: Unknown LibraryPhotoSourceCollection state: %s", (_data_->_tmp38_ != NULL) ? _data_->_tmp38_->value_name : NULL);
+#line 7793 "BatchImport.c"
}
}
}
-#line 793 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp40_ = _data_->import_result;
-#line 793 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_data_->_tmp40_ != NULL) {
-#line 794 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp41_ = _data_->import_result;
-#line 794 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_report_failure (_data_->self, _data_->_tmp41_);
-#line 795 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 810 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp39_ = _data_->import_result;
+#line 810 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_data_->_tmp39_ != NULL) {
+#line 811 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp40_ = _data_->import_result;
+#line 811 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ batch_import_report_failure (_data_->self, _data_->_tmp40_);
+#line 812 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_file_import_complete (_data_->self);
-#line 797 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 814 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (_data_->photo);
-#line 797 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 814 "/home/jens/Source/shotwell/src/BatchImport.vala"
_batch_import_result_unref0 (_data_->import_result);
-#line 797 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 814 "/home/jens/Source/shotwell/src/BatchImport.vala"
_prepared_file_unref0 (_data_->prepared_file);
-#line 797 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 814 "/home/jens/Source/shotwell/src/BatchImport.vala"
continue;
-#line 7045 "BatchImport.c"
+#line 7815 "BatchImport.c"
}
-#line 801 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp42_ = video_global;
-#line 801 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp43_ = _data_->prepared_file;
-#line 801 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp44_ = _data_->_tmp43_->file;
-#line 801 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp45_ = 0;
-#line 801 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp46_ = video_source_collection_get_state_by_file (_data_->_tmp42_, _data_->_tmp44_, &_data_->_tmp45_);
-#line 801 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->video_state = _data_->_tmp45_;
-#line 801 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->video = _data_->_tmp46_;
-#line 802 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp47_ = _data_->video;
-#line 802 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_data_->_tmp47_ != NULL) {
-#line 803 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp48_ = _data_->video_state;
-#line 803 "/home/jens/Source/shotwell/src/BatchImport.vala"
- switch (_data_->_tmp48_) {
-#line 803 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 818 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp41_ = video_global;
+#line 818 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp42_ = _data_->prepared_file;
+#line 818 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp43_ = _data_->_tmp42_->file;
+#line 818 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp44_ = 0;
+#line 818 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp45_ = video_source_collection_get_state_by_file (_data_->_tmp41_, _data_->_tmp43_, &_data_->_tmp44_);
+#line 818 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->video_state = _data_->_tmp44_;
+#line 818 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->video = _data_->_tmp45_;
+#line 819 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp46_ = _data_->video;
+#line 819 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_data_->_tmp46_ != NULL) {
+#line 820 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp47_ = _data_->video_state;
+#line 820 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ switch (_data_->_tmp47_) {
+#line 820 "/home/jens/Source/shotwell/src/BatchImport.vala"
case VIDEO_SOURCE_COLLECTION_STATE_ONLINE:
-#line 803 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 820 "/home/jens/Source/shotwell/src/BatchImport.vala"
case VIDEO_SOURCE_COLLECTION_STATE_OFFLINE:
-#line 7073 "BatchImport.c"
+#line 7843 "BatchImport.c"
{
-#line 806 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp49_ = _data_->prepared_file;
-#line 806 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp50_ = _data_->_tmp49_->job;
-#line 806 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp51_ = _data_->prepared_file;
-#line 806 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp52_ = _data_->_tmp51_->file;
-#line 806 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp53_ = _data_->prepared_file;
-#line 806 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp54_ = _data_->_tmp53_->file;
-#line 806 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp55_ = g_file_get_path (_data_->_tmp54_);
-#line 806 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp56_ = _data_->_tmp55_;
-#line 806 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp57_ = _data_->prepared_file;
-#line 806 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp58_ = _data_->_tmp57_->file;
-#line 806 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp59_ = g_file_get_path (_data_->_tmp58_);
-#line 806 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp60_ = _data_->_tmp59_;
-#line 806 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp61_ = _data_->video;
-#line 806 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp62_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp61_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 806 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp63_ = _data_->_tmp62_;
-#line 806 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp64_ = duplicated_file_create_from_file (_data_->_tmp63_);
-#line 806 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp65_ = _data_->_tmp64_;
-#line 806 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp66_ = batch_import_result_new (_data_->_tmp50_, _data_->_tmp52_, _data_->_tmp56_, _data_->_tmp60_, _data_->_tmp65_, IMPORT_RESULT_PHOTO_EXISTS);
-#line 806 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp48_ = _data_->prepared_file;
+#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp49_ = _data_->_tmp48_->job;
+#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp50_ = _data_->prepared_file;
+#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp51_ = _data_->_tmp50_->file;
+#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp52_ = _data_->prepared_file;
+#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp53_ = _data_->_tmp52_->file;
+#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp54_ = g_file_get_path (_data_->_tmp53_);
+#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp55_ = _data_->_tmp54_;
+#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp56_ = _data_->prepared_file;
+#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp57_ = _data_->_tmp56_->file;
+#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp58_ = g_file_get_path (_data_->_tmp57_);
+#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp59_ = _data_->_tmp58_;
+#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp60_ = _data_->video;
+#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp61_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp60_, TYPE_MEDIA_SOURCE, MediaSource));
+#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp62_ = _data_->_tmp61_;
+#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp63_ = duplicated_file_create_from_file (_data_->_tmp62_);
+#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp64_ = _data_->_tmp63_;
+#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp65_ = batch_import_result_new (_data_->_tmp49_, _data_->_tmp51_, _data_->_tmp55_, _data_->_tmp59_, _data_->_tmp64_, IMPORT_RESULT_PHOTO_EXISTS);
+#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala"
_batch_import_result_unref0 (_data_->import_result);
-#line 806 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->import_result = _data_->_tmp66_;
-#line 806 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_data_->_tmp65_);
-#line 806 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_data_->_tmp63_);
-#line 806 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_data_->_tmp60_);
-#line 806 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_data_->_tmp56_);
-#line 811 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp67_ = _data_->video_state;
-#line 811 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_data_->_tmp67_ == VIDEO_SOURCE_COLLECTION_STATE_OFFLINE) {
-#line 812 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp68_ = _data_->video;
-#line 812 "/home/jens/Source/shotwell/src/BatchImport.vala"
- media_source_mark_online (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp68_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 7131 "BatchImport.c"
+#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->import_result = _data_->_tmp65_;
+#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_object_unref0 (_data_->_tmp64_);
+#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_object_unref0 (_data_->_tmp62_);
+#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_data_->_tmp59_);
+#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_data_->_tmp55_);
+#line 828 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp66_ = _data_->video_state;
+#line 828 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_data_->_tmp66_ == VIDEO_SOURCE_COLLECTION_STATE_OFFLINE) {
+#line 829 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp67_ = _data_->video;
+#line 829 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ media_source_mark_online (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp67_, TYPE_MEDIA_SOURCE, MediaSource));
+#line 7901 "BatchImport.c"
}
-#line 813 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 830 "/home/jens/Source/shotwell/src/BatchImport.vala"
break;
-#line 7135 "BatchImport.c"
+#line 7905 "BatchImport.c"
}
-#line 803 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 820 "/home/jens/Source/shotwell/src/BatchImport.vala"
case VIDEO_SOURCE_COLLECTION_STATE_TRASH:
-#line 7139 "BatchImport.c"
+#line 7909 "BatchImport.c"
{
-#line 817 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 834 "/home/jens/Source/shotwell/src/BatchImport.vala"
break;
-#line 7143 "BatchImport.c"
+#line 7913 "BatchImport.c"
}
default:
{
-#line 820 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp69_ = _data_->video_state;
-#line 820 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp70_ = g_enum_get_value (g_type_class_ref (VIDEO_SOURCE_COLLECTION_TYPE_STATE), _data_->_tmp69_);
-#line 820 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_error ("BatchImport.vala:820: Unknown VideoSourceCollection state: %s", (_data_->_tmp70_ != NULL) ? _data_->_tmp70_->value_name : NULL);
-#line 7153 "BatchImport.c"
+#line 837 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp68_ = _data_->video_state;
+#line 837 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp69_ = g_enum_get_value (g_type_class_ref (VIDEO_SOURCE_COLLECTION_TYPE_STATE), _data_->_tmp68_);
+#line 837 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ g_error ("BatchImport.vala:837: Unknown VideoSourceCollection state: %s", (_data_->_tmp69_ != NULL) ? _data_->_tmp69_->value_name : NULL);
+#line 7923 "BatchImport.c"
}
}
}
-#line 824 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp71_ = _data_->import_result;
-#line 824 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_data_->_tmp71_ != NULL) {
-#line 825 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp72_ = _data_->import_result;
-#line 825 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_report_failure (_data_->self, _data_->_tmp72_);
-#line 826 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 841 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp70_ = _data_->import_result;
+#line 841 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_data_->_tmp70_ != NULL) {
+#line 842 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp71_ = _data_->import_result;
+#line 842 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ batch_import_report_failure (_data_->self, _data_->_tmp71_);
+#line 843 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_file_import_complete (_data_->self);
-#line 828 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 845 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (_data_->video);
-#line 828 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 845 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (_data_->photo);
-#line 828 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 845 "/home/jens/Source/shotwell/src/BatchImport.vala"
_batch_import_result_unref0 (_data_->import_result);
-#line 828 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 845 "/home/jens/Source/shotwell/src/BatchImport.vala"
_prepared_file_unref0 (_data_->prepared_file);
-#line 828 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 845 "/home/jens/Source/shotwell/src/BatchImport.vala"
continue;
-#line 7177 "BatchImport.c"
+#line 7947 "BatchImport.c"
}
-#line 833 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp74_ = _data_->prepared_file;
-#line 833 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp75_ = _data_->_tmp74_->is_video;
-#line 833 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_data_->_tmp75_) {
-#line 833 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp76_ = _data_->prepared_file;
-#line 833 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp77_ = _data_->_tmp76_->file;
-#line 833 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp78_ = _data_->prepared_file;
-#line 833 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp79_ = _data_->_tmp78_->full_md5;
-#line 833 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp80_ = video_is_duplicate (_data_->_tmp77_, _data_->_tmp79_);
-#line 833 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp73_ = _data_->_tmp80_;
-#line 7197 "BatchImport.c"
- } else {
-#line 833 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp73_ = FALSE;
-#line 7201 "BatchImport.c"
- }
-#line 833 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_data_->_tmp73_) {
-#line 834 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp81_ = video_table_get_instance ();
-#line 834 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp82_ = _data_->_tmp81_;
-#line 834 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp83_ = _data_->prepared_file;
-#line 834 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp84_ = _data_->_tmp83_->file;
-#line 834 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp85_ = _data_->prepared_file;
-#line 834 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp86_ = _data_->_tmp85_->full_md5;
-#line 834 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp88_ = video_table_get_duplicate_ids (_data_->_tmp82_, _data_->_tmp84_, _data_->_tmp86_, &_data_->_tmp87_);
-#line 834 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp89_ = _data_->_tmp88_;
-#line 834 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp89__length1 = _data_->_tmp87_;
-#line 834 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _database_table_unref0 (_data_->_tmp82_);
-#line 834 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->duplicate_ids = _data_->_tmp89_;
-#line 834 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->duplicate_ids_length1 = _data_->_tmp89__length1;
-#line 834 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_duplicate_ids_size_ = _data_->duplicate_ids_length1;
-#line 837 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp90_ = _data_->duplicate_ids;
-#line 837 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp90__length1 = _data_->duplicate_ids_length1;
-#line 837 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _vala_assert (_data_->_tmp90__length1 > 0, "duplicate_ids.length > 0");
-#line 839 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp91_ = _data_->duplicate_ids;
-#line 839 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp91__length1 = _data_->duplicate_ids_length1;
-#line 839 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp92_ = _data_->_tmp91_[0];
-#line 839 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp93_ = duplicated_file_create_from_video_id (&_data_->_tmp92_);
-#line 839 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->duplicated_file = _data_->_tmp93_;
-#line 842 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->result_code = IMPORT_RESULT_PHOTO_EXISTS;
-#line 843 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp94_ = _data_->self->priv->mark_duplicates_online;
-#line 843 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_data_->_tmp94_) {
-#line 844 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp95_ = video_global;
-#line 844 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp96_ = media_source_collection_get_offline_bin (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp95_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
-#line 844 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp97_ = _data_->_tmp96_;
-#line 844 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp98_ = _data_->prepared_file;
-#line 844 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp99_ = _data_->_tmp98_->file;
-#line 844 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp100_ = media_source_holding_tank_fetch_by_master_file (_data_->_tmp97_, _data_->_tmp99_);
-#line 844 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp101_ = G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp100_, TYPE_VIDEO, Video);
-#line 844 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _source_holding_tank_unref0 (_data_->_tmp97_);
-#line 844 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->dupe_video = _data_->_tmp101_;
-#line 846 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp102_ = _data_->dupe_video;
-#line 846 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_data_->_tmp102_ == NULL) {
-#line 847 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp103_ = video_global;
-#line 847 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp104_ = media_source_collection_get_offline_bin (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp103_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
-#line 847 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp105_ = _data_->_tmp104_;
-#line 847 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp106_ = _data_->prepared_file;
-#line 847 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp107_ = _data_->_tmp106_->full_md5;
-#line 847 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp108_ = media_source_holding_tank_fetch_by_md5 (_data_->_tmp105_, _data_->_tmp107_);
-#line 847 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_data_->dupe_video);
-#line 847 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->dupe_video = G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp108_, TYPE_VIDEO, Video);
-#line 847 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _source_holding_tank_unref0 (_data_->_tmp105_);
-#line 7293 "BatchImport.c"
- }
-#line 849 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp109_ = _data_->dupe_video;
-#line 849 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_data_->_tmp109_ != NULL) {
#line 850 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp110_ = _data_->prepared_file;
+ _data_->_tmp73_ = _data_->prepared_file;
+#line 850 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp74_ = _data_->_tmp73_->is_video;
#line 850 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp111_ = _data_->_tmp110_->file;
+ if (_data_->_tmp74_) {
#line 850 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp112_ = g_file_get_path (_data_->_tmp111_);
+ _data_->_tmp75_ = _data_->prepared_file;
#line 850 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp113_ = _data_->_tmp112_;
+ _data_->_tmp76_ = _data_->_tmp75_->file;
#line 850 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_debug ("BatchImport.vala:850: duplicate video found offline, marking as online" \
-": %s", _data_->_tmp113_);
+ _data_->_tmp77_ = _data_->prepared_file;
#line 850 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_data_->_tmp113_);
-#line 853 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp114_ = _data_->dupe_video;
-#line 853 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp115_ = _data_->prepared_file;
-#line 853 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp116_ = _data_->_tmp115_->file;
-#line 853 "/home/jens/Source/shotwell/src/BatchImport.vala"
- monitorable_set_master_file (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp114_, TYPE_MONITORABLE, Monitorable), _data_->_tmp116_);
+ _data_->_tmp78_ = _data_->_tmp77_->full_md5;
+#line 850 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp72_ = video_is_duplicate (_data_->_tmp76_, _data_->_tmp78_);
+#line 7965 "BatchImport.c"
+ } else {
+#line 850 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp72_ = FALSE;
+#line 7969 "BatchImport.c"
+ }
+#line 850 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_data_->_tmp72_) {
+#line 851 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp79_ = video_table_get_instance ();
+#line 851 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp80_ = _data_->_tmp79_;
+#line 851 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp81_ = _data_->prepared_file;
+#line 851 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp82_ = _data_->_tmp81_->file;
+#line 851 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp83_ = _data_->prepared_file;
+#line 851 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp84_ = _data_->_tmp83_->full_md5;
+#line 851 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp86_ = video_table_get_duplicate_ids (_data_->_tmp80_, _data_->_tmp82_, _data_->_tmp84_, &_data_->_tmp85_);
+#line 851 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp87_ = _data_->_tmp86_;
+#line 851 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp87__length1 = _data_->_tmp85_;
+#line 851 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _database_table_unref0 (_data_->_tmp80_);
+#line 851 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->duplicate_ids = _data_->_tmp87_;
+#line 851 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->duplicate_ids_length1 = _data_->_tmp87__length1;
+#line 851 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_duplicate_ids_size_ = _data_->duplicate_ids_length1;
+#line 854 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp88_ = _data_->duplicate_ids;
#line 854 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp117_ = _data_->dupe_video;
+ _data_->_tmp88__length1 = _data_->duplicate_ids_length1;
#line 854 "/home/jens/Source/shotwell/src/BatchImport.vala"
- media_source_mark_online (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp117_, TYPE_MEDIA_SOURCE, MediaSource));
+ _vala_assert (_data_->_tmp88__length1 > 0, "duplicate_ids.length > 0");
#line 856 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_data_->duplicated_file);
+ _data_->_tmp89_ = _data_->duplicate_ids;
#line 856 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->duplicated_file = NULL;
-#line 858 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp118_ = _data_->self->priv->manifest;
-#line 858 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp119_ = _data_->_tmp118_->imported;
-#line 858 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp120_ = _data_->dupe_video;
-#line 858 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp119_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp120_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 859 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp121_ = _data_->dupe_video;
-#line 859 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp122_ = media_source_get_filesize (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp121_, TYPE_MEDIA_SOURCE, MediaSource));
+ _data_->_tmp89__length1 = _data_->duplicate_ids_length1;
+#line 856 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp90_ = _data_->_tmp89_[0];
+#line 856 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp91_ = duplicated_file_create_from_video_id (&_data_->_tmp90_);
+#line 856 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->duplicated_file = _data_->_tmp91_;
#line 859 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_report_progress (_data_->self, _data_->_tmp122_);
+ _data_->result_code = IMPORT_RESULT_PHOTO_EXISTS;
#line 860 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_file_import_complete (_data_->self);
-#line 862 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->result_code = IMPORT_RESULT_SUCCESS;
-#line 7345 "BatchImport.c"
+ _data_->_tmp92_ = _data_->self->priv->mark_duplicates_online;
+#line 860 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_data_->_tmp92_) {
+#line 861 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp93_ = video_global;
+#line 861 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp94_ = media_source_collection_get_offline_bin (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp93_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
+#line 861 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp95_ = _data_->_tmp94_;
+#line 861 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp96_ = _data_->prepared_file;
+#line 861 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp97_ = _data_->_tmp96_->file;
+#line 861 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp98_ = media_source_holding_tank_fetch_by_master_file (_data_->_tmp95_, _data_->_tmp97_);
+#line 861 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp99_ = G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp98_, TYPE_VIDEO, Video);
+#line 861 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _source_holding_tank_unref0 (_data_->_tmp95_);
+#line 861 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->dupe_video = _data_->_tmp99_;
+#line 863 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp100_ = _data_->dupe_video;
+#line 863 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_data_->_tmp100_ == NULL) {
+#line 864 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp101_ = video_global;
+#line 864 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp102_ = media_source_collection_get_offline_bin (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp101_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
+#line 864 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp103_ = _data_->_tmp102_;
+#line 864 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp104_ = _data_->prepared_file;
+#line 864 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp105_ = _data_->_tmp104_->full_md5;
+#line 864 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp106_ = media_source_holding_tank_fetch_by_md5 (_data_->_tmp103_, _data_->_tmp105_);
+#line 864 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_object_unref0 (_data_->dupe_video);
+#line 864 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->dupe_video = G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp106_, TYPE_VIDEO, Video);
+#line 864 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _source_holding_tank_unref0 (_data_->_tmp103_);
+#line 8061 "BatchImport.c"
}
-#line 843 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_data_->dupe_video);
-#line 7349 "BatchImport.c"
- }
-#line 866 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp123_ = _data_->prepared_file;
#line 866 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp124_ = _data_->_tmp123_->job;
+ _data_->_tmp107_ = _data_->dupe_video;
#line 866 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp125_ = _data_->prepared_file;
-#line 866 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp126_ = _data_->_tmp125_->file;
-#line 866 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp127_ = _data_->prepared_file;
-#line 866 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp128_ = _data_->_tmp127_->file;
-#line 866 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp129_ = g_file_get_path (_data_->_tmp128_);
-#line 866 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp130_ = _data_->_tmp129_;
-#line 866 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp131_ = _data_->prepared_file;
-#line 866 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp132_ = _data_->_tmp131_->file;
-#line 866 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp133_ = g_file_get_path (_data_->_tmp132_);
-#line 866 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp134_ = _data_->_tmp133_;
-#line 866 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp135_ = _data_->duplicated_file;
-#line 866 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp136_ = _data_->result_code;
-#line 866 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp137_ = batch_import_result_new (_data_->_tmp124_, _data_->_tmp126_, _data_->_tmp130_, _data_->_tmp134_, _data_->_tmp135_, _data_->_tmp136_);
-#line 866 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_result_unref0 (_data_->import_result);
-#line 866 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->import_result = _data_->_tmp137_;
-#line 866 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_data_->_tmp134_);
-#line 866 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_data_->_tmp130_);
+ if (_data_->_tmp107_ != NULL) {
+#line 867 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp108_ = _data_->prepared_file;
+#line 867 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp109_ = _data_->_tmp108_->file;
+#line 867 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp110_ = g_file_get_path (_data_->_tmp109_);
+#line 867 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp111_ = _data_->_tmp110_;
+#line 867 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ g_debug ("BatchImport.vala:867: duplicate video found offline, marking as online" \
+": %s", _data_->_tmp111_);
+#line 867 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_data_->_tmp111_);
#line 870 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp138_ = _data_->result_code;
+ _data_->_tmp112_ = _data_->dupe_video;
#line 870 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_data_->_tmp138_ == IMPORT_RESULT_SUCCESS) {
-#line 871 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp139_ = _data_->self->priv->manifest;
+ _data_->_tmp113_ = _data_->prepared_file;
+#line 870 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp114_ = _data_->_tmp113_->file;
+#line 870 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ monitorable_set_master_file (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp112_, TYPE_MONITORABLE, Monitorable), _data_->_tmp114_);
#line 871 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp140_ = _data_->import_result;
+ _data_->_tmp115_ = _data_->dupe_video;
#line 871 "/home/jens/Source/shotwell/src/BatchImport.vala"
- import_manifest_add_result (_data_->_tmp139_, _data_->_tmp140_);
+ media_source_mark_online (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp115_, TYPE_MEDIA_SOURCE, MediaSource));
#line 873 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_data_->duplicated_file);
+ _g_object_unref0 (_data_->duplicated_file);
#line 873 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->duplicated_file = NULL;
+#line 875 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp116_ = _data_->self->priv->manifest;
+#line 875 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp117_ = _data_->_tmp116_->imported;
+#line 875 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp118_ = _data_->dupe_video;
+#line 875 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp117_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp118_, TYPE_MEDIA_SOURCE, MediaSource));
+#line 876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp119_ = _data_->dupe_video;
+#line 876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ batch_import_report_progress (_data_->self, media_source_get_filesize (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp119_, TYPE_MEDIA_SOURCE, MediaSource)));
+#line 877 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ batch_import_file_import_complete (_data_->self);
+#line 879 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->result_code = IMPORT_RESULT_SUCCESS;
+#line 8111 "BatchImport.c"
+ }
+#line 860 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_object_unref0 (_data_->dupe_video);
+#line 8115 "BatchImport.c"
+ }
+#line 883 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp120_ = _data_->prepared_file;
+#line 883 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp121_ = _data_->_tmp120_->job;
+#line 883 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp122_ = _data_->prepared_file;
+#line 883 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp123_ = _data_->_tmp122_->file;
+#line 883 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp124_ = _data_->prepared_file;
+#line 883 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp125_ = _data_->_tmp124_->file;
+#line 883 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp126_ = g_file_get_path (_data_->_tmp125_);
+#line 883 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp127_ = _data_->_tmp126_;
+#line 883 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp128_ = _data_->prepared_file;
+#line 883 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp129_ = _data_->_tmp128_->file;
+#line 883 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp130_ = g_file_get_path (_data_->_tmp129_);
+#line 883 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp131_ = _data_->_tmp130_;
+#line 883 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp132_ = _data_->duplicated_file;
+#line 883 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp133_ = _data_->result_code;
+#line 883 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp134_ = batch_import_result_new (_data_->_tmp121_, _data_->_tmp123_, _data_->_tmp127_, _data_->_tmp131_, _data_->_tmp132_, _data_->_tmp133_);
+#line 883 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _batch_import_result_unref0 (_data_->import_result);
+#line 883 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->import_result = _data_->_tmp134_;
+#line 883 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_data_->_tmp131_);
+#line 883 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_data_->_tmp127_);
+#line 887 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp135_ = _data_->result_code;
+#line 887 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_data_->_tmp135_ == IMPORT_RESULT_SUCCESS) {
+#line 888 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp136_ = _data_->self->priv->manifest;
+#line 888 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp137_ = _data_->import_result;
+#line 888 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ import_manifest_add_result (_data_->_tmp136_, _data_->_tmp137_);
+#line 890 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_object_unref0 (_data_->duplicated_file);
+#line 890 "/home/jens/Source/shotwell/src/BatchImport.vala"
_data_->duplicate_ids = (g_free (_data_->duplicate_ids), NULL);
-#line 873 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 890 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (_data_->video);
-#line 873 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 890 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (_data_->photo);
-#line 873 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 890 "/home/jens/Source/shotwell/src/BatchImport.vala"
_batch_import_result_unref0 (_data_->import_result);
-#line 873 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 890 "/home/jens/Source/shotwell/src/BatchImport.vala"
_prepared_file_unref0 (_data_->prepared_file);
-#line 873 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 890 "/home/jens/Source/shotwell/src/BatchImport.vala"
continue;
-#line 7413 "BatchImport.c"
+#line 8179 "BatchImport.c"
}
-#line 833 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 850 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (_data_->duplicated_file);
-#line 833 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 850 "/home/jens/Source/shotwell/src/BatchImport.vala"
_data_->duplicate_ids = (g_free (_data_->duplicate_ids), NULL);
-#line 7419 "BatchImport.c"
+#line 8185 "BatchImport.c"
}
-#line 877 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp141_ = _data_->prepared_file;
-#line 877 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp142_ = batch_import_get_in_current_import (_data_->self, _data_->_tmp141_);
-#line 877 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp143_ = _data_->_tmp142_;
-#line 877 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp144_ = _data_->_tmp143_ != NULL;
-#line 877 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_data_->_tmp143_);
-#line 877 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_data_->_tmp144_) {
-#line 880 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp145_ = _data_->prepared_file;
-#line 880 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp146_ = _data_->_tmp145_->job;
-#line 880 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp147_ = _data_->prepared_file;
-#line 880 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp148_ = _data_->_tmp147_->file;
-#line 880 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp149_ = _data_->prepared_file;
-#line 880 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp150_ = _data_->_tmp149_->file;
-#line 880 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp151_ = g_file_get_path (_data_->_tmp150_);
-#line 880 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp152_ = _data_->_tmp151_;
-#line 880 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp153_ = _data_->prepared_file;
-#line 880 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp154_ = _data_->_tmp153_->file;
-#line 880 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp155_ = g_file_get_path (_data_->_tmp154_);
-#line 880 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 894 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp138_ = _data_->prepared_file;
+#line 894 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp139_ = batch_import_get_in_current_import (_data_->self, _data_->_tmp138_);
+#line 894 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp140_ = _data_->_tmp139_;
+#line 894 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp141_ = _data_->_tmp140_ != NULL;
+#line 894 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_object_unref0 (_data_->_tmp140_);
+#line 894 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_data_->_tmp141_) {
+#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp142_ = _data_->prepared_file;
+#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp143_ = _data_->_tmp142_->job;
+#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp144_ = _data_->prepared_file;
+#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp145_ = _data_->_tmp144_->file;
+#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp146_ = _data_->prepared_file;
+#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp147_ = _data_->_tmp146_->file;
+#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp148_ = g_file_get_path (_data_->_tmp147_);
+#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp149_ = _data_->_tmp148_;
+#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp150_ = _data_->prepared_file;
+#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp151_ = _data_->_tmp150_->file;
+#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp152_ = g_file_get_path (_data_->_tmp151_);
+#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp153_ = _data_->_tmp152_;
+#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp154_ = _data_->prepared_file;
+#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp155_ = batch_import_get_in_current_import (_data_->self, _data_->_tmp154_);
+#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala"
_data_->_tmp156_ = _data_->_tmp155_;
-#line 880 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp157_ = _data_->prepared_file;
-#line 880 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp158_ = batch_import_get_in_current_import (_data_->self, _data_->_tmp157_);
-#line 880 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp159_ = _data_->_tmp158_;
-#line 880 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp160_ = duplicated_file_create_from_file (_data_->_tmp159_);
-#line 880 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp161_ = _data_->_tmp160_;
-#line 880 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp162_ = batch_import_result_new (_data_->_tmp146_, _data_->_tmp148_, _data_->_tmp152_, _data_->_tmp156_, _data_->_tmp161_, IMPORT_RESULT_PHOTO_EXISTS);
-#line 880 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp157_ = duplicated_file_create_from_file (_data_->_tmp156_);
+#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp158_ = _data_->_tmp157_;
+#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp159_ = batch_import_result_new (_data_->_tmp143_, _data_->_tmp145_, _data_->_tmp149_, _data_->_tmp153_, _data_->_tmp158_, IMPORT_RESULT_PHOTO_EXISTS);
+#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala"
_batch_import_result_unref0 (_data_->import_result);
-#line 880 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->import_result = _data_->_tmp162_;
-#line 880 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_data_->_tmp161_);
-#line 880 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_data_->_tmp159_);
-#line 880 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_data_->_tmp156_);
-#line 880 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_data_->_tmp152_);
-#line 7481 "BatchImport.c"
+#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->import_result = _data_->_tmp159_;
+#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_object_unref0 (_data_->_tmp158_);
+#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_object_unref0 (_data_->_tmp156_);
+#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_data_->_tmp153_);
+#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_data_->_tmp149_);
+#line 8247 "BatchImport.c"
} else {
-#line 884 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp163_ = _data_->prepared_file;
-#line 884 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp164_ = _data_->_tmp163_->file;
-#line 884 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp165_ = _data_->prepared_file;
-#line 884 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp166_ = _data_->_tmp165_->full_md5;
-#line 884 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp167_ = _data_->prepared_file;
-#line 884 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp168_ = _data_->_tmp167_->file_format;
-#line 884 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp169_ = photo_is_duplicate (_data_->_tmp164_, NULL, _data_->_tmp166_, _data_->_tmp168_);
-#line 884 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_data_->_tmp169_) {
-#line 886 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp170_ = _data_->self->priv->untrash_duplicates;
-#line 886 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_data_->_tmp170_) {
-#line 889 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp171_ = library_photo_global;
-#line 889 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp172_ = _data_->prepared_file;
-#line 889 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp173_ = _data_->_tmp172_->file;
-#line 889 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp174_ = library_photo_source_collection_get_trashed_by_file (_data_->_tmp171_, _data_->_tmp173_);
-#line 889 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_data_->photo);
-#line 889 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->photo = _data_->_tmp174_;
-#line 891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp176_ = _data_->photo;
-#line 891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_data_->_tmp176_ == NULL) {
-#line 891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp177_ = _data_->prepared_file;
-#line 891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp178_ = _data_->_tmp177_->full_md5;
-#line 891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp175_ = _data_->_tmp178_ != NULL;
-#line 7525 "BatchImport.c"
- } else {
-#line 891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp175_ = FALSE;
-#line 7529 "BatchImport.c"
- }
-#line 891 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_data_->_tmp175_) {
-#line 892 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp179_ = library_photo_global;
-#line 892 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp180_ = _data_->prepared_file;
-#line 892 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp181_ = _data_->_tmp180_->full_md5;
-#line 892 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp182_ = library_photo_source_collection_get_trashed_by_md5 (_data_->_tmp179_, _data_->_tmp181_);
-#line 892 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_data_->photo);
-#line 892 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->photo = _data_->_tmp182_;
-#line 7545 "BatchImport.c"
- }
-#line 894 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp183_ = _data_->photo;
-#line 894 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_data_->_tmp183_ != NULL) {
-#line 895 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp184_ = _data_->prepared_file;
-#line 895 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp185_ = _data_->_tmp184_->file;
-#line 895 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp186_ = g_file_get_path (_data_->_tmp185_);
-#line 895 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp187_ = _data_->_tmp186_;
-#line 895 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_debug ("BatchImport.vala:895: duplicate linked photo found in trash, untrashin" \
-"g and removing transforms for %s", _data_->_tmp187_);
-#line 895 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_data_->_tmp187_);
-#line 898 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp188_ = _data_->photo;
-#line 898 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp189_ = _data_->prepared_file;
-#line 898 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp190_ = _data_->_tmp189_->file;
-#line 898 "/home/jens/Source/shotwell/src/BatchImport.vala"
- monitorable_set_master_file (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp188_, TYPE_MONITORABLE, Monitorable), _data_->_tmp190_);
-#line 899 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp191_ = _data_->photo;
-#line 899 "/home/jens/Source/shotwell/src/BatchImport.vala"
- media_source_untrash (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp191_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 900 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp192_ = _data_->photo;
-#line 900 "/home/jens/Source/shotwell/src/BatchImport.vala"
- photo_remove_all_transformations (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp192_, TYPE_PHOTO, Photo));
-#line 7579 "BatchImport.c"
- }
- }
-#line 904 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp194_ = _data_->photo;
-#line 904 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_data_->_tmp194_ == NULL) {
-#line 904 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp195_ = _data_->self->priv->mark_duplicates_online;
-#line 904 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp193_ = _data_->_tmp195_;
-#line 7590 "BatchImport.c"
- } else {
-#line 904 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp193_ = FALSE;
-#line 7594 "BatchImport.c"
- }
-#line 904 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_data_->_tmp193_) {
+#line 901 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp160_ = _data_->prepared_file;
+#line 901 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp161_ = _data_->_tmp160_->file;
+#line 901 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp162_ = _data_->prepared_file;
+#line 901 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp163_ = _data_->_tmp162_->full_md5;
+#line 901 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp164_ = _data_->prepared_file;
+#line 901 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp165_ = _data_->_tmp164_->file_format;
+#line 901 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (photo_is_duplicate (_data_->_tmp161_, NULL, _data_->_tmp163_, _data_->_tmp165_)) {
+#line 903 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp166_ = _data_->self->priv->untrash_duplicates;
+#line 903 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_data_->_tmp166_) {
#line 906 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp196_ = library_photo_global;
+ _data_->_tmp167_ = library_photo_global;
#line 906 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp197_ = _data_->prepared_file;
+ _data_->_tmp168_ = _data_->prepared_file;
#line 906 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp198_ = _data_->_tmp197_->file;
+ _data_->_tmp169_ = _data_->_tmp168_->file;
#line 906 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp199_ = library_photo_source_collection_get_offline_by_file (_data_->_tmp196_, _data_->_tmp198_);
+ _data_->_tmp170_ = library_photo_source_collection_get_trashed_by_file (_data_->_tmp167_, _data_->_tmp169_);
#line 906 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (_data_->photo);
#line 906 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->photo = _data_->_tmp199_;
+ _data_->photo = _data_->_tmp170_;
#line 908 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp201_ = _data_->photo;
+ _data_->_tmp172_ = _data_->photo;
#line 908 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_data_->_tmp201_ == NULL) {
+ if (_data_->_tmp172_ == NULL) {
#line 908 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp202_ = _data_->prepared_file;
+ _data_->_tmp173_ = _data_->prepared_file;
#line 908 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp203_ = _data_->_tmp202_->full_md5;
+ _data_->_tmp174_ = _data_->_tmp173_->full_md5;
#line 908 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp200_ = _data_->_tmp203_ != NULL;
-#line 7620 "BatchImport.c"
+ _data_->_tmp171_ = _data_->_tmp174_ != NULL;
+#line 8289 "BatchImport.c"
} else {
#line 908 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp200_ = FALSE;
-#line 7624 "BatchImport.c"
+ _data_->_tmp171_ = FALSE;
+#line 8293 "BatchImport.c"
}
#line 908 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_data_->_tmp200_) {
+ if (_data_->_tmp171_) {
#line 909 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp204_ = library_photo_global;
+ _data_->_tmp175_ = library_photo_global;
#line 909 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp205_ = _data_->prepared_file;
+ _data_->_tmp176_ = _data_->prepared_file;
#line 909 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp206_ = _data_->_tmp205_->full_md5;
+ _data_->_tmp177_ = _data_->_tmp176_->full_md5;
#line 909 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp207_ = library_photo_source_collection_get_offline_by_md5 (_data_->_tmp204_, _data_->_tmp206_);
+ _data_->_tmp178_ = library_photo_source_collection_get_trashed_by_md5 (_data_->_tmp175_, _data_->_tmp177_);
#line 909 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (_data_->photo);
#line 909 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->photo = _data_->_tmp207_;
-#line 7640 "BatchImport.c"
+ _data_->photo = _data_->_tmp178_;
+#line 8309 "BatchImport.c"
}
#line 911 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp208_ = _data_->photo;
+ _data_->_tmp179_ = _data_->photo;
#line 911 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_data_->_tmp208_ != NULL) {
+ if (_data_->_tmp179_ != NULL) {
#line 912 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp209_ = _data_->prepared_file;
+ _data_->_tmp180_ = _data_->prepared_file;
#line 912 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp210_ = _data_->_tmp209_->file;
+ _data_->_tmp181_ = _data_->_tmp180_->file;
#line 912 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp211_ = g_file_get_path (_data_->_tmp210_);
+ _data_->_tmp182_ = g_file_get_path (_data_->_tmp181_);
#line 912 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp212_ = _data_->_tmp211_;
+ _data_->_tmp183_ = _data_->_tmp182_;
#line 912 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_debug ("BatchImport.vala:912: duplicate photo found marked offline, marking on" \
-"line: %s", _data_->_tmp212_);
+ g_debug ("BatchImport.vala:912: duplicate linked photo found in trash, untrashin" \
+"g and removing transforms for %s", _data_->_tmp183_);
#line 912 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_data_->_tmp212_);
+ _g_free0 (_data_->_tmp183_);
#line 915 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp213_ = _data_->photo;
+ _data_->_tmp184_ = _data_->photo;
#line 915 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp214_ = _data_->prepared_file;
+ _data_->_tmp185_ = _data_->prepared_file;
#line 915 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp215_ = _data_->_tmp214_->file;
+ _data_->_tmp186_ = _data_->_tmp185_->file;
#line 915 "/home/jens/Source/shotwell/src/BatchImport.vala"
- monitorable_set_master_file (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp213_, TYPE_MONITORABLE, Monitorable), _data_->_tmp215_);
+ monitorable_set_master_file (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp184_, TYPE_MONITORABLE, Monitorable), _data_->_tmp186_);
#line 916 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp216_ = _data_->photo;
+ _data_->_tmp187_ = _data_->photo;
#line 916 "/home/jens/Source/shotwell/src/BatchImport.vala"
- media_source_mark_online (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp216_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 7670 "BatchImport.c"
+ media_source_untrash (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp187_, TYPE_MEDIA_SOURCE, MediaSource));
+#line 917 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp188_ = _data_->photo;
+#line 917 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ photo_remove_all_transformations (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp188_, TYPE_PHOTO, Photo));
+#line 8343 "BatchImport.c"
}
}
-#line 920 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp217_ = _data_->photo;
-#line 920 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_data_->_tmp217_ != NULL) {
#line 921 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp218_ = _data_->prepared_file;
+ _data_->_tmp190_ = _data_->photo;
#line 921 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp219_ = _data_->_tmp218_->job;
+ if (_data_->_tmp190_ == NULL) {
#line 921 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp220_ = _data_->prepared_file;
+ _data_->_tmp191_ = _data_->self->priv->mark_duplicates_online;
#line 921 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp221_ = _data_->_tmp220_->file;
-#line 921 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp222_ = _data_->prepared_file;
-#line 921 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp223_ = _data_->_tmp222_->file;
-#line 921 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp224_ = g_file_get_path (_data_->_tmp223_);
-#line 921 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp225_ = _data_->_tmp224_;
-#line 921 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp226_ = _data_->prepared_file;
-#line 921 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp227_ = _data_->_tmp226_->file;
-#line 921 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp228_ = g_file_get_path (_data_->_tmp227_);
-#line 921 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp229_ = _data_->_tmp228_;
-#line 921 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp230_ = batch_import_result_new (_data_->_tmp219_, _data_->_tmp221_, _data_->_tmp225_, _data_->_tmp229_, NULL, IMPORT_RESULT_SUCCESS);
-#line 921 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_result_unref0 (_data_->import_result);
-#line 921 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->import_result = _data_->_tmp230_;
+ _data_->_tmp189_ = _data_->_tmp191_;
+#line 8354 "BatchImport.c"
+ } else {
#line 921 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_data_->_tmp229_);
+ _data_->_tmp189_ = FALSE;
+#line 8358 "BatchImport.c"
+ }
#line 921 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_data_->_tmp225_);
+ if (_data_->_tmp189_) {
+#line 923 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp192_ = library_photo_global;
+#line 923 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp193_ = _data_->prepared_file;
+#line 923 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp194_ = _data_->_tmp193_->file;
+#line 923 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp195_ = library_photo_source_collection_get_offline_by_file (_data_->_tmp192_, _data_->_tmp194_);
+#line 923 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_object_unref0 (_data_->photo);
+#line 923 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->photo = _data_->_tmp195_;
+#line 925 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp197_ = _data_->photo;
#line 925 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp231_ = _data_->self->priv->manifest;
+ if (_data_->_tmp197_ == NULL) {
#line 925 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp232_ = _data_->_tmp231_->imported;
+ _data_->_tmp198_ = _data_->prepared_file;
#line 925 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp233_ = _data_->photo;
+ _data_->_tmp199_ = _data_->_tmp198_->full_md5;
+#line 925 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp196_ = _data_->_tmp199_ != NULL;
+#line 8384 "BatchImport.c"
+ } else {
+#line 925 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp196_ = FALSE;
+#line 8388 "BatchImport.c"
+ }
#line 925 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp232_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp233_, TYPE_MEDIA_SOURCE, MediaSource));
+ if (_data_->_tmp196_) {
#line 926 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp234_ = _data_->self->priv->manifest;
+ _data_->_tmp200_ = library_photo_global;
#line 926 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp235_ = _data_->import_result;
+ _data_->_tmp201_ = _data_->prepared_file;
#line 926 "/home/jens/Source/shotwell/src/BatchImport.vala"
- import_manifest_add_result (_data_->_tmp234_, _data_->_tmp235_);
-#line 928 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp236_ = _data_->photo;
+ _data_->_tmp202_ = _data_->_tmp201_->full_md5;
+#line 926 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp203_ = library_photo_source_collection_get_offline_by_md5 (_data_->_tmp200_, _data_->_tmp202_);
+#line 926 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_object_unref0 (_data_->photo);
+#line 926 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->photo = _data_->_tmp203_;
+#line 8404 "BatchImport.c"
+ }
#line 928 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp237_ = media_source_get_filesize (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp236_, TYPE_MEDIA_SOURCE, MediaSource));
+ _data_->_tmp204_ = _data_->photo;
#line 928 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_report_progress (_data_->self, _data_->_tmp237_);
+ if (_data_->_tmp204_ != NULL) {
+#line 929 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp205_ = _data_->prepared_file;
+#line 929 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp206_ = _data_->_tmp205_->file;
#line 929 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp207_ = g_file_get_path (_data_->_tmp206_);
+#line 929 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp208_ = _data_->_tmp207_;
+#line 929 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ g_debug ("BatchImport.vala:929: duplicate photo found marked offline, marking on" \
+"line: %s", _data_->_tmp208_);
+#line 929 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_data_->_tmp208_);
+#line 932 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp209_ = _data_->photo;
+#line 932 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp210_ = _data_->prepared_file;
+#line 932 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp211_ = _data_->_tmp210_->file;
+#line 932 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ monitorable_set_master_file (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp209_, TYPE_MONITORABLE, Monitorable), _data_->_tmp211_);
+#line 933 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp212_ = _data_->photo;
+#line 933 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ media_source_mark_online (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp212_, TYPE_MEDIA_SOURCE, MediaSource));
+#line 8434 "BatchImport.c"
+ }
+ }
+#line 937 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp213_ = _data_->photo;
+#line 937 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_data_->_tmp213_ != NULL) {
+#line 938 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp214_ = _data_->prepared_file;
+#line 938 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp215_ = _data_->_tmp214_->job;
+#line 938 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp216_ = _data_->prepared_file;
+#line 938 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp217_ = _data_->_tmp216_->file;
+#line 938 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp218_ = _data_->prepared_file;
+#line 938 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp219_ = _data_->_tmp218_->file;
+#line 938 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp220_ = g_file_get_path (_data_->_tmp219_);
+#line 938 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp221_ = _data_->_tmp220_;
+#line 938 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp222_ = _data_->prepared_file;
+#line 938 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp223_ = _data_->_tmp222_->file;
+#line 938 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp224_ = g_file_get_path (_data_->_tmp223_);
+#line 938 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp225_ = _data_->_tmp224_;
+#line 938 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp226_ = batch_import_result_new (_data_->_tmp215_, _data_->_tmp217_, _data_->_tmp221_, _data_->_tmp225_, NULL, IMPORT_RESULT_SUCCESS);
+#line 938 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _batch_import_result_unref0 (_data_->import_result);
+#line 938 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->import_result = _data_->_tmp226_;
+#line 938 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_data_->_tmp225_);
+#line 938 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_data_->_tmp221_);
+#line 942 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp227_ = _data_->self->priv->manifest;
+#line 942 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp228_ = _data_->_tmp227_->imported;
+#line 942 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp229_ = _data_->photo;
+#line 942 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp228_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp229_, TYPE_MEDIA_SOURCE, MediaSource));
+#line 943 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp230_ = _data_->self->priv->manifest;
+#line 943 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp231_ = _data_->import_result;
+#line 943 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ import_manifest_add_result (_data_->_tmp230_, _data_->_tmp231_);
+#line 945 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp232_ = _data_->photo;
+#line 945 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ batch_import_report_progress (_data_->self, media_source_get_filesize (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp232_, TYPE_MEDIA_SOURCE, MediaSource)));
+#line 946 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_file_import_complete (_data_->self);
-#line 931 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 948 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (_data_->video);
-#line 931 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 948 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (_data_->photo);
-#line 931 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 948 "/home/jens/Source/shotwell/src/BatchImport.vala"
_batch_import_result_unref0 (_data_->import_result);
-#line 931 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 948 "/home/jens/Source/shotwell/src/BatchImport.vala"
_prepared_file_unref0 (_data_->prepared_file);
-#line 931 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 948 "/home/jens/Source/shotwell/src/BatchImport.vala"
continue;
-#line 7743 "BatchImport.c"
+#line 8505 "BatchImport.c"
}
-#line 934 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp238_ = _data_->prepared_file;
-#line 934 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp239_ = _data_->_tmp238_->file;
-#line 934 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp240_ = g_file_get_path (_data_->_tmp239_);
-#line 934 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp241_ = _data_->_tmp240_;
-#line 934 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_debug ("BatchImport.vala:934: duplicate photo detected, not importing %s", _data_->_tmp241_);
-#line 934 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_data_->_tmp241_);
-#line 936 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp242_ = photo_table_get_instance ();
-#line 936 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp243_ = _data_->_tmp242_;
-#line 936 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp244_ = _data_->prepared_file;
-#line 936 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp245_ = _data_->_tmp244_->file;
-#line 936 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp246_ = _data_->prepared_file;
-#line 936 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp247_ = _data_->_tmp246_->full_md5;
-#line 936 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp248_ = _data_->prepared_file;
-#line 936 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp249_ = _data_->_tmp248_->file_format;
-#line 936 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp251_ = photo_table_get_duplicate_ids (_data_->_tmp243_, _data_->_tmp245_, NULL, _data_->_tmp247_, _data_->_tmp249_, &_data_->_tmp250_);
-#line 936 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp252_ = _data_->_tmp251_;
-#line 936 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp252__length1 = _data_->_tmp250_;
-#line 936 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _database_table_unref0 (_data_->_tmp243_);
-#line 936 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->photo_ids = _data_->_tmp252_;
-#line 936 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->photo_ids_length1 = _data_->_tmp252__length1;
-#line 936 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 951 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp233_ = _data_->prepared_file;
+#line 951 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp234_ = _data_->_tmp233_->file;
+#line 951 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp235_ = g_file_get_path (_data_->_tmp234_);
+#line 951 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp236_ = _data_->_tmp235_;
+#line 951 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ g_debug ("BatchImport.vala:951: duplicate photo detected, not importing %s", _data_->_tmp236_);
+#line 951 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_data_->_tmp236_);
+#line 953 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp237_ = photo_table_get_instance ();
+#line 953 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp238_ = _data_->_tmp237_;
+#line 953 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp239_ = _data_->prepared_file;
+#line 953 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp240_ = _data_->_tmp239_->file;
+#line 953 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp241_ = _data_->prepared_file;
+#line 953 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp242_ = _data_->_tmp241_->full_md5;
+#line 953 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp243_ = _data_->prepared_file;
+#line 953 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp244_ = _data_->_tmp243_->file_format;
+#line 953 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp246_ = photo_table_get_duplicate_ids (_data_->_tmp238_, _data_->_tmp240_, NULL, _data_->_tmp242_, _data_->_tmp244_, &_data_->_tmp245_);
+#line 953 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp247_ = _data_->_tmp246_;
+#line 953 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp247__length1 = _data_->_tmp245_;
+#line 953 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _database_table_unref0 (_data_->_tmp238_);
+#line 953 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->photo_ids = _data_->_tmp247_;
+#line 953 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->photo_ids_length1 = _data_->_tmp247__length1;
+#line 953 "/home/jens/Source/shotwell/src/BatchImport.vala"
_data_->_photo_ids_size_ = _data_->photo_ids_length1;
-#line 939 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp253_ = _data_->photo_ids;
-#line 939 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp253__length1 = _data_->photo_ids_length1;
-#line 939 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _vala_assert (_data_->_tmp253__length1 > 0, "photo_ids.length > 0");
-#line 941 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp254_ = _data_->photo_ids;
-#line 941 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp254__length1 = _data_->photo_ids_length1;
-#line 941 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp255_ = _data_->_tmp254_[0];
-#line 941 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp256_ = duplicated_file_create_from_photo_id (&_data_->_tmp255_);
-#line 941 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_vala1_duplicated_file = _data_->_tmp256_;
-#line 943 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp257_ = _data_->prepared_file;
-#line 943 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp258_ = _data_->_tmp257_->job;
-#line 943 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp259_ = _data_->prepared_file;
-#line 943 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp260_ = _data_->_tmp259_->file;
-#line 943 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp261_ = _data_->prepared_file;
-#line 943 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp262_ = _data_->_tmp261_->file;
-#line 943 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp263_ = g_file_get_path (_data_->_tmp262_);
-#line 943 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp264_ = _data_->_tmp263_;
-#line 943 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp265_ = _data_->prepared_file;
-#line 943 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp266_ = _data_->_tmp265_->file;
-#line 943 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp267_ = g_file_get_path (_data_->_tmp266_);
-#line 943 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp268_ = _data_->_tmp267_;
-#line 943 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp269_ = _data_->_vala1_duplicated_file;
-#line 943 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp270_ = batch_import_result_new (_data_->_tmp258_, _data_->_tmp260_, _data_->_tmp264_, _data_->_tmp268_, _data_->_tmp269_, IMPORT_RESULT_PHOTO_EXISTS);
-#line 943 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 956 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp248_ = _data_->photo_ids;
+#line 956 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp248__length1 = _data_->photo_ids_length1;
+#line 956 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _vala_assert (_data_->_tmp248__length1 > 0, "photo_ids.length > 0");
+#line 958 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp249_ = _data_->photo_ids;
+#line 958 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp249__length1 = _data_->photo_ids_length1;
+#line 958 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp250_ = _data_->_tmp249_[0];
+#line 958 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp251_ = duplicated_file_create_from_photo_id (&_data_->_tmp250_);
+#line 958 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_vala1_duplicated_file = _data_->_tmp251_;
+#line 960 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp252_ = _data_->prepared_file;
+#line 960 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp253_ = _data_->_tmp252_->job;
+#line 960 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp254_ = _data_->prepared_file;
+#line 960 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp255_ = _data_->_tmp254_->file;
+#line 960 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp256_ = _data_->prepared_file;
+#line 960 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp257_ = _data_->_tmp256_->file;
+#line 960 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp258_ = g_file_get_path (_data_->_tmp257_);
+#line 960 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp259_ = _data_->_tmp258_;
+#line 960 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp260_ = _data_->prepared_file;
+#line 960 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp261_ = _data_->_tmp260_->file;
+#line 960 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp262_ = g_file_get_path (_data_->_tmp261_);
+#line 960 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp263_ = _data_->_tmp262_;
+#line 960 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp264_ = _data_->_vala1_duplicated_file;
+#line 960 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp265_ = batch_import_result_new (_data_->_tmp253_, _data_->_tmp255_, _data_->_tmp259_, _data_->_tmp263_, _data_->_tmp264_, IMPORT_RESULT_PHOTO_EXISTS);
+#line 960 "/home/jens/Source/shotwell/src/BatchImport.vala"
_batch_import_result_unref0 (_data_->import_result);
-#line 943 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->import_result = _data_->_tmp270_;
-#line 943 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_data_->_tmp268_);
-#line 943 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_data_->_tmp264_);
-#line 884 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 960 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->import_result = _data_->_tmp265_;
+#line 960 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_data_->_tmp263_);
+#line 960 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_data_->_tmp259_);
+#line 901 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (_data_->_vala1_duplicated_file);
-#line 884 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 901 "/home/jens/Source/shotwell/src/BatchImport.vala"
_data_->photo_ids = (g_free (_data_->photo_ids), NULL);
-#line 7843 "BatchImport.c"
+#line 8605 "BatchImport.c"
}
}
-#line 948 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp271_ = _data_->import_result;
-#line 948 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_data_->_tmp271_ != NULL) {
-#line 949 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp272_ = _data_->import_result;
-#line 949 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_report_failure (_data_->self, _data_->_tmp272_);
-#line 950 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 965 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp266_ = _data_->import_result;
+#line 965 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_data_->_tmp266_ != NULL) {
+#line 966 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp267_ = _data_->import_result;
+#line 966 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ batch_import_report_failure (_data_->self, _data_->_tmp267_);
+#line 967 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_file_import_complete (_data_->self);
-#line 952 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 969 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (_data_->video);
-#line 952 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 969 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (_data_->photo);
-#line 952 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 969 "/home/jens/Source/shotwell/src/BatchImport.vala"
_batch_import_result_unref0 (_data_->import_result);
-#line 952 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 969 "/home/jens/Source/shotwell/src/BatchImport.vala"
_prepared_file_unref0 (_data_->prepared_file);
-#line 952 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 969 "/home/jens/Source/shotwell/src/BatchImport.vala"
continue;
-#line 7866 "BatchImport.c"
+#line 8628 "BatchImport.c"
}
-#line 955 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 972 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_report_progress (_data_->self, (guint64) 0);
-#line 956 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp273_ = _data_->self->priv->ready_files;
-#line 956 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _data_->_tmp274_ = _data_->prepared_file;
-#line 956 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp273_, GEE_TYPE_COLLECTION, GeeCollection), _data_->_tmp274_);
-#line 758 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 973 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp268_ = _data_->self->priv->ready_files;
+#line 973 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _data_->_tmp269_ = _data_->prepared_file;
+#line 973 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp268_, GEE_TYPE_COLLECTION, GeeCollection), _data_->_tmp269_);
+#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (_data_->video);
-#line 758 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (_data_->photo);
-#line 758 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala"
_batch_import_result_unref0 (_data_->import_result);
-#line 758 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala"
_prepared_file_unref0 (_data_->prepared_file);
-#line 7884 "BatchImport.c"
+#line 8646 "BatchImport.c"
}
-#line 758 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (_data_->_prepared_file_list);
-#line 7888 "BatchImport.c"
+#line 8650 "BatchImport.c"
}
-#line 959 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 976 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_flush_import_jobs (_data_->self);
-#line 757 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 774 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_task_return_pointer (_data_->_async_result, _data_, NULL);
-#line 757 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 774 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (_data_->_state_ != 0) {
-#line 757 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 774 "/home/jens/Source/shotwell/src/BatchImport.vala"
while (_data_->_task_complete_ != TRUE) {
-#line 757 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 774 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
-#line 7900 "BatchImport.c"
+#line 8662 "BatchImport.c"
}
}
-#line 757 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 774 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_object_unref (_data_->_async_result);
-#line 757 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 774 "/home/jens/Source/shotwell/src/BatchImport.vala"
return FALSE;
-#line 7907 "BatchImport.c"
+#line 8669 "BatchImport.c"
}
-static void batch_import_done_preparing_files (BatchImport* self, BackgroundJob* j, const gchar* caller) {
+static void
+batch_import_done_preparing_files (BatchImport* self,
+ BackgroundJob* j,
+ const gchar* caller)
+{
gboolean _tmp0_;
PrepareFilesJob* prepare_files_job = NULL;
- BackgroundJob* _tmp1_;
+ PrepareFilesJob* _tmp1_;
PrepareFilesJob* _tmp2_;
PrepareFilesJob* _tmp3_;
- PrepareFilesJob* _tmp4_;
+ gint _tmp4_;
gint _tmp5_;
gint _tmp6_;
- gint _tmp7_;
- const gchar* _tmp8_;
- gboolean _tmp9_ = FALSE;
- gint _tmp10_;
-#line 962 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ gboolean _tmp7_ = FALSE;
+ gint _tmp8_;
+#line 979 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (IS_BATCH_IMPORT (self));
-#line 962 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 979 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (IS_BACKGROUND_JOB (j));
-#line 962 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 979 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (caller != NULL);
-#line 963 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 980 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp0_ = self->priv->completed;
-#line 963 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 980 "/home/jens/Source/shotwell/src/BatchImport.vala"
_vala_assert (!_tmp0_, "!completed");
-#line 965 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = j;
-#line 965 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = _background_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PREPARE_FILES_JOB, PrepareFilesJob));
-#line 965 "/home/jens/Source/shotwell/src/BatchImport.vala"
- prepare_files_job = _tmp2_;
-#line 967 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 982 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp1_ = _background_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST (j, TYPE_PREPARE_FILES_JOB, PrepareFilesJob));
+#line 982 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ prepare_files_job = _tmp1_;
+#line 984 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp2_ = prepare_files_job;
+#line 984 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ batch_import_report_failures (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob));
+#line 987 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp3_ = prepare_files_job;
-#line 967 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_report_failures (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob));
-#line 970 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = prepare_files_job;
-#line 970 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = _tmp4_->prepared_files;
-#line 970 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->file_imports_to_perform = _tmp5_;
-#line 971 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = self->priv->file_imports_to_perform;
-#line 971 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = self->priv->file_imports_completed;
-#line 971 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _vala_assert (_tmp6_ >= _tmp7_, "file_imports_to_perform >= file_imports_completed");
-#line 973 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = caller;
-#line 973 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_log_status (self, _tmp8_);
-#line 976 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 987 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp4_ = _tmp3_->prepared_files;
+#line 987 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->priv->file_imports_to_perform = _tmp4_;
+#line 988 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp5_ = self->priv->file_imports_to_perform;
+#line 988 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp6_ = self->priv->file_imports_completed;
+#line 988 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _vala_assert (_tmp5_ >= _tmp6_, "file_imports_to_perform >= file_imports_completed");
+#line 990 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ batch_import_log_status (self, caller);
+#line 993 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_flush_import_jobs (self);
-#line 980 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = self->priv->file_imports_to_perform;
-#line 980 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp10_ == 0) {
-#line 7966 "BatchImport.c"
- gboolean _tmp11_;
-#line 980 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp11_ = self->priv->completed;
-#line 980 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = !_tmp11_;
-#line 7972 "BatchImport.c"
+#line 997 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp8_ = self->priv->file_imports_to_perform;
+#line 997 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp8_ == 0) {
+#line 8726 "BatchImport.c"
+ gboolean _tmp9_;
+#line 997 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp9_ = self->priv->completed;
+#line 997 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp7_ = !_tmp9_;
+#line 8732 "BatchImport.c"
} else {
-#line 980 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = FALSE;
-#line 7976 "BatchImport.c"
+#line 997 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp7_ = FALSE;
+#line 8736 "BatchImport.c"
}
-#line 980 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp9_) {
-#line 981 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 997 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp7_) {
+#line 998 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_report_completed (self, "no files prepared for import");
-#line 7982 "BatchImport.c"
+#line 8742 "BatchImport.c"
} else {
- gboolean _tmp12_ = FALSE;
- gint _tmp13_;
- gint _tmp14_;
-#line 982 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp13_ = self->priv->file_imports_completed;
-#line 982 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp14_ = self->priv->file_imports_to_perform;
-#line 982 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp13_ == _tmp14_) {
-#line 7993 "BatchImport.c"
- gboolean _tmp15_;
-#line 982 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp15_ = self->priv->completed;
-#line 982 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp12_ = !_tmp15_;
-#line 7999 "BatchImport.c"
+ gboolean _tmp10_ = FALSE;
+ gint _tmp11_;
+ gint _tmp12_;
+#line 999 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp11_ = self->priv->file_imports_completed;
+#line 999 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp12_ = self->priv->file_imports_to_perform;
+#line 999 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp11_ == _tmp12_) {
+#line 8753 "BatchImport.c"
+ gboolean _tmp13_;
+#line 999 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp13_ = self->priv->completed;
+#line 999 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp10_ = !_tmp13_;
+#line 8759 "BatchImport.c"
} else {
-#line 982 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp12_ = FALSE;
-#line 8003 "BatchImport.c"
+#line 999 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp10_ = FALSE;
+#line 8763 "BatchImport.c"
}
-#line 982 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp12_) {
-#line 983 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 999 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp10_) {
+#line 1000 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_report_completed (self, "completed preparing files, all outstanding imports completed");
-#line 8009 "BatchImport.c"
+#line 8769 "BatchImport.c"
}
}
-#line 962 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 979 "/home/jens/Source/shotwell/src/BatchImport.vala"
_background_job_unref0 (prepare_files_job);
-#line 8014 "BatchImport.c"
+#line 8774 "BatchImport.c"
}
-static void batch_import_on_files_prepared (BatchImport* self, BackgroundJob* j) {
- BackgroundJob* _tmp0_;
-#line 986 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static void
+batch_import_on_files_prepared (BatchImport* self,
+ BackgroundJob* j)
+{
+#line 1003 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (IS_BATCH_IMPORT (self));
-#line 986 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1003 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (IS_BACKGROUND_JOB (j));
-#line 987 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = j;
-#line 987 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_done_preparing_files (self, _tmp0_, "on_files_prepared");
-#line 8028 "BatchImport.c"
+#line 1004 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ batch_import_done_preparing_files (self, j, "on_files_prepared");
+#line 8788 "BatchImport.c"
}
-static void batch_import_on_file_prepare_cancelled (BatchImport* self, BackgroundJob* j) {
- BackgroundJob* _tmp0_;
-#line 990 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static void
+batch_import_on_file_prepare_cancelled (BatchImport* self,
+ BackgroundJob* j)
+{
+#line 1007 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (IS_BATCH_IMPORT (self));
-#line 990 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1007 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (IS_BACKGROUND_JOB (j));
-#line 991 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = j;
-#line 991 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_done_preparing_files (self, _tmp0_, "on_file_prepare_cancelled");
-#line 8042 "BatchImport.c"
+#line 1008 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ batch_import_done_preparing_files (self, j, "on_file_prepare_cancelled");
+#line 8802 "BatchImport.c"
}
-static void batch_import_on_import_files_completed (BatchImport* self, BackgroundJob* j) {
+static void
+batch_import_on_import_files_completed (BatchImport* self,
+ BackgroundJob* j)
+{
gboolean _tmp0_;
PreparedFileImportJob* job = NULL;
- BackgroundJob* _tmp1_;
+ PreparedFileImportJob* _tmp1_;
PreparedFileImportJob* _tmp2_;
- PreparedFileImportJob* _tmp3_;
- PreparedFile* _tmp4_;
- PreparedFileImportJob* _tmp5_;
- BatchImportResult* _tmp6_;
- PreparedFileImportJob* _tmp12_;
- ReadyForImport* _tmp13_;
+ PreparedFile* _tmp3_;
+ PreparedFileImportJob* _tmp4_;
+ BatchImportResult* _tmp5_;
+ PreparedFileImportJob* _tmp11_;
+ ReadyForImport* _tmp12_;
GError * _inner_error_ = NULL;
-#line 998 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1015 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (IS_BATCH_IMPORT (self));
-#line 998 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1015 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (IS_BACKGROUND_JOB (j));
-#line 999 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1016 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp0_ = self->priv->completed;
-#line 999 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1016 "/home/jens/Source/shotwell/src/BatchImport.vala"
_vala_assert (!_tmp0_, "!completed");
-#line 1001 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = j;
-#line 1001 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = _background_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PREPARED_FILE_IMPORT_JOB, PreparedFileImportJob));
-#line 1001 "/home/jens/Source/shotwell/src/BatchImport.vala"
- job = _tmp2_;
-#line 1003 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_log_status (self, "on_import_files_completed");
-#line 1006 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = job;
-#line 1006 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = _tmp3_->not_ready;
-#line 1006 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _vala_assert (_tmp4_ == NULL, "job.not_ready == null");
-#line 1009 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = job;
-#line 1009 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = _tmp5_->failed;
-#line 1009 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp6_ != NULL) {
-#line 8086 "BatchImport.c"
- PreparedFileImportJob* _tmp7_;
- BatchImportResult* _tmp8_;
- ImportResult _tmp9_;
- PreparedFileImportJob* _tmp10_;
- BatchImportResult* _tmp11_;
-#line 1010 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = job;
-#line 1010 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = _tmp7_->failed;
-#line 1010 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = _tmp8_->result;
-#line 1010 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _vala_assert (_tmp9_ != IMPORT_RESULT_SUCCESS, "job.failed.result != ImportResult.SUCCESS");
-#line 1012 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = job;
-#line 1012 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp11_ = _tmp10_->failed;
-#line 1012 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_report_failure (self, _tmp11_);
-#line 1013 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_file_import_complete (self);
-#line 8108 "BatchImport.c"
- }
#line 1018 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp12_ = job;
+ _tmp1_ = _background_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST (j, TYPE_PREPARED_FILE_IMPORT_JOB, PreparedFileImportJob));
#line 1018 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp13_ = _tmp12_->ready;
-#line 1018 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp13_ != NULL) {
-#line 8116 "BatchImport.c"
- PreparedFileImportJob* _tmp14_;
- ReadyForImport* _tmp15_;
- BatchImportResult* _tmp16_;
- ImportResult _tmp17_;
- Tombstone* tombstone = NULL;
- TombstoneSourceCollection* _tmp18_;
- PreparedFileImportJob* _tmp19_;
- ReadyForImport* _tmp20_;
- GFile* _tmp21_;
- Tombstone* _tmp22_;
- Tombstone* _tmp23_;
- MediaSource* source = NULL;
- PreparedFileImportJob* _tmp26_;
- ReadyForImport* _tmp27_;
- gboolean _tmp28_;
- PreparedFileImportJob* _tmp87_;
- ReadyForImport* _tmp88_;
- BatchImportResult* _tmp89_;
- ImportResult _tmp90_;
-#line 1019 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp14_ = job;
-#line 1019 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp15_ = _tmp14_->ready;
-#line 1019 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp16_ = _tmp15_->batch_result;
-#line 1019 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp17_ = _tmp16_->result;
-#line 1019 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _vala_assert (_tmp17_ == IMPORT_RESULT_SUCCESS, "job.ready.batch_result.result == ImportResult.SUCCESS");
-#line 1021 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp18_ = tombstone_global;
-#line 1021 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp19_ = job;
-#line 1021 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp20_ = _tmp19_->ready;
-#line 1021 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp21_ = _tmp20_->final_file;
-#line 1021 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp22_ = tombstone_source_collection_locate (_tmp18_, _tmp21_);
-#line 1021 "/home/jens/Source/shotwell/src/BatchImport.vala"
- tombstone = _tmp22_;
-#line 1022 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp23_ = tombstone;
-#line 1022 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp23_ != NULL) {
-#line 8162 "BatchImport.c"
- TombstoneSourceCollection* _tmp24_;
- Tombstone* _tmp25_;
+ job = _tmp1_;
+#line 1020 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ batch_import_log_status (self, "on_import_files_completed");
#line 1023 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp24_ = tombstone_global;
+ _tmp2_ = job;
#line 1023 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp25_ = tombstone;
+ _tmp3_ = _tmp2_->not_ready;
#line 1023 "/home/jens/Source/shotwell/src/BatchImport.vala"
- tombstone_source_collection_resurrect (_tmp24_, _tmp25_);
-#line 8171 "BatchImport.c"
- }
+ _vala_assert (_tmp3_ == NULL, "job.not_ready == null");
#line 1026 "/home/jens/Source/shotwell/src/BatchImport.vala"
- source = NULL;
+ _tmp4_ = job;
+#line 1026 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp5_ = _tmp4_->failed;
+#line 1026 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp5_ != NULL) {
+#line 8846 "BatchImport.c"
+ PreparedFileImportJob* _tmp6_;
+ BatchImportResult* _tmp7_;
+ ImportResult _tmp8_;
+ PreparedFileImportJob* _tmp9_;
+ BatchImportResult* _tmp10_;
#line 1027 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp26_ = job;
+ _tmp6_ = job;
#line 1027 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp27_ = _tmp26_->ready;
+ _tmp7_ = _tmp6_->failed;
#line 1027 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp28_ = _tmp27_->is_video;
+ _tmp8_ = _tmp7_->result;
#line 1027 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp28_) {
-#line 8183 "BatchImport.c"
- PreparedFileImportJob* _tmp29_;
- ReadyForImport* _tmp30_;
- BatchImportResult* _tmp31_;
- PreparedFileImportJob* _tmp32_;
- ReadyForImport* _tmp33_;
- VideoImportParams* _tmp34_;
- Video* _tmp35_ = NULL;
- ImportResult _tmp36_;
-#line 1028 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp29_ = job;
-#line 1028 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp30_ = _tmp29_->ready;
-#line 1028 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp31_ = _tmp30_->batch_result;
-#line 1028 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp32_ = job;
-#line 1028 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp33_ = _tmp32_->ready;
-#line 1028 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp34_ = _tmp33_->video_import_params;
-#line 1028 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp36_ = video_import_create (_tmp34_, &_tmp35_);
-#line 1028 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (source);
-#line 1028 "/home/jens/Source/shotwell/src/BatchImport.vala"
- source = G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, TYPE_MEDIA_SOURCE, MediaSource);
-#line 1028 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp31_->result = _tmp36_;
-#line 8212 "BatchImport.c"
- } else {
- PreparedFileImportJob* _tmp37_;
- ReadyForImport* _tmp38_;
- BatchImportResult* _tmp39_;
- PreparedFileImportJob* _tmp40_;
- ReadyForImport* _tmp41_;
- PhotoImportParams* _tmp42_;
- LibraryPhoto* _tmp43_ = NULL;
- ImportResult _tmp44_;
- Photo* photo = NULL;
- MediaSource* _tmp45_;
- Photo* _tmp46_;
- PreparedFileImportJob* _tmp47_;
- ReadyForImport* _tmp48_;
- PhotoImportParams* _tmp49_;
- GFile* _tmp50_;
- Photo* _tmp72_;
- PhotoFileFormat _tmp73_;
-#line 1031 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp37_ = job;
-#line 1031 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp38_ = _tmp37_->ready;
-#line 1031 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp39_ = _tmp38_->batch_result;
-#line 1031 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp40_ = job;
-#line 1031 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp41_ = _tmp40_->ready;
-#line 1031 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp42_ = _tmp41_->photo_import_params;
-#line 1031 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp44_ = library_photo_import_create (_tmp42_, &_tmp43_);
-#line 1031 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (source);
-#line 1031 "/home/jens/Source/shotwell/src/BatchImport.vala"
- source = G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, TYPE_MEDIA_SOURCE, MediaSource);
-#line 1031 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp39_->result = _tmp44_;
-#line 1033 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp45_ = source;
-#line 1033 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp46_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp45_, TYPE_PHOTO) ? ((Photo*) _tmp45_) : NULL);
-#line 1033 "/home/jens/Source/shotwell/src/BatchImport.vala"
- photo = _tmp46_;
-#line 1035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp47_ = job;
-#line 1035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp48_ = _tmp47_->ready;
+ _vala_assert (_tmp8_ != IMPORT_RESULT_SUCCESS, "job.failed.result != ImportResult.SUCCESS");
+#line 1029 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp9_ = job;
+#line 1029 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp10_ = _tmp9_->failed;
+#line 1029 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ batch_import_report_failure (self, _tmp10_);
+#line 1030 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ batch_import_file_import_complete (self);
+#line 8868 "BatchImport.c"
+ }
#line 1035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp49_ = _tmp48_->photo_import_params;
+ _tmp11_ = job;
#line 1035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp50_ = _tmp49_->final_associated_file;
+ _tmp12_ = _tmp11_->ready;
#line 1035 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp50_ != NULL) {
-#line 8267 "BatchImport.c"
- BackingPhotoRow* bpr = NULL;
- BackingPhotoRow* _tmp51_;
- BackingPhotoRow* _tmp52_;
- BackingPhotoRow* _tmp53_;
- PreparedFileImportJob* _tmp54_;
- ReadyForImport* _tmp55_;
- PhotoImportParams* _tmp56_;
- GFile* _tmp57_;
- gchar* _tmp58_;
- MediaSource* _tmp59_;
- GFile* _tmp60_;
- GFile* _tmp61_;
- gchar* _tmp62_;
- gchar* _tmp63_;
- BackingPhotoRow* _tmp64_;
- const gchar* _tmp65_;
-#line 1037 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp51_ = backing_photo_row_new ();
-#line 1037 "/home/jens/Source/shotwell/src/BatchImport.vala"
- bpr = _tmp51_;
+ if (_tmp12_ != NULL) {
+#line 8876 "BatchImport.c"
+ PreparedFileImportJob* _tmp13_;
+ ReadyForImport* _tmp14_;
+ BatchImportResult* _tmp15_;
+ ImportResult _tmp16_;
+ Tombstone* tombstone = NULL;
+ TombstoneSourceCollection* _tmp17_;
+ PreparedFileImportJob* _tmp18_;
+ ReadyForImport* _tmp19_;
+ GFile* _tmp20_;
+ Tombstone* _tmp21_;
+ Tombstone* _tmp22_;
+ MediaSource* source = NULL;
+ PreparedFileImportJob* _tmp25_;
+ ReadyForImport* _tmp26_;
+ gboolean _tmp27_;
+ PreparedFileImportJob* _tmp83_;
+ ReadyForImport* _tmp84_;
+ BatchImportResult* _tmp85_;
+ ImportResult _tmp86_;
+#line 1036 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp13_ = job;
+#line 1036 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp14_ = _tmp13_->ready;
+#line 1036 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp15_ = _tmp14_->batch_result;
+#line 1036 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp16_ = _tmp15_->result;
+#line 1036 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _vala_assert (_tmp16_ == IMPORT_RESULT_SUCCESS, "job.ready.batch_result.result == ImportResult.SUCCESS");
#line 1038 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp52_ = bpr;
+ _tmp17_ = tombstone_global;
#line 1038 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp52_->file_format = PHOTO_FILE_FORMAT_JFIF;
-#line 1039 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp53_ = bpr;
-#line 1039 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp54_ = job;
-#line 1039 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp55_ = _tmp54_->ready;
-#line 1039 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp56_ = _tmp55_->photo_import_params;
-#line 1039 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp57_ = _tmp56_->final_associated_file;
-#line 1039 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp58_ = g_file_get_path (_tmp57_);
+ _tmp18_ = job;
+#line 1038 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp19_ = _tmp18_->ready;
+#line 1038 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp20_ = _tmp19_->final_file;
+#line 1038 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp21_ = tombstone_source_collection_locate (_tmp17_, _tmp20_);
+#line 1038 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ tombstone = _tmp21_;
#line 1039 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp53_->filepath);
+ _tmp22_ = tombstone;
#line 1039 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp53_->filepath = _tmp58_;
-#line 1040 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp59_ = source;
-#line 1040 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp60_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (_tmp59_, TYPE_PHOTO, Photo), TYPE_MEDIA_SOURCE, MediaSource));
-#line 1040 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp61_ = _tmp60_;
+ if (_tmp22_ != NULL) {
+#line 8922 "BatchImport.c"
+ TombstoneSourceCollection* _tmp23_;
+ Tombstone* _tmp24_;
#line 1040 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp62_ = g_file_get_path (_tmp61_);
+ _tmp23_ = tombstone_global;
#line 1040 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp63_ = _tmp62_;
+ _tmp24_ = tombstone;
#line 1040 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp64_ = bpr;
-#line 1040 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp65_ = _tmp64_->filepath;
-#line 1040 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_debug ("BatchImport.vala:1040: Associating %s with sibling %s", _tmp63_, _tmp65_);
-#line 1040 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp63_);
-#line 1040 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_tmp61_);
-#line 8328 "BatchImport.c"
- {
- MediaSource* _tmp66_;
- BackingPhotoRow* _tmp67_;
-#line 1043 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp66_ = source;
-#line 1043 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp67_ = bpr;
-#line 1043 "/home/jens/Source/shotwell/src/BatchImport.vala"
- photo_add_backing_photo_for_development (G_TYPE_CHECK_INSTANCE_CAST (_tmp66_, TYPE_PHOTO, Photo), RAW_DEVELOPER_CAMERA, _tmp67_, &_inner_error_);
+ tombstone_source_collection_resurrect (_tmp23_, _tmp24_);
+#line 8931 "BatchImport.c"
+ }
#line 1043 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ source = NULL;
+#line 1044 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp25_ = job;
+#line 1044 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp26_ = _tmp25_->ready;
+#line 1044 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp27_ = _tmp26_->is_video;
+#line 1044 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp27_) {
+#line 8943 "BatchImport.c"
+ PreparedFileImportJob* _tmp28_;
+ ReadyForImport* _tmp29_;
+ BatchImportResult* _tmp30_;
+ PreparedFileImportJob* _tmp31_;
+ ReadyForImport* _tmp32_;
+ VideoImportParams* _tmp33_;
+ Video* _tmp34_ = NULL;
+ ImportResult _tmp35_;
+#line 1045 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp28_ = job;
+#line 1045 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp29_ = _tmp28_->ready;
+#line 1045 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp30_ = _tmp29_->batch_result;
+#line 1045 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp31_ = job;
+#line 1045 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp32_ = _tmp31_->ready;
+#line 1045 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp33_ = _tmp32_->video_import_params;
+#line 1045 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp35_ = video_import_create (_tmp33_, &_tmp34_);
+#line 1045 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_object_unref0 (source);
+#line 1045 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ source = G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, TYPE_MEDIA_SOURCE, MediaSource);
+#line 1045 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp30_->result = _tmp35_;
+#line 8972 "BatchImport.c"
+ } else {
+ PreparedFileImportJob* _tmp36_;
+ ReadyForImport* _tmp37_;
+ BatchImportResult* _tmp38_;
+ PreparedFileImportJob* _tmp39_;
+ ReadyForImport* _tmp40_;
+ PhotoImportParams* _tmp41_;
+ LibraryPhoto* _tmp42_ = NULL;
+ ImportResult _tmp43_;
+ Photo* photo = NULL;
+ MediaSource* _tmp44_;
+ Photo* _tmp45_;
+ PreparedFileImportJob* _tmp46_;
+ ReadyForImport* _tmp47_;
+ PhotoImportParams* _tmp48_;
+ GFile* _tmp49_;
+ Photo* _tmp71_;
+#line 1048 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp36_ = job;
+#line 1048 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp37_ = _tmp36_->ready;
+#line 1048 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp38_ = _tmp37_->batch_result;
+#line 1048 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp39_ = job;
+#line 1048 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp40_ = _tmp39_->ready;
+#line 1048 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp41_ = _tmp40_->photo_import_params;
+#line 1048 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp43_ = library_photo_import_create (_tmp41_, &_tmp42_);
+#line 1048 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_object_unref0 (source);
+#line 1048 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ source = G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, TYPE_MEDIA_SOURCE, MediaSource);
+#line 1048 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp38_->result = _tmp43_;
+#line 1050 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp44_ = source;
+#line 1050 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp45_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp44_, TYPE_PHOTO) ? ((Photo*) _tmp44_) : NULL);
+#line 1050 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ photo = _tmp45_;
+#line 1052 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp46_ = job;
+#line 1052 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp47_ = _tmp46_->ready;
+#line 1052 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp48_ = _tmp47_->photo_import_params;
+#line 1052 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp49_ = _tmp48_->final_associated_file;
+#line 1052 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp49_ != NULL) {
+#line 9026 "BatchImport.c"
+ BackingPhotoRow* bpr = NULL;
+ BackingPhotoRow* _tmp50_;
+ BackingPhotoRow* _tmp51_;
+ BackingPhotoRow* _tmp52_;
+ PreparedFileImportJob* _tmp53_;
+ ReadyForImport* _tmp54_;
+ PhotoImportParams* _tmp55_;
+ GFile* _tmp56_;
+ gchar* _tmp57_;
+ MediaSource* _tmp58_;
+ GFile* _tmp59_;
+ GFile* _tmp60_;
+ gchar* _tmp61_;
+ gchar* _tmp62_;
+ BackingPhotoRow* _tmp63_;
+ const gchar* _tmp64_;
+#line 1054 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp50_ = backing_photo_row_new ();
+#line 1054 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ bpr = _tmp50_;
+#line 1055 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp51_ = bpr;
+#line 1055 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp51_->file_format = PHOTO_FILE_FORMAT_JFIF;
+#line 1056 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp52_ = bpr;
+#line 1056 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp53_ = job;
+#line 1056 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp54_ = _tmp53_->ready;
+#line 1056 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp55_ = _tmp54_->photo_import_params;
+#line 1056 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp56_ = _tmp55_->final_associated_file;
+#line 1056 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp57_ = g_file_get_path (_tmp56_);
+#line 1056 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_tmp52_->filepath);
+#line 1056 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp52_->filepath = _tmp57_;
+#line 1057 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp58_ = source;
+#line 1057 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp59_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (_tmp58_, TYPE_PHOTO, Photo), TYPE_MEDIA_SOURCE, MediaSource));
+#line 1057 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp60_ = _tmp59_;
+#line 1057 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp61_ = g_file_get_path (_tmp60_);
+#line 1057 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp62_ = _tmp61_;
+#line 1057 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp63_ = bpr;
+#line 1057 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp64_ = _tmp63_->filepath;
+#line 1057 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ g_debug ("BatchImport.vala:1057: Associating %s with sibling %s", _tmp62_, _tmp64_);
+#line 1057 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_tmp62_);
+#line 1057 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_object_unref0 (_tmp60_);
+#line 9087 "BatchImport.c"
+ {
+ MediaSource* _tmp65_;
+ BackingPhotoRow* _tmp66_;
+#line 1060 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp65_ = source;
+#line 1060 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp66_ = bpr;
+#line 1060 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ photo_add_backing_photo_for_development (G_TYPE_CHECK_INSTANCE_CAST (_tmp65_, TYPE_PHOTO, Photo), RAW_DEVELOPER_CAMERA, _tmp66_, TRUE, &_inner_error_);
+#line 1060 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 8340 "BatchImport.c"
- goto __catch412_g_error;
+#line 9099 "BatchImport.c"
+ goto __catch424_g_error;
}
}
- goto __finally412;
- __catch412_g_error:
+ goto __finally424;
+ __catch424_g_error:
{
GError* e = NULL;
- BackingPhotoRow* _tmp68_;
- const gchar* _tmp69_;
- GError* _tmp70_;
- const gchar* _tmp71_;
-#line 1042 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ BackingPhotoRow* _tmp67_;
+ const gchar* _tmp68_;
+ GError* _tmp69_;
+ const gchar* _tmp70_;
+#line 1059 "/home/jens/Source/shotwell/src/BatchImport.vala"
e = _inner_error_;
-#line 1042 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1059 "/home/jens/Source/shotwell/src/BatchImport.vala"
_inner_error_ = NULL;
-#line 1045 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp68_ = bpr;
-#line 1045 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp69_ = _tmp68_->filepath;
-#line 1045 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp70_ = e;
-#line 1045 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp71_ = _tmp70_->message;
-#line 1045 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_warning ("BatchImport.vala:1045: Unable to associate JPEG with RAW. File: %s Err" \
-"or: %s", _tmp69_, _tmp71_);
-#line 1042 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1062 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp67_ = bpr;
+#line 1062 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp68_ = _tmp67_->filepath;
+#line 1062 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp69_ = e;
+#line 1062 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp70_ = _tmp69_->message;
+#line 1062 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ g_warning ("BatchImport.vala:1062: Unable to associate JPEG with RAW. File: %s Err" \
+"or: %s", _tmp68_, _tmp70_);
+#line 1059 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_error_free0 (e);
-#line 8368 "BatchImport.c"
+#line 9127 "BatchImport.c"
}
- __finally412:
-#line 1042 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ __finally424:
+#line 1059 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1042 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1059 "/home/jens/Source/shotwell/src/BatchImport.vala"
_backing_photo_row_unref0 (bpr);
-#line 1042 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1059 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (photo);
-#line 1042 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1059 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (source);
-#line 1042 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1059 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (tombstone);
-#line 1042 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1059 "/home/jens/Source/shotwell/src/BatchImport.vala"
_background_job_unref0 (job);
-#line 1042 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1059 "/home/jens/Source/shotwell/src/BatchImport.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 1042 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1059 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_clear_error (&_inner_error_);
-#line 1042 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1059 "/home/jens/Source/shotwell/src/BatchImport.vala"
return;
-#line 8389 "BatchImport.c"
+#line 9148 "BatchImport.c"
}
-#line 1035 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1052 "/home/jens/Source/shotwell/src/BatchImport.vala"
_backing_photo_row_unref0 (bpr);
-#line 8393 "BatchImport.c"
+#line 9152 "BatchImport.c"
}
-#line 1051 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp72_ = photo;
-#line 1051 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp73_ = photo_get_master_file_format (_tmp72_);
-#line 1051 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp73_ == PHOTO_FILE_FORMAT_RAW) {
-#line 8401 "BatchImport.c"
+#line 1068 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp71_ = photo;
+#line 1068 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (photo_get_master_file_format (_tmp71_) == PHOTO_FILE_FORMAT_RAW) {
+#line 9158 "BatchImport.c"
RawDeveloper d = 0;
- ConfigFacade* _tmp74_;
- ConfigFacade* _tmp75_;
+ ConfigFacade* _tmp72_;
+ ConfigFacade* _tmp73_;
+ RawDeveloper _tmp74_;
+ gboolean _tmp75_ = FALSE;
RawDeveloper _tmp76_;
- RawDeveloper _tmp77_;
- gboolean _tmp78_ = FALSE;
- RawDeveloper _tmp79_;
- Photo* _tmp83_;
- RawDeveloper _tmp84_;
- Photo* _tmp85_;
- RawDeveloper _tmp86_;
-#line 1052 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp74_ = config_facade_get_instance ();
-#line 1052 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp75_ = _tmp74_;
-#line 1052 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp76_ = configuration_facade_get_default_raw_developer (G_TYPE_CHECK_INSTANCE_CAST (_tmp75_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 1052 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp77_ = _tmp76_;
-#line 1052 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_tmp75_);
-#line 1052 "/home/jens/Source/shotwell/src/BatchImport.vala"
- d = _tmp77_;
-#line 1053 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp79_ = d;
-#line 1053 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp79_ == RAW_DEVELOPER_CAMERA) {
-#line 8429 "BatchImport.c"
- Photo* _tmp80_;
- RawDeveloper _tmp81_;
- gboolean _tmp82_;
-#line 1053 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp80_ = photo;
-#line 1053 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp81_ = d;
-#line 1053 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp82_ = photo_is_raw_developer_available (_tmp80_, _tmp81_);
-#line 1053 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp78_ = !_tmp82_;
-#line 8441 "BatchImport.c"
+ Photo* _tmp79_;
+ RawDeveloper _tmp80_;
+ Photo* _tmp81_;
+ RawDeveloper _tmp82_;
+#line 1069 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp72_ = config_facade_get_instance ();
+#line 1069 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp73_ = _tmp72_;
+#line 1069 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp74_ = configuration_facade_get_default_raw_developer (G_TYPE_CHECK_INSTANCE_CAST (_tmp73_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
+#line 1069 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_object_unref0 (_tmp73_);
+#line 1069 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ d = _tmp74_;
+#line 1070 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp76_ = d;
+#line 1070 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp76_ == RAW_DEVELOPER_CAMERA) {
+#line 9183 "BatchImport.c"
+ Photo* _tmp77_;
+ RawDeveloper _tmp78_;
+#line 1070 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp77_ = photo;
+#line 1070 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp78_ = d;
+#line 1070 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp75_ = !photo_is_raw_developer_available (_tmp77_, _tmp78_);
+#line 9192 "BatchImport.c"
} else {
-#line 1053 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp78_ = FALSE;
-#line 8445 "BatchImport.c"
+#line 1070 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp75_ = FALSE;
+#line 9196 "BatchImport.c"
}
-#line 1053 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp78_) {
-#line 1054 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1070 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp75_) {
+#line 1071 "/home/jens/Source/shotwell/src/BatchImport.vala"
d = RAW_DEVELOPER_EMBEDDED;
-#line 8451 "BatchImport.c"
+#line 9202 "BatchImport.c"
}
-#line 1056 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp83_ = photo;
-#line 1056 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp84_ = d;
-#line 1056 "/home/jens/Source/shotwell/src/BatchImport.vala"
- photo_set_default_raw_developer (_tmp83_, _tmp84_);
-#line 1057 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp85_ = photo;
-#line 1057 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp86_ = d;
-#line 1057 "/home/jens/Source/shotwell/src/BatchImport.vala"
- photo_set_raw_developer (_tmp85_, _tmp86_);
-#line 8465 "BatchImport.c"
+#line 1073 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp79_ = photo;
+#line 1073 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp80_ = d;
+#line 1073 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ photo_set_default_raw_developer (_tmp79_, _tmp80_);
+#line 1074 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp81_ = photo;
+#line 1074 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp82_ = d;
+#line 1074 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ photo_set_raw_developer (_tmp81_, _tmp82_, FALSE);
+#line 9216 "BatchImport.c"
}
-#line 1027 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1044 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (photo);
-#line 8469 "BatchImport.c"
+#line 9220 "BatchImport.c"
}
-#line 1061 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp87_ = job;
-#line 1061 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp88_ = _tmp87_->ready;
-#line 1061 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp89_ = _tmp88_->batch_result;
-#line 1061 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp90_ = _tmp89_->result;
-#line 1061 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp90_ != IMPORT_RESULT_SUCCESS) {
-#line 8481 "BatchImport.c"
- PreparedFileImportJob* _tmp91_;
- ReadyForImport* _tmp92_;
- BatchImportResult* _tmp93_;
- ImportResult _tmp94_;
- gchar* _tmp95_;
- gchar* _tmp96_;
- PreparedFileImportJob* _tmp97_;
- ReadyForImport* _tmp98_;
- BatchImportResult* _tmp99_;
-#line 1062 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp91_ = job;
-#line 1062 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp92_ = _tmp91_->ready;
-#line 1062 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp93_ = _tmp92_->batch_result;
-#line 1062 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp94_ = _tmp93_->result;
-#line 1062 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp95_ = import_result_to_string (_tmp94_);
-#line 1062 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp96_ = _tmp95_;
-#line 1062 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_debug ("BatchImport.vala:1062: on_import_file_completed: %s", _tmp96_);
-#line 1062 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp96_);
-#line 1064 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp97_ = job;
-#line 1064 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp98_ = _tmp97_->ready;
-#line 1064 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp99_ = _tmp98_->batch_result;
-#line 1064 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_report_failure (self, _tmp99_);
-#line 1065 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1078 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp83_ = job;
+#line 1078 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp84_ = _tmp83_->ready;
+#line 1078 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp85_ = _tmp84_->batch_result;
+#line 1078 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp86_ = _tmp85_->result;
+#line 1078 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp86_ != IMPORT_RESULT_SUCCESS) {
+#line 9232 "BatchImport.c"
+ PreparedFileImportJob* _tmp87_;
+ ReadyForImport* _tmp88_;
+ BatchImportResult* _tmp89_;
+ ImportResult _tmp90_;
+ gchar* _tmp91_;
+ gchar* _tmp92_;
+ PreparedFileImportJob* _tmp93_;
+ ReadyForImport* _tmp94_;
+ BatchImportResult* _tmp95_;
+#line 1079 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp87_ = job;
+#line 1079 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp88_ = _tmp87_->ready;
+#line 1079 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp89_ = _tmp88_->batch_result;
+#line 1079 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp90_ = _tmp89_->result;
+#line 1079 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp91_ = import_result_to_string (_tmp90_);
+#line 1079 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp92_ = _tmp91_;
+#line 1079 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ g_debug ("BatchImport.vala:1079: on_import_file_completed: %s", _tmp92_);
+#line 1079 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_tmp92_);
+#line 1081 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp93_ = job;
+#line 1081 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp94_ = _tmp93_->ready;
+#line 1081 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp95_ = _tmp94_->batch_result;
+#line 1081 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ batch_import_report_failure (self, _tmp95_);
+#line 1082 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_file_import_complete (self);
-#line 8517 "BatchImport.c"
+#line 9268 "BatchImport.c"
} else {
- GeeList* _tmp100_;
- MediaSource* _tmp101_;
+ GeeList* _tmp96_;
+ MediaSource* _tmp97_;
+ PreparedFileImportJob* _tmp98_;
+ ReadyForImport* _tmp99_;
+ Thumbnails* _tmp100_;
+ Thumbnails* _tmp101_;
PreparedFileImportJob* _tmp102_;
ReadyForImport* _tmp103_;
- Thumbnails* _tmp104_;
- Thumbnails* _tmp105_;
+ PreparedFile* _tmp104_;
+ BatchImportJob* _tmp105_;
PreparedFileImportJob* _tmp106_;
ReadyForImport* _tmp107_;
- PreparedFile* _tmp108_;
- BatchImportJob* _tmp109_;
- PreparedFileImportJob* _tmp110_;
- ReadyForImport* _tmp111_;
- BatchImportResult* _tmp112_;
- CompletedImportObject* _tmp113_;
- CompletedImportObject* _tmp114_;
-#line 1067 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp100_ = self->priv->ready_thumbnails;
-#line 1067 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp101_ = source;
-#line 1067 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ BatchImportResult* _tmp108_;
+ CompletedImportObject* _tmp109_;
+ CompletedImportObject* _tmp110_;
+#line 1084 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp96_ = self->priv->ready_thumbnails;
+#line 1084 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp97_ = source;
+#line 1084 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp98_ = job;
+#line 1084 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp99_ = _tmp98_->ready;
+#line 1084 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp100_ = ready_for_import_get_thumbnails (_tmp99_);
+#line 1084 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp101_ = _tmp100_;
+#line 1084 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp102_ = job;
-#line 1067 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1084 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp103_ = _tmp102_->ready;
-#line 1067 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp104_ = ready_for_import_get_thumbnails (_tmp103_);
-#line 1067 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp105_ = _tmp104_;
-#line 1067 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1084 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp104_ = _tmp103_->prepared_file;
+#line 1084 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp105_ = _tmp104_->job;
+#line 1084 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp106_ = job;
-#line 1067 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1084 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp107_ = _tmp106_->ready;
-#line 1067 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp108_ = _tmp107_->prepared_file;
-#line 1067 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp109_ = _tmp108_->job;
-#line 1067 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp110_ = job;
-#line 1067 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp111_ = _tmp110_->ready;
-#line 1067 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp112_ = _tmp111_->batch_result;
-#line 1067 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp113_ = completed_import_object_new (_tmp101_, _tmp105_, _tmp109_, _tmp112_);
-#line 1067 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp114_ = _tmp113_;
-#line 1067 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp100_, GEE_TYPE_COLLECTION, GeeCollection), _tmp114_);
-#line 1067 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _completed_import_object_unref0 (_tmp114_);
-#line 1067 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _thumbnails_unref0 (_tmp105_);
-#line 8570 "BatchImport.c"
+#line 1084 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp108_ = _tmp107_->batch_result;
+#line 1084 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp109_ = completed_import_object_new (_tmp97_, _tmp101_, _tmp105_, _tmp108_);
+#line 1084 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp110_ = _tmp109_;
+#line 1084 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp96_, GEE_TYPE_COLLECTION, GeeCollection), _tmp110_);
+#line 1084 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _completed_import_object_unref0 (_tmp110_);
+#line 1084 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _thumbnails_unref0 (_tmp101_);
+#line 9321 "BatchImport.c"
}
-#line 1018 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1035 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (source);
-#line 1018 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1035 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (tombstone);
-#line 8576 "BatchImport.c"
+#line 9327 "BatchImport.c"
}
-#line 1072 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1089 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_flush_import_jobs (self);
-#line 998 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1015 "/home/jens/Source/shotwell/src/BatchImport.vala"
_background_job_unref0 (job);
-#line 8582 "BatchImport.c"
+#line 9333 "BatchImport.c"
}
-static void batch_import_on_import_files_cancelled (BatchImport* self, BackgroundJob* j) {
+static void
+batch_import_on_import_files_cancelled (BatchImport* self,
+ BackgroundJob* j)
+{
gboolean _tmp0_;
PreparedFileImportJob* job = NULL;
- BackgroundJob* _tmp1_;
+ PreparedFileImportJob* _tmp1_;
PreparedFileImportJob* _tmp2_;
- PreparedFileImportJob* _tmp3_;
- PreparedFile* _tmp4_;
- PreparedFileImportJob* _tmp23_;
- BatchImportResult* _tmp24_;
- PreparedFileImportJob* _tmp27_;
- ReadyForImport* _tmp28_;
-#line 1075 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ PreparedFile* _tmp3_;
+ PreparedFileImportJob* _tmp22_;
+ BatchImportResult* _tmp23_;
+ PreparedFileImportJob* _tmp26_;
+ ReadyForImport* _tmp27_;
+#line 1092 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (IS_BATCH_IMPORT (self));
-#line 1075 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1092 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (IS_BACKGROUND_JOB (j));
-#line 1076 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1093 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp0_ = self->priv->completed;
-#line 1076 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1093 "/home/jens/Source/shotwell/src/BatchImport.vala"
_vala_assert (!_tmp0_, "!completed");
-#line 1078 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = j;
-#line 1078 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = _background_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PREPARED_FILE_IMPORT_JOB, PreparedFileImportJob));
-#line 1078 "/home/jens/Source/shotwell/src/BatchImport.vala"
- job = _tmp2_;
-#line 1080 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1095 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp1_ = _background_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST (j, TYPE_PREPARED_FILE_IMPORT_JOB, PreparedFileImportJob));
+#line 1095 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ job = _tmp1_;
+#line 1097 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_log_status (self, "on_import_files_cancelled");
-#line 1082 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = job;
-#line 1082 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = _tmp3_->not_ready;
-#line 1082 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp4_ != NULL) {
-#line 8619 "BatchImport.c"
- PreparedFileImportJob* _tmp5_;
- PreparedFile* _tmp6_;
- BatchImportJob* _tmp7_;
- PreparedFileImportJob* _tmp8_;
- PreparedFile* _tmp9_;
- GFile* _tmp10_;
- PreparedFileImportJob* _tmp11_;
- PreparedFile* _tmp12_;
- GFile* _tmp13_;
+#line 1099 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp2_ = job;
+#line 1099 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp3_ = _tmp2_->not_ready;
+#line 1099 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp3_ != NULL) {
+#line 9370 "BatchImport.c"
+ PreparedFileImportJob* _tmp4_;
+ PreparedFile* _tmp5_;
+ BatchImportJob* _tmp6_;
+ PreparedFileImportJob* _tmp7_;
+ PreparedFile* _tmp8_;
+ GFile* _tmp9_;
+ PreparedFileImportJob* _tmp10_;
+ PreparedFile* _tmp11_;
+ GFile* _tmp12_;
+ gchar* _tmp13_;
gchar* _tmp14_;
- gchar* _tmp15_;
- PreparedFileImportJob* _tmp16_;
- PreparedFile* _tmp17_;
- GFile* _tmp18_;
+ PreparedFileImportJob* _tmp15_;
+ PreparedFile* _tmp16_;
+ GFile* _tmp17_;
+ gchar* _tmp18_;
gchar* _tmp19_;
- gchar* _tmp20_;
+ BatchImportResult* _tmp20_;
BatchImportResult* _tmp21_;
- BatchImportResult* _tmp22_;
-#line 1083 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = job;
-#line 1083 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = _tmp5_->not_ready;
-#line 1083 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = _tmp6_->job;
-#line 1083 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = job;
-#line 1083 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = _tmp8_->not_ready;
-#line 1083 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = _tmp9_->file;
-#line 1083 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp11_ = job;
-#line 1083 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp12_ = _tmp11_->not_ready;
-#line 1083 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp13_ = _tmp12_->file;
-#line 1083 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp14_ = g_file_get_path (_tmp13_);
-#line 1083 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp15_ = _tmp14_;
-#line 1083 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp16_ = job;
-#line 1083 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp17_ = _tmp16_->not_ready;
-#line 1083 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp18_ = _tmp17_->file;
-#line 1083 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp19_ = g_file_get_path (_tmp18_);
-#line 1083 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp20_ = _tmp19_;
-#line 1083 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp21_ = batch_import_result_new (_tmp7_, _tmp10_, _tmp15_, _tmp20_, NULL, IMPORT_RESULT_USER_ABORT);
-#line 1083 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp22_ = _tmp21_;
-#line 1083 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_report_failure (self, _tmp22_);
-#line 1083 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_result_unref0 (_tmp22_);
-#line 1083 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp20_);
-#line 1083 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp15_);
-#line 1086 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp4_ = job;
+#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp5_ = _tmp4_->not_ready;
+#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp6_ = _tmp5_->job;
+#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp7_ = job;
+#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp8_ = _tmp7_->not_ready;
+#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp9_ = _tmp8_->file;
+#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp10_ = job;
+#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp11_ = _tmp10_->not_ready;
+#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp12_ = _tmp11_->file;
+#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp13_ = g_file_get_path (_tmp12_);
+#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp14_ = _tmp13_;
+#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp15_ = job;
+#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp16_ = _tmp15_->not_ready;
+#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp17_ = _tmp16_->file;
+#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp18_ = g_file_get_path (_tmp17_);
+#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp19_ = _tmp18_;
+#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp20_ = batch_import_result_new (_tmp6_, _tmp9_, _tmp14_, _tmp19_, NULL, IMPORT_RESULT_USER_ABORT);
+#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp21_ = _tmp20_;
+#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ batch_import_report_failure (self, _tmp21_);
+#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _batch_import_result_unref0 (_tmp21_);
+#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_tmp19_);
+#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_tmp14_);
+#line 1103 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_file_import_complete (self);
-#line 8684 "BatchImport.c"
+#line 9435 "BatchImport.c"
}
-#line 1089 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp23_ = job;
-#line 1089 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp24_ = _tmp23_->failed;
-#line 1089 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp24_ != NULL) {
-#line 8692 "BatchImport.c"
- PreparedFileImportJob* _tmp25_;
- BatchImportResult* _tmp26_;
-#line 1090 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp25_ = job;
-#line 1090 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp26_ = _tmp25_->failed;
-#line 1090 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_report_failure (self, _tmp26_);
-#line 1091 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1106 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp22_ = job;
+#line 1106 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp23_ = _tmp22_->failed;
+#line 1106 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp23_ != NULL) {
+#line 9443 "BatchImport.c"
+ PreparedFileImportJob* _tmp24_;
+ BatchImportResult* _tmp25_;
+#line 1107 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp24_ = job;
+#line 1107 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp25_ = _tmp24_->failed;
+#line 1107 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ batch_import_report_failure (self, _tmp25_);
+#line 1108 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_file_import_complete (self);
-#line 8703 "BatchImport.c"
+#line 9454 "BatchImport.c"
}
-#line 1094 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp27_ = job;
-#line 1094 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp28_ = _tmp27_->ready;
-#line 1094 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp28_ != NULL) {
-#line 8711 "BatchImport.c"
- PreparedFileImportJob* _tmp29_;
- ReadyForImport* _tmp30_;
+#line 1111 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp26_ = job;
+#line 1111 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp27_ = _tmp26_->ready;
+#line 1111 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp27_ != NULL) {
+#line 9462 "BatchImport.c"
+ PreparedFileImportJob* _tmp28_;
+ ReadyForImport* _tmp29_;
+ BatchImportResult* _tmp30_;
BatchImportResult* _tmp31_;
- BatchImportResult* _tmp32_;
-#line 1095 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp29_ = job;
-#line 1095 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp30_ = _tmp29_->ready;
-#line 1095 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp31_ = ready_for_import_abort (_tmp30_);
-#line 1095 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp32_ = _tmp31_;
-#line 1095 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_report_failure (self, _tmp32_);
-#line 1095 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_result_unref0 (_tmp32_);
-#line 1096 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1112 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp28_ = job;
+#line 1112 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp29_ = _tmp28_->ready;
+#line 1112 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp30_ = ready_for_import_abort (_tmp29_);
+#line 1112 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp31_ = _tmp30_;
+#line 1112 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ batch_import_report_failure (self, _tmp31_);
+#line 1112 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _batch_import_result_unref0 (_tmp31_);
+#line 1113 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_file_import_complete (self);
-#line 8730 "BatchImport.c"
+#line 9481 "BatchImport.c"
}
-#line 1099 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1116 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_flush_import_jobs (self);
-#line 1075 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1092 "/home/jens/Source/shotwell/src/BatchImport.vala"
_background_job_unref0 (job);
-#line 8736 "BatchImport.c"
+#line 9487 "BatchImport.c"
}
-static gpointer _completed_import_object_ref0 (gpointer self) {
-#line 1113 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static gpointer
+_completed_import_object_ref0 (gpointer self)
+{
+#line 1130 "/home/jens/Source/shotwell/src/BatchImport.vala"
return self ? completed_import_object_ref (self) : NULL;
-#line 8743 "BatchImport.c"
+#line 9496 "BatchImport.c"
}
-static void batch_import_on_thumbnail_writer_completed (BatchImport* self, BackgroundJob* j) {
+static void
+batch_import_on_thumbnail_writer_completed (BatchImport* self,
+ BackgroundJob* j)
+{
gboolean _tmp0_;
ThumbnailWriterJob* job = NULL;
- BackgroundJob* _tmp1_;
- ThumbnailWriterJob* _tmp2_;
+ ThumbnailWriterJob* _tmp1_;
CompletedImportObject* completed = NULL;
- ThumbnailWriterJob* _tmp3_;
+ ThumbnailWriterJob* _tmp2_;
+ CompletedImportObject* _tmp3_;
CompletedImportObject* _tmp4_;
CompletedImportObject* _tmp5_;
- CompletedImportObject* _tmp6_;
- BatchImportResult* _tmp7_;
- ImportResult _tmp8_;
-#line 1109 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ BatchImportResult* _tmp6_;
+ ImportResult _tmp7_;
+#line 1126 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (IS_BATCH_IMPORT (self));
-#line 1109 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1126 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (IS_BACKGROUND_JOB (j));
-#line 1110 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1127 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp0_ = self->priv->completed;
-#line 1110 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1127 "/home/jens/Source/shotwell/src/BatchImport.vala"
_vala_assert (!_tmp0_, "!completed");
-#line 1112 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = j;
-#line 1112 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = _background_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_THUMBNAIL_WRITER_JOB, ThumbnailWriterJob));
-#line 1112 "/home/jens/Source/shotwell/src/BatchImport.vala"
- job = _tmp2_;
-#line 1113 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = job;
-#line 1113 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = _tmp3_->completed_import_source;
-#line 1113 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = _completed_import_object_ref0 (_tmp4_);
-#line 1113 "/home/jens/Source/shotwell/src/BatchImport.vala"
- completed = _tmp5_;
-#line 1115 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1129 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp1_ = _background_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST (j, TYPE_THUMBNAIL_WRITER_JOB, ThumbnailWriterJob));
+#line 1129 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ job = _tmp1_;
+#line 1130 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp2_ = job;
+#line 1130 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp3_ = _tmp2_->completed_import_source;
+#line 1130 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp4_ = _completed_import_object_ref0 (_tmp3_);
+#line 1130 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ completed = _tmp4_;
+#line 1132 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_log_status (self, "on_thumbnail_writer_completed");
-#line 1117 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = completed;
-#line 1117 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = _tmp6_->batch_result;
-#line 1117 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = _tmp7_->result;
-#line 1117 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp8_ != IMPORT_RESULT_SUCCESS) {
-#line 8791 "BatchImport.c"
- CompletedImportObject* _tmp9_;
- MediaSource* _tmp10_;
+#line 1134 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp5_ = completed;
+#line 1134 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp6_ = _tmp5_->batch_result;
+#line 1134 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp7_ = _tmp6_->result;
+#line 1134 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp7_ != IMPORT_RESULT_SUCCESS) {
+#line 9544 "BatchImport.c"
+ CompletedImportObject* _tmp8_;
+ MediaSource* _tmp9_;
+ gchar* _tmp10_;
gchar* _tmp11_;
- gchar* _tmp12_;
- CompletedImportObject* _tmp13_;
- BatchImportResult* _tmp14_;
- ImportResult _tmp15_;
+ CompletedImportObject* _tmp12_;
+ BatchImportResult* _tmp13_;
+ ImportResult _tmp14_;
+ gchar* _tmp15_;
gchar* _tmp16_;
- gchar* _tmp17_;
- CompletedImportObject* _tmp18_;
- MediaSource* _tmp19_;
- CompletedImportObject* _tmp26_;
- BatchImportResult* _tmp27_;
-#line 1118 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = completed;
-#line 1118 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = _tmp9_->source;
-#line 1118 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp11_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_DATA_OBJECT, DataObject));
-#line 1118 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp12_ = _tmp11_;
-#line 1118 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp13_ = completed;
-#line 1118 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp14_ = _tmp13_->batch_result;
-#line 1118 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp15_ = _tmp14_->result;
-#line 1118 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp16_ = import_result_to_string (_tmp15_);
-#line 1118 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp17_ = _tmp16_;
-#line 1118 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_warning ("BatchImport.vala:1118: Failed to import %s: unable to write thumbnails" \
-" (%s)", _tmp12_, _tmp17_);
-#line 1118 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp17_);
-#line 1118 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp12_);
-#line 1121 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp18_ = completed;
-#line 1121 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp19_ = _tmp18_->source;
-#line 1121 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp19_, TYPE_LIBRARY_PHOTO)) {
-#line 8835 "BatchImport.c"
- CompletedImportObject* _tmp20_;
- MediaSource* _tmp21_;
-#line 1122 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp20_ = completed;
-#line 1122 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp21_ = _tmp20_->source;
-#line 1122 "/home/jens/Source/shotwell/src/BatchImport.vala"
- library_photo_import_failed (G_TYPE_CHECK_INSTANCE_TYPE (_tmp21_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp21_) : NULL);
-#line 8844 "BatchImport.c"
+ CompletedImportObject* _tmp17_;
+ MediaSource* _tmp18_;
+ CompletedImportObject* _tmp25_;
+ BatchImportResult* _tmp26_;
+#line 1135 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp8_ = completed;
+#line 1135 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp9_ = _tmp8_->source;
+#line 1135 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp10_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_DATA_OBJECT, DataObject));
+#line 1135 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp11_ = _tmp10_;
+#line 1135 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp12_ = completed;
+#line 1135 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp13_ = _tmp12_->batch_result;
+#line 1135 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp14_ = _tmp13_->result;
+#line 1135 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp15_ = import_result_to_string (_tmp14_);
+#line 1135 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp16_ = _tmp15_;
+#line 1135 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ g_warning ("BatchImport.vala:1135: Failed to import %s: unable to write thumbnails" \
+" (%s)", _tmp11_, _tmp16_);
+#line 1135 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_tmp16_);
+#line 1135 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_tmp11_);
+#line 1138 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp17_ = completed;
+#line 1138 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp18_ = _tmp17_->source;
+#line 1138 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp18_, TYPE_LIBRARY_PHOTO)) {
+#line 9588 "BatchImport.c"
+ CompletedImportObject* _tmp19_;
+ MediaSource* _tmp20_;
+#line 1139 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp19_ = completed;
+#line 1139 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp20_ = _tmp19_->source;
+#line 1139 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ library_photo_import_failed (G_TYPE_CHECK_INSTANCE_TYPE (_tmp20_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp20_) : NULL);
+#line 9597 "BatchImport.c"
} else {
- CompletedImportObject* _tmp22_;
- MediaSource* _tmp23_;
-#line 1123 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp22_ = completed;
-#line 1123 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp23_ = _tmp22_->source;
-#line 1123 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp23_, TYPE_VIDEO)) {
-#line 8854 "BatchImport.c"
- CompletedImportObject* _tmp24_;
- MediaSource* _tmp25_;
-#line 1124 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp24_ = completed;
-#line 1124 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp25_ = _tmp24_->source;
-#line 1124 "/home/jens/Source/shotwell/src/BatchImport.vala"
- video_import_failed (G_TYPE_CHECK_INSTANCE_TYPE (_tmp25_, TYPE_VIDEO) ? ((Video*) _tmp25_) : NULL);
-#line 8863 "BatchImport.c"
+ CompletedImportObject* _tmp21_;
+ MediaSource* _tmp22_;
+#line 1140 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp21_ = completed;
+#line 1140 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp22_ = _tmp21_->source;
+#line 1140 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp22_, TYPE_VIDEO)) {
+#line 9607 "BatchImport.c"
+ CompletedImportObject* _tmp23_;
+ MediaSource* _tmp24_;
+#line 1141 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp23_ = completed;
+#line 1141 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp24_ = _tmp23_->source;
+#line 1141 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ video_import_failed (G_TYPE_CHECK_INSTANCE_TYPE (_tmp24_, TYPE_VIDEO) ? ((Video*) _tmp24_) : NULL);
+#line 9616 "BatchImport.c"
}
}
-#line 1126 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp26_ = completed;
-#line 1126 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp27_ = _tmp26_->batch_result;
-#line 1126 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_report_failure (self, _tmp27_);
-#line 1127 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1143 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp25_ = completed;
+#line 1143 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp26_ = _tmp25_->batch_result;
+#line 1143 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ batch_import_report_failure (self, _tmp26_);
+#line 1144 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_file_import_complete (self);
-#line 8874 "BatchImport.c"
+#line 9627 "BatchImport.c"
} else {
- ImportManifest* _tmp28_;
- GeeList* _tmp29_;
- CompletedImportObject* _tmp30_;
- MediaSource* _tmp31_;
- ImportManifest* _tmp32_;
- CompletedImportObject* _tmp33_;
- BatchImportResult* _tmp34_;
- GeeList* _tmp35_;
- CompletedImportObject* _tmp36_;
-#line 1129 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp28_ = self->priv->manifest;
-#line 1129 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp29_ = _tmp28_->imported;
-#line 1129 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp30_ = completed;
-#line 1129 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp31_ = _tmp30_->source;
-#line 1129 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, GEE_TYPE_COLLECTION, GeeCollection), _tmp31_);
-#line 1130 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp32_ = self->priv->manifest;
-#line 1130 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp33_ = completed;
-#line 1130 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp34_ = _tmp33_->batch_result;
-#line 1130 "/home/jens/Source/shotwell/src/BatchImport.vala"
- import_manifest_add_result (_tmp32_, _tmp34_);
-#line 1132 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp35_ = self->priv->display_imported_queue;
-#line 1132 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp36_ = completed;
-#line 1132 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, GEE_TYPE_COLLECTION, GeeCollection), _tmp36_);
-#line 8909 "BatchImport.c"
+ ImportManifest* _tmp27_;
+ GeeList* _tmp28_;
+ CompletedImportObject* _tmp29_;
+ MediaSource* _tmp30_;
+ ImportManifest* _tmp31_;
+ CompletedImportObject* _tmp32_;
+ BatchImportResult* _tmp33_;
+ GeeList* _tmp34_;
+ CompletedImportObject* _tmp35_;
+#line 1146 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp27_ = self->priv->manifest;
+#line 1146 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp28_ = _tmp27_->imported;
+#line 1146 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp29_ = completed;
+#line 1146 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp30_ = _tmp29_->source;
+#line 1146 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_COLLECTION, GeeCollection), _tmp30_);
+#line 1147 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp31_ = self->priv->manifest;
+#line 1147 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp32_ = completed;
+#line 1147 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp33_ = _tmp32_->batch_result;
+#line 1147 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ import_manifest_add_result (_tmp31_, _tmp33_);
+#line 1149 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp34_ = self->priv->display_imported_queue;
+#line 1149 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp35_ = completed;
+#line 1149 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, GEE_TYPE_COLLECTION, GeeCollection), _tmp35_);
+#line 9662 "BatchImport.c"
}
-#line 1135 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1152 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_flush_import_jobs (self);
-#line 1109 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1126 "/home/jens/Source/shotwell/src/BatchImport.vala"
_completed_import_object_unref0 (completed);
-#line 1109 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1126 "/home/jens/Source/shotwell/src/BatchImport.vala"
_background_job_unref0 (job);
-#line 8917 "BatchImport.c"
+#line 9670 "BatchImport.c"
}
-static void batch_import_on_thumbnail_writer_cancelled (BatchImport* self, BackgroundJob* j) {
+static void
+batch_import_on_thumbnail_writer_cancelled (BatchImport* self,
+ BackgroundJob* j)
+{
gboolean _tmp0_;
ThumbnailWriterJob* job = NULL;
- BackgroundJob* _tmp1_;
- ThumbnailWriterJob* _tmp2_;
+ ThumbnailWriterJob* _tmp1_;
CompletedImportObject* completed = NULL;
- ThumbnailWriterJob* _tmp3_;
+ ThumbnailWriterJob* _tmp2_;
+ CompletedImportObject* _tmp3_;
CompletedImportObject* _tmp4_;
CompletedImportObject* _tmp5_;
- CompletedImportObject* _tmp6_;
- MediaSource* _tmp7_;
- CompletedImportObject* _tmp14_;
- BatchImportResult* _tmp15_;
-#line 1138 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ MediaSource* _tmp6_;
+ CompletedImportObject* _tmp13_;
+ BatchImportResult* _tmp14_;
+#line 1155 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (IS_BATCH_IMPORT (self));
-#line 1138 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1155 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (IS_BACKGROUND_JOB (j));
-#line 1139 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1156 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp0_ = self->priv->completed;
-#line 1139 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1156 "/home/jens/Source/shotwell/src/BatchImport.vala"
_vala_assert (!_tmp0_, "!completed");
-#line 1141 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = j;
-#line 1141 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = _background_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_THUMBNAIL_WRITER_JOB, ThumbnailWriterJob));
-#line 1141 "/home/jens/Source/shotwell/src/BatchImport.vala"
- job = _tmp2_;
-#line 1142 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = job;
-#line 1142 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = _tmp3_->completed_import_source;
-#line 1142 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = _completed_import_object_ref0 (_tmp4_);
-#line 1142 "/home/jens/Source/shotwell/src/BatchImport.vala"
- completed = _tmp5_;
-#line 1144 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1158 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp1_ = _background_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST (j, TYPE_THUMBNAIL_WRITER_JOB, ThumbnailWriterJob));
+#line 1158 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ job = _tmp1_;
+#line 1159 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp2_ = job;
+#line 1159 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp3_ = _tmp2_->completed_import_source;
+#line 1159 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp4_ = _completed_import_object_ref0 (_tmp3_);
+#line 1159 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ completed = _tmp4_;
+#line 1161 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_log_status (self, "on_thumbnail_writer_cancelled");
-#line 1146 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = completed;
-#line 1146 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = _tmp6_->source;
-#line 1146 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, TYPE_LIBRARY_PHOTO)) {
-#line 8964 "BatchImport.c"
- CompletedImportObject* _tmp8_;
- MediaSource* _tmp9_;
-#line 1147 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = completed;
-#line 1147 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = _tmp8_->source;
-#line 1147 "/home/jens/Source/shotwell/src/BatchImport.vala"
- library_photo_import_failed (G_TYPE_CHECK_INSTANCE_TYPE (_tmp9_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp9_) : NULL);
-#line 8973 "BatchImport.c"
+#line 1163 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp5_ = completed;
+#line 1163 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp6_ = _tmp5_->source;
+#line 1163 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp6_, TYPE_LIBRARY_PHOTO)) {
+#line 9717 "BatchImport.c"
+ CompletedImportObject* _tmp7_;
+ MediaSource* _tmp8_;
+#line 1164 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp7_ = completed;
+#line 1164 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp8_ = _tmp7_->source;
+#line 1164 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ library_photo_import_failed (G_TYPE_CHECK_INSTANCE_TYPE (_tmp8_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp8_) : NULL);
+#line 9726 "BatchImport.c"
} else {
- CompletedImportObject* _tmp10_;
- MediaSource* _tmp11_;
-#line 1148 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = completed;
-#line 1148 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp11_ = _tmp10_->source;
-#line 1148 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp11_, TYPE_VIDEO)) {
-#line 8983 "BatchImport.c"
- CompletedImportObject* _tmp12_;
- MediaSource* _tmp13_;
-#line 1149 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp12_ = completed;
-#line 1149 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp13_ = _tmp12_->source;
-#line 1149 "/home/jens/Source/shotwell/src/BatchImport.vala"
- video_import_failed (G_TYPE_CHECK_INSTANCE_TYPE (_tmp13_, TYPE_VIDEO) ? ((Video*) _tmp13_) : NULL);
-#line 8992 "BatchImport.c"
+ CompletedImportObject* _tmp9_;
+ MediaSource* _tmp10_;
+#line 1165 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp9_ = completed;
+#line 1165 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp10_ = _tmp9_->source;
+#line 1165 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp10_, TYPE_VIDEO)) {
+#line 9736 "BatchImport.c"
+ CompletedImportObject* _tmp11_;
+ MediaSource* _tmp12_;
+#line 1166 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp11_ = completed;
+#line 1166 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp12_ = _tmp11_->source;
+#line 1166 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ video_import_failed (G_TYPE_CHECK_INSTANCE_TYPE (_tmp12_, TYPE_VIDEO) ? ((Video*) _tmp12_) : NULL);
+#line 9745 "BatchImport.c"
}
}
-#line 1151 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp14_ = completed;
-#line 1151 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp15_ = _tmp14_->batch_result;
-#line 1151 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_report_failure (self, _tmp15_);
-#line 1152 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1168 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp13_ = completed;
+#line 1168 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp14_ = _tmp13_->batch_result;
+#line 1168 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ batch_import_report_failure (self, _tmp14_);
+#line 1169 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_file_import_complete (self);
-#line 1154 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1171 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_flush_import_jobs (self);
-#line 1138 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1155 "/home/jens/Source/shotwell/src/BatchImport.vala"
_completed_import_object_unref0 (completed);
-#line 1138 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1155 "/home/jens/Source/shotwell/src/BatchImport.vala"
_background_job_unref0 (job);
-#line 9009 "BatchImport.c"
+#line 9762 "BatchImport.c"
}
-static void batch_import_flush_ready_sources (BatchImport* self) {
+static void
+batch_import_flush_ready_sources (BatchImport* self)
+{
GeeList* _tmp0_;
gint _tmp1_;
gint _tmp2_;
@@ -9040,60 +9795,60 @@ static void batch_import_flush_ready_sources (BatchImport* self) {
GeeArrayList* _tmp46_;
VideoSourceCollection* _tmp47_;
GeeArrayList* _tmp48_;
- GeeArrayList* _tmp70_;
- BatchImportRoll* _tmp71_;
- ViewCollection* _tmp72_;
- TagSourceCollection* _tmp73_;
- EventSourceCollection* _tmp74_;
+ GeeArrayList* _tmp69_;
+ BatchImportRoll* _tmp70_;
+ ViewCollection* _tmp71_;
+ TagSourceCollection* _tmp72_;
+ EventSourceCollection* _tmp73_;
+ MediaCollectionRegistry* _tmp74_;
MediaCollectionRegistry* _tmp75_;
- MediaCollectionRegistry* _tmp76_;
- GeeList* _tmp77_;
+ GeeList* _tmp76_;
GError * _inner_error_ = NULL;
-#line 1161 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1178 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (IS_BATCH_IMPORT (self));
-#line 1162 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1179 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp0_ = self->priv->ready_sources;
-#line 1162 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1179 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp1_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1162 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1179 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp2_ = _tmp1_;
-#line 1162 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1179 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (_tmp2_ == 0) {
-#line 1163 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1180 "/home/jens/Source/shotwell/src/BatchImport.vala"
return;
-#line 9059 "BatchImport.c"
+#line 9814 "BatchImport.c"
}
-#line 1168 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1185 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp3_ = self->priv->ready_sources;
-#line 1168 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1185 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp4_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1168 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1185 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp5_ = _tmp4_;
-#line 1168 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1185 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp6_ = g_strdup_printf ("flush_ready_sources (%d)", _tmp5_);
-#line 1168 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1185 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp7_ = _tmp6_;
-#line 1168 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1185 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_log_status (self, _tmp7_);
-#line 1168 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1185 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (_tmp7_);
-#line 1170 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1187 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp8_ = gee_array_list_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 1170 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1187 "/home/jens/Source/shotwell/src/BatchImport.vala"
all = _tmp8_;
-#line 1171 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1188 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp9_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 1171 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1188 "/home/jens/Source/shotwell/src/BatchImport.vala"
photos = _tmp9_;
-#line 1172 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1189 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp10_ = gee_array_list_new (TYPE_VIDEO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
-#line 1172 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1189 "/home/jens/Source/shotwell/src/BatchImport.vala"
videos = _tmp10_;
-#line 1173 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1190 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp11_ = gee_hash_map_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, TYPE_BATCH_IMPORT_JOB, (GBoxedCopyFunc) batch_import_job_ref, (GDestroyNotify) batch_import_job_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 1173 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1190 "/home/jens/Source/shotwell/src/BatchImport.vala"
completion_list = _tmp11_;
-#line 9091 "BatchImport.c"
+#line 9846 "BatchImport.c"
{
GeeList* _completed_list = NULL;
GeeList* _tmp12_;
@@ -9103,25 +9858,25 @@ static void batch_import_flush_ready_sources (BatchImport* self) {
gint _tmp15_;
gint _tmp16_;
gint _completed_index = 0;
-#line 1175 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp12_ = self->priv->ready_sources;
-#line 1175 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp13_ = _g_object_ref0 (_tmp12_);
-#line 1175 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala"
_completed_list = _tmp13_;
-#line 1175 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp14_ = _completed_list;
-#line 1175 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp15_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1175 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp16_ = _tmp15_;
-#line 1175 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala"
_completed_size = _tmp16_;
-#line 1175 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala"
_completed_index = -1;
-#line 1175 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala"
while (TRUE) {
-#line 9119 "BatchImport.c"
+#line 9874 "BatchImport.c"
gint _tmp17_;
gint _tmp18_;
gint _tmp19_;
@@ -9139,128 +9894,128 @@ static void batch_import_flush_ready_sources (BatchImport* self) {
MediaSource* _tmp38_;
CompletedImportObject* _tmp39_;
BatchImportJob* _tmp40_;
-#line 1175 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp17_ = _completed_index;
-#line 1175 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala"
_completed_index = _tmp17_ + 1;
-#line 1175 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp18_ = _completed_index;
-#line 1175 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp19_ = _completed_size;
-#line 1175 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (!(_tmp18_ < _tmp19_)) {
-#line 1175 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala"
break;
-#line 9149 "BatchImport.c"
+#line 9904 "BatchImport.c"
}
-#line 1175 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp20_ = _completed_list;
-#line 1175 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp21_ = _completed_index;
-#line 1175 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp22_ = gee_list_get (_tmp20_, _tmp21_);
-#line 1175 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala"
completed = (CompletedImportObject*) _tmp22_;
-#line 1176 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1193 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp23_ = all;
-#line 1176 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1193 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp24_ = completed;
-#line 1176 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1193 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp25_ = _tmp24_->source;
-#line 1176 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1193 "/home/jens/Source/shotwell/src/BatchImport.vala"
gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp25_);
-#line 1178 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1195 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp26_ = completed;
-#line 1178 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1195 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp27_ = _tmp26_->source;
-#line 1178 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1195 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp27_, TYPE_LIBRARY_PHOTO)) {
-#line 9173 "BatchImport.c"
+#line 9928 "BatchImport.c"
GeeArrayList* _tmp28_;
CompletedImportObject* _tmp29_;
MediaSource* _tmp30_;
-#line 1179 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1196 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp28_ = photos;
-#line 1179 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1196 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp29_ = completed;
-#line 1179 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1196 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp30_ = _tmp29_->source;
-#line 1179 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1196 "/home/jens/Source/shotwell/src/BatchImport.vala"
gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, TYPE_LIBRARY_PHOTO, LibraryPhoto));
-#line 9185 "BatchImport.c"
+#line 9940 "BatchImport.c"
} else {
CompletedImportObject* _tmp31_;
MediaSource* _tmp32_;
-#line 1180 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1197 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp31_ = completed;
-#line 1180 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1197 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp32_ = _tmp31_->source;
-#line 1180 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1197 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp32_, TYPE_VIDEO)) {
-#line 9195 "BatchImport.c"
+#line 9950 "BatchImport.c"
GeeArrayList* _tmp33_;
CompletedImportObject* _tmp34_;
MediaSource* _tmp35_;
-#line 1181 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1198 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp33_ = videos;
-#line 1181 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1198 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp34_ = completed;
-#line 1181 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1198 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp35_ = _tmp34_->source;
-#line 1181 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1198 "/home/jens/Source/shotwell/src/BatchImport.vala"
gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, TYPE_VIDEO, Video));
-#line 9207 "BatchImport.c"
+#line 9962 "BatchImport.c"
}
}
-#line 1183 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1200 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp36_ = completion_list;
-#line 1183 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1200 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp37_ = completed;
-#line 1183 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1200 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp38_ = _tmp37_->source;
-#line 1183 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1200 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp39_ = completed;
-#line 1183 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1200 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp40_ = _tmp39_->original_job;
-#line 1183 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1200 "/home/jens/Source/shotwell/src/BatchImport.vala"
gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp38_, _tmp40_);
-#line 1175 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala"
_completed_import_object_unref0 (completed);
-#line 9224 "BatchImport.c"
+#line 9979 "BatchImport.c"
}
-#line 1175 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (_completed_list);
-#line 9228 "BatchImport.c"
+#line 9983 "BatchImport.c"
}
-#line 1186 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1203 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp41_ = media_collection_registry_get_instance ();
-#line 1186 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1203 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp42_ = _tmp41_;
-#line 1186 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1203 "/home/jens/Source/shotwell/src/BatchImport.vala"
media_collection_registry_begin_transaction_on_all (_tmp42_);
-#line 1186 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1203 "/home/jens/Source/shotwell/src/BatchImport.vala"
_media_collection_registry_unref0 (_tmp42_);
-#line 1187 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1204 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp43_ = event_global;
-#line 1187 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1204 "/home/jens/Source/shotwell/src/BatchImport.vala"
data_collection_freeze_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, TYPE_DATA_COLLECTION, DataCollection));
-#line 1188 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1205 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp44_ = tag_global;
-#line 1188 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1205 "/home/jens/Source/shotwell/src/BatchImport.vala"
data_collection_freeze_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, TYPE_DATA_COLLECTION, DataCollection));
-#line 1190 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1207 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp45_ = library_photo_global;
-#line 1190 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1207 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp46_ = photos;
-#line 1190 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1207 "/home/jens/Source/shotwell/src/BatchImport.vala"
media_source_collection_import_many (G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1191 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1208 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp47_ = video_global;
-#line 1191 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1208 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp48_ = videos;
-#line 1191 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1208 "/home/jens/Source/shotwell/src/BatchImport.vala"
media_source_collection_import_many (G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 9258 "BatchImport.c"
+#line 10013 "BatchImport.c"
{
GeeIterator* _media_it = NULL;
GeeHashMap* _tmp49_;
@@ -9269,753 +10024,768 @@ static void batch_import_flush_ready_sources (BatchImport* self) {
GeeSet* _tmp52_;
GeeIterator* _tmp53_;
GeeIterator* _tmp54_;
-#line 1194 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1211 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp49_ = completion_list;
-#line 1194 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1211 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp50_ = gee_abstract_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap));
-#line 1194 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1211 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp51_ = _tmp50_;
-#line 1194 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1211 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp52_ = _tmp51_;
-#line 1194 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1211 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp53_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 1194 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1211 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp54_ = _tmp53_;
-#line 1194 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1211 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (_tmp52_);
-#line 1194 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1211 "/home/jens/Source/shotwell/src/BatchImport.vala"
_media_it = _tmp54_;
-#line 1194 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1211 "/home/jens/Source/shotwell/src/BatchImport.vala"
while (TRUE) {
-#line 9285 "BatchImport.c"
+#line 10040 "BatchImport.c"
GeeIterator* _tmp55_;
- gboolean _tmp56_;
MediaSource* media = NULL;
- GeeIterator* _tmp57_;
- gpointer _tmp58_;
-#line 1194 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ GeeIterator* _tmp56_;
+ gpointer _tmp57_;
+#line 1211 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp55_ = _media_it;
-#line 1194 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp56_ = gee_iterator_next (_tmp55_);
-#line 1194 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!_tmp56_) {
-#line 1194 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1211 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (!gee_iterator_next (_tmp55_)) {
+#line 1211 "/home/jens/Source/shotwell/src/BatchImport.vala"
break;
-#line 9299 "BatchImport.c"
+#line 10051 "BatchImport.c"
}
-#line 1194 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp57_ = _media_it;
-#line 1194 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp58_ = gee_iterator_get (_tmp57_);
-#line 1194 "/home/jens/Source/shotwell/src/BatchImport.vala"
- media = (MediaSource*) _tmp58_;
-#line 9307 "BatchImport.c"
+#line 1211 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp56_ = _media_it;
+#line 1211 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp57_ = gee_iterator_get (_tmp56_);
+#line 1211 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ media = (MediaSource*) _tmp57_;
+#line 10059 "BatchImport.c"
{
- GeeHashMap* _tmp59_;
- MediaSource* _tmp60_;
- gpointer _tmp61_;
- BatchImportJob* _tmp62_;
- MediaSource* _tmp63_;
- BatchImportRoll* _tmp64_;
-#line 1196 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp59_ = completion_list;
-#line 1196 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp60_ = media;
-#line 1196 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp61_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp59_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp60_);
-#line 1196 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp62_ = (BatchImportJob*) _tmp61_;
-#line 1196 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp63_ = media;
-#line 1196 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp64_ = self->priv->import_roll;
-#line 1196 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_job_complete (_tmp62_, _tmp63_, _tmp64_, &_inner_error_);
-#line 1196 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_job_unref0 (_tmp62_);
-#line 1196 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ GeeHashMap* _tmp58_;
+ MediaSource* _tmp59_;
+ gpointer _tmp60_;
+ BatchImportJob* _tmp61_;
+ MediaSource* _tmp62_;
+ BatchImportRoll* _tmp63_;
+#line 1213 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp58_ = completion_list;
+#line 1213 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp59_ = media;
+#line 1213 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp60_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp58_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp59_);
+#line 1213 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp61_ = (BatchImportJob*) _tmp60_;
+#line 1213 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp62_ = media;
+#line 1213 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp63_ = self->priv->import_roll;
+#line 1213 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ batch_import_job_complete (_tmp61_, _tmp62_, _tmp63_, &_inner_error_);
+#line 1213 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _batch_import_job_unref0 (_tmp61_);
+#line 1213 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 9333 "BatchImport.c"
- goto __catch413_g_error;
+#line 10085 "BatchImport.c"
+ goto __catch425_g_error;
}
}
- goto __finally413;
- __catch413_g_error:
+ goto __finally425;
+ __catch425_g_error:
{
GError* err = NULL;
- MediaSource* _tmp65_;
+ MediaSource* _tmp64_;
+ gchar* _tmp65_;
gchar* _tmp66_;
- gchar* _tmp67_;
- GError* _tmp68_;
- const gchar* _tmp69_;
-#line 1195 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ GError* _tmp67_;
+ const gchar* _tmp68_;
+#line 1212 "/home/jens/Source/shotwell/src/BatchImport.vala"
err = _inner_error_;
-#line 1195 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1212 "/home/jens/Source/shotwell/src/BatchImport.vala"
_inner_error_ = NULL;
-#line 1198 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp65_ = media;
-#line 1198 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp66_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp65_, TYPE_DATA_OBJECT, DataObject));
-#line 1198 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp67_ = _tmp66_;
-#line 1198 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp68_ = err;
-#line 1198 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp69_ = _tmp68_->message;
-#line 1198 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_warning ("BatchImport.vala:1198: Completion error when finalizing import of %s: " \
-"%s", _tmp67_, _tmp69_);
-#line 1198 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp67_);
-#line 1195 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1215 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp64_ = media;
+#line 1215 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp65_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp64_, TYPE_DATA_OBJECT, DataObject));
+#line 1215 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp66_ = _tmp65_;
+#line 1215 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp67_ = err;
+#line 1215 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp68_ = _tmp67_->message;
+#line 1215 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ g_warning ("BatchImport.vala:1215: Completion error when finalizing import of %s: " \
+"%s", _tmp66_, _tmp68_);
+#line 1215 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_tmp66_);
+#line 1212 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_error_free0 (err);
-#line 9366 "BatchImport.c"
+#line 10118 "BatchImport.c"
}
- __finally413:
-#line 1195 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ __finally425:
+#line 1212 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1195 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1212 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (media);
-#line 1195 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1212 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (_media_it);
-#line 1195 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1212 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (completion_list);
-#line 1195 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1212 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (videos);
-#line 1195 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1212 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (photos);
-#line 1195 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1212 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (all);
-#line 1195 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1212 "/home/jens/Source/shotwell/src/BatchImport.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 1195 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1212 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_clear_error (&_inner_error_);
-#line 1195 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1212 "/home/jens/Source/shotwell/src/BatchImport.vala"
return;
-#line 9389 "BatchImport.c"
+#line 10141 "BatchImport.c"
}
-#line 1194 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1211 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (media);
-#line 9393 "BatchImport.c"
+#line 10145 "BatchImport.c"
}
-#line 1194 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1211 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (_media_it);
-#line 9397 "BatchImport.c"
+#line 10149 "BatchImport.c"
}
-#line 1204 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp70_ = all;
-#line 1204 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp71_ = self->priv->import_roll;
-#line 1204 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp72_ = _tmp71_->generated_events;
-#line 1204 "/home/jens/Source/shotwell/src/BatchImport.vala"
- event_generate_many_events (G_TYPE_CHECK_INSTANCE_CAST (_tmp70_, GEE_TYPE_COLLECTION, GeeCollection), _tmp72_);
-#line 1206 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp73_ = tag_global;
-#line 1206 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1221 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp69_ = all;
+#line 1221 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp70_ = self->priv->import_roll;
+#line 1221 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp71_ = _tmp70_->generated_events;
+#line 1221 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ event_generate_many_events (G_TYPE_CHECK_INSTANCE_CAST (_tmp69_, GEE_TYPE_COLLECTION, GeeCollection), _tmp71_);
+#line 1223 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp72_ = tag_global;
+#line 1223 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ data_collection_thaw_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp72_, TYPE_DATA_COLLECTION, DataCollection));
+#line 1224 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp73_ = event_global;
+#line 1224 "/home/jens/Source/shotwell/src/BatchImport.vala"
data_collection_thaw_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp73_, TYPE_DATA_COLLECTION, DataCollection));
-#line 1207 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp74_ = event_global;
-#line 1207 "/home/jens/Source/shotwell/src/BatchImport.vala"
- data_collection_thaw_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp74_, TYPE_DATA_COLLECTION, DataCollection));
-#line 1208 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp75_ = media_collection_registry_get_instance ();
-#line 1208 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp76_ = _tmp75_;
-#line 1208 "/home/jens/Source/shotwell/src/BatchImport.vala"
- media_collection_registry_commit_transaction_on_all (_tmp76_);
-#line 1208 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _media_collection_registry_unref0 (_tmp76_);
-#line 1210 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp77_ = self->priv->ready_sources;
-#line 1210 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp77_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1161 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1225 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp74_ = media_collection_registry_get_instance ();
+#line 1225 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp75_ = _tmp74_;
+#line 1225 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ media_collection_registry_commit_transaction_on_all (_tmp75_);
+#line 1225 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _media_collection_registry_unref0 (_tmp75_);
+#line 1227 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp76_ = self->priv->ready_sources;
+#line 1227 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ gee_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp76_, GEE_TYPE_COLLECTION, GeeCollection));
+#line 1178 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (completion_list);
-#line 1161 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1178 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (videos);
-#line 1161 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1178 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (photos);
-#line 1161 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1178 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (all);
-#line 9435 "BatchImport.c"
+#line 10187 "BatchImport.c"
}
-static gboolean batch_import_display_imported_timer (BatchImport* self) {
+static gboolean
+batch_import_display_imported_timer (BatchImport* self)
+{
gboolean result = FALSE;
GeeList* _tmp0_;
gint _tmp1_;
gint _tmp2_;
GCancellable* _tmp4_;
- gboolean _tmp5_;
gint total = 0;
- GCancellable* _tmp9_;
- gboolean _tmp10_;
+ GCancellable* _tmp8_;
+ gint _tmp15_;
+ GeeList* _tmp16_;
+ gint _tmp17_;
gint _tmp18_;
- GeeList* _tmp19_;
- gint _tmp20_;
- gint _tmp21_;
- gint _tmp22_;
- gboolean _tmp47_ = FALSE;
- GeeList* _tmp48_;
- gint _tmp49_;
- gint _tmp50_;
-#line 1215 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ gboolean _tmp41_ = FALSE;
+ GeeList* _tmp42_;
+ gint _tmp43_;
+ gint _tmp44_;
+#line 1232 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (IS_BATCH_IMPORT (self), FALSE);
-#line 1216 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1233 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp0_ = self->priv->display_imported_queue;
-#line 1216 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1233 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp1_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1216 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1233 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp2_ = _tmp1_;
-#line 1216 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1233 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (_tmp2_ == 0) {
-#line 9468 "BatchImport.c"
+#line 10219 "BatchImport.c"
gboolean _tmp3_;
-#line 1217 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1234 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp3_ = self->priv->completed;
-#line 1217 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1234 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = !_tmp3_;
-#line 1217 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1234 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 9476 "BatchImport.c"
+#line 10227 "BatchImport.c"
}
-#line 1219 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1236 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp4_ = self->priv->cancellable;
-#line 1219 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = g_cancellable_is_cancelled (_tmp4_);
-#line 1219 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp5_) {
-#line 9484 "BatchImport.c"
- GeeList* _tmp6_;
+#line 1236 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (g_cancellable_is_cancelled (_tmp4_)) {
+#line 10233 "BatchImport.c"
+ GeeList* _tmp5_;
+ gint _tmp6_;
gint _tmp7_;
- gint _tmp8_;
-#line 1220 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = self->priv->display_imported_queue;
-#line 1220 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1220 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = _tmp7_;
-#line 1220 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_debug ("BatchImport.vala:1220: Importing %d photos at once", _tmp8_);
-#line 9496 "BatchImport.c"
+#line 1237 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp5_ = self->priv->display_imported_queue;
+#line 1237 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp6_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection));
+#line 1237 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp7_ = _tmp6_;
+#line 1237 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ g_debug ("BatchImport.vala:1237: Importing %d photos at once", _tmp7_);
+#line 10245 "BatchImport.c"
}
-#line 1222 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1239 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_log_status (self, "display_imported_timer");
-#line 1232 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1249 "/home/jens/Source/shotwell/src/BatchImport.vala"
total = 1;
-#line 1233 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = self->priv->cancellable;
-#line 1233 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = g_cancellable_is_cancelled (_tmp9_);
-#line 1233 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!_tmp10_) {
-#line 9508 "BatchImport.c"
- GeeList* _tmp11_;
- gint _tmp12_;
- gint _tmp13_;
-#line 1234 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp11_ = self->priv->display_imported_queue;
-#line 1234 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp12_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1234 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp13_ = _tmp12_;
-#line 1234 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp13_ > BATCH_IMPORT_DISPLAY_QUEUE_HYSTERESIS_OVERFLOW) {
-#line 9520 "BatchImport.c"
- GeeList* _tmp14_;
- gint _tmp15_;
- gint _tmp16_;
- gint _tmp17_;
-#line 1235 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp14_ = self->priv->display_imported_queue;
-#line 1235 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp15_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1235 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp16_ = _tmp15_;
-#line 1235 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp17_ = CLAMP ((_tmp16_ / BATCH_IMPORT_DISPLAY_QUEUE_HYSTERESIS_OVERFLOW) + 2, 0, 16);
-#line 1235 "/home/jens/Source/shotwell/src/BatchImport.vala"
- total = 1 << _tmp17_;
-#line 9535 "BatchImport.c"
+#line 1250 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp8_ = self->priv->cancellable;
+#line 1250 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (!g_cancellable_is_cancelled (_tmp8_)) {
+#line 10255 "BatchImport.c"
+ GeeList* _tmp9_;
+ gint _tmp10_;
+ gint _tmp11_;
+#line 1251 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp9_ = self->priv->display_imported_queue;
+#line 1251 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp10_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_COLLECTION, GeeCollection));
+#line 1251 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp11_ = _tmp10_;
+#line 1251 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp11_ > BATCH_IMPORT_DISPLAY_QUEUE_HYSTERESIS_OVERFLOW) {
+#line 10267 "BatchImport.c"
+ GeeList* _tmp12_;
+ gint _tmp13_;
+ gint _tmp14_;
+#line 1252 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp12_ = self->priv->display_imported_queue;
+#line 1252 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp13_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_COLLECTION, GeeCollection));
+#line 1252 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp14_ = _tmp13_;
+#line 1252 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ total = 1 << CLAMP ((_tmp14_ / BATCH_IMPORT_DISPLAY_QUEUE_HYSTERESIS_OVERFLOW) + 2, 0, 16);
+#line 10279 "BatchImport.c"
}
} else {
-#line 1239 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1256 "/home/jens/Source/shotwell/src/BatchImport.vala"
total = BATCH_IMPORT_DISPLAY_QUEUE_HYSTERESIS_OVERFLOW;
-#line 9540 "BatchImport.c"
+#line 10284 "BatchImport.c"
}
-#line 1242 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp18_ = total;
-#line 1242 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp19_ = self->priv->display_imported_queue;
-#line 1242 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp20_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1242 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp21_ = _tmp20_;
-#line 1242 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp22_ = MIN (_tmp18_, _tmp21_);
-#line 1242 "/home/jens/Source/shotwell/src/BatchImport.vala"
- total = _tmp22_;
-#line 1252 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1259 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp15_ = total;
+#line 1259 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp16_ = self->priv->display_imported_queue;
+#line 1259 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp17_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_COLLECTION, GeeCollection));
+#line 1259 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp18_ = _tmp17_;
+#line 1259 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ total = MIN (_tmp15_, _tmp18_);
+#line 1269 "/home/jens/Source/shotwell/src/BatchImport.vala"
while (TRUE) {
-#line 9556 "BatchImport.c"
- gint _tmp23_;
+#line 10298 "BatchImport.c"
+ gint _tmp19_;
CompletedImportObject* completed_object = NULL;
- GeeList* _tmp24_;
- gpointer _tmp25_;
+ GeeList* _tmp20_;
+ gpointer _tmp21_;
GdkPixbuf* user_preview = NULL;
+ CompletedImportObject* _tmp22_;
+ GdkPixbuf* _tmp23_;
+ GdkPixbuf* _tmp24_;
+ CompletedImportObject* _tmp25_;
CompletedImportObject* _tmp26_;
- GdkPixbuf* _tmp27_;
- GdkPixbuf* _tmp28_;
+ GeeList* _tmp27_;
+ CompletedImportObject* _tmp28_;
CompletedImportObject* _tmp29_;
- CompletedImportObject* _tmp30_;
- GeeList* _tmp31_;
- CompletedImportObject* _tmp32_;
+ MediaSource* _tmp30_;
+ GdkPixbuf* _tmp31_;
+ gint _tmp32_;
CompletedImportObject* _tmp33_;
MediaSource* _tmp34_;
- GdkPixbuf* _tmp35_;
- gint _tmp36_;
- CompletedImportObject* _tmp37_;
- MediaSource* _tmp38_;
-#line 1252 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp23_ = total;
-#line 1252 "/home/jens/Source/shotwell/src/BatchImport.vala"
- total = _tmp23_ - 1;
-#line 1252 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!(_tmp23_ > 0)) {
-#line 1252 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1269 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp19_ = total;
+#line 1269 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ total = _tmp19_ - 1;
+#line 1269 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (!(_tmp19_ > 0)) {
+#line 1269 "/home/jens/Source/shotwell/src/BatchImport.vala"
break;
-#line 9583 "BatchImport.c"
+#line 10325 "BatchImport.c"
}
-#line 1253 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp24_ = self->priv->display_imported_queue;
-#line 1253 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp25_ = gee_list_remove_at (_tmp24_, 0);
-#line 1253 "/home/jens/Source/shotwell/src/BatchImport.vala"
- completed_object = (CompletedImportObject*) _tmp25_;
-#line 1256 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1270 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp20_ = self->priv->display_imported_queue;
+#line 1270 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp21_ = gee_list_remove_at (_tmp20_, 0);
+#line 1270 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ completed_object = (CompletedImportObject*) _tmp21_;
+#line 1273 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp22_ = completed_object;
+#line 1273 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp23_ = _tmp22_->user_preview;
+#line 1273 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp24_ = _g_object_ref0 (_tmp23_);
+#line 1273 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ user_preview = _tmp24_;
+#line 1276 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp25_ = completed_object;
+#line 1276 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_object_unref0 (_tmp25_->user_preview);
+#line 1276 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp25_->user_preview = NULL;
+#line 1277 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp26_ = completed_object;
-#line 1256 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp27_ = _tmp26_->user_preview;
-#line 1256 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp28_ = _g_object_ref0 (_tmp27_);
-#line 1256 "/home/jens/Source/shotwell/src/BatchImport.vala"
- user_preview = _tmp28_;
-#line 1259 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1277 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _thumbnails_unref0 (_tmp26_->thumbnails);
+#line 1277 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp26_->thumbnails = NULL;
+#line 1282 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp27_ = self->priv->ready_sources;
+#line 1282 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp28_ = completed_object;
+#line 1282 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, GEE_TYPE_COLLECTION, GeeCollection), _tmp28_);
+#line 1284 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp29_ = completed_object;
-#line 1259 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_tmp29_->user_preview);
-#line 1259 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp29_->user_preview = NULL;
-#line 1260 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp30_ = completed_object;
-#line 1260 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _thumbnails_unref0 (_tmp30_->thumbnails);
-#line 1260 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp30_->thumbnails = NULL;
-#line 1265 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp31_ = self->priv->ready_sources;
-#line 1265 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp32_ = completed_object;
-#line 1265 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, GEE_TYPE_COLLECTION, GeeCollection), _tmp32_);
-#line 1267 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1284 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp30_ = _tmp29_->source;
+#line 1284 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp31_ = user_preview;
+#line 1284 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp32_ = total;
+#line 1284 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ g_signal_emit (self, batch_import_signals[BATCH_IMPORT_IMPORTED_SIGNAL], 0, _tmp30_, _tmp31_, _tmp32_);
+#line 1287 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp33_ = completed_object;
-#line 1267 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1287 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp34_ = _tmp33_->source;
-#line 1267 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp35_ = user_preview;
-#line 1267 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp36_ = total;
-#line 1267 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_signal_emit (self, batch_import_signals[BATCH_IMPORT_IMPORTED_SIGNAL], 0, _tmp34_, _tmp35_, _tmp36_);
-#line 1270 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp37_ = completed_object;
-#line 1270 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp38_ = _tmp37_->source;
-#line 1270 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp38_, TYPE_PHOTO_SOURCE)) {
-#line 9633 "BatchImport.c"
+#line 1287 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp34_, TYPE_PHOTO_SOURCE)) {
+#line 10375 "BatchImport.c"
PhotoSource* photo_source = NULL;
+ CompletedImportObject* _tmp35_;
+ MediaSource* _tmp36_;
+ PhotoSource* _tmp37_;
+ PhotoSource* _tmp38_;
+#line 1288 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp35_ = completed_object;
+#line 1288 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp36_ = _tmp35_->source;
+#line 1288 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp37_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp36_, TYPE_PHOTO_SOURCE) ? ((PhotoSource*) _tmp36_) : NULL);
+#line 1288 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ photo_source = _tmp37_;
+#line 1289 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp38_ = photo_source;
+#line 1289 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ batch_import_report_progress (self, media_source_get_master_filesize (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, TYPE_MEDIA_SOURCE, MediaSource)));
+#line 1287 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_object_unref0 (photo_source);
+#line 10395 "BatchImport.c"
+ } else {
CompletedImportObject* _tmp39_;
MediaSource* _tmp40_;
- PhotoSource* _tmp41_;
- PhotoSource* _tmp42_;
- guint64 _tmp43_;
-#line 1271 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1291 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp39_ = completed_object;
-#line 1271 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1291 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp40_ = _tmp39_->source;
-#line 1271 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp41_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp40_, TYPE_PHOTO_SOURCE) ? ((PhotoSource*) _tmp40_) : NULL);
-#line 1271 "/home/jens/Source/shotwell/src/BatchImport.vala"
- photo_source = _tmp41_;
-#line 1272 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp42_ = photo_source;
-#line 1272 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp43_ = media_source_get_master_filesize (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 1272 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_report_progress (self, _tmp43_);
-#line 1270 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (photo_source);
-#line 9656 "BatchImport.c"
- } else {
- CompletedImportObject* _tmp44_;
- MediaSource* _tmp45_;
- guint64 _tmp46_;
-#line 1274 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp44_ = completed_object;
-#line 1274 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp45_ = _tmp44_->source;
-#line 1274 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp46_ = media_source_get_filesize (_tmp45_);
-#line 1274 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_report_progress (self, _tmp46_);
-#line 9669 "BatchImport.c"
+#line 1291 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ batch_import_report_progress (self, media_source_get_filesize (_tmp40_));
+#line 10405 "BatchImport.c"
}
-#line 1276 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1293 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_file_import_complete (self);
-#line 1252 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1269 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (user_preview);
-#line 1252 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1269 "/home/jens/Source/shotwell/src/BatchImport.vala"
_completed_import_object_unref0 (completed_object);
-#line 9677 "BatchImport.c"
+#line 10413 "BatchImport.c"
}
-#line 1279 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp48_ = self->priv->ready_sources;
-#line 1279 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp49_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1279 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp50_ = _tmp49_;
-#line 1279 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp50_ >= BATCH_IMPORT_READY_SOURCES_COUNT_OVERFLOW) {
-#line 1279 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp47_ = TRUE;
-#line 9689 "BatchImport.c"
+#line 1296 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp42_ = self->priv->ready_sources;
+#line 1296 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp43_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, GEE_TYPE_COLLECTION, GeeCollection));
+#line 1296 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp44_ = _tmp43_;
+#line 1296 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp44_ >= BATCH_IMPORT_READY_SOURCES_COUNT_OVERFLOW) {
+#line 1296 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp41_ = TRUE;
+#line 10425 "BatchImport.c"
} else {
- GCancellable* _tmp51_;
- gboolean _tmp52_;
-#line 1279 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp51_ = self->priv->cancellable;
-#line 1279 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp52_ = g_cancellable_is_cancelled (_tmp51_);
-#line 1279 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp47_ = _tmp52_;
-#line 9699 "BatchImport.c"
+ GCancellable* _tmp45_;
+#line 1296 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp45_ = self->priv->cancellable;
+#line 1296 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp41_ = g_cancellable_is_cancelled (_tmp45_);
+#line 10432 "BatchImport.c"
}
-#line 1279 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp47_) {
-#line 1280 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1296 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp41_) {
+#line 1297 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_flush_ready_sources (self);
-#line 9705 "BatchImport.c"
+#line 10438 "BatchImport.c"
}
-#line 1282 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1299 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = TRUE;
-#line 1282 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1299 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 9711 "BatchImport.c"
+#line 10444 "BatchImport.c"
}
-static void g_cclosure_user_marshal_VOID__UINT64_UINT64 (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data) {
+static void
+g_cclosure_user_marshal_VOID__UINT64_UINT64 (GClosure * closure,
+ GValue * return_value,
+ guint n_param_values,
+ const GValue * param_values,
+ gpointer invocation_hint,
+ gpointer marshal_data)
+{
typedef void (*GMarshalFunc_VOID__UINT64_UINT64) (gpointer data1, guint64 arg_1, guint64 arg_2, gpointer data2);
register GMarshalFunc_VOID__UINT64_UINT64 callback;
register GCClosure * cc;
register gpointer data1;
register gpointer data2;
cc = (GCClosure *) closure;
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (n_param_values == 3);
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (G_CCLOSURE_SWAP_DATA (closure)) {
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
data1 = closure->data;
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
data2 = param_values->data[0].v_pointer;
-#line 9730 "BatchImport.c"
+#line 10470 "BatchImport.c"
} else {
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
data1 = param_values->data[0].v_pointer;
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
data2 = closure->data;
-#line 9736 "BatchImport.c"
+#line 10476 "BatchImport.c"
}
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
callback = (GMarshalFunc_VOID__UINT64_UINT64) (marshal_data ? marshal_data : cc->callback);
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
callback (data1, g_value_get_uint64 (param_values + 1), g_value_get_uint64 (param_values + 2), data2);
-#line 9742 "BatchImport.c"
+#line 10482 "BatchImport.c"
}
-static void g_cclosure_user_marshal_VOID__OBJECT_OBJECT_INT (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data) {
+static void
+g_cclosure_user_marshal_VOID__OBJECT_OBJECT_INT (GClosure * closure,
+ GValue * return_value,
+ guint n_param_values,
+ const GValue * param_values,
+ gpointer invocation_hint,
+ gpointer marshal_data)
+{
typedef void (*GMarshalFunc_VOID__OBJECT_OBJECT_INT) (gpointer data1, gpointer arg_1, gpointer arg_2, gint arg_3, gpointer data2);
register GMarshalFunc_VOID__OBJECT_OBJECT_INT callback;
register GCClosure * cc;
register gpointer data1;
register gpointer data2;
cc = (GCClosure *) closure;
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (n_param_values == 4);
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (G_CCLOSURE_SWAP_DATA (closure)) {
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
data1 = closure->data;
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
data2 = param_values->data[0].v_pointer;
-#line 9761 "BatchImport.c"
+#line 10508 "BatchImport.c"
} else {
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
data1 = param_values->data[0].v_pointer;
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
data2 = closure->data;
-#line 9767 "BatchImport.c"
+#line 10514 "BatchImport.c"
}
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
callback = (GMarshalFunc_VOID__OBJECT_OBJECT_INT) (marshal_data ? marshal_data : cc->callback);
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
callback (data1, g_value_get_object (param_values + 1), g_value_get_object (param_values + 2), g_value_get_int (param_values + 3), data2);
-#line 9773 "BatchImport.c"
+#line 10520 "BatchImport.c"
}
-static void g_cclosure_user_marshal_VOID__ENUM_STRING (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data) {
+static void
+g_cclosure_user_marshal_VOID__ENUM_STRING (GClosure * closure,
+ GValue * return_value,
+ guint n_param_values,
+ const GValue * param_values,
+ gpointer invocation_hint,
+ gpointer marshal_data)
+{
typedef void (*GMarshalFunc_VOID__ENUM_STRING) (gpointer data1, gint arg_1, const char* arg_2, gpointer data2);
register GMarshalFunc_VOID__ENUM_STRING callback;
register GCClosure * cc;
register gpointer data1;
register gpointer data2;
cc = (GCClosure *) closure;
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (n_param_values == 3);
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (G_CCLOSURE_SWAP_DATA (closure)) {
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
data1 = closure->data;
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
data2 = param_values->data[0].v_pointer;
-#line 9792 "BatchImport.c"
+#line 10546 "BatchImport.c"
} else {
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
data1 = param_values->data[0].v_pointer;
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
data2 = closure->data;
-#line 9798 "BatchImport.c"
+#line 10552 "BatchImport.c"
}
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
callback = (GMarshalFunc_VOID__ENUM_STRING) (marshal_data ? marshal_data : cc->callback);
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
callback (data1, g_value_get_enum (param_values + 1), g_value_get_string (param_values + 2), data2);
-#line 9804 "BatchImport.c"
+#line 10558 "BatchImport.c"
}
-static void g_cclosure_user_marshal_VOID__BATCH_IMPORT_RESULT (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data) {
+static void
+g_cclosure_user_marshal_VOID__BATCH_IMPORT_RESULT (GClosure * closure,
+ GValue * return_value,
+ guint n_param_values,
+ const GValue * param_values,
+ gpointer invocation_hint,
+ gpointer marshal_data)
+{
typedef void (*GMarshalFunc_VOID__BATCH_IMPORT_RESULT) (gpointer data1, gpointer arg_1, gpointer data2);
register GMarshalFunc_VOID__BATCH_IMPORT_RESULT callback;
register GCClosure * cc;
register gpointer data1;
register gpointer data2;
cc = (GCClosure *) closure;
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (n_param_values == 2);
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (G_CCLOSURE_SWAP_DATA (closure)) {
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
data1 = closure->data;
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
data2 = param_values->data[0].v_pointer;
-#line 9823 "BatchImport.c"
+#line 10584 "BatchImport.c"
} else {
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
data1 = param_values->data[0].v_pointer;
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
data2 = closure->data;
-#line 9829 "BatchImport.c"
+#line 10590 "BatchImport.c"
}
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
callback = (GMarshalFunc_VOID__BATCH_IMPORT_RESULT) (marshal_data ? marshal_data : cc->callback);
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
callback (data1, value_get_batch_import_result (param_values + 1), data2);
-#line 9835 "BatchImport.c"
+#line 10596 "BatchImport.c"
}
-static void g_cclosure_user_marshal_VOID__IMPORT_MANIFEST_BATCH_IMPORT_ROLL (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data) {
+static void
+g_cclosure_user_marshal_VOID__IMPORT_MANIFEST_BATCH_IMPORT_ROLL (GClosure * closure,
+ GValue * return_value,
+ guint n_param_values,
+ const GValue * param_values,
+ gpointer invocation_hint,
+ gpointer marshal_data)
+{
typedef void (*GMarshalFunc_VOID__IMPORT_MANIFEST_BATCH_IMPORT_ROLL) (gpointer data1, gpointer arg_1, gpointer arg_2, gpointer data2);
register GMarshalFunc_VOID__IMPORT_MANIFEST_BATCH_IMPORT_ROLL callback;
register GCClosure * cc;
register gpointer data1;
register gpointer data2;
cc = (GCClosure *) closure;
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (n_param_values == 3);
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (G_CCLOSURE_SWAP_DATA (closure)) {
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
data1 = closure->data;
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
data2 = param_values->data[0].v_pointer;
-#line 9854 "BatchImport.c"
+#line 10622 "BatchImport.c"
} else {
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
data1 = param_values->data[0].v_pointer;
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
data2 = closure->data;
-#line 9860 "BatchImport.c"
+#line 10628 "BatchImport.c"
}
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
callback = (GMarshalFunc_VOID__IMPORT_MANIFEST_BATCH_IMPORT_ROLL) (marshal_data ? marshal_data : cc->callback);
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
callback (data1, value_get_import_manifest (param_values + 1), value_get_batch_import_roll (param_values + 2), data2);
-#line 9866 "BatchImport.c"
+#line 10634 "BatchImport.c"
}
-static void batch_import_class_init (BatchImportClass * klass) {
+static void
+batch_import_class_init (BatchImportClass * klass)
+{
Workers* _tmp0_;
- guint _tmp1_;
- Workers* _tmp2_;
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ Workers* _tmp1_;
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_parent_class = g_type_class_peek_parent (klass);
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_type_class_add_private (klass, sizeof (BatchImportPrivate));
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
G_OBJECT_CLASS (klass)->finalize = batch_import_finalize;
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_signals[BATCH_IMPORT_STARTING_SIGNAL] = g_signal_new ("starting", TYPE_BATCH_IMPORT, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_signals[BATCH_IMPORT_PREPARING_SIGNAL] = g_signal_new ("preparing", TYPE_BATCH_IMPORT, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_signals[BATCH_IMPORT_PROGRESS_SIGNAL] = g_signal_new ("progress", TYPE_BATCH_IMPORT, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__UINT64_UINT64, G_TYPE_NONE, 2, G_TYPE_UINT64, G_TYPE_UINT64);
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_signals[BATCH_IMPORT_IMPORTED_SIGNAL] = g_signal_new ("imported", TYPE_BATCH_IMPORT, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT_INT, G_TYPE_NONE, 3, TYPE_MEDIA_SOURCE, gdk_pixbuf_get_type (), G_TYPE_INT);
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_signals[BATCH_IMPORT_FATAL_ERROR_SIGNAL] = g_signal_new ("fatal-error", TYPE_BATCH_IMPORT, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__ENUM_STRING, G_TYPE_NONE, 2, TYPE_IMPORT_RESULT, G_TYPE_STRING);
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_signals[BATCH_IMPORT_IMPORT_JOB_FAILED_SIGNAL] = g_signal_new ("import-job-failed", TYPE_BATCH_IMPORT, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__BATCH_IMPORT_RESULT, G_TYPE_NONE, 1, TYPE_BATCH_IMPORT_RESULT);
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_signals[BATCH_IMPORT_IMPORT_COMPLETE_SIGNAL] = g_signal_new ("import-complete", TYPE_BATCH_IMPORT, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__IMPORT_MANIFEST_BATCH_IMPORT_ROLL, G_TYPE_NONE, 2, TYPE_IMPORT_MANIFEST, TYPE_BATCH_IMPORT_ROLL);
-#line 413 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 429 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp0_ = workers_new ((guint) 1, FALSE);
-#line 413 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 429 "/home/jens/Source/shotwell/src/BatchImport.vala"
batch_import_feeder_workers = _tmp0_;
-#line 414 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = workers_thread_per_cpu_minus_one ();
-#line 414 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = workers_new (_tmp1_, FALSE);
-#line 414 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_import_import_workers = _tmp2_;
-#line 9904 "BatchImport.c"
+#line 430 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp1_ = workers_new (workers_thread_per_cpu_minus_one (), FALSE);
+#line 430 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ batch_import_import_workers = _tmp1_;
+#line 10671 "BatchImport.c"
}
-static void batch_import_instance_init (BatchImport * self) {
+static void
+batch_import_instance_init (BatchImport * self)
+{
GeeHashMap* _tmp0_;
- guint _tmp1_;
+ GeeLinkedList* _tmp1_;
GeeLinkedList* _tmp2_;
GeeLinkedList* _tmp3_;
GeeLinkedList* _tmp4_;
- GeeLinkedList* _tmp5_;
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->priv = BATCH_IMPORT_GET_PRIVATE (self);
-#line 419 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 435 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->priv->completed_bytes = (guint64) 0;
-#line 420 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 436 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->priv->total_bytes = (guint64) 0;
-#line 423 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 439 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->priv->scheduled = FALSE;
-#line 424 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 440 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->priv->completed = FALSE;
-#line 425 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 441 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->priv->file_imports_to_perform = -1;
-#line 426 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 442 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->priv->file_imports_completed = 0;
-#line 427 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 443 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->priv->cancellable = NULL;
-#line 428 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 444 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->priv->last_preparing_ms = (gulong) 0;
-#line 431 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 447 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp0_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 431 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 447 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->priv->imported_full_md5_table = _tmp0_;
-#line 433 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 449 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->priv->throbber_id = (guint) 0;
-#line 434 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = workers_thread_per_cpu_minus_one ();
-#line 434 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->max_outstanding_import_jobs = _tmp1_;
-#line 435 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 450 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->priv->max_outstanding_import_jobs = workers_thread_per_cpu_minus_one ();
+#line 451 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->priv->untrash_duplicates = TRUE;
-#line 436 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 452 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->priv->mark_duplicates_online = TRUE;
-#line 440 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = gee_linked_list_new (TYPE_PREPARED_FILE, (GBoxedCopyFunc) prepared_file_ref, (GDestroyNotify) prepared_file_unref, NULL, NULL, NULL);
-#line 440 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->ready_files = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_LIST, GeeList);
-#line 441 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 456 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp1_ = gee_linked_list_new (TYPE_PREPARED_FILE, (GBoxedCopyFunc) prepared_file_ref, (GDestroyNotify) prepared_file_unref, NULL, NULL, NULL);
+#line 456 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->priv->ready_files = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_LIST, GeeList);
+#line 457 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp2_ = gee_linked_list_new (TYPE_COMPLETED_IMPORT_OBJECT, (GBoxedCopyFunc) completed_import_object_ref, (GDestroyNotify) completed_import_object_unref, NULL, NULL, NULL);
+#line 457 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->priv->ready_thumbnails = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_LIST, GeeList);
+#line 459 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp3_ = gee_linked_list_new (TYPE_COMPLETED_IMPORT_OBJECT, (GBoxedCopyFunc) completed_import_object_ref, (GDestroyNotify) completed_import_object_unref, NULL, NULL, NULL);
-#line 441 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->ready_thumbnails = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_LIST, GeeList);
-#line 443 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 459 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->priv->display_imported_queue = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_LIST, GeeList);
+#line 461 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp4_ = gee_linked_list_new (TYPE_COMPLETED_IMPORT_OBJECT, (GBoxedCopyFunc) completed_import_object_ref, (GDestroyNotify) completed_import_object_unref, NULL, NULL, NULL);
-#line 443 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->display_imported_queue = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_LIST, GeeList);
-#line 445 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = gee_linked_list_new (TYPE_COMPLETED_IMPORT_OBJECT, (GBoxedCopyFunc) completed_import_object_ref, (GDestroyNotify) completed_import_object_unref, NULL, NULL, NULL);
-#line 445 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->ready_sources = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_LIST, GeeList);
-#line 9963 "BatchImport.c"
+#line 461 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->priv->ready_sources = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_LIST, GeeList);
+#line 10729 "BatchImport.c"
}
-static void batch_import_finalize (GObject * obj) {
+static void
+batch_import_finalize (GObject * obj)
+{
BatchImport * self;
Application* _tmp0_;
Application* _tmp1_;
guint _tmp2_;
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_BATCH_IMPORT, BatchImport);
-#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 524 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp0_ = application_get_instance ();
-#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 524 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp1_ = _tmp0_;
-#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 524 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_signal_parse_name ("exiting", TYPE_APPLICATION, &_tmp2_, NULL, FALSE);
-#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 524 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_signal_handlers_disconnect_matched (_tmp1_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _batch_import_user_halt_application_exiting, self);
-#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 524 "/home/jens/Source/shotwell/src/BatchImport.vala"
_application_unref0 (_tmp1_);
-#line 416 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 432 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (self->priv->jobs);
-#line 417 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 433 "/home/jens/Source/shotwell/src/BatchImport.vala"
_batch_import_roll_unref0 (self->priv->import_roll);
-#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 434 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (self->priv->name);
-#line 422 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 438 "/home/jens/Source/shotwell/src/BatchImport.vala"
_import_manifest_unref0 (self->priv->manifest);
-#line 427 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 443 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (self->priv->cancellable);
-#line 429 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 445 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (self->priv->skipset);
-#line 431 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 447 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (self->priv->imported_full_md5_table);
-#line 440 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 456 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (self->priv->ready_files);
-#line 441 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 457 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (self->priv->ready_thumbnails);
-#line 443 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 459 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (self->priv->display_imported_queue);
-#line 445 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 461 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (self->priv->ready_sources);
-#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala"
G_OBJECT_CLASS (batch_import_parent_class)->finalize (obj);
-#line 10008 "BatchImport.c"
+#line 10776 "BatchImport.c"
}
-GType batch_import_get_type (void) {
+GType
+batch_import_get_type (void)
+{
static volatile gsize batch_import_type_id__volatile = 0;
if (g_once_init_enter (&batch_import_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (BatchImportClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) batch_import_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BatchImport), 0, (GInstanceInitFunc) batch_import_instance_init, NULL };
@@ -10027,171 +10797,178 @@ GType batch_import_get_type (void) {
}
-static DuplicatedFile* duplicated_file_construct (GType object_type) {
+static DuplicatedFile*
+duplicated_file_construct (GType object_type)
+{
DuplicatedFile * self = NULL;
-#line 1291 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1308 "/home/jens/Source/shotwell/src/BatchImport.vala"
self = (DuplicatedFile*) g_object_new (object_type, NULL);
-#line 1292 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1309 "/home/jens/Source/shotwell/src/BatchImport.vala"
_video_id_free0 (self->priv->video_id);
-#line 1292 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1309 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->priv->video_id = NULL;
-#line 1293 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1310 "/home/jens/Source/shotwell/src/BatchImport.vala"
_photo_id_free0 (self->priv->photo_id);
-#line 1293 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1310 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->priv->photo_id = NULL;
-#line 1294 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1311 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (self->priv->file);
-#line 1294 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1311 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->priv->file = NULL;
-#line 1291 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1308 "/home/jens/Source/shotwell/src/BatchImport.vala"
return self;
-#line 10042 "BatchImport.c"
+#line 10814 "BatchImport.c"
}
-static DuplicatedFile* duplicated_file_new (void) {
-#line 1291 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static DuplicatedFile*
+duplicated_file_new (void)
+{
+#line 1308 "/home/jens/Source/shotwell/src/BatchImport.vala"
return duplicated_file_construct (TYPE_DUPLICATED_FILE);
-#line 10049 "BatchImport.c"
+#line 10823 "BatchImport.c"
}
-static gpointer _photo_id_dup0 (gpointer self) {
-#line 1301 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static gpointer
+_photo_id_dup0 (gpointer self)
+{
+#line 1318 "/home/jens/Source/shotwell/src/BatchImport.vala"
return self ? photo_id_dup (self) : NULL;
-#line 10056 "BatchImport.c"
+#line 10832 "BatchImport.c"
}
-DuplicatedFile* duplicated_file_create_from_photo_id (PhotoID* photo_id) {
+DuplicatedFile*
+duplicated_file_create_from_photo_id (PhotoID* photo_id)
+{
DuplicatedFile* result = NULL;
- gboolean _tmp0_;
DuplicatedFile* _result_ = NULL;
- DuplicatedFile* _tmp1_;
- PhotoID _tmp2_;
- PhotoID* _tmp3_;
-#line 1297 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ DuplicatedFile* _tmp0_;
+ PhotoID _tmp1_;
+ PhotoID* _tmp2_;
+#line 1314 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (photo_id != NULL, NULL);
-#line 1298 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = photo_id_is_valid (photo_id);
-#line 1298 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _vala_assert (_tmp0_, "photo_id.is_valid()");
-#line 1300 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = duplicated_file_new ();
-#line 1300 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _result_ = _tmp1_;
-#line 1301 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = *photo_id;
-#line 1301 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = _photo_id_dup0 (&_tmp2_);
-#line 1301 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1315 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _vala_assert (photo_id_is_valid (photo_id), "photo_id.is_valid()");
+#line 1317 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp0_ = duplicated_file_new ();
+#line 1317 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _result_ = _tmp0_;
+#line 1318 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp1_ = *photo_id;
+#line 1318 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp2_ = _photo_id_dup0 (&_tmp1_);
+#line 1318 "/home/jens/Source/shotwell/src/BatchImport.vala"
_photo_id_free0 (_result_->priv->photo_id);
-#line 1301 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _result_->priv->photo_id = _tmp3_;
-#line 1302 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1318 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _result_->priv->photo_id = _tmp2_;
+#line 1319 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = _result_;
-#line 1302 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1319 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 10089 "BatchImport.c"
+#line 10864 "BatchImport.c"
}
-static gpointer _video_id_dup0 (gpointer self) {
-#line 1309 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static gpointer
+_video_id_dup0 (gpointer self)
+{
+#line 1326 "/home/jens/Source/shotwell/src/BatchImport.vala"
return self ? video_id_dup (self) : NULL;
-#line 10096 "BatchImport.c"
+#line 10873 "BatchImport.c"
}
-DuplicatedFile* duplicated_file_create_from_video_id (VideoID* video_id) {
+DuplicatedFile*
+duplicated_file_create_from_video_id (VideoID* video_id)
+{
DuplicatedFile* result = NULL;
- gboolean _tmp0_;
DuplicatedFile* _result_ = NULL;
- DuplicatedFile* _tmp1_;
- VideoID _tmp2_;
- VideoID* _tmp3_;
-#line 1305 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ DuplicatedFile* _tmp0_;
+ VideoID _tmp1_;
+ VideoID* _tmp2_;
+#line 1322 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (video_id != NULL, NULL);
-#line 1306 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = video_id_is_valid (video_id);
-#line 1306 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _vala_assert (_tmp0_, "video_id.is_valid()");
-#line 1308 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = duplicated_file_new ();
-#line 1308 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _result_ = _tmp1_;
-#line 1309 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = *video_id;
-#line 1309 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = _video_id_dup0 (&_tmp2_);
-#line 1309 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1323 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _vala_assert (video_id_is_valid (video_id), "video_id.is_valid()");
+#line 1325 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp0_ = duplicated_file_new ();
+#line 1325 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _result_ = _tmp0_;
+#line 1326 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp1_ = *video_id;
+#line 1326 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp2_ = _video_id_dup0 (&_tmp1_);
+#line 1326 "/home/jens/Source/shotwell/src/BatchImport.vala"
_video_id_free0 (_result_->priv->video_id);
-#line 1309 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _result_->priv->video_id = _tmp3_;
-#line 1310 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1326 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _result_->priv->video_id = _tmp2_;
+#line 1327 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = _result_;
-#line 1310 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1327 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 10129 "BatchImport.c"
+#line 10905 "BatchImport.c"
}
-DuplicatedFile* duplicated_file_create_from_file (GFile* file) {
+DuplicatedFile*
+duplicated_file_create_from_file (GFile* file)
+{
DuplicatedFile* result = NULL;
DuplicatedFile* _result_ = NULL;
DuplicatedFile* _tmp0_;
GFile* _tmp1_;
- GFile* _tmp2_;
-#line 1313 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1330 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 1314 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1331 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp0_ = duplicated_file_new ();
-#line 1314 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1331 "/home/jens/Source/shotwell/src/BatchImport.vala"
_result_ = _tmp0_;
-#line 1316 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = file;
-#line 1316 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = _g_object_ref0 (_tmp1_);
-#line 1316 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1333 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp1_ = _g_object_ref0 (file);
+#line 1333 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (_result_->priv->file);
-#line 1316 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _result_->priv->file = _tmp2_;
-#line 1318 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1333 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _result_->priv->file = _tmp1_;
+#line 1335 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = _result_;
-#line 1318 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1335 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 10157 "BatchImport.c"
+#line 10932 "BatchImport.c"
}
-GFile* duplicated_file_get_file (DuplicatedFile* self) {
+GFile*
+duplicated_file_get_file (DuplicatedFile* self)
+{
GFile* result = NULL;
GFile* _tmp0_;
-#line 1321 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1338 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (IS_DUPLICATED_FILE (self), NULL);
-#line 1322 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1339 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp0_ = self->priv->file;
-#line 1322 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1339 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (_tmp0_ != NULL) {
-#line 10170 "BatchImport.c"
+#line 10947 "BatchImport.c"
GFile* _tmp1_;
GFile* _tmp2_;
-#line 1323 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1340 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp1_ = self->priv->file;
-#line 1323 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1340 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp2_ = _g_object_ref0 (_tmp1_);
-#line 1323 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1340 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = _tmp2_;
-#line 1323 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1340 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 10181 "BatchImport.c"
+#line 10958 "BatchImport.c"
} else {
PhotoID* _tmp3_;
-#line 1324 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1341 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp3_ = self->priv->photo_id;
-#line 1324 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1341 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (_tmp3_ != NULL) {
-#line 10188 "BatchImport.c"
+#line 10965 "BatchImport.c"
Photo* photo_object = NULL;
LibraryPhotoSourceCollection* _tmp4_;
PhotoID* _tmp5_;
@@ -10201,42 +10978,42 @@ GFile* duplicated_file_get_file (DuplicatedFile* self) {
GFile* _tmp9_;
GFile* _tmp10_;
GFile* _tmp11_;
-#line 1325 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1342 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp4_ = library_photo_global;
-#line 1325 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1342 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp5_ = self->priv->photo_id;
-#line 1325 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1342 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp6_ = *_tmp5_;
-#line 1325 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1342 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp7_ = library_photo_source_collection_fetch (_tmp4_, &_tmp6_);
-#line 1325 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1342 "/home/jens/Source/shotwell/src/BatchImport.vala"
photo_object = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_PHOTO, Photo);
-#line 1326 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1343 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp8_ = photo_object;
-#line 1326 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1343 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp9_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 1326 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1343 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (self->priv->file);
-#line 1326 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1343 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->priv->file = _tmp9_;
-#line 1327 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1344 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp10_ = self->priv->file;
-#line 1327 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1344 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp11_ = _g_object_ref0 (_tmp10_);
-#line 1327 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1344 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = _tmp11_;
-#line 1327 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1344 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (photo_object);
-#line 1327 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1344 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 10226 "BatchImport.c"
+#line 11003 "BatchImport.c"
} else {
VideoID* _tmp12_;
-#line 1328 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1345 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp12_ = self->priv->video_id;
-#line 1328 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1345 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (_tmp12_ != NULL) {
-#line 10233 "BatchImport.c"
+#line 11010 "BatchImport.c"
Video* video_object = NULL;
VideoSourceCollection* _tmp13_;
VideoID* _tmp14_;
@@ -10246,80 +11023,88 @@ GFile* duplicated_file_get_file (DuplicatedFile* self) {
GFile* _tmp18_;
GFile* _tmp19_;
GFile* _tmp20_;
-#line 1329 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1346 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp13_ = video_global;
-#line 1329 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1346 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp14_ = self->priv->video_id;
-#line 1329 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1346 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp15_ = *_tmp14_;
-#line 1329 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1346 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp16_ = video_source_collection_fetch (_tmp13_, &_tmp15_);
-#line 1329 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1346 "/home/jens/Source/shotwell/src/BatchImport.vala"
video_object = G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_VIDEO, Video);
-#line 1330 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1347 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp17_ = video_object;
-#line 1330 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1347 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp18_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 1330 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1347 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (self->priv->file);
-#line 1330 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1347 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->priv->file = _tmp18_;
-#line 1331 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1348 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp19_ = self->priv->file;
-#line 1331 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1348 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp20_ = _g_object_ref0 (_tmp19_);
-#line 1331 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1348 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = _tmp20_;
-#line 1331 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1348 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (video_object);
-#line 1331 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1348 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 10271 "BatchImport.c"
+#line 11048 "BatchImport.c"
} else {
-#line 1333 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1350 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_assert_not_reached ();
-#line 10275 "BatchImport.c"
+#line 11052 "BatchImport.c"
}
}
}
}
-static void duplicated_file_class_init (DuplicatedFileClass * klass) {
-#line 1286 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static void
+duplicated_file_class_init (DuplicatedFileClass * klass)
+{
+#line 1303 "/home/jens/Source/shotwell/src/BatchImport.vala"
duplicated_file_parent_class = g_type_class_peek_parent (klass);
-#line 1286 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1303 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_type_class_add_private (klass, sizeof (DuplicatedFilePrivate));
-#line 1286 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1303 "/home/jens/Source/shotwell/src/BatchImport.vala"
G_OBJECT_CLASS (klass)->finalize = duplicated_file_finalize;
-#line 10289 "BatchImport.c"
+#line 11068 "BatchImport.c"
}
-static void duplicated_file_instance_init (DuplicatedFile * self) {
-#line 1286 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static void
+duplicated_file_instance_init (DuplicatedFile * self)
+{
+#line 1303 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->priv = DUPLICATED_FILE_GET_PRIVATE (self);
-#line 10296 "BatchImport.c"
+#line 11077 "BatchImport.c"
}
-static void duplicated_file_finalize (GObject * obj) {
+static void
+duplicated_file_finalize (GObject * obj)
+{
DuplicatedFile * self;
-#line 1286 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1303 "/home/jens/Source/shotwell/src/BatchImport.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_DUPLICATED_FILE, DuplicatedFile);
-#line 1287 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1304 "/home/jens/Source/shotwell/src/BatchImport.vala"
_video_id_free0 (self->priv->video_id);
-#line 1288 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1305 "/home/jens/Source/shotwell/src/BatchImport.vala"
_photo_id_free0 (self->priv->photo_id);
-#line 1289 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1306 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (self->priv->file);
-#line 1286 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1303 "/home/jens/Source/shotwell/src/BatchImport.vala"
G_OBJECT_CLASS (duplicated_file_parent_class)->finalize (obj);
-#line 10312 "BatchImport.c"
+#line 11095 "BatchImport.c"
}
-GType duplicated_file_get_type (void) {
+GType
+duplicated_file_get_type (void)
+{
static volatile gsize duplicated_file_type_id__volatile = 0;
if (g_once_init_enter (&duplicated_file_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (DuplicatedFileClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) duplicated_file_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DuplicatedFile), 0, (GInstanceInitFunc) duplicated_file_instance_init, NULL };
@@ -10331,308 +11116,248 @@ GType duplicated_file_get_type (void) {
}
-BackgroundImportJob* background_import_job_construct (GType object_type, BatchImport* owner, CompletionCallback callback, void* callback_target, GCancellable* cancellable, CancellationCallback cancellation, void* cancellation_target) {
+BackgroundImportJob*
+background_import_job_construct (GType object_type,
+ BatchImport* owner,
+ CompletionCallback callback,
+ void* callback_target,
+ GCancellable* cancellable,
+ CancellationCallback cancellation,
+ void* cancellation_target)
+{
BackgroundImportJob* self = NULL;
- BatchImport* _tmp0_;
- CompletionCallback _tmp1_;
- void* _tmp1__target;
- GCancellable* _tmp2_;
- CancellationCallback _tmp3_;
- void* _tmp3__target;
-#line 1360 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1377 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (IS_BATCH_IMPORT (owner), NULL);
-#line 1360 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1377 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (G_IS_CANCELLABLE (cancellable), NULL);
-#line 1362 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = owner;
-#line 1362 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = callback;
-#line 1362 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1__target = callback_target;
-#line 1362 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = cancellable;
-#line 1362 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = cancellation;
-#line 1362 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3__target = cancellation_target;
-#line 1362 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self = (BackgroundImportJob*) background_job_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, G_TYPE_OBJECT, GObject), _tmp1_, _tmp1__target, _tmp2_, _tmp3_, _tmp3__target, NULL);
-#line 1360 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1379 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self = (BackgroundImportJob*) background_job_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (owner, G_TYPE_OBJECT, GObject), callback, callback_target, cancellable, cancellation, cancellation_target, NULL);
+#line 1377 "/home/jens/Source/shotwell/src/BatchImport.vala"
return self;
-#line 10356 "BatchImport.c"
+#line 11131 "BatchImport.c"
}
-ImportResult background_import_job_abort_check (BackgroundImportJob* self) {
+ImportResult
+background_import_job_abort_check (BackgroundImportJob* self)
+{
ImportResult result = 0;
gboolean _tmp0_ = FALSE;
ImportResult _tmp1_;
- ImportResult _tmp3_;
-#line 1367 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ ImportResult _tmp2_;
+#line 1384 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (IS_BACKGROUND_IMPORT_JOB (self), 0);
-#line 1368 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1385 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp1_ = self->abort_flag;
-#line 1368 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1385 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (_tmp1_ == IMPORT_RESULT_SUCCESS) {
-#line 10371 "BatchImport.c"
- gboolean _tmp2_;
-#line 1368 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = background_job_is_cancelled (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_JOB, BackgroundJob));
-#line 1368 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = _tmp2_;
-#line 10377 "BatchImport.c"
+#line 1385 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp0_ = background_job_is_cancelled (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_JOB, BackgroundJob));
+#line 11150 "BatchImport.c"
} else {
-#line 1368 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1385 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp0_ = FALSE;
-#line 10381 "BatchImport.c"
+#line 11154 "BatchImport.c"
}
-#line 1368 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1385 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (_tmp0_) {
-#line 1369 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1386 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->abort_flag = IMPORT_RESULT_USER_ABORT;
-#line 10387 "BatchImport.c"
+#line 11160 "BatchImport.c"
}
-#line 1371 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = self->abort_flag;
-#line 1371 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = _tmp3_;
-#line 1371 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1388 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp2_ = self->abort_flag;
+#line 1388 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ result = _tmp2_;
+#line 1388 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 10395 "BatchImport.c"
+#line 11168 "BatchImport.c"
}
-void background_import_job_abort (BackgroundImportJob* self, ImportResult _result_) {
+void
+background_import_job_abort (BackgroundImportJob* self,
+ ImportResult _result_)
+{
ImportResult _tmp0_;
-#line 1374 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1391 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (IS_BACKGROUND_IMPORT_JOB (self));
-#line 1376 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1393 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp0_ = self->abort_flag;
-#line 1376 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1393 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (_tmp0_ == IMPORT_RESULT_SUCCESS) {
-#line 10407 "BatchImport.c"
- ImportResult _tmp1_;
-#line 1377 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = _result_;
-#line 1377 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->abort_flag = _tmp1_;
-#line 10413 "BatchImport.c"
+#line 1394 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->abort_flag = _result_;
+#line 11185 "BatchImport.c"
}
}
-void background_import_job_report_failure (BackgroundImportJob* self, BatchImportJob* job, GFile* file, const gchar* src_identifier, const gchar* dest_identifier, ImportResult _result_) {
- ImportResult _tmp0_;
- ImportResult _tmp1_;
- gboolean _tmp2_;
- GeeList* _tmp8_;
- BatchImportJob* _tmp9_;
- GFile* _tmp10_;
- const gchar* _tmp11_;
- const gchar* _tmp12_;
- ImportResult _tmp13_;
- BatchImportResult* _tmp14_;
- BatchImportResult* _tmp15_;
-#line 1380 "/home/jens/Source/shotwell/src/BatchImport.vala"
+void
+background_import_job_report_failure (BackgroundImportJob* self,
+ BatchImportJob* job,
+ GFile* file,
+ const gchar* src_identifier,
+ const gchar* dest_identifier,
+ ImportResult _result_)
+{
+ GeeList* _tmp2_;
+ BatchImportResult* _tmp3_;
+ BatchImportResult* _tmp4_;
+#line 1397 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (IS_BACKGROUND_IMPORT_JOB (self));
-#line 1380 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1397 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (IS_BATCH_IMPORT_JOB (job));
-#line 1380 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1397 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail ((file == NULL) || G_IS_FILE (file));
-#line 1380 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1397 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (src_identifier != NULL);
-#line 1380 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1397 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (dest_identifier != NULL);
-#line 1382 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = _result_;
-#line 1382 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _vala_assert (_tmp0_ != IMPORT_RESULT_SUCCESS, "result != ImportResult.SUCCESS");
-#line 1385 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = _result_;
-#line 1385 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = import_result_is_abort (_tmp1_);
-#line 1385 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp2_) {
-#line 10450 "BatchImport.c"
- ImportResult _tmp3_;
-#line 1386 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = _result_;
-#line 1386 "/home/jens/Source/shotwell/src/BatchImport.vala"
- background_import_job_abort (self, _tmp3_);
-#line 10456 "BatchImport.c"
+#line 1399 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _vala_assert (_result_ != IMPORT_RESULT_SUCCESS, "result != ImportResult.SUCCESS");
+#line 1402 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (import_result_is_abort (_result_)) {
+#line 1403 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ background_import_job_abort (self, _result_);
+#line 11217 "BatchImport.c"
} else {
- const gchar* _tmp4_;
- ImportResult _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
-#line 1388 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = src_identifier;
-#line 1388 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = _result_;
-#line 1388 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = import_result_to_string (_tmp5_);
-#line 1388 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = _tmp6_;
-#line 1388 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_warning ("BatchImport.vala:1388: Import failure %s: %s", _tmp4_, _tmp7_);
-#line 1388 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp7_);
-#line 10474 "BatchImport.c"
+ gchar* _tmp0_;
+ gchar* _tmp1_;
+#line 1405 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp0_ = import_result_to_string (_result_);
+#line 1405 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp1_ = _tmp0_;
+#line 1405 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ g_warning ("BatchImport.vala:1405: Import failure %s: %s", src_identifier, _tmp1_);
+#line 1405 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_tmp1_);
+#line 11229 "BatchImport.c"
}
-#line 1390 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = self->failed;
-#line 1390 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = job;
-#line 1390 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = file;
-#line 1390 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp11_ = src_identifier;
-#line 1390 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp12_ = dest_identifier;
-#line 1390 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp13_ = _result_;
-#line 1390 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp14_ = batch_import_result_new (_tmp9_, _tmp10_, _tmp11_, _tmp12_, NULL, _tmp13_);
-#line 1390 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp15_ = _tmp14_;
-#line 1390 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_COLLECTION, GeeCollection), _tmp15_);
-#line 1390 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_result_unref0 (_tmp15_);
-#line 10496 "BatchImport.c"
-}
-
-
-void background_import_job_report_error (BackgroundImportJob* self, BatchImportJob* job, GFile* file, const gchar* src_identifier, const gchar* dest_identifier, GError* err, ImportResult default_result) {
+#line 1407 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp2_ = self->failed;
+#line 1407 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp3_ = batch_import_result_new (job, file, src_identifier, dest_identifier, NULL, _result_);
+#line 1407 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp4_ = _tmp3_;
+#line 1407 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection), _tmp4_);
+#line 1407 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _batch_import_result_unref0 (_tmp4_);
+#line 11241 "BatchImport.c"
+}
+
+
+void
+background_import_job_report_error (BackgroundImportJob* self,
+ BatchImportJob* job,
+ GFile* file,
+ const gchar* src_identifier,
+ const gchar* dest_identifier,
+ GError* err,
+ ImportResult default_result)
+{
ImportResult _result_ = 0;
- GError* _tmp0_;
+ const gchar* _tmp0_;
ImportResult _tmp1_;
- ImportResult _tmp2_;
- const gchar* _tmp3_;
- GError* _tmp4_;
- const gchar* _tmp5_;
- ImportResult _tmp6_;
- gchar* _tmp7_;
- gchar* _tmp8_;
- ImportResult _tmp9_;
- gboolean _tmp10_;
- GeeList* _tmp12_;
- BatchImportJob* _tmp13_;
- GFile* _tmp14_;
- const gchar* _tmp15_;
- const gchar* _tmp16_;
- GError* _tmp17_;
- ImportResult _tmp18_;
- BatchImportResult* _tmp19_;
- BatchImportResult* _tmp20_;
-#line 1394 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ gchar* _tmp2_;
+ gchar* _tmp3_;
+ ImportResult _tmp4_;
+ GeeList* _tmp6_;
+ BatchImportResult* _tmp7_;
+ BatchImportResult* _tmp8_;
+#line 1411 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (IS_BACKGROUND_IMPORT_JOB (self));
-#line 1394 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1411 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (IS_BATCH_IMPORT_JOB (job));
-#line 1394 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1411 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail ((file == NULL) || G_IS_FILE (file));
-#line 1394 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1411 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (src_identifier != NULL);
-#line 1394 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1411 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (dest_identifier != NULL);
-#line 1396 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = err;
-#line 1396 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = default_result;
-#line 1396 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = import_result_convert_error (_tmp0_, _tmp1_);
-#line 1396 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _result_ = _tmp2_;
-#line 1398 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = src_identifier;
-#line 1398 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = err;
-#line 1398 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = _tmp4_->message;
-#line 1398 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = _result_;
-#line 1398 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = import_result_to_string (_tmp6_);
-#line 1398 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = _tmp7_;
-#line 1398 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_warning ("BatchImport.vala:1398: Import error %s: %s (%s)", _tmp3_, _tmp5_, _tmp8_);
-#line 1398 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp8_);
-#line 1400 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = _result_;
-#line 1400 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = import_result_is_abort (_tmp9_);
-#line 1400 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp10_) {
-#line 10562 "BatchImport.c"
- ImportResult _tmp11_;
-#line 1401 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp11_ = _result_;
-#line 1401 "/home/jens/Source/shotwell/src/BatchImport.vala"
- background_import_job_abort (self, _tmp11_);
-#line 10568 "BatchImport.c"
+#line 1413 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _result_ = import_result_convert_error (err, default_result);
+#line 1415 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp0_ = err->message;
+#line 1415 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp1_ = _result_;
+#line 1415 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp2_ = import_result_to_string (_tmp1_);
+#line 1415 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp3_ = _tmp2_;
+#line 1415 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ g_warning ("BatchImport.vala:1415: Import error %s: %s (%s)", src_identifier, _tmp0_, _tmp3_);
+#line 1415 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_tmp3_);
+#line 1417 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp4_ = _result_;
+#line 1417 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (import_result_is_abort (_tmp4_)) {
+#line 11291 "BatchImport.c"
+ ImportResult _tmp5_;
+#line 1418 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp5_ = _result_;
+#line 1418 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ background_import_job_abort (self, _tmp5_);
+#line 11297 "BatchImport.c"
}
-#line 1403 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp12_ = self->failed;
-#line 1403 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp13_ = job;
-#line 1403 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp14_ = file;
-#line 1403 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp15_ = src_identifier;
-#line 1403 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp16_ = dest_identifier;
-#line 1403 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp17_ = err;
-#line 1403 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp18_ = default_result;
-#line 1403 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp19_ = batch_import_result_new_from_error (_tmp13_, _tmp14_, _tmp15_, _tmp16_, _tmp17_, _tmp18_);
-#line 1403 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp20_ = _tmp19_;
-#line 1403 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_COLLECTION, GeeCollection), _tmp20_);
-#line 1403 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _batch_import_result_unref0 (_tmp20_);
-#line 10592 "BatchImport.c"
+#line 1420 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp6_ = self->failed;
+#line 1420 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp7_ = batch_import_result_new_from_error (job, file, src_identifier, dest_identifier, err, default_result);
+#line 1420 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp8_ = _tmp7_;
+#line 1420 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection), _tmp8_);
+#line 1420 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _batch_import_result_unref0 (_tmp8_);
+#line 11309 "BatchImport.c"
}
-static void background_import_job_class_init (BackgroundImportJobClass * klass) {
-#line 1356 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static void
+background_import_job_class_init (BackgroundImportJobClass * klass)
+{
+#line 1373 "/home/jens/Source/shotwell/src/BatchImport.vala"
background_import_job_parent_class = g_type_class_peek_parent (klass);
-#line 1356 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1373 "/home/jens/Source/shotwell/src/BatchImport.vala"
((BackgroundJobClass *) klass)->finalize = background_import_job_finalize;
-#line 10601 "BatchImport.c"
+#line 11320 "BatchImport.c"
}
-static void background_import_job_instance_init (BackgroundImportJob * self) {
+static void
+background_import_job_instance_init (BackgroundImportJob * self)
+{
GeeArrayList* _tmp0_;
-#line 1357 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1374 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->abort_flag = IMPORT_RESULT_SUCCESS;
-#line 1358 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1375 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp0_ = gee_array_list_new (TYPE_BATCH_IMPORT_RESULT, (GBoxedCopyFunc) batch_import_result_ref, (GDestroyNotify) batch_import_result_unref, NULL, NULL, NULL);
-#line 1358 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1375 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->failed = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_LIST, GeeList);
-#line 10613 "BatchImport.c"
+#line 11334 "BatchImport.c"
}
-static void background_import_job_finalize (BackgroundJob * obj) {
+static void
+background_import_job_finalize (BackgroundJob * obj)
+{
BackgroundImportJob * self;
-#line 1356 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1373 "/home/jens/Source/shotwell/src/BatchImport.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob);
-#line 1358 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1375 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (self->failed);
-#line 1356 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1373 "/home/jens/Source/shotwell/src/BatchImport.vala"
BACKGROUND_JOB_CLASS (background_import_job_parent_class)->finalize (obj);
-#line 10625 "BatchImport.c"
+#line 11348 "BatchImport.c"
}
-GType background_import_job_get_type (void) {
+GType
+background_import_job_get_type (void)
+{
static volatile gsize background_import_job_type_id__volatile = 0;
if (g_once_init_enter (&background_import_job_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (BackgroundImportJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) background_import_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BackgroundImportJob), 0, (GInstanceInitFunc) background_import_job_instance_init, NULL };
@@ -10644,151 +11369,157 @@ GType background_import_job_get_type (void) {
}
-FileToPrepare* file_to_prepare_construct (GType object_type, BatchImportJob* job, GFile* file, gboolean copy_to_library) {
+FileToPrepare*
+file_to_prepare_construct (GType object_type,
+ BatchImportJob* job,
+ GFile* file,
+ gboolean copy_to_library)
+{
FileToPrepare* self = NULL;
BatchImportJob* _tmp0_;
- BatchImportJob* _tmp1_;
- GFile* _tmp2_;
- GFile* _tmp3_;
- gboolean _tmp4_;
-#line 1414 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ GFile* _tmp1_;
+#line 1431 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (IS_BATCH_IMPORT_JOB (job), NULL);
-#line 1414 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1431 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail ((file == NULL) || G_IS_FILE (file), NULL);
-#line 1414 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1431 "/home/jens/Source/shotwell/src/BatchImport.vala"
self = (FileToPrepare*) g_type_create_instance (object_type);
-#line 1415 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = job;
-#line 1415 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = _batch_import_job_ref0 (_tmp0_);
-#line 1415 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1432 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp0_ = _batch_import_job_ref0 (job);
+#line 1432 "/home/jens/Source/shotwell/src/BatchImport.vala"
_batch_import_job_unref0 (self->job);
-#line 1415 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->job = _tmp1_;
-#line 1416 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = file;
-#line 1416 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = _g_object_ref0 (_tmp2_);
-#line 1416 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1432 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->job = _tmp0_;
+#line 1433 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp1_ = _g_object_ref0 (file);
+#line 1433 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (self->file);
-#line 1416 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->file = _tmp3_;
-#line 1417 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = copy_to_library;
-#line 1417 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->copy_to_library = _tmp4_;
-#line 1414 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1433 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->file = _tmp1_;
+#line 1434 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->copy_to_library = copy_to_library;
+#line 1431 "/home/jens/Source/shotwell/src/BatchImport.vala"
return self;
-#line 10676 "BatchImport.c"
+#line 11397 "BatchImport.c"
}
-FileToPrepare* file_to_prepare_new (BatchImportJob* job, GFile* file, gboolean copy_to_library) {
-#line 1414 "/home/jens/Source/shotwell/src/BatchImport.vala"
+FileToPrepare*
+file_to_prepare_new (BatchImportJob* job,
+ GFile* file,
+ gboolean copy_to_library)
+{
+#line 1431 "/home/jens/Source/shotwell/src/BatchImport.vala"
return file_to_prepare_construct (TYPE_FILE_TO_PREPARE, job, file, copy_to_library);
-#line 10683 "BatchImport.c"
+#line 11408 "BatchImport.c"
}
-static gpointer _file_to_prepare_ref0 (gpointer self) {
-#line 1421 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static gpointer
+_file_to_prepare_ref0 (gpointer self)
+{
+#line 1438 "/home/jens/Source/shotwell/src/BatchImport.vala"
return self ? file_to_prepare_ref (self) : NULL;
-#line 10690 "BatchImport.c"
+#line 11417 "BatchImport.c"
}
-void file_to_prepare_set_associated (FileToPrepare* self, FileToPrepare* a) {
+void
+file_to_prepare_set_associated (FileToPrepare* self,
+ FileToPrepare* a)
+{
FileToPrepare* _tmp0_;
- FileToPrepare* _tmp1_;
-#line 1420 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1437 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (IS_FILE_TO_PREPARE (self));
-#line 1420 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1437 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail ((a == NULL) || IS_FILE_TO_PREPARE (a));
-#line 1421 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = a;
-#line 1421 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = _file_to_prepare_ref0 (_tmp0_);
-#line 1421 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1438 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp0_ = _file_to_prepare_ref0 (a);
+#line 1438 "/home/jens/Source/shotwell/src/BatchImport.vala"
_file_to_prepare_unref0 (self->associated);
-#line 1421 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->associated = _tmp1_;
-#line 10709 "BatchImport.c"
+#line 1438 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->associated = _tmp0_;
+#line 11436 "BatchImport.c"
}
-gchar* file_to_prepare_get_parent_path (FileToPrepare* self) {
+gchar*
+file_to_prepare_get_parent_path (FileToPrepare* self)
+{
gchar* result = NULL;
gchar* _tmp0_ = NULL;
GFile* _tmp1_;
-#line 1424 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1441 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (IS_FILE_TO_PREPARE (self), NULL);
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1442 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp1_ = self->file;
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1442 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (_tmp1_ != NULL) {
-#line 10723 "BatchImport.c"
+#line 11452 "BatchImport.c"
GFile* _tmp2_;
GFile* _tmp3_;
GFile* _tmp4_;
gchar* _tmp5_;
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1442 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp2_ = self->file;
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1442 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp3_ = g_file_get_parent (_tmp2_);
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1442 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp4_ = _tmp3_;
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1442 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp5_ = g_file_get_path (_tmp4_);
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1442 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (_tmp0_);
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1442 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp0_ = _tmp5_;
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1442 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (_tmp4_);
-#line 10742 "BatchImport.c"
+#line 11471 "BatchImport.c"
} else {
BatchImportJob* _tmp6_;
gchar* _tmp7_;
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1442 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp6_ = self->job;
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1442 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp7_ = batch_import_job_get_path (_tmp6_);
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1442 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (_tmp0_);
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1442 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp0_ = _tmp7_;
-#line 10754 "BatchImport.c"
+#line 11483 "BatchImport.c"
}
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1442 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = _tmp0_;
-#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1442 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 10760 "BatchImport.c"
+#line 11489 "BatchImport.c"
}
-gchar* file_to_prepare_get_path (FileToPrepare* self) {
+gchar*
+file_to_prepare_get_path (FileToPrepare* self)
+{
gchar* result = NULL;
gchar* _tmp0_ = NULL;
GFile* _tmp1_;
-#line 1428 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1445 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (IS_FILE_TO_PREPARE (self), NULL);
-#line 1429 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp1_ = self->file;
-#line 1429 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (_tmp1_ != NULL) {
-#line 10774 "BatchImport.c"
+#line 11505 "BatchImport.c"
GFile* _tmp2_;
gchar* _tmp3_;
-#line 1429 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp2_ = self->file;
-#line 1429 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp3_ = g_file_get_path (_tmp2_);
-#line 1429 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (_tmp0_);
-#line 1429 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp0_ = _tmp3_;
-#line 10785 "BatchImport.c"
+#line 11516 "BatchImport.c"
} else {
BatchImportJob* _tmp4_;
gchar* _tmp5_;
@@ -10801,347 +11532,386 @@ gchar* file_to_prepare_get_path (FileToPrepare* self) {
GFile* _tmp12_;
GFile* _tmp13_;
gchar* _tmp14_;
-#line 1429 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp4_ = self->job;
-#line 1429 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp5_ = batch_import_job_get_path (_tmp4_);
-#line 1429 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp6_ = _tmp5_;
-#line 1429 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp7_ = g_file_new_for_path (_tmp6_);
-#line 1429 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp8_ = _tmp7_;
-#line 1429 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp9_ = self->job;
-#line 1429 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp10_ = batch_import_job_get_basename (_tmp9_);
-#line 1429 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp11_ = _tmp10_;
-#line 1429 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp12_ = g_file_get_child (_tmp8_, _tmp11_);
-#line 1429 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp13_ = _tmp12_;
-#line 1429 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp14_ = g_file_get_path (_tmp13_);
-#line 1429 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (_tmp0_);
-#line 1429 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp0_ = _tmp14_;
-#line 1429 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (_tmp13_);
-#line 1429 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (_tmp11_);
-#line 1429 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (_tmp8_);
-#line 1429 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (_tmp6_);
-#line 10832 "BatchImport.c"
+#line 11563 "BatchImport.c"
}
-#line 1429 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = _tmp0_;
-#line 1429 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 10838 "BatchImport.c"
+#line 11569 "BatchImport.c"
}
-gchar* file_to_prepare_get_basename (FileToPrepare* self) {
+gchar*
+file_to_prepare_get_basename (FileToPrepare* self)
+{
gchar* result = NULL;
gchar* _tmp0_ = NULL;
GFile* _tmp1_;
-#line 1433 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1450 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (IS_FILE_TO_PREPARE (self), NULL);
-#line 1434 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1451 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp1_ = self->file;
-#line 1434 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1451 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (_tmp1_ != NULL) {
-#line 10852 "BatchImport.c"
+#line 11585 "BatchImport.c"
GFile* _tmp2_;
gchar* _tmp3_;
-#line 1434 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1451 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp2_ = self->file;
-#line 1434 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1451 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp3_ = g_file_get_basename (_tmp2_);
-#line 1434 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1451 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (_tmp0_);
-#line 1434 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1451 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp0_ = _tmp3_;
-#line 10863 "BatchImport.c"
+#line 11596 "BatchImport.c"
} else {
BatchImportJob* _tmp4_;
gchar* _tmp5_;
-#line 1434 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1451 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp4_ = self->job;
-#line 1434 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1451 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp5_ = batch_import_job_get_basename (_tmp4_);
-#line 1434 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1451 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (_tmp0_);
-#line 1434 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1451 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp0_ = _tmp5_;
-#line 10875 "BatchImport.c"
+#line 11608 "BatchImport.c"
}
-#line 1434 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1451 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = _tmp0_;
-#line 1434 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1451 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 10881 "BatchImport.c"
+#line 11614 "BatchImport.c"
}
-gboolean file_to_prepare_is_directory (FileToPrepare* self) {
+gboolean
+file_to_prepare_is_directory (FileToPrepare* self)
+{
gboolean result = FALSE;
gboolean _tmp0_ = FALSE;
GFile* _tmp1_;
-#line 1437 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1454 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (IS_FILE_TO_PREPARE (self), FALSE);
-#line 1438 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1455 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp1_ = self->file;
-#line 1438 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1455 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (_tmp1_ != NULL) {
-#line 10895 "BatchImport.c"
+#line 11630 "BatchImport.c"
GFile* _tmp2_;
- GFileType _tmp3_;
-#line 1438 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1455 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp2_ = self->file;
-#line 1438 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = g_file_query_file_type (_tmp2_, G_FILE_QUERY_INFO_NONE, NULL);
-#line 1438 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = _tmp3_ == G_FILE_TYPE_DIRECTORY;
-#line 10904 "BatchImport.c"
+#line 1455 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp0_ = g_file_query_file_type (_tmp2_, G_FILE_QUERY_INFO_NONE, NULL) == G_FILE_TYPE_DIRECTORY;
+#line 11636 "BatchImport.c"
} else {
- BatchImportJob* _tmp4_;
- gboolean _tmp5_;
-#line 1439 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = self->job;
-#line 1439 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = batch_import_job_is_directory (_tmp4_);
-#line 1439 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = _tmp5_;
-#line 10914 "BatchImport.c"
+ BatchImportJob* _tmp3_;
+#line 1456 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp3_ = self->job;
+#line 1456 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp0_ = batch_import_job_is_directory (_tmp3_);
+#line 11643 "BatchImport.c"
}
-#line 1438 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1455 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = _tmp0_;
-#line 1438 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1455 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 10920 "BatchImport.c"
+#line 11649 "BatchImport.c"
}
-static void value_file_to_prepare_init (GValue* value) {
-#line 1408 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static void
+value_file_to_prepare_init (GValue* value)
+{
+#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
value->data[0].v_pointer = NULL;
-#line 10927 "BatchImport.c"
+#line 11658 "BatchImport.c"
}
-static void value_file_to_prepare_free_value (GValue* value) {
-#line 1408 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static void
+value_file_to_prepare_free_value (GValue* value)
+{
+#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (value->data[0].v_pointer) {
-#line 1408 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
file_to_prepare_unref (value->data[0].v_pointer);
-#line 10936 "BatchImport.c"
+#line 11669 "BatchImport.c"
}
}
-static void value_file_to_prepare_copy_value (const GValue* src_value, GValue* dest_value) {
-#line 1408 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static void
+value_file_to_prepare_copy_value (const GValue* src_value,
+ GValue* dest_value)
+{
+#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (src_value->data[0].v_pointer) {
-#line 1408 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
dest_value->data[0].v_pointer = file_to_prepare_ref (src_value->data[0].v_pointer);
-#line 10946 "BatchImport.c"
+#line 11682 "BatchImport.c"
} else {
-#line 1408 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
dest_value->data[0].v_pointer = NULL;
-#line 10950 "BatchImport.c"
+#line 11686 "BatchImport.c"
}
}
-static gpointer value_file_to_prepare_peek_pointer (const GValue* value) {
-#line 1408 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static gpointer
+value_file_to_prepare_peek_pointer (const GValue* value)
+{
+#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
return value->data[0].v_pointer;
-#line 10958 "BatchImport.c"
+#line 11696 "BatchImport.c"
}
-static gchar* value_file_to_prepare_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
-#line 1408 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static gchar*
+value_file_to_prepare_collect_value (GValue* value,
+ guint n_collect_values,
+ GTypeCValue* collect_values,
+ guint collect_flags)
+{
+#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (collect_values[0].v_pointer) {
-#line 10965 "BatchImport.c"
+#line 11708 "BatchImport.c"
FileToPrepare * object;
object = collect_values[0].v_pointer;
-#line 1408 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (object->parent_instance.g_class == NULL) {
-#line 1408 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 10972 "BatchImport.c"
+#line 11715 "BatchImport.c"
} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 1408 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 10976 "BatchImport.c"
+#line 11719 "BatchImport.c"
}
-#line 1408 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
value->data[0].v_pointer = file_to_prepare_ref (object);
-#line 10980 "BatchImport.c"
+#line 11723 "BatchImport.c"
} else {
-#line 1408 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
value->data[0].v_pointer = NULL;
-#line 10984 "BatchImport.c"
+#line 11727 "BatchImport.c"
}
-#line 1408 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
return NULL;
-#line 10988 "BatchImport.c"
+#line 11731 "BatchImport.c"
}
-static gchar* value_file_to_prepare_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+static gchar*
+value_file_to_prepare_lcopy_value (const GValue* value,
+ guint n_collect_values,
+ GTypeCValue* collect_values,
+ guint collect_flags)
+{
FileToPrepare ** object_p;
object_p = collect_values[0].v_pointer;
-#line 1408 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (!object_p) {
-#line 1408 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 10999 "BatchImport.c"
+#line 11747 "BatchImport.c"
}
-#line 1408 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (!value->data[0].v_pointer) {
-#line 1408 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
*object_p = NULL;
-#line 11005 "BatchImport.c"
+#line 11753 "BatchImport.c"
} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 1408 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
*object_p = value->data[0].v_pointer;
-#line 11009 "BatchImport.c"
+#line 11757 "BatchImport.c"
} else {
-#line 1408 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
*object_p = file_to_prepare_ref (value->data[0].v_pointer);
-#line 11013 "BatchImport.c"
+#line 11761 "BatchImport.c"
}
-#line 1408 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
return NULL;
-#line 11017 "BatchImport.c"
+#line 11765 "BatchImport.c"
}
-GParamSpec* param_spec_file_to_prepare (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+GParamSpec*
+param_spec_file_to_prepare (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags)
+{
ParamSpecFileToPrepare* spec;
-#line 1408 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (g_type_is_a (object_type, TYPE_FILE_TO_PREPARE), NULL);
-#line 1408 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 1408 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
G_PARAM_SPEC (spec)->value_type = object_type;
-#line 1408 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
return G_PARAM_SPEC (spec);
-#line 11031 "BatchImport.c"
+#line 11785 "BatchImport.c"
}
-gpointer value_get_file_to_prepare (const GValue* value) {
-#line 1408 "/home/jens/Source/shotwell/src/BatchImport.vala"
+gpointer
+value_get_file_to_prepare (const GValue* value)
+{
+#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_FILE_TO_PREPARE), NULL);
-#line 1408 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
return value->data[0].v_pointer;
-#line 11040 "BatchImport.c"
+#line 11796 "BatchImport.c"
}
-void value_set_file_to_prepare (GValue* value, gpointer v_object) {
+void
+value_set_file_to_prepare (GValue* value,
+ gpointer v_object)
+{
FileToPrepare * old;
-#line 1408 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_FILE_TO_PREPARE));
-#line 1408 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
old = value->data[0].v_pointer;
-#line 1408 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (v_object) {
-#line 1408 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_FILE_TO_PREPARE));
-#line 1408 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 1408 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
value->data[0].v_pointer = v_object;
-#line 1408 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
file_to_prepare_ref (value->data[0].v_pointer);
-#line 11060 "BatchImport.c"
+#line 11819 "BatchImport.c"
} else {
-#line 1408 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
value->data[0].v_pointer = NULL;
-#line 11064 "BatchImport.c"
+#line 11823 "BatchImport.c"
}
-#line 1408 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (old) {
-#line 1408 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
file_to_prepare_unref (old);
-#line 11070 "BatchImport.c"
+#line 11829 "BatchImport.c"
}
}
-void value_take_file_to_prepare (GValue* value, gpointer v_object) {
+void
+value_take_file_to_prepare (GValue* value,
+ gpointer v_object)
+{
FileToPrepare * old;
-#line 1408 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_FILE_TO_PREPARE));
-#line 1408 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
old = value->data[0].v_pointer;
-#line 1408 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (v_object) {
-#line 1408 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_FILE_TO_PREPARE));
-#line 1408 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 1408 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
value->data[0].v_pointer = v_object;
-#line 11089 "BatchImport.c"
+#line 11851 "BatchImport.c"
} else {
-#line 1408 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
value->data[0].v_pointer = NULL;
-#line 11093 "BatchImport.c"
+#line 11855 "BatchImport.c"
}
-#line 1408 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (old) {
-#line 1408 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
file_to_prepare_unref (old);
-#line 11099 "BatchImport.c"
+#line 11861 "BatchImport.c"
}
}
-static void file_to_prepare_class_init (FileToPrepareClass * klass) {
-#line 1408 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static void
+file_to_prepare_class_init (FileToPrepareClass * klass)
+{
+#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
file_to_prepare_parent_class = g_type_class_peek_parent (klass);
-#line 1408 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
((FileToPrepareClass *) klass)->finalize = file_to_prepare_finalize;
-#line 11109 "BatchImport.c"
+#line 11873 "BatchImport.c"
}
-static void file_to_prepare_instance_init (FileToPrepare * self) {
-#line 1412 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static void
+file_to_prepare_instance_init (FileToPrepare * self)
+{
+#line 1429 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->associated = NULL;
-#line 1408 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->ref_count = 1;
-#line 11118 "BatchImport.c"
+#line 11884 "BatchImport.c"
}
-static void file_to_prepare_finalize (FileToPrepare * obj) {
+static void
+file_to_prepare_finalize (FileToPrepare * obj)
+{
FileToPrepare * self;
-#line 1408 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_FILE_TO_PREPARE, FileToPrepare);
-#line 1408 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_signal_handlers_destroy (self);
-#line 1409 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1426 "/home/jens/Source/shotwell/src/BatchImport.vala"
_batch_import_job_unref0 (self->job);
-#line 1410 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1427 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (self->file);
-#line 1412 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1429 "/home/jens/Source/shotwell/src/BatchImport.vala"
_file_to_prepare_unref0 (self->associated);
-#line 11134 "BatchImport.c"
+#line 11902 "BatchImport.c"
}
-GType file_to_prepare_get_type (void) {
+GType
+file_to_prepare_get_type (void)
+{
static volatile gsize file_to_prepare_type_id__volatile = 0;
if (g_once_init_enter (&file_to_prepare_type_id__volatile)) {
static const GTypeValueTable g_define_type_value_table = { value_file_to_prepare_init, value_file_to_prepare_free_value, value_file_to_prepare_copy_value, value_file_to_prepare_peek_pointer, "p", value_file_to_prepare_collect_value, "p", value_file_to_prepare_lcopy_value };
@@ -11155,1610 +11925,1517 @@ GType file_to_prepare_get_type (void) {
}
-gpointer file_to_prepare_ref (gpointer instance) {
+gpointer
+file_to_prepare_ref (gpointer instance)
+{
FileToPrepare * self;
self = instance;
-#line 1408 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_atomic_int_inc (&self->ref_count);
-#line 1408 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
return instance;
-#line 11159 "BatchImport.c"
+#line 11931 "BatchImport.c"
}
-void file_to_prepare_unref (gpointer instance) {
+void
+file_to_prepare_unref (gpointer instance)
+{
FileToPrepare * self;
self = instance;
-#line 1408 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 1408 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
FILE_TO_PREPARE_GET_CLASS (self)->finalize (self);
-#line 1408 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_type_free_instance ((GTypeInstance *) self);
-#line 11172 "BatchImport.c"
+#line 11946 "BatchImport.c"
}
}
-WorkSniffer* work_sniffer_construct (GType object_type, BatchImport* owner, GeeIterable* jobs, CompletionCallback callback, void* callback_target, GCancellable* cancellable, CancellationCallback cancellation, void* cancellation_target, GeeHashSet* skipset) {
+WorkSniffer*
+work_sniffer_construct (GType object_type,
+ BatchImport* owner,
+ GeeIterable* jobs,
+ CompletionCallback callback,
+ void* callback_target,
+ GCancellable* cancellable,
+ CancellationCallback cancellation,
+ void* cancellation_target,
+ GeeHashSet* skipset)
+{
WorkSniffer* self = NULL;
- BatchImport* _tmp0_;
- CompletionCallback _tmp1_;
- void* _tmp1__target;
- GCancellable* _tmp2_;
- CancellationCallback _tmp3_;
- void* _tmp3__target;
- GeeIterable* _tmp4_;
- GeeIterable* _tmp5_;
- GeeHashSet* _tmp6_;
- GeeHashSet* _tmp7_;
-#line 1450 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ GeeIterable* _tmp0_;
+ GeeHashSet* _tmp1_;
+#line 1467 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (IS_BATCH_IMPORT (owner), NULL);
-#line 1450 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1467 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (GEE_IS_ITERABLE (jobs), NULL);
-#line 1450 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1467 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (G_IS_CANCELLABLE (cancellable), NULL);
-#line 1450 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1467 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail ((skipset == NULL) || GEE_IS_HASH_SET (skipset), NULL);
-#line 1452 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = owner;
-#line 1452 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = callback;
-#line 1452 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1__target = callback_target;
-#line 1452 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = cancellable;
-#line 1452 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = cancellation;
-#line 1452 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3__target = cancellation_target;
-#line 1452 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self = (WorkSniffer*) background_import_job_construct (object_type, _tmp0_, _tmp1_, _tmp1__target, _tmp2_, _tmp3_, _tmp3__target);
-#line 1454 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = jobs;
-#line 1454 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = _g_object_ref0 (_tmp4_);
-#line 1454 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1469 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self = (WorkSniffer*) background_import_job_construct (object_type, owner, callback, callback_target, cancellable, cancellation, cancellation_target);
+#line 1471 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp0_ = _g_object_ref0 (jobs);
+#line 1471 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (self->priv->jobs);
-#line 1454 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->jobs = _tmp5_;
-#line 1455 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = skipset;
-#line 1455 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = _g_object_ref0 (_tmp6_);
-#line 1455 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1471 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->priv->jobs = _tmp0_;
+#line 1472 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp1_ = _g_object_ref0 (skipset);
+#line 1472 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (self->priv->skipset);
-#line 1455 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->skipset = _tmp7_;
-#line 1450 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1472 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->priv->skipset = _tmp1_;
+#line 1467 "/home/jens/Source/shotwell/src/BatchImport.vala"
return self;
-#line 11229 "BatchImport.c"
+#line 11989 "BatchImport.c"
}
-WorkSniffer* work_sniffer_new (BatchImport* owner, GeeIterable* jobs, CompletionCallback callback, void* callback_target, GCancellable* cancellable, CancellationCallback cancellation, void* cancellation_target, GeeHashSet* skipset) {
-#line 1450 "/home/jens/Source/shotwell/src/BatchImport.vala"
+WorkSniffer*
+work_sniffer_new (BatchImport* owner,
+ GeeIterable* jobs,
+ CompletionCallback callback,
+ void* callback_target,
+ GCancellable* cancellable,
+ CancellationCallback cancellation,
+ void* cancellation_target,
+ GeeHashSet* skipset)
+{
+#line 1467 "/home/jens/Source/shotwell/src/BatchImport.vala"
return work_sniffer_construct (TYPE_WORK_SNIFFER, owner, jobs, callback, callback_target, cancellable, cancellation, cancellation_target, skipset);
-#line 11236 "BatchImport.c"
+#line 12005 "BatchImport.c"
}
-static gint __lambda11_ (WorkSniffer* self, FileToPrepare* a, FileToPrepare* b) {
+static gint
+__lambda11_ (WorkSniffer* self,
+ FileToPrepare* a,
+ FileToPrepare* b)
+{
gint result = 0;
FileToPrepare* file_a = NULL;
FileToPrepare* _tmp0_;
- FileToPrepare* _tmp1_;
FileToPrepare* file_b = NULL;
- FileToPrepare* _tmp2_;
- FileToPrepare* _tmp3_;
+ FileToPrepare* _tmp1_;
gchar* sa = NULL;
- gchar* _tmp4_;
+ gchar* _tmp2_;
gchar* sb = NULL;
- gchar* _tmp5_;
- gint _tmp6_;
-#line 1490 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ gchar* _tmp3_;
+#line 1507 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (IS_FILE_TO_PREPARE (a), 0);
-#line 1490 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1507 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (IS_FILE_TO_PREPARE (b), 0);
-#line 1491 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = a;
-#line 1491 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = _file_to_prepare_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_FILE_TO_PREPARE, FileToPrepare));
-#line 1491 "/home/jens/Source/shotwell/src/BatchImport.vala"
- file_a = _tmp1_;
-#line 1492 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = b;
-#line 1492 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = _file_to_prepare_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_FILE_TO_PREPARE, FileToPrepare));
-#line 1492 "/home/jens/Source/shotwell/src/BatchImport.vala"
- file_b = _tmp3_;
-#line 1493 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = file_to_prepare_get_path (file_a);
-#line 1493 "/home/jens/Source/shotwell/src/BatchImport.vala"
- sa = _tmp4_;
-#line 1494 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = file_to_prepare_get_path (file_b);
-#line 1494 "/home/jens/Source/shotwell/src/BatchImport.vala"
- sb = _tmp5_;
-#line 1495 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = utf8_cs_compare (sa, sb);
-#line 1495 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = _tmp6_;
-#line 1495 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1508 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp0_ = _file_to_prepare_ref0 (G_TYPE_CHECK_INSTANCE_CAST (a, TYPE_FILE_TO_PREPARE, FileToPrepare));
+#line 1508 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ file_a = _tmp0_;
+#line 1509 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp1_ = _file_to_prepare_ref0 (G_TYPE_CHECK_INSTANCE_CAST (b, TYPE_FILE_TO_PREPARE, FileToPrepare));
+#line 1509 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ file_b = _tmp1_;
+#line 1510 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp2_ = file_to_prepare_get_path (file_a);
+#line 1510 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ sa = _tmp2_;
+#line 1511 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp3_ = file_to_prepare_get_path (file_b);
+#line 1511 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ sb = _tmp3_;
+#line 1512 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ result = utf8_cs_compare (sa, sb);
+#line 1512 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (sb);
-#line 1495 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1512 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (sa);
-#line 1495 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1512 "/home/jens/Source/shotwell/src/BatchImport.vala"
_file_to_prepare_unref0 (file_b);
-#line 1495 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1512 "/home/jens/Source/shotwell/src/BatchImport.vala"
_file_to_prepare_unref0 (file_a);
-#line 1495 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1512 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 11291 "BatchImport.c"
+#line 12055 "BatchImport.c"
}
-static gint ___lambda11__gcompare_data_func (gconstpointer a, gconstpointer b, gpointer self) {
+static gint
+___lambda11__gcompare_data_func (gconstpointer a,
+ gconstpointer b,
+ gpointer self)
+{
gint result;
result = __lambda11_ ((WorkSniffer*) self, (FileToPrepare*) a, (FileToPrepare*) b);
-#line 1490 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1507 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 11300 "BatchImport.c"
+#line 12068 "BatchImport.c"
}
-static void work_sniffer_real_execute (BackgroundJob* base) {
+static void
+work_sniffer_real_execute (BackgroundJob* base)
+{
WorkSniffer * self;
GeeList* sorted = NULL;
- GeeArrayList* _tmp26_;
- GeeList* _tmp42_;
+ GeeArrayList* _tmp23_;
+ GeeList* _tmp38_;
GError * _inner_error_ = NULL;
-#line 1458 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1475 "/home/jens/Source/shotwell/src/BatchImport.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_WORK_SNIFFER, WorkSniffer);
-#line 11312 "BatchImport.c"
+#line 12082 "BatchImport.c"
{
GeeIterator* _job_it = NULL;
GeeIterable* _tmp0_;
GeeIterator* _tmp1_;
-#line 1462 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1479 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp0_ = self->priv->jobs;
-#line 1462 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1479 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp1_ = gee_iterable_iterator (_tmp0_);
-#line 1462 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1479 "/home/jens/Source/shotwell/src/BatchImport.vala"
_job_it = _tmp1_;
-#line 1462 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1479 "/home/jens/Source/shotwell/src/BatchImport.vala"
while (TRUE) {
-#line 11325 "BatchImport.c"
+#line 12095 "BatchImport.c"
GeeIterator* _tmp2_;
- gboolean _tmp3_;
BatchImportJob* job = NULL;
- GeeIterator* _tmp4_;
- gpointer _tmp5_;
+ GeeIterator* _tmp3_;
+ gpointer _tmp4_;
ImportResult _result_ = 0;
- ImportResult _tmp6_;
- ImportResult _tmp7_;
- gboolean _tmp25_;
-#line 1462 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ ImportResult _tmp5_;
+#line 1479 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp2_ = _job_it;
-#line 1462 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = gee_iterator_next (_tmp2_);
-#line 1462 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!_tmp3_) {
-#line 1462 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1479 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (!gee_iterator_next (_tmp2_)) {
+#line 1479 "/home/jens/Source/shotwell/src/BatchImport.vala"
break;
-#line 11343 "BatchImport.c"
+#line 12108 "BatchImport.c"
}
-#line 1462 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = _job_it;
-#line 1462 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = gee_iterator_get (_tmp4_);
-#line 1462 "/home/jens/Source/shotwell/src/BatchImport.vala"
- job = (BatchImportJob*) _tmp5_;
-#line 1463 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = background_import_job_abort_check (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob));
-#line 1463 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _result_ = _tmp6_;
-#line 1464 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = _result_;
-#line 1464 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp7_ != IMPORT_RESULT_SUCCESS) {
-#line 11359 "BatchImport.c"
- BatchImportJob* _tmp8_;
- BatchImportJob* _tmp9_;
- gchar* _tmp10_;
+#line 1479 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp3_ = _job_it;
+#line 1479 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp4_ = gee_iterator_get (_tmp3_);
+#line 1479 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ job = (BatchImportJob*) _tmp4_;
+#line 1480 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _result_ = background_import_job_abort_check (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob));
+#line 1481 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp5_ = _result_;
+#line 1481 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp5_ != IMPORT_RESULT_SUCCESS) {
+#line 12122 "BatchImport.c"
+ BatchImportJob* _tmp6_;
+ BatchImportJob* _tmp7_;
+ gchar* _tmp8_;
+ gchar* _tmp9_;
+ BatchImportJob* _tmp10_;
gchar* _tmp11_;
- BatchImportJob* _tmp12_;
- gchar* _tmp13_;
- gchar* _tmp14_;
- ImportResult _tmp15_;
-#line 1465 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = job;
-#line 1465 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = job;
-#line 1465 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = batch_import_job_get_source_identifier (_tmp9_);
-#line 1465 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp11_ = _tmp10_;
-#line 1465 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp12_ = job;
-#line 1465 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp13_ = batch_import_job_get_dest_identifier (_tmp12_);
-#line 1465 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp14_ = _tmp13_;
-#line 1465 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp15_ = _result_;
-#line 1465 "/home/jens/Source/shotwell/src/BatchImport.vala"
- background_import_job_report_failure (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob), _tmp8_, NULL, _tmp11_, _tmp14_, _tmp15_);
-#line 1465 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp14_);
-#line 1465 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp11_);
-#line 1468 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ gchar* _tmp12_;
+ ImportResult _tmp13_;
+#line 1482 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp6_ = job;
+#line 1482 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp7_ = job;
+#line 1482 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp8_ = batch_import_job_get_source_identifier (_tmp7_);
+#line 1482 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp9_ = _tmp8_;
+#line 1482 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp10_ = job;
+#line 1482 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp11_ = batch_import_job_get_dest_identifier (_tmp10_);
+#line 1482 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp12_ = _tmp11_;
+#line 1482 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp13_ = _result_;
+#line 1482 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ background_import_job_report_failure (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob), _tmp6_, NULL, _tmp9_, _tmp12_, _tmp13_);
+#line 1482 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_tmp12_);
+#line 1482 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_tmp9_);
+#line 1485 "/home/jens/Source/shotwell/src/BatchImport.vala"
_batch_import_job_unref0 (job);
-#line 1468 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1485 "/home/jens/Source/shotwell/src/BatchImport.vala"
continue;
-#line 11394 "BatchImport.c"
+#line 12157 "BatchImport.c"
}
{
- BatchImportJob* _tmp16_;
-#line 1472 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp16_ = job;
-#line 1472 "/home/jens/Source/shotwell/src/BatchImport.vala"
- work_sniffer_sniff_job (self, _tmp16_, &_inner_error_);
-#line 1472 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ BatchImportJob* _tmp14_;
+#line 1489 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp14_ = job;
+#line 1489 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ work_sniffer_sniff_job (self, _tmp14_, &_inner_error_);
+#line 1489 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 11404 "BatchImport.c"
- goto __catch414_g_error;
+#line 12167 "BatchImport.c"
+ goto __catch426_g_error;
}
}
- goto __finally414;
- __catch414_g_error:
+ goto __finally426;
+ __catch426_g_error:
{
GError* err = NULL;
- BatchImportJob* _tmp17_;
- BatchImportJob* _tmp18_;
- gchar* _tmp19_;
+ BatchImportJob* _tmp15_;
+ BatchImportJob* _tmp16_;
+ gchar* _tmp17_;
+ gchar* _tmp18_;
+ BatchImportJob* _tmp19_;
gchar* _tmp20_;
- BatchImportJob* _tmp21_;
- gchar* _tmp22_;
- gchar* _tmp23_;
- GError* _tmp24_;
-#line 1471 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ gchar* _tmp21_;
+ GError* _tmp22_;
+#line 1488 "/home/jens/Source/shotwell/src/BatchImport.vala"
err = _inner_error_;
-#line 1471 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1488 "/home/jens/Source/shotwell/src/BatchImport.vala"
_inner_error_ = NULL;
-#line 1474 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp17_ = job;
-#line 1474 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp18_ = job;
-#line 1474 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp19_ = batch_import_job_get_source_identifier (_tmp18_);
-#line 1474 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp20_ = _tmp19_;
-#line 1474 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp21_ = job;
-#line 1474 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp22_ = batch_import_job_get_dest_identifier (_tmp21_);
-#line 1474 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp23_ = _tmp22_;
-#line 1474 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp24_ = err;
-#line 1474 "/home/jens/Source/shotwell/src/BatchImport.vala"
- background_import_job_report_error (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob), _tmp17_, NULL, _tmp20_, _tmp23_, _tmp24_, IMPORT_RESULT_FILE_ERROR);
-#line 1474 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp23_);
-#line 1474 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp20_);
-#line 1471 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1491 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp15_ = job;
+#line 1491 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp16_ = job;
+#line 1491 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp17_ = batch_import_job_get_source_identifier (_tmp16_);
+#line 1491 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp18_ = _tmp17_;
+#line 1491 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp19_ = job;
+#line 1491 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp20_ = batch_import_job_get_dest_identifier (_tmp19_);
+#line 1491 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp21_ = _tmp20_;
+#line 1491 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp22_ = err;
+#line 1491 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ background_import_job_report_error (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob), _tmp15_, NULL, _tmp18_, _tmp21_, _tmp22_, IMPORT_RESULT_FILE_ERROR);
+#line 1491 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_tmp21_);
+#line 1491 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_tmp18_);
+#line 1488 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_error_free0 (err);
-#line 11448 "BatchImport.c"
+#line 12211 "BatchImport.c"
}
- __finally414:
-#line 1471 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ __finally426:
+#line 1488 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1471 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1488 "/home/jens/Source/shotwell/src/BatchImport.vala"
_batch_import_job_unref0 (job);
-#line 1471 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1488 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (_job_it);
-#line 1471 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1488 "/home/jens/Source/shotwell/src/BatchImport.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 1471 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1488 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_clear_error (&_inner_error_);
-#line 1471 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1488 "/home/jens/Source/shotwell/src/BatchImport.vala"
return;
-#line 11463 "BatchImport.c"
+#line 12226 "BatchImport.c"
}
-#line 1478 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp25_ = background_job_is_cancelled (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_JOB, BackgroundJob));
-#line 1478 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp25_) {
-#line 1479 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1495 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (background_job_is_cancelled (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_JOB, BackgroundJob))) {
+#line 1496 "/home/jens/Source/shotwell/src/BatchImport.vala"
_batch_import_job_unref0 (job);
-#line 1479 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1496 "/home/jens/Source/shotwell/src/BatchImport.vala"
break;
-#line 11473 "BatchImport.c"
+#line 12234 "BatchImport.c"
}
-#line 1462 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1479 "/home/jens/Source/shotwell/src/BatchImport.vala"
_batch_import_job_unref0 (job);
-#line 11477 "BatchImport.c"
+#line 12238 "BatchImport.c"
}
-#line 1462 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1479 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (_job_it);
-#line 11481 "BatchImport.c"
+#line 12242 "BatchImport.c"
}
-#line 1485 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp26_ = gee_array_list_new (TYPE_FILE_TO_PREPARE, (GBoxedCopyFunc) file_to_prepare_ref, (GDestroyNotify) file_to_prepare_unref, NULL, NULL, NULL);
-#line 1485 "/home/jens/Source/shotwell/src/BatchImport.vala"
- sorted = G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_LIST, GeeList);
-#line 11487 "BatchImport.c"
+#line 1502 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp23_ = gee_array_list_new (TYPE_FILE_TO_PREPARE, (GBoxedCopyFunc) file_to_prepare_ref, (GDestroyNotify) file_to_prepare_unref, NULL, NULL, NULL);
+#line 1502 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ sorted = G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_LIST, GeeList);
+#line 12248 "BatchImport.c"
{
GeeList* _ftp_list = NULL;
- GeeList* _tmp27_;
- GeeList* _tmp28_;
+ GeeList* _tmp24_;
+ GeeList* _tmp25_;
gint _ftp_size = 0;
- GeeList* _tmp29_;
- gint _tmp30_;
- gint _tmp31_;
+ GeeList* _tmp26_;
+ gint _tmp27_;
+ gint _tmp28_;
gint _ftp_index = 0;
-#line 1486 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp27_ = self->files_to_prepare;
-#line 1486 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp28_ = _g_object_ref0 (_tmp27_);
-#line 1486 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _ftp_list = _tmp28_;
-#line 1486 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp29_ = _ftp_list;
-#line 1486 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp30_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1486 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp31_ = _tmp30_;
-#line 1486 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _ftp_size = _tmp31_;
-#line 1486 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp24_ = self->files_to_prepare;
+#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp25_ = _g_object_ref0 (_tmp24_);
+#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _ftp_list = _tmp25_;
+#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp26_ = _ftp_list;
+#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp27_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_COLLECTION, GeeCollection));
+#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp28_ = _tmp27_;
+#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _ftp_size = _tmp28_;
+#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala"
_ftp_index = -1;
-#line 1486 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala"
while (TRUE) {
-#line 11515 "BatchImport.c"
- gint _tmp32_;
- gint _tmp33_;
- gint _tmp34_;
+#line 12276 "BatchImport.c"
+ gint _tmp29_;
+ gint _tmp30_;
+ gint _tmp31_;
FileToPrepare* ftp = NULL;
- GeeList* _tmp35_;
- gint _tmp36_;
- gpointer _tmp37_;
- FileToPrepare* _tmp38_;
- gboolean _tmp39_;
-#line 1486 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp32_ = _ftp_index;
-#line 1486 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _ftp_index = _tmp32_ + 1;
-#line 1486 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp33_ = _ftp_index;
-#line 1486 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp34_ = _ftp_size;
-#line 1486 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!(_tmp33_ < _tmp34_)) {
-#line 1486 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ GeeList* _tmp32_;
+ gint _tmp33_;
+ gpointer _tmp34_;
+ FileToPrepare* _tmp35_;
+#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp29_ = _ftp_index;
+#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _ftp_index = _tmp29_ + 1;
+#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp30_ = _ftp_index;
+#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp31_ = _ftp_size;
+#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (!(_tmp30_ < _tmp31_)) {
+#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala"
break;
-#line 11537 "BatchImport.c"
+#line 12297 "BatchImport.c"
}
-#line 1486 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp35_ = _ftp_list;
-#line 1486 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp36_ = _ftp_index;
-#line 1486 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp37_ = gee_list_get (_tmp35_, _tmp36_);
-#line 1486 "/home/jens/Source/shotwell/src/BatchImport.vala"
- ftp = (FileToPrepare*) _tmp37_;
-#line 1487 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp38_ = ftp;
-#line 1487 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp39_ = file_to_prepare_is_directory (_tmp38_);
-#line 1487 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!_tmp39_) {
-#line 11553 "BatchImport.c"
- GeeList* _tmp40_;
- FileToPrepare* _tmp41_;
-#line 1488 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp40_ = sorted;
-#line 1488 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp41_ = ftp;
-#line 1488 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, GEE_TYPE_COLLECTION, GeeCollection), _tmp41_);
-#line 11562 "BatchImport.c"
+#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp32_ = _ftp_list;
+#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp33_ = _ftp_index;
+#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp34_ = gee_list_get (_tmp32_, _tmp33_);
+#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ ftp = (FileToPrepare*) _tmp34_;
+#line 1504 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp35_ = ftp;
+#line 1504 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (!file_to_prepare_is_directory (_tmp35_)) {
+#line 12311 "BatchImport.c"
+ GeeList* _tmp36_;
+ FileToPrepare* _tmp37_;
+#line 1505 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp36_ = sorted;
+#line 1505 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp37_ = ftp;
+#line 1505 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, GEE_TYPE_COLLECTION, GeeCollection), _tmp37_);
+#line 12320 "BatchImport.c"
}
-#line 1486 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala"
_file_to_prepare_unref0 (ftp);
-#line 11566 "BatchImport.c"
+#line 12324 "BatchImport.c"
}
-#line 1486 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (_ftp_list);
-#line 11570 "BatchImport.c"
+#line 12328 "BatchImport.c"
}
-#line 1490 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp42_ = sorted;
-#line 1490 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_list_sort (_tmp42_, ___lambda11__gcompare_data_func, background_job_ref (self), background_job_unref);
-#line 11576 "BatchImport.c"
+#line 1507 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp38_ = sorted;
+#line 1507 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ gee_list_sort (_tmp38_, ___lambda11__gcompare_data_func, background_job_ref (self), background_job_unref);
+#line 12334 "BatchImport.c"
{
gint i = 0;
-#line 1500 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1517 "/home/jens/Source/shotwell/src/BatchImport.vala"
i = 0;
-#line 11581 "BatchImport.c"
+#line 12339 "BatchImport.c"
{
- gboolean _tmp43_ = FALSE;
-#line 1500 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp43_ = TRUE;
-#line 1500 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ gboolean _tmp39_ = FALSE;
+#line 1517 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp39_ = TRUE;
+#line 1517 "/home/jens/Source/shotwell/src/BatchImport.vala"
while (TRUE) {
-#line 11588 "BatchImport.c"
- gint _tmp45_;
- GeeList* _tmp46_;
- gint _tmp47_;
- gint _tmp48_;
+#line 12346 "BatchImport.c"
+ gint _tmp41_;
+ GeeList* _tmp42_;
+ gint _tmp43_;
+ gint _tmp44_;
gchar* name = NULL;
gchar* ext = NULL;
FileToPrepare* ftp = NULL;
- GeeList* _tmp49_;
- gint _tmp50_;
- gpointer _tmp51_;
- FileToPrepare* _tmp52_;
- gchar* _tmp53_;
- gchar* _tmp54_;
- gchar* _tmp55_ = NULL;
- gchar* _tmp56_ = NULL;
- const gchar* _tmp57_;
- gboolean _tmp58_;
- RawFileFormatProperties* _tmp59_;
- RawFileFormatProperties* _tmp60_;
- const gchar* _tmp61_;
- gboolean _tmp62_;
- gboolean _tmp63_;
-#line 1500 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!_tmp43_) {
-#line 11613 "BatchImport.c"
- gint _tmp44_;
-#line 1500 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp44_ = i;
-#line 1500 "/home/jens/Source/shotwell/src/BatchImport.vala"
- i = _tmp44_ + 1;
-#line 11619 "BatchImport.c"
+ GeeList* _tmp45_;
+ gint _tmp46_;
+ gpointer _tmp47_;
+ FileToPrepare* _tmp48_;
+ gchar* _tmp49_;
+ gchar* _tmp50_;
+ gchar* _tmp51_ = NULL;
+ gchar* _tmp52_ = NULL;
+ const gchar* _tmp53_;
+ RawFileFormatProperties* _tmp54_;
+ RawFileFormatProperties* _tmp55_;
+ const gchar* _tmp56_;
+ gboolean _tmp57_;
+#line 1517 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (!_tmp39_) {
+#line 12369 "BatchImport.c"
+ gint _tmp40_;
+#line 1517 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp40_ = i;
+#line 1517 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ i = _tmp40_ + 1;
+#line 12375 "BatchImport.c"
}
-#line 1500 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp43_ = FALSE;
-#line 1500 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp45_ = i;
-#line 1500 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp46_ = sorted;
-#line 1500 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp47_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1500 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp48_ = _tmp47_;
-#line 1500 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!(_tmp45_ < _tmp48_)) {
-#line 1500 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1517 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp39_ = FALSE;
+#line 1517 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp41_ = i;
+#line 1517 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp42_ = sorted;
+#line 1517 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp43_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, GEE_TYPE_COLLECTION, GeeCollection));
+#line 1517 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp44_ = _tmp43_;
+#line 1517 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (!(_tmp41_ < _tmp44_)) {
+#line 1517 "/home/jens/Source/shotwell/src/BatchImport.vala"
break;
-#line 11635 "BatchImport.c"
+#line 12391 "BatchImport.c"
}
-#line 1502 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp49_ = sorted;
-#line 1502 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp50_ = i;
-#line 1502 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp51_ = gee_list_get (_tmp49_, _tmp50_);
-#line 1502 "/home/jens/Source/shotwell/src/BatchImport.vala"
- ftp = (FileToPrepare*) _tmp51_;
-#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp52_ = ftp;
-#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp53_ = file_to_prepare_get_basename (_tmp52_);
-#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp54_ = _tmp53_;
-#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala"
- disassemble_filename (_tmp54_, &_tmp55_, &_tmp56_);
-#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1519 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp45_ = sorted;
+#line 1519 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp46_ = i;
+#line 1519 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp47_ = gee_list_get (_tmp45_, _tmp46_);
+#line 1519 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ ftp = (FileToPrepare*) _tmp47_;
+#line 1520 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp48_ = ftp;
+#line 1520 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp49_ = file_to_prepare_get_basename (_tmp48_);
+#line 1520 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp50_ = _tmp49_;
+#line 1520 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ disassemble_filename (_tmp50_, &_tmp51_, &_tmp52_);
+#line 1520 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (name);
-#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala"
- name = _tmp55_;
-#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1520 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ name = _tmp51_;
+#line 1520 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (ext);
-#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala"
- ext = _tmp56_;
-#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp54_);
-#line 1505 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp57_ = ext;
-#line 1505 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp58_ = is_string_empty (_tmp57_);
-#line 1505 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp58_) {
-#line 1506 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1520 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ ext = _tmp52_;
+#line 1520 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_tmp50_);
+#line 1522 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp53_ = ext;
+#line 1522 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (is_string_empty (_tmp53_)) {
+#line 1523 "/home/jens/Source/shotwell/src/BatchImport.vala"
_file_to_prepare_unref0 (ftp);
-#line 1506 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1523 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (ext);
-#line 1506 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1523 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (name);
-#line 1506 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1523 "/home/jens/Source/shotwell/src/BatchImport.vala"
continue;
-#line 11677 "BatchImport.c"
+#line 12431 "BatchImport.c"
}
-#line 1508 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp59_ = raw_file_format_properties_get_instance ();
-#line 1508 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp60_ = _tmp59_;
-#line 1508 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp61_ = ext;
-#line 1508 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp62_ = photo_file_format_properties_is_recognized_extension (G_TYPE_CHECK_INSTANCE_CAST (_tmp60_, TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatProperties), _tmp61_);
-#line 1508 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp63_ = _tmp62_;
-#line 1508 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _photo_file_format_properties_unref0 (_tmp60_);
-#line 1508 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp63_) {
-#line 11693 "BatchImport.c"
- gboolean _tmp64_ = FALSE;
- gint _tmp65_;
-#line 1511 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp65_ = i;
-#line 1511 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp65_ > 0) {
-#line 11700 "BatchImport.c"
- FileToPrepare* _tmp66_;
- GeeList* _tmp67_;
- gint _tmp68_;
- gpointer _tmp69_;
- FileToPrepare* _tmp70_;
- gboolean _tmp71_;
-#line 1511 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp66_ = ftp;
-#line 1511 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp67_ = sorted;
-#line 1511 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp68_ = i;
-#line 1511 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp69_ = gee_list_get (_tmp67_, _tmp68_ - 1);
-#line 1511 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp70_ = (FileToPrepare*) _tmp69_;
-#line 1511 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp71_ = work_sniffer_is_paired (self, _tmp66_, _tmp70_);
-#line 1511 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp64_ = _tmp71_;
-#line 1511 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _file_to_prepare_unref0 (_tmp70_);
-#line 11723 "BatchImport.c"
+#line 1525 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp54_ = raw_file_format_properties_get_instance ();
+#line 1525 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp55_ = _tmp54_;
+#line 1525 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp56_ = ext;
+#line 1525 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp57_ = photo_file_format_properties_is_recognized_extension (G_TYPE_CHECK_INSTANCE_CAST (_tmp55_, TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatProperties), _tmp56_);
+#line 1525 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _photo_file_format_properties_unref0 (_tmp55_);
+#line 1525 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp57_) {
+#line 12445 "BatchImport.c"
+ gboolean _tmp58_ = FALSE;
+ gint _tmp59_;
+#line 1528 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp59_ = i;
+#line 1528 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp59_ > 0) {
+#line 12452 "BatchImport.c"
+ FileToPrepare* _tmp60_;
+ GeeList* _tmp61_;
+ gint _tmp62_;
+ gpointer _tmp63_;
+ FileToPrepare* _tmp64_;
+#line 1528 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp60_ = ftp;
+#line 1528 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp61_ = sorted;
+#line 1528 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp62_ = i;
+#line 1528 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp63_ = gee_list_get (_tmp61_, _tmp62_ - 1);
+#line 1528 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp64_ = (FileToPrepare*) _tmp63_;
+#line 1528 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp58_ = work_sniffer_is_paired (self, _tmp60_, _tmp64_);
+#line 1528 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _file_to_prepare_unref0 (_tmp64_);
+#line 12472 "BatchImport.c"
} else {
-#line 1511 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp64_ = FALSE;
-#line 11727 "BatchImport.c"
+#line 1528 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp58_ = FALSE;
+#line 12476 "BatchImport.c"
}
-#line 1511 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp64_) {
-#line 11731 "BatchImport.c"
+#line 1528 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp58_) {
+#line 12480 "BatchImport.c"
FileToPrepare* associated_file = NULL;
- GeeList* _tmp72_;
- gint _tmp73_;
- gpointer _tmp74_;
- GeeList* _tmp75_;
- FileToPrepare* _tmp76_;
- FileToPrepare* _tmp77_;
- FileToPrepare* _tmp78_;
-#line 1512 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp72_ = sorted;
-#line 1512 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp73_ = i;
-#line 1512 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp74_ = gee_list_get (_tmp72_, _tmp73_ - 1);
-#line 1512 "/home/jens/Source/shotwell/src/BatchImport.vala"
- associated_file = (FileToPrepare*) _tmp74_;
-#line 1513 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp75_ = self->files_to_prepare;
-#line 1513 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp76_ = associated_file;
-#line 1513 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp75_, GEE_TYPE_COLLECTION, GeeCollection), _tmp76_);
-#line 1514 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp77_ = ftp;
-#line 1514 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp78_ = associated_file;
-#line 1514 "/home/jens/Source/shotwell/src/BatchImport.vala"
- file_to_prepare_set_associated (_tmp77_, _tmp78_);
-#line 1511 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ GeeList* _tmp65_;
+ gint _tmp66_;
+ gpointer _tmp67_;
+ GeeList* _tmp68_;
+ FileToPrepare* _tmp69_;
+ FileToPrepare* _tmp70_;
+ FileToPrepare* _tmp71_;
+#line 1529 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp65_ = sorted;
+#line 1529 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp66_ = i;
+#line 1529 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp67_ = gee_list_get (_tmp65_, _tmp66_ - 1);
+#line 1529 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ associated_file = (FileToPrepare*) _tmp67_;
+#line 1530 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp68_ = self->files_to_prepare;
+#line 1530 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp69_ = associated_file;
+#line 1530 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ gee_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp68_, GEE_TYPE_COLLECTION, GeeCollection), _tmp69_);
+#line 1531 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp70_ = ftp;
+#line 1531 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp71_ = associated_file;
+#line 1531 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ file_to_prepare_set_associated (_tmp70_, _tmp71_);
+#line 1528 "/home/jens/Source/shotwell/src/BatchImport.vala"
_file_to_prepare_unref0 (associated_file);
-#line 11762 "BatchImport.c"
+#line 12511 "BatchImport.c"
} else {
- gboolean _tmp79_ = FALSE;
- gint _tmp80_;
- GeeList* _tmp81_;
- gint _tmp82_;
- gint _tmp83_;
-#line 1515 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp80_ = i;
-#line 1515 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp81_ = sorted;
-#line 1515 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp82_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp81_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1515 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp83_ = _tmp82_;
-#line 1515 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp80_ < (_tmp83_ - 1)) {
-#line 11779 "BatchImport.c"
- FileToPrepare* _tmp84_;
- GeeList* _tmp85_;
- gint _tmp86_;
- gpointer _tmp87_;
- FileToPrepare* _tmp88_;
- gboolean _tmp89_;
-#line 1515 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp84_ = ftp;
-#line 1515 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp85_ = sorted;
-#line 1515 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp86_ = i;
-#line 1515 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp87_ = gee_list_get (_tmp85_, _tmp86_ + 1);
-#line 1515 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp88_ = (FileToPrepare*) _tmp87_;
-#line 1515 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp89_ = work_sniffer_is_paired (self, _tmp84_, _tmp88_);
-#line 1515 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp79_ = _tmp89_;
-#line 1515 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _file_to_prepare_unref0 (_tmp88_);
-#line 11802 "BatchImport.c"
+ gboolean _tmp72_ = FALSE;
+ gint _tmp73_;
+ GeeList* _tmp74_;
+ gint _tmp75_;
+ gint _tmp76_;
+#line 1532 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp73_ = i;
+#line 1532 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp74_ = sorted;
+#line 1532 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp75_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp74_, GEE_TYPE_COLLECTION, GeeCollection));
+#line 1532 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp76_ = _tmp75_;
+#line 1532 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp73_ < (_tmp76_ - 1)) {
+#line 12528 "BatchImport.c"
+ FileToPrepare* _tmp77_;
+ GeeList* _tmp78_;
+ gint _tmp79_;
+ gpointer _tmp80_;
+ FileToPrepare* _tmp81_;
+#line 1532 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp77_ = ftp;
+#line 1532 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp78_ = sorted;
+#line 1532 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp79_ = i;
+#line 1532 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp80_ = gee_list_get (_tmp78_, _tmp79_ + 1);
+#line 1532 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp81_ = (FileToPrepare*) _tmp80_;
+#line 1532 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp72_ = work_sniffer_is_paired (self, _tmp77_, _tmp81_);
+#line 1532 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _file_to_prepare_unref0 (_tmp81_);
+#line 12548 "BatchImport.c"
} else {
-#line 1515 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp79_ = FALSE;
-#line 11806 "BatchImport.c"
+#line 1532 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp72_ = FALSE;
+#line 12552 "BatchImport.c"
}
-#line 1515 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp79_) {
-#line 11810 "BatchImport.c"
+#line 1532 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp72_) {
+#line 12556 "BatchImport.c"
FileToPrepare* associated_file = NULL;
- GeeList* _tmp90_;
- gint _tmp91_;
- gpointer _tmp92_;
- GeeList* _tmp93_;
- FileToPrepare* _tmp94_;
- FileToPrepare* _tmp95_;
- FileToPrepare* _tmp96_;
-#line 1516 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp90_ = sorted;
-#line 1516 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp91_ = i;
-#line 1516 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp92_ = gee_list_get (_tmp90_, _tmp91_ + 1);
-#line 1516 "/home/jens/Source/shotwell/src/BatchImport.vala"
- associated_file = (FileToPrepare*) _tmp92_;
-#line 1517 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp93_ = self->files_to_prepare;
-#line 1517 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp94_ = associated_file;
-#line 1517 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp93_, GEE_TYPE_COLLECTION, GeeCollection), _tmp94_);
-#line 1518 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp95_ = ftp;
-#line 1518 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp96_ = associated_file;
-#line 1518 "/home/jens/Source/shotwell/src/BatchImport.vala"
- file_to_prepare_set_associated (_tmp95_, _tmp96_);
-#line 1515 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ GeeList* _tmp82_;
+ gint _tmp83_;
+ gpointer _tmp84_;
+ GeeList* _tmp85_;
+ FileToPrepare* _tmp86_;
+ FileToPrepare* _tmp87_;
+ FileToPrepare* _tmp88_;
+#line 1533 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp82_ = sorted;
+#line 1533 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp83_ = i;
+#line 1533 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp84_ = gee_list_get (_tmp82_, _tmp83_ + 1);
+#line 1533 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ associated_file = (FileToPrepare*) _tmp84_;
+#line 1534 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp85_ = self->files_to_prepare;
+#line 1534 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp86_ = associated_file;
+#line 1534 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ gee_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp85_, GEE_TYPE_COLLECTION, GeeCollection), _tmp86_);
+#line 1535 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp87_ = ftp;
+#line 1535 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp88_ = associated_file;
+#line 1535 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ file_to_prepare_set_associated (_tmp87_, _tmp88_);
+#line 1532 "/home/jens/Source/shotwell/src/BatchImport.vala"
_file_to_prepare_unref0 (associated_file);
-#line 11841 "BatchImport.c"
+#line 12587 "BatchImport.c"
}
}
}
-#line 1500 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1517 "/home/jens/Source/shotwell/src/BatchImport.vala"
_file_to_prepare_unref0 (ftp);
-#line 1500 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1517 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (ext);
-#line 1500 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1517 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (name);
-#line 11851 "BatchImport.c"
+#line 12597 "BatchImport.c"
}
}
}
-#line 1458 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1475 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (sorted);
-#line 11857 "BatchImport.c"
+#line 12603 "BatchImport.c"
}
-static gboolean work_sniffer_is_paired (WorkSniffer* self, FileToPrepare* raw, FileToPrepare* maybe_paired) {
+static gboolean
+work_sniffer_is_paired (WorkSniffer* self,
+ FileToPrepare* raw,
+ FileToPrepare* maybe_paired)
+{
gboolean result = FALSE;
- FileToPrepare* _tmp0_;
+ gchar* _tmp0_;
gchar* _tmp1_;
gchar* _tmp2_;
- FileToPrepare* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- gboolean _tmp6_;
+ gchar* _tmp3_;
+ gboolean _tmp4_;
gchar* name = NULL;
gchar* ext = NULL;
gchar* test_name = NULL;
gchar* test_ext = NULL;
- FileToPrepare* _tmp7_;
- gchar* _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_ = NULL;
- gchar* _tmp11_ = NULL;
- JfifFileFormatProperties* _tmp12_;
- JfifFileFormatProperties* _tmp13_;
- const gchar* _tmp14_;
- gboolean _tmp15_;
- gboolean _tmp16_;
- FileToPrepare* _tmp17_;
- gchar* _tmp18_;
- gchar* _tmp19_;
- gchar* _tmp20_ = NULL;
- gchar* _tmp21_ = NULL;
- const gchar* _tmp22_;
- const gchar* _tmp23_;
-#line 1527 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ gchar* _tmp5_;
+ gchar* _tmp6_;
+ gchar* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+ JfifFileFormatProperties* _tmp9_;
+ JfifFileFormatProperties* _tmp10_;
+ const gchar* _tmp11_;
+ gboolean _tmp12_;
+ gchar* _tmp13_;
+ gchar* _tmp14_;
+ gchar* _tmp15_ = NULL;
+ gchar* _tmp16_ = NULL;
+ const gchar* _tmp17_;
+ const gchar* _tmp18_;
+#line 1544 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (IS_WORK_SNIFFER (self), FALSE);
-#line 1527 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1544 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (IS_FILE_TO_PREPARE (raw), FALSE);
-#line 1527 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1544 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (IS_FILE_TO_PREPARE (maybe_paired), FALSE);
-#line 1528 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = raw;
-#line 1528 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = file_to_prepare_get_parent_path (_tmp0_);
-#line 1528 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = _tmp1_;
-#line 1528 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = maybe_paired;
-#line 1528 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = file_to_prepare_get_parent_path (_tmp3_);
-#line 1528 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = _tmp4_;
-#line 1528 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = g_strcmp0 (_tmp2_, _tmp5_) != 0;
-#line 1528 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp5_);
-#line 1528 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp2_);
-#line 1528 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp6_) {
-#line 1529 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1545 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp0_ = file_to_prepare_get_parent_path (raw);
+#line 1545 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp1_ = _tmp0_;
+#line 1545 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp2_ = file_to_prepare_get_parent_path (maybe_paired);
+#line 1545 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp3_ = _tmp2_;
+#line 1545 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp4_ = g_strcmp0 (_tmp1_, _tmp3_) != 0;
+#line 1545 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_tmp3_);
+#line 1545 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_tmp1_);
+#line 1545 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp4_) {
+#line 1546 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = FALSE;
-#line 1529 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1546 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 11921 "BatchImport.c"
+#line 12662 "BatchImport.c"
}
-#line 1532 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = maybe_paired;
-#line 1532 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = file_to_prepare_get_basename (_tmp7_);
-#line 1532 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = _tmp8_;
-#line 1532 "/home/jens/Source/shotwell/src/BatchImport.vala"
- disassemble_filename (_tmp9_, &_tmp10_, &_tmp11_);
-#line 1532 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1549 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp5_ = file_to_prepare_get_basename (maybe_paired);
+#line 1549 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp6_ = _tmp5_;
+#line 1549 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ disassemble_filename (_tmp6_, &_tmp7_, &_tmp8_);
+#line 1549 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (test_name);
-#line 1532 "/home/jens/Source/shotwell/src/BatchImport.vala"
- test_name = _tmp10_;
-#line 1532 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1549 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ test_name = _tmp7_;
+#line 1549 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (test_ext);
-#line 1532 "/home/jens/Source/shotwell/src/BatchImport.vala"
- test_ext = _tmp11_;
-#line 1532 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp9_);
-#line 1534 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp12_ = jfif_file_format_properties_get_instance ();
-#line 1534 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp13_ = _tmp12_;
-#line 1534 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp14_ = test_ext;
-#line 1534 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp15_ = photo_file_format_properties_is_recognized_extension (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatProperties), _tmp14_);
-#line 1534 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp16_ = !_tmp15_;
-#line 1534 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _photo_file_format_properties_unref0 (_tmp13_);
-#line 1534 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp16_) {
-#line 1535 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1549 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ test_ext = _tmp8_;
+#line 1549 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_tmp6_);
+#line 1551 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp9_ = jfif_file_format_properties_get_instance ();
+#line 1551 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp10_ = _tmp9_;
+#line 1551 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp11_ = test_ext;
+#line 1551 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp12_ = !photo_file_format_properties_is_recognized_extension (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatProperties), _tmp11_);
+#line 1551 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _photo_file_format_properties_unref0 (_tmp10_);
+#line 1551 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp12_) {
+#line 1552 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = FALSE;
-#line 1535 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1552 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (test_ext);
-#line 1535 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1552 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (test_name);
-#line 1535 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1552 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (ext);
-#line 1535 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1552 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (name);
-#line 1535 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1552 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 11967 "BatchImport.c"
+#line 12704 "BatchImport.c"
}
-#line 1537 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp17_ = raw;
-#line 1537 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp18_ = file_to_prepare_get_basename (_tmp17_);
-#line 1537 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp19_ = _tmp18_;
-#line 1537 "/home/jens/Source/shotwell/src/BatchImport.vala"
- disassemble_filename (_tmp19_, &_tmp20_, &_tmp21_);
-#line 1537 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1554 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp13_ = file_to_prepare_get_basename (raw);
+#line 1554 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp14_ = _tmp13_;
+#line 1554 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ disassemble_filename (_tmp14_, &_tmp15_, &_tmp16_);
+#line 1554 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (name);
-#line 1537 "/home/jens/Source/shotwell/src/BatchImport.vala"
- name = _tmp20_;
-#line 1537 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1554 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ name = _tmp15_;
+#line 1554 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (ext);
-#line 1537 "/home/jens/Source/shotwell/src/BatchImport.vala"
- ext = _tmp21_;
-#line 1537 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp19_);
-#line 1539 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp22_ = name;
-#line 1539 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp23_ = test_name;
-#line 1539 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = g_strcmp0 (_tmp22_, _tmp23_) == 0;
-#line 1539 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1554 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ ext = _tmp16_;
+#line 1554 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_tmp14_);
+#line 1556 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp17_ = name;
+#line 1556 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp18_ = test_name;
+#line 1556 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ result = g_strcmp0 (_tmp17_, _tmp18_) == 0;
+#line 1556 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (test_ext);
-#line 1539 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1556 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (test_name);
-#line 1539 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1556 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (ext);
-#line 1539 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1556 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (name);
-#line 1539 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1556 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 12003 "BatchImport.c"
+#line 12738 "BatchImport.c"
}
-static void work_sniffer_sniff_job (WorkSniffer* self, BatchImportJob* job, GError** error) {
+static void
+work_sniffer_sniff_job (WorkSniffer* self,
+ BatchImportJob* job,
+ GError** error)
+{
guint64 size = 0ULL;
GFile* file_or_dir = NULL;
gboolean determined_size = FALSE;
- BatchImportJob* _tmp0_;
- guint64 _tmp1_ = 0ULL;
- GFile* _tmp2_ = NULL;
+ guint64 _tmp0_ = 0ULL;
+ GFile* _tmp1_ = NULL;
+ gboolean _tmp2_;
gboolean _tmp3_;
- gboolean _tmp4_;
- BatchImportJob* _tmp7_;
- gboolean _tmp8_;
GError * _inner_error_ = NULL;
-#line 1542 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1559 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (IS_WORK_SNIFFER (self));
-#line 1542 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1559 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (IS_BATCH_IMPORT_JOB (job));
-#line 1545 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = job;
-#line 1545 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = batch_import_job_determine_file_size (_tmp0_, &_tmp1_, &_tmp2_);
-#line 1545 "/home/jens/Source/shotwell/src/BatchImport.vala"
- size = _tmp1_;
-#line 1545 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1562 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp2_ = batch_import_job_determine_file_size (job, &_tmp0_, &_tmp1_);
+#line 1562 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ size = _tmp0_;
+#line 1562 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (file_or_dir);
-#line 1545 "/home/jens/Source/shotwell/src/BatchImport.vala"
- file_or_dir = _tmp2_;
-#line 1545 "/home/jens/Source/shotwell/src/BatchImport.vala"
- determined_size = _tmp3_;
-#line 1546 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = determined_size;
-#line 1546 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp4_) {
-#line 12039 "BatchImport.c"
+#line 1562 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ file_or_dir = _tmp1_;
+#line 1562 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ determined_size = _tmp2_;
+#line 1563 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp3_ = determined_size;
+#line 1563 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp3_) {
+#line 12773 "BatchImport.c"
+ guint64 _tmp4_;
guint64 _tmp5_;
- guint64 _tmp6_;
-#line 1547 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = self->total_bytes;
-#line 1547 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = size;
-#line 1547 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->total_bytes = _tmp5_ + _tmp6_;
-#line 12048 "BatchImport.c"
+#line 1564 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp4_ = self->total_bytes;
+#line 1564 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp5_ = size;
+#line 1564 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->total_bytes = _tmp4_ + _tmp5_;
+#line 12782 "BatchImport.c"
}
-#line 1549 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = job;
-#line 1549 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = batch_import_job_is_directory (_tmp7_);
-#line 1549 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp8_) {
-#line 12056 "BatchImport.c"
+#line 1566 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (batch_import_job_is_directory (job)) {
+#line 12786 "BatchImport.c"
GFile* dir = NULL;
gboolean copy_to_library = FALSE;
- gboolean _tmp9_ = FALSE;
- BatchImportJob* _tmp10_;
- GFile* _tmp11_ = NULL;
- gboolean _tmp12_ = FALSE;
- gboolean _tmp13_;
- GFile* _tmp21_;
- gboolean _tmp22_;
-#line 1554 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = job;
-#line 1554 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp13_ = batch_import_job_prepare (_tmp10_, &_tmp11_, &_tmp12_, &_inner_error_);
-#line 1554 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ gboolean _tmp6_ = FALSE;
+ GFile* _tmp7_ = NULL;
+ gboolean _tmp8_ = FALSE;
+ gboolean _tmp9_;
+ GFile* _tmp14_;
+#line 1571 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp9_ = batch_import_job_prepare (job, &_tmp7_, &_tmp8_, &_inner_error_);
+#line 1571 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (dir);
-#line 1554 "/home/jens/Source/shotwell/src/BatchImport.vala"
- dir = _tmp11_;
-#line 1554 "/home/jens/Source/shotwell/src/BatchImport.vala"
- copy_to_library = _tmp12_;
-#line 1554 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = _tmp13_;
-#line 1554 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1571 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ dir = _tmp7_;
+#line 1571 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ copy_to_library = _tmp8_;
+#line 1571 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp6_ = _tmp9_;
+#line 1571 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1554 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1571 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_propagate_error (error, _inner_error_);
-#line 1554 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1571 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (dir);
-#line 1554 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1571 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (file_or_dir);
-#line 1554 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1571 "/home/jens/Source/shotwell/src/BatchImport.vala"
return;
-#line 12088 "BatchImport.c"
+#line 12814 "BatchImport.c"
}
-#line 1554 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!_tmp9_) {
-#line 12092 "BatchImport.c"
- BatchImportJob* _tmp14_;
- BatchImportJob* _tmp15_;
- gchar* _tmp16_;
- gchar* _tmp17_;
- BatchImportJob* _tmp18_;
- gchar* _tmp19_;
- gchar* _tmp20_;
-#line 1555 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp14_ = job;
-#line 1555 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp15_ = job;
-#line 1555 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp16_ = batch_import_job_get_source_identifier (_tmp15_);
-#line 1555 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp17_ = _tmp16_;
-#line 1555 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp18_ = job;
-#line 1555 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp19_ = batch_import_job_get_dest_identifier (_tmp18_);
-#line 1555 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp20_ = _tmp19_;
-#line 1555 "/home/jens/Source/shotwell/src/BatchImport.vala"
- background_import_job_report_failure (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob), _tmp14_, NULL, _tmp17_, _tmp20_, IMPORT_RESULT_FILE_ERROR);
-#line 1555 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp20_);
-#line 1555 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp17_);
-#line 1558 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1571 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (!_tmp6_) {
+#line 12818 "BatchImport.c"
+ gchar* _tmp10_;
+ gchar* _tmp11_;
+ gchar* _tmp12_;
+ gchar* _tmp13_;
+#line 1572 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp10_ = batch_import_job_get_source_identifier (job);
+#line 1572 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp11_ = _tmp10_;
+#line 1572 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp12_ = batch_import_job_get_dest_identifier (job);
+#line 1572 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp13_ = _tmp12_;
+#line 1572 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ background_import_job_report_failure (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob), job, NULL, _tmp11_, _tmp13_, IMPORT_RESULT_FILE_ERROR);
+#line 1572 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_tmp13_);
+#line 1572 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_tmp11_);
+#line 1575 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (dir);
-#line 1558 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1575 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (file_or_dir);
-#line 1558 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1575 "/home/jens/Source/shotwell/src/BatchImport.vala"
return;
-#line 12126 "BatchImport.c"
+#line 12843 "BatchImport.c"
}
-#line 1560 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp21_ = dir;
-#line 1560 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp22_ = query_is_directory (_tmp21_);
-#line 1560 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _vala_assert (_tmp22_, "query_is_directory(dir)");
-#line 12134 "BatchImport.c"
+#line 1577 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp14_ = dir;
+#line 1577 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _vala_assert (query_is_directory (_tmp14_), "query_is_directory(dir)");
+#line 12849 "BatchImport.c"
{
- BatchImportJob* _tmp23_;
- GFile* _tmp24_;
- gboolean _tmp25_;
-#line 1563 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp23_ = job;
-#line 1563 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp24_ = dir;
-#line 1563 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp25_ = copy_to_library;
-#line 1563 "/home/jens/Source/shotwell/src/BatchImport.vala"
- work_sniffer_search_dir (self, _tmp23_, _tmp24_, _tmp25_, &_inner_error_);
-#line 1563 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ GFile* _tmp15_;
+ gboolean _tmp16_;
+#line 1580 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp15_ = dir;
+#line 1580 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp16_ = copy_to_library;
+#line 1580 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ work_sniffer_search_dir (self, job, _tmp15_, _tmp16_, batch_import_job_recurse (job), &_inner_error_);
+#line 1580 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 12149 "BatchImport.c"
- goto __catch415_g_error;
+#line 12861 "BatchImport.c"
+ goto __catch427_g_error;
}
}
- goto __finally415;
- __catch415_g_error:
+ goto __finally427;
+ __catch427_g_error:
{
GError* err = NULL;
- BatchImportJob* _tmp26_;
- GFile* _tmp27_;
- BatchImportJob* _tmp28_;
- gchar* _tmp29_;
- gchar* _tmp30_;
- GFile* _tmp31_;
- gchar* _tmp32_;
- gchar* _tmp33_;
- GError* _tmp34_;
-#line 1562 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ GFile* _tmp17_;
+ gchar* _tmp18_;
+ gchar* _tmp19_;
+ GFile* _tmp20_;
+ gchar* _tmp21_;
+ gchar* _tmp22_;
+ GError* _tmp23_;
+#line 1579 "/home/jens/Source/shotwell/src/BatchImport.vala"
err = _inner_error_;
-#line 1562 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1579 "/home/jens/Source/shotwell/src/BatchImport.vala"
_inner_error_ = NULL;
-#line 1565 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp26_ = job;
-#line 1565 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp27_ = dir;
-#line 1565 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp28_ = job;
-#line 1565 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp29_ = batch_import_job_get_source_identifier (_tmp28_);
-#line 1565 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp30_ = _tmp29_;
-#line 1565 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp31_ = dir;
-#line 1565 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp32_ = g_file_get_path (_tmp31_);
-#line 1565 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp33_ = _tmp32_;
-#line 1565 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp34_ = err;
-#line 1565 "/home/jens/Source/shotwell/src/BatchImport.vala"
- background_import_job_report_error (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob), _tmp26_, _tmp27_, _tmp30_, _tmp33_, _tmp34_, IMPORT_RESULT_FILE_ERROR);
-#line 1565 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp33_);
-#line 1565 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp30_);
-#line 1562 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1582 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp17_ = dir;
+#line 1582 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp18_ = batch_import_job_get_source_identifier (job);
+#line 1582 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp19_ = _tmp18_;
+#line 1582 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp20_ = dir;
+#line 1582 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp21_ = g_file_get_path (_tmp20_);
+#line 1582 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp22_ = _tmp21_;
+#line 1582 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp23_ = err;
+#line 1582 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ background_import_job_report_error (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob), job, _tmp17_, _tmp19_, _tmp22_, _tmp23_, IMPORT_RESULT_FILE_ERROR);
+#line 1582 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_tmp22_);
+#line 1582 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_tmp19_);
+#line 1579 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_error_free0 (err);
-#line 12196 "BatchImport.c"
+#line 12902 "BatchImport.c"
}
- __finally415:
-#line 1562 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ __finally427:
+#line 1579 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1562 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1579 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_propagate_error (error, _inner_error_);
-#line 1562 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1579 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (dir);
-#line 1562 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1579 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (file_or_dir);
-#line 1562 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1579 "/home/jens/Source/shotwell/src/BatchImport.vala"
return;
-#line 12209 "BatchImport.c"
+#line 12915 "BatchImport.c"
}
-#line 1549 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1566 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (dir);
-#line 12213 "BatchImport.c"
+#line 12919 "BatchImport.c"
} else {
- gboolean _tmp35_;
- gboolean _tmp43_ = FALSE;
- gboolean _tmp44_ = FALSE;
- GFile* _tmp45_;
- GeeList* _tmp50_;
- BatchImportJob* _tmp51_;
- FileToPrepare* _tmp52_;
- FileToPrepare* _tmp53_;
-#line 1570 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp35_ = determined_size;
-#line 1570 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!_tmp35_) {
-#line 12227 "BatchImport.c"
- guint64 _tmp36_ = 0ULL;
- GFile* _tmp37_;
- GCancellable* _tmp38_;
- GCancellable* _tmp39_;
- guint64 _tmp40_;
- guint64 _tmp41_;
- guint64 _tmp42_;
-#line 1571 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp37_ = file_or_dir;
-#line 1571 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp38_ = background_job_get_cancellable (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_JOB, BackgroundJob));
-#line 1571 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp39_ = _tmp38_;
-#line 1571 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp40_ = query_total_file_size (_tmp37_, _tmp39_, &_inner_error_);
-#line 1571 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp41_ = _tmp40_;
-#line 1571 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_tmp39_);
-#line 1571 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp36_ = _tmp41_;
-#line 1571 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ gboolean _tmp24_;
+ gboolean _tmp31_ = FALSE;
+ gboolean _tmp32_ = FALSE;
+ GFile* _tmp33_;
+ GeeList* _tmp37_;
+ FileToPrepare* _tmp38_;
+ FileToPrepare* _tmp39_;
+#line 1587 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp24_ = determined_size;
+#line 1587 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (!_tmp24_) {
+#line 12932 "BatchImport.c"
+ guint64 _tmp25_ = 0ULL;
+ GFile* _tmp26_;
+ GCancellable* _tmp27_;
+ GCancellable* _tmp28_;
+ guint64 _tmp29_;
+ guint64 _tmp30_;
+#line 1588 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp26_ = file_or_dir;
+#line 1588 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp27_ = background_job_get_cancellable (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_JOB, BackgroundJob));
+#line 1588 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp28_ = _tmp27_;
+#line 1588 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp29_ = query_total_file_size (_tmp26_, _tmp28_, &_inner_error_);
+#line 1588 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_object_unref0 (_tmp28_);
+#line 1588 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp25_ = _tmp29_;
+#line 1588 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1571 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1588 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_propagate_error (error, _inner_error_);
-#line 1571 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1588 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (file_or_dir);
-#line 1571 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1588 "/home/jens/Source/shotwell/src/BatchImport.vala"
return;
-#line 12257 "BatchImport.c"
+#line 12959 "BatchImport.c"
}
-#line 1571 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp42_ = self->total_bytes;
-#line 1571 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->total_bytes = _tmp42_ + _tmp36_;
-#line 12263 "BatchImport.c"
+#line 1588 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp30_ = self->total_bytes;
+#line 1588 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->total_bytes = _tmp30_ + _tmp25_;
+#line 12965 "BatchImport.c"
}
-#line 1574 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp45_ = file_or_dir;
-#line 1574 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp45_ != NULL) {
-#line 12269 "BatchImport.c"
- GeeHashSet* _tmp46_;
-#line 1574 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp46_ = self->priv->skipset;
-#line 1574 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp44_ = _tmp46_ != NULL;
-#line 12275 "BatchImport.c"
+#line 1591 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp33_ = file_or_dir;
+#line 1591 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp33_ != NULL) {
+#line 12971 "BatchImport.c"
+ GeeHashSet* _tmp34_;
+#line 1591 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp34_ = self->priv->skipset;
+#line 1591 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp32_ = _tmp34_ != NULL;
+#line 12977 "BatchImport.c"
} else {
-#line 1574 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp44_ = FALSE;
-#line 12279 "BatchImport.c"
+#line 1591 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp32_ = FALSE;
+#line 12981 "BatchImport.c"
}
-#line 1574 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp44_) {
-#line 12283 "BatchImport.c"
- GeeHashSet* _tmp47_;
- GFile* _tmp48_;
- gboolean _tmp49_;
-#line 1574 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp47_ = self->priv->skipset;
-#line 1574 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp48_ = file_or_dir;
-#line 1574 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp49_ = gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp48_);
-#line 1574 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp43_ = _tmp49_;
-#line 12295 "BatchImport.c"
+#line 1591 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp32_) {
+#line 12985 "BatchImport.c"
+ GeeHashSet* _tmp35_;
+ GFile* _tmp36_;
+#line 1591 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp35_ = self->priv->skipset;
+#line 1591 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp36_ = file_or_dir;
+#line 1591 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp31_ = gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp36_);
+#line 12994 "BatchImport.c"
} else {
-#line 1574 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp43_ = FALSE;
-#line 12299 "BatchImport.c"
+#line 1591 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp31_ = FALSE;
+#line 12998 "BatchImport.c"
}
-#line 1574 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp43_) {
-#line 1575 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1591 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp31_) {
+#line 1592 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (file_or_dir);
-#line 1575 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1592 "/home/jens/Source/shotwell/src/BatchImport.vala"
return;
-#line 12307 "BatchImport.c"
+#line 13006 "BatchImport.c"
}
-#line 1578 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp50_ = self->files_to_prepare;
-#line 1578 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp51_ = job;
-#line 1578 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp52_ = file_to_prepare_new (_tmp51_, NULL, TRUE);
-#line 1578 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp53_ = _tmp52_;
-#line 1578 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, GEE_TYPE_COLLECTION, GeeCollection), _tmp53_);
-#line 1578 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _file_to_prepare_unref0 (_tmp53_);
-#line 12321 "BatchImport.c"
+#line 1595 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp37_ = self->files_to_prepare;
+#line 1595 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp38_ = file_to_prepare_new (job, NULL, TRUE);
+#line 1595 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp39_ = _tmp38_;
+#line 1595 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, GEE_TYPE_COLLECTION, GeeCollection), _tmp39_);
+#line 1595 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _file_to_prepare_unref0 (_tmp39_);
+#line 13018 "BatchImport.c"
}
-#line 1542 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1559 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (file_or_dir);
-#line 12325 "BatchImport.c"
+#line 13022 "BatchImport.c"
}
-void work_sniffer_search_dir (WorkSniffer* self, BatchImportJob* job, GFile* dir, gboolean copy_to_library, GError** error) {
+void
+work_sniffer_search_dir (WorkSniffer* self,
+ BatchImportJob* job,
+ GFile* dir,
+ gboolean copy_to_library,
+ gboolean recurse,
+ GError** error)
+{
GFileEnumerator* enumerator = NULL;
- GFile* _tmp0_;
- GFileEnumerator* _tmp1_;
+ GFileEnumerator* _tmp0_;
GFileInfo* info = NULL;
GError * _inner_error_ = NULL;
-#line 1582 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1599 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (IS_WORK_SNIFFER (self));
-#line 1582 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1599 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (IS_BATCH_IMPORT_JOB (job));
-#line 1582 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1599 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (G_IS_FILE (dir));
-#line 1583 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = dir;
-#line 1583 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = g_file_enumerate_children (_tmp0_, "standard::*", G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, NULL, &_inner_error_);
-#line 1583 "/home/jens/Source/shotwell/src/BatchImport.vala"
- enumerator = _tmp1_;
-#line 1583 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1600 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp0_ = g_file_enumerate_children (dir, "standard::*", G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, NULL, &_inner_error_);
+#line 1600 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ enumerator = _tmp0_;
+#line 1600 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1583 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1600 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_propagate_error (error, _inner_error_);
-#line 1583 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1600 "/home/jens/Source/shotwell/src/BatchImport.vala"
return;
-#line 12353 "BatchImport.c"
+#line 13054 "BatchImport.c"
}
-#line 1586 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1603 "/home/jens/Source/shotwell/src/BatchImport.vala"
info = NULL;
-#line 1587 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala"
while (TRUE) {
-#line 12359 "BatchImport.c"
- GFileInfo* _tmp2_ = NULL;
- GFileEnumerator* _tmp3_;
+#line 13060 "BatchImport.c"
+ GFileInfo* _tmp1_ = NULL;
+ GFileEnumerator* _tmp2_;
+ GCancellable* _tmp3_;
GCancellable* _tmp4_;
- GCancellable* _tmp5_;
+ GFileInfo* _tmp5_;
GFileInfo* _tmp6_;
GFileInfo* _tmp7_;
GFileInfo* _tmp8_;
- GFileInfo* _tmp9_;
- gboolean _tmp10_;
GFile* child = NULL;
+ GFileInfo* _tmp9_;
+ const gchar* _tmp10_;
GFile* _tmp11_;
- GFileInfo* _tmp12_;
- const gchar* _tmp13_;
- GFile* _tmp14_;
GFileType file_type = 0;
- GFileInfo* _tmp15_;
- GFileType _tmp16_;
- GFileType _tmp17_;
-#line 1587 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = enumerator;
-#line 1587 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = background_job_get_cancellable (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_JOB, BackgroundJob));
-#line 1587 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = _tmp4_;
-#line 1587 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = g_file_enumerator_next_file (_tmp3_, _tmp5_, &_inner_error_);
-#line 1587 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = _tmp6_;
-#line 1587 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_tmp5_);
-#line 1587 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = _tmp7_;
-#line 1587 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ GFileInfo* _tmp12_;
+ GFileType _tmp13_;
+#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp2_ = enumerator;
+#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp3_ = background_job_get_cancellable (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_JOB, BackgroundJob));
+#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp4_ = _tmp3_;
+#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp5_ = g_file_enumerator_next_file (_tmp2_, _tmp4_, &_inner_error_);
+#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp6_ = _tmp5_;
+#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_object_unref0 (_tmp4_);
+#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp1_ = _tmp6_;
+#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1587 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_propagate_error (error, _inner_error_);
-#line 1587 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (info);
-#line 1587 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (enumerator);
-#line 1587 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala"
return;
-#line 12402 "BatchImport.c"
+#line 13100 "BatchImport.c"
}
-#line 1587 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = _tmp2_;
-#line 1587 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = NULL;
-#line 1587 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp7_ = _tmp1_;
+#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp1_ = NULL;
+#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (info);
-#line 1587 "/home/jens/Source/shotwell/src/BatchImport.vala"
- info = _tmp8_;
-#line 1587 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = info;
-#line 1587 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!(_tmp9_ != NULL)) {
-#line 1587 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_tmp2_);
-#line 1587 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ info = _tmp7_;
+#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp8_ = info;
+#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (!(_tmp8_ != NULL)) {
+#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_object_unref0 (_tmp1_);
+#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala"
break;
-#line 12420 "BatchImport.c"
+#line 13118 "BatchImport.c"
}
-#line 1589 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = background_job_is_cancelled (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_JOB, BackgroundJob));
-#line 1589 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp10_) {
-#line 1590 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_tmp2_);
-#line 1590 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1606 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (background_job_is_cancelled (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_JOB, BackgroundJob))) {
+#line 1607 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_object_unref0 (_tmp1_);
+#line 1607 "/home/jens/Source/shotwell/src/BatchImport.vala"
break;
-#line 12430 "BatchImport.c"
+#line 13126 "BatchImport.c"
}
-#line 1592 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp11_ = dir;
-#line 1592 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1609 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp9_ = info;
+#line 1609 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp10_ = g_file_info_get_name (_tmp9_);
+#line 1609 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp11_ = g_file_get_child (dir, _tmp10_);
+#line 1609 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ child = _tmp11_;
+#line 1610 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp12_ = info;
-#line 1592 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp13_ = g_file_info_get_name (_tmp12_);
-#line 1592 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp14_ = g_file_get_child (_tmp11_, _tmp13_);
-#line 1592 "/home/jens/Source/shotwell/src/BatchImport.vala"
- child = _tmp14_;
-#line 1593 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp15_ = info;
-#line 1593 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp16_ = g_file_info_get_file_type (_tmp15_);
-#line 1593 "/home/jens/Source/shotwell/src/BatchImport.vala"
- file_type = _tmp16_;
-#line 1595 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp17_ = file_type;
-#line 1595 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp17_ == G_FILE_TYPE_DIRECTORY) {
-#line 12452 "BatchImport.c"
- GFileInfo* _tmp18_;
- const gchar* _tmp19_;
- gboolean _tmp20_;
-#line 1596 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp18_ = info;
-#line 1596 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp19_ = g_file_info_get_name (_tmp18_);
-#line 1596 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp20_ = g_str_has_prefix (_tmp19_, ".");
-#line 1596 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp20_) {
-#line 1597 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1610 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ file_type = g_file_info_get_file_type (_tmp12_);
+#line 1612 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp13_ = file_type;
+#line 1612 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp13_ == G_FILE_TYPE_DIRECTORY) {
+#line 13144 "BatchImport.c"
+ GFileInfo* _tmp14_;
+ const gchar* _tmp15_;
+#line 1613 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (!recurse) {
+#line 1614 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (child);
-#line 1597 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_tmp2_);
-#line 1597 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1614 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_object_unref0 (_tmp1_);
+#line 1614 "/home/jens/Source/shotwell/src/BatchImport.vala"
continue;
-#line 12470 "BatchImport.c"
+#line 13155 "BatchImport.c"
+ }
+#line 1616 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp14_ = info;
+#line 1616 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp15_ = g_file_info_get_name (_tmp14_);
+#line 1616 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (g_str_has_prefix (_tmp15_, ".")) {
+#line 1617 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_object_unref0 (child);
+#line 1617 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_object_unref0 (_tmp1_);
+#line 1617 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ continue;
+#line 13169 "BatchImport.c"
}
{
- BatchImportJob* _tmp21_;
- GFile* _tmp22_;
- gboolean _tmp23_;
-#line 1600 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp21_ = job;
-#line 1600 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp22_ = child;
-#line 1600 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp23_ = copy_to_library;
-#line 1600 "/home/jens/Source/shotwell/src/BatchImport.vala"
- work_sniffer_search_dir (self, _tmp21_, _tmp22_, _tmp23_, &_inner_error_);
-#line 1600 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ GFile* _tmp16_;
+#line 1620 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp16_ = child;
+#line 1620 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ work_sniffer_search_dir (self, job, _tmp16_, copy_to_library, recurse, &_inner_error_);
+#line 1620 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 12486 "BatchImport.c"
- goto __catch416_g_error;
+#line 13179 "BatchImport.c"
+ goto __catch428_g_error;
}
}
- goto __finally416;
- __catch416_g_error:
+ goto __finally428;
+ __catch428_g_error:
{
GError* err = NULL;
- BatchImportJob* _tmp24_;
- GFile* _tmp25_;
- GFile* _tmp26_;
- gchar* _tmp27_;
- gchar* _tmp28_;
- GFile* _tmp29_;
- gchar* _tmp30_;
- gchar* _tmp31_;
- GError* _tmp32_;
-#line 1599 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ GFile* _tmp17_;
+ GFile* _tmp18_;
+ gchar* _tmp19_;
+ gchar* _tmp20_;
+ GFile* _tmp21_;
+ gchar* _tmp22_;
+ gchar* _tmp23_;
+ GError* _tmp24_;
+#line 1619 "/home/jens/Source/shotwell/src/BatchImport.vala"
err = _inner_error_;
-#line 1599 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1619 "/home/jens/Source/shotwell/src/BatchImport.vala"
_inner_error_ = NULL;
-#line 1602 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp24_ = job;
-#line 1602 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp25_ = child;
-#line 1602 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp26_ = child;
-#line 1602 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp27_ = g_file_get_path (_tmp26_);
-#line 1602 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp28_ = _tmp27_;
-#line 1602 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp29_ = child;
-#line 1602 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp30_ = g_file_get_path (_tmp29_);
-#line 1602 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp31_ = _tmp30_;
-#line 1602 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp32_ = err;
-#line 1602 "/home/jens/Source/shotwell/src/BatchImport.vala"
- background_import_job_report_error (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob), _tmp24_, _tmp25_, _tmp28_, _tmp31_, _tmp32_, IMPORT_RESULT_FILE_ERROR);
-#line 1602 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp31_);
-#line 1602 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp28_);
-#line 1599 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1622 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp17_ = child;
+#line 1622 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp18_ = child;
+#line 1622 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp19_ = g_file_get_path (_tmp18_);
+#line 1622 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp20_ = _tmp19_;
+#line 1622 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp21_ = child;
+#line 1622 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp22_ = g_file_get_path (_tmp21_);
+#line 1622 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp23_ = _tmp22_;
+#line 1622 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp24_ = err;
+#line 1622 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ background_import_job_report_error (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob), job, _tmp17_, _tmp20_, _tmp23_, _tmp24_, IMPORT_RESULT_FILE_ERROR);
+#line 1622 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_tmp23_);
+#line 1622 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_tmp20_);
+#line 1619 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_error_free0 (err);
-#line 12533 "BatchImport.c"
+#line 13223 "BatchImport.c"
}
- __finally416:
-#line 1599 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ __finally428:
+#line 1619 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1599 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1619 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_propagate_error (error, _inner_error_);
-#line 1599 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1619 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (child);
-#line 1599 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_tmp2_);
-#line 1599 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1619 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_object_unref0 (_tmp1_);
+#line 1619 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (info);
-#line 1599 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1619 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (enumerator);
-#line 1599 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1619 "/home/jens/Source/shotwell/src/BatchImport.vala"
return;
-#line 12550 "BatchImport.c"
+#line 13240 "BatchImport.c"
}
} else {
- GFileType _tmp33_;
-#line 1605 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp33_ = file_type;
-#line 1605 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp33_ == G_FILE_TYPE_REGULAR) {
-#line 12558 "BatchImport.c"
- gboolean _tmp34_ = FALSE;
- GeeHashSet* _tmp35_;
- gboolean _tmp39_ = FALSE;
- gboolean _tmp40_ = FALSE;
- GFile* _tmp41_;
- gboolean _tmp42_;
-#line 1606 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp35_ = self->priv->skipset;
-#line 1606 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp35_ != NULL) {
-#line 12569 "BatchImport.c"
- GeeHashSet* _tmp36_;
- GFile* _tmp37_;
- gboolean _tmp38_;
-#line 1606 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp36_ = self->priv->skipset;
-#line 1606 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp37_ = child;
-#line 1606 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp38_ = gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp37_);
-#line 1606 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp34_ = _tmp38_;
-#line 12581 "BatchImport.c"
+ GFileType _tmp25_;
+#line 1625 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp25_ = file_type;
+#line 1625 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp25_ == G_FILE_TYPE_REGULAR) {
+#line 13248 "BatchImport.c"
+ gboolean _tmp26_ = FALSE;
+ GeeHashSet* _tmp27_;
+ gboolean _tmp30_ = FALSE;
+ gboolean _tmp31_ = FALSE;
+ GFile* _tmp32_;
+#line 1626 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp27_ = self->priv->skipset;
+#line 1626 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp27_ != NULL) {
+#line 13258 "BatchImport.c"
+ GeeHashSet* _tmp28_;
+ GFile* _tmp29_;
+#line 1626 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp28_ = self->priv->skipset;
+#line 1626 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp29_ = child;
+#line 1626 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp26_ = gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp29_);
+#line 13267 "BatchImport.c"
} else {
-#line 1606 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp34_ = FALSE;
-#line 12585 "BatchImport.c"
+#line 1626 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp26_ = FALSE;
+#line 13271 "BatchImport.c"
}
-#line 1606 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp34_) {
-#line 1607 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1626 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp26_) {
+#line 1627 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (child);
-#line 1607 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_tmp2_);
-#line 1607 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1627 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_object_unref0 (_tmp1_);
+#line 1627 "/home/jens/Source/shotwell/src/BatchImport.vala"
continue;
-#line 12595 "BatchImport.c"
+#line 13281 "BatchImport.c"
}
-#line 1609 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp41_ = child;
-#line 1609 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp42_ = photo_is_file_image (_tmp41_);
-#line 1609 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp42_) {
-#line 12603 "BatchImport.c"
- GFile* _tmp43_;
- gboolean _tmp44_;
-#line 1609 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp43_ = child;
-#line 1609 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp44_ = photo_file_format_is_file_supported (_tmp43_);
-#line 1609 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp40_ = _tmp44_;
-#line 12612 "BatchImport.c"
+#line 1629 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp32_ = child;
+#line 1629 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (photo_is_file_image (_tmp32_)) {
+#line 13287 "BatchImport.c"
+ GFile* _tmp33_;
+#line 1629 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp33_ = child;
+#line 1629 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp31_ = photo_file_format_is_file_supported (_tmp33_);
+#line 13293 "BatchImport.c"
} else {
-#line 1609 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp40_ = FALSE;
-#line 12616 "BatchImport.c"
+#line 1629 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp31_ = FALSE;
+#line 13297 "BatchImport.c"
}
-#line 1609 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp40_) {
-#line 1609 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp39_ = TRUE;
-#line 12622 "BatchImport.c"
+#line 1629 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp31_) {
+#line 1629 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp30_ = TRUE;
+#line 13303 "BatchImport.c"
} else {
- GFile* _tmp45_;
- gboolean _tmp46_;
-#line 1610 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp45_ = child;
-#line 1610 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp46_ = video_reader_is_supported_video_file (_tmp45_);
-#line 1610 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp39_ = _tmp46_;
-#line 12632 "BatchImport.c"
+ GFile* _tmp34_;
+#line 1630 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp34_ = child;
+#line 1630 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp30_ = video_reader_is_supported_video_file (_tmp34_);
+#line 13310 "BatchImport.c"
}
-#line 1609 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp39_) {
-#line 12636 "BatchImport.c"
- guint64 _tmp47_;
- GFileInfo* _tmp48_;
- gint64 _tmp49_;
- GeeList* _tmp50_;
- BatchImportJob* _tmp51_;
- GFile* _tmp52_;
- gboolean _tmp53_;
- FileToPrepare* _tmp54_;
- FileToPrepare* _tmp55_;
-#line 1611 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp47_ = self->total_bytes;
-#line 1611 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp48_ = info;
-#line 1611 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp49_ = g_file_info_get_size (_tmp48_);
-#line 1611 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->total_bytes = _tmp47_ + _tmp49_;
-#line 1612 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp50_ = self->files_to_prepare;
-#line 1612 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp51_ = job;
-#line 1612 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp52_ = child;
-#line 1612 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp53_ = copy_to_library;
-#line 1612 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp54_ = file_to_prepare_new (_tmp51_, _tmp52_, _tmp53_);
-#line 1612 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp55_ = _tmp54_;
-#line 1612 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, GEE_TYPE_COLLECTION, GeeCollection), _tmp55_);
-#line 1612 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _file_to_prepare_unref0 (_tmp55_);
-#line 1614 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1629 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp30_) {
+#line 13314 "BatchImport.c"
+ guint64 _tmp35_;
+ GFileInfo* _tmp36_;
+ GeeList* _tmp37_;
+ GFile* _tmp38_;
+ FileToPrepare* _tmp39_;
+ FileToPrepare* _tmp40_;
+#line 1631 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp35_ = self->total_bytes;
+#line 1631 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp36_ = info;
+#line 1631 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->total_bytes = _tmp35_ + g_file_info_get_size (_tmp36_);
+#line 1632 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp37_ = self->files_to_prepare;
+#line 1632 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp38_ = child;
+#line 1632 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp39_ = file_to_prepare_new (job, _tmp38_, copy_to_library);
+#line 1632 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp40_ = _tmp39_;
+#line 1632 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, GEE_TYPE_COLLECTION, GeeCollection), _tmp40_);
+#line 1632 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _file_to_prepare_unref0 (_tmp40_);
+#line 1634 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (child);
-#line 1614 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_tmp2_);
-#line 1614 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1634 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_object_unref0 (_tmp1_);
+#line 1634 "/home/jens/Source/shotwell/src/BatchImport.vala"
continue;
-#line 12676 "BatchImport.c"
+#line 13345 "BatchImport.c"
}
} else {
- GFile* _tmp56_;
- gchar* _tmp57_;
- gchar* _tmp58_;
- GFileType _tmp59_;
-#line 1617 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp56_ = child;
-#line 1617 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp57_ = g_file_get_path (_tmp56_);
-#line 1617 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp58_ = _tmp57_;
-#line 1617 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp59_ = file_type;
-#line 1617 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_warning ("BatchImport.vala:1617: Ignoring import of %s file type %d", _tmp58_, (gint) _tmp59_);
-#line 1617 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp58_);
-#line 12695 "BatchImport.c"
+ GFile* _tmp41_;
+ gchar* _tmp42_;
+ gchar* _tmp43_;
+ GFileType _tmp44_;
+#line 1637 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp41_ = child;
+#line 1637 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp42_ = g_file_get_path (_tmp41_);
+#line 1637 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp43_ = _tmp42_;
+#line 1637 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp44_ = file_type;
+#line 1637 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ g_warning ("BatchImport.vala:1637: Ignoring import of %s file type %d", _tmp43_, (gint) _tmp44_);
+#line 1637 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_tmp43_);
+#line 13364 "BatchImport.c"
}
}
-#line 1587 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (child);
-#line 1587 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_tmp2_);
-#line 12702 "BatchImport.c"
+#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_object_unref0 (_tmp1_);
+#line 13371 "BatchImport.c"
}
-#line 1582 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1599 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (info);
-#line 1582 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1599 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (enumerator);
-#line 12708 "BatchImport.c"
+#line 13377 "BatchImport.c"
}
-static void work_sniffer_class_init (WorkSnifferClass * klass) {
-#line 1443 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static void
+work_sniffer_class_init (WorkSnifferClass * klass)
+{
+#line 1460 "/home/jens/Source/shotwell/src/BatchImport.vala"
work_sniffer_parent_class = g_type_class_peek_parent (klass);
-#line 1443 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1460 "/home/jens/Source/shotwell/src/BatchImport.vala"
((BackgroundJobClass *) klass)->finalize = work_sniffer_finalize;
-#line 1443 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1460 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_type_class_add_private (klass, sizeof (WorkSnifferPrivate));
-#line 1443 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1460 "/home/jens/Source/shotwell/src/BatchImport.vala"
((BackgroundJobClass *) klass)->execute = (void (*) (BackgroundJob *)) work_sniffer_real_execute;
-#line 12721 "BatchImport.c"
+#line 13392 "BatchImport.c"
}
-static void work_sniffer_instance_init (WorkSniffer * self) {
+static void
+work_sniffer_instance_init (WorkSniffer * self)
+{
GeeArrayList* _tmp0_;
-#line 1443 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1460 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->priv = WORK_SNIFFER_GET_PRIVATE (self);
-#line 1444 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1461 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp0_ = gee_array_list_new (TYPE_FILE_TO_PREPARE, (GBoxedCopyFunc) file_to_prepare_ref, (GDestroyNotify) file_to_prepare_unref, NULL, NULL, NULL);
-#line 1444 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1461 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->files_to_prepare = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_LIST, GeeList);
-#line 1445 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1462 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->total_bytes = (guint64) 0;
-#line 12735 "BatchImport.c"
+#line 13408 "BatchImport.c"
}
-static void work_sniffer_finalize (BackgroundJob * obj) {
+static void
+work_sniffer_finalize (BackgroundJob * obj)
+{
WorkSniffer * self;
-#line 1443 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1460 "/home/jens/Source/shotwell/src/BatchImport.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_WORK_SNIFFER, WorkSniffer);
-#line 1444 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1461 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (self->files_to_prepare);
-#line 1447 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1464 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (self->priv->jobs);
-#line 1448 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1465 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (self->priv->skipset);
-#line 1443 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1460 "/home/jens/Source/shotwell/src/BatchImport.vala"
BACKGROUND_JOB_CLASS (work_sniffer_parent_class)->finalize (obj);
-#line 12751 "BatchImport.c"
+#line 13426 "BatchImport.c"
}
-GType work_sniffer_get_type (void) {
+GType
+work_sniffer_get_type (void)
+{
static volatile gsize work_sniffer_type_id__volatile = 0;
if (g_once_init_enter (&work_sniffer_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (WorkSnifferClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) work_sniffer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (WorkSniffer), 0, (GInstanceInitFunc) work_sniffer_instance_init, NULL };
@@ -12770,360 +13447,392 @@ GType work_sniffer_get_type (void) {
}
-PreparedFile* prepared_file_construct (GType object_type, BatchImportJob* job, GFile* file, GFile* associated_file, const gchar* source_id, const gchar* dest_id, gboolean copy_to_library, const gchar* exif_md5, const gchar* thumbnail_md5, const gchar* full_md5, PhotoFileFormat file_format, guint64 filesize, gboolean is_video) {
+PreparedFile*
+prepared_file_construct (GType object_type,
+ BatchImportJob* job,
+ GFile* file,
+ GFile* associated_file,
+ const gchar* source_id,
+ const gchar* dest_id,
+ gboolean copy_to_library,
+ const gchar* exif_md5,
+ const gchar* thumbnail_md5,
+ const gchar* full_md5,
+ PhotoFileFormat file_format,
+ guint64 filesize,
+ gboolean is_video)
+{
PreparedFile* self = NULL;
BatchImportJob* _tmp0_;
- BatchImportJob* _tmp1_;
+ GFile* _tmp1_;
GFile* _tmp2_;
- GFile* _tmp3_;
- GFile* _tmp4_;
- GFile* _tmp5_;
- const gchar* _tmp6_;
+ gchar* _tmp3_;
+ gchar* _tmp4_;
+ gchar* _tmp5_;
+ gchar* _tmp6_;
gchar* _tmp7_;
- const gchar* _tmp8_;
- gchar* _tmp9_;
- gboolean _tmp10_;
- const gchar* _tmp11_;
- gchar* _tmp12_;
- const gchar* _tmp13_;
- gchar* _tmp14_;
- const gchar* _tmp15_;
- gchar* _tmp16_;
- PhotoFileFormat _tmp17_;
- guint64 _tmp18_;
- gboolean _tmp19_;
-#line 1638 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1658 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (IS_BATCH_IMPORT_JOB (job), NULL);
-#line 1638 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1658 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (G_IS_FILE (file), NULL);
-#line 1638 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1658 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail ((associated_file == NULL) || G_IS_FILE (associated_file), NULL);
-#line 1638 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1658 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (source_id != NULL, NULL);
-#line 1638 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1658 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (dest_id != NULL, NULL);
-#line 1638 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1658 "/home/jens/Source/shotwell/src/BatchImport.vala"
self = (PreparedFile*) g_type_create_instance (object_type);
-#line 1641 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = job;
-#line 1641 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = _batch_import_job_ref0 (_tmp0_);
-#line 1641 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1661 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp0_ = _batch_import_job_ref0 (job);
+#line 1661 "/home/jens/Source/shotwell/src/BatchImport.vala"
_batch_import_job_unref0 (self->job);
-#line 1641 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->job = _tmp1_;
-#line 1642 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1661 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->job = _tmp0_;
+#line 1662 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->result = IMPORT_RESULT_SUCCESS;
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = file;
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = _g_object_ref0 (_tmp2_);
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1663 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp1_ = _g_object_ref0 (file);
+#line 1663 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (self->file);
-#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->file = _tmp3_;
-#line 1644 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = associated_file;
-#line 1644 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = _g_object_ref0 (_tmp4_);
-#line 1644 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1663 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->file = _tmp1_;
+#line 1664 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp2_ = _g_object_ref0 (associated_file);
+#line 1664 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (self->associated_file);
-#line 1644 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->associated_file = _tmp5_;
-#line 1645 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = source_id;
-#line 1645 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = g_strdup (_tmp6_);
-#line 1645 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1664 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->associated_file = _tmp2_;
+#line 1665 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp3_ = g_strdup (source_id);
+#line 1665 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (self->source_id);
-#line 1645 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->source_id = _tmp7_;
-#line 1646 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = dest_id;
-#line 1646 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = g_strdup (_tmp8_);
-#line 1646 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1665 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->source_id = _tmp3_;
+#line 1666 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp4_ = g_strdup (dest_id);
+#line 1666 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (self->dest_id);
-#line 1646 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->dest_id = _tmp9_;
-#line 1647 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = copy_to_library;
-#line 1647 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->copy_to_library = _tmp10_;
-#line 1648 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp11_ = exif_md5;
-#line 1648 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp12_ = g_strdup (_tmp11_);
-#line 1648 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1666 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->dest_id = _tmp4_;
+#line 1667 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->copy_to_library = copy_to_library;
+#line 1668 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp5_ = g_strdup (exif_md5);
+#line 1668 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (self->exif_md5);
-#line 1648 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->exif_md5 = _tmp12_;
-#line 1649 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp13_ = thumbnail_md5;
-#line 1649 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp14_ = g_strdup (_tmp13_);
-#line 1649 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1668 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->exif_md5 = _tmp5_;
+#line 1669 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp6_ = g_strdup (thumbnail_md5);
+#line 1669 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (self->thumbnail_md5);
-#line 1649 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->thumbnail_md5 = _tmp14_;
-#line 1650 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp15_ = full_md5;
-#line 1650 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp16_ = g_strdup (_tmp15_);
-#line 1650 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1669 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->thumbnail_md5 = _tmp6_;
+#line 1670 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp7_ = g_strdup (full_md5);
+#line 1670 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (self->full_md5);
-#line 1650 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->full_md5 = _tmp16_;
-#line 1651 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp17_ = file_format;
-#line 1651 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->file_format = _tmp17_;
-#line 1652 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp18_ = filesize;
-#line 1652 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->filesize = _tmp18_;
-#line 1653 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp19_ = is_video;
-#line 1653 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->is_video = _tmp19_;
-#line 1638 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1670 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->full_md5 = _tmp7_;
+#line 1671 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->file_format = file_format;
+#line 1672 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->filesize = filesize;
+#line 1673 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->is_video = is_video;
+#line 1658 "/home/jens/Source/shotwell/src/BatchImport.vala"
return self;
-#line 12885 "BatchImport.c"
-}
-
-
-PreparedFile* prepared_file_new (BatchImportJob* job, GFile* file, GFile* associated_file, const gchar* source_id, const gchar* dest_id, gboolean copy_to_library, const gchar* exif_md5, const gchar* thumbnail_md5, const gchar* full_md5, PhotoFileFormat file_format, guint64 filesize, gboolean is_video) {
-#line 1638 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 13540 "BatchImport.c"
+}
+
+
+PreparedFile*
+prepared_file_new (BatchImportJob* job,
+ GFile* file,
+ GFile* associated_file,
+ const gchar* source_id,
+ const gchar* dest_id,
+ gboolean copy_to_library,
+ const gchar* exif_md5,
+ const gchar* thumbnail_md5,
+ const gchar* full_md5,
+ PhotoFileFormat file_format,
+ guint64 filesize,
+ gboolean is_video)
+{
+#line 1658 "/home/jens/Source/shotwell/src/BatchImport.vala"
return prepared_file_construct (TYPE_PREPARED_FILE, job, file, associated_file, source_id, dest_id, copy_to_library, exif_md5, thumbnail_md5, full_md5, file_format, filesize, is_video);
-#line 12892 "BatchImport.c"
+#line 13560 "BatchImport.c"
}
-static void value_prepared_file_init (GValue* value) {
-#line 1623 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static void
+value_prepared_file_init (GValue* value)
+{
+#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
value->data[0].v_pointer = NULL;
-#line 12899 "BatchImport.c"
+#line 13569 "BatchImport.c"
}
-static void value_prepared_file_free_value (GValue* value) {
-#line 1623 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static void
+value_prepared_file_free_value (GValue* value)
+{
+#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (value->data[0].v_pointer) {
-#line 1623 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
prepared_file_unref (value->data[0].v_pointer);
-#line 12908 "BatchImport.c"
+#line 13580 "BatchImport.c"
}
}
-static void value_prepared_file_copy_value (const GValue* src_value, GValue* dest_value) {
-#line 1623 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static void
+value_prepared_file_copy_value (const GValue* src_value,
+ GValue* dest_value)
+{
+#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (src_value->data[0].v_pointer) {
-#line 1623 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
dest_value->data[0].v_pointer = prepared_file_ref (src_value->data[0].v_pointer);
-#line 12918 "BatchImport.c"
+#line 13593 "BatchImport.c"
} else {
-#line 1623 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
dest_value->data[0].v_pointer = NULL;
-#line 12922 "BatchImport.c"
+#line 13597 "BatchImport.c"
}
}
-static gpointer value_prepared_file_peek_pointer (const GValue* value) {
-#line 1623 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static gpointer
+value_prepared_file_peek_pointer (const GValue* value)
+{
+#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
return value->data[0].v_pointer;
-#line 12930 "BatchImport.c"
+#line 13607 "BatchImport.c"
}
-static gchar* value_prepared_file_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
-#line 1623 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static gchar*
+value_prepared_file_collect_value (GValue* value,
+ guint n_collect_values,
+ GTypeCValue* collect_values,
+ guint collect_flags)
+{
+#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (collect_values[0].v_pointer) {
-#line 12937 "BatchImport.c"
+#line 13619 "BatchImport.c"
PreparedFile * object;
object = collect_values[0].v_pointer;
-#line 1623 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (object->parent_instance.g_class == NULL) {
-#line 1623 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 12944 "BatchImport.c"
+#line 13626 "BatchImport.c"
} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 1623 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 12948 "BatchImport.c"
+#line 13630 "BatchImport.c"
}
-#line 1623 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
value->data[0].v_pointer = prepared_file_ref (object);
-#line 12952 "BatchImport.c"
+#line 13634 "BatchImport.c"
} else {
-#line 1623 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
value->data[0].v_pointer = NULL;
-#line 12956 "BatchImport.c"
+#line 13638 "BatchImport.c"
}
-#line 1623 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
return NULL;
-#line 12960 "BatchImport.c"
+#line 13642 "BatchImport.c"
}
-static gchar* value_prepared_file_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+static gchar*
+value_prepared_file_lcopy_value (const GValue* value,
+ guint n_collect_values,
+ GTypeCValue* collect_values,
+ guint collect_flags)
+{
PreparedFile ** object_p;
object_p = collect_values[0].v_pointer;
-#line 1623 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (!object_p) {
-#line 1623 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 12971 "BatchImport.c"
+#line 13658 "BatchImport.c"
}
-#line 1623 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (!value->data[0].v_pointer) {
-#line 1623 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
*object_p = NULL;
-#line 12977 "BatchImport.c"
+#line 13664 "BatchImport.c"
} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 1623 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
*object_p = value->data[0].v_pointer;
-#line 12981 "BatchImport.c"
+#line 13668 "BatchImport.c"
} else {
-#line 1623 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
*object_p = prepared_file_ref (value->data[0].v_pointer);
-#line 12985 "BatchImport.c"
+#line 13672 "BatchImport.c"
}
-#line 1623 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
return NULL;
-#line 12989 "BatchImport.c"
+#line 13676 "BatchImport.c"
}
-GParamSpec* param_spec_prepared_file (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+GParamSpec*
+param_spec_prepared_file (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags)
+{
ParamSpecPreparedFile* spec;
-#line 1623 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (g_type_is_a (object_type, TYPE_PREPARED_FILE), NULL);
-#line 1623 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 1623 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
G_PARAM_SPEC (spec)->value_type = object_type;
-#line 1623 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
return G_PARAM_SPEC (spec);
-#line 13003 "BatchImport.c"
+#line 13696 "BatchImport.c"
}
-gpointer value_get_prepared_file (const GValue* value) {
-#line 1623 "/home/jens/Source/shotwell/src/BatchImport.vala"
+gpointer
+value_get_prepared_file (const GValue* value)
+{
+#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PREPARED_FILE), NULL);
-#line 1623 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
return value->data[0].v_pointer;
-#line 13012 "BatchImport.c"
+#line 13707 "BatchImport.c"
}
-void value_set_prepared_file (GValue* value, gpointer v_object) {
+void
+value_set_prepared_file (GValue* value,
+ gpointer v_object)
+{
PreparedFile * old;
-#line 1623 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PREPARED_FILE));
-#line 1623 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
old = value->data[0].v_pointer;
-#line 1623 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (v_object) {
-#line 1623 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PREPARED_FILE));
-#line 1623 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 1623 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
value->data[0].v_pointer = v_object;
-#line 1623 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
prepared_file_ref (value->data[0].v_pointer);
-#line 13032 "BatchImport.c"
+#line 13730 "BatchImport.c"
} else {
-#line 1623 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
value->data[0].v_pointer = NULL;
-#line 13036 "BatchImport.c"
+#line 13734 "BatchImport.c"
}
-#line 1623 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (old) {
-#line 1623 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
prepared_file_unref (old);
-#line 13042 "BatchImport.c"
+#line 13740 "BatchImport.c"
}
}
-void value_take_prepared_file (GValue* value, gpointer v_object) {
+void
+value_take_prepared_file (GValue* value,
+ gpointer v_object)
+{
PreparedFile * old;
-#line 1623 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PREPARED_FILE));
-#line 1623 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
old = value->data[0].v_pointer;
-#line 1623 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (v_object) {
-#line 1623 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PREPARED_FILE));
-#line 1623 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 1623 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
value->data[0].v_pointer = v_object;
-#line 13061 "BatchImport.c"
+#line 13762 "BatchImport.c"
} else {
-#line 1623 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
value->data[0].v_pointer = NULL;
-#line 13065 "BatchImport.c"
+#line 13766 "BatchImport.c"
}
-#line 1623 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (old) {
-#line 1623 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
prepared_file_unref (old);
-#line 13071 "BatchImport.c"
+#line 13772 "BatchImport.c"
}
}
-static void prepared_file_class_init (PreparedFileClass * klass) {
-#line 1623 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static void
+prepared_file_class_init (PreparedFileClass * klass)
+{
+#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
prepared_file_parent_class = g_type_class_peek_parent (klass);
-#line 1623 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
((PreparedFileClass *) klass)->finalize = prepared_file_finalize;
-#line 13081 "BatchImport.c"
+#line 13784 "BatchImport.c"
}
-static void prepared_file_instance_init (PreparedFile * self) {
-#line 1627 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static void
+prepared_file_instance_init (PreparedFile * self)
+{
+#line 1647 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->associated_file = NULL;
-#line 1623 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->ref_count = 1;
-#line 13090 "BatchImport.c"
+#line 13795 "BatchImport.c"
}
-static void prepared_file_finalize (PreparedFile * obj) {
+static void
+prepared_file_finalize (PreparedFile * obj)
+{
PreparedFile * self;
-#line 1623 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PREPARED_FILE, PreparedFile);
-#line 1623 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_signal_handlers_destroy (self);
-#line 1624 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1644 "/home/jens/Source/shotwell/src/BatchImport.vala"
_batch_import_job_unref0 (self->job);
-#line 1626 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1646 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (self->file);
-#line 1627 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1647 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (self->associated_file);
-#line 1628 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1648 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (self->source_id);
-#line 1629 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1649 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (self->dest_id);
-#line 1631 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1651 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (self->exif_md5);
-#line 1632 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1652 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (self->thumbnail_md5);
-#line 1633 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1653 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (self->full_md5);
-#line 13116 "BatchImport.c"
+#line 13823 "BatchImport.c"
}
-GType prepared_file_get_type (void) {
+GType
+prepared_file_get_type (void)
+{
static volatile gsize prepared_file_type_id__volatile = 0;
if (g_once_init_enter (&prepared_file_type_id__volatile)) {
static const GTypeValueTable g_define_type_value_table = { value_prepared_file_init, value_prepared_file_free_value, value_prepared_file_copy_value, value_prepared_file_peek_pointer, "p", value_prepared_file_collect_value, "p", value_prepared_file_lcopy_value };
@@ -13137,86 +13846,100 @@ GType prepared_file_get_type (void) {
}
-gpointer prepared_file_ref (gpointer instance) {
+gpointer
+prepared_file_ref (gpointer instance)
+{
PreparedFile * self;
self = instance;
-#line 1623 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_atomic_int_inc (&self->ref_count);
-#line 1623 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
return instance;
-#line 13141 "BatchImport.c"
+#line 13852 "BatchImport.c"
}
-void prepared_file_unref (gpointer instance) {
+void
+prepared_file_unref (gpointer instance)
+{
PreparedFile * self;
self = instance;
-#line 1623 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 1623 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
PREPARED_FILE_GET_CLASS (self)->finalize (self);
-#line 1623 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_type_free_instance ((GTypeInstance *) self);
-#line 13154 "BatchImport.c"
+#line 13867 "BatchImport.c"
}
}
-PreparedFileCluster* prepared_file_cluster_construct (GType object_type, GeeArrayList* list) {
+PreparedFileCluster*
+prepared_file_cluster_construct (GType object_type,
+ GeeArrayList* list)
+{
PreparedFileCluster* self = NULL;
GeeArrayList* _tmp0_;
- GeeArrayList* _tmp1_;
-#line 1660 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1680 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (GEE_IS_ARRAY_LIST (list), NULL);
-#line 1660 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1680 "/home/jens/Source/shotwell/src/BatchImport.vala"
self = (PreparedFileCluster*) interlocked_notification_object_construct (object_type);
-#line 1661 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = list;
-#line 1661 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 1661 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1681 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp0_ = _g_object_ref0 (list);
+#line 1681 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (self->list);
-#line 1661 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->list = _tmp1_;
-#line 1660 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1681 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->list = _tmp0_;
+#line 1680 "/home/jens/Source/shotwell/src/BatchImport.vala"
return self;
-#line 13177 "BatchImport.c"
+#line 13890 "BatchImport.c"
}
-PreparedFileCluster* prepared_file_cluster_new (GeeArrayList* list) {
-#line 1660 "/home/jens/Source/shotwell/src/BatchImport.vala"
+PreparedFileCluster*
+prepared_file_cluster_new (GeeArrayList* list)
+{
+#line 1680 "/home/jens/Source/shotwell/src/BatchImport.vala"
return prepared_file_cluster_construct (TYPE_PREPARED_FILE_CLUSTER, list);
-#line 13184 "BatchImport.c"
+#line 13899 "BatchImport.c"
}
-static void prepared_file_cluster_class_init (PreparedFileClusterClass * klass) {
-#line 1657 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static void
+prepared_file_cluster_class_init (PreparedFileClusterClass * klass)
+{
+#line 1677 "/home/jens/Source/shotwell/src/BatchImport.vala"
prepared_file_cluster_parent_class = g_type_class_peek_parent (klass);
-#line 1657 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1677 "/home/jens/Source/shotwell/src/BatchImport.vala"
((NotificationObjectClass *) klass)->finalize = prepared_file_cluster_finalize;
-#line 13193 "BatchImport.c"
+#line 13910 "BatchImport.c"
}
-static void prepared_file_cluster_instance_init (PreparedFileCluster * self) {
+static void
+prepared_file_cluster_instance_init (PreparedFileCluster * self)
+{
}
-static void prepared_file_cluster_finalize (NotificationObject * obj) {
+static void
+prepared_file_cluster_finalize (NotificationObject * obj)
+{
PreparedFileCluster * self;
-#line 1657 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1677 "/home/jens/Source/shotwell/src/BatchImport.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PREPARED_FILE_CLUSTER, PreparedFileCluster);
-#line 1658 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1678 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (self->list);
-#line 1657 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1677 "/home/jens/Source/shotwell/src/BatchImport.vala"
NOTIFICATION_OBJECT_CLASS (prepared_file_cluster_parent_class)->finalize (obj);
-#line 13209 "BatchImport.c"
+#line 13930 "BatchImport.c"
}
-GType prepared_file_cluster_get_type (void) {
+GType
+prepared_file_cluster_get_type (void)
+{
static volatile gsize prepared_file_cluster_type_id__volatile = 0;
if (g_once_init_enter (&prepared_file_cluster_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (PreparedFileClusterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) prepared_file_cluster_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PreparedFileCluster), 0, (GInstanceInitFunc) prepared_file_cluster_instance_init, NULL };
@@ -13228,172 +13951,158 @@ GType prepared_file_cluster_get_type (void) {
}
-PrepareFilesJob* prepare_files_job_construct (GType object_type, BatchImport* owner, GeeList* files_to_prepare, NotificationCallback notification, void* notification_target, CompletionCallback callback, void* callback_target, GCancellable* cancellable, CancellationCallback cancellation, void* cancellation_target) {
+PrepareFilesJob*
+prepare_files_job_construct (GType object_type,
+ BatchImport* owner,
+ GeeList* files_to_prepare,
+ NotificationCallback notification,
+ void* notification_target,
+ CompletionCallback callback,
+ void* callback_target,
+ GCancellable* cancellable,
+ CancellationCallback cancellation,
+ void* cancellation_target)
+{
PrepareFilesJob* self = NULL;
- BatchImport* _tmp0_;
- CompletionCallback _tmp1_;
- void* _tmp1__target;
- GCancellable* _tmp2_;
- CancellationCallback _tmp3_;
- void* _tmp3__target;
- GeeList* _tmp4_;
- GeeList* _tmp5_;
- NotificationCallback _tmp6_;
- void* _tmp6__target;
- GFile* _tmp7_;
- gint _tmp8_;
- gint _tmp9_;
-#line 1678 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ GeeList* _tmp0_;
+ GFile* _tmp1_;
+#line 1698 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (IS_BATCH_IMPORT (owner), NULL);
-#line 1678 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1698 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (GEE_IS_LIST (files_to_prepare), NULL);
-#line 1678 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1698 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (G_IS_CANCELLABLE (cancellable), NULL);
-#line 1681 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = owner;
-#line 1681 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = callback;
-#line 1681 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1__target = callback_target;
-#line 1681 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = cancellable;
-#line 1681 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = cancellation;
-#line 1681 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3__target = cancellation_target;
-#line 1681 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self = (PrepareFilesJob*) background_import_job_construct (object_type, _tmp0_, _tmp1_, _tmp1__target, _tmp2_, _tmp3_, _tmp3__target);
-#line 1683 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = files_to_prepare;
-#line 1683 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = _g_object_ref0 (_tmp4_);
-#line 1683 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1701 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self = (PrepareFilesJob*) background_import_job_construct (object_type, owner, callback, callback_target, cancellable, cancellation, cancellation_target);
+#line 1703 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp0_ = _g_object_ref0 (files_to_prepare);
+#line 1703 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (self->priv->files_to_prepare);
-#line 1683 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->files_to_prepare = _tmp5_;
-#line 1684 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = notification;
-#line 1684 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6__target = notification_target;
-#line 1684 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->notification = _tmp6_;
-#line 1684 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->notification_target = _tmp6__target;
-#line 1685 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = app_dirs_get_import_dir ();
-#line 1685 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1703 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->priv->files_to_prepare = _tmp0_;
+#line 1704 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->priv->notification = notification;
+#line 1704 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->priv->notification_target = notification_target;
+#line 1705 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp1_ = app_dirs_get_import_dir ();
+#line 1705 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (self->priv->library_dir);
-#line 1685 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->library_dir = _tmp7_;
-#line 1686 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = prepare_files_job_get_test_variable ("SHOTWELL_FAIL_EVERY");
-#line 1686 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->fail_every = _tmp8_;
-#line 1687 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = prepare_files_job_get_test_variable ("SHOTWELL_SKIP_EVERY");
-#line 1687 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->skip_every = _tmp9_;
-#line 1689 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1705 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->priv->library_dir = _tmp1_;
+#line 1706 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->priv->fail_every = prepare_files_job_get_test_variable ("SHOTWELL_FAIL_EVERY");
+#line 1707 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->priv->skip_every = prepare_files_job_get_test_variable ("SHOTWELL_SKIP_EVERY");
+#line 1709 "/home/jens/Source/shotwell/src/BatchImport.vala"
background_job_set_notification_priority (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_JOB, BackgroundJob), G_PRIORITY_LOW);
-#line 1678 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1698 "/home/jens/Source/shotwell/src/BatchImport.vala"
return self;
-#line 13294 "BatchImport.c"
+#line 13995 "BatchImport.c"
}
-PrepareFilesJob* prepare_files_job_new (BatchImport* owner, GeeList* files_to_prepare, NotificationCallback notification, void* notification_target, CompletionCallback callback, void* callback_target, GCancellable* cancellable, CancellationCallback cancellation, void* cancellation_target) {
-#line 1678 "/home/jens/Source/shotwell/src/BatchImport.vala"
+PrepareFilesJob*
+prepare_files_job_new (BatchImport* owner,
+ GeeList* files_to_prepare,
+ NotificationCallback notification,
+ void* notification_target,
+ CompletionCallback callback,
+ void* callback_target,
+ GCancellable* cancellable,
+ CancellationCallback cancellation,
+ void* cancellation_target)
+{
+#line 1698 "/home/jens/Source/shotwell/src/BatchImport.vala"
return prepare_files_job_construct (TYPE_PREPARE_FILES_JOB, owner, files_to_prepare, notification, notification_target, callback, callback_target, cancellable, cancellation, cancellation_target);
-#line 13301 "BatchImport.c"
+#line 14012 "BatchImport.c"
}
-static gint prepare_files_job_get_test_variable (const gchar* name) {
+static gint
+prepare_files_job_get_test_variable (const gchar* name)
+{
gint result = 0;
gchar* value = NULL;
const gchar* _tmp0_;
- const gchar* _tmp1_;
- gchar* _tmp2_;
- gint _tmp3_ = 0;
- gboolean _tmp4_ = FALSE;
- const gchar* _tmp5_;
-#line 1692 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ gchar* _tmp1_;
+ gint _tmp2_ = 0;
+ gboolean _tmp3_ = FALSE;
+ const gchar* _tmp4_;
+#line 1712 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (name != NULL, 0);
-#line 1693 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = name;
-#line 1693 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = g_getenv (_tmp0_);
-#line 1693 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = g_strdup (_tmp1_);
-#line 1693 "/home/jens/Source/shotwell/src/BatchImport.vala"
- value = _tmp2_;
-#line 1695 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = value;
-#line 1695 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp5_ == NULL) {
-#line 1695 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = TRUE;
-#line 13330 "BatchImport.c"
+#line 1713 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp0_ = g_getenv (name);
+#line 1713 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 1713 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ value = _tmp1_;
+#line 1715 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp4_ = value;
+#line 1715 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp4_ == NULL) {
+#line 1715 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp3_ = TRUE;
+#line 14040 "BatchImport.c"
} else {
- const gchar* _tmp6_;
+ const gchar* _tmp5_;
+ gint _tmp6_;
gint _tmp7_;
- gint _tmp8_;
-#line 1695 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = value;
-#line 1695 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = strlen (_tmp6_);
-#line 1695 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = _tmp7_;
-#line 1695 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = _tmp8_ == 0;
-#line 13343 "BatchImport.c"
+#line 1715 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp5_ = value;
+#line 1715 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp6_ = strlen (_tmp5_);
+#line 1715 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp7_ = _tmp6_;
+#line 1715 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp3_ = _tmp7_ == 0;
+#line 14053 "BatchImport.c"
}
-#line 1695 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp4_) {
-#line 1695 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = 0;
-#line 13349 "BatchImport.c"
+#line 1715 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp3_) {
+#line 1715 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp2_ = 0;
+#line 14059 "BatchImport.c"
} else {
- const gchar* _tmp9_;
- gint _tmp10_;
-#line 1695 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = value;
-#line 1695 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = atoi (_tmp9_);
-#line 1695 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = _tmp10_;
-#line 13359 "BatchImport.c"
+ const gchar* _tmp8_;
+#line 1715 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp8_ = value;
+#line 1715 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp2_ = atoi (_tmp8_);
+#line 14066 "BatchImport.c"
}
-#line 1695 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = _tmp3_;
-#line 1695 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1715 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ result = _tmp2_;
+#line 1715 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (value);
-#line 1695 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1715 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 13367 "BatchImport.c"
+#line 14074 "BatchImport.c"
}
-static void prepare_files_job_real_execute (BackgroundJob* base) {
+static void
+prepare_files_job_real_execute (BackgroundJob* base)
+{
PrepareFilesJob * self;
GTimer* timer = NULL;
GTimer* _tmp0_;
GeeArrayList* list = NULL;
GeeArrayList* _tmp1_;
- GeeArrayList* _tmp90_;
+ GeeArrayList* _tmp89_;
+ gint _tmp90_;
gint _tmp91_;
- gint _tmp92_;
-#line 1698 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1718 "/home/jens/Source/shotwell/src/BatchImport.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PREPARE_FILES_JOB, PrepareFilesJob);
-#line 1699 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1719 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp0_ = g_timer_new ();
-#line 1699 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1719 "/home/jens/Source/shotwell/src/BatchImport.vala"
timer = _tmp0_;
-#line 1701 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1721 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp1_ = gee_array_list_new (TYPE_PREPARED_FILE, (GBoxedCopyFunc) prepared_file_ref, (GDestroyNotify) prepared_file_unref, NULL, NULL, NULL);
-#line 1701 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1721 "/home/jens/Source/shotwell/src/BatchImport.vala"
list = _tmp1_;
-#line 13390 "BatchImport.c"
+#line 14099 "BatchImport.c"
{
GeeList* _file_to_prepare_list = NULL;
GeeList* _tmp2_;
@@ -13403,25 +14112,25 @@ static void prepare_files_job_real_execute (BackgroundJob* base) {
gint _tmp5_;
gint _tmp6_;
gint _file_to_prepare_index = 0;
-#line 1702 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp2_ = self->priv->files_to_prepare;
-#line 1702 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp3_ = _g_object_ref0 (_tmp2_);
-#line 1702 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala"
_file_to_prepare_list = _tmp3_;
-#line 1702 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp4_ = _file_to_prepare_list;
-#line 1702 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp5_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 1702 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp6_ = _tmp5_;
-#line 1702 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala"
_file_to_prepare_size = _tmp6_;
-#line 1702 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala"
_file_to_prepare_index = -1;
-#line 1702 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala"
while (TRUE) {
-#line 13418 "BatchImport.c"
+#line 14127 "BatchImport.c"
gint _tmp7_;
gint _tmp8_;
gint _tmp9_;
@@ -13431,1639 +14140,1440 @@ static void prepare_files_job_real_execute (BackgroundJob* base) {
gpointer _tmp12_;
ImportResult _result_ = 0;
ImportResult _tmp13_;
- ImportResult _tmp14_;
BatchImportJob* job = NULL;
- FileToPrepare* _tmp26_;
+ FileToPrepare* _tmp25_;
+ BatchImportJob* _tmp26_;
BatchImportJob* _tmp27_;
- BatchImportJob* _tmp28_;
GFile* file = NULL;
- FileToPrepare* _tmp29_;
+ FileToPrepare* _tmp28_;
+ GFile* _tmp29_;
GFile* _tmp30_;
- GFile* _tmp31_;
- GFile* _tmp32_ = NULL;
+ GFile* _tmp31_ = NULL;
+ FileToPrepare* _tmp32_;
FileToPrepare* _tmp33_;
- FileToPrepare* _tmp34_;
GFile* associated = NULL;
- GFile* _tmp38_;
+ GFile* _tmp37_;
gboolean copy_to_library = FALSE;
- FileToPrepare* _tmp39_;
- gboolean _tmp40_;
- GFile* _tmp41_;
- gboolean _tmp46_ = FALSE;
- GFile* _tmp47_;
+ FileToPrepare* _tmp38_;
+ gboolean _tmp39_;
+ GFile* _tmp40_;
+ gboolean _tmp45_ = FALSE;
+ GFile* _tmp46_;
PreparedFile* prepared_file = NULL;
- BatchImportJob* _tmp55_;
+ BatchImportJob* _tmp54_;
+ GFile* _tmp55_;
GFile* _tmp56_;
- GFile* _tmp57_;
- gboolean _tmp58_;
- PreparedFile* _tmp59_ = NULL;
+ gboolean _tmp57_;
+ PreparedFile* _tmp58_ = NULL;
+ ImportResult _tmp59_;
ImportResult _tmp60_;
- ImportResult _tmp61_;
- gboolean _tmp74_ = FALSE;
- GeeArrayList* _tmp75_;
+ gboolean _tmp73_ = FALSE;
+ GeeArrayList* _tmp74_;
+ gint _tmp75_;
gint _tmp76_;
- gint _tmp77_;
-#line 1702 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp7_ = _file_to_prepare_index;
-#line 1702 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala"
_file_to_prepare_index = _tmp7_ + 1;
-#line 1702 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp8_ = _file_to_prepare_index;
-#line 1702 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp9_ = _file_to_prepare_size;
-#line 1702 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (!(_tmp8_ < _tmp9_)) {
-#line 1702 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala"
break;
-#line 13472 "BatchImport.c"
+#line 14180 "BatchImport.c"
}
-#line 1702 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp10_ = _file_to_prepare_list;
-#line 1702 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp11_ = _file_to_prepare_index;
-#line 1702 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp12_ = gee_list_get (_tmp10_, _tmp11_);
-#line 1702 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala"
file_to_prepare = (FileToPrepare*) _tmp12_;
-#line 1703 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp13_ = background_import_job_abort_check (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob));
-#line 1703 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _result_ = _tmp13_;
-#line 1704 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp14_ = _result_;
-#line 1704 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp14_ != IMPORT_RESULT_SUCCESS) {
-#line 13490 "BatchImport.c"
- FileToPrepare* _tmp15_;
- BatchImportJob* _tmp16_;
- FileToPrepare* _tmp17_;
- BatchImportJob* _tmp18_;
+#line 1723 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _result_ = background_import_job_abort_check (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob));
+#line 1724 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp13_ = _result_;
+#line 1724 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp13_ != IMPORT_RESULT_SUCCESS) {
+#line 14196 "BatchImport.c"
+ FileToPrepare* _tmp14_;
+ BatchImportJob* _tmp15_;
+ FileToPrepare* _tmp16_;
+ BatchImportJob* _tmp17_;
+ gchar* _tmp18_;
gchar* _tmp19_;
- gchar* _tmp20_;
- FileToPrepare* _tmp21_;
- BatchImportJob* _tmp22_;
+ FileToPrepare* _tmp20_;
+ BatchImportJob* _tmp21_;
+ gchar* _tmp22_;
gchar* _tmp23_;
- gchar* _tmp24_;
- ImportResult _tmp25_;
-#line 1705 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp15_ = file_to_prepare;
-#line 1705 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp16_ = _tmp15_->job;
-#line 1705 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp17_ = file_to_prepare;
-#line 1705 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp18_ = _tmp17_->job;
-#line 1705 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp19_ = batch_import_job_get_dest_identifier (_tmp18_);
-#line 1705 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp20_ = _tmp19_;
-#line 1705 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp21_ = file_to_prepare;
-#line 1705 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp22_ = _tmp21_->job;
-#line 1705 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp23_ = batch_import_job_get_source_identifier (_tmp22_);
-#line 1705 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp24_ = _tmp23_;
-#line 1705 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp25_ = _result_;
-#line 1705 "/home/jens/Source/shotwell/src/BatchImport.vala"
- background_import_job_report_failure (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob), _tmp16_, NULL, _tmp20_, _tmp24_, _tmp25_);
-#line 1705 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp24_);
-#line 1705 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp20_);
-#line 1708 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ ImportResult _tmp24_;
+#line 1725 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp14_ = file_to_prepare;
+#line 1725 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp15_ = _tmp14_->job;
+#line 1725 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp16_ = file_to_prepare;
+#line 1725 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp17_ = _tmp16_->job;
+#line 1725 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp18_ = batch_import_job_get_dest_identifier (_tmp17_);
+#line 1725 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp19_ = _tmp18_;
+#line 1725 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp20_ = file_to_prepare;
+#line 1725 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp21_ = _tmp20_->job;
+#line 1725 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp22_ = batch_import_job_get_source_identifier (_tmp21_);
+#line 1725 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp23_ = _tmp22_;
+#line 1725 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp24_ = _result_;
+#line 1725 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ background_import_job_report_failure (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob), _tmp15_, NULL, _tmp19_, _tmp23_, _tmp24_);
+#line 1725 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_tmp23_);
+#line 1725 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_tmp19_);
+#line 1728 "/home/jens/Source/shotwell/src/BatchImport.vala"
_file_to_prepare_unref0 (file_to_prepare);
-#line 1708 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1728 "/home/jens/Source/shotwell/src/BatchImport.vala"
continue;
-#line 13534 "BatchImport.c"
+#line 14240 "BatchImport.c"
}
-#line 1711 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp26_ = file_to_prepare;
-#line 1711 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp27_ = _tmp26_->job;
-#line 1711 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp28_ = _batch_import_job_ref0 (_tmp27_);
-#line 1711 "/home/jens/Source/shotwell/src/BatchImport.vala"
- job = _tmp28_;
-#line 1712 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp29_ = file_to_prepare;
-#line 1712 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp30_ = _tmp29_->file;
-#line 1712 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp31_ = _g_object_ref0 (_tmp30_);
-#line 1712 "/home/jens/Source/shotwell/src/BatchImport.vala"
- file = _tmp31_;
-#line 1713 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp33_ = file_to_prepare;
-#line 1713 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp34_ = _tmp33_->associated;
-#line 1713 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp34_ != NULL) {
-#line 13558 "BatchImport.c"
+#line 1731 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp25_ = file_to_prepare;
+#line 1731 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp26_ = _tmp25_->job;
+#line 1731 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp27_ = _batch_import_job_ref0 (_tmp26_);
+#line 1731 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ job = _tmp27_;
+#line 1732 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp28_ = file_to_prepare;
+#line 1732 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp29_ = _tmp28_->file;
+#line 1732 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp30_ = _g_object_ref0 (_tmp29_);
+#line 1732 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ file = _tmp30_;
+#line 1733 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp32_ = file_to_prepare;
+#line 1733 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp33_ = _tmp32_->associated;
+#line 1733 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp33_ != NULL) {
+#line 14264 "BatchImport.c"
+ FileToPrepare* _tmp34_;
FileToPrepare* _tmp35_;
- FileToPrepare* _tmp36_;
- GFile* _tmp37_;
-#line 1713 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp35_ = file_to_prepare;
-#line 1713 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp36_ = _tmp35_->associated;
-#line 1713 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp37_ = _tmp36_->file;
-#line 1713 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp32_ = _tmp37_;
-#line 13570 "BatchImport.c"
+ GFile* _tmp36_;
+#line 1733 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp34_ = file_to_prepare;
+#line 1733 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp35_ = _tmp34_->associated;
+#line 1733 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp36_ = _tmp35_->file;
+#line 1733 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp31_ = _tmp36_;
+#line 14276 "BatchImport.c"
} else {
-#line 1713 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp32_ = NULL;
-#line 13574 "BatchImport.c"
+#line 1733 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp31_ = NULL;
+#line 14280 "BatchImport.c"
}
-#line 1713 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp38_ = _g_object_ref0 (_tmp32_);
-#line 1713 "/home/jens/Source/shotwell/src/BatchImport.vala"
- associated = _tmp38_;
-#line 1714 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp39_ = file_to_prepare;
-#line 1714 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp40_ = _tmp39_->copy_to_library;
-#line 1714 "/home/jens/Source/shotwell/src/BatchImport.vala"
- copy_to_library = _tmp40_;
-#line 1717 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp41_ = file;
-#line 1717 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp41_ == NULL) {
-#line 13590 "BatchImport.c"
- BatchImportJob* _tmp42_;
- GFile* _tmp43_ = NULL;
- gboolean _tmp44_ = FALSE;
- gboolean _tmp45_;
-#line 1718 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp42_ = job;
-#line 1718 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp45_ = prepare_files_job_create_file (self, _tmp42_, &_tmp43_, &_tmp44_);
-#line 1718 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1733 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp37_ = _g_object_ref0 (_tmp31_);
+#line 1733 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ associated = _tmp37_;
+#line 1734 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp38_ = file_to_prepare;
+#line 1734 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp39_ = _tmp38_->copy_to_library;
+#line 1734 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ copy_to_library = _tmp39_;
+#line 1737 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp40_ = file;
+#line 1737 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp40_ == NULL) {
+#line 14296 "BatchImport.c"
+ BatchImportJob* _tmp41_;
+ GFile* _tmp42_ = NULL;
+ gboolean _tmp43_ = FALSE;
+ gboolean _tmp44_;
+#line 1738 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp41_ = job;
+#line 1738 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp44_ = prepare_files_job_create_file (self, _tmp41_, &_tmp42_, &_tmp43_);
+#line 1738 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (file);
-#line 1718 "/home/jens/Source/shotwell/src/BatchImport.vala"
- file = _tmp43_;
-#line 1718 "/home/jens/Source/shotwell/src/BatchImport.vala"
- copy_to_library = _tmp44_;
-#line 1718 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!_tmp45_) {
-#line 1719 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1738 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ file = _tmp42_;
+#line 1738 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ copy_to_library = _tmp43_;
+#line 1738 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (!_tmp44_) {
+#line 1739 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (associated);
-#line 1719 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1739 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (file);
-#line 1719 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1739 "/home/jens/Source/shotwell/src/BatchImport.vala"
_batch_import_job_unref0 (job);
-#line 1719 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1739 "/home/jens/Source/shotwell/src/BatchImport.vala"
_file_to_prepare_unref0 (file_to_prepare);
-#line 1719 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1739 "/home/jens/Source/shotwell/src/BatchImport.vala"
continue;
-#line 13617 "BatchImport.c"
+#line 14323 "BatchImport.c"
}
}
-#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp47_ = associated;
-#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp47_ == NULL) {
-#line 13624 "BatchImport.c"
+#line 1742 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp46_ = associated;
+#line 1742 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp46_ == NULL) {
+#line 14330 "BatchImport.c"
+ FileToPrepare* _tmp47_;
FileToPrepare* _tmp48_;
- FileToPrepare* _tmp49_;
-#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp48_ = file_to_prepare;
-#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp49_ = _tmp48_->associated;
-#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp46_ = _tmp49_ != NULL;
-#line 13633 "BatchImport.c"
+#line 1742 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp47_ = file_to_prepare;
+#line 1742 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp48_ = _tmp47_->associated;
+#line 1742 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp45_ = _tmp48_ != NULL;
+#line 14339 "BatchImport.c"
} else {
-#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp46_ = FALSE;
-#line 13637 "BatchImport.c"
+#line 1742 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp45_ = FALSE;
+#line 14343 "BatchImport.c"
}
-#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp46_) {
-#line 13641 "BatchImport.c"
+#line 1742 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp45_) {
+#line 14347 "BatchImport.c"
+ FileToPrepare* _tmp49_;
FileToPrepare* _tmp50_;
- FileToPrepare* _tmp51_;
- BatchImportJob* _tmp52_;
- GFile* _tmp53_ = NULL;
- gboolean _tmp54_ = FALSE;
-#line 1723 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp50_ = file_to_prepare;
-#line 1723 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp51_ = _tmp50_->associated;
-#line 1723 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp52_ = _tmp51_->job;
-#line 1723 "/home/jens/Source/shotwell/src/BatchImport.vala"
- prepare_files_job_create_file (self, _tmp52_, &_tmp53_, &_tmp54_);
-#line 1723 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ BatchImportJob* _tmp51_;
+ GFile* _tmp52_ = NULL;
+ gboolean _tmp53_ = FALSE;
+#line 1743 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp49_ = file_to_prepare;
+#line 1743 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp50_ = _tmp49_->associated;
+#line 1743 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp51_ = _tmp50_->job;
+#line 1743 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ prepare_files_job_create_file (self, _tmp51_, &_tmp52_, &_tmp53_);
+#line 1743 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (associated);
-#line 1723 "/home/jens/Source/shotwell/src/BatchImport.vala"
- associated = _tmp53_;
-#line 1723 "/home/jens/Source/shotwell/src/BatchImport.vala"
- copy_to_library = _tmp54_;
-#line 13661 "BatchImport.c"
+#line 1743 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ associated = _tmp52_;
+#line 1743 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ copy_to_library = _tmp53_;
+#line 14367 "BatchImport.c"
}
-#line 1727 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp55_ = job;
-#line 1727 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp56_ = file;
-#line 1727 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp57_ = associated;
-#line 1727 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp58_ = copy_to_library;
-#line 1727 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp60_ = prepare_files_job_prepare_file (self, _tmp55_, _tmp56_, _tmp57_, _tmp58_, &_tmp59_);
-#line 1727 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1747 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp54_ = job;
+#line 1747 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp55_ = file;
+#line 1747 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp56_ = associated;
+#line 1747 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp57_ = copy_to_library;
+#line 1747 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp59_ = prepare_files_job_prepare_file (self, _tmp54_, _tmp55_, _tmp56_, _tmp57_, &_tmp58_);
+#line 1747 "/home/jens/Source/shotwell/src/BatchImport.vala"
_prepared_file_unref0 (prepared_file);
-#line 1727 "/home/jens/Source/shotwell/src/BatchImport.vala"
- prepared_file = _tmp59_;
-#line 1727 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _result_ = _tmp60_;
-#line 1728 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp61_ = _result_;
-#line 1728 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp61_ == IMPORT_RESULT_SUCCESS) {
-#line 13683 "BatchImport.c"
- gint _tmp62_;
- GeeArrayList* _tmp63_;
- PreparedFile* _tmp64_;
-#line 1729 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp62_ = self->prepared_files;
-#line 1729 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->prepared_files = _tmp62_ + 1;
-#line 1730 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp63_ = list;
-#line 1730 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp64_ = prepared_file;
-#line 1730 "/home/jens/Source/shotwell/src/BatchImport.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp63_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp64_);
-#line 13697 "BatchImport.c"
+#line 1747 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ prepared_file = _tmp58_;
+#line 1747 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _result_ = _tmp59_;
+#line 1748 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp60_ = _result_;
+#line 1748 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp60_ == IMPORT_RESULT_SUCCESS) {
+#line 14389 "BatchImport.c"
+ gint _tmp61_;
+ GeeArrayList* _tmp62_;
+ PreparedFile* _tmp63_;
+#line 1749 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp61_ = self->prepared_files;
+#line 1749 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->prepared_files = _tmp61_ + 1;
+#line 1750 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp62_ = list;
+#line 1750 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp63_ = prepared_file;
+#line 1750 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp62_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp63_);
+#line 14403 "BatchImport.c"
} else {
- BatchImportJob* _tmp65_;
- GFile* _tmp66_;
- BatchImportJob* _tmp67_;
+ BatchImportJob* _tmp64_;
+ GFile* _tmp65_;
+ BatchImportJob* _tmp66_;
+ gchar* _tmp67_;
gchar* _tmp68_;
- gchar* _tmp69_;
- GFile* _tmp70_;
+ GFile* _tmp69_;
+ gchar* _tmp70_;
gchar* _tmp71_;
- gchar* _tmp72_;
- ImportResult _tmp73_;
-#line 1732 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp65_ = job;
-#line 1732 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp66_ = file;
-#line 1732 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp67_ = job;
-#line 1732 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp68_ = batch_import_job_get_source_identifier (_tmp67_);
-#line 1732 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp69_ = _tmp68_;
-#line 1732 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp70_ = file;
-#line 1732 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp71_ = g_file_get_path (_tmp70_);
-#line 1732 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp72_ = _tmp71_;
-#line 1732 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp73_ = _result_;
-#line 1732 "/home/jens/Source/shotwell/src/BatchImport.vala"
- background_import_job_report_failure (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob), _tmp65_, _tmp66_, _tmp69_, _tmp72_, _tmp73_);
-#line 1732 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp72_);
-#line 1732 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp69_);
-#line 13732 "BatchImport.c"
+ ImportResult _tmp72_;
+#line 1752 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp64_ = job;
+#line 1752 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp65_ = file;
+#line 1752 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp66_ = job;
+#line 1752 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp67_ = batch_import_job_get_source_identifier (_tmp66_);
+#line 1752 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp68_ = _tmp67_;
+#line 1752 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp69_ = file;
+#line 1752 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp70_ = g_file_get_path (_tmp69_);
+#line 1752 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp71_ = _tmp70_;
+#line 1752 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp72_ = _result_;
+#line 1752 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ background_import_job_report_failure (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob), _tmp64_, _tmp65_, _tmp68_, _tmp71_, _tmp72_);
+#line 1752 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_tmp71_);
+#line 1752 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_tmp68_);
+#line 14438 "BatchImport.c"
}
-#line 1736 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp75_ = list;
-#line 1736 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp76_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp75_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 1736 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp77_ = _tmp76_;
-#line 1736 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp77_ >= BATCH_IMPORT_REPORT_EVERY_N_PREPARED_FILES) {
-#line 1736 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp74_ = TRUE;
-#line 13744 "BatchImport.c"
+#line 1756 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp74_ = list;
+#line 1756 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp75_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp74_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
+#line 1756 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp76_ = _tmp75_;
+#line 1756 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp76_ >= BATCH_IMPORT_REPORT_EVERY_N_PREPARED_FILES) {
+#line 1756 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp73_ = TRUE;
+#line 14450 "BatchImport.c"
} else {
- gboolean _tmp78_ = FALSE;
- GTimer* _tmp79_;
- gdouble _tmp80_;
-#line 1737 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp79_ = timer;
-#line 1737 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp80_ = g_timer_elapsed (_tmp79_, NULL);
-#line 1737 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if ((_tmp80_ * 1000.0) > ((gdouble) BATCH_IMPORT_REPORT_PREPARED_FILES_EVERY_N_MSEC)) {
-#line 13755 "BatchImport.c"
- GeeArrayList* _tmp81_;
+ gboolean _tmp77_ = FALSE;
+ GTimer* _tmp78_;
+ gdouble _tmp79_;
+#line 1757 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp78_ = timer;
+#line 1757 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp79_ = g_timer_elapsed (_tmp78_, NULL);
+#line 1757 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if ((_tmp79_ * 1000.0) > ((gdouble) BATCH_IMPORT_REPORT_PREPARED_FILES_EVERY_N_MSEC)) {
+#line 14461 "BatchImport.c"
+ GeeArrayList* _tmp80_;
+ gint _tmp81_;
gint _tmp82_;
- gint _tmp83_;
-#line 1737 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp81_ = list;
-#line 1737 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp82_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp81_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 1737 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp83_ = _tmp82_;
-#line 1737 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp78_ = _tmp83_ > 0;
-#line 13767 "BatchImport.c"
+#line 1757 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp80_ = list;
+#line 1757 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp81_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp80_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
+#line 1757 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp82_ = _tmp81_;
+#line 1757 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp77_ = _tmp82_ > 0;
+#line 14473 "BatchImport.c"
} else {
-#line 1737 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp78_ = FALSE;
-#line 13771 "BatchImport.c"
+#line 1757 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp77_ = FALSE;
+#line 14477 "BatchImport.c"
}
-#line 1737 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp74_ = _tmp78_;
-#line 13775 "BatchImport.c"
+#line 1757 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp73_ = _tmp77_;
+#line 14481 "BatchImport.c"
}
-#line 1736 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp74_) {
-#line 13779 "BatchImport.c"
+#line 1756 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp73_) {
+#line 14485 "BatchImport.c"
PreparedFileCluster* cluster = NULL;
- GeeArrayList* _tmp84_;
- PreparedFileCluster* _tmp85_;
- GeeArrayList* _tmp86_;
- NotificationCallback _tmp87_;
- void* _tmp87__target;
- PreparedFileCluster* _tmp88_;
- GTimer* _tmp89_;
-#line 1741 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp84_ = list;
-#line 1741 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp85_ = prepared_file_cluster_new (_tmp84_);
-#line 1741 "/home/jens/Source/shotwell/src/BatchImport.vala"
- cluster = _tmp85_;
-#line 1742 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp86_ = gee_array_list_new (TYPE_PREPARED_FILE, (GBoxedCopyFunc) prepared_file_ref, (GDestroyNotify) prepared_file_unref, NULL, NULL, NULL);
-#line 1742 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ GeeArrayList* _tmp83_;
+ PreparedFileCluster* _tmp84_;
+ GeeArrayList* _tmp85_;
+ NotificationCallback _tmp86_;
+ void* _tmp86__target;
+ PreparedFileCluster* _tmp87_;
+ GTimer* _tmp88_;
+#line 1761 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp83_ = list;
+#line 1761 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp84_ = prepared_file_cluster_new (_tmp83_);
+#line 1761 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ cluster = _tmp84_;
+#line 1762 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp85_ = gee_array_list_new (TYPE_PREPARED_FILE, (GBoxedCopyFunc) prepared_file_ref, (GDestroyNotify) prepared_file_unref, NULL, NULL, NULL);
+#line 1762 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (list);
-#line 1742 "/home/jens/Source/shotwell/src/BatchImport.vala"
- list = _tmp86_;
-#line 1743 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp87_ = self->priv->notification;
-#line 1743 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp87__target = self->priv->notification_target;
-#line 1743 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp88_ = cluster;
-#line 1743 "/home/jens/Source/shotwell/src/BatchImport.vala"
- background_job_notify (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_JOB, BackgroundJob), _tmp87_, _tmp87__target, G_TYPE_CHECK_INSTANCE_CAST (_tmp88_, TYPE_NOTIFICATION_OBJECT, NotificationObject));
-#line 1744 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp89_ = timer;
-#line 1744 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_timer_start (_tmp89_);
-#line 1736 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1762 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ list = _tmp85_;
+#line 1763 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp86_ = self->priv->notification;
+#line 1763 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp86__target = self->priv->notification_target;
+#line 1763 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp87_ = cluster;
+#line 1763 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ background_job_notify (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_JOB, BackgroundJob), _tmp86_, _tmp86__target, G_TYPE_CHECK_INSTANCE_CAST (_tmp87_, TYPE_NOTIFICATION_OBJECT, NotificationObject));
+#line 1764 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp88_ = timer;
+#line 1764 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ g_timer_start (_tmp88_);
+#line 1756 "/home/jens/Source/shotwell/src/BatchImport.vala"
_notification_object_unref0 (cluster);
-#line 13814 "BatchImport.c"
+#line 14520 "BatchImport.c"
}
-#line 1702 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala"
_prepared_file_unref0 (prepared_file);
-#line 1702 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (associated);
-#line 1702 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (file);
-#line 1702 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala"
_batch_import_job_unref0 (job);
-#line 1702 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala"
_file_to_prepare_unref0 (file_to_prepare);
-#line 13826 "BatchImport.c"
+#line 14532 "BatchImport.c"
}
-#line 1702 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (_file_to_prepare_list);
-#line 13830 "BatchImport.c"
+#line 14536 "BatchImport.c"
}
-#line 1748 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp90_ = list;
-#line 1748 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp91_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp90_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 1748 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp92_ = _tmp91_;
-#line 1748 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp92_ > 0) {
-#line 13840 "BatchImport.c"
+#line 1768 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp89_ = list;
+#line 1768 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp90_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp89_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
+#line 1768 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp91_ = _tmp90_;
+#line 1768 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp91_ > 0) {
+#line 14546 "BatchImport.c"
ImportResult _result_ = 0;
- ImportResult _tmp93_;
- ImportResult _tmp94_;
-#line 1749 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp93_ = background_import_job_abort_check (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob));
-#line 1749 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _result_ = _tmp93_;
-#line 1750 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp94_ = _result_;
-#line 1750 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp94_ == IMPORT_RESULT_SUCCESS) {
-#line 13852 "BatchImport.c"
- NotificationCallback _tmp95_;
- void* _tmp95__target;
- GeeArrayList* _tmp96_;
- PreparedFileCluster* _tmp97_;
- PreparedFileCluster* _tmp98_;
-#line 1751 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp95_ = self->priv->notification;
-#line 1751 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp95__target = self->priv->notification_target;
-#line 1751 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp96_ = list;
-#line 1751 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp97_ = prepared_file_cluster_new (_tmp96_);
-#line 1751 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp98_ = _tmp97_;
-#line 1751 "/home/jens/Source/shotwell/src/BatchImport.vala"
- background_job_notify (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_JOB, BackgroundJob), _tmp95_, _tmp95__target, G_TYPE_CHECK_INSTANCE_CAST (_tmp98_, TYPE_NOTIFICATION_OBJECT, NotificationObject));
-#line 1751 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _notification_object_unref0 (_tmp98_);
-#line 13872 "BatchImport.c"
+ ImportResult _tmp92_;
+#line 1769 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _result_ = background_import_job_abort_check (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob));
+#line 1770 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp92_ = _result_;
+#line 1770 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp92_ == IMPORT_RESULT_SUCCESS) {
+#line 14555 "BatchImport.c"
+ NotificationCallback _tmp93_;
+ void* _tmp93__target;
+ GeeArrayList* _tmp94_;
+ PreparedFileCluster* _tmp95_;
+ PreparedFileCluster* _tmp96_;
+#line 1771 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp93_ = self->priv->notification;
+#line 1771 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp93__target = self->priv->notification_target;
+#line 1771 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp94_ = list;
+#line 1771 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp95_ = prepared_file_cluster_new (_tmp94_);
+#line 1771 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp96_ = _tmp95_;
+#line 1771 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ background_job_notify (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_JOB, BackgroundJob), _tmp93_, _tmp93__target, G_TYPE_CHECK_INSTANCE_CAST (_tmp96_, TYPE_NOTIFICATION_OBJECT, NotificationObject));
+#line 1771 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _notification_object_unref0 (_tmp96_);
+#line 14575 "BatchImport.c"
} else {
+ gint _tmp97_;
+ GeeArrayList* _tmp98_;
gint _tmp99_;
- GeeArrayList* _tmp100_;
+ gint _tmp100_;
gint _tmp101_;
- gint _tmp102_;
+ GeeArrayList* _tmp102_;
gint _tmp103_;
- GeeArrayList* _tmp104_;
- gint _tmp105_;
- gint _tmp106_;
-#line 1754 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp99_ = self->prepared_files;
-#line 1754 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp100_ = list;
-#line 1754 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp101_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp100_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 1754 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp102_ = _tmp101_;
-#line 1754 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _vala_assert (_tmp99_ >= _tmp102_, "prepared_files >= list.size");
-#line 1755 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp103_ = self->prepared_files;
-#line 1755 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp104_ = list;
-#line 1755 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp105_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp104_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 1755 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp106_ = _tmp105_;
-#line 1755 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->prepared_files = _tmp103_ - _tmp106_;
-#line 13902 "BatchImport.c"
+ gint _tmp104_;
+#line 1774 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp97_ = self->prepared_files;
+#line 1774 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp98_ = list;
+#line 1774 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp99_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp98_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
+#line 1774 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp100_ = _tmp99_;
+#line 1774 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _vala_assert (_tmp97_ >= _tmp100_, "prepared_files >= list.size");
+#line 1775 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp101_ = self->prepared_files;
+#line 1775 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp102_ = list;
+#line 1775 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp103_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp102_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
+#line 1775 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp104_ = _tmp103_;
+#line 1775 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->prepared_files = _tmp101_ - _tmp104_;
+#line 14605 "BatchImport.c"
{
GeeArrayList* _prepared_file_list = NULL;
- GeeArrayList* _tmp107_;
- GeeArrayList* _tmp108_;
+ GeeArrayList* _tmp105_;
+ GeeArrayList* _tmp106_;
gint _prepared_file_size = 0;
- GeeArrayList* _tmp109_;
- gint _tmp110_;
- gint _tmp111_;
+ GeeArrayList* _tmp107_;
+ gint _tmp108_;
+ gint _tmp109_;
gint _prepared_file_index = 0;
-#line 1757 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp107_ = list;
-#line 1757 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp108_ = _g_object_ref0 (_tmp107_);
-#line 1757 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _prepared_file_list = _tmp108_;
-#line 1757 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp109_ = _prepared_file_list;
-#line 1757 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp110_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp109_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 1757 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp111_ = _tmp110_;
-#line 1757 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _prepared_file_size = _tmp111_;
-#line 1757 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp105_ = list;
+#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp106_ = _g_object_ref0 (_tmp105_);
+#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _prepared_file_list = _tmp106_;
+#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp107_ = _prepared_file_list;
+#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp108_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp107_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
+#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp109_ = _tmp108_;
+#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _prepared_file_size = _tmp109_;
+#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala"
_prepared_file_index = -1;
-#line 1757 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala"
while (TRUE) {
-#line 13930 "BatchImport.c"
+#line 14633 "BatchImport.c"
+ gint _tmp110_;
+ gint _tmp111_;
gint _tmp112_;
- gint _tmp113_;
- gint _tmp114_;
PreparedFile* prepared_file = NULL;
- GeeArrayList* _tmp115_;
- gint _tmp116_;
- gpointer _tmp117_;
+ GeeArrayList* _tmp113_;
+ gint _tmp114_;
+ gpointer _tmp115_;
+ PreparedFile* _tmp116_;
+ BatchImportJob* _tmp117_;
PreparedFile* _tmp118_;
- BatchImportJob* _tmp119_;
+ GFile* _tmp119_;
PreparedFile* _tmp120_;
- GFile* _tmp121_;
- PreparedFile* _tmp122_;
- BatchImportJob* _tmp123_;
- gchar* _tmp124_;
- gchar* _tmp125_;
- PreparedFile* _tmp126_;
- GFile* _tmp127_;
- gchar* _tmp128_;
- gchar* _tmp129_;
- ImportResult _tmp130_;
-#line 1757 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp112_ = _prepared_file_index;
-#line 1757 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _prepared_file_index = _tmp112_ + 1;
-#line 1757 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp113_ = _prepared_file_index;
-#line 1757 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp114_ = _prepared_file_size;
-#line 1757 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!(_tmp113_ < _tmp114_)) {
-#line 1757 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ BatchImportJob* _tmp121_;
+ gchar* _tmp122_;
+ gchar* _tmp123_;
+ PreparedFile* _tmp124_;
+ GFile* _tmp125_;
+ gchar* _tmp126_;
+ gchar* _tmp127_;
+ ImportResult _tmp128_;
+#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp110_ = _prepared_file_index;
+#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _prepared_file_index = _tmp110_ + 1;
+#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp111_ = _prepared_file_index;
+#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp112_ = _prepared_file_size;
+#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (!(_tmp111_ < _tmp112_)) {
+#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala"
break;
-#line 13963 "BatchImport.c"
+#line 14666 "BatchImport.c"
}
-#line 1757 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp115_ = _prepared_file_list;
-#line 1757 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp116_ = _prepared_file_index;
-#line 1757 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp117_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp115_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp116_);
-#line 1757 "/home/jens/Source/shotwell/src/BatchImport.vala"
- prepared_file = (PreparedFile*) _tmp117_;
-#line 1758 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp113_ = _prepared_file_list;
+#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp114_ = _prepared_file_index;
+#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp115_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp113_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp114_);
+#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ prepared_file = (PreparedFile*) _tmp115_;
+#line 1778 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp116_ = prepared_file;
+#line 1778 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp117_ = _tmp116_->job;
+#line 1778 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp118_ = prepared_file;
-#line 1758 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp119_ = _tmp118_->job;
-#line 1758 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1778 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp119_ = _tmp118_->file;
+#line 1778 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp120_ = prepared_file;
-#line 1758 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp121_ = _tmp120_->file;
-#line 1758 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp122_ = prepared_file;
-#line 1758 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp123_ = _tmp122_->job;
-#line 1758 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp124_ = batch_import_job_get_source_identifier (_tmp123_);
-#line 1758 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp125_ = _tmp124_;
-#line 1758 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp126_ = prepared_file;
-#line 1758 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp127_ = _tmp126_->file;
-#line 1758 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp128_ = g_file_get_path (_tmp127_);
-#line 1758 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp129_ = _tmp128_;
-#line 1758 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp130_ = _result_;
-#line 1758 "/home/jens/Source/shotwell/src/BatchImport.vala"
- background_import_job_report_failure (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob), _tmp119_, _tmp121_, _tmp125_, _tmp129_, _tmp130_);
-#line 1758 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp129_);
-#line 1758 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp125_);
-#line 1757 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1778 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp121_ = _tmp120_->job;
+#line 1778 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp122_ = batch_import_job_get_source_identifier (_tmp121_);
+#line 1778 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp123_ = _tmp122_;
+#line 1778 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp124_ = prepared_file;
+#line 1778 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp125_ = _tmp124_->file;
+#line 1778 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp126_ = g_file_get_path (_tmp125_);
+#line 1778 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp127_ = _tmp126_;
+#line 1778 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp128_ = _result_;
+#line 1778 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ background_import_job_report_failure (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob), _tmp117_, _tmp119_, _tmp123_, _tmp127_, _tmp128_);
+#line 1778 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_tmp127_);
+#line 1778 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_tmp123_);
+#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala"
_prepared_file_unref0 (prepared_file);
-#line 14007 "BatchImport.c"
+#line 14710 "BatchImport.c"
}
-#line 1757 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (_prepared_file_list);
-#line 14011 "BatchImport.c"
+#line 14714 "BatchImport.c"
}
}
}
-#line 1698 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1718 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (list);
-#line 1698 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1718 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_timer_destroy0 (timer);
-#line 14019 "BatchImport.c"
+#line 14722 "BatchImport.c"
}
-static gboolean prepare_files_job_create_file (PrepareFilesJob* self, BatchImportJob* job, GFile* * file, gboolean* copy_to_library) {
+static gboolean
+prepare_files_job_create_file (PrepareFilesJob* self,
+ BatchImportJob* job,
+ GFile* * file,
+ gboolean* copy_to_library)
+{
GFile* _vala_file = NULL;
gboolean _vala_copy_to_library = FALSE;
gboolean result = FALSE;
GError * _inner_error_ = NULL;
-#line 1767 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1787 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (IS_PREPARE_FILES_JOB (self), FALSE);
-#line 1767 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1787 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (IS_BATCH_IMPORT_JOB (job), FALSE);
-#line 14032 "BatchImport.c"
+#line 14740 "BatchImport.c"
{
gboolean _tmp0_ = FALSE;
- BatchImportJob* _tmp1_;
- GFile* _tmp2_ = NULL;
- gboolean _tmp3_ = FALSE;
- gboolean _tmp4_;
-#line 1769 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = job;
-#line 1769 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = batch_import_job_prepare (_tmp1_, &_tmp2_, &_tmp3_, &_inner_error_);
-#line 1769 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ GFile* _tmp1_ = NULL;
+ gboolean _tmp2_ = FALSE;
+ gboolean _tmp3_;
+#line 1789 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp3_ = batch_import_job_prepare (job, &_tmp1_, &_tmp2_, &_inner_error_);
+#line 1789 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (_vala_file);
-#line 1769 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _vala_file = _tmp2_;
-#line 1769 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _vala_copy_to_library = _tmp3_;
-#line 1769 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = _tmp4_;
-#line 1769 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1789 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _vala_file = _tmp1_;
+#line 1789 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _vala_copy_to_library = _tmp2_;
+#line 1789 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp0_ = _tmp3_;
+#line 1789 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 14053 "BatchImport.c"
- goto __catch417_g_error;
+#line 14758 "BatchImport.c"
+ goto __catch429_g_error;
}
-#line 1769 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1789 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (!_tmp0_) {
-#line 14058 "BatchImport.c"
- BatchImportJob* _tmp5_;
- BatchImportJob* _tmp6_;
+#line 14763 "BatchImport.c"
+ gchar* _tmp4_;
+ gchar* _tmp5_;
+ gchar* _tmp6_;
gchar* _tmp7_;
- gchar* _tmp8_;
- BatchImportJob* _tmp9_;
- gchar* _tmp10_;
- gchar* _tmp11_;
-#line 1770 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = job;
-#line 1770 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = job;
-#line 1770 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = batch_import_job_get_source_identifier (_tmp6_);
-#line 1770 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = _tmp7_;
-#line 1770 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = job;
-#line 1770 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = batch_import_job_get_dest_identifier (_tmp9_);
-#line 1770 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp11_ = _tmp10_;
-#line 1770 "/home/jens/Source/shotwell/src/BatchImport.vala"
- background_import_job_report_failure (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob), _tmp5_, NULL, _tmp8_, _tmp11_, IMPORT_RESULT_FILE_ERROR);
-#line 1770 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp11_);
-#line 1770 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp8_);
-#line 1773 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1790 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp4_ = batch_import_job_get_source_identifier (job);
+#line 1790 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp5_ = _tmp4_;
+#line 1790 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp6_ = batch_import_job_get_dest_identifier (job);
+#line 1790 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp7_ = _tmp6_;
+#line 1790 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ background_import_job_report_failure (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob), job, NULL, _tmp5_, _tmp7_, IMPORT_RESULT_FILE_ERROR);
+#line 1790 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_tmp7_);
+#line 1790 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_tmp5_);
+#line 1793 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = FALSE;
-#line 1773 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1793 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (file) {
-#line 1773 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1793 "/home/jens/Source/shotwell/src/BatchImport.vala"
*file = _vala_file;
-#line 14092 "BatchImport.c"
+#line 14788 "BatchImport.c"
} else {
-#line 1773 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1793 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (_vala_file);
-#line 14096 "BatchImport.c"
+#line 14792 "BatchImport.c"
}
-#line 1773 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1793 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (copy_to_library) {
-#line 1773 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1793 "/home/jens/Source/shotwell/src/BatchImport.vala"
*copy_to_library = _vala_copy_to_library;
-#line 14102 "BatchImport.c"
+#line 14798 "BatchImport.c"
}
-#line 1773 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1793 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 14106 "BatchImport.c"
+#line 14802 "BatchImport.c"
}
}
- goto __finally417;
- __catch417_g_error:
+ goto __finally429;
+ __catch429_g_error:
{
GError* err = NULL;
- BatchImportJob* _tmp12_;
- BatchImportJob* _tmp13_;
- gchar* _tmp14_;
- gchar* _tmp15_;
- BatchImportJob* _tmp16_;
- gchar* _tmp17_;
- gchar* _tmp18_;
- GError* _tmp19_;
-#line 1768 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ gchar* _tmp8_;
+ gchar* _tmp9_;
+ gchar* _tmp10_;
+ gchar* _tmp11_;
+ GError* _tmp12_;
+#line 1788 "/home/jens/Source/shotwell/src/BatchImport.vala"
err = _inner_error_;
-#line 1768 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1788 "/home/jens/Source/shotwell/src/BatchImport.vala"
_inner_error_ = NULL;
-#line 1776 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp12_ = job;
-#line 1776 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp13_ = job;
-#line 1776 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp14_ = batch_import_job_get_source_identifier (_tmp13_);
-#line 1776 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp15_ = _tmp14_;
-#line 1776 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp16_ = job;
-#line 1776 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp17_ = batch_import_job_get_dest_identifier (_tmp16_);
-#line 1776 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp18_ = _tmp17_;
-#line 1776 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp19_ = err;
-#line 1776 "/home/jens/Source/shotwell/src/BatchImport.vala"
- background_import_job_report_error (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob), _tmp12_, NULL, _tmp15_, _tmp18_, _tmp19_, IMPORT_RESULT_FILE_ERROR);
-#line 1776 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp18_);
-#line 1776 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp15_);
-#line 1779 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1796 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp8_ = batch_import_job_get_source_identifier (job);
+#line 1796 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp9_ = _tmp8_;
+#line 1796 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp10_ = batch_import_job_get_dest_identifier (job);
+#line 1796 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp11_ = _tmp10_;
+#line 1796 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp12_ = err;
+#line 1796 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ background_import_job_report_error (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob), job, NULL, _tmp9_, _tmp11_, _tmp12_, IMPORT_RESULT_FILE_ERROR);
+#line 1796 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_tmp11_);
+#line 1796 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_tmp9_);
+#line 1799 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = FALSE;
-#line 1779 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1799 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_error_free0 (err);
-#line 1779 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1799 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (file) {
-#line 1779 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1799 "/home/jens/Source/shotwell/src/BatchImport.vala"
*file = _vala_file;
-#line 14155 "BatchImport.c"
+#line 14842 "BatchImport.c"
} else {
-#line 1779 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1799 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (_vala_file);
-#line 14159 "BatchImport.c"
+#line 14846 "BatchImport.c"
}
-#line 1779 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1799 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (copy_to_library) {
-#line 1779 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1799 "/home/jens/Source/shotwell/src/BatchImport.vala"
*copy_to_library = _vala_copy_to_library;
-#line 14165 "BatchImport.c"
+#line 14852 "BatchImport.c"
}
-#line 1779 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1799 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 14169 "BatchImport.c"
+#line 14856 "BatchImport.c"
}
- __finally417:
-#line 1768 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ __finally429:
+#line 1788 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 14174 "BatchImport.c"
- gboolean _tmp20_ = FALSE;
-#line 1768 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 14861 "BatchImport.c"
+ gboolean _tmp13_ = FALSE;
+#line 1788 "/home/jens/Source/shotwell/src/BatchImport.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 1768 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1788 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_clear_error (&_inner_error_);
-#line 1768 "/home/jens/Source/shotwell/src/BatchImport.vala"
- return _tmp20_;
-#line 14182 "BatchImport.c"
+#line 1788 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ return _tmp13_;
+#line 14869 "BatchImport.c"
}
-#line 1781 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1801 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = TRUE;
-#line 1781 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1801 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (file) {
-#line 1781 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1801 "/home/jens/Source/shotwell/src/BatchImport.vala"
*file = _vala_file;
-#line 14190 "BatchImport.c"
+#line 14877 "BatchImport.c"
} else {
-#line 1781 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1801 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (_vala_file);
-#line 14194 "BatchImport.c"
+#line 14881 "BatchImport.c"
}
-#line 1781 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1801 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (copy_to_library) {
-#line 1781 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1801 "/home/jens/Source/shotwell/src/BatchImport.vala"
*copy_to_library = _vala_copy_to_library;
-#line 14200 "BatchImport.c"
+#line 14887 "BatchImport.c"
}
-#line 1781 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1801 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 14204 "BatchImport.c"
+#line 14891 "BatchImport.c"
}
-static ImportResult prepare_files_job_prepare_file (PrepareFilesJob* self, BatchImportJob* job, GFile* file, GFile* associated_file, gboolean copy_to_library, PreparedFile* * prepared_file) {
+static ImportResult
+prepare_files_job_prepare_file (PrepareFilesJob* self,
+ BatchImportJob* job,
+ GFile* file,
+ GFile* associated_file,
+ gboolean copy_to_library,
+ PreparedFile* * prepared_file)
+{
PreparedFile* _vala_prepared_file = NULL;
ImportResult result = 0;
gboolean is_video = FALSE;
- GFile* _tmp0_;
+ gboolean _tmp0_ = FALSE;
gboolean _tmp1_;
gboolean _tmp2_ = FALSE;
gboolean _tmp3_;
- gboolean _tmp6_ = FALSE;
- gboolean _tmp7_;
- gint _tmp10_;
- gint _tmp11_;
- gint _tmp14_;
+ gint _tmp4_;
+ gint _tmp5_;
+ gint _tmp8_;
gchar* exif_only_md5 = NULL;
gchar* thumbnail_md5 = NULL;
gchar* full_md5 = NULL;
PhotoFileFormat file_format = 0;
- GFile* _tmp28_;
- PhotoFileFormat _tmp29_;
- gboolean _tmp30_;
+ gboolean _tmp19_;
guint64 filesize = 0ULL;
gboolean is_in_library_dir = FALSE;
- GFile* _tmp82_;
- GFile* _tmp83_;
- gboolean _tmp84_;
- gboolean _tmp85_ = FALSE;
- gboolean _tmp86_;
- BatchImportJob* _tmp88_;
- GFile* _tmp89_;
- GFile* _tmp90_;
- BatchImportJob* _tmp91_;
- gchar* _tmp92_;
- gchar* _tmp93_;
- BatchImportJob* _tmp94_;
- gchar* _tmp95_;
- gchar* _tmp96_;
- const gchar* _tmp97_;
- const gchar* _tmp98_;
- const gchar* _tmp99_;
- PhotoFileFormat _tmp100_;
- guint64 _tmp101_;
- gboolean _tmp102_;
- PreparedFile* _tmp103_;
+ GFile* _tmp50_;
+ gboolean _tmp51_ = FALSE;
+ gchar* _tmp53_;
+ gchar* _tmp54_;
+ gchar* _tmp55_;
+ gchar* _tmp56_;
+ const gchar* _tmp57_;
+ const gchar* _tmp58_;
+ const gchar* _tmp59_;
+ PhotoFileFormat _tmp60_;
+ guint64 _tmp61_;
+ gboolean _tmp62_;
+ PreparedFile* _tmp63_;
GError * _inner_error_ = NULL;
-#line 1784 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1804 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (IS_PREPARE_FILES_JOB (self), 0);
-#line 1784 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1804 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (IS_BATCH_IMPORT_JOB (job), 0);
-#line 1784 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1804 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (G_IS_FILE (file), 0);
-#line 1784 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1804 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail ((associated_file == NULL) || G_IS_FILE (associated_file), 0);
-#line 1786 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1806 "/home/jens/Source/shotwell/src/BatchImport.vala"
_prepared_file_unref0 (_vala_prepared_file);
-#line 1786 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1806 "/home/jens/Source/shotwell/src/BatchImport.vala"
_vala_prepared_file = NULL;
-#line 1788 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = file;
-#line 1788 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = video_reader_is_supported_video_file (_tmp0_);
-#line 1788 "/home/jens/Source/shotwell/src/BatchImport.vala"
- is_video = _tmp1_;
-#line 1790 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = is_video;
-#line 1790 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!_tmp3_) {
-#line 14274 "BatchImport.c"
- GFile* _tmp4_;
- gboolean _tmp5_;
-#line 1790 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = file;
-#line 1790 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = photo_is_file_image (_tmp4_);
-#line 1790 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = !_tmp5_;
-#line 14283 "BatchImport.c"
+#line 1808 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ is_video = video_reader_is_supported_video_file (file);
+#line 1810 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp1_ = is_video;
+#line 1810 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (!_tmp1_) {
+#line 1810 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp0_ = !photo_is_file_image (file);
+#line 14954 "BatchImport.c"
} else {
-#line 1790 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = FALSE;
-#line 14287 "BatchImport.c"
+#line 1810 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp0_ = FALSE;
+#line 14958 "BatchImport.c"
}
-#line 1790 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp2_) {
-#line 1791 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1810 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp0_) {
+#line 1811 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = IMPORT_RESULT_NOT_AN_IMAGE;
-#line 1791 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1811 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (prepared_file) {
-#line 1791 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1811 "/home/jens/Source/shotwell/src/BatchImport.vala"
*prepared_file = _vala_prepared_file;
-#line 14297 "BatchImport.c"
+#line 14968 "BatchImport.c"
} else {
-#line 1791 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1811 "/home/jens/Source/shotwell/src/BatchImport.vala"
_prepared_file_unref0 (_vala_prepared_file);
-#line 14301 "BatchImport.c"
+#line 14972 "BatchImport.c"
}
-#line 1791 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1811 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 14305 "BatchImport.c"
+#line 14976 "BatchImport.c"
}
-#line 1793 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = is_video;
-#line 1793 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!_tmp7_) {
-#line 14311 "BatchImport.c"
- GFile* _tmp8_;
- gboolean _tmp9_;
-#line 1793 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = file;
-#line 1793 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = photo_file_format_is_file_supported (_tmp8_);
-#line 1793 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = !_tmp9_;
-#line 14320 "BatchImport.c"
+#line 1813 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp3_ = is_video;
+#line 1813 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (!_tmp3_) {
+#line 1813 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp2_ = !photo_file_format_is_file_supported (file);
+#line 14984 "BatchImport.c"
} else {
-#line 1793 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = FALSE;
-#line 14324 "BatchImport.c"
+#line 1813 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp2_ = FALSE;
+#line 14988 "BatchImport.c"
}
-#line 1793 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp6_) {
-#line 1794 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1813 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp2_) {
+#line 1814 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = IMPORT_RESULT_UNSUPPORTED_FORMAT;
-#line 1794 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1814 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (prepared_file) {
-#line 1794 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1814 "/home/jens/Source/shotwell/src/BatchImport.vala"
*prepared_file = _vala_prepared_file;
-#line 14334 "BatchImport.c"
+#line 14998 "BatchImport.c"
} else {
-#line 1794 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1814 "/home/jens/Source/shotwell/src/BatchImport.vala"
_prepared_file_unref0 (_vala_prepared_file);
-#line 14338 "BatchImport.c"
+#line 15002 "BatchImport.c"
}
-#line 1794 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1814 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 14342 "BatchImport.c"
+#line 15006 "BatchImport.c"
}
-#line 1796 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = self->priv->import_file_count;
-#line 1796 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->import_file_count = _tmp10_ + 1;
-#line 1799 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp11_ = self->priv->fail_every;
-#line 1799 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp11_ > 0) {
-#line 14352 "BatchImport.c"
- gint _tmp12_;
- gint _tmp13_;
-#line 1800 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp12_ = self->priv->import_file_count;
-#line 1800 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp13_ = self->priv->fail_every;
-#line 1800 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if ((_tmp12_ % _tmp13_) == 0) {
-#line 1801 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1816 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp4_ = self->priv->import_file_count;
+#line 1816 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->priv->import_file_count = _tmp4_ + 1;
+#line 1819 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp5_ = self->priv->fail_every;
+#line 1819 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp5_ > 0) {
+#line 15016 "BatchImport.c"
+ gint _tmp6_;
+ gint _tmp7_;
+#line 1820 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp6_ = self->priv->import_file_count;
+#line 1820 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp7_ = self->priv->fail_every;
+#line 1820 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if ((_tmp6_ % _tmp7_) == 0) {
+#line 1821 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = IMPORT_RESULT_FILE_ERROR;
-#line 1801 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1821 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (prepared_file) {
-#line 1801 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1821 "/home/jens/Source/shotwell/src/BatchImport.vala"
*prepared_file = _vala_prepared_file;
-#line 14367 "BatchImport.c"
+#line 15031 "BatchImport.c"
} else {
-#line 1801 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1821 "/home/jens/Source/shotwell/src/BatchImport.vala"
_prepared_file_unref0 (_vala_prepared_file);
-#line 14371 "BatchImport.c"
+#line 15035 "BatchImport.c"
}
-#line 1801 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1821 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 14375 "BatchImport.c"
+#line 15039 "BatchImport.c"
}
}
-#line 1805 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp14_ = self->priv->skip_every;
-#line 1805 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp14_ > 0) {
-#line 14382 "BatchImport.c"
- gint _tmp15_;
- gint _tmp16_;
-#line 1806 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp15_ = self->priv->import_file_count;
-#line 1806 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp16_ = self->priv->skip_every;
-#line 1806 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if ((_tmp15_ % _tmp16_) == 0) {
-#line 1807 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1825 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp8_ = self->priv->skip_every;
+#line 1825 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp8_ > 0) {
+#line 15046 "BatchImport.c"
+ gint _tmp9_;
+ gint _tmp10_;
+#line 1826 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp9_ = self->priv->import_file_count;
+#line 1826 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp10_ = self->priv->skip_every;
+#line 1826 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if ((_tmp9_ % _tmp10_) == 0) {
+#line 1827 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = IMPORT_RESULT_NOT_A_FILE;
-#line 1807 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1827 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (prepared_file) {
-#line 1807 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1827 "/home/jens/Source/shotwell/src/BatchImport.vala"
*prepared_file = _vala_prepared_file;
-#line 14397 "BatchImport.c"
+#line 15061 "BatchImport.c"
} else {
-#line 1807 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1827 "/home/jens/Source/shotwell/src/BatchImport.vala"
_prepared_file_unref0 (_vala_prepared_file);
-#line 14401 "BatchImport.c"
+#line 15065 "BatchImport.c"
}
-#line 1807 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1827 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 14405 "BatchImport.c"
+#line 15069 "BatchImport.c"
}
}
-#line 1810 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1830 "/home/jens/Source/shotwell/src/BatchImport.vala"
exif_only_md5 = NULL;
-#line 1811 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1831 "/home/jens/Source/shotwell/src/BatchImport.vala"
thumbnail_md5 = NULL;
-#line 1812 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1832 "/home/jens/Source/shotwell/src/BatchImport.vala"
full_md5 = NULL;
-#line 14414 "BatchImport.c"
+#line 15078 "BatchImport.c"
{
- gchar* _tmp17_ = NULL;
- GFile* _tmp18_;
- gchar* _tmp19_;
- gchar* _tmp20_;
-#line 1815 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp18_ = file;
-#line 1815 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp19_ = md5_file (_tmp18_, &_inner_error_);
-#line 1815 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp17_ = _tmp19_;
-#line 1815 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ gchar* _tmp11_ = NULL;
+ gchar* _tmp12_;
+ gchar* _tmp13_;
+#line 1835 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp12_ = md5_file (file, &_inner_error_);
+#line 1835 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp11_ = _tmp12_;
+#line 1835 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 14428 "BatchImport.c"
- goto __catch418_g_error;
+#line 15089 "BatchImport.c"
+ goto __catch430_g_error;
}
-#line 1815 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp20_ = _tmp17_;
-#line 1815 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp17_ = NULL;
-#line 1815 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1835 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp13_ = _tmp11_;
+#line 1835 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp11_ = NULL;
+#line 1835 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (full_md5);
-#line 1815 "/home/jens/Source/shotwell/src/BatchImport.vala"
- full_md5 = _tmp20_;
-#line 1814 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp17_);
-#line 14441 "BatchImport.c"
+#line 1835 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ full_md5 = _tmp13_;
+#line 1834 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_tmp11_);
+#line 15102 "BatchImport.c"
}
- goto __finally418;
- __catch418_g_error:
+ goto __finally430;
+ __catch430_g_error:
{
GError* err = NULL;
- GFile* _tmp21_;
- gchar* _tmp22_;
- gchar* _tmp23_;
- GError* _tmp24_;
- const gchar* _tmp25_;
- GError* _tmp26_;
- ImportResult _tmp27_;
-#line 1814 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ gchar* _tmp14_;
+ gchar* _tmp15_;
+ GError* _tmp16_;
+ const gchar* _tmp17_;
+ GError* _tmp18_;
+#line 1834 "/home/jens/Source/shotwell/src/BatchImport.vala"
err = _inner_error_;
-#line 1814 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1834 "/home/jens/Source/shotwell/src/BatchImport.vala"
_inner_error_ = NULL;
-#line 1820 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp21_ = file;
-#line 1820 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp22_ = g_file_get_path (_tmp21_);
-#line 1820 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp23_ = _tmp22_;
-#line 1820 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp24_ = err;
-#line 1820 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp25_ = _tmp24_->message;
-#line 1820 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_warning ("BatchImport.vala:1820: Unable to perform MD5 checksum on file %s: %s", _tmp23_, _tmp25_);
-#line 1820 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp23_);
-#line 1823 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp26_ = err;
-#line 1823 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp27_ = import_result_convert_error (_tmp26_, IMPORT_RESULT_FILE_ERROR);
-#line 1823 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = _tmp27_;
-#line 1823 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1840 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp14_ = g_file_get_path (file);
+#line 1840 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp15_ = _tmp14_;
+#line 1840 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp16_ = err;
+#line 1840 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp17_ = _tmp16_->message;
+#line 1840 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ g_warning ("BatchImport.vala:1840: Unable to perform MD5 checksum on file %s: %s", _tmp15_, _tmp17_);
+#line 1840 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_tmp15_);
+#line 1843 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp18_ = err;
+#line 1843 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ result = import_result_convert_error (_tmp18_, IMPORT_RESULT_FILE_ERROR);
+#line 1843 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_error_free0 (err);
-#line 1823 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1843 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (full_md5);
-#line 1823 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1843 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (thumbnail_md5);
-#line 1823 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1843 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (exif_only_md5);
-#line 1823 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1843 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (prepared_file) {
-#line 1823 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1843 "/home/jens/Source/shotwell/src/BatchImport.vala"
*prepared_file = _vala_prepared_file;
-#line 14490 "BatchImport.c"
+#line 15145 "BatchImport.c"
} else {
-#line 1823 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1843 "/home/jens/Source/shotwell/src/BatchImport.vala"
_prepared_file_unref0 (_vala_prepared_file);
-#line 14494 "BatchImport.c"
+#line 15149 "BatchImport.c"
}
-#line 1823 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1843 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 14498 "BatchImport.c"
+#line 15153 "BatchImport.c"
}
- __finally418:
-#line 1814 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ __finally430:
+#line 1834 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1814 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1834 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (full_md5);
-#line 1814 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1834 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (thumbnail_md5);
-#line 1814 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1834 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (exif_only_md5);
-#line 1814 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1834 "/home/jens/Source/shotwell/src/BatchImport.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 1814 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1834 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_clear_error (&_inner_error_);
-#line 1814 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1834 "/home/jens/Source/shotwell/src/BatchImport.vala"
return 0;
-#line 14515 "BatchImport.c"
+#line 15170 "BatchImport.c"
}
-#line 1828 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp28_ = file;
-#line 1828 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp29_ = photo_file_format_get_by_file_extension (_tmp28_);
-#line 1828 "/home/jens/Source/shotwell/src/BatchImport.vala"
- file_format = _tmp29_;
-#line 1829 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp30_ = is_video;
-#line 1829 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (!_tmp30_) {
-#line 14527 "BatchImport.c"
- PhotoFileFormat _tmp31_;
+#line 1848 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ file_format = photo_file_format_get_by_file_extension (file);
+#line 1849 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp19_ = is_video;
+#line 1849 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (!_tmp19_) {
+#line 15178 "BatchImport.c"
+ PhotoFileFormat _tmp20_;
PhotoFileReader* reader = NULL;
- PhotoFileFormat _tmp35_;
- GFile* _tmp36_;
- gchar* _tmp37_;
- gchar* _tmp38_;
- PhotoFileReader* _tmp39_;
- PhotoFileReader* _tmp40_;
+ PhotoFileFormat _tmp23_;
+ gchar* _tmp24_;
+ gchar* _tmp25_;
+ PhotoFileReader* _tmp26_;
+ PhotoFileReader* _tmp27_;
PhotoMetadata* metadata = NULL;
- PhotoMetadata* _tmp50_;
-#line 1830 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp31_ = file_format;
-#line 1830 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp31_ == PHOTO_FILE_FORMAT_UNKNOWN) {
-#line 14542 "BatchImport.c"
- GFile* _tmp32_;
- gchar* _tmp33_;
- gchar* _tmp34_;
-#line 1831 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp32_ = file;
-#line 1831 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp33_ = g_file_get_path (_tmp32_);
-#line 1831 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp34_ = _tmp33_;
-#line 1831 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_warning ("BatchImport.vala:1831: Skipping %s: unrecognized file extension", _tmp34_);
-#line 1831 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp34_);
-#line 1833 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ PhotoMetadata* _tmp36_;
+#line 1850 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp20_ = file_format;
+#line 1850 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp20_ == PHOTO_FILE_FORMAT_UNKNOWN) {
+#line 15192 "BatchImport.c"
+ gchar* _tmp21_;
+ gchar* _tmp22_;
+#line 1851 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp21_ = g_file_get_path (file);
+#line 1851 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp22_ = _tmp21_;
+#line 1851 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ g_warning ("BatchImport.vala:1851: Skipping %s: unrecognized file extension", _tmp22_);
+#line 1851 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_tmp22_);
+#line 1853 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = IMPORT_RESULT_UNSUPPORTED_FORMAT;
-#line 1833 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1853 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (full_md5);
-#line 1833 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1853 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (thumbnail_md5);
-#line 1833 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1853 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (exif_only_md5);
-#line 1833 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1853 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (prepared_file) {
-#line 1833 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1853 "/home/jens/Source/shotwell/src/BatchImport.vala"
*prepared_file = _vala_prepared_file;
-#line 14568 "BatchImport.c"
+#line 15215 "BatchImport.c"
} else {
-#line 1833 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1853 "/home/jens/Source/shotwell/src/BatchImport.vala"
_prepared_file_unref0 (_vala_prepared_file);
-#line 14572 "BatchImport.c"
+#line 15219 "BatchImport.c"
}
-#line 1833 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1853 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 14576 "BatchImport.c"
+#line 15223 "BatchImport.c"
}
-#line 1835 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp35_ = file_format;
-#line 1835 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp36_ = file;
-#line 1835 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp37_ = g_file_get_path (_tmp36_);
-#line 1835 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp38_ = _tmp37_;
-#line 1835 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp39_ = photo_file_format_create_reader (_tmp35_, _tmp38_);
-#line 1835 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp40_ = _tmp39_;
-#line 1835 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp38_);
-#line 1835 "/home/jens/Source/shotwell/src/BatchImport.vala"
- reader = _tmp40_;
-#line 1836 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1855 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp23_ = file_format;
+#line 1855 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp24_ = g_file_get_path (file);
+#line 1855 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp25_ = _tmp24_;
+#line 1855 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp26_ = photo_file_format_create_reader (_tmp23_, _tmp25_);
+#line 1855 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp27_ = _tmp26_;
+#line 1855 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_tmp25_);
+#line 1855 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ reader = _tmp27_;
+#line 1856 "/home/jens/Source/shotwell/src/BatchImport.vala"
metadata = NULL;
-#line 14596 "BatchImport.c"
+#line 15241 "BatchImport.c"
{
- PhotoMetadata* _tmp41_ = NULL;
- PhotoFileReader* _tmp42_;
- PhotoMetadata* _tmp43_;
- PhotoMetadata* _tmp44_;
-#line 1838 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp42_ = reader;
-#line 1838 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp43_ = photo_file_reader_read_metadata (_tmp42_, &_inner_error_);
-#line 1838 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp41_ = _tmp43_;
-#line 1838 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ PhotoMetadata* _tmp28_ = NULL;
+ PhotoFileReader* _tmp29_;
+ PhotoMetadata* _tmp30_;
+ PhotoMetadata* _tmp31_;
+#line 1858 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp29_ = reader;
+#line 1858 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp30_ = photo_file_reader_read_metadata (_tmp29_, &_inner_error_);
+#line 1858 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp28_ = _tmp30_;
+#line 1858 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 14610 "BatchImport.c"
- goto __catch419_g_error;
+#line 15255 "BatchImport.c"
+ goto __catch431_g_error;
}
-#line 1838 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp44_ = _tmp41_;
-#line 1838 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp41_ = NULL;
-#line 1838 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1858 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp31_ = _tmp28_;
+#line 1858 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp28_ = NULL;
+#line 1858 "/home/jens/Source/shotwell/src/BatchImport.vala"
_media_metadata_unref0 (metadata);
-#line 1838 "/home/jens/Source/shotwell/src/BatchImport.vala"
- metadata = _tmp44_;
-#line 1837 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _media_metadata_unref0 (_tmp41_);
-#line 14623 "BatchImport.c"
+#line 1858 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ metadata = _tmp31_;
+#line 1857 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _media_metadata_unref0 (_tmp28_);
+#line 15268 "BatchImport.c"
}
- goto __finally419;
- __catch419_g_error:
+ goto __finally431;
+ __catch431_g_error:
{
GError* err = NULL;
- GFile* _tmp45_;
- gchar* _tmp46_;
- gchar* _tmp47_;
- GError* _tmp48_;
- const gchar* _tmp49_;
-#line 1837 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ gchar* _tmp32_;
+ gchar* _tmp33_;
+ GError* _tmp34_;
+ const gchar* _tmp35_;
+#line 1857 "/home/jens/Source/shotwell/src/BatchImport.vala"
err = _inner_error_;
-#line 1837 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1857 "/home/jens/Source/shotwell/src/BatchImport.vala"
_inner_error_ = NULL;
-#line 1840 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp45_ = file;
-#line 1840 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp46_ = g_file_get_path (_tmp45_);
-#line 1840 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp47_ = _tmp46_;
-#line 1840 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp48_ = err;
-#line 1840 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp49_ = _tmp48_->message;
-#line 1840 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_warning ("BatchImport.vala:1840: Unable to read metadata for %s (%s): continuing" \
-" to attempt import", _tmp47_, _tmp49_);
-#line 1840 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp47_);
-#line 1837 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1860 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp32_ = g_file_get_path (file);
+#line 1860 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp33_ = _tmp32_;
+#line 1860 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp34_ = err;
+#line 1860 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp35_ = _tmp34_->message;
+#line 1860 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ g_warning ("BatchImport.vala:1860: Unable to read metadata for %s (%s): continuing" \
+" to attempt import", _tmp33_, _tmp35_);
+#line 1860 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_tmp33_);
+#line 1857 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_error_free0 (err);
-#line 14654 "BatchImport.c"
+#line 15296 "BatchImport.c"
}
- __finally419:
-#line 1837 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ __finally431:
+#line 1857 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1837 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1857 "/home/jens/Source/shotwell/src/BatchImport.vala"
_media_metadata_unref0 (metadata);
-#line 1837 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1857 "/home/jens/Source/shotwell/src/BatchImport.vala"
_photo_file_adapter_unref0 (reader);
-#line 1837 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1857 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (full_md5);
-#line 1837 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1857 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (thumbnail_md5);
-#line 1837 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1857 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (exif_only_md5);
-#line 1837 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1857 "/home/jens/Source/shotwell/src/BatchImport.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 1837 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1857 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_clear_error (&_inner_error_);
-#line 1837 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1857 "/home/jens/Source/shotwell/src/BatchImport.vala"
return 0;
-#line 14675 "BatchImport.c"
+#line 15317 "BatchImport.c"
}
-#line 1844 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp50_ = metadata;
-#line 1844 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp50_ != NULL) {
-#line 14681 "BatchImport.c"
- guint8* flattened_sans_thumbnail = NULL;
- PhotoMetadata* _tmp51_;
- gint _tmp52_;
- guint8* _tmp53_;
- gint flattened_sans_thumbnail_length1;
- gint _flattened_sans_thumbnail_size_;
- gboolean _tmp54_ = FALSE;
- guint8* _tmp55_;
- gint _tmp55__length1;
- guint8* flattened_thumbnail = NULL;
- PhotoMetadata* _tmp60_;
- gint _tmp61_;
- guint8* _tmp62_;
- gint flattened_thumbnail_length1;
- gint _flattened_thumbnail_size_;
- gboolean _tmp63_ = FALSE;
- guint8* _tmp64_;
- gint _tmp64__length1;
-#line 1845 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp51_ = metadata;
-#line 1845 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp53_ = photo_metadata_flatten_exif (_tmp51_, FALSE, &_tmp52_);
-#line 1845 "/home/jens/Source/shotwell/src/BatchImport.vala"
- flattened_sans_thumbnail = _tmp53_;
-#line 1845 "/home/jens/Source/shotwell/src/BatchImport.vala"
- flattened_sans_thumbnail_length1 = _tmp52_;
-#line 1845 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _flattened_sans_thumbnail_size_ = flattened_sans_thumbnail_length1;
-#line 1846 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp55_ = flattened_sans_thumbnail;
-#line 1846 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp55__length1 = flattened_sans_thumbnail_length1;
-#line 1846 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp55_ != NULL) {
-#line 14716 "BatchImport.c"
- guint8* _tmp56_;
- gint _tmp56__length1;
-#line 1846 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp56_ = flattened_sans_thumbnail;
-#line 1846 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp56__length1 = flattened_sans_thumbnail_length1;
-#line 1846 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp54_ = _tmp56__length1 > 0;
-#line 14725 "BatchImport.c"
- } else {
-#line 1846 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp54_ = FALSE;
-#line 14729 "BatchImport.c"
- }
-#line 1846 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp54_) {
-#line 14733 "BatchImport.c"
- guint8* _tmp57_;
- gint _tmp57__length1;
- guint8* _tmp58_;
- gint _tmp58__length1;
- gchar* _tmp59_;
-#line 1847 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp57_ = flattened_sans_thumbnail;
-#line 1847 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp57__length1 = flattened_sans_thumbnail_length1;
-#line 1847 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp58_ = flattened_sans_thumbnail;
-#line 1847 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp58__length1 = flattened_sans_thumbnail_length1;
-#line 1847 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp59_ = md5_binary (_tmp57_, (gsize) _tmp58__length1);
-#line 1847 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (exif_only_md5);
-#line 1847 "/home/jens/Source/shotwell/src/BatchImport.vala"
- exif_only_md5 = _tmp59_;
-#line 14753 "BatchImport.c"
- }
-#line 1849 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp60_ = metadata;
-#line 1849 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp62_ = photo_metadata_flatten_exif_preview (_tmp60_, &_tmp61_);
-#line 1849 "/home/jens/Source/shotwell/src/BatchImport.vala"
- flattened_thumbnail = _tmp62_;
-#line 1849 "/home/jens/Source/shotwell/src/BatchImport.vala"
- flattened_thumbnail_length1 = _tmp61_;
-#line 1849 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _flattened_thumbnail_size_ = flattened_thumbnail_length1;
-#line 1850 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp64_ = flattened_thumbnail;
-#line 1850 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp64__length1 = flattened_thumbnail_length1;
-#line 1850 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp64_ != NULL) {
-#line 14771 "BatchImport.c"
- guint8* _tmp65_;
- gint _tmp65__length1;
-#line 1850 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp65_ = flattened_thumbnail;
-#line 1850 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp65__length1 = flattened_thumbnail_length1;
-#line 1850 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp63_ = _tmp65__length1 > 0;
-#line 14780 "BatchImport.c"
- } else {
-#line 1850 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp63_ = FALSE;
-#line 14784 "BatchImport.c"
- }
-#line 1850 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp63_) {
-#line 14788 "BatchImport.c"
- guint8* _tmp66_;
- gint _tmp66__length1;
- guint8* _tmp67_;
- gint _tmp67__length1;
- gchar* _tmp68_;
-#line 1851 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp66_ = flattened_thumbnail;
-#line 1851 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp66__length1 = flattened_thumbnail_length1;
-#line 1851 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp67_ = flattened_thumbnail;
-#line 1851 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp67__length1 = flattened_thumbnail_length1;
-#line 1851 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp68_ = md5_binary (_tmp66_, (gsize) _tmp67__length1);
-#line 1851 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (thumbnail_md5);
-#line 1851 "/home/jens/Source/shotwell/src/BatchImport.vala"
- thumbnail_md5 = _tmp68_;
-#line 14808 "BatchImport.c"
- }
-#line 1844 "/home/jens/Source/shotwell/src/BatchImport.vala"
- flattened_thumbnail = (g_free (flattened_thumbnail), NULL);
-#line 1844 "/home/jens/Source/shotwell/src/BatchImport.vala"
- flattened_sans_thumbnail = (g_free (flattened_sans_thumbnail), NULL);
-#line 14814 "BatchImport.c"
+#line 1864 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp36_ = metadata;
+#line 1864 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp36_ != NULL) {
+#line 15323 "BatchImport.c"
+ PhotoMetadata* _tmp37_;
+ gchar* _tmp38_;
+ PhotoMetadata* _tmp39_;
+ gchar* _tmp40_;
+#line 1865 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp37_ = metadata;
+#line 1865 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp38_ = photo_metadata_exif_hash (_tmp37_);
+#line 1865 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (exif_only_md5);
+#line 1865 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ exif_only_md5 = _tmp38_;
+#line 1866 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp39_ = metadata;
+#line 1866 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp40_ = photo_metadata_thumbnail_hash (_tmp39_);
+#line 1866 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (thumbnail_md5);
+#line 1866 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ thumbnail_md5 = _tmp40_;
+#line 15344 "BatchImport.c"
}
-#line 1829 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1849 "/home/jens/Source/shotwell/src/BatchImport.vala"
_media_metadata_unref0 (metadata);
-#line 1829 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1849 "/home/jens/Source/shotwell/src/BatchImport.vala"
_photo_file_adapter_unref0 (reader);
-#line 14820 "BatchImport.c"
+#line 15350 "BatchImport.c"
}
-#line 1855 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1870 "/home/jens/Source/shotwell/src/BatchImport.vala"
filesize = (guint64) 0;
-#line 14824 "BatchImport.c"
+#line 15354 "BatchImport.c"
{
- guint64 _tmp69_ = 0ULL;
- GFile* _tmp70_;
- GCancellable* _tmp71_;
- GCancellable* _tmp72_;
- guint64 _tmp73_;
- guint64 _tmp74_;
-#line 1857 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp70_ = file;
-#line 1857 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp71_ = background_job_get_cancellable (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_JOB, BackgroundJob));
-#line 1857 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp72_ = _tmp71_;
-#line 1857 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp73_ = query_total_file_size (_tmp70_, _tmp72_, &_inner_error_);
-#line 1857 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp74_ = _tmp73_;
-#line 1857 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_object_unref0 (_tmp72_);
-#line 1857 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp69_ = _tmp74_;
-#line 1857 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ guint64 _tmp41_ = 0ULL;
+ GCancellable* _tmp42_;
+ GCancellable* _tmp43_;
+ guint64 _tmp44_;
+#line 1872 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp42_ = background_job_get_cancellable (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_JOB, BackgroundJob));
+#line 1872 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp43_ = _tmp42_;
+#line 1872 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp44_ = query_total_file_size (file, _tmp43_, &_inner_error_);
+#line 1872 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_object_unref0 (_tmp43_);
+#line 1872 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp41_ = _tmp44_;
+#line 1872 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 14848 "BatchImport.c"
- goto __catch420_g_error;
+#line 15372 "BatchImport.c"
+ goto __catch432_g_error;
}
-#line 1857 "/home/jens/Source/shotwell/src/BatchImport.vala"
- filesize = _tmp69_;
-#line 14853 "BatchImport.c"
+#line 1872 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ filesize = _tmp41_;
+#line 15377 "BatchImport.c"
}
- goto __finally420;
- __catch420_g_error:
+ goto __finally432;
+ __catch432_g_error:
{
GError* err = NULL;
- GFile* _tmp75_;
- gchar* _tmp76_;
- gchar* _tmp77_;
- GError* _tmp78_;
- const gchar* _tmp79_;
- GError* _tmp80_;
- ImportResult _tmp81_;
-#line 1856 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ gchar* _tmp45_;
+ gchar* _tmp46_;
+ GError* _tmp47_;
+ const gchar* _tmp48_;
+ GError* _tmp49_;
+#line 1871 "/home/jens/Source/shotwell/src/BatchImport.vala"
err = _inner_error_;
-#line 1856 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1871 "/home/jens/Source/shotwell/src/BatchImport.vala"
_inner_error_ = NULL;
-#line 1859 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp75_ = file;
-#line 1859 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp76_ = g_file_get_path (_tmp75_);
-#line 1859 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp77_ = _tmp76_;
-#line 1859 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp78_ = err;
-#line 1859 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp79_ = _tmp78_->message;
-#line 1859 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_warning ("BatchImport.vala:1859: Unable to query file size of %s: %s", _tmp77_, _tmp79_);
-#line 1859 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp77_);
-#line 1861 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp80_ = err;
-#line 1861 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp81_ = import_result_convert_error (_tmp80_, IMPORT_RESULT_FILE_ERROR);
-#line 1861 "/home/jens/Source/shotwell/src/BatchImport.vala"
- result = _tmp81_;
-#line 1861 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1874 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp45_ = g_file_get_path (file);
+#line 1874 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp46_ = _tmp45_;
+#line 1874 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp47_ = err;
+#line 1874 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp48_ = _tmp47_->message;
+#line 1874 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ g_warning ("BatchImport.vala:1874: Unable to query file size of %s: %s", _tmp46_, _tmp48_);
+#line 1874 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_tmp46_);
+#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp49_ = err;
+#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ result = import_result_convert_error (_tmp49_, IMPORT_RESULT_FILE_ERROR);
+#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_error_free0 (err);
-#line 1861 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (full_md5);
-#line 1861 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (thumbnail_md5);
-#line 1861 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (exif_only_md5);
-#line 1861 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (prepared_file) {
-#line 1861 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
*prepared_file = _vala_prepared_file;
-#line 14902 "BatchImport.c"
+#line 15420 "BatchImport.c"
} else {
-#line 1861 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
_prepared_file_unref0 (_vala_prepared_file);
-#line 14906 "BatchImport.c"
+#line 15424 "BatchImport.c"
}
-#line 1861 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 14910 "BatchImport.c"
+#line 15428 "BatchImport.c"
}
- __finally420:
-#line 1856 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ __finally432:
+#line 1871 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1856 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1871 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (full_md5);
-#line 1856 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1871 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (thumbnail_md5);
-#line 1856 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1871 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (exif_only_md5);
-#line 1856 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1871 "/home/jens/Source/shotwell/src/BatchImport.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 1856 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1871 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_clear_error (&_inner_error_);
-#line 1856 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1871 "/home/jens/Source/shotwell/src/BatchImport.vala"
return 0;
-#line 14927 "BatchImport.c"
+#line 15445 "BatchImport.c"
}
-#line 1865 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp82_ = file;
-#line 1865 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp83_ = self->priv->library_dir;
-#line 1865 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp84_ = g_file_has_prefix (_tmp82_, _tmp83_);
-#line 1865 "/home/jens/Source/shotwell/src/BatchImport.vala"
- is_in_library_dir = _tmp84_;
-#line 1869 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp86_ = copy_to_library;
-#line 1869 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp86_) {
-#line 14941 "BatchImport.c"
- gboolean _tmp87_;
-#line 1869 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp87_ = is_in_library_dir;
-#line 1869 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp85_ = !_tmp87_;
-#line 14947 "BatchImport.c"
+#line 1880 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp50_ = self->priv->library_dir;
+#line 1880 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ is_in_library_dir = g_file_has_prefix (file, _tmp50_);
+#line 1884 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (copy_to_library) {
+#line 15453 "BatchImport.c"
+ gboolean _tmp52_;
+#line 1884 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp52_ = is_in_library_dir;
+#line 1884 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp51_ = !_tmp52_;
+#line 15459 "BatchImport.c"
} else {
-#line 1869 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp85_ = FALSE;
-#line 14951 "BatchImport.c"
+#line 1884 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp51_ = FALSE;
+#line 15463 "BatchImport.c"
}
-#line 1868 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp88_ = job;
-#line 1868 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp89_ = file;
-#line 1868 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp90_ = associated_file;
-#line 1868 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp91_ = job;
-#line 1868 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp92_ = batch_import_job_get_source_identifier (_tmp91_);
-#line 1868 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp93_ = _tmp92_;
-#line 1868 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp94_ = job;
-#line 1868 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp95_ = batch_import_job_get_dest_identifier (_tmp94_);
-#line 1868 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp96_ = _tmp95_;
-#line 1868 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp97_ = exif_only_md5;
-#line 1868 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp98_ = thumbnail_md5;
-#line 1868 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp99_ = full_md5;
-#line 1868 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp100_ = file_format;
-#line 1868 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp101_ = filesize;
-#line 1868 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp102_ = is_video;
-#line 1868 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp103_ = prepared_file_new (_tmp88_, _tmp89_, _tmp90_, _tmp93_, _tmp96_, _tmp85_, _tmp97_, _tmp98_, _tmp99_, _tmp100_, _tmp101_, _tmp102_);
-#line 1868 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1883 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp53_ = batch_import_job_get_source_identifier (job);
+#line 1883 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp54_ = _tmp53_;
+#line 1883 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp55_ = batch_import_job_get_dest_identifier (job);
+#line 1883 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp56_ = _tmp55_;
+#line 1883 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp57_ = exif_only_md5;
+#line 1883 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp58_ = thumbnail_md5;
+#line 1883 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp59_ = full_md5;
+#line 1883 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp60_ = file_format;
+#line 1883 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp61_ = filesize;
+#line 1883 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp62_ = is_video;
+#line 1883 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp63_ = prepared_file_new (job, file, associated_file, _tmp54_, _tmp56_, _tmp51_, _tmp57_, _tmp58_, _tmp59_, _tmp60_, _tmp61_, _tmp62_);
+#line 1883 "/home/jens/Source/shotwell/src/BatchImport.vala"
_prepared_file_unref0 (_vala_prepared_file);
-#line 1868 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _vala_prepared_file = _tmp103_;
-#line 1868 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp96_);
-#line 1868 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp93_);
-#line 1872 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1883 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _vala_prepared_file = _tmp63_;
+#line 1883 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_tmp56_);
+#line 1883 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_tmp54_);
+#line 1887 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = IMPORT_RESULT_SUCCESS;
-#line 1872 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1887 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (full_md5);
-#line 1872 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1887 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (thumbnail_md5);
-#line 1872 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1887 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (exif_only_md5);
-#line 1872 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1887 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (prepared_file) {
-#line 1872 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1887 "/home/jens/Source/shotwell/src/BatchImport.vala"
*prepared_file = _vala_prepared_file;
-#line 15005 "BatchImport.c"
+#line 15507 "BatchImport.c"
} else {
-#line 1872 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1887 "/home/jens/Source/shotwell/src/BatchImport.vala"
_prepared_file_unref0 (_vala_prepared_file);
-#line 15009 "BatchImport.c"
+#line 15511 "BatchImport.c"
}
-#line 1872 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1887 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 15013 "BatchImport.c"
+#line 15515 "BatchImport.c"
}
-static void prepare_files_job_class_init (PrepareFilesJobClass * klass) {
-#line 1665 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static void
+prepare_files_job_class_init (PrepareFilesJobClass * klass)
+{
+#line 1685 "/home/jens/Source/shotwell/src/BatchImport.vala"
prepare_files_job_parent_class = g_type_class_peek_parent (klass);
-#line 1665 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1685 "/home/jens/Source/shotwell/src/BatchImport.vala"
((BackgroundJobClass *) klass)->finalize = prepare_files_job_finalize;
-#line 1665 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1685 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_type_class_add_private (klass, sizeof (PrepareFilesJobPrivate));
-#line 1665 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1685 "/home/jens/Source/shotwell/src/BatchImport.vala"
((BackgroundJobClass *) klass)->execute = (void (*) (BackgroundJob *)) prepare_files_job_real_execute;
-#line 15026 "BatchImport.c"
+#line 15530 "BatchImport.c"
}
-static void prepare_files_job_instance_init (PrepareFilesJob * self) {
-#line 1665 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static void
+prepare_files_job_instance_init (PrepareFilesJob * self)
+{
+#line 1685 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->priv = PREPARE_FILES_JOB_GET_PRIVATE (self);
-#line 1667 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1687 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->prepared_files = 0;
-#line 1674 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1694 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->priv->import_file_count = 0;
-#line 1675 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1695 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->priv->fail_every = 0;
-#line 1676 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1696 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->priv->skip_every = 0;
-#line 15041 "BatchImport.c"
+#line 15547 "BatchImport.c"
}
-static void prepare_files_job_finalize (BackgroundJob * obj) {
+static void
+prepare_files_job_finalize (BackgroundJob * obj)
+{
PrepareFilesJob * self;
-#line 1665 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1685 "/home/jens/Source/shotwell/src/BatchImport.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PREPARE_FILES_JOB, PrepareFilesJob);
-#line 1669 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1689 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (self->priv->files_to_prepare);
-#line 1671 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1691 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (self->priv->library_dir);
-#line 1665 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1685 "/home/jens/Source/shotwell/src/BatchImport.vala"
BACKGROUND_JOB_CLASS (prepare_files_job_parent_class)->finalize (obj);
-#line 15055 "BatchImport.c"
+#line 15563 "BatchImport.c"
}
-GType prepare_files_job_get_type (void) {
+GType
+prepare_files_job_get_type (void)
+{
static volatile gsize prepare_files_job_type_id__volatile = 0;
if (g_once_init_enter (&prepare_files_job_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (PrepareFilesJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) prepare_files_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PrepareFilesJob), 0, (GInstanceInitFunc) prepare_files_job_instance_init, NULL };
@@ -15075,173 +15585,161 @@ GType prepare_files_job_get_type (void) {
}
-static gpointer _prepared_file_ref0 (gpointer self) {
-#line 1893 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static gpointer
+_prepared_file_ref0 (gpointer self)
+{
+#line 1908 "/home/jens/Source/shotwell/src/BatchImport.vala"
return self ? prepared_file_ref (self) : NULL;
-#line 15074 "BatchImport.c"
+#line 15586 "BatchImport.c"
}
-static gpointer _batch_import_result_ref0 (gpointer self) {
-#line 1894 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static gpointer
+_batch_import_result_ref0 (gpointer self)
+{
+#line 1909 "/home/jens/Source/shotwell/src/BatchImport.vala"
return self ? batch_import_result_ref (self) : NULL;
-#line 15081 "BatchImport.c"
+#line 15595 "BatchImport.c"
}
-static gpointer _video_import_params_ref0 (gpointer self) {
-#line 1895 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static gpointer
+_video_import_params_ref0 (gpointer self)
+{
+#line 1910 "/home/jens/Source/shotwell/src/BatchImport.vala"
return self ? video_import_params_ref (self) : NULL;
-#line 15088 "BatchImport.c"
+#line 15604 "BatchImport.c"
}
-static gpointer _photo_import_params_ref0 (gpointer self) {
-#line 1896 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static gpointer
+_photo_import_params_ref0 (gpointer self)
+{
+#line 1911 "/home/jens/Source/shotwell/src/BatchImport.vala"
return self ? photo_import_params_ref (self) : NULL;
-#line 15095 "BatchImport.c"
+#line 15613 "BatchImport.c"
}
-ReadyForImport* ready_for_import_construct (GType object_type, GFile* final_file, PreparedFile* prepared_file, PhotoImportParams* photo_import_params, VideoImportParams* video_import_params, BatchImportResult* batch_result) {
+ReadyForImport*
+ready_for_import_construct (GType object_type,
+ GFile* final_file,
+ PreparedFile* prepared_file,
+ PhotoImportParams* photo_import_params,
+ VideoImportParams* video_import_params,
+ BatchImportResult* batch_result)
+{
ReadyForImport* self = NULL;
- PreparedFile* _tmp0_;
- gboolean _tmp1_;
- GFile* _tmp8_;
- GFile* _tmp9_;
- PreparedFile* _tmp10_;
- PreparedFile* _tmp11_;
- BatchImportResult* _tmp12_;
- BatchImportResult* _tmp13_;
- VideoImportParams* _tmp14_;
- VideoImportParams* _tmp15_;
- PhotoImportParams* _tmp16_;
- PhotoImportParams* _tmp17_;
- PreparedFile* _tmp18_;
- gboolean _tmp19_;
-#line 1884 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ gboolean _tmp0_;
+ GFile* _tmp3_;
+ PreparedFile* _tmp4_;
+ BatchImportResult* _tmp5_;
+ VideoImportParams* _tmp6_;
+ PhotoImportParams* _tmp7_;
+ gboolean _tmp8_;
+#line 1899 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (G_IS_FILE (final_file), NULL);
-#line 1884 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1899 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (IS_PREPARED_FILE (prepared_file), NULL);
-#line 1884 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1899 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail ((photo_import_params == NULL) || IS_PHOTO_IMPORT_PARAMS (photo_import_params), NULL);
-#line 1884 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1899 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail ((video_import_params == NULL) || IS_VIDEO_IMPORT_PARAMS (video_import_params), NULL);
-#line 1884 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1899 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (IS_BATCH_IMPORT_RESULT (batch_result), NULL);
-#line 1884 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1899 "/home/jens/Source/shotwell/src/BatchImport.vala"
self = (ReadyForImport*) g_type_create_instance (object_type);
-#line 1887 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = prepared_file;
-#line 1887 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = _tmp0_->is_video;
-#line 1887 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp1_) {
-#line 15133 "BatchImport.c"
- gboolean _tmp2_ = FALSE;
- VideoImportParams* _tmp3_;
-#line 1888 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = video_import_params;
-#line 1888 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp3_ != NULL) {
-#line 15140 "BatchImport.c"
- PhotoImportParams* _tmp4_;
-#line 1888 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = photo_import_params;
-#line 1888 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = _tmp4_ == NULL;
-#line 15146 "BatchImport.c"
+#line 1902 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp0_ = prepared_file->is_video;
+#line 1902 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp0_) {
+#line 15649 "BatchImport.c"
+ gboolean _tmp1_ = FALSE;
+#line 1903 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (video_import_params != NULL) {
+#line 1903 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp1_ = photo_import_params == NULL;
+#line 15655 "BatchImport.c"
} else {
-#line 1888 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = FALSE;
-#line 15150 "BatchImport.c"
+#line 1903 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp1_ = FALSE;
+#line 15659 "BatchImport.c"
}
-#line 1888 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _vala_assert (_tmp2_, "(video_import_params != null) && (photo_import_params == null)");
-#line 15154 "BatchImport.c"
+#line 1903 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _vala_assert (_tmp1_, "(video_import_params != null) && (photo_import_params == null)");
+#line 15663 "BatchImport.c"
} else {
- gboolean _tmp5_ = FALSE;
- VideoImportParams* _tmp6_;
-#line 1890 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = video_import_params;
-#line 1890 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp6_ == NULL) {
-#line 15162 "BatchImport.c"
- PhotoImportParams* _tmp7_;
-#line 1890 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = photo_import_params;
-#line 1890 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = _tmp7_ != NULL;
-#line 15168 "BatchImport.c"
+ gboolean _tmp2_ = FALSE;
+#line 1905 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (video_import_params == NULL) {
+#line 1905 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp2_ = photo_import_params != NULL;
+#line 15670 "BatchImport.c"
} else {
-#line 1890 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = FALSE;
-#line 15172 "BatchImport.c"
+#line 1905 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp2_ = FALSE;
+#line 15674 "BatchImport.c"
}
-#line 1890 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _vala_assert (_tmp5_, "(video_import_params == null) && (photo_import_params != null)");
-#line 15176 "BatchImport.c"
+#line 1905 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _vala_assert (_tmp2_, "(video_import_params == null) && (photo_import_params != null)");
+#line 15678 "BatchImport.c"
}
-#line 1892 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = final_file;
-#line 1892 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = _g_object_ref0 (_tmp8_);
-#line 1892 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1907 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp3_ = _g_object_ref0 (final_file);
+#line 1907 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (self->final_file);
-#line 1892 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->final_file = _tmp9_;
-#line 1893 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = prepared_file;
-#line 1893 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp11_ = _prepared_file_ref0 (_tmp10_);
-#line 1893 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1907 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->final_file = _tmp3_;
+#line 1908 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp4_ = _prepared_file_ref0 (prepared_file);
+#line 1908 "/home/jens/Source/shotwell/src/BatchImport.vala"
_prepared_file_unref0 (self->prepared_file);
-#line 1893 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->prepared_file = _tmp11_;
-#line 1894 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp12_ = batch_result;
-#line 1894 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp13_ = _batch_import_result_ref0 (_tmp12_);
-#line 1894 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1908 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->prepared_file = _tmp4_;
+#line 1909 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp5_ = _batch_import_result_ref0 (batch_result);
+#line 1909 "/home/jens/Source/shotwell/src/BatchImport.vala"
_batch_import_result_unref0 (self->batch_result);
-#line 1894 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->batch_result = _tmp13_;
-#line 1895 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp14_ = video_import_params;
-#line 1895 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp15_ = _video_import_params_ref0 (_tmp14_);
-#line 1895 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1909 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->batch_result = _tmp5_;
+#line 1910 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp6_ = _video_import_params_ref0 (video_import_params);
+#line 1910 "/home/jens/Source/shotwell/src/BatchImport.vala"
_video_import_params_unref0 (self->video_import_params);
-#line 1895 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->video_import_params = _tmp15_;
-#line 1896 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp16_ = photo_import_params;
-#line 1896 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp17_ = _photo_import_params_ref0 (_tmp16_);
-#line 1896 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1910 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->video_import_params = _tmp6_;
+#line 1911 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp7_ = _photo_import_params_ref0 (photo_import_params);
+#line 1911 "/home/jens/Source/shotwell/src/BatchImport.vala"
_photo_import_params_unref0 (self->photo_import_params);
-#line 1896 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->photo_import_params = _tmp17_;
-#line 1897 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp18_ = prepared_file;
-#line 1897 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp19_ = _tmp18_->is_video;
-#line 1897 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->is_video = _tmp19_;
-#line 1884 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1911 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->photo_import_params = _tmp7_;
+#line 1912 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp8_ = prepared_file->is_video;
+#line 1912 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->is_video = _tmp8_;
+#line 1899 "/home/jens/Source/shotwell/src/BatchImport.vala"
return self;
-#line 15226 "BatchImport.c"
+#line 15716 "BatchImport.c"
}
-ReadyForImport* ready_for_import_new (GFile* final_file, PreparedFile* prepared_file, PhotoImportParams* photo_import_params, VideoImportParams* video_import_params, BatchImportResult* batch_result) {
-#line 1884 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ReadyForImport*
+ready_for_import_new (GFile* final_file,
+ PreparedFile* prepared_file,
+ PhotoImportParams* photo_import_params,
+ VideoImportParams* video_import_params,
+ BatchImportResult* batch_result)
+{
+#line 1899 "/home/jens/Source/shotwell/src/BatchImport.vala"
return ready_for_import_construct (TYPE_READY_FOR_IMPORT, final_file, prepared_file, photo_import_params, video_import_params, batch_result);
-#line 15233 "BatchImport.c"
+#line 15729 "BatchImport.c"
}
-BatchImportResult* ready_for_import_abort (ReadyForImport* self) {
+BatchImportResult*
+ready_for_import_abort (ReadyForImport* self)
+{
BatchImportResult* result = NULL;
gboolean _tmp0_ = FALSE;
GFile* _tmp1_;
@@ -15261,61 +15759,61 @@ BatchImportResult* ready_for_import_abort (ReadyForImport* self) {
BatchImportResult* _tmp27_;
BatchImportResult* _tmp28_;
GError * _inner_error_ = NULL;
-#line 1900 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1915 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (IS_READY_FOR_IMPORT (self), NULL);
-#line 1902 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1917 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp1_ = self->final_file;
-#line 1902 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1917 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (_tmp1_ != NULL) {
-#line 15263 "BatchImport.c"
+#line 15761 "BatchImport.c"
GFile* _tmp2_;
PreparedFile* _tmp3_;
GFile* _tmp4_;
-#line 1902 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1917 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp2_ = self->final_file;
-#line 1902 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1917 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp3_ = self->prepared_file;
-#line 1902 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1917 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp4_ = _tmp3_->file;
-#line 1902 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1917 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp0_ = _tmp2_ != _tmp4_;
-#line 15275 "BatchImport.c"
+#line 15773 "BatchImport.c"
} else {
-#line 1902 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1917 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp0_ = FALSE;
-#line 15279 "BatchImport.c"
+#line 15777 "BatchImport.c"
}
-#line 1902 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1917 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (_tmp0_) {
-#line 15283 "BatchImport.c"
+#line 15781 "BatchImport.c"
GFile* _tmp5_;
gchar* _tmp6_;
gchar* _tmp7_;
-#line 1903 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1918 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp5_ = self->final_file;
-#line 1903 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1918 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp6_ = g_file_get_path (_tmp5_);
-#line 1903 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1918 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp7_ = _tmp6_;
-#line 1903 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_debug ("BatchImport.vala:1903: Deleting aborted import copy %s", _tmp7_);
-#line 1903 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1918 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ g_debug ("BatchImport.vala:1918: Deleting aborted import copy %s", _tmp7_);
+#line 1918 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (_tmp7_);
-#line 15297 "BatchImport.c"
+#line 15795 "BatchImport.c"
{
GFile* _tmp8_;
-#line 1905 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1920 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp8_ = self->final_file;
-#line 1905 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1920 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_file_delete (_tmp8_, NULL, &_inner_error_);
-#line 1905 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1920 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 15306 "BatchImport.c"
- goto __catch421_g_error;
+#line 15804 "BatchImport.c"
+ goto __catch433_g_error;
}
}
- goto __finally421;
- __catch421_g_error:
+ goto __finally433;
+ __catch433_g_error:
{
GError* err = NULL;
GFile* _tmp9_;
@@ -15323,353 +15821,398 @@ BatchImportResult* ready_for_import_abort (ReadyForImport* self) {
gchar* _tmp11_;
GError* _tmp12_;
const gchar* _tmp13_;
-#line 1904 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1919 "/home/jens/Source/shotwell/src/BatchImport.vala"
err = _inner_error_;
-#line 1904 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1919 "/home/jens/Source/shotwell/src/BatchImport.vala"
_inner_error_ = NULL;
-#line 1907 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1922 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp9_ = self->final_file;
-#line 1907 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1922 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp10_ = g_file_get_path (_tmp9_);
-#line 1907 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1922 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp11_ = _tmp10_;
-#line 1907 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1922 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp12_ = err;
-#line 1907 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1922 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp13_ = _tmp12_->message;
-#line 1907 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_warning ("BatchImport.vala:1907: Unable to delete copy of imported file (aborted" \
+#line 1922 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ g_warning ("BatchImport.vala:1922: Unable to delete copy of imported file (aborted" \
" import) %s: %s", _tmp11_, _tmp13_);
-#line 1907 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1922 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (_tmp11_);
-#line 1904 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1919 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_error_free0 (err);
-#line 15339 "BatchImport.c"
+#line 15837 "BatchImport.c"
}
- __finally421:
-#line 1904 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ __finally433:
+#line 1919 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1904 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1919 "/home/jens/Source/shotwell/src/BatchImport.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 1904 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1919 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_clear_error (&_inner_error_);
-#line 1904 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1919 "/home/jens/Source/shotwell/src/BatchImport.vala"
return NULL;
-#line 15350 "BatchImport.c"
+#line 15848 "BatchImport.c"
}
}
-#line 1912 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1927 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp14_ = self->prepared_file;
-#line 1912 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1927 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp15_ = _tmp14_->job;
-#line 1912 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1927 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp16_ = self->prepared_file;
-#line 1912 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1927 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp17_ = _tmp16_->file;
-#line 1912 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1927 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp18_ = self->prepared_file;
-#line 1912 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1927 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp19_ = _tmp18_->job;
-#line 1912 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1927 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp20_ = batch_import_job_get_source_identifier (_tmp19_);
-#line 1912 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1927 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp21_ = _tmp20_;
-#line 1912 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1927 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp22_ = self->prepared_file;
-#line 1912 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1927 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp23_ = _tmp22_->job;
-#line 1912 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1927 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp24_ = batch_import_job_get_dest_identifier (_tmp23_);
-#line 1912 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1927 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp25_ = _tmp24_;
-#line 1912 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1927 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp26_ = batch_import_result_new (_tmp15_, _tmp17_, _tmp21_, _tmp25_, NULL, IMPORT_RESULT_USER_ABORT);
-#line 1912 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1927 "/home/jens/Source/shotwell/src/BatchImport.vala"
_batch_import_result_unref0 (self->batch_result);
-#line 1912 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1927 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->batch_result = _tmp26_;
-#line 1912 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1927 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (_tmp25_);
-#line 1912 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1927 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (_tmp21_);
-#line 1916 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1931 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp27_ = self->batch_result;
-#line 1916 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1931 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp28_ = _batch_import_result_ref0 (_tmp27_);
-#line 1916 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1931 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = _tmp28_;
-#line 1916 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1931 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 15395 "BatchImport.c"
+#line 15893 "BatchImport.c"
}
-static gpointer _thumbnails_ref0 (gpointer self) {
-#line 1920 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static gpointer
+_thumbnails_ref0 (gpointer self)
+{
+#line 1935 "/home/jens/Source/shotwell/src/BatchImport.vala"
return self ? thumbnails_ref (self) : NULL;
-#line 15402 "BatchImport.c"
+#line 15902 "BatchImport.c"
}
-Thumbnails* ready_for_import_get_thumbnails (ReadyForImport* self) {
+Thumbnails*
+ready_for_import_get_thumbnails (ReadyForImport* self)
+{
Thumbnails* result = NULL;
Thumbnails* _tmp0_ = NULL;
PhotoImportParams* _tmp1_;
Thumbnails* _tmp6_;
-#line 1919 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1934 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (IS_READY_FOR_IMPORT (self), NULL);
-#line 1920 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1935 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp1_ = self->photo_import_params;
-#line 1920 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1935 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (_tmp1_ != NULL) {
-#line 15417 "BatchImport.c"
+#line 15919 "BatchImport.c"
PhotoImportParams* _tmp2_;
Thumbnails* _tmp3_;
-#line 1920 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1935 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp2_ = self->photo_import_params;
-#line 1920 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1935 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp3_ = _tmp2_->thumbnails;
-#line 1920 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1935 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp0_ = _tmp3_;
-#line 15426 "BatchImport.c"
+#line 15928 "BatchImport.c"
} else {
VideoImportParams* _tmp4_;
Thumbnails* _tmp5_;
-#line 1921 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1936 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp4_ = self->video_import_params;
-#line 1921 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1936 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp5_ = _tmp4_->thumbnails;
-#line 1921 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1936 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp0_ = _tmp5_;
-#line 15436 "BatchImport.c"
+#line 15938 "BatchImport.c"
}
-#line 1920 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1935 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp6_ = _thumbnails_ref0 (_tmp0_);
-#line 1920 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1935 "/home/jens/Source/shotwell/src/BatchImport.vala"
result = _tmp6_;
-#line 1920 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1935 "/home/jens/Source/shotwell/src/BatchImport.vala"
return result;
-#line 15444 "BatchImport.c"
+#line 15946 "BatchImport.c"
}
-static void value_ready_for_import_init (GValue* value) {
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static void
+value_ready_for_import_init (GValue* value)
+{
+#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
value->data[0].v_pointer = NULL;
-#line 15451 "BatchImport.c"
+#line 15955 "BatchImport.c"
}
-static void value_ready_for_import_free_value (GValue* value) {
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static void
+value_ready_for_import_free_value (GValue* value)
+{
+#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (value->data[0].v_pointer) {
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
ready_for_import_unref (value->data[0].v_pointer);
-#line 15460 "BatchImport.c"
+#line 15966 "BatchImport.c"
}
}
-static void value_ready_for_import_copy_value (const GValue* src_value, GValue* dest_value) {
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static void
+value_ready_for_import_copy_value (const GValue* src_value,
+ GValue* dest_value)
+{
+#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (src_value->data[0].v_pointer) {
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
dest_value->data[0].v_pointer = ready_for_import_ref (src_value->data[0].v_pointer);
-#line 15470 "BatchImport.c"
+#line 15979 "BatchImport.c"
} else {
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
dest_value->data[0].v_pointer = NULL;
-#line 15474 "BatchImport.c"
+#line 15983 "BatchImport.c"
}
}
-static gpointer value_ready_for_import_peek_pointer (const GValue* value) {
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static gpointer
+value_ready_for_import_peek_pointer (const GValue* value)
+{
+#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
return value->data[0].v_pointer;
-#line 15482 "BatchImport.c"
+#line 15993 "BatchImport.c"
}
-static gchar* value_ready_for_import_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static gchar*
+value_ready_for_import_collect_value (GValue* value,
+ guint n_collect_values,
+ GTypeCValue* collect_values,
+ guint collect_flags)
+{
+#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (collect_values[0].v_pointer) {
-#line 15489 "BatchImport.c"
+#line 16005 "BatchImport.c"
ReadyForImport * object;
object = collect_values[0].v_pointer;
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (object->parent_instance.g_class == NULL) {
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 15496 "BatchImport.c"
+#line 16012 "BatchImport.c"
} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 15500 "BatchImport.c"
+#line 16016 "BatchImport.c"
}
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
value->data[0].v_pointer = ready_for_import_ref (object);
-#line 15504 "BatchImport.c"
+#line 16020 "BatchImport.c"
} else {
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
value->data[0].v_pointer = NULL;
-#line 15508 "BatchImport.c"
+#line 16024 "BatchImport.c"
}
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
return NULL;
-#line 15512 "BatchImport.c"
+#line 16028 "BatchImport.c"
}
-static gchar* value_ready_for_import_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+static gchar*
+value_ready_for_import_lcopy_value (const GValue* value,
+ guint n_collect_values,
+ GTypeCValue* collect_values,
+ guint collect_flags)
+{
ReadyForImport ** object_p;
object_p = collect_values[0].v_pointer;
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (!object_p) {
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 15523 "BatchImport.c"
+#line 16044 "BatchImport.c"
}
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (!value->data[0].v_pointer) {
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
*object_p = NULL;
-#line 15529 "BatchImport.c"
+#line 16050 "BatchImport.c"
} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
*object_p = value->data[0].v_pointer;
-#line 15533 "BatchImport.c"
+#line 16054 "BatchImport.c"
} else {
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
*object_p = ready_for_import_ref (value->data[0].v_pointer);
-#line 15537 "BatchImport.c"
+#line 16058 "BatchImport.c"
}
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
return NULL;
-#line 15541 "BatchImport.c"
+#line 16062 "BatchImport.c"
}
-GParamSpec* param_spec_ready_for_import (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+GParamSpec*
+param_spec_ready_for_import (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags)
+{
ParamSpecReadyForImport* spec;
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (g_type_is_a (object_type, TYPE_READY_FOR_IMPORT), NULL);
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
G_PARAM_SPEC (spec)->value_type = object_type;
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
return G_PARAM_SPEC (spec);
-#line 15555 "BatchImport.c"
+#line 16082 "BatchImport.c"
}
-gpointer value_get_ready_for_import (const GValue* value) {
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+gpointer
+value_get_ready_for_import (const GValue* value)
+{
+#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_READY_FOR_IMPORT), NULL);
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
return value->data[0].v_pointer;
-#line 15564 "BatchImport.c"
+#line 16093 "BatchImport.c"
}
-void value_set_ready_for_import (GValue* value, gpointer v_object) {
+void
+value_set_ready_for_import (GValue* value,
+ gpointer v_object)
+{
ReadyForImport * old;
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_READY_FOR_IMPORT));
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
old = value->data[0].v_pointer;
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (v_object) {
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_READY_FOR_IMPORT));
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
value->data[0].v_pointer = v_object;
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
ready_for_import_ref (value->data[0].v_pointer);
-#line 15584 "BatchImport.c"
+#line 16116 "BatchImport.c"
} else {
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
value->data[0].v_pointer = NULL;
-#line 15588 "BatchImport.c"
+#line 16120 "BatchImport.c"
}
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (old) {
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
ready_for_import_unref (old);
-#line 15594 "BatchImport.c"
+#line 16126 "BatchImport.c"
}
}
-void value_take_ready_for_import (GValue* value, gpointer v_object) {
+void
+value_take_ready_for_import (GValue* value,
+ gpointer v_object)
+{
ReadyForImport * old;
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_READY_FOR_IMPORT));
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
old = value->data[0].v_pointer;
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (v_object) {
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_READY_FOR_IMPORT));
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
value->data[0].v_pointer = v_object;
-#line 15613 "BatchImport.c"
+#line 16148 "BatchImport.c"
} else {
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
value->data[0].v_pointer = NULL;
-#line 15617 "BatchImport.c"
+#line 16152 "BatchImport.c"
}
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (old) {
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
ready_for_import_unref (old);
-#line 15623 "BatchImport.c"
+#line 16158 "BatchImport.c"
}
}
-static void ready_for_import_class_init (ReadyForImportClass * klass) {
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static void
+ready_for_import_class_init (ReadyForImportClass * klass)
+{
+#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
ready_for_import_parent_class = g_type_class_peek_parent (klass);
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
((ReadyForImportClass *) klass)->finalize = ready_for_import_finalize;
-#line 15633 "BatchImport.c"
+#line 16170 "BatchImport.c"
}
-static void ready_for_import_instance_init (ReadyForImport * self) {
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static void
+ready_for_import_instance_init (ReadyForImport * self)
+{
+#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->ref_count = 1;
-#line 15640 "BatchImport.c"
+#line 16179 "BatchImport.c"
}
-static void ready_for_import_finalize (ReadyForImport * obj) {
+static void
+ready_for_import_finalize (ReadyForImport * obj)
+{
ReadyForImport * self;
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_READY_FOR_IMPORT, ReadyForImport);
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_signal_handlers_destroy (self);
-#line 1877 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1892 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (self->final_file);
-#line 1878 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1893 "/home/jens/Source/shotwell/src/BatchImport.vala"
_prepared_file_unref0 (self->prepared_file);
-#line 1879 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1894 "/home/jens/Source/shotwell/src/BatchImport.vala"
_photo_import_params_unref0 (self->photo_import_params);
-#line 1880 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1895 "/home/jens/Source/shotwell/src/BatchImport.vala"
_video_import_params_unref0 (self->video_import_params);
-#line 1881 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1896 "/home/jens/Source/shotwell/src/BatchImport.vala"
_batch_import_result_unref0 (self->batch_result);
-#line 15660 "BatchImport.c"
+#line 16201 "BatchImport.c"
}
-GType ready_for_import_get_type (void) {
+GType
+ready_for_import_get_type (void)
+{
static volatile gsize ready_for_import_type_id__volatile = 0;
if (g_once_init_enter (&ready_for_import_type_id__volatile)) {
static const GTypeValueTable g_define_type_value_table = { value_ready_for_import_init, value_ready_for_import_free_value, value_ready_for_import_copy_value, value_ready_for_import_peek_pointer, "p", value_ready_for_import_collect_value, "p", value_ready_for_import_lcopy_value };
@@ -15683,92 +16226,96 @@ GType ready_for_import_get_type (void) {
}
-gpointer ready_for_import_ref (gpointer instance) {
+gpointer
+ready_for_import_ref (gpointer instance)
+{
ReadyForImport * self;
self = instance;
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_atomic_int_inc (&self->ref_count);
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
return instance;
-#line 15685 "BatchImport.c"
+#line 16230 "BatchImport.c"
}
-void ready_for_import_unref (gpointer instance) {
+void
+ready_for_import_unref (gpointer instance)
+{
ReadyForImport * self;
self = instance;
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
READY_FOR_IMPORT_GET_CLASS (self)->finalize (self);
-#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_type_free_instance ((GTypeInstance *) self);
-#line 15698 "BatchImport.c"
+#line 16245 "BatchImport.c"
}
}
-PreparedFileImportJob* prepared_file_import_job_construct (GType object_type, BatchImport* owner, PreparedFile* prepared_file, ImportID* import_id, CompletionCallback callback, void* callback_target, GCancellable* cancellable, CancellationCallback cancellation, void* cancellation_target) {
+PreparedFileImportJob*
+prepared_file_import_job_construct (GType object_type,
+ BatchImport* owner,
+ PreparedFile* prepared_file,
+ ImportID* import_id,
+ CompletionCallback callback,
+ void* callback_target,
+ GCancellable* cancellable,
+ CancellationCallback cancellation,
+ void* cancellation_target)
+{
PreparedFileImportJob* self = NULL;
- BatchImport* _tmp0_;
- CompletionCallback _tmp1_;
- void* _tmp1__target;
- GCancellable* _tmp2_;
- CancellationCallback _tmp3_;
- void* _tmp3__target;
- ImportID _tmp4_;
- PreparedFile* _tmp5_;
- PreparedFile* _tmp6_;
-#line 1932 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ ImportID _tmp0_;
+ PreparedFile* _tmp1_;
+#line 1947 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (IS_BATCH_IMPORT (owner), NULL);
-#line 1932 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1947 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (IS_PREPARED_FILE (prepared_file), NULL);
-#line 1932 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1947 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (import_id != NULL, NULL);
-#line 1932 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1947 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (G_IS_CANCELLABLE (cancellable), NULL);
-#line 1934 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = owner;
-#line 1934 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = callback;
-#line 1934 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1__target = callback_target;
-#line 1934 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = cancellable;
-#line 1934 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = cancellation;
-#line 1934 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3__target = cancellation_target;
-#line 1934 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self = (PreparedFileImportJob*) background_job_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, G_TYPE_OBJECT, GObject), _tmp1_, _tmp1__target, _tmp2_, _tmp3_, _tmp3__target, NULL);
-#line 1936 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = *import_id;
-#line 1936 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->priv->import_id = _tmp4_;
-#line 1937 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = prepared_file;
-#line 1937 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = _prepared_file_ref0 (_tmp5_);
-#line 1937 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1949 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self = (PreparedFileImportJob*) background_job_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (owner, G_TYPE_OBJECT, GObject), callback, callback_target, cancellable, cancellation, cancellation_target, NULL);
+#line 1951 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp0_ = *import_id;
+#line 1951 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->priv->import_id = _tmp0_;
+#line 1952 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp1_ = _prepared_file_ref0 (prepared_file);
+#line 1952 "/home/jens/Source/shotwell/src/BatchImport.vala"
_prepared_file_unref0 (self->not_ready);
-#line 1937 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->not_ready = _tmp6_;
-#line 1939 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1952 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->not_ready = _tmp1_;
+#line 1954 "/home/jens/Source/shotwell/src/BatchImport.vala"
background_job_set_completion_priority (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_JOB, BackgroundJob), G_PRIORITY_LOW);
-#line 1932 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1947 "/home/jens/Source/shotwell/src/BatchImport.vala"
return self;
-#line 15752 "BatchImport.c"
+#line 16288 "BatchImport.c"
}
-PreparedFileImportJob* prepared_file_import_job_new (BatchImport* owner, PreparedFile* prepared_file, ImportID* import_id, CompletionCallback callback, void* callback_target, GCancellable* cancellable, CancellationCallback cancellation, void* cancellation_target) {
-#line 1932 "/home/jens/Source/shotwell/src/BatchImport.vala"
+PreparedFileImportJob*
+prepared_file_import_job_new (BatchImport* owner,
+ PreparedFile* prepared_file,
+ ImportID* import_id,
+ CompletionCallback callback,
+ void* callback_target,
+ GCancellable* cancellable,
+ CancellationCallback cancellation,
+ void* cancellation_target)
+{
+#line 1947 "/home/jens/Source/shotwell/src/BatchImport.vala"
return prepared_file_import_job_construct (TYPE_PREPARED_FILE_IMPORT_JOB, owner, prepared_file, import_id, callback, callback_target, cancellable, cancellation, cancellation_target);
-#line 15759 "BatchImport.c"
+#line 16304 "BatchImport.c"
}
-static void prepared_file_import_job_real_execute (BackgroundJob* base) {
+static void
+prepared_file_import_job_real_execute (BackgroundJob* base)
+{
PreparedFileImportJob * self;
PreparedFile* prepared_file = NULL;
PreparedFile* _tmp0_;
@@ -15784,66 +16331,67 @@ static void prepared_file_import_job_real_execute (BackgroundJob* base) {
PreparedFile* _tmp8_;
gboolean _tmp9_;
GFile* _tmp51_;
- gchar* _tmp52_;
- gchar* _tmp53_;
+ GFile* _tmp55_;
+ gchar* _tmp56_;
+ gchar* _tmp57_;
ImportResult _result_ = 0;
VideoImportParams* video_import_params = NULL;
PhotoImportParams* photo_import_params = NULL;
- PreparedFile* _tmp54_;
- gboolean _tmp55_;
- gboolean _tmp82_ = FALSE;
- ImportResult _tmp83_;
+ PreparedFile* _tmp58_;
+ gboolean _tmp59_;
+ gboolean _tmp83_ = FALSE;
+ ImportResult _tmp84_;
BatchImportResult* batch_result = NULL;
- PreparedFile* _tmp96_;
- BatchImportJob* _tmp97_;
- GFile* _tmp98_;
+ PreparedFile* _tmp97_;
+ BatchImportJob* _tmp98_;
GFile* _tmp99_;
- gchar* _tmp100_;
+ GFile* _tmp100_;
gchar* _tmp101_;
- GFile* _tmp102_;
- gchar* _tmp103_;
+ gchar* _tmp102_;
+ GFile* _tmp103_;
gchar* _tmp104_;
- ImportResult _tmp105_;
- BatchImportResult* _tmp106_;
+ gchar* _tmp105_;
+ ImportResult _tmp106_;
BatchImportResult* _tmp107_;
BatchImportResult* _tmp108_;
- ImportResult _tmp109_;
+ BatchImportResult* _tmp109_;
+ ImportResult _tmp110_;
GError * _inner_error_ = NULL;
-#line 1942 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1957 "/home/jens/Source/shotwell/src/BatchImport.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PREPARED_FILE_IMPORT_JOB, PreparedFileImportJob);
-#line 1943 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1958 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp0_ = self->not_ready;
-#line 1943 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1958 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp1_ = _prepared_file_ref0 (_tmp0_);
-#line 1943 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1958 "/home/jens/Source/shotwell/src/BatchImport.vala"
prepared_file = _tmp1_;
-#line 1944 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1959 "/home/jens/Source/shotwell/src/BatchImport.vala"
_prepared_file_unref0 (self->not_ready);
-#line 1944 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1959 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->not_ready = NULL;
-#line 1946 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1961 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp2_ = prepared_file;
-#line 1946 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1961 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp3_ = _tmp2_->file;
-#line 1946 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1961 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp4_ = _g_object_ref0 (_tmp3_);
-#line 1946 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1961 "/home/jens/Source/shotwell/src/BatchImport.vala"
final_file = _tmp4_;
-#line 1947 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1962 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp5_ = prepared_file;
-#line 1947 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1962 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp6_ = _tmp5_->associated_file;
-#line 1947 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1962 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp7_ = _g_object_ref0 (_tmp6_);
-#line 1947 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1962 "/home/jens/Source/shotwell/src/BatchImport.vala"
final_associated_file = _tmp7_;
-#line 1949 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1964 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp8_ = prepared_file;
-#line 1949 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1964 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp9_ = _tmp8_->copy_to_library;
-#line 1949 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1964 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (_tmp9_) {
-#line 15838 "BatchImport.c"
+#line 16386 "BatchImport.c"
{
GFile* _tmp10_ = NULL;
PreparedFile* _tmp11_;
@@ -15852,32 +16400,32 @@ static void prepared_file_import_job_real_execute (BackgroundJob* base) {
GFile* _tmp14_;
GFile* _tmp15_;
GFile* _tmp29_;
-#line 1952 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1967 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp11_ = prepared_file;
-#line 1952 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1967 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp12_ = _tmp11_->file;
-#line 1952 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1967 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp13_ = library_files_duplicate (_tmp12_, NULL, NULL, TRUE, &_inner_error_);
-#line 1952 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1967 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp10_ = _tmp13_;
-#line 1952 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1967 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 15857 "BatchImport.c"
- goto __catch422_g_error;
+#line 16405 "BatchImport.c"
+ goto __catch434_g_error;
}
-#line 1952 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1967 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp14_ = _tmp10_;
-#line 1952 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1967 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp10_ = NULL;
-#line 1952 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1967 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (final_file);
-#line 1952 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1967 "/home/jens/Source/shotwell/src/BatchImport.vala"
final_file = _tmp14_;
-#line 1953 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1968 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp15_ = final_file;
-#line 1953 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1968 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (_tmp15_ == NULL) {
-#line 15872 "BatchImport.c"
+#line 16420 "BatchImport.c"
PreparedFile* _tmp16_;
BatchImportJob* _tmp17_;
PreparedFile* _tmp18_;
@@ -15891,95 +16439,95 @@ static void prepared_file_import_job_real_execute (BackgroundJob* base) {
gchar* _tmp26_;
gchar* _tmp27_;
BatchImportResult* _tmp28_;
-#line 1954 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1969 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp16_ = prepared_file;
-#line 1954 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1969 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp17_ = _tmp16_->job;
-#line 1954 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1969 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp18_ = prepared_file;
-#line 1954 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1969 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp19_ = _tmp18_->file;
-#line 1954 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1969 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp20_ = prepared_file;
-#line 1954 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1969 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp21_ = _tmp20_->file;
-#line 1954 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1969 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp22_ = g_file_get_path (_tmp21_);
-#line 1954 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1969 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp23_ = _tmp22_;
-#line 1954 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1969 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp24_ = prepared_file;
-#line 1954 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1969 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp25_ = _tmp24_->file;
-#line 1954 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1969 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp26_ = g_file_get_path (_tmp25_);
-#line 1954 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1969 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp27_ = _tmp26_;
-#line 1954 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1969 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp28_ = batch_import_result_new (_tmp17_, _tmp19_, _tmp23_, _tmp27_, NULL, IMPORT_RESULT_FILE_ERROR);
-#line 1954 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1969 "/home/jens/Source/shotwell/src/BatchImport.vala"
_batch_import_result_unref0 (self->failed);
-#line 1954 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1969 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->failed = _tmp28_;
-#line 1954 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1969 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (_tmp27_);
-#line 1954 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1969 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (_tmp23_);
-#line 1958 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1973 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (_tmp10_);
-#line 1958 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1973 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (final_associated_file);
-#line 1958 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1973 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (final_file);
-#line 1958 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1973 "/home/jens/Source/shotwell/src/BatchImport.vala"
_prepared_file_unref0 (prepared_file);
-#line 1958 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1973 "/home/jens/Source/shotwell/src/BatchImport.vala"
return;
-#line 15930 "BatchImport.c"
+#line 16478 "BatchImport.c"
}
-#line 1962 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1977 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp29_ = final_associated_file;
-#line 1962 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1977 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (_tmp29_ != NULL) {
-#line 15936 "BatchImport.c"
+#line 16484 "BatchImport.c"
GFile* _tmp30_ = NULL;
PreparedFile* _tmp31_;
GFile* _tmp32_;
GFile* _tmp33_;
GFile* _tmp34_;
-#line 1963 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1978 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp31_ = prepared_file;
-#line 1963 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1978 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp32_ = _tmp31_->associated_file;
-#line 1963 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1978 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp33_ = library_files_duplicate (_tmp32_, NULL, NULL, TRUE, &_inner_error_);
-#line 1963 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1978 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp30_ = _tmp33_;
-#line 1963 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1978 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1963 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1978 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (_tmp10_);
-#line 15954 "BatchImport.c"
- goto __catch422_g_error;
+#line 16502 "BatchImport.c"
+ goto __catch434_g_error;
}
-#line 1963 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1978 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp34_ = _tmp30_;
-#line 1963 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1978 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp30_ = NULL;
-#line 1963 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1978 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (final_associated_file);
-#line 1963 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1978 "/home/jens/Source/shotwell/src/BatchImport.vala"
final_associated_file = _tmp34_;
-#line 1962 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1977 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (_tmp30_);
-#line 15967 "BatchImport.c"
+#line 16515 "BatchImport.c"
}
-#line 1950 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1965 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (_tmp10_);
-#line 15971 "BatchImport.c"
+#line 16519 "BatchImport.c"
}
- goto __finally422;
- __catch422_g_error:
+ goto __finally434;
+ __catch434_g_error:
{
GError* err = NULL;
gchar* _tmp35_ = NULL;
@@ -15994,455 +16542,474 @@ static void prepared_file_import_job_real_execute (BackgroundJob* base) {
const gchar* _tmp48_;
GError* _tmp49_;
BatchImportResult* _tmp50_;
-#line 1950 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1965 "/home/jens/Source/shotwell/src/BatchImport.vala"
err = _inner_error_;
-#line 1950 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1965 "/home/jens/Source/shotwell/src/BatchImport.vala"
_inner_error_ = NULL;
-#line 1966 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1981 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp36_ = final_file;
-#line 1966 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1981 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (_tmp36_ != NULL) {
-#line 15997 "BatchImport.c"
+#line 16545 "BatchImport.c"
GFile* _tmp37_;
gchar* _tmp38_;
-#line 1966 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1981 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp37_ = final_file;
-#line 1966 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1981 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp38_ = g_file_get_path (_tmp37_);
-#line 1966 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1981 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (_tmp35_);
-#line 1966 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1981 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp35_ = _tmp38_;
-#line 16008 "BatchImport.c"
+#line 16556 "BatchImport.c"
} else {
PreparedFile* _tmp39_;
const gchar* _tmp40_;
gchar* _tmp41_;
-#line 1966 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1981 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp39_ = prepared_file;
-#line 1966 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1981 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp40_ = _tmp39_->source_id;
-#line 1966 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1981 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp41_ = g_strdup (_tmp40_);
-#line 1966 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1981 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (_tmp35_);
-#line 1966 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1981 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp35_ = _tmp41_;
-#line 16023 "BatchImport.c"
+#line 16571 "BatchImport.c"
}
-#line 1966 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1981 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp42_ = g_strdup (_tmp35_);
-#line 1966 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1981 "/home/jens/Source/shotwell/src/BatchImport.vala"
filename = _tmp42_;
-#line 1967 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1982 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp43_ = prepared_file;
-#line 1967 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1982 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp44_ = _tmp43_->job;
-#line 1967 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1982 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp45_ = prepared_file;
-#line 1967 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1982 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp46_ = _tmp45_->file;
-#line 1967 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1982 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp47_ = filename;
-#line 1967 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1982 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp48_ = filename;
-#line 1967 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1982 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp49_ = err;
-#line 1967 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1982 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp50_ = batch_import_result_new_from_error (_tmp44_, _tmp46_, _tmp47_, _tmp48_, _tmp49_, IMPORT_RESULT_FILE_ERROR);
-#line 1967 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1982 "/home/jens/Source/shotwell/src/BatchImport.vala"
_batch_import_result_unref0 (self->failed);
-#line 1967 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1982 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->failed = _tmp50_;
-#line 1970 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1985 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (filename);
-#line 1970 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1985 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_free0 (_tmp35_);
-#line 1970 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1985 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_error_free0 (err);
-#line 1970 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1985 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (final_associated_file);
-#line 1970 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1985 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (final_file);
-#line 1970 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1985 "/home/jens/Source/shotwell/src/BatchImport.vala"
_prepared_file_unref0 (prepared_file);
-#line 1970 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1985 "/home/jens/Source/shotwell/src/BatchImport.vala"
return;
-#line 16063 "BatchImport.c"
+#line 16611 "BatchImport.c"
}
- __finally422:
-#line 1950 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ __finally434:
+#line 1965 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1950 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1965 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (final_associated_file);
-#line 1950 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1965 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (final_file);
-#line 1950 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1965 "/home/jens/Source/shotwell/src/BatchImport.vala"
_prepared_file_unref0 (prepared_file);
-#line 1950 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1965 "/home/jens/Source/shotwell/src/BatchImport.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 1950 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1965 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_clear_error (&_inner_error_);
-#line 1950 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1965 "/home/jens/Source/shotwell/src/BatchImport.vala"
return;
-#line 16080 "BatchImport.c"
+#line 16628 "BatchImport.c"
}
}
-#line 1974 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp51_ = final_file;
-#line 1974 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp52_ = g_file_get_path (_tmp51_);
-#line 1974 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp53_ = _tmp52_;
-#line 1974 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_debug ("BatchImport.vala:1974: Importing %s", _tmp53_);
-#line 1974 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp53_);
-#line 1976 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1991 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp51_ = final_associated_file;
+#line 1991 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp51_ == NULL) {
+#line 16635 "BatchImport.c"
+ PreparedFile* _tmp52_;
+ BatchImportJob* _tmp53_;
+ GFile* _tmp54_;
+#line 1992 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp52_ = prepared_file;
+#line 1992 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp53_ = _tmp52_->job;
+#line 1992 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp54_ = batch_import_job_get_associated_file (_tmp53_);
+#line 1992 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_object_unref0 (final_associated_file);
+#line 1992 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ final_associated_file = _tmp54_;
+#line 16649 "BatchImport.c"
+ }
+#line 1995 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp55_ = final_file;
+#line 1995 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp56_ = g_file_get_path (_tmp55_);
+#line 1995 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp57_ = _tmp56_;
+#line 1995 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ g_debug ("BatchImport.vala:1995: Importing %s", _tmp57_);
+#line 1995 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_tmp57_);
+#line 1997 "/home/jens/Source/shotwell/src/BatchImport.vala"
_result_ = IMPORT_RESULT_SUCCESS;
-#line 1977 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1998 "/home/jens/Source/shotwell/src/BatchImport.vala"
video_import_params = NULL;
-#line 1978 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1999 "/home/jens/Source/shotwell/src/BatchImport.vala"
photo_import_params = NULL;
-#line 1979 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp54_ = prepared_file;
-#line 1979 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp55_ = _tmp54_->is_video;
-#line 1979 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp55_) {
-#line 16105 "BatchImport.c"
- GFile* _tmp56_;
- ImportID _tmp57_;
- PreparedFile* _tmp58_;
- const gchar* _tmp59_;
- Thumbnails* _tmp60_;
- Thumbnails* _tmp61_;
+#line 2000 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp58_ = prepared_file;
+#line 2000 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp59_ = _tmp58_->is_video;
+#line 2000 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp59_) {
+#line 16673 "BatchImport.c"
+ GFile* _tmp60_;
+ ImportID _tmp61_;
PreparedFile* _tmp62_;
- BatchImportJob* _tmp63_;
- time_t _tmp64_;
- VideoImportParams* _tmp65_;
- VideoImportParams* _tmp66_;
- ImportResult _tmp67_;
-#line 1980 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp56_ = final_file;
-#line 1980 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp57_ = self->priv->import_id;
-#line 1980 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp58_ = prepared_file;
-#line 1980 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp59_ = _tmp58_->full_md5;
-#line 1980 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp60_ = thumbnails_new ();
-#line 1980 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp61_ = _tmp60_;
-#line 1980 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ const gchar* _tmp63_;
+ Thumbnails* _tmp64_;
+ Thumbnails* _tmp65_;
+ PreparedFile* _tmp66_;
+ BatchImportJob* _tmp67_;
+ VideoImportParams* _tmp68_;
+ VideoImportParams* _tmp69_;
+#line 2001 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp60_ = final_file;
+#line 2001 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp61_ = self->priv->import_id;
+#line 2001 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp62_ = prepared_file;
-#line 1980 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp63_ = _tmp62_->job;
-#line 1980 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp64_ = batch_import_job_get_exposure_time_override (_tmp63_);
-#line 1980 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp65_ = video_import_params_new (_tmp56_, &_tmp57_, _tmp59_, _tmp61_, _tmp64_);
-#line 1980 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2001 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp63_ = _tmp62_->full_md5;
+#line 2001 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp64_ = thumbnails_new ();
+#line 2001 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp65_ = _tmp64_;
+#line 2001 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp66_ = prepared_file;
+#line 2001 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp67_ = _tmp66_->job;
+#line 2001 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp68_ = video_import_params_new (_tmp60_, &_tmp61_, _tmp63_, _tmp65_, batch_import_job_get_exposure_time_override (_tmp67_));
+#line 2001 "/home/jens/Source/shotwell/src/BatchImport.vala"
_video_import_params_unref0 (video_import_params);
-#line 1980 "/home/jens/Source/shotwell/src/BatchImport.vala"
- video_import_params = _tmp65_;
-#line 1980 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _thumbnails_unref0 (_tmp61_);
-#line 1984 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp66_ = video_import_params;
-#line 1984 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp67_ = video_reader_prepare_for_import (_tmp66_);
-#line 1984 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _result_ = _tmp67_;
-#line 16150 "BatchImport.c"
+#line 2001 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ video_import_params = _tmp68_;
+#line 2001 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _thumbnails_unref0 (_tmp65_);
+#line 2005 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp69_ = video_import_params;
+#line 2005 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _result_ = video_reader_prepare_for_import (_tmp69_);
+#line 16712 "BatchImport.c"
} else {
- GFile* _tmp68_;
- GFile* _tmp69_;
- ImportID _tmp70_;
- PreparedFile* _tmp71_;
- const gchar* _tmp72_;
+ GFile* _tmp70_;
+ GFile* _tmp71_;
+ ImportID _tmp72_;
PreparedFile* _tmp73_;
const gchar* _tmp74_;
PreparedFile* _tmp75_;
const gchar* _tmp76_;
- Thumbnails* _tmp77_;
- Thumbnails* _tmp78_;
- PhotoImportParams* _tmp79_;
- PhotoImportParams* _tmp80_;
- ImportResult _tmp81_;
-#line 1986 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp68_ = final_file;
-#line 1986 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp69_ = final_associated_file;
-#line 1986 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp70_ = self->priv->import_id;
-#line 1986 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp71_ = prepared_file;
-#line 1986 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp72_ = _tmp71_->exif_md5;
-#line 1986 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ PreparedFile* _tmp77_;
+ const gchar* _tmp78_;
+ Thumbnails* _tmp79_;
+ Thumbnails* _tmp80_;
+ PhotoImportParams* _tmp81_;
+ PhotoImportParams* _tmp82_;
+#line 2007 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp70_ = final_file;
+#line 2007 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp71_ = final_associated_file;
+#line 2007 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp72_ = self->priv->import_id;
+#line 2007 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp73_ = prepared_file;
-#line 1986 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp74_ = _tmp73_->thumbnail_md5;
-#line 1986 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2007 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp74_ = _tmp73_->exif_md5;
+#line 2007 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp75_ = prepared_file;
-#line 1986 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp76_ = _tmp75_->full_md5;
-#line 1986 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp77_ = thumbnails_new ();
-#line 1986 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp78_ = _tmp77_;
-#line 1986 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp79_ = photo_import_params_new (_tmp68_, _tmp69_, &_tmp70_, PHOTO_FILE_SNIFFER_OPTIONS_GET_ALL, _tmp72_, _tmp74_, _tmp76_, _tmp78_);
-#line 1986 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2007 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp76_ = _tmp75_->thumbnail_md5;
+#line 2007 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp77_ = prepared_file;
+#line 2007 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp78_ = _tmp77_->full_md5;
+#line 2007 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp79_ = thumbnails_new ();
+#line 2007 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp80_ = _tmp79_;
+#line 2007 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp81_ = photo_import_params_new (_tmp70_, _tmp71_, &_tmp72_, PHOTO_FILE_SNIFFER_OPTIONS_GET_ALL, _tmp74_, _tmp76_, _tmp78_, _tmp80_);
+#line 2007 "/home/jens/Source/shotwell/src/BatchImport.vala"
_photo_import_params_unref0 (photo_import_params);
-#line 1986 "/home/jens/Source/shotwell/src/BatchImport.vala"
- photo_import_params = _tmp79_;
-#line 1986 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _thumbnails_unref0 (_tmp78_);
-#line 1990 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp80_ = photo_import_params;
-#line 1990 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp81_ = photo_prepare_for_import (_tmp80_);
-#line 1990 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _result_ = _tmp81_;
-#line 16202 "BatchImport.c"
+#line 2007 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ photo_import_params = _tmp81_;
+#line 2007 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _thumbnails_unref0 (_tmp80_);
+#line 2011 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp82_ = photo_import_params;
+#line 2011 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _result_ = photo_prepare_for_import (_tmp82_);
+#line 16761 "BatchImport.c"
}
-#line 1993 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp83_ = _result_;
-#line 1993 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp83_ != IMPORT_RESULT_SUCCESS) {
-#line 16208 "BatchImport.c"
- GFile* _tmp84_;
- PreparedFile* _tmp85_;
- GFile* _tmp86_;
-#line 1993 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp84_ = final_file;
-#line 1993 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp85_ = prepared_file;
-#line 1993 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp86_ = _tmp85_->file;
-#line 1993 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp82_ = _tmp84_ != _tmp86_;
-#line 16220 "BatchImport.c"
+#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp84_ = _result_;
+#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp84_ != IMPORT_RESULT_SUCCESS) {
+#line 16767 "BatchImport.c"
+ GFile* _tmp85_;
+ PreparedFile* _tmp86_;
+ GFile* _tmp87_;
+#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp85_ = final_file;
+#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp86_ = prepared_file;
+#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp87_ = _tmp86_->file;
+#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp83_ = _tmp85_ != _tmp87_;
+#line 16779 "BatchImport.c"
} else {
-#line 1993 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp82_ = FALSE;
-#line 16224 "BatchImport.c"
+#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp83_ = FALSE;
+#line 16783 "BatchImport.c"
}
-#line 1993 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp82_) {
-#line 16228 "BatchImport.c"
- GFile* _tmp87_;
- gchar* _tmp88_;
+#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp83_) {
+#line 16787 "BatchImport.c"
+ GFile* _tmp88_;
gchar* _tmp89_;
-#line 1994 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp87_ = final_file;
-#line 1994 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp88_ = g_file_get_path (_tmp87_);
-#line 1994 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp89_ = _tmp88_;
-#line 1994 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_debug ("BatchImport.vala:1994: Deleting failed imported copy %s", _tmp89_);
-#line 1994 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp89_);
-#line 16242 "BatchImport.c"
+ gchar* _tmp90_;
+#line 2015 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp88_ = final_file;
+#line 2015 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp89_ = g_file_get_path (_tmp88_);
+#line 2015 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp90_ = _tmp89_;
+#line 2015 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ g_debug ("BatchImport.vala:2015: Deleting failed imported copy %s", _tmp90_);
+#line 2015 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_tmp90_);
+#line 16801 "BatchImport.c"
{
- GFile* _tmp90_;
-#line 1996 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp90_ = final_file;
-#line 1996 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_file_delete (_tmp90_, NULL, &_inner_error_);
-#line 1996 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ GFile* _tmp91_;
+#line 2017 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp91_ = final_file;
+#line 2017 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ g_file_delete (_tmp91_, NULL, &_inner_error_);
+#line 2017 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 16251 "BatchImport.c"
- goto __catch423_g_error;
+#line 16810 "BatchImport.c"
+ goto __catch435_g_error;
}
}
- goto __finally423;
- __catch423_g_error:
+ goto __finally435;
+ __catch435_g_error:
{
GError* err = NULL;
- GFile* _tmp91_;
- gchar* _tmp92_;
+ GFile* _tmp92_;
gchar* _tmp93_;
- GError* _tmp94_;
- const gchar* _tmp95_;
-#line 1995 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ gchar* _tmp94_;
+ GError* _tmp95_;
+ const gchar* _tmp96_;
+#line 2016 "/home/jens/Source/shotwell/src/BatchImport.vala"
err = _inner_error_;
-#line 1995 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2016 "/home/jens/Source/shotwell/src/BatchImport.vala"
_inner_error_ = NULL;
-#line 1999 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp91_ = final_file;
-#line 1999 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp92_ = g_file_get_path (_tmp91_);
-#line 1999 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp93_ = _tmp92_;
-#line 1999 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp94_ = err;
-#line 1999 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp95_ = _tmp94_->message;
-#line 1999 "/home/jens/Source/shotwell/src/BatchImport.vala"
- g_warning ("BatchImport.vala:1999: Unable to delete copy of imported file %s: %s", _tmp93_, _tmp95_);
-#line 1999 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp93_);
-#line 1995 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2020 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp92_ = final_file;
+#line 2020 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp93_ = g_file_get_path (_tmp92_);
+#line 2020 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp94_ = _tmp93_;
+#line 2020 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp95_ = err;
+#line 2020 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp96_ = _tmp95_->message;
+#line 2020 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ g_warning ("BatchImport.vala:2020: Unable to delete copy of imported file %s: %s", _tmp94_, _tmp96_);
+#line 2020 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_tmp94_);
+#line 2016 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_error_free0 (err);
-#line 16284 "BatchImport.c"
+#line 16843 "BatchImport.c"
}
- __finally423:
-#line 1995 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ __finally435:
+#line 2016 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1995 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2016 "/home/jens/Source/shotwell/src/BatchImport.vala"
_photo_import_params_unref0 (photo_import_params);
-#line 1995 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2016 "/home/jens/Source/shotwell/src/BatchImport.vala"
_video_import_params_unref0 (video_import_params);
-#line 1995 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2016 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (final_associated_file);
-#line 1995 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2016 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (final_file);
-#line 1995 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2016 "/home/jens/Source/shotwell/src/BatchImport.vala"
_prepared_file_unref0 (prepared_file);
-#line 1995 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2016 "/home/jens/Source/shotwell/src/BatchImport.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 1995 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2016 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_clear_error (&_inner_error_);
-#line 1995 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2016 "/home/jens/Source/shotwell/src/BatchImport.vala"
return;
-#line 16305 "BatchImport.c"
+#line 16864 "BatchImport.c"
}
}
-#line 2004 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp96_ = prepared_file;
-#line 2004 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp97_ = _tmp96_->job;
-#line 2004 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp98_ = final_file;
-#line 2004 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2025 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp97_ = prepared_file;
+#line 2025 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp98_ = _tmp97_->job;
+#line 2025 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp99_ = final_file;
-#line 2004 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp100_ = g_file_get_path (_tmp99_);
-#line 2004 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp101_ = _tmp100_;
-#line 2004 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp102_ = final_file;
-#line 2004 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp103_ = g_file_get_path (_tmp102_);
-#line 2004 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp104_ = _tmp103_;
-#line 2004 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp105_ = _result_;
-#line 2004 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp106_ = batch_import_result_new (_tmp97_, _tmp98_, _tmp101_, _tmp104_, NULL, _tmp105_);
-#line 2004 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp107_ = _tmp106_;
-#line 2004 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp104_);
-#line 2004 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _g_free0 (_tmp101_);
-#line 2004 "/home/jens/Source/shotwell/src/BatchImport.vala"
- batch_result = _tmp107_;
-#line 2006 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp108_ = batch_result;
-#line 2006 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp109_ = _tmp108_->result;
-#line 2006 "/home/jens/Source/shotwell/src/BatchImport.vala"
- if (_tmp109_ != IMPORT_RESULT_SUCCESS) {
-#line 16344 "BatchImport.c"
- BatchImportResult* _tmp110_;
+#line 2025 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp100_ = final_file;
+#line 2025 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp101_ = g_file_get_path (_tmp100_);
+#line 2025 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp102_ = _tmp101_;
+#line 2025 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp103_ = final_file;
+#line 2025 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp104_ = g_file_get_path (_tmp103_);
+#line 2025 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp105_ = _tmp104_;
+#line 2025 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp106_ = _result_;
+#line 2025 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp107_ = batch_import_result_new (_tmp98_, _tmp99_, _tmp102_, _tmp105_, NULL, _tmp106_);
+#line 2025 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp108_ = _tmp107_;
+#line 2025 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_tmp105_);
+#line 2025 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _g_free0 (_tmp102_);
+#line 2025 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ batch_result = _tmp108_;
+#line 2027 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp109_ = batch_result;
+#line 2027 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp110_ = _tmp109_->result;
+#line 2027 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ if (_tmp110_ != IMPORT_RESULT_SUCCESS) {
+#line 16903 "BatchImport.c"
BatchImportResult* _tmp111_;
-#line 2007 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp110_ = batch_result;
-#line 2007 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp111_ = _batch_import_result_ref0 (_tmp110_);
-#line 2007 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ BatchImportResult* _tmp112_;
+#line 2028 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp111_ = batch_result;
+#line 2028 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp112_ = _batch_import_result_ref0 (_tmp111_);
+#line 2028 "/home/jens/Source/shotwell/src/BatchImport.vala"
_batch_import_result_unref0 (self->failed);
-#line 2007 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->failed = _tmp111_;
-#line 16355 "BatchImport.c"
+#line 2028 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->failed = _tmp112_;
+#line 16914 "BatchImport.c"
} else {
- GFile* _tmp112_;
- PreparedFile* _tmp113_;
- PhotoImportParams* _tmp114_;
- VideoImportParams* _tmp115_;
- BatchImportResult* _tmp116_;
- ReadyForImport* _tmp117_;
-#line 2009 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp112_ = final_file;
-#line 2009 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp113_ = prepared_file;
-#line 2009 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp114_ = photo_import_params;
-#line 2009 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp115_ = video_import_params;
-#line 2009 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp116_ = batch_result;
-#line 2009 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp117_ = ready_for_import_new (_tmp112_, _tmp113_, _tmp114_, _tmp115_, _tmp116_);
-#line 2009 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ GFile* _tmp113_;
+ PreparedFile* _tmp114_;
+ PhotoImportParams* _tmp115_;
+ VideoImportParams* _tmp116_;
+ BatchImportResult* _tmp117_;
+ ReadyForImport* _tmp118_;
+#line 2030 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp113_ = final_file;
+#line 2030 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp114_ = prepared_file;
+#line 2030 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp115_ = photo_import_params;
+#line 2030 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp116_ = video_import_params;
+#line 2030 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp117_ = batch_result;
+#line 2030 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp118_ = ready_for_import_new (_tmp113_, _tmp114_, _tmp115_, _tmp116_, _tmp117_);
+#line 2030 "/home/jens/Source/shotwell/src/BatchImport.vala"
_ready_for_import_unref0 (self->ready);
-#line 2009 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->ready = _tmp117_;
-#line 16379 "BatchImport.c"
+#line 2030 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->ready = _tmp118_;
+#line 16938 "BatchImport.c"
}
-#line 1942 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1957 "/home/jens/Source/shotwell/src/BatchImport.vala"
_batch_import_result_unref0 (batch_result);
-#line 1942 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1957 "/home/jens/Source/shotwell/src/BatchImport.vala"
_photo_import_params_unref0 (photo_import_params);
-#line 1942 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1957 "/home/jens/Source/shotwell/src/BatchImport.vala"
_video_import_params_unref0 (video_import_params);
-#line 1942 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1957 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (final_associated_file);
-#line 1942 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1957 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (final_file);
-#line 1942 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1957 "/home/jens/Source/shotwell/src/BatchImport.vala"
_prepared_file_unref0 (prepared_file);
-#line 16393 "BatchImport.c"
+#line 16952 "BatchImport.c"
}
-static void prepared_file_import_job_class_init (PreparedFileImportJobClass * klass) {
-#line 1925 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static void
+prepared_file_import_job_class_init (PreparedFileImportJobClass * klass)
+{
+#line 1940 "/home/jens/Source/shotwell/src/BatchImport.vala"
prepared_file_import_job_parent_class = g_type_class_peek_parent (klass);
-#line 1925 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1940 "/home/jens/Source/shotwell/src/BatchImport.vala"
((BackgroundJobClass *) klass)->finalize = prepared_file_import_job_finalize;
-#line 1925 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1940 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_type_class_add_private (klass, sizeof (PreparedFileImportJobPrivate));
-#line 1925 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1940 "/home/jens/Source/shotwell/src/BatchImport.vala"
((BackgroundJobClass *) klass)->execute = (void (*) (BackgroundJob *)) prepared_file_import_job_real_execute;
-#line 16406 "BatchImport.c"
+#line 16967 "BatchImport.c"
}
-static void prepared_file_import_job_instance_init (PreparedFileImportJob * self) {
-#line 1925 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static void
+prepared_file_import_job_instance_init (PreparedFileImportJob * self)
+{
+#line 1940 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->priv = PREPARED_FILE_IMPORT_JOB_GET_PRIVATE (self);
-#line 1927 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1942 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->ready = NULL;
-#line 1928 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1943 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->failed = NULL;
-#line 16417 "BatchImport.c"
+#line 16980 "BatchImport.c"
}
-static void prepared_file_import_job_finalize (BackgroundJob * obj) {
+static void
+prepared_file_import_job_finalize (BackgroundJob * obj)
+{
PreparedFileImportJob * self;
-#line 1925 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1940 "/home/jens/Source/shotwell/src/BatchImport.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PREPARED_FILE_IMPORT_JOB, PreparedFileImportJob);
-#line 1926 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1941 "/home/jens/Source/shotwell/src/BatchImport.vala"
_prepared_file_unref0 (self->not_ready);
-#line 1927 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1942 "/home/jens/Source/shotwell/src/BatchImport.vala"
_ready_for_import_unref0 (self->ready);
-#line 1928 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1943 "/home/jens/Source/shotwell/src/BatchImport.vala"
_batch_import_result_unref0 (self->failed);
-#line 1925 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 1940 "/home/jens/Source/shotwell/src/BatchImport.vala"
BACKGROUND_JOB_CLASS (prepared_file_import_job_parent_class)->finalize (obj);
-#line 16433 "BatchImport.c"
+#line 16998 "BatchImport.c"
}
-GType prepared_file_import_job_get_type (void) {
+GType
+prepared_file_import_job_get_type (void)
+{
static volatile gsize prepared_file_import_job_type_id__volatile = 0;
if (g_once_init_enter (&prepared_file_import_job_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (PreparedFileImportJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) prepared_file_import_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PreparedFileImportJob), 0, (GInstanceInitFunc) prepared_file_import_job_instance_init, NULL };
@@ -16454,298 +17021,335 @@ GType prepared_file_import_job_get_type (void) {
}
-CompletedImportObject* completed_import_object_construct (GType object_type, MediaSource* source, Thumbnails* thumbnails, BatchImportJob* original_job, BatchImportResult* import_result) {
+CompletedImportObject*
+completed_import_object_construct (GType object_type,
+ MediaSource* source,
+ Thumbnails* thumbnails,
+ BatchImportJob* original_job,
+ BatchImportResult* import_result)
+{
CompletedImportObject* self = NULL;
Thumbnails* _tmp0_;
- Thumbnails* _tmp1_;
- BatchImportResult* _tmp2_;
- BatchImportResult* _tmp3_;
- MediaSource* _tmp4_;
- MediaSource* _tmp5_;
- BatchImportJob* _tmp6_;
- BatchImportJob* _tmp7_;
- Thumbnails* _tmp8_;
- GdkPixbuf* _tmp9_;
-#line 2021 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ BatchImportResult* _tmp1_;
+ MediaSource* _tmp2_;
+ BatchImportJob* _tmp3_;
+ GdkPixbuf* _tmp4_;
+#line 2042 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (IS_MEDIA_SOURCE (source), NULL);
-#line 2021 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2042 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (IS_THUMBNAILS (thumbnails), NULL);
-#line 2021 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2042 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (IS_BATCH_IMPORT_JOB (original_job), NULL);
-#line 2021 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2042 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (IS_BATCH_IMPORT_RESULT (import_result), NULL);
-#line 2021 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2042 "/home/jens/Source/shotwell/src/BatchImport.vala"
self = (CompletedImportObject*) g_type_create_instance (object_type);
-#line 2023 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = thumbnails;
-#line 2023 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = _thumbnails_ref0 (_tmp0_);
-#line 2023 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2044 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp0_ = _thumbnails_ref0 (thumbnails);
+#line 2044 "/home/jens/Source/shotwell/src/BatchImport.vala"
_thumbnails_unref0 (self->thumbnails);
-#line 2023 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->thumbnails = _tmp1_;
-#line 2024 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = import_result;
-#line 2024 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = _batch_import_result_ref0 (_tmp2_);
-#line 2024 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2044 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->thumbnails = _tmp0_;
+#line 2045 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp1_ = _batch_import_result_ref0 (import_result);
+#line 2045 "/home/jens/Source/shotwell/src/BatchImport.vala"
_batch_import_result_unref0 (self->batch_result);
-#line 2024 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->batch_result = _tmp3_;
-#line 2025 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = source;
-#line 2025 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = _g_object_ref0 (_tmp4_);
-#line 2025 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2045 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->batch_result = _tmp1_;
+#line 2046 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp2_ = _g_object_ref0 (source);
+#line 2046 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (self->source);
-#line 2025 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->source = _tmp5_;
-#line 2026 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = original_job;
-#line 2026 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = _batch_import_job_ref0 (_tmp6_);
-#line 2026 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2046 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->source = _tmp2_;
+#line 2047 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp3_ = _batch_import_job_ref0 (original_job);
+#line 2047 "/home/jens/Source/shotwell/src/BatchImport.vala"
_batch_import_job_unref0 (self->original_job);
-#line 2026 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->original_job = _tmp7_;
-#line 2027 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp8_ = thumbnails;
-#line 2027 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = thumbnails_get (_tmp8_, THUMBNAIL_CACHE_SIZE_LARGEST);
-#line 2027 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2047 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->original_job = _tmp3_;
+#line 2048 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp4_ = thumbnails_get (thumbnails, THUMBNAIL_CACHE_SIZE_LARGEST);
+#line 2048 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (self->user_preview);
-#line 2027 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->user_preview = _tmp9_;
-#line 2021 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2048 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->user_preview = _tmp4_;
+#line 2042 "/home/jens/Source/shotwell/src/BatchImport.vala"
return self;
-#line 16513 "BatchImport.c"
+#line 17071 "BatchImport.c"
}
-CompletedImportObject* completed_import_object_new (MediaSource* source, Thumbnails* thumbnails, BatchImportJob* original_job, BatchImportResult* import_result) {
-#line 2021 "/home/jens/Source/shotwell/src/BatchImport.vala"
+CompletedImportObject*
+completed_import_object_new (MediaSource* source,
+ Thumbnails* thumbnails,
+ BatchImportJob* original_job,
+ BatchImportResult* import_result)
+{
+#line 2042 "/home/jens/Source/shotwell/src/BatchImport.vala"
return completed_import_object_construct (TYPE_COMPLETED_IMPORT_OBJECT, source, thumbnails, original_job, import_result);
-#line 16520 "BatchImport.c"
+#line 17083 "BatchImport.c"
}
-static void value_completed_import_object_init (GValue* value) {
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static void
+value_completed_import_object_init (GValue* value)
+{
+#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
value->data[0].v_pointer = NULL;
-#line 16527 "BatchImport.c"
+#line 17092 "BatchImport.c"
}
-static void value_completed_import_object_free_value (GValue* value) {
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static void
+value_completed_import_object_free_value (GValue* value)
+{
+#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (value->data[0].v_pointer) {
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
completed_import_object_unref (value->data[0].v_pointer);
-#line 16536 "BatchImport.c"
+#line 17103 "BatchImport.c"
}
}
-static void value_completed_import_object_copy_value (const GValue* src_value, GValue* dest_value) {
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static void
+value_completed_import_object_copy_value (const GValue* src_value,
+ GValue* dest_value)
+{
+#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (src_value->data[0].v_pointer) {
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
dest_value->data[0].v_pointer = completed_import_object_ref (src_value->data[0].v_pointer);
-#line 16546 "BatchImport.c"
+#line 17116 "BatchImport.c"
} else {
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
dest_value->data[0].v_pointer = NULL;
-#line 16550 "BatchImport.c"
+#line 17120 "BatchImport.c"
}
}
-static gpointer value_completed_import_object_peek_pointer (const GValue* value) {
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static gpointer
+value_completed_import_object_peek_pointer (const GValue* value)
+{
+#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
return value->data[0].v_pointer;
-#line 16558 "BatchImport.c"
+#line 17130 "BatchImport.c"
}
-static gchar* value_completed_import_object_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static gchar*
+value_completed_import_object_collect_value (GValue* value,
+ guint n_collect_values,
+ GTypeCValue* collect_values,
+ guint collect_flags)
+{
+#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (collect_values[0].v_pointer) {
-#line 16565 "BatchImport.c"
+#line 17142 "BatchImport.c"
CompletedImportObject * object;
object = collect_values[0].v_pointer;
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (object->parent_instance.g_class == NULL) {
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 16572 "BatchImport.c"
+#line 17149 "BatchImport.c"
} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 16576 "BatchImport.c"
+#line 17153 "BatchImport.c"
}
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
value->data[0].v_pointer = completed_import_object_ref (object);
-#line 16580 "BatchImport.c"
+#line 17157 "BatchImport.c"
} else {
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
value->data[0].v_pointer = NULL;
-#line 16584 "BatchImport.c"
+#line 17161 "BatchImport.c"
}
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
return NULL;
-#line 16588 "BatchImport.c"
+#line 17165 "BatchImport.c"
}
-static gchar* value_completed_import_object_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+static gchar*
+value_completed_import_object_lcopy_value (const GValue* value,
+ guint n_collect_values,
+ GTypeCValue* collect_values,
+ guint collect_flags)
+{
CompletedImportObject ** object_p;
object_p = collect_values[0].v_pointer;
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (!object_p) {
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 16599 "BatchImport.c"
+#line 17181 "BatchImport.c"
}
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (!value->data[0].v_pointer) {
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
*object_p = NULL;
-#line 16605 "BatchImport.c"
+#line 17187 "BatchImport.c"
} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
*object_p = value->data[0].v_pointer;
-#line 16609 "BatchImport.c"
+#line 17191 "BatchImport.c"
} else {
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
*object_p = completed_import_object_ref (value->data[0].v_pointer);
-#line 16613 "BatchImport.c"
+#line 17195 "BatchImport.c"
}
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
return NULL;
-#line 16617 "BatchImport.c"
+#line 17199 "BatchImport.c"
}
-GParamSpec* param_spec_completed_import_object (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+GParamSpec*
+param_spec_completed_import_object (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags)
+{
ParamSpecCompletedImportObject* spec;
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (g_type_is_a (object_type, TYPE_COMPLETED_IMPORT_OBJECT), NULL);
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
G_PARAM_SPEC (spec)->value_type = object_type;
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
return G_PARAM_SPEC (spec);
-#line 16631 "BatchImport.c"
+#line 17219 "BatchImport.c"
}
-gpointer value_get_completed_import_object (const GValue* value) {
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+gpointer
+value_get_completed_import_object (const GValue* value)
+{
+#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_COMPLETED_IMPORT_OBJECT), NULL);
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
return value->data[0].v_pointer;
-#line 16640 "BatchImport.c"
+#line 17230 "BatchImport.c"
}
-void value_set_completed_import_object (GValue* value, gpointer v_object) {
+void
+value_set_completed_import_object (GValue* value,
+ gpointer v_object)
+{
CompletedImportObject * old;
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_COMPLETED_IMPORT_OBJECT));
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
old = value->data[0].v_pointer;
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (v_object) {
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_COMPLETED_IMPORT_OBJECT));
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
value->data[0].v_pointer = v_object;
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
completed_import_object_ref (value->data[0].v_pointer);
-#line 16660 "BatchImport.c"
+#line 17253 "BatchImport.c"
} else {
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
value->data[0].v_pointer = NULL;
-#line 16664 "BatchImport.c"
+#line 17257 "BatchImport.c"
}
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (old) {
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
completed_import_object_unref (old);
-#line 16670 "BatchImport.c"
+#line 17263 "BatchImport.c"
}
}
-void value_take_completed_import_object (GValue* value, gpointer v_object) {
+void
+value_take_completed_import_object (GValue* value,
+ gpointer v_object)
+{
CompletedImportObject * old;
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_COMPLETED_IMPORT_OBJECT));
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
old = value->data[0].v_pointer;
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (v_object) {
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_COMPLETED_IMPORT_OBJECT));
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
value->data[0].v_pointer = v_object;
-#line 16689 "BatchImport.c"
+#line 17285 "BatchImport.c"
} else {
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
value->data[0].v_pointer = NULL;
-#line 16693 "BatchImport.c"
+#line 17289 "BatchImport.c"
}
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (old) {
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
completed_import_object_unref (old);
-#line 16699 "BatchImport.c"
+#line 17295 "BatchImport.c"
}
}
-static void completed_import_object_class_init (CompletedImportObjectClass * klass) {
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static void
+completed_import_object_class_init (CompletedImportObjectClass * klass)
+{
+#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
completed_import_object_parent_class = g_type_class_peek_parent (klass);
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
((CompletedImportObjectClass *) klass)->finalize = completed_import_object_finalize;
-#line 16709 "BatchImport.c"
+#line 17307 "BatchImport.c"
}
-static void completed_import_object_instance_init (CompletedImportObject * self) {
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static void
+completed_import_object_instance_init (CompletedImportObject * self)
+{
+#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
self->ref_count = 1;
-#line 16716 "BatchImport.c"
+#line 17316 "BatchImport.c"
}
-static void completed_import_object_finalize (CompletedImportObject * obj) {
+static void
+completed_import_object_finalize (CompletedImportObject * obj)
+{
CompletedImportObject * self;
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_COMPLETED_IMPORT_OBJECT, CompletedImportObject);
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_signal_handlers_destroy (self);
-#line 2015 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2036 "/home/jens/Source/shotwell/src/BatchImport.vala"
_thumbnails_unref0 (self->thumbnails);
-#line 2016 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2037 "/home/jens/Source/shotwell/src/BatchImport.vala"
_batch_import_result_unref0 (self->batch_result);
-#line 2017 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2038 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (self->source);
-#line 2018 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2039 "/home/jens/Source/shotwell/src/BatchImport.vala"
_batch_import_job_unref0 (self->original_job);
-#line 2019 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2040 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_object_unref0 (self->user_preview);
-#line 16736 "BatchImport.c"
+#line 17338 "BatchImport.c"
}
-GType completed_import_object_get_type (void) {
+GType
+completed_import_object_get_type (void)
+{
static volatile gsize completed_import_object_type_id__volatile = 0;
if (g_once_init_enter (&completed_import_object_type_id__volatile)) {
static const GTypeValueTable g_define_type_value_table = { value_completed_import_object_init, value_completed_import_object_free_value, value_completed_import_object_copy_value, value_completed_import_object_peek_pointer, "p", value_completed_import_object_collect_value, "p", value_completed_import_object_lcopy_value };
@@ -16759,99 +17363,98 @@ GType completed_import_object_get_type (void) {
}
-gpointer completed_import_object_ref (gpointer instance) {
+gpointer
+completed_import_object_ref (gpointer instance)
+{
CompletedImportObject * self;
self = instance;
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_atomic_int_inc (&self->ref_count);
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
return instance;
-#line 16761 "BatchImport.c"
+#line 17367 "BatchImport.c"
}
-void completed_import_object_unref (gpointer instance) {
+void
+completed_import_object_unref (gpointer instance)
+{
CompletedImportObject * self;
self = instance;
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (g_atomic_int_dec_and_test (&self->ref_count)) {
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
COMPLETED_IMPORT_OBJECT_GET_CLASS (self)->finalize (self);
-#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_type_free_instance ((GTypeInstance *) self);
-#line 16774 "BatchImport.c"
+#line 17382 "BatchImport.c"
}
}
-ThumbnailWriterJob* thumbnail_writer_job_construct (GType object_type, BatchImport* owner, CompletedImportObject* completed_import_source, CompletionCallback callback, void* callback_target, GCancellable* cancellable, CancellationCallback cancel_callback, void* cancel_callback_target) {
+ThumbnailWriterJob*
+thumbnail_writer_job_construct (GType object_type,
+ BatchImport* owner,
+ CompletedImportObject* completed_import_source,
+ CompletionCallback callback,
+ void* callback_target,
+ GCancellable* cancellable,
+ CancellationCallback cancel_callback,
+ void* cancel_callback_target)
+{
ThumbnailWriterJob* self = NULL;
- BatchImport* _tmp0_;
- CompletionCallback _tmp1_;
- void* _tmp1__target;
- GCancellable* _tmp2_;
- CancellationCallback _tmp3_;
- void* _tmp3__target;
- CompletedImportObject* _tmp4_;
- Thumbnails* _tmp5_;
- CompletedImportObject* _tmp6_;
- CompletedImportObject* _tmp7_;
-#line 2034 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ Thumbnails* _tmp0_;
+ CompletedImportObject* _tmp1_;
+#line 2055 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (IS_BATCH_IMPORT (owner), NULL);
-#line 2034 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2055 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (IS_COMPLETED_IMPORT_OBJECT (completed_import_source), NULL);
-#line 2034 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2055 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_return_val_if_fail (G_IS_CANCELLABLE (cancellable), NULL);
-#line 2036 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp0_ = owner;
-#line 2036 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1_ = callback;
-#line 2036 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp1__target = callback_target;
-#line 2036 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp2_ = cancellable;
-#line 2036 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3_ = cancel_callback;
-#line 2036 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp3__target = cancel_callback_target;
-#line 2036 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self = (ThumbnailWriterJob*) background_import_job_construct (object_type, _tmp0_, _tmp1_, _tmp1__target, _tmp2_, _tmp3_, _tmp3__target);
-#line 2038 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp4_ = completed_import_source;
-#line 2038 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp5_ = _tmp4_->thumbnails;
-#line 2038 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _vala_assert (_tmp5_ != NULL, "completed_import_source.thumbnails != null");
-#line 2039 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp6_ = completed_import_source;
-#line 2039 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_ = _completed_import_object_ref0 (_tmp6_);
-#line 2039 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2057 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self = (ThumbnailWriterJob*) background_import_job_construct (object_type, owner, callback, callback_target, cancellable, cancel_callback, cancel_callback_target);
+#line 2059 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp0_ = completed_import_source->thumbnails;
+#line 2059 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _vala_assert (_tmp0_ != NULL, "completed_import_source.thumbnails != null");
+#line 2060 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp1_ = _completed_import_object_ref0 (completed_import_source);
+#line 2060 "/home/jens/Source/shotwell/src/BatchImport.vala"
_completed_import_object_unref0 (self->completed_import_source);
-#line 2039 "/home/jens/Source/shotwell/src/BatchImport.vala"
- self->completed_import_source = _tmp7_;
-#line 2041 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2060 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ self->completed_import_source = _tmp1_;
+#line 2062 "/home/jens/Source/shotwell/src/BatchImport.vala"
background_job_set_completion_priority (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_JOB, BackgroundJob), G_PRIORITY_LOW);
-#line 2034 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2055 "/home/jens/Source/shotwell/src/BatchImport.vala"
return self;
-#line 16829 "BatchImport.c"
+#line 17422 "BatchImport.c"
}
-ThumbnailWriterJob* thumbnail_writer_job_new (BatchImport* owner, CompletedImportObject* completed_import_source, CompletionCallback callback, void* callback_target, GCancellable* cancellable, CancellationCallback cancel_callback, void* cancel_callback_target) {
-#line 2034 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ThumbnailWriterJob*
+thumbnail_writer_job_new (BatchImport* owner,
+ CompletedImportObject* completed_import_source,
+ CompletionCallback callback,
+ void* callback_target,
+ GCancellable* cancellable,
+ CancellationCallback cancel_callback,
+ void* cancel_callback_target)
+{
+#line 2055 "/home/jens/Source/shotwell/src/BatchImport.vala"
return thumbnail_writer_job_construct (TYPE_THUMBNAIL_WRITER_JOB, owner, completed_import_source, callback, callback_target, cancellable, cancel_callback, cancel_callback_target);
-#line 16836 "BatchImport.c"
+#line 17437 "BatchImport.c"
}
-static void thumbnail_writer_job_real_execute (BackgroundJob* base) {
+static void
+thumbnail_writer_job_real_execute (BackgroundJob* base)
+{
ThumbnailWriterJob * self;
- CompletedImportObject* _tmp10_;
+ CompletedImportObject* _tmp9_;
GError * _inner_error_ = NULL;
-#line 2044 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2065 "/home/jens/Source/shotwell/src/BatchImport.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_THUMBNAIL_WRITER_JOB, ThumbnailWriterJob);
-#line 16846 "BatchImport.c"
+#line 17449 "BatchImport.c"
{
CompletedImportObject* _tmp0_;
MediaSource* _tmp1_;
@@ -16859,104 +17462,109 @@ static void thumbnail_writer_job_real_execute (BackgroundJob* base) {
Thumbnails* _tmp3_;
CompletedImportObject* _tmp4_;
BatchImportResult* _tmp5_;
-#line 2046 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2067 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp0_ = self->completed_import_source;
-#line 2046 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2067 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp1_ = _tmp0_->source;
-#line 2046 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2067 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp2_ = self->completed_import_source;
-#line 2046 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2067 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp3_ = _tmp2_->thumbnails;
-#line 2046 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2067 "/home/jens/Source/shotwell/src/BatchImport.vala"
thumbnail_cache_import_thumbnails (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), _tmp3_, TRUE, &_inner_error_);
-#line 2046 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2067 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 16866 "BatchImport.c"
- goto __catch424_g_error;
+#line 17469 "BatchImport.c"
+ goto __catch436_g_error;
}
-#line 2048 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2069 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp4_ = self->completed_import_source;
-#line 2048 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2069 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp5_ = _tmp4_->batch_result;
-#line 2048 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2069 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp5_->result = IMPORT_RESULT_SUCCESS;
-#line 16875 "BatchImport.c"
+#line 17478 "BatchImport.c"
}
- goto __finally424;
- __catch424_g_error:
+ goto __finally436;
+ __catch436_g_error:
{
GError* err = NULL;
CompletedImportObject* _tmp6_;
BatchImportResult* _tmp7_;
GError* _tmp8_;
- ImportResult _tmp9_;
-#line 2045 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2066 "/home/jens/Source/shotwell/src/BatchImport.vala"
err = _inner_error_;
-#line 2045 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2066 "/home/jens/Source/shotwell/src/BatchImport.vala"
_inner_error_ = NULL;
-#line 2050 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2071 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp6_ = self->completed_import_source;
-#line 2050 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2071 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp7_ = _tmp6_->batch_result;
-#line 2050 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2071 "/home/jens/Source/shotwell/src/BatchImport.vala"
_tmp8_ = err;
-#line 2050 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp9_ = import_result_convert_error (_tmp8_, IMPORT_RESULT_FILE_ERROR);
-#line 2050 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp7_->result = _tmp9_;
-#line 2045 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2071 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp7_->result = import_result_convert_error (_tmp8_, IMPORT_RESULT_FILE_ERROR);
+#line 2066 "/home/jens/Source/shotwell/src/BatchImport.vala"
_g_error_free0 (err);
-#line 16901 "BatchImport.c"
+#line 17501 "BatchImport.c"
}
- __finally424:
-#line 2045 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ __finally436:
+#line 2066 "/home/jens/Source/shotwell/src/BatchImport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2045 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2066 "/home/jens/Source/shotwell/src/BatchImport.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 2045 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2066 "/home/jens/Source/shotwell/src/BatchImport.vala"
g_clear_error (&_inner_error_);
-#line 2045 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2066 "/home/jens/Source/shotwell/src/BatchImport.vala"
return;
-#line 16912 "BatchImport.c"
+#line 17512 "BatchImport.c"
}
-#line 2055 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_ = self->completed_import_source;
-#line 2055 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _thumbnails_unref0 (_tmp10_->thumbnails);
-#line 2055 "/home/jens/Source/shotwell/src/BatchImport.vala"
- _tmp10_->thumbnails = NULL;
-#line 16920 "BatchImport.c"
+#line 2076 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp9_ = self->completed_import_source;
+#line 2076 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _thumbnails_unref0 (_tmp9_->thumbnails);
+#line 2076 "/home/jens/Source/shotwell/src/BatchImport.vala"
+ _tmp9_->thumbnails = NULL;
+#line 17520 "BatchImport.c"
}
-static void thumbnail_writer_job_class_init (ThumbnailWriterJobClass * klass) {
-#line 2031 "/home/jens/Source/shotwell/src/BatchImport.vala"
+static void
+thumbnail_writer_job_class_init (ThumbnailWriterJobClass * klass)
+{
+#line 2052 "/home/jens/Source/shotwell/src/BatchImport.vala"
thumbnail_writer_job_parent_class = g_type_class_peek_parent (klass);
-#line 2031 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2052 "/home/jens/Source/shotwell/src/BatchImport.vala"
((BackgroundJobClass *) klass)->finalize = thumbnail_writer_job_finalize;
-#line 2031 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2052 "/home/jens/Source/shotwell/src/BatchImport.vala"
((BackgroundJobClass *) klass)->execute = (void (*) (BackgroundJob *)) thumbnail_writer_job_real_execute;
-#line 16931 "BatchImport.c"
+#line 17533 "BatchImport.c"
}
-static void thumbnail_writer_job_instance_init (ThumbnailWriterJob * self) {
+static void
+thumbnail_writer_job_instance_init (ThumbnailWriterJob * self)
+{
}
-static void thumbnail_writer_job_finalize (BackgroundJob * obj) {
+static void
+thumbnail_writer_job_finalize (BackgroundJob * obj)
+{
ThumbnailWriterJob * self;
-#line 2031 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2052 "/home/jens/Source/shotwell/src/BatchImport.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_THUMBNAIL_WRITER_JOB, ThumbnailWriterJob);
-#line 2032 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2053 "/home/jens/Source/shotwell/src/BatchImport.vala"
_completed_import_object_unref0 (self->completed_import_source);
-#line 2031 "/home/jens/Source/shotwell/src/BatchImport.vala"
+#line 2052 "/home/jens/Source/shotwell/src/BatchImport.vala"
BACKGROUND_JOB_CLASS (thumbnail_writer_job_parent_class)->finalize (obj);
-#line 16947 "BatchImport.c"
+#line 17553 "BatchImport.c"
}
-GType thumbnail_writer_job_get_type (void) {
+GType
+thumbnail_writer_job_get_type (void)
+{
static volatile gsize thumbnail_writer_job_type_id__volatile = 0;
if (g_once_init_enter (&thumbnail_writer_job_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (ThumbnailWriterJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) thumbnail_writer_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ThumbnailWriterJob), 0, (GInstanceInitFunc) thumbnail_writer_job_instance_init, NULL };