summaryrefslogtreecommitdiff
path: root/src/data_imports
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2016-08-20 15:09:31 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2016-08-20 15:09:31 +0200
commit143bfc9f801c84428074312d661f8e08803df83b (patch)
tree59a8a447529bd9ce3807aa8bacef861dc5aafd70 /src/data_imports
parent29a7aef998e975b42401cfa96d1b750d91eadf06 (diff)
Imported Upstream version 0.23.5upstream/0.23.5
Diffstat (limited to 'src/data_imports')
-rw-r--r--src/data_imports/DataImportJob.c1754
-rw-r--r--src/data_imports/DataImportSource.c1425
-rw-r--r--src/data_imports/DataImports.c117
-rw-r--r--src/data_imports/DataImportsPluginHost.c3451
-rw-r--r--src/data_imports/DataImportsUI.c2693
-rw-r--r--src/data_imports/mk/data_imports.mk31
6 files changed, 9440 insertions, 31 deletions
diff --git a/src/data_imports/DataImportJob.c b/src/data_imports/DataImportJob.c
new file mode 100644
index 0000000..1cef36b
--- /dev/null
+++ b/src/data_imports/DataImportJob.c
@@ -0,0 +1,1754 @@
+/* DataImportJob.c generated by valac 0.32.1, the Vala compiler
+ * generated from DataImportJob.vala, do not modify */
+
+/* Copyright 2016 Software Freedom Conservancy Inc.
+ *
+ * This software is licensed under the GNU LGPL (version 2.1 or later).
+ * See the COPYING file in this distribution.
+ */
+
+#include <glib.h>
+#include <glib-object.h>
+#include <stdlib.h>
+#include <string.h>
+#include <gio/gio.h>
+#include <time.h>
+#include "shotwell-plugin-dev-1.0.h"
+#include <gee.h>
+
+
+#define TYPE_BATCH_IMPORT_JOB (batch_import_job_get_type ())
+#define BATCH_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT_JOB, BatchImportJob))
+#define BATCH_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT_JOB, BatchImportJobClass))
+#define IS_BATCH_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT_JOB))
+#define IS_BATCH_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT_JOB))
+#define BATCH_IMPORT_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT_JOB, BatchImportJobClass))
+
+typedef struct _BatchImportJob BatchImportJob;
+typedef struct _BatchImportJobClass BatchImportJobClass;
+typedef struct _BatchImportJobPrivate BatchImportJobPrivate;
+
+#define TYPE_DUPLICATED_FILE (duplicated_file_get_type ())
+#define DUPLICATED_FILE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DUPLICATED_FILE, DuplicatedFile))
+#define DUPLICATED_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DUPLICATED_FILE, DuplicatedFileClass))
+#define IS_DUPLICATED_FILE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DUPLICATED_FILE))
+#define IS_DUPLICATED_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DUPLICATED_FILE))
+#define DUPLICATED_FILE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DUPLICATED_FILE, DuplicatedFileClass))
+
+typedef struct _DuplicatedFile DuplicatedFile;
+typedef struct _DuplicatedFileClass DuplicatedFileClass;
+
+#define TYPE_DATA_OBJECT (data_object_get_type ())
+#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject))
+#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass))
+#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
+#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
+#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
+
+typedef struct _DataObject DataObject;
+typedef struct _DataObjectClass DataObjectClass;
+
+#define TYPE_DATA_SOURCE (data_source_get_type ())
+#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
+#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
+#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
+#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
+#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
+
+typedef struct _DataSource DataSource;
+typedef struct _DataSourceClass DataSourceClass;
+
+#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ())
+#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource))
+#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
+#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
+#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
+#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
+
+typedef struct _ThumbnailSource ThumbnailSource;
+typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
+
+#define TYPE_MEDIA_SOURCE (media_source_get_type ())
+#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource))
+#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass))
+#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE))
+#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE))
+#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass))
+
+typedef struct _MediaSource MediaSource;
+typedef struct _MediaSourceClass MediaSourceClass;
+
+#define TYPE_BATCH_IMPORT_ROLL (batch_import_roll_get_type ())
+#define BATCH_IMPORT_ROLL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT_ROLL, BatchImportRoll))
+#define BATCH_IMPORT_ROLL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT_ROLL, BatchImportRollClass))
+#define IS_BATCH_IMPORT_ROLL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT_ROLL))
+#define IS_BATCH_IMPORT_ROLL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT_ROLL))
+#define BATCH_IMPORT_ROLL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT_ROLL, BatchImportRollClass))
+
+typedef struct _BatchImportRoll BatchImportRoll;
+typedef struct _BatchImportRollClass BatchImportRollClass;
+
+#define SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB (spit_data_imports_data_import_job_get_type ())
+#define SPIT_DATA_IMPORTS_DATA_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJob))
+#define SPIT_DATA_IMPORTS_DATA_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJobClass))
+#define SPIT_DATA_IMPORTS_IS_DATA_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB))
+#define SPIT_DATA_IMPORTS_IS_DATA_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB))
+#define SPIT_DATA_IMPORTS_DATA_IMPORT_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJobClass))
+
+typedef struct _SpitDataImportsDataImportJob SpitDataImportsDataImportJob;
+typedef struct _SpitDataImportsDataImportJobClass SpitDataImportsDataImportJobClass;
+typedef struct _SpitDataImportsDataImportJobPrivate SpitDataImportsDataImportJobPrivate;
+
+#define SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE (spit_data_imports_data_import_source_get_type ())
+#define SPIT_DATA_IMPORTS_DATA_IMPORT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE, SpitDataImportsDataImportSource))
+#define SPIT_DATA_IMPORTS_DATA_IMPORT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE, SpitDataImportsDataImportSourceClass))
+#define SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE))
+#define SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE))
+#define SPIT_DATA_IMPORTS_DATA_IMPORT_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE, SpitDataImportsDataImportSourceClass))
+
+typedef struct _SpitDataImportsDataImportSource SpitDataImportsDataImportSource;
+typedef struct _SpitDataImportsDataImportSourceClass SpitDataImportsDataImportSourceClass;
+
+#define TYPE_HIERARCHICAL_TAG_INDEX (hierarchical_tag_index_get_type ())
+#define HIERARCHICAL_TAG_INDEX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndex))
+#define HIERARCHICAL_TAG_INDEX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndexClass))
+#define IS_HIERARCHICAL_TAG_INDEX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_HIERARCHICAL_TAG_INDEX))
+#define IS_HIERARCHICAL_TAG_INDEX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_HIERARCHICAL_TAG_INDEX))
+#define HIERARCHICAL_TAG_INDEX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndexClass))
+
+typedef struct _HierarchicalTagIndex HierarchicalTagIndex;
+typedef struct _HierarchicalTagIndexClass HierarchicalTagIndexClass;
+#define _spit_data_imports_data_import_source_unref0(var) ((var == NULL) ? NULL : (var = (spit_data_imports_data_import_source_unref (var), NULL)))
+#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
+#define _batch_import_job_unref0(var) ((var == NULL) ? NULL : (var = (batch_import_job_unref (var), NULL)))
+#define _hierarchical_tag_index_unref0(var) ((var == NULL) ? NULL : (var = (hierarchical_tag_index_unref (var), NULL)))
+#define _g_free0(var) (var = (g_free (var), NULL))
+
+#define TYPE_PHOTO_SOURCE (photo_source_get_type ())
+#define PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_SOURCE, PhotoSource))
+#define PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_SOURCE, PhotoSourceClass))
+#define IS_PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_SOURCE))
+#define IS_PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_SOURCE))
+#define PHOTO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_SOURCE, PhotoSourceClass))
+
+typedef struct _PhotoSource PhotoSource;
+typedef struct _PhotoSourceClass PhotoSourceClass;
+
+#define TYPE_PHOTO (photo_get_type ())
+#define PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO, Photo))
+#define PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO, PhotoClass))
+#define IS_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO))
+#define IS_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO))
+#define PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO, PhotoClass))
+
+typedef struct _Photo Photo;
+typedef struct _PhotoClass PhotoClass;
+
+#define TYPE_LIBRARY_PHOTO (library_photo_get_type ())
+#define LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO, LibraryPhoto))
+#define LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO, LibraryPhotoClass))
+#define IS_LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO))
+#define IS_LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO))
+#define LIBRARY_PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO, LibraryPhotoClass))
+
+typedef struct _LibraryPhoto LibraryPhoto;
+typedef struct _LibraryPhotoClass LibraryPhotoClass;
+
+#define TYPE_TAG (tag_get_type ())
+#define TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG, Tag))
+#define TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG, TagClass))
+#define IS_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG))
+#define IS_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG))
+#define TAG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG, TagClass))
+
+typedef struct _Tag Tag;
+typedef struct _TagClass TagClass;
+
+#define TYPE_DATA_COLLECTION (data_collection_get_type ())
+#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
+#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
+#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
+#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
+#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
+
+typedef struct _DataCollection DataCollection;
+typedef struct _DataCollectionClass DataCollectionClass;
+
+#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
+#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
+#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
+#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
+#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
+#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
+
+typedef struct _SourceCollection SourceCollection;
+typedef struct _SourceCollectionClass SourceCollectionClass;
+
+#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ())
+#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection))
+#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
+#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION))
+#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION))
+#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
+
+typedef struct _DatabaseSourceCollection DatabaseSourceCollection;
+typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass;
+
+#define TYPE_CONTAINER_SOURCE_COLLECTION (container_source_collection_get_type ())
+#define CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection))
+#define CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass))
+#define IS_CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE_COLLECTION))
+#define IS_CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONTAINER_SOURCE_COLLECTION))
+#define CONTAINER_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass))
+
+typedef struct _ContainerSourceCollection ContainerSourceCollection;
+typedef struct _ContainerSourceCollectionClass ContainerSourceCollectionClass;
+
+#define TYPE_TAG_SOURCE_COLLECTION (tag_source_collection_get_type ())
+#define TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollection))
+#define TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass))
+#define IS_TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_SOURCE_COLLECTION))
+#define IS_TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_SOURCE_COLLECTION))
+#define TAG_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass))
+
+typedef struct _TagSourceCollection TagSourceCollection;
+typedef struct _TagSourceCollectionClass TagSourceCollectionClass;
+
+#define TYPE_PREPARE_INPUT_TEXT_OPTIONS (prepare_input_text_options_get_type ())
+
+#define TYPE_VIEW_COLLECTION (view_collection_get_type ())
+#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection))
+#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass))
+#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION))
+#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION))
+#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass))
+
+typedef struct _ViewCollection ViewCollection;
+typedef struct _ViewCollectionClass ViewCollectionClass;
+typedef struct _BatchImportRollPrivate BatchImportRollPrivate;
+
+#define TYPE_IMPORT_ID (import_id_get_type ())
+typedef struct _ImportID ImportID;
+
+#define TYPE_RATING (rating_get_type ())
+
+#define TYPE_DATEABLE (dateable_get_type ())
+#define DATEABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATEABLE, Dateable))
+#define IS_DATEABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATEABLE))
+#define DATEABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_DATEABLE, DateableIface))
+
+typedef struct _Dateable Dateable;
+typedef struct _DateableIface DateableIface;
+#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
+#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
+#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
+#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
+
+struct _BatchImportJob {
+ GTypeInstance parent_instance;
+ volatile int ref_count;
+ BatchImportJobPrivate * priv;
+};
+
+struct _BatchImportJobClass {
+ GTypeClass parent_class;
+ void (*finalize) (BatchImportJob *self);
+ gchar* (*get_dest_identifier) (BatchImportJob* self);
+ gchar* (*get_source_identifier) (BatchImportJob* self);
+ gboolean (*is_directory) (BatchImportJob* self);
+ gchar* (*get_basename) (BatchImportJob* self);
+ gchar* (*get_path) (BatchImportJob* self);
+ DuplicatedFile* (*get_duplicated_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);
+};
+
+struct _SpitDataImportsDataImportJob {
+ BatchImportJob parent_instance;
+ SpitDataImportsDataImportJobPrivate * priv;
+};
+
+struct _SpitDataImportsDataImportJobClass {
+ BatchImportJobClass parent_class;
+};
+
+struct _SpitDataImportsDataImportJobPrivate {
+ SpitDataImportsDataImportSource* import_source;
+ GFile* src_file;
+ guint64 filesize;
+ time_t exposure_time;
+ SpitDataImportsDataImportJob* associated;
+ HierarchicalTagIndex* detected_htags;
+};
+
+typedef enum {
+ PREPARE_INPUT_TEXT_OPTIONS_EMPTY_IS_NULL = 1 << 0,
+ PREPARE_INPUT_TEXT_OPTIONS_VALIDATE = 1 << 1,
+ PREPARE_INPUT_TEXT_OPTIONS_INVALID_IS_NULL = 1 << 2,
+ PREPARE_INPUT_TEXT_OPTIONS_STRIP = 1 << 3,
+ PREPARE_INPUT_TEXT_OPTIONS_STRIP_CRLF = 1 << 4,
+ PREPARE_INPUT_TEXT_OPTIONS_NORMALIZE = 1 << 5,
+ PREPARE_INPUT_TEXT_OPTIONS_DEFAULT = ((((PREPARE_INPUT_TEXT_OPTIONS_EMPTY_IS_NULL | PREPARE_INPUT_TEXT_OPTIONS_VALIDATE) | PREPARE_INPUT_TEXT_OPTIONS_INVALID_IS_NULL) | PREPARE_INPUT_TEXT_OPTIONS_STRIP_CRLF) | PREPARE_INPUT_TEXT_OPTIONS_STRIP) | PREPARE_INPUT_TEXT_OPTIONS_NORMALIZE
+} PrepareInputTextOptions;
+
+struct _ImportID {
+ gint64 id;
+};
+
+struct _BatchImportRoll {
+ GTypeInstance parent_instance;
+ volatile int ref_count;
+ BatchImportRollPrivate * priv;
+ ImportID import_id;
+ ViewCollection* generated_events;
+};
+
+struct _BatchImportRollClass {
+ GTypeClass parent_class;
+ void (*finalize) (BatchImportRoll *self);
+};
+
+typedef enum {
+ RATING_REJECTED = -1,
+ RATING_UNRATED = 0,
+ RATING_ONE = 1,
+ RATING_TWO = 2,
+ RATING_THREE = 3,
+ RATING_FOUR = 4,
+ RATING_FIVE = 5
+} Rating;
+
+struct _DateableIface {
+ GTypeInterface parent_iface;
+ void (*set_exposure_time) (Dateable* self, time_t target_time);
+ time_t (*get_exposure_time) (Dateable* self);
+};
+
+
+static gpointer spit_data_imports_data_import_job_parent_class = NULL;
+extern TagSourceCollection* tag_global;
+
+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);
+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;
+GType data_object_get_type (void) G_GNUC_CONST;
+GType data_source_get_type (void) G_GNUC_CONST;
+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);
+gpointer value_get_batch_import_roll (const GValue* value);
+GType batch_import_roll_get_type (void) G_GNUC_CONST;
+GType spit_data_imports_data_import_job_get_type (void) G_GNUC_CONST;
+gpointer spit_data_imports_data_import_source_ref (gpointer instance);
+void spit_data_imports_data_import_source_unref (gpointer instance);
+GParamSpec* spit_data_imports_param_spec_data_import_source (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void spit_data_imports_value_set_data_import_source (GValue* value, gpointer v_object);
+void spit_data_imports_value_take_data_import_source (GValue* value, gpointer v_object);
+gpointer spit_data_imports_value_get_data_import_source (const GValue* value);
+GType spit_data_imports_data_import_source_get_type (void) G_GNUC_CONST;
+gpointer hierarchical_tag_index_ref (gpointer instance);
+void hierarchical_tag_index_unref (gpointer instance);
+GParamSpec* param_spec_hierarchical_tag_index (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void value_set_hierarchical_tag_index (GValue* value, gpointer v_object);
+void value_take_hierarchical_tag_index (GValue* value, gpointer v_object);
+gpointer value_get_hierarchical_tag_index (const GValue* value);
+GType hierarchical_tag_index_get_type (void) G_GNUC_CONST;
+#define SPIT_DATA_IMPORTS_DATA_IMPORT_JOB_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJobPrivate))
+enum {
+ SPIT_DATA_IMPORTS_DATA_IMPORT_JOB_DUMMY_PROPERTY
+};
+SpitDataImportsDataImportJob* spit_data_imports_data_import_job_new (SpitDataImportsDataImportSource* import_source);
+SpitDataImportsDataImportJob* spit_data_imports_data_import_job_construct (GType object_type, SpitDataImportsDataImportSource* import_source);
+BatchImportJob* batch_import_job_construct (GType object_type);
+GFile* spit_data_imports_data_import_source_get_file (SpitDataImportsDataImportSource* self);
+guint64 spit_data_imports_data_import_source_get_filesize (SpitDataImportsDataImportSource* self);
+time_t spit_data_imports_data_import_source_get_exposure_time (SpitDataImportsDataImportSource* self);
+static HierarchicalTagIndex* spit_data_imports_data_import_job_build_exclusion_index (SpitDataImportsDataImportJob* self, SpitDataImportsImportableTag** src_tags, int src_tags_length1);
+gchar* hierarchical_tag_utilities_join_path_components (gchar** path_components, int path_components_length1);
+gchar** tag_prep_tag_names (gchar** names, int names_length1, int* result_length1);
+static gchar** spit_data_imports_data_import_job_build_path_components (SpitDataImportsDataImportJob* self, SpitDataImportsImportableTag* tag, int* result_length1);
+#define TAG_PATH_SEPARATOR_STRING "/"
+GeeList* hierarchical_tag_utilities_enumerate_parent_paths (const gchar* in_path);
+HierarchicalTagIndex* hierarchical_tag_index_from_paths (GeeCollection* client_paths);
+time_t spit_data_imports_data_import_job_get_exposure_time (SpitDataImportsDataImportJob* self);
+static gchar* spit_data_imports_data_import_job_real_get_dest_identifier (BatchImportJob* base);
+gchar* spit_data_imports_data_import_source_get_filename (SpitDataImportsDataImportSource* self);
+static gchar* spit_data_imports_data_import_job_real_get_source_identifier (BatchImportJob* base);
+static gboolean spit_data_imports_data_import_job_real_is_directory (BatchImportJob* base);
+static gchar* spit_data_imports_data_import_job_real_get_basename (BatchImportJob* base);
+static gchar* spit_data_imports_data_import_job_real_get_path (BatchImportJob* base);
+static void spit_data_imports_data_import_job_real_set_associated (BatchImportJob* base, BatchImportJob* associated);
+static gboolean spit_data_imports_data_import_job_real_determine_file_size (BatchImportJob* base, guint64* filesize, GFile** file);
+static gboolean spit_data_imports_data_import_job_real_prepare (BatchImportJob* base, GFile** file_to_import, gboolean* copy_to_library, GError** error);
+SpitDataImportsImportableMediaItem* spit_data_imports_data_import_source_get_photo (SpitDataImportsDataImportSource* self);
+static gboolean spit_data_imports_data_import_job_real_complete (BatchImportJob* base, MediaSource* source, BatchImportRoll* import_roll, GError** error);
+GType photo_source_get_type (void) G_GNUC_CONST;
+GType photo_get_type (void) G_GNUC_CONST;
+GType library_photo_get_type (void) G_GNUC_CONST;
+GeeCollection* hierarchical_tag_index_get_all_paths (HierarchicalTagIndex* self);
+GType tag_get_type (void) G_GNUC_CONST;
+Tag* tag_for_path (const gchar* name);
+GeeList* hierarchical_tag_utilities_enumerate_path_components (const gchar* in_path);
+gchar* hierarchical_tag_utilities_hierarchical_to_flat (const gchar* path);
+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);
+gpointer value_get_data_collection (const GValue* value);
+GType data_collection_get_type (void) G_GNUC_CONST;
+GType source_collection_get_type (void) G_GNUC_CONST;
+GType database_source_collection_get_type (void) G_GNUC_CONST;
+GType container_source_collection_get_type (void) G_GNUC_CONST;
+GType tag_source_collection_get_type (void) G_GNUC_CONST;
+gboolean tag_source_collection_exists (TagSourceCollection* self, const gchar* name, gboolean treat_htags_as_root);
+void tag_promote (Tag* self);
+void tag_attach (Tag* self, MediaSource* source);
+GType prepare_input_text_options_get_type (void) G_GNUC_CONST;
+gchar* prepare_input_text (const gchar* text, PrepareInputTextOptions options, gint dest_length);
+GType view_collection_get_type (void) G_GNUC_CONST;
+void event_generate_single_event (MediaSource* media, ViewCollection* events_so_far, const gchar* event_name);
+GType import_id_get_type (void) G_GNUC_CONST;
+ImportID* import_id_dup (const ImportID* self);
+void import_id_free (ImportID* self);
+GType rating_get_type (void) G_GNUC_CONST;
+Rating rating_unserialize (gint value);
+void media_source_set_rating (MediaSource* self, Rating rating);
+void media_source_set_title (MediaSource* self, const gchar* title);
+GType dateable_get_type (void) G_GNUC_CONST;
+void dateable_set_exposure_time (Dateable* self, time_t target_time);
+void photo_set_import_id (Photo* self, ImportID* import_id);
+gchar* hierarchical_tag_utilities_make_flat_tag_safe (const gchar* in_tag);
+static void spit_data_imports_data_import_job_finalize (BatchImportJob* obj);
+static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
+static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);
+
+
+static gpointer _spit_data_imports_data_import_source_ref0 (gpointer self) {
+#line 21 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ return self ? spit_data_imports_data_import_source_ref (self) : NULL;
+#line 443 "DataImportJob.c"
+}
+
+
+SpitDataImportsDataImportJob* spit_data_imports_data_import_job_construct (GType object_type, SpitDataImportsDataImportSource* import_source) {
+ SpitDataImportsDataImportJob* self = NULL;
+ SpitDataImportsDataImportSource* _tmp0_ = NULL;
+ SpitDataImportsDataImportSource* _tmp1_ = NULL;
+ SpitDataImportsDataImportSource* _tmp2_ = NULL;
+ GFile* _tmp3_ = NULL;
+ SpitDataImportsDataImportSource* _tmp4_ = NULL;
+ guint64 _tmp5_ = 0ULL;
+ SpitDataImportsDataImportSource* _tmp6_ = NULL;
+ time_t _tmp7_ = 0;
+#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE (import_source), NULL);
+#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ self = (SpitDataImportsDataImportJob*) batch_import_job_construct (object_type);
+#line 21 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp0_ = import_source;
+#line 21 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp1_ = _spit_data_imports_data_import_source_ref0 (_tmp0_);
+#line 21 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _spit_data_imports_data_import_source_unref0 (self->priv->import_source);
+#line 21 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ self->priv->import_source = _tmp1_;
+#line 24 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp2_ = import_source;
+#line 24 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp3_ = spit_data_imports_data_import_source_get_file (_tmp2_);
+#line 24 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _g_object_unref0 (self->priv->src_file);
+#line 24 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ self->priv->src_file = _tmp3_;
+#line 25 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp4_ = import_source;
+#line 25 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp5_ = spit_data_imports_data_import_source_get_filesize (_tmp4_);
+#line 25 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ self->priv->filesize = _tmp5_;
+#line 26 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp6_ = import_source;
+#line 26 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp7_ = spit_data_imports_data_import_source_get_exposure_time (_tmp6_);
+#line 26 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ self->priv->exposure_time = _tmp7_;
+#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ return self;
+#line 491 "DataImportJob.c"
+}
+
+
+SpitDataImportsDataImportJob* spit_data_imports_data_import_job_new (SpitDataImportsDataImportSource* import_source) {
+#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ return spit_data_imports_data_import_job_construct (SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, import_source);
+#line 498 "DataImportJob.c"
+}
+
+
+static gpointer _g_object_ref0 (gpointer self) {
+#line 32 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ return self ? g_object_ref (self) : NULL;
+#line 505 "DataImportJob.c"
+}
+
+
+static HierarchicalTagIndex* spit_data_imports_data_import_job_build_exclusion_index (SpitDataImportsDataImportJob* self, SpitDataImportsImportableTag** src_tags, int src_tags_length1) {
+ HierarchicalTagIndex* result = NULL;
+ GeeSet* detected_htags = NULL;
+ GeeHashSet* _tmp0_ = NULL;
+ SpitDataImportsImportableTag** _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+ HierarchicalTagIndex* _tmp33_ = NULL;
+ GeeSet* _tmp34_ = NULL;
+ gint _tmp35_ = 0;
+ gint _tmp36_ = 0;
+#line 29 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORT_JOB (self), NULL);
+#line 30 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp0_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL, NULL, NULL, NULL, NULL, NULL);
+#line 30 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ detected_htags = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_SET, GeeSet);
+#line 32 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp1_ = src_tags;
+#line 32 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp1__length1 = src_tags_length1;
+#line 529 "DataImportJob.c"
+ {
+ SpitDataImportsImportableTag** src_tag_collection = NULL;
+ gint src_tag_collection_length1 = 0;
+ gint _src_tag_collection_size_ = 0;
+ gint src_tag_it = 0;
+#line 32 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ src_tag_collection = _tmp1_;
+#line 32 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ src_tag_collection_length1 = _tmp1__length1;
+#line 32 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ for (src_tag_it = 0; src_tag_it < _tmp1__length1; src_tag_it = src_tag_it + 1) {
+#line 541 "DataImportJob.c"
+ SpitDataImportsImportableTag* _tmp2_ = NULL;
+ SpitDataImportsImportableTag* src_tag = NULL;
+#line 32 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp2_ = _g_object_ref0 (src_tag_collection[src_tag_it]);
+#line 32 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ src_tag = _tmp2_;
+#line 548 "DataImportJob.c"
+ {
+ gchar* prepped = NULL;
+ SpitDataImportsImportableTag* _tmp3_ = NULL;
+ gint _tmp4_ = 0;
+ gchar** _tmp5_ = NULL;
+ gchar** _tmp6_ = NULL;
+ gint _tmp6__length1 = 0;
+ gint _tmp7_ = 0;
+ gchar** _tmp8_ = NULL;
+ gchar** _tmp9_ = NULL;
+ gint _tmp9__length1 = 0;
+ gchar* _tmp10_ = NULL;
+ gchar* _tmp11_ = NULL;
+ gboolean _tmp12_ = FALSE;
+ const gchar* _tmp13_ = NULL;
+#line 33 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp3_ = src_tag;
+#line 33 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp5_ = spit_data_imports_data_import_job_build_path_components (self, _tmp3_, &_tmp4_);
+#line 33 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp6_ = _tmp5_;
+#line 33 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp6__length1 = _tmp4_;
+#line 33 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp8_ = tag_prep_tag_names (_tmp6_, _tmp4_, &_tmp7_);
+#line 33 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp9_ = _tmp8_;
+#line 33 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp9__length1 = _tmp7_;
+#line 33 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp10_ = hierarchical_tag_utilities_join_path_components (_tmp9_, _tmp7_);
+#line 33 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp11_ = _tmp10_;
+#line 33 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp9_ = (_vala_array_free (_tmp9_, _tmp9__length1, (GDestroyNotify) g_free), NULL);
+#line 33 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp6_ = (_vala_array_free (_tmp6_, _tmp6__length1, (GDestroyNotify) g_free), NULL);
+#line 33 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ prepped = _tmp11_;
+#line 39 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp13_ = prepped;
+#line 39 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ if (_tmp13_ != NULL) {
+#line 592 "DataImportJob.c"
+ const gchar* _tmp14_ = NULL;
+ gboolean _tmp15_ = FALSE;
+#line 39 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp14_ = prepped;
+#line 39 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp15_ = g_str_has_prefix (_tmp14_, TAG_PATH_SEPARATOR_STRING);
+#line 39 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp12_ = _tmp15_;
+#line 601 "DataImportJob.c"
+ } else {
+#line 39 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp12_ = FALSE;
+#line 605 "DataImportJob.c"
+ }
+#line 39 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ if (_tmp12_) {
+#line 609 "DataImportJob.c"
+ GeeSet* _tmp16_ = NULL;
+ const gchar* _tmp17_ = NULL;
+ GeeList* parents = NULL;
+ const gchar* _tmp18_ = NULL;
+ GeeList* _tmp19_ = NULL;
+#line 40 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp16_ = detected_htags;
+#line 40 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp17_ = prepped;
+#line 40 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_COLLECTION, GeeCollection), _tmp17_);
+#line 42 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp18_ = prepped;
+#line 42 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp19_ = hierarchical_tag_utilities_enumerate_parent_paths (_tmp18_);
+#line 42 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ parents = _tmp19_;
+#line 627 "DataImportJob.c"
+ {
+ GeeList* _parent_list = NULL;
+ GeeList* _tmp20_ = NULL;
+ GeeList* _tmp21_ = NULL;
+ gint _parent_size = 0;
+ GeeList* _tmp22_ = NULL;
+ gint _tmp23_ = 0;
+ gint _tmp24_ = 0;
+ gint _parent_index = 0;
+#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp20_ = parents;
+#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp21_ = _g_object_ref0 (_tmp20_);
+#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _parent_list = _tmp21_;
+#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp22_ = _parent_list;
+#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp23_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GEE_TYPE_COLLECTION, GeeCollection));
+#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp24_ = _tmp23_;
+#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _parent_size = _tmp24_;
+#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _parent_index = -1;
+#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ while (TRUE) {
+#line 655 "DataImportJob.c"
+ gint _tmp25_ = 0;
+ gint _tmp26_ = 0;
+ gint _tmp27_ = 0;
+ gchar* parent = NULL;
+ GeeList* _tmp28_ = NULL;
+ gint _tmp29_ = 0;
+ gpointer _tmp30_ = NULL;
+ GeeSet* _tmp31_ = NULL;
+ const gchar* _tmp32_ = NULL;
+#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp25_ = _parent_index;
+#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _parent_index = _tmp25_ + 1;
+#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp26_ = _parent_index;
+#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp27_ = _parent_size;
+#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ if (!(_tmp26_ < _tmp27_)) {
+#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ break;
+#line 677 "DataImportJob.c"
+ }
+#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp28_ = _parent_list;
+#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp29_ = _parent_index;
+#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp30_ = gee_list_get (_tmp28_, _tmp29_);
+#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ parent = (gchar*) _tmp30_;
+#line 44 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp31_ = detected_htags;
+#line 44 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp32_ = parent;
+#line 44 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, GEE_TYPE_COLLECTION, GeeCollection), _tmp32_);
+#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _g_free0 (parent);
+#line 695 "DataImportJob.c"
+ }
+#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _g_object_unref0 (_parent_list);
+#line 699 "DataImportJob.c"
+ }
+#line 39 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _g_object_unref0 (parents);
+#line 703 "DataImportJob.c"
+ }
+#line 32 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _g_free0 (prepped);
+#line 32 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _g_object_unref0 (src_tag);
+#line 709 "DataImportJob.c"
+ }
+ }
+ }
+#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp34_ = detected_htags;
+#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp35_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, GEE_TYPE_COLLECTION, GeeCollection));
+#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp36_ = _tmp35_;
+#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ if (_tmp36_ > 0) {
+#line 721 "DataImportJob.c"
+ GeeSet* _tmp37_ = NULL;
+ HierarchicalTagIndex* _tmp38_ = NULL;
+#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp37_ = detected_htags;
+#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp38_ = hierarchical_tag_index_from_paths (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, GEE_TYPE_COLLECTION, GeeCollection));
+#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _hierarchical_tag_index_unref0 (_tmp33_);
+#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp33_ = _tmp38_;
+#line 732 "DataImportJob.c"
+ } else {
+#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _hierarchical_tag_index_unref0 (_tmp33_);
+#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp33_ = NULL;
+#line 738 "DataImportJob.c"
+ }
+#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ result = _tmp33_;
+#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _g_object_unref0 (detected_htags);
+#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ return result;
+#line 746 "DataImportJob.c"
+}
+
+
+time_t spit_data_imports_data_import_job_get_exposure_time (SpitDataImportsDataImportJob* self) {
+ time_t result = 0;
+ time_t _tmp0_ = 0;
+#line 51 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORT_JOB (self), 0);
+#line 52 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp0_ = self->priv->exposure_time;
+#line 52 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ result = _tmp0_;
+#line 52 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ return result;
+#line 761 "DataImportJob.c"
+}
+
+
+static gchar* spit_data_imports_data_import_job_real_get_dest_identifier (BatchImportJob* base) {
+ SpitDataImportsDataImportJob * self;
+ gchar* result = NULL;
+ SpitDataImportsDataImportSource* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 55 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJob);
+#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp0_ = self->priv->import_source;
+#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp1_ = spit_data_imports_data_import_source_get_filename (_tmp0_);
+#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ result = _tmp1_;
+#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ return result;
+#line 780 "DataImportJob.c"
+}
+
+
+static gchar* spit_data_imports_data_import_job_real_get_source_identifier (BatchImportJob* base) {
+ SpitDataImportsDataImportJob * self;
+ gchar* result = NULL;
+ SpitDataImportsDataImportSource* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJob);
+#line 60 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp0_ = self->priv->import_source;
+#line 60 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp1_ = spit_data_imports_data_import_source_get_filename (_tmp0_);
+#line 60 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ result = _tmp1_;
+#line 60 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ return result;
+#line 799 "DataImportJob.c"
+}
+
+
+static gboolean spit_data_imports_data_import_job_real_is_directory (BatchImportJob* base) {
+ SpitDataImportsDataImportJob * self;
+ gboolean result = FALSE;
+#line 63 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJob);
+#line 64 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ result = FALSE;
+#line 64 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ return result;
+#line 812 "DataImportJob.c"
+}
+
+
+static gchar* spit_data_imports_data_import_job_real_get_basename (BatchImportJob* base) {
+ SpitDataImportsDataImportJob * self;
+ gchar* result = NULL;
+ GFile* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 67 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJob);
+#line 68 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp0_ = self->priv->src_file;
+#line 68 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp1_ = g_file_get_basename (_tmp0_);
+#line 68 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ result = _tmp1_;
+#line 68 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ return result;
+#line 831 "DataImportJob.c"
+}
+
+
+static gchar* spit_data_imports_data_import_job_real_get_path (BatchImportJob* base) {
+ SpitDataImportsDataImportJob * self;
+ gchar* result = NULL;
+ GFile* _tmp0_ = NULL;
+ GFile* _tmp1_ = NULL;
+ GFile* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+#line 71 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJob);
+#line 72 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp0_ = self->priv->src_file;
+#line 72 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp1_ = g_file_get_parent (_tmp0_);
+#line 72 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp2_ = _tmp1_;
+#line 72 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp3_ = g_file_get_path (_tmp2_);
+#line 72 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp4_ = _tmp3_;
+#line 72 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _g_object_unref0 (_tmp2_);
+#line 72 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ result = _tmp4_;
+#line 72 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ return result;
+#line 861 "DataImportJob.c"
+}
+
+
+static gpointer _batch_import_job_ref0 (gpointer self) {
+#line 76 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ return self ? batch_import_job_ref (self) : NULL;
+#line 868 "DataImportJob.c"
+}
+
+
+static void spit_data_imports_data_import_job_real_set_associated (BatchImportJob* base, BatchImportJob* associated) {
+ SpitDataImportsDataImportJob * self;
+ BatchImportJob* _tmp0_ = NULL;
+ SpitDataImportsDataImportJob* _tmp1_ = NULL;
+#line 75 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJob);
+#line 75 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ g_return_if_fail (IS_BATCH_IMPORT_JOB (associated));
+#line 76 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp0_ = associated;
+#line 76 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp1_ = _batch_import_job_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB) ? ((SpitDataImportsDataImportJob*) _tmp0_) : NULL);
+#line 76 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _batch_import_job_unref0 (self->priv->associated);
+#line 76 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ self->priv->associated = _tmp1_;
+#line 888 "DataImportJob.c"
+}
+
+
+static gboolean spit_data_imports_data_import_job_real_determine_file_size (BatchImportJob* base, guint64* filesize, GFile** file) {
+ SpitDataImportsDataImportJob * self;
+ guint64 _vala_filesize = 0ULL;
+ GFile* _vala_file = NULL;
+ gboolean result = FALSE;
+ guint64 _tmp0_ = 0ULL;
+#line 79 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJob);
+#line 80 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _g_object_unref0 (_vala_file);
+#line 80 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _vala_file = NULL;
+#line 81 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp0_ = self->priv->filesize;
+#line 81 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _vala_filesize = _tmp0_;
+#line 83 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ result = TRUE;
+#line 83 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ if (filesize) {
+#line 83 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ *filesize = _vala_filesize;
+#line 914 "DataImportJob.c"
+ }
+#line 83 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ if (file) {
+#line 83 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ *file = _vala_file;
+#line 920 "DataImportJob.c"
+ } else {
+#line 83 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _g_object_unref0 (_vala_file);
+#line 924 "DataImportJob.c"
+ }
+#line 83 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ return result;
+#line 928 "DataImportJob.c"
+}
+
+
+static gboolean spit_data_imports_data_import_job_real_prepare (BatchImportJob* base, GFile** file_to_import, gboolean* copy_to_library, GError** error) {
+ SpitDataImportsDataImportJob * self;
+ GFile* _vala_file_to_import = NULL;
+ gboolean _vala_copy_to_library = FALSE;
+ gboolean result = FALSE;
+ GFile* _tmp0_ = NULL;
+ GFile* _tmp1_ = NULL;
+ SpitDataImportsDataImportSource* _tmp2_ = NULL;
+ SpitDataImportsImportableMediaItem* _tmp3_ = NULL;
+ SpitDataImportsImportableMediaItem* _tmp4_ = NULL;
+ gint _tmp5_ = 0;
+ SpitDataImportsImportableTag** _tmp6_ = NULL;
+ SpitDataImportsImportableTag** _tmp7_ = NULL;
+ gint _tmp7__length1 = 0;
+ HierarchicalTagIndex* _tmp8_ = NULL;
+#line 86 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJob);
+#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp0_ = self->priv->src_file;
+#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp1_ = _g_object_ref0 (_tmp0_);
+#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _g_object_unref0 (_vala_file_to_import);
+#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _vala_file_to_import = _tmp1_;
+#line 88 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _vala_copy_to_library = FALSE;
+#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp2_ = self->priv->import_source;
+#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp3_ = spit_data_imports_data_import_source_get_photo (_tmp2_);
+#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp4_ = _tmp3_;
+#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp6_ = spit_data_imports_importable_media_item_get_tags (_tmp4_, &_tmp5_);
+#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp7_ = _tmp6_;
+#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp7__length1 = _tmp5_;
+#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp8_ = spit_data_imports_data_import_job_build_exclusion_index (self, _tmp7_, _tmp5_);
+#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _hierarchical_tag_index_unref0 (self->priv->detected_htags);
+#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ self->priv->detected_htags = _tmp8_;
+#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp7_ = (_vala_array_free (_tmp7_, _tmp7__length1, (GDestroyNotify) g_object_unref), NULL);
+#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _g_object_unref0 (_tmp4_);
+#line 92 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ result = TRUE;
+#line 92 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ if (file_to_import) {
+#line 92 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ *file_to_import = _vala_file_to_import;
+#line 987 "DataImportJob.c"
+ } else {
+#line 92 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _g_object_unref0 (_vala_file_to_import);
+#line 991 "DataImportJob.c"
+ }
+#line 92 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ if (copy_to_library) {
+#line 92 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ *copy_to_library = _vala_copy_to_library;
+#line 997 "DataImportJob.c"
+ }
+#line 92 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ return result;
+#line 1001 "DataImportJob.c"
+}
+
+
+static gboolean spit_data_imports_data_import_job_real_complete (BatchImportJob* base, MediaSource* source, BatchImportRoll* import_roll, GError** error) {
+ SpitDataImportsDataImportJob * self;
+ gboolean result = FALSE;
+ LibraryPhoto* photo = NULL;
+ MediaSource* _tmp0_ = NULL;
+ LibraryPhoto* _tmp1_ = NULL;
+ LibraryPhoto* _tmp2_ = NULL;
+ SpitDataImportsImportableMediaItem* src_photo = NULL;
+ SpitDataImportsDataImportSource* _tmp3_ = NULL;
+ SpitDataImportsImportableMediaItem* _tmp4_ = NULL;
+ HierarchicalTagIndex* _tmp5_ = NULL;
+ SpitDataImportsImportableTag** src_tags = NULL;
+ SpitDataImportsImportableMediaItem* _tmp17_ = NULL;
+ gint _tmp18_ = 0;
+ SpitDataImportsImportableTag** _tmp19_ = NULL;
+ gint src_tags_length1 = 0;
+ gint _src_tags_size_ = 0;
+ SpitDataImportsImportableTag** _tmp20_ = NULL;
+ gint _tmp20__length1 = 0;
+ SpitDataImportsImportableEvent* src_event = NULL;
+ SpitDataImportsImportableMediaItem* _tmp61_ = NULL;
+ SpitDataImportsImportableEvent* _tmp62_ = NULL;
+ SpitDataImportsImportableEvent* _tmp63_ = NULL;
+ Rating dst_rating = 0;
+ SpitDataImportsImportableRating* src_rating = NULL;
+ SpitDataImportsImportableMediaItem* _tmp74_ = NULL;
+ SpitDataImportsImportableRating* _tmp75_ = NULL;
+ SpitDataImportsImportableRating* _tmp76_ = NULL;
+ gboolean _tmp77_ = FALSE;
+ LibraryPhoto* _tmp83_ = NULL;
+ Rating _tmp84_ = 0;
+ gchar* title = NULL;
+ SpitDataImportsImportableMediaItem* _tmp85_ = NULL;
+ gchar* _tmp86_ = NULL;
+ const gchar* _tmp87_ = NULL;
+ time_t* date_time = NULL;
+ SpitDataImportsImportableMediaItem* _tmp90_ = NULL;
+ time_t* _tmp91_ = NULL;
+ time_t* _tmp92_ = NULL;
+ LibraryPhoto* _tmp95_ = NULL;
+ BatchImportRoll* _tmp96_ = NULL;
+ ImportID _tmp97_ = {0};
+#line 95 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJob);
+#line 95 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ g_return_val_if_fail (IS_MEDIA_SOURCE (source), FALSE);
+#line 95 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ g_return_val_if_fail (IS_BATCH_IMPORT_ROLL (import_roll), FALSE);
+#line 96 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp0_ = source;
+#line 96 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp0_) : NULL);
+#line 96 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ photo = _tmp1_;
+#line 97 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp2_ = photo;
+#line 97 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ if (_tmp2_ == NULL) {
+#line 98 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ result = FALSE;
+#line 98 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _g_object_unref0 (photo);
+#line 98 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ return result;
+#line 1069 "DataImportJob.c"
+ }
+#line 100 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp3_ = self->priv->import_source;
+#line 100 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp4_ = spit_data_imports_data_import_source_get_photo (_tmp3_);
+#line 100 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ src_photo = _tmp4_;
+#line 103 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp5_ = self->priv->detected_htags;
+#line 103 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ if (_tmp5_ != NULL) {
+#line 1081 "DataImportJob.c"
+ GeeCollection* paths = NULL;
+ HierarchicalTagIndex* _tmp6_ = NULL;
+ GeeCollection* _tmp7_ = NULL;
+#line 104 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp6_ = self->priv->detected_htags;
+#line 104 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp7_ = hierarchical_tag_index_get_all_paths (_tmp6_);
+#line 104 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ paths = _tmp7_;
+#line 1091 "DataImportJob.c"
+ {
+ GeeIterator* _path_it = NULL;
+ GeeCollection* _tmp8_ = NULL;
+ GeeIterator* _tmp9_ = NULL;
+#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp8_ = paths;
+#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp9_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ITERABLE, GeeIterable));
+#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _path_it = _tmp9_;
+#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ while (TRUE) {
+#line 1104 "DataImportJob.c"
+ GeeIterator* _tmp10_ = NULL;
+ gboolean _tmp11_ = FALSE;
+ gchar* path = NULL;
+ GeeIterator* _tmp12_ = NULL;
+ gpointer _tmp13_ = NULL;
+ const gchar* _tmp14_ = NULL;
+ Tag* _tmp15_ = NULL;
+ Tag* _tmp16_ = NULL;
+#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp10_ = _path_it;
+#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp11_ = gee_iterator_next (_tmp10_);
+#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ if (!_tmp11_) {
+#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ break;
+#line 1121 "DataImportJob.c"
+ }
+#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp12_ = _path_it;
+#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp13_ = gee_iterator_get (_tmp12_);
+#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ path = (gchar*) _tmp13_;
+#line 107 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp14_ = path;
+#line 107 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp15_ = tag_for_path (_tmp14_);
+#line 107 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp16_ = _tmp15_;
+#line 107 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _g_object_unref0 (_tmp16_);
+#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _g_free0 (path);
+#line 1139 "DataImportJob.c"
+ }
+#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _g_object_unref0 (_path_it);
+#line 1143 "DataImportJob.c"
+ }
+#line 103 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _g_object_unref0 (paths);
+#line 1147 "DataImportJob.c"
+ }
+#line 110 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp17_ = src_photo;
+#line 110 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp19_ = spit_data_imports_importable_media_item_get_tags (_tmp17_, &_tmp18_);
+#line 110 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ src_tags = _tmp19_;
+#line 110 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ src_tags_length1 = _tmp18_;
+#line 110 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _src_tags_size_ = src_tags_length1;
+#line 111 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp20_ = src_tags;
+#line 111 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp20__length1 = src_tags_length1;
+#line 1163 "DataImportJob.c"
+ {
+ SpitDataImportsImportableTag** src_tag_collection = NULL;
+ gint src_tag_collection_length1 = 0;
+ gint _src_tag_collection_size_ = 0;
+ gint src_tag_it = 0;
+#line 111 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ src_tag_collection = _tmp20_;
+#line 111 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ src_tag_collection_length1 = _tmp20__length1;
+#line 111 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ for (src_tag_it = 0; src_tag_it < _tmp20__length1; src_tag_it = src_tag_it + 1) {
+#line 1175 "DataImportJob.c"
+ SpitDataImportsImportableTag* _tmp21_ = NULL;
+ SpitDataImportsImportableTag* src_tag = NULL;
+#line 111 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp21_ = _g_object_ref0 (src_tag_collection[src_tag_it]);
+#line 111 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ src_tag = _tmp21_;
+#line 1182 "DataImportJob.c"
+ {
+ gchar* prepped = NULL;
+ SpitDataImportsImportableTag* _tmp22_ = NULL;
+ gint _tmp23_ = 0;
+ gchar** _tmp24_ = NULL;
+ gchar** _tmp25_ = NULL;
+ gint _tmp25__length1 = 0;
+ gint _tmp26_ = 0;
+ gchar** _tmp27_ = NULL;
+ gchar** _tmp28_ = NULL;
+ gint _tmp28__length1 = 0;
+ gchar* _tmp29_ = NULL;
+ gchar* _tmp30_ = NULL;
+ const gchar* _tmp31_ = NULL;
+#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp22_ = src_tag;
+#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp24_ = spit_data_imports_data_import_job_build_path_components (self, _tmp22_, &_tmp23_);
+#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp25_ = _tmp24_;
+#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp25__length1 = _tmp23_;
+#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp27_ = tag_prep_tag_names (_tmp25_, _tmp23_, &_tmp26_);
+#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp28_ = _tmp27_;
+#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp28__length1 = _tmp26_;
+#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp29_ = hierarchical_tag_utilities_join_path_components (_tmp28_, _tmp26_);
+#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp30_ = _tmp29_;
+#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp28_ = (_vala_array_free (_tmp28_, _tmp28__length1, (GDestroyNotify) g_free), NULL);
+#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp25_ = (_vala_array_free (_tmp25_, _tmp25__length1, (GDestroyNotify) g_free), NULL);
+#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ prepped = _tmp30_;
+#line 117 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp31_ = prepped;
+#line 117 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ if (_tmp31_ != NULL) {
+#line 1225 "DataImportJob.c"
+ const gchar* _tmp32_ = NULL;
+ GeeList* _tmp33_ = NULL;
+ GeeList* _tmp34_ = NULL;
+ gint _tmp35_ = 0;
+ gint _tmp36_ = 0;
+ gboolean _tmp37_ = FALSE;
+ const gchar* _tmp57_ = NULL;
+ Tag* _tmp58_ = NULL;
+ Tag* _tmp59_ = NULL;
+ LibraryPhoto* _tmp60_ = NULL;
+#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp32_ = prepped;
+#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp33_ = hierarchical_tag_utilities_enumerate_path_components (_tmp32_);
+#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp34_ = _tmp33_;
+#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp35_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, GEE_TYPE_COLLECTION, GeeCollection));
+#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp36_ = _tmp35_;
+#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp37_ = _tmp36_ == 1;
+#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _g_object_unref0 (_tmp34_);
+#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ if (_tmp37_) {
+#line 1252 "DataImportJob.c"
+ const gchar* _tmp38_ = NULL;
+ gboolean _tmp39_ = FALSE;
+#line 119 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp38_ = prepped;
+#line 119 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp39_ = g_str_has_prefix (_tmp38_, TAG_PATH_SEPARATOR_STRING);
+#line 119 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ if (_tmp39_) {
+#line 1261 "DataImportJob.c"
+ const gchar* _tmp40_ = NULL;
+ gchar* _tmp41_ = NULL;
+#line 120 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp40_ = prepped;
+#line 120 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp41_ = hierarchical_tag_utilities_hierarchical_to_flat (_tmp40_);
+#line 120 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _g_free0 (prepped);
+#line 120 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ prepped = _tmp41_;
+#line 1272 "DataImportJob.c"
+ }
+ } else {
+ GeeList* parents = NULL;
+ const gchar* _tmp42_ = NULL;
+ GeeList* _tmp43_ = NULL;
+ GeeList* _tmp44_ = NULL;
+ gint _tmp45_ = 0;
+ gint _tmp46_ = 0;
+ gchar* top_level_parent = NULL;
+ GeeList* _tmp47_ = NULL;
+ gpointer _tmp48_ = NULL;
+ gchar* flat_top_level_parent = NULL;
+ const gchar* _tmp49_ = NULL;
+ gchar* _tmp50_ = NULL;
+ TagSourceCollection* _tmp51_ = NULL;
+ const gchar* _tmp52_ = NULL;
+ gboolean _tmp53_ = FALSE;
+#line 122 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp42_ = prepped;
+#line 122 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp43_ = hierarchical_tag_utilities_enumerate_parent_paths (_tmp42_);
+#line 122 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ parents = _tmp43_;
+#line 125 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp44_ = parents;
+#line 125 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp45_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, GEE_TYPE_COLLECTION, GeeCollection));
+#line 125 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp46_ = _tmp45_;
+#line 125 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _vala_assert (_tmp46_ > 0, "parents.size > 0");
+#line 127 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp47_ = parents;
+#line 127 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp48_ = gee_list_get (_tmp47_, 0);
+#line 127 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ top_level_parent = (gchar*) _tmp48_;
+#line 128 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp49_ = top_level_parent;
+#line 128 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp50_ = hierarchical_tag_utilities_hierarchical_to_flat (_tmp49_);
+#line 128 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ flat_top_level_parent = _tmp50_;
+#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp51_ = tag_global;
+#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp52_ = flat_top_level_parent;
+#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp53_ = tag_source_collection_exists (_tmp51_, _tmp52_, FALSE);
+#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ if (_tmp53_) {
+#line 1324 "DataImportJob.c"
+ const gchar* _tmp54_ = NULL;
+ Tag* _tmp55_ = NULL;
+ Tag* _tmp56_ = NULL;
+#line 132 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp54_ = flat_top_level_parent;
+#line 132 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp55_ = tag_for_path (_tmp54_);
+#line 132 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp56_ = _tmp55_;
+#line 132 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ tag_promote (_tmp56_);
+#line 132 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _g_object_unref0 (_tmp56_);
+#line 1338 "DataImportJob.c"
+ }
+#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _g_free0 (flat_top_level_parent);
+#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _g_free0 (top_level_parent);
+#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _g_object_unref0 (parents);
+#line 1346 "DataImportJob.c"
+ }
+#line 135 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp57_ = prepped;
+#line 135 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp58_ = tag_for_path (_tmp57_);
+#line 135 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp59_ = _tmp58_;
+#line 135 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp60_ = photo;
+#line 135 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ tag_attach (_tmp59_, G_TYPE_CHECK_INSTANCE_CAST (_tmp60_, TYPE_MEDIA_SOURCE, MediaSource));
+#line 135 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _g_object_unref0 (_tmp59_);
+#line 1360 "DataImportJob.c"
+ }
+#line 111 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _g_free0 (prepped);
+#line 111 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _g_object_unref0 (src_tag);
+#line 1366 "DataImportJob.c"
+ }
+ }
+ }
+#line 139 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp61_ = src_photo;
+#line 139 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp62_ = spit_data_imports_importable_media_item_get_event (_tmp61_);
+#line 139 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ src_event = _tmp62_;
+#line 140 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp63_ = src_event;
+#line 140 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ if (_tmp63_ != NULL) {
+#line 1380 "DataImportJob.c"
+ gchar* prepped = NULL;
+ SpitDataImportsImportableEvent* _tmp64_ = NULL;
+ gchar* _tmp65_ = NULL;
+ gchar* _tmp66_ = NULL;
+ gchar* _tmp67_ = NULL;
+ gchar* _tmp68_ = NULL;
+ const gchar* _tmp69_ = NULL;
+#line 141 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp64_ = src_event;
+#line 141 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp65_ = spit_data_imports_importable_event_get_name (_tmp64_);
+#line 141 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp66_ = _tmp65_;
+#line 141 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp67_ = prepare_input_text (_tmp66_, PREPARE_INPUT_TEXT_OPTIONS_DEFAULT, -1);
+#line 141 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp68_ = _tmp67_;
+#line 141 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _g_free0 (_tmp66_);
+#line 141 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ prepped = _tmp68_;
+#line 143 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp69_ = prepped;
+#line 143 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ if (_tmp69_ != NULL) {
+#line 1406 "DataImportJob.c"
+ LibraryPhoto* _tmp70_ = NULL;
+ BatchImportRoll* _tmp71_ = NULL;
+ ViewCollection* _tmp72_ = NULL;
+ const gchar* _tmp73_ = NULL;
+#line 144 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp70_ = photo;
+#line 144 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp71_ = import_roll;
+#line 144 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp72_ = _tmp71_->generated_events;
+#line 144 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp73_ = prepped;
+#line 144 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ event_generate_single_event (G_TYPE_CHECK_INSTANCE_CAST (_tmp70_, TYPE_MEDIA_SOURCE, MediaSource), _tmp72_, _tmp73_);
+#line 1421 "DataImportJob.c"
+ }
+#line 140 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _g_free0 (prepped);
+#line 1425 "DataImportJob.c"
+ }
+#line 148 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp74_ = src_photo;
+#line 148 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp75_ = spit_data_imports_importable_media_item_get_rating (_tmp74_);
+#line 148 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ src_rating = _tmp75_;
+#line 149 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp76_ = src_rating;
+#line 149 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp77_ = spit_data_imports_importable_rating_is_rejected (_tmp76_);
+#line 149 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ if (_tmp77_) {
+#line 150 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ dst_rating = RATING_REJECTED;
+#line 1441 "DataImportJob.c"
+ } else {
+ SpitDataImportsImportableRating* _tmp78_ = NULL;
+ gboolean _tmp79_ = FALSE;
+#line 151 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp78_ = src_rating;
+#line 151 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp79_ = spit_data_imports_importable_rating_is_unrated (_tmp78_);
+#line 151 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ if (_tmp79_) {
+#line 152 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ dst_rating = RATING_UNRATED;
+#line 1453 "DataImportJob.c"
+ } else {
+ SpitDataImportsImportableRating* _tmp80_ = NULL;
+ gint _tmp81_ = 0;
+ Rating _tmp82_ = 0;
+#line 154 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp80_ = src_rating;
+#line 154 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp81_ = spit_data_imports_importable_rating_get_value (_tmp80_);
+#line 154 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp82_ = rating_unserialize (_tmp81_);
+#line 154 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ dst_rating = _tmp82_;
+#line 1466 "DataImportJob.c"
+ }
+ }
+#line 155 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp83_ = photo;
+#line 155 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp84_ = dst_rating;
+#line 155 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ media_source_set_rating (G_TYPE_CHECK_INSTANCE_CAST (_tmp83_, TYPE_MEDIA_SOURCE, MediaSource), _tmp84_);
+#line 157 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp85_ = src_photo;
+#line 157 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp86_ = spit_data_imports_importable_media_item_get_title (_tmp85_);
+#line 157 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ title = _tmp86_;
+#line 158 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp87_ = title;
+#line 158 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ if (_tmp87_ != NULL) {
+#line 1485 "DataImportJob.c"
+ LibraryPhoto* _tmp88_ = NULL;
+ const gchar* _tmp89_ = NULL;
+#line 159 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp88_ = photo;
+#line 159 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp89_ = title;
+#line 159 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ media_source_set_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp88_, TYPE_MEDIA_SOURCE, MediaSource), _tmp89_);
+#line 1494 "DataImportJob.c"
+ }
+#line 161 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp90_ = src_photo;
+#line 161 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp91_ = spit_data_imports_importable_media_item_get_exposure_time (_tmp90_);
+#line 161 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ date_time = _tmp91_;
+#line 162 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp92_ = date_time;
+#line 162 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ if (_tmp92_ != NULL) {
+#line 1506 "DataImportJob.c"
+ LibraryPhoto* _tmp93_ = NULL;
+ time_t* _tmp94_ = NULL;
+#line 163 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp93_ = photo;
+#line 163 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp94_ = date_time;
+#line 163 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ dateable_set_exposure_time (G_TYPE_CHECK_INSTANCE_CAST (_tmp93_, TYPE_DATEABLE, Dateable), *_tmp94_);
+#line 1515 "DataImportJob.c"
+ }
+#line 165 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp95_ = photo;
+#line 165 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp96_ = import_roll;
+#line 165 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp97_ = _tmp96_->import_id;
+#line 165 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ photo_set_import_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp95_, TYPE_PHOTO, Photo), &_tmp97_);
+#line 167 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ result = TRUE;
+#line 167 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _g_free0 (date_time);
+#line 167 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _g_free0 (title);
+#line 167 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _g_object_unref0 (src_rating);
+#line 167 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _g_object_unref0 (src_event);
+#line 167 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ src_tags = (_vala_array_free (src_tags, src_tags_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 167 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _g_object_unref0 (src_photo);
+#line 167 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _g_object_unref0 (photo);
+#line 167 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ return result;
+#line 1543 "DataImportJob.c"
+}
+
+
+static gchar** spit_data_imports_data_import_job_build_path_components (SpitDataImportsDataImportJob* self, SpitDataImportsImportableTag* tag, int* result_length1) {
+ gchar** result = NULL;
+ GeeList* components = NULL;
+ GeeLinkedList* _tmp0_ = NULL;
+ GeeList* _tmp13_ = NULL;
+ gint _tmp14_ = 0;
+ gpointer* _tmp15_ = NULL;
+ gchar** _tmp16_ = NULL;
+ gint _tmp16__length1 = 0;
+#line 170 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORT_JOB (self), NULL);
+#line 170 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_IMPORTABLE_TAG (tag), NULL);
+#line 172 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp0_ = gee_linked_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL, NULL, NULL);
+#line 172 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ components = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_LIST, GeeList);
+#line 1564 "DataImportJob.c"
+ {
+ SpitDataImportsImportableTag* current_tag = NULL;
+ SpitDataImportsImportableTag* _tmp1_ = NULL;
+ SpitDataImportsImportableTag* _tmp2_ = NULL;
+#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp1_ = tag;
+#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp2_ = _g_object_ref0 (_tmp1_);
+#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ current_tag = _tmp2_;
+#line 1575 "DataImportJob.c"
+ {
+ gboolean _tmp3_ = FALSE;
+#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp3_ = TRUE;
+#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ while (TRUE) {
+#line 1582 "DataImportJob.c"
+ SpitDataImportsImportableTag* _tmp6_ = NULL;
+ GeeList* _tmp7_ = NULL;
+ SpitDataImportsImportableTag* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+ gchar* _tmp10_ = NULL;
+ gchar* _tmp11_ = NULL;
+ gchar* _tmp12_ = NULL;
+#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ if (!_tmp3_) {
+#line 1592 "DataImportJob.c"
+ SpitDataImportsImportableTag* _tmp4_ = NULL;
+ SpitDataImportsImportableTag* _tmp5_ = NULL;
+#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp4_ = current_tag;
+#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp5_ = spit_data_imports_importable_tag_get_parent (_tmp4_);
+#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _g_object_unref0 (current_tag);
+#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ current_tag = _tmp5_;
+#line 1603 "DataImportJob.c"
+ }
+#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp3_ = FALSE;
+#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp6_ = current_tag;
+#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ if (!(_tmp6_ != NULL)) {
+#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ break;
+#line 1613 "DataImportJob.c"
+ }
+#line 174 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp7_ = components;
+#line 174 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp8_ = current_tag;
+#line 174 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp9_ = spit_data_imports_importable_tag_get_name (_tmp8_);
+#line 174 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp10_ = _tmp9_;
+#line 174 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp11_ = hierarchical_tag_utilities_make_flat_tag_safe (_tmp10_);
+#line 174 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp12_ = _tmp11_;
+#line 174 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ gee_list_insert (_tmp7_, 0, _tmp12_);
+#line 174 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _g_free0 (_tmp12_);
+#line 174 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _g_free0 (_tmp10_);
+#line 1633 "DataImportJob.c"
+ }
+ }
+#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _g_object_unref0 (current_tag);
+#line 1638 "DataImportJob.c"
+ }
+#line 176 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp13_ = components;
+#line 176 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp15_ = gee_collection_to_array (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_COLLECTION, GeeCollection), &_tmp14_);
+#line 176 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp16_ = _tmp15_;
+#line 176 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _tmp16__length1 = _tmp14_;
+#line 176 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ if (result_length1) {
+#line 176 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ *result_length1 = _tmp16__length1;
+#line 1652 "DataImportJob.c"
+ }
+#line 176 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ result = _tmp16_;
+#line 176 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _g_object_unref0 (components);
+#line 176 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ return result;
+#line 1660 "DataImportJob.c"
+}
+
+
+static void spit_data_imports_data_import_job_class_init (SpitDataImportsDataImportJobClass * klass) {
+#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ spit_data_imports_data_import_job_parent_class = g_type_class_peek_parent (klass);
+#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ ((BatchImportJobClass *) klass)->finalize = spit_data_imports_data_import_job_finalize;
+#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ g_type_class_add_private (klass, sizeof (SpitDataImportsDataImportJobPrivate));
+#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ ((BatchImportJobClass *) klass)->get_dest_identifier = spit_data_imports_data_import_job_real_get_dest_identifier;
+#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ ((BatchImportJobClass *) klass)->get_source_identifier = spit_data_imports_data_import_job_real_get_source_identifier;
+#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ ((BatchImportJobClass *) klass)->is_directory = spit_data_imports_data_import_job_real_is_directory;
+#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ ((BatchImportJobClass *) klass)->get_basename = spit_data_imports_data_import_job_real_get_basename;
+#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ ((BatchImportJobClass *) klass)->get_path = spit_data_imports_data_import_job_real_get_path;
+#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ ((BatchImportJobClass *) klass)->set_associated = spit_data_imports_data_import_job_real_set_associated;
+#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ ((BatchImportJobClass *) klass)->determine_file_size = spit_data_imports_data_import_job_real_determine_file_size;
+#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ ((BatchImportJobClass *) klass)->prepare = spit_data_imports_data_import_job_real_prepare;
+#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ ((BatchImportJobClass *) klass)->complete = spit_data_imports_data_import_job_real_complete;
+#line 1689 "DataImportJob.c"
+}
+
+
+static void spit_data_imports_data_import_job_instance_init (SpitDataImportsDataImportJob * self) {
+#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ self->priv = SPIT_DATA_IMPORTS_DATA_IMPORT_JOB_GET_PRIVATE (self);
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ self->priv->associated = NULL;
+#line 18 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ self->priv->detected_htags = NULL;
+#line 1700 "DataImportJob.c"
+}
+
+
+static void spit_data_imports_data_import_job_finalize (BatchImportJob* obj) {
+ SpitDataImportsDataImportJob * self;
+#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJob);
+#line 13 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _spit_data_imports_data_import_source_unref0 (self->priv->import_source);
+#line 14 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _g_object_unref0 (self->priv->src_file);
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _batch_import_job_unref0 (self->priv->associated);
+#line 18 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ _hierarchical_tag_index_unref0 (self->priv->detected_htags);
+#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
+ BATCH_IMPORT_JOB_CLASS (spit_data_imports_data_import_job_parent_class)->finalize (obj);
+#line 1718 "DataImportJob.c"
+}
+
+
+/**
+ * A specialized import job implementation for alien databases.
+ */
+GType spit_data_imports_data_import_job_get_type (void) {
+ static volatile gsize spit_data_imports_data_import_job_type_id__volatile = 0;
+ if (g_once_init_enter (&spit_data_imports_data_import_job_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (SpitDataImportsDataImportJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) spit_data_imports_data_import_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SpitDataImportsDataImportJob), 0, (GInstanceInitFunc) spit_data_imports_data_import_job_instance_init, NULL };
+ GType spit_data_imports_data_import_job_type_id;
+ spit_data_imports_data_import_job_type_id = g_type_register_static (TYPE_BATCH_IMPORT_JOB, "SpitDataImportsDataImportJob", &g_define_type_info, 0);
+ g_once_init_leave (&spit_data_imports_data_import_job_type_id__volatile, spit_data_imports_data_import_job_type_id);
+ }
+ return spit_data_imports_data_import_job_type_id__volatile;
+}
+
+
+static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) {
+ if ((array != NULL) && (destroy_func != NULL)) {
+ int i;
+ for (i = 0; i < array_length; i = i + 1) {
+ if (((gpointer*) array)[i] != NULL) {
+ destroy_func (((gpointer*) array)[i]);
+ }
+ }
+ }
+}
+
+
+static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) {
+ _vala_array_destroy (array, array_length, destroy_func);
+ g_free (array);
+}
+
+
+
diff --git a/src/data_imports/DataImportSource.c b/src/data_imports/DataImportSource.c
new file mode 100644
index 0000000..4c6b25d
--- /dev/null
+++ b/src/data_imports/DataImportSource.c
@@ -0,0 +1,1425 @@
+/* DataImportSource.c generated by valac 0.32.1, the Vala compiler
+ * generated from DataImportSource.vala, do not modify */
+
+/* Copyright 2016 Software Freedom Conservancy Inc.
+ *
+ * This software is licensed under the GNU Lesser General Public License
+ * (version 2.1 or later). See the COPYING file in this distribution.
+ */
+
+#include <glib.h>
+#include <glib-object.h>
+#include "shotwell-plugin-dev-1.0.h"
+#include <stdlib.h>
+#include <string.h>
+#include <time.h>
+#include <gio/gio.h>
+#include <gobject/gvaluecollector.h>
+
+
+#define SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE (spit_data_imports_data_import_source_get_type ())
+#define SPIT_DATA_IMPORTS_DATA_IMPORT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE, SpitDataImportsDataImportSource))
+#define SPIT_DATA_IMPORTS_DATA_IMPORT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE, SpitDataImportsDataImportSourceClass))
+#define SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE))
+#define SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE))
+#define SPIT_DATA_IMPORTS_DATA_IMPORT_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE, SpitDataImportsDataImportSourceClass))
+
+typedef struct _SpitDataImportsDataImportSource SpitDataImportsDataImportSource;
+typedef struct _SpitDataImportsDataImportSourceClass SpitDataImportsDataImportSourceClass;
+typedef struct _SpitDataImportsDataImportSourcePrivate SpitDataImportsDataImportSourcePrivate;
+
+#define TYPE_METADATA_DATE_TIME (metadata_date_time_get_type ())
+#define METADATA_DATE_TIME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_METADATA_DATE_TIME, MetadataDateTime))
+#define METADATA_DATE_TIME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_METADATA_DATE_TIME, MetadataDateTimeClass))
+#define IS_METADATA_DATE_TIME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_METADATA_DATE_TIME))
+#define IS_METADATA_DATE_TIME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_METADATA_DATE_TIME))
+#define METADATA_DATE_TIME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_METADATA_DATE_TIME, MetadataDateTimeClass))
+
+typedef struct _MetadataDateTime MetadataDateTime;
+typedef struct _MetadataDateTimeClass MetadataDateTimeClass;
+#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
+#define _g_free0(var) (var = (g_free (var), NULL))
+#define _metadata_date_time_unref0(var) ((var == NULL) ? NULL : (var = (metadata_date_time_unref (var), NULL)))
+
+#define TYPE_MEDIA_METADATA (media_metadata_get_type ())
+#define MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_METADATA, MediaMetadata))
+#define MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_METADATA, MediaMetadataClass))
+#define IS_MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_METADATA))
+#define IS_MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_METADATA))
+#define MEDIA_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_METADATA, MediaMetadataClass))
+
+typedef struct _MediaMetadata MediaMetadata;
+typedef struct _MediaMetadataClass MediaMetadataClass;
+
+#define TYPE_PHOTO_METADATA (photo_metadata_get_type ())
+#define PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_METADATA, PhotoMetadata))
+#define PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_METADATA, PhotoMetadataClass))
+#define IS_PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_METADATA))
+#define IS_PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_METADATA))
+#define PHOTO_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_METADATA, PhotoMetadataClass))
+
+typedef struct _PhotoMetadata PhotoMetadata;
+typedef struct _PhotoMetadataClass PhotoMetadataClass;
+#define _media_metadata_unref0(var) ((var == NULL) ? NULL : (var = (media_metadata_unref (var), NULL)))
+#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
+
+#define TYPE_PHOTO_PREVIEW (photo_preview_get_type ())
+#define PHOTO_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_PREVIEW, PhotoPreview))
+#define PHOTO_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_PREVIEW, PhotoPreviewClass))
+#define IS_PHOTO_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_PREVIEW))
+#define IS_PHOTO_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_PREVIEW))
+#define PHOTO_PREVIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_PREVIEW, PhotoPreviewClass))
+
+typedef struct _PhotoPreview PhotoPreview;
+typedef struct _PhotoPreviewClass PhotoPreviewClass;
+#define _photo_preview_unref0(var) ((var == NULL) ? NULL : (var = (photo_preview_unref (var), NULL)))
+
+#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ())
+typedef struct _SpitDataImportsParamSpecDataImportSource SpitDataImportsParamSpecDataImportSource;
+
+struct _SpitDataImportsDataImportSource {
+ GTypeInstance parent_instance;
+ volatile int ref_count;
+ SpitDataImportsDataImportSourcePrivate * priv;
+};
+
+struct _SpitDataImportsDataImportSourceClass {
+ GTypeClass parent_class;
+ void (*finalize) (SpitDataImportsDataImportSource *self);
+};
+
+struct _SpitDataImportsDataImportSourcePrivate {
+ gboolean backing_file_found;
+ SpitDataImportsImportableMediaItem* db_photo;
+ gchar* title;
+ gchar* preview_md5;
+ guint64 file_size;
+ time_t modification_time;
+ MetadataDateTime* exposure_time;
+};
+
+typedef enum {
+ PHOTO_FILE_FORMAT_JFIF,
+ PHOTO_FILE_FORMAT_RAW,
+ PHOTO_FILE_FORMAT_PNG,
+ PHOTO_FILE_FORMAT_TIFF,
+ PHOTO_FILE_FORMAT_BMP,
+ PHOTO_FILE_FORMAT_UNKNOWN
+} PhotoFileFormat;
+
+struct _SpitDataImportsParamSpecDataImportSource {
+ GParamSpec parent_instance;
+};
+
+
+static gpointer spit_data_imports_data_import_source_parent_class = NULL;
+
+gpointer spit_data_imports_data_import_source_ref (gpointer instance);
+void spit_data_imports_data_import_source_unref (gpointer instance);
+GParamSpec* spit_data_imports_param_spec_data_import_source (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void spit_data_imports_value_set_data_import_source (GValue* value, gpointer v_object);
+void spit_data_imports_value_take_data_import_source (GValue* value, gpointer v_object);
+gpointer spit_data_imports_value_get_data_import_source (const GValue* value);
+GType spit_data_imports_data_import_source_get_type (void) G_GNUC_CONST;
+gpointer metadata_date_time_ref (gpointer instance);
+void metadata_date_time_unref (gpointer instance);
+GParamSpec* param_spec_metadata_date_time (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void value_set_metadata_date_time (GValue* value, gpointer v_object);
+void value_take_metadata_date_time (GValue* value, gpointer v_object);
+gpointer value_get_metadata_date_time (const GValue* value);
+GType metadata_date_time_get_type (void) G_GNUC_CONST;
+#define SPIT_DATA_IMPORTS_DATA_IMPORT_SOURCE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE, SpitDataImportsDataImportSourcePrivate))
+enum {
+ SPIT_DATA_IMPORTS_DATA_IMPORT_SOURCE_DUMMY_PROPERTY
+};
+SpitDataImportsDataImportSource* spit_data_imports_data_import_source_new (SpitDataImportsImportableMediaItem* db_photo);
+SpitDataImportsDataImportSource* spit_data_imports_data_import_source_construct (GType object_type, SpitDataImportsImportableMediaItem* db_photo);
+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);
+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_metadata_new (void);
+PhotoMetadata* photo_metadata_construct (GType object_type);
+void media_metadata_read_from_file (MediaMetadata* self, GFile* file, GError** error);
+gchar* spit_data_imports_data_import_source_get_filename (SpitDataImportsDataImportSource* self);
+gchar* media_metadata_get_title (MediaMetadata* self);
+MetadataDateTime* metadata_date_time_new (time_t timestamp);
+MetadataDateTime* metadata_date_time_construct (GType object_type, time_t timestamp);
+MetadataDateTime* photo_metadata_get_exposure_date_time (PhotoMetadata* self);
+gpointer photo_preview_ref (gpointer instance);
+void photo_preview_unref (gpointer instance);
+GParamSpec* param_spec_photo_preview (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void value_set_photo_preview (GValue* value, gpointer v_object);
+void value_take_photo_preview (GValue* value, gpointer v_object);
+gpointer value_get_photo_preview (const GValue* value);
+GType photo_preview_get_type (void) G_GNUC_CONST;
+PhotoPreview* photo_metadata_get_preview (PhotoMetadata* self, guint number);
+guint8* photo_preview_flatten (PhotoPreview* self, int* result_length1, GError** error);
+gchar* md5_binary (guint8* buffer, gsize length);
+guint64 query_total_file_size (GFile* file_or_dir, GCancellable* cancellable, GError** error);
+time_t query_file_modified (GFile* file, GError** error);
+gchar* spit_data_imports_data_import_source_get_fulldir (SpitDataImportsDataImportSource* self);
+GFile* spit_data_imports_data_import_source_get_file (SpitDataImportsDataImportSource* self);
+gchar* spit_data_imports_data_import_source_get_name (SpitDataImportsDataImportSource* self);
+gboolean is_string_empty (const gchar* s);
+gchar* spit_data_imports_data_import_source_get_title (SpitDataImportsDataImportSource* self);
+GType photo_file_format_get_type (void) G_GNUC_CONST;
+PhotoFileFormat spit_data_imports_data_import_source_get_file_format (SpitDataImportsDataImportSource* self);
+PhotoFileFormat photo_file_format_get_by_basename_extension (const gchar* basename);
+gchar* spit_data_imports_data_import_source_to_string (SpitDataImportsDataImportSource* self);
+time_t spit_data_imports_data_import_source_get_exposure_time (SpitDataImportsDataImportSource* self);
+time_t metadata_date_time_get_timestamp (MetadataDateTime* self);
+guint64 spit_data_imports_data_import_source_get_filesize (SpitDataImportsDataImportSource* self);
+SpitDataImportsImportableMediaItem* spit_data_imports_data_import_source_get_photo (SpitDataImportsDataImportSource* self);
+gboolean spit_data_imports_data_import_source_is_already_imported (SpitDataImportsDataImportSource* self);
+gboolean library_photo_has_nontrash_duplicate (GFile* file, const gchar* thumbnail_md5, const gchar* full_md5, PhotoFileFormat file_format);
+gboolean spit_data_imports_data_import_source_was_backing_file_found (SpitDataImportsDataImportSource* self);
+static void spit_data_imports_data_import_source_finalize (SpitDataImportsDataImportSource* obj);
+
+
+static gpointer _g_object_ref0 (gpointer self) {
+#line 27 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ return self ? g_object_ref (self) : NULL;
+#line 188 "DataImportSource.c"
+}
+
+
+static gpointer _metadata_date_time_ref0 (gpointer self) {
+#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ return self ? metadata_date_time_ref (self) : NULL;
+#line 195 "DataImportSource.c"
+}
+
+
+static gpointer _photo_preview_ref0 (gpointer self) {
+#line 61 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ return self ? photo_preview_ref (self) : NULL;
+#line 202 "DataImportSource.c"
+}
+
+
+SpitDataImportsDataImportSource* spit_data_imports_data_import_source_construct (GType object_type, SpitDataImportsImportableMediaItem* db_photo) {
+ SpitDataImportsDataImportSource* self = NULL;
+ SpitDataImportsImportableMediaItem* _tmp0_ = NULL;
+ SpitDataImportsImportableMediaItem* _tmp1_ = NULL;
+ gchar* folder_path = NULL;
+ SpitDataImportsImportableMediaItem* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ gchar* filename = NULL;
+ SpitDataImportsImportableMediaItem* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ GFile* photo = NULL;
+ gboolean _tmp6_ = FALSE;
+ const gchar* _tmp7_ = NULL;
+ gboolean _tmp20_ = FALSE;
+ GFile* _tmp21_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 26 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_IMPORTABLE_MEDIA_ITEM (db_photo), NULL);
+#line 26 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ self = (SpitDataImportsDataImportSource*) g_type_create_instance (object_type);
+#line 27 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp0_ = db_photo;
+#line 27 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp1_ = _g_object_ref0 (_tmp0_);
+#line 27 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _g_object_unref0 (self->priv->db_photo);
+#line 27 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ self->priv->db_photo = _tmp1_;
+#line 31 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp2_ = db_photo;
+#line 31 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp3_ = spit_data_imports_importable_media_item_get_folder_path (_tmp2_);
+#line 31 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ folder_path = _tmp3_;
+#line 32 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp4_ = db_photo;
+#line 32 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp5_ = spit_data_imports_importable_media_item_get_filename (_tmp4_);
+#line 32 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ filename = _tmp5_;
+#line 33 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ photo = NULL;
+#line 34 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp7_ = folder_path;
+#line 34 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ if (_tmp7_ != NULL) {
+#line 252 "DataImportSource.c"
+ const gchar* _tmp8_ = NULL;
+#line 34 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp8_ = filename;
+#line 34 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp6_ = _tmp8_ != NULL;
+#line 258 "DataImportSource.c"
+ } else {
+#line 34 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp6_ = FALSE;
+#line 262 "DataImportSource.c"
+ }
+#line 34 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ if (_tmp6_) {
+#line 266 "DataImportSource.c"
+ SpitDataImportsImportableMediaItem* _tmp9_ = NULL;
+ gchar* _tmp10_ = NULL;
+ gchar* _tmp11_ = NULL;
+ GFile* _tmp12_ = NULL;
+ GFile* _tmp13_ = NULL;
+ SpitDataImportsImportableMediaItem* _tmp14_ = NULL;
+ gchar* _tmp15_ = NULL;
+ gchar* _tmp16_ = NULL;
+ GFile* _tmp17_ = NULL;
+ GFile* _tmp18_ = NULL;
+ gboolean _tmp19_ = FALSE;
+#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp9_ = db_photo;
+#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp10_ = spit_data_imports_importable_media_item_get_folder_path (_tmp9_);
+#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp11_ = _tmp10_;
+#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp12_ = g_file_new_for_path (_tmp11_);
+#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp13_ = _tmp12_;
+#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp14_ = db_photo;
+#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp15_ = spit_data_imports_importable_media_item_get_filename (_tmp14_);
+#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp16_ = _tmp15_;
+#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp17_ = g_file_get_child (_tmp13_, _tmp16_);
+#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _g_object_unref0 (photo);
+#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ photo = _tmp17_;
+#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _g_free0 (_tmp16_);
+#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _g_object_unref0 (_tmp13_);
+#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _g_free0 (_tmp11_);
+#line 38 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp18_ = photo;
+#line 38 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp19_ = g_file_query_exists (_tmp18_, NULL);
+#line 38 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ self->priv->backing_file_found = _tmp19_;
+#line 312 "DataImportSource.c"
+ } else {
+#line 40 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ self->priv->backing_file_found = FALSE;
+#line 316 "DataImportSource.c"
+ }
+#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp21_ = photo;
+#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ if (_tmp21_ != NULL) {
+#line 322 "DataImportSource.c"
+ gboolean _tmp22_ = FALSE;
+#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp22_ = self->priv->backing_file_found;
+#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp20_ = _tmp22_;
+#line 328 "DataImportSource.c"
+ } else {
+#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp20_ = FALSE;
+#line 332 "DataImportSource.c"
+ }
+#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ if (_tmp20_) {
+#line 336 "DataImportSource.c"
+ PhotoMetadata* metadata = NULL;
+ PhotoMetadata* _tmp23_ = NULL;
+ SpitDataImportsImportableMediaItem* _tmp30_ = NULL;
+ gchar* _tmp31_ = NULL;
+ const gchar* _tmp32_ = NULL;
+ time_t* date_time = NULL;
+ SpitDataImportsImportableMediaItem* _tmp38_ = NULL;
+ time_t* _tmp39_ = NULL;
+ time_t* _tmp40_ = NULL;
+ PhotoPreview* _tmp48_ = NULL;
+ PhotoMetadata* _tmp49_ = NULL;
+ PhotoPreview* preview = NULL;
+ PhotoPreview* _tmp52_ = NULL;
+ PhotoPreview* _tmp53_ = NULL;
+#line 44 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp23_ = photo_metadata_new ();
+#line 44 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ metadata = _tmp23_;
+#line 355 "DataImportSource.c"
+ {
+ PhotoMetadata* _tmp24_ = NULL;
+ GFile* _tmp25_ = NULL;
+#line 46 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp24_ = metadata;
+#line 46 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp25_ = photo;
+#line 46 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ media_metadata_read_from_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_MEDIA_METADATA, MediaMetadata), _tmp25_, &_inner_error_);
+#line 46 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 367 "DataImportSource.c"
+ goto __catch202_g_error;
+ }
+ }
+ goto __finally202;
+ __catch202_g_error:
+ {
+ GError* e = NULL;
+ gchar* _tmp26_ = NULL;
+ gchar* _tmp27_ = NULL;
+ GError* _tmp28_ = NULL;
+ const gchar* _tmp29_ = NULL;
+#line 45 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ e = _inner_error_;
+#line 45 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _inner_error_ = NULL;
+#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp26_ = spit_data_imports_data_import_source_get_filename (self);
+#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp27_ = _tmp26_;
+#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp28_ = e;
+#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp29_ = _tmp28_->message;
+#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ g_warning ("DataImportSource.vala:48: Could not get file metadata for %s: %s", _tmp27_, _tmp29_);
+#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _g_free0 (_tmp27_);
+#line 49 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _media_metadata_unref0 (metadata);
+#line 49 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ metadata = NULL;
+#line 45 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _g_error_free0 (e);
+#line 401 "DataImportSource.c"
+ }
+ __finally202:
+#line 45 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 45 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _media_metadata_unref0 (metadata);
+#line 45 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _g_object_unref0 (photo);
+#line 45 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _g_free0 (filename);
+#line 45 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _g_free0 (folder_path);
+#line 45 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.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 45 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ g_clear_error (&_inner_error_);
+#line 45 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ return NULL;
+#line 420 "DataImportSource.c"
+ }
+#line 51 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp30_ = db_photo;
+#line 51 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp31_ = spit_data_imports_importable_media_item_get_title (_tmp30_);
+#line 51 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _g_free0 (self->priv->title);
+#line 51 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ self->priv->title = _tmp31_;
+#line 52 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp32_ = self->priv->title;
+#line 52 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ if (_tmp32_ == NULL) {
+#line 434 "DataImportSource.c"
+ gchar* _tmp33_ = NULL;
+ PhotoMetadata* _tmp34_ = NULL;
+ gchar* _tmp37_ = NULL;
+#line 53 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp34_ = metadata;
+#line 53 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ if (_tmp34_ != NULL) {
+#line 442 "DataImportSource.c"
+ PhotoMetadata* _tmp35_ = NULL;
+ gchar* _tmp36_ = NULL;
+#line 53 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp35_ = metadata;
+#line 53 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp36_ = media_metadata_get_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, TYPE_MEDIA_METADATA, MediaMetadata));
+#line 53 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _g_free0 (_tmp33_);
+#line 53 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp33_ = _tmp36_;
+#line 453 "DataImportSource.c"
+ } else {
+#line 53 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _g_free0 (_tmp33_);
+#line 53 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp33_ = NULL;
+#line 459 "DataImportSource.c"
+ }
+#line 53 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp37_ = g_strdup (_tmp33_);
+#line 53 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _g_free0 (self->priv->title);
+#line 53 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ self->priv->title = _tmp37_;
+#line 52 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _g_free0 (_tmp33_);
+#line 469 "DataImportSource.c"
+ }
+#line 55 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp38_ = db_photo;
+#line 55 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp39_ = spit_data_imports_importable_media_item_get_exposure_time (_tmp38_);
+#line 55 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ date_time = _tmp39_;
+#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp40_ = date_time;
+#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ if (_tmp40_ != NULL) {
+#line 481 "DataImportSource.c"
+ time_t* _tmp41_ = NULL;
+ MetadataDateTime* _tmp42_ = NULL;
+#line 57 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp41_ = date_time;
+#line 57 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp42_ = metadata_date_time_new (*_tmp41_);
+#line 57 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _metadata_date_time_unref0 (self->priv->exposure_time);
+#line 57 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ self->priv->exposure_time = _tmp42_;
+#line 492 "DataImportSource.c"
+ } else {
+ MetadataDateTime* _tmp43_ = NULL;
+ PhotoMetadata* _tmp44_ = NULL;
+ MetadataDateTime* _tmp47_ = NULL;
+#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp44_ = metadata;
+#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ if (_tmp44_ != NULL) {
+#line 501 "DataImportSource.c"
+ PhotoMetadata* _tmp45_ = NULL;
+ MetadataDateTime* _tmp46_ = NULL;
+#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp45_ = metadata;
+#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp46_ = photo_metadata_get_exposure_date_time (_tmp45_);
+#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _metadata_date_time_unref0 (_tmp43_);
+#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp43_ = _tmp46_;
+#line 512 "DataImportSource.c"
+ } else {
+#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _metadata_date_time_unref0 (_tmp43_);
+#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp43_ = NULL;
+#line 518 "DataImportSource.c"
+ }
+#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp47_ = _metadata_date_time_ref0 (_tmp43_);
+#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _metadata_date_time_unref0 (self->priv->exposure_time);
+#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ self->priv->exposure_time = _tmp47_;
+#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _metadata_date_time_unref0 (_tmp43_);
+#line 528 "DataImportSource.c"
+ }
+#line 61 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp49_ = metadata;
+#line 61 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ if (_tmp49_ != NULL) {
+#line 534 "DataImportSource.c"
+ PhotoMetadata* _tmp50_ = NULL;
+ PhotoPreview* _tmp51_ = NULL;
+#line 61 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp50_ = metadata;
+#line 61 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp51_ = photo_metadata_get_preview (_tmp50_, (guint) 0);
+#line 61 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _photo_preview_unref0 (_tmp48_);
+#line 61 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp48_ = _tmp51_;
+#line 545 "DataImportSource.c"
+ } else {
+#line 61 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _photo_preview_unref0 (_tmp48_);
+#line 61 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp48_ = NULL;
+#line 551 "DataImportSource.c"
+ }
+#line 61 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp52_ = _photo_preview_ref0 (_tmp48_);
+#line 61 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ preview = _tmp52_;
+#line 62 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp53_ = preview;
+#line 62 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ if (_tmp53_ != NULL) {
+#line 561 "DataImportSource.c"
+ {
+ guint8* preview_raw = NULL;
+ PhotoPreview* _tmp54_ = NULL;
+ gint _tmp55_ = 0;
+ guint8* _tmp56_ = NULL;
+ gint preview_raw_length1 = 0;
+ gint _preview_raw_size_ = 0;
+ guint8* _tmp57_ = NULL;
+ gint _tmp57__length1 = 0;
+ guint8* _tmp58_ = NULL;
+ gint _tmp58__length1 = 0;
+ gchar* _tmp59_ = NULL;
+#line 64 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp54_ = preview;
+#line 64 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp56_ = photo_preview_flatten (_tmp54_, &_tmp55_, &_inner_error_);
+#line 64 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ preview_raw = _tmp56_;
+#line 64 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ preview_raw_length1 = _tmp55_;
+#line 64 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _preview_raw_size_ = preview_raw_length1;
+#line 64 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 586 "DataImportSource.c"
+ goto __catch203_g_error;
+ }
+#line 65 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp57_ = preview_raw;
+#line 65 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp57__length1 = preview_raw_length1;
+#line 65 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp58_ = preview_raw;
+#line 65 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp58__length1 = preview_raw_length1;
+#line 65 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp59_ = md5_binary (_tmp57_, (gsize) _tmp58__length1);
+#line 65 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _g_free0 (self->priv->preview_md5);
+#line 65 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ self->priv->preview_md5 = _tmp59_;
+#line 63 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ preview_raw = (g_free (preview_raw), NULL);
+#line 605 "DataImportSource.c"
+ }
+ goto __finally203;
+ __catch203_g_error:
+ {
+ GError* e = NULL;
+ gchar* _tmp60_ = NULL;
+ gchar* _tmp61_ = NULL;
+ GError* _tmp62_ = NULL;
+ const gchar* _tmp63_ = NULL;
+#line 63 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ e = _inner_error_;
+#line 63 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _inner_error_ = NULL;
+#line 67 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp60_ = spit_data_imports_data_import_source_get_filename (self);
+#line 67 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp61_ = _tmp60_;
+#line 67 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp62_ = e;
+#line 67 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp63_ = _tmp62_->message;
+#line 67 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ g_warning ("DataImportSource.vala:67: Could not get raw preview for %s: %s", _tmp61_, _tmp63_);
+#line 67 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _g_free0 (_tmp61_);
+#line 63 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _g_error_free0 (e);
+#line 633 "DataImportSource.c"
+ }
+ __finally203:
+#line 63 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 63 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _photo_preview_unref0 (preview);
+#line 63 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _photo_preview_unref0 (_tmp48_);
+#line 63 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _g_free0 (date_time);
+#line 63 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _media_metadata_unref0 (metadata);
+#line 63 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _g_object_unref0 (photo);
+#line 63 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _g_free0 (filename);
+#line 63 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _g_free0 (folder_path);
+#line 63 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.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 63 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ g_clear_error (&_inner_error_);
+#line 63 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ return NULL;
+#line 658 "DataImportSource.c"
+ }
+ }
+ {
+ guint64 _tmp64_ = 0ULL;
+ GFile* _tmp65_ = NULL;
+ guint64 _tmp66_ = 0ULL;
+#line 75 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp65_ = photo;
+#line 75 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp66_ = query_total_file_size (_tmp65_, NULL, &_inner_error_);
+#line 75 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp64_ = _tmp66_;
+#line 75 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 673 "DataImportSource.c"
+ goto __catch204_g_error;
+ }
+#line 75 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ self->priv->file_size = _tmp64_;
+#line 678 "DataImportSource.c"
+ }
+ goto __finally204;
+ __catch204_g_error:
+ {
+ GError* e = NULL;
+ gchar* _tmp67_ = NULL;
+ gchar* _tmp68_ = NULL;
+ GError* _tmp69_ = NULL;
+ const gchar* _tmp70_ = NULL;
+#line 74 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ e = _inner_error_;
+#line 74 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _inner_error_ = NULL;
+#line 77 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp67_ = spit_data_imports_data_import_source_get_filename (self);
+#line 77 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp68_ = _tmp67_;
+#line 77 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp69_ = e;
+#line 77 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp70_ = _tmp69_->message;
+#line 77 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ g_warning ("DataImportSource.vala:77: Could not get file size for %s: %s", _tmp68_, _tmp70_);
+#line 77 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _g_free0 (_tmp68_);
+#line 74 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _g_error_free0 (e);
+#line 706 "DataImportSource.c"
+ }
+ __finally204:
+#line 74 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 74 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _photo_preview_unref0 (preview);
+#line 74 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _photo_preview_unref0 (_tmp48_);
+#line 74 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _g_free0 (date_time);
+#line 74 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _media_metadata_unref0 (metadata);
+#line 74 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _g_object_unref0 (photo);
+#line 74 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _g_free0 (filename);
+#line 74 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _g_free0 (folder_path);
+#line 74 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.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 74 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ g_clear_error (&_inner_error_);
+#line 74 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ return NULL;
+#line 731 "DataImportSource.c"
+ }
+ {
+ time_t _tmp71_ = 0;
+ GFile* _tmp72_ = NULL;
+ time_t _tmp73_ = 0;
+#line 80 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp72_ = photo;
+#line 80 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp73_ = query_file_modified (_tmp72_, &_inner_error_);
+#line 80 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp71_ = _tmp73_;
+#line 80 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 745 "DataImportSource.c"
+ goto __catch205_g_error;
+ }
+#line 80 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ self->priv->modification_time = _tmp71_;
+#line 750 "DataImportSource.c"
+ }
+ goto __finally205;
+ __catch205_g_error:
+ {
+ GError* e = NULL;
+ gchar* _tmp74_ = NULL;
+ gchar* _tmp75_ = NULL;
+ GError* _tmp76_ = NULL;
+ const gchar* _tmp77_ = NULL;
+#line 79 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ e = _inner_error_;
+#line 79 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _inner_error_ = NULL;
+#line 82 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp74_ = spit_data_imports_data_import_source_get_filename (self);
+#line 82 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp75_ = _tmp74_;
+#line 82 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp76_ = e;
+#line 82 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp77_ = _tmp76_->message;
+#line 82 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ g_warning ("DataImportSource.vala:82: Could not get modification time for %s: %s", _tmp75_, _tmp77_);
+#line 82 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _g_free0 (_tmp75_);
+#line 79 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _g_error_free0 (e);
+#line 778 "DataImportSource.c"
+ }
+ __finally205:
+#line 79 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 79 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _photo_preview_unref0 (preview);
+#line 79 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _photo_preview_unref0 (_tmp48_);
+#line 79 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _g_free0 (date_time);
+#line 79 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _media_metadata_unref0 (metadata);
+#line 79 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _g_object_unref0 (photo);
+#line 79 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _g_free0 (filename);
+#line 79 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _g_free0 (folder_path);
+#line 79 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.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 79 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ g_clear_error (&_inner_error_);
+#line 79 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ return NULL;
+#line 803 "DataImportSource.c"
+ }
+#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _photo_preview_unref0 (preview);
+#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _photo_preview_unref0 (_tmp48_);
+#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _g_free0 (date_time);
+#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _media_metadata_unref0 (metadata);
+#line 813 "DataImportSource.c"
+ } else {
+ GFile* _tmp78_ = NULL;
+ gchar* _tmp79_ = NULL;
+ gchar* _tmp80_ = NULL;
+ gchar* _tmp81_ = NULL;
+ gchar* _tmp82_ = NULL;
+#line 85 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp78_ = photo;
+#line 85 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp79_ = g_file_get_path (_tmp78_);
+#line 85 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp80_ = _tmp79_;
+#line 85 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp81_ = g_strdup_printf ("Photo file %s not found", _tmp80_);
+#line 85 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp82_ = _tmp81_;
+#line 85 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ g_debug ("DataImportSource.vala:85: %s", _tmp82_);
+#line 85 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _g_free0 (_tmp82_);
+#line 85 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _g_free0 (_tmp80_);
+#line 836 "DataImportSource.c"
+ }
+#line 26 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _g_object_unref0 (photo);
+#line 26 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _g_free0 (filename);
+#line 26 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _g_free0 (folder_path);
+#line 26 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ return self;
+#line 846 "DataImportSource.c"
+}
+
+
+SpitDataImportsDataImportSource* spit_data_imports_data_import_source_new (SpitDataImportsImportableMediaItem* db_photo) {
+#line 26 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ return spit_data_imports_data_import_source_construct (SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE, db_photo);
+#line 853 "DataImportSource.c"
+}
+
+
+gchar* spit_data_imports_data_import_source_get_filename (SpitDataImportsDataImportSource* self) {
+ gchar* result = NULL;
+ SpitDataImportsImportableMediaItem* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 89 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE (self), NULL);
+#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp0_ = self->priv->db_photo;
+#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp1_ = spit_data_imports_importable_media_item_get_filename (_tmp0_);
+#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ result = _tmp1_;
+#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ return result;
+#line 871 "DataImportSource.c"
+}
+
+
+gchar* spit_data_imports_data_import_source_get_fulldir (SpitDataImportsDataImportSource* self) {
+ gchar* result = NULL;
+ SpitDataImportsImportableMediaItem* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 93 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE (self), NULL);
+#line 94 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp0_ = self->priv->db_photo;
+#line 94 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp1_ = spit_data_imports_importable_media_item_get_folder_path (_tmp0_);
+#line 94 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ result = _tmp1_;
+#line 94 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ return result;
+#line 889 "DataImportSource.c"
+}
+
+
+GFile* spit_data_imports_data_import_source_get_file (SpitDataImportsDataImportSource* self) {
+ GFile* result = NULL;
+ gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ GFile* _tmp2_ = NULL;
+ GFile* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ GFile* _tmp6_ = NULL;
+ GFile* _tmp7_ = NULL;
+#line 97 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE (self), NULL);
+#line 98 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp0_ = spit_data_imports_data_import_source_get_fulldir (self);
+#line 98 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp1_ = _tmp0_;
+#line 98 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp2_ = g_file_new_for_path (_tmp1_);
+#line 98 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp3_ = _tmp2_;
+#line 98 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp4_ = spit_data_imports_data_import_source_get_filename (self);
+#line 98 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp5_ = _tmp4_;
+#line 98 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp6_ = g_file_get_child (_tmp3_, _tmp5_);
+#line 98 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp7_ = _tmp6_;
+#line 98 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _g_free0 (_tmp5_);
+#line 98 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _g_object_unref0 (_tmp3_);
+#line 98 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _g_free0 (_tmp1_);
+#line 98 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ result = _tmp7_;
+#line 98 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ return result;
+#line 931 "DataImportSource.c"
+}
+
+
+gchar* spit_data_imports_data_import_source_get_name (SpitDataImportsDataImportSource* self) {
+ gchar* result = NULL;
+ gchar* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ gboolean _tmp2_ = FALSE;
+#line 101 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE (self), NULL);
+#line 102 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp1_ = self->priv->title;
+#line 102 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp2_ = is_string_empty (_tmp1_);
+#line 102 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ if (!_tmp2_) {
+#line 948 "DataImportSource.c"
+ const gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+#line 102 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp3_ = self->priv->title;
+#line 102 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp4_ = g_strdup (_tmp3_);
+#line 102 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _g_free0 (_tmp0_);
+#line 102 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp0_ = _tmp4_;
+#line 959 "DataImportSource.c"
+ } else {
+ gchar* _tmp5_ = NULL;
+#line 102 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp5_ = spit_data_imports_data_import_source_get_filename (self);
+#line 102 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _g_free0 (_tmp0_);
+#line 102 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp0_ = _tmp5_;
+#line 968 "DataImportSource.c"
+ }
+#line 102 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ result = _tmp0_;
+#line 102 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ return result;
+#line 974 "DataImportSource.c"
+}
+
+
+gchar* spit_data_imports_data_import_source_get_title (SpitDataImportsDataImportSource* self) {
+ gchar* result = NULL;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 105 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE (self), NULL);
+#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp0_ = self->priv->title;
+#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ result = _tmp1_;
+#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ return result;
+#line 992 "DataImportSource.c"
+}
+
+
+PhotoFileFormat spit_data_imports_data_import_source_get_file_format (SpitDataImportsDataImportSource* self) {
+ PhotoFileFormat result = 0;
+ gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ PhotoFileFormat _tmp2_ = 0;
+ PhotoFileFormat _tmp3_ = 0;
+#line 109 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE (self), 0);
+#line 110 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp0_ = spit_data_imports_data_import_source_get_filename (self);
+#line 110 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp1_ = _tmp0_;
+#line 110 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp2_ = photo_file_format_get_by_basename_extension (_tmp1_);
+#line 110 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp3_ = _tmp2_;
+#line 110 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _g_free0 (_tmp1_);
+#line 110 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ result = _tmp3_;
+#line 110 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ return result;
+#line 1018 "DataImportSource.c"
+}
+
+
+gchar* spit_data_imports_data_import_source_to_string (SpitDataImportsDataImportSource* self) {
+ gchar* result = NULL;
+ gchar* _tmp0_ = NULL;
+#line 113 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE (self), NULL);
+#line 114 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp0_ = spit_data_imports_data_import_source_get_name (self);
+#line 114 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ result = _tmp0_;
+#line 114 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ return result;
+#line 1033 "DataImportSource.c"
+}
+
+
+time_t spit_data_imports_data_import_source_get_exposure_time (SpitDataImportsDataImportSource* self) {
+ time_t result = 0;
+ time_t _tmp0_ = 0;
+ MetadataDateTime* _tmp1_ = NULL;
+#line 117 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE (self), 0);
+#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp1_ = self->priv->exposure_time;
+#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ if (_tmp1_ != NULL) {
+#line 1047 "DataImportSource.c"
+ MetadataDateTime* _tmp2_ = NULL;
+ time_t _tmp3_ = 0;
+#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp2_ = self->priv->exposure_time;
+#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp3_ = metadata_date_time_get_timestamp (_tmp2_);
+#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp0_ = _tmp3_;
+#line 1056 "DataImportSource.c"
+ } else {
+ time_t _tmp4_ = 0;
+#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp4_ = self->priv->modification_time;
+#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp0_ = _tmp4_;
+#line 1063 "DataImportSource.c"
+ }
+#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ result = _tmp0_;
+#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ return result;
+#line 1069 "DataImportSource.c"
+}
+
+
+guint64 spit_data_imports_data_import_source_get_filesize (SpitDataImportsDataImportSource* self) {
+ guint64 result = 0ULL;
+ guint64 _tmp0_ = 0ULL;
+#line 121 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE (self), 0ULL);
+#line 122 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp0_ = self->priv->file_size;
+#line 122 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ result = _tmp0_;
+#line 122 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ return result;
+#line 1084 "DataImportSource.c"
+}
+
+
+SpitDataImportsImportableMediaItem* spit_data_imports_data_import_source_get_photo (SpitDataImportsDataImportSource* self) {
+ SpitDataImportsImportableMediaItem* result = NULL;
+ SpitDataImportsImportableMediaItem* _tmp0_ = NULL;
+ SpitDataImportsImportableMediaItem* _tmp1_ = NULL;
+#line 125 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE (self), NULL);
+#line 126 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp0_ = self->priv->db_photo;
+#line 126 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp1_ = _g_object_ref0 (_tmp0_);
+#line 126 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ result = _tmp1_;
+#line 126 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ return result;
+#line 1102 "DataImportSource.c"
+}
+
+
+gboolean spit_data_imports_data_import_source_is_already_imported (SpitDataImportsDataImportSource* self) {
+ gboolean result = FALSE;
+ gboolean _tmp0_ = FALSE;
+ const gchar* _tmp1_ = NULL;
+#line 129 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE (self), FALSE);
+#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp1_ = self->priv->preview_md5;
+#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ if (_tmp1_ != NULL) {
+#line 1116 "DataImportSource.c"
+ const gchar* _tmp2_ = NULL;
+ PhotoFileFormat _tmp3_ = 0;
+ gboolean _tmp4_ = FALSE;
+#line 132 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp2_ = self->priv->preview_md5;
+#line 132 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp3_ = spit_data_imports_data_import_source_get_file_format (self);
+#line 132 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp4_ = library_photo_has_nontrash_duplicate (NULL, _tmp2_, NULL, _tmp3_);
+#line 132 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp0_ = _tmp4_;
+#line 1128 "DataImportSource.c"
+ } else {
+#line 133 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp0_ = FALSE;
+#line 1132 "DataImportSource.c"
+ }
+#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ result = _tmp0_;
+#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ return result;
+#line 1138 "DataImportSource.c"
+}
+
+
+gboolean spit_data_imports_data_import_source_was_backing_file_found (SpitDataImportsDataImportSource* self) {
+ gboolean result = FALSE;
+ gboolean _tmp0_ = FALSE;
+#line 136 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE (self), FALSE);
+#line 137 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _tmp0_ = self->priv->backing_file_found;
+#line 137 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ result = _tmp0_;
+#line 137 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ return result;
+#line 1153 "DataImportSource.c"
+}
+
+
+static void spit_data_imports_value_data_import_source_init (GValue* value) {
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ value->data[0].v_pointer = NULL;
+#line 1160 "DataImportSource.c"
+}
+
+
+static void spit_data_imports_value_data_import_source_free_value (GValue* value) {
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ if (value->data[0].v_pointer) {
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ spit_data_imports_data_import_source_unref (value->data[0].v_pointer);
+#line 1169 "DataImportSource.c"
+ }
+}
+
+
+static void spit_data_imports_value_data_import_source_copy_value (const GValue* src_value, GValue* dest_value) {
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ if (src_value->data[0].v_pointer) {
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ dest_value->data[0].v_pointer = spit_data_imports_data_import_source_ref (src_value->data[0].v_pointer);
+#line 1179 "DataImportSource.c"
+ } else {
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ dest_value->data[0].v_pointer = NULL;
+#line 1183 "DataImportSource.c"
+ }
+}
+
+
+static gpointer spit_data_imports_value_data_import_source_peek_pointer (const GValue* value) {
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ return value->data[0].v_pointer;
+#line 1191 "DataImportSource.c"
+}
+
+
+static gchar* spit_data_imports_value_data_import_source_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ if (collect_values[0].v_pointer) {
+#line 1198 "DataImportSource.c"
+ SpitDataImportsDataImportSource* object;
+ object = collect_values[0].v_pointer;
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ if (object->parent_instance.g_class == NULL) {
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 1205 "DataImportSource.c"
+ } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.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 1209 "DataImportSource.c"
+ }
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ value->data[0].v_pointer = spit_data_imports_data_import_source_ref (object);
+#line 1213 "DataImportSource.c"
+ } else {
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ value->data[0].v_pointer = NULL;
+#line 1217 "DataImportSource.c"
+ }
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ return NULL;
+#line 1221 "DataImportSource.c"
+}
+
+
+static gchar* spit_data_imports_value_data_import_source_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+ SpitDataImportsDataImportSource** object_p;
+ object_p = collect_values[0].v_pointer;
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ if (!object_p) {
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
+#line 1232 "DataImportSource.c"
+ }
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ if (!value->data[0].v_pointer) {
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ *object_p = NULL;
+#line 1238 "DataImportSource.c"
+ } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ *object_p = value->data[0].v_pointer;
+#line 1242 "DataImportSource.c"
+ } else {
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ *object_p = spit_data_imports_data_import_source_ref (value->data[0].v_pointer);
+#line 1246 "DataImportSource.c"
+ }
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ return NULL;
+#line 1250 "DataImportSource.c"
+}
+
+
+GParamSpec* spit_data_imports_param_spec_data_import_source (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+ SpitDataImportsParamSpecDataImportSource* spec;
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ g_return_val_if_fail (g_type_is_a (object_type, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE), NULL);
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ G_PARAM_SPEC (spec)->value_type = object_type;
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ return G_PARAM_SPEC (spec);
+#line 1264 "DataImportSource.c"
+}
+
+
+gpointer spit_data_imports_value_get_data_import_source (const GValue* value) {
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE), NULL);
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ return value->data[0].v_pointer;
+#line 1273 "DataImportSource.c"
+}
+
+
+void spit_data_imports_value_set_data_import_source (GValue* value, gpointer v_object) {
+ SpitDataImportsDataImportSource* old;
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE));
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ old = value->data[0].v_pointer;
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ if (v_object) {
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE));
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ value->data[0].v_pointer = v_object;
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ spit_data_imports_data_import_source_ref (value->data[0].v_pointer);
+#line 1293 "DataImportSource.c"
+ } else {
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ value->data[0].v_pointer = NULL;
+#line 1297 "DataImportSource.c"
+ }
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ if (old) {
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ spit_data_imports_data_import_source_unref (old);
+#line 1303 "DataImportSource.c"
+ }
+}
+
+
+void spit_data_imports_value_take_data_import_source (GValue* value, gpointer v_object) {
+ SpitDataImportsDataImportSource* old;
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE));
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ old = value->data[0].v_pointer;
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ if (v_object) {
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE));
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ value->data[0].v_pointer = v_object;
+#line 1322 "DataImportSource.c"
+ } else {
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ value->data[0].v_pointer = NULL;
+#line 1326 "DataImportSource.c"
+ }
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ if (old) {
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ spit_data_imports_data_import_source_unref (old);
+#line 1332 "DataImportSource.c"
+ }
+}
+
+
+static void spit_data_imports_data_import_source_class_init (SpitDataImportsDataImportSourceClass * klass) {
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ spit_data_imports_data_import_source_parent_class = g_type_class_peek_parent (klass);
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ ((SpitDataImportsDataImportSourceClass *) klass)->finalize = spit_data_imports_data_import_source_finalize;
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ g_type_class_add_private (klass, sizeof (SpitDataImportsDataImportSourcePrivate));
+#line 1344 "DataImportSource.c"
+}
+
+
+static void spit_data_imports_data_import_source_instance_init (SpitDataImportsDataImportSource * self) {
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ self->priv = SPIT_DATA_IMPORTS_DATA_IMPORT_SOURCE_GET_PRIVATE (self);
+#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ self->priv->title = NULL;
+#line 21 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ self->priv->preview_md5 = NULL;
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ self->ref_count = 1;
+#line 1357 "DataImportSource.c"
+}
+
+
+static void spit_data_imports_data_import_source_finalize (SpitDataImportsDataImportSource* obj) {
+ SpitDataImportsDataImportSource * self;
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE, SpitDataImportsDataImportSource);
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ g_signal_handlers_destroy (self);
+#line 19 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _g_object_unref0 (self->priv->db_photo);
+#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _g_free0 (self->priv->title);
+#line 21 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _g_free0 (self->priv->preview_md5);
+#line 24 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ _metadata_date_time_unref0 (self->priv->exposure_time);
+#line 1375 "DataImportSource.c"
+}
+
+
+/**
+ * Photo source implementation for alien databases. This class is responsible
+ * for extracting meta-data out of a source photo to support the import
+ * process.
+ *
+ * This class does not extend PhotoSource in order to minimise the API to the
+ * absolute minimum required to run the import job.
+ */
+GType spit_data_imports_data_import_source_get_type (void) {
+ static volatile gsize spit_data_imports_data_import_source_type_id__volatile = 0;
+ if (g_once_init_enter (&spit_data_imports_data_import_source_type_id__volatile)) {
+ static const GTypeValueTable g_define_type_value_table = { spit_data_imports_value_data_import_source_init, spit_data_imports_value_data_import_source_free_value, spit_data_imports_value_data_import_source_copy_value, spit_data_imports_value_data_import_source_peek_pointer, "p", spit_data_imports_value_data_import_source_collect_value, "p", spit_data_imports_value_data_import_source_lcopy_value };
+ static const GTypeInfo g_define_type_info = { sizeof (SpitDataImportsDataImportSourceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) spit_data_imports_data_import_source_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SpitDataImportsDataImportSource), 0, (GInstanceInitFunc) spit_data_imports_data_import_source_instance_init, &g_define_type_value_table };
+ static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
+ GType spit_data_imports_data_import_source_type_id;
+ spit_data_imports_data_import_source_type_id = g_type_register_fundamental (g_type_fundamental_next (), "SpitDataImportsDataImportSource", &g_define_type_info, &g_define_type_fundamental_info, 0);
+ g_once_init_leave (&spit_data_imports_data_import_source_type_id__volatile, spit_data_imports_data_import_source_type_id);
+ }
+ return spit_data_imports_data_import_source_type_id__volatile;
+}
+
+
+gpointer spit_data_imports_data_import_source_ref (gpointer instance) {
+ SpitDataImportsDataImportSource* self;
+ self = instance;
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ g_atomic_int_inc (&self->ref_count);
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ return instance;
+#line 1408 "DataImportSource.c"
+}
+
+
+void spit_data_imports_data_import_source_unref (gpointer instance) {
+ SpitDataImportsDataImportSource* self;
+ self = instance;
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ if (g_atomic_int_dec_and_test (&self->ref_count)) {
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ SPIT_DATA_IMPORTS_DATA_IMPORT_SOURCE_GET_CLASS (self)->finalize (self);
+#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala"
+ g_type_free_instance ((GTypeInstance *) self);
+#line 1421 "DataImportSource.c"
+ }
+}
+
+
+
diff --git a/src/data_imports/DataImports.c b/src/data_imports/DataImports.c
new file mode 100644
index 0000000..2b9e8e9
--- /dev/null
+++ b/src/data_imports/DataImports.c
@@ -0,0 +1,117 @@
+/* DataImports.c generated by valac 0.32.1, the Vala compiler
+ * generated from DataImports.vala, do not modify */
+
+/* Copyright 2016 Software Freedom Conservancy Inc.
+ *
+ * This software is licensed under the GNU Lesser General Public License
+ * (version 2.1 or later). See the COPYING file in this distribution.
+ */
+/* This file is the master unit file for the DataImports unit. It should be edited to include
+ * whatever code is deemed necessary.
+ *
+ * The init() and terminate() methods are mandatory.
+ *
+ * If the unit needs to be configured prior to initialization, add the proper parameters to
+ * the preconfigure() method, implement it, and ensure in init() that it's been called.
+ */
+
+#include <glib.h>
+#include <glib-object.h>
+#include <stdlib.h>
+#include <string.h>
+#include "shotwell-plugin-dev-1.0.h"
+#include <glib/gi18n-lib.h>
+
+
+
+
+void data_imports_init (GError** error);
+static void _vala_array_add150 (gchar*** array, int* length, int* size, gchar* value);
+void plugins_register_extension_point (GType type, const gchar* name, const gchar* icon_name, gchar** core_ids, int core_ids_length1);
+#define RESOURCES_IMPORT "shotwell-import"
+void data_imports_terminate (void);
+static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
+static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);
+
+
+static void _vala_array_add150 (gchar*** array, int* length, int* size, gchar* value) {
+#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImports.vala"
+ if ((*length) == (*size)) {
+#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImports.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImports.vala"
+ *array = g_renew (gchar*, *array, (*size) + 1);
+#line 45 "DataImports.c"
+ }
+#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImports.vala"
+ (*array)[(*length)++] = value;
+#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImports.vala"
+ (*array)[*length] = NULL;
+#line 51 "DataImports.c"
+}
+
+
+void data_imports_init (GError** error) {
+ gchar** core_ids = NULL;
+ gchar** _tmp0_ = NULL;
+ gint core_ids_length1 = 0;
+ gint _core_ids_size_ = 0;
+ gchar** _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+ gchar* _tmp2_ = NULL;
+ const gchar* _tmp3_ = NULL;
+ gchar** _tmp4_ = NULL;
+ gint _tmp4__length1 = 0;
+#line 19 "/home/jens/Source/shotwell/src/data_imports/DataImports.vala"
+ _tmp0_ = g_new0 (gchar*, 0 + 1);
+#line 19 "/home/jens/Source/shotwell/src/data_imports/DataImports.vala"
+ core_ids = _tmp0_;
+#line 19 "/home/jens/Source/shotwell/src/data_imports/DataImports.vala"
+ core_ids_length1 = 0;
+#line 19 "/home/jens/Source/shotwell/src/data_imports/DataImports.vala"
+ _core_ids_size_ = core_ids_length1;
+#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImports.vala"
+ _tmp1_ = core_ids;
+#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImports.vala"
+ _tmp1__length1 = core_ids_length1;
+#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImports.vala"
+ _tmp2_ = g_strdup ("org.yorba.shotwell.dataimports.fspot");
+#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImports.vala"
+ _vala_array_add150 (&core_ids, &core_ids_length1, &_core_ids_size_, _tmp2_);
+#line 22 "/home/jens/Source/shotwell/src/data_imports/DataImports.vala"
+ _tmp3_ = _ ("Data Imports");
+#line 22 "/home/jens/Source/shotwell/src/data_imports/DataImports.vala"
+ _tmp4_ = core_ids;
+#line 22 "/home/jens/Source/shotwell/src/data_imports/DataImports.vala"
+ _tmp4__length1 = core_ids_length1;
+#line 22 "/home/jens/Source/shotwell/src/data_imports/DataImports.vala"
+ plugins_register_extension_point (SPIT_DATA_IMPORTS_TYPE_SERVICE, _tmp3_, RESOURCES_IMPORT, _tmp4_, _tmp4__length1);
+#line 18 "/home/jens/Source/shotwell/src/data_imports/DataImports.vala"
+ core_ids = (_vala_array_free (core_ids, core_ids_length1, (GDestroyNotify) g_free), NULL);
+#line 92 "DataImports.c"
+}
+
+
+void data_imports_terminate (void) {
+}
+
+
+static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) {
+ if ((array != NULL) && (destroy_func != NULL)) {
+ int i;
+ for (i = 0; i < array_length; i = i + 1) {
+ if (((gpointer*) array)[i] != NULL) {
+ destroy_func (((gpointer*) array)[i]);
+ }
+ }
+ }
+}
+
+
+static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) {
+ _vala_array_destroy (array, array_length, destroy_func);
+ g_free (array);
+}
+
+
+
diff --git a/src/data_imports/DataImportsPluginHost.c b/src/data_imports/DataImportsPluginHost.c
new file mode 100644
index 0000000..308cd17
--- /dev/null
+++ b/src/data_imports/DataImportsPluginHost.c
@@ -0,0 +1,3451 @@
+/* DataImportsPluginHost.c generated by valac 0.32.1, the Vala compiler
+ * generated from DataImportsPluginHost.vala, do not modify */
+
+/* Copyright 2016 Software Freedom Conservancy Inc.
+ *
+ * This software is licensed under the GNU Lesser General Public License
+ * (version 2.1 or later). See the COPYING file in this distribution.
+ */
+
+#include <glib.h>
+#include <glib-object.h>
+#include "shotwell-plugin-dev-1.0.h"
+#include <float.h>
+#include <math.h>
+#include <stdlib.h>
+#include <string.h>
+#include <gee.h>
+#include <glib/gi18n-lib.h>
+#include <gio/gio.h>
+#include <gtk/gtk.h>
+#include <time.h>
+#include <gobject/gvaluecollector.h>
+
+
+#define SPIT_DATA_IMPORTS_TYPE_CORE_IMPORTER (spit_data_imports_core_importer_get_type ())
+#define SPIT_DATA_IMPORTS_CORE_IMPORTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_CORE_IMPORTER, SpitDataImportsCoreImporter))
+#define SPIT_DATA_IMPORTS_CORE_IMPORTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SPIT_DATA_IMPORTS_TYPE_CORE_IMPORTER, SpitDataImportsCoreImporterClass))
+#define SPIT_DATA_IMPORTS_IS_CORE_IMPORTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_CORE_IMPORTER))
+#define SPIT_DATA_IMPORTS_IS_CORE_IMPORTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SPIT_DATA_IMPORTS_TYPE_CORE_IMPORTER))
+#define SPIT_DATA_IMPORTS_CORE_IMPORTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SPIT_DATA_IMPORTS_TYPE_CORE_IMPORTER, SpitDataImportsCoreImporterClass))
+
+typedef struct _SpitDataImportsCoreImporter SpitDataImportsCoreImporter;
+typedef struct _SpitDataImportsCoreImporterClass SpitDataImportsCoreImporterClass;
+typedef struct _SpitDataImportsCoreImporterPrivate SpitDataImportsCoreImporterPrivate;
+
+#define TYPE_BATCH_IMPORT_ROLL (batch_import_roll_get_type ())
+#define BATCH_IMPORT_ROLL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT_ROLL, BatchImportRoll))
+#define BATCH_IMPORT_ROLL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT_ROLL, BatchImportRollClass))
+#define IS_BATCH_IMPORT_ROLL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT_ROLL))
+#define IS_BATCH_IMPORT_ROLL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT_ROLL))
+#define BATCH_IMPORT_ROLL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT_ROLL, BatchImportRollClass))
+
+typedef struct _BatchImportRoll BatchImportRoll;
+typedef struct _BatchImportRollClass BatchImportRollClass;
+#define _batch_import_roll_unref0(var) ((var == NULL) ? NULL : (var = (batch_import_roll_unref (var), NULL)))
+
+#define TYPE_SORTED_LIST (sorted_list_get_type ())
+#define SORTED_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SORTED_LIST, SortedList))
+#define SORTED_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SORTED_LIST, SortedListClass))
+#define IS_SORTED_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SORTED_LIST))
+#define IS_SORTED_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SORTED_LIST))
+#define SORTED_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SORTED_LIST, SortedListClass))
+
+typedef struct _SortedList SortedList;
+typedef struct _SortedListClass SortedListClass;
+
+#define TYPE_BATCH_IMPORT_JOB (batch_import_job_get_type ())
+#define BATCH_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT_JOB, BatchImportJob))
+#define BATCH_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT_JOB, BatchImportJobClass))
+#define IS_BATCH_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT_JOB))
+#define IS_BATCH_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT_JOB))
+#define BATCH_IMPORT_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT_JOB, BatchImportJobClass))
+
+typedef struct _BatchImportJob BatchImportJob;
+typedef struct _BatchImportJobClass BatchImportJobClass;
+
+#define SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB (spit_data_imports_data_import_job_get_type ())
+#define SPIT_DATA_IMPORTS_DATA_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJob))
+#define SPIT_DATA_IMPORTS_DATA_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJobClass))
+#define SPIT_DATA_IMPORTS_IS_DATA_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB))
+#define SPIT_DATA_IMPORTS_IS_DATA_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB))
+#define SPIT_DATA_IMPORTS_DATA_IMPORT_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJobClass))
+
+typedef struct _SpitDataImportsDataImportJob SpitDataImportsDataImportJob;
+typedef struct _SpitDataImportsDataImportJobClass SpitDataImportsDataImportJobClass;
+
+#define SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE (spit_data_imports_data_import_source_get_type ())
+#define SPIT_DATA_IMPORTS_DATA_IMPORT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE, SpitDataImportsDataImportSource))
+#define SPIT_DATA_IMPORTS_DATA_IMPORT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE, SpitDataImportsDataImportSourceClass))
+#define SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE))
+#define SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE))
+#define SPIT_DATA_IMPORTS_DATA_IMPORT_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE, SpitDataImportsDataImportSourceClass))
+
+typedef struct _SpitDataImportsDataImportSource SpitDataImportsDataImportSource;
+typedef struct _SpitDataImportsDataImportSourceClass SpitDataImportsDataImportSourceClass;
+#define _g_free0(var) (var = (g_free (var), NULL))
+#define _batch_import_job_unref0(var) ((var == NULL) ? NULL : (var = (batch_import_job_unref (var), NULL)))
+#define _spit_data_imports_data_import_source_unref0(var) ((var == NULL) ? NULL : (var = (spit_data_imports_data_import_source_unref (var), NULL)))
+#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
+
+#define TYPE_BATCH_IMPORT (batch_import_get_type ())
+#define BATCH_IMPORT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT, BatchImport))
+#define BATCH_IMPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT, BatchImportClass))
+#define IS_BATCH_IMPORT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT))
+#define IS_BATCH_IMPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT))
+#define BATCH_IMPORT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT, BatchImportClass))
+
+typedef struct _BatchImport BatchImport;
+typedef struct _BatchImportClass BatchImportClass;
+
+#define TYPE_IMPORT_MANIFEST (import_manifest_get_type ())
+#define IMPORT_MANIFEST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IMPORT_MANIFEST, ImportManifest))
+#define IMPORT_MANIFEST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IMPORT_MANIFEST, ImportManifestClass))
+#define IS_IMPORT_MANIFEST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IMPORT_MANIFEST))
+#define IS_IMPORT_MANIFEST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IMPORT_MANIFEST))
+#define IMPORT_MANIFEST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IMPORT_MANIFEST, ImportManifestClass))
+
+typedef struct _ImportManifest ImportManifest;
+typedef struct _ImportManifestClass ImportManifestClass;
+
+#define TYPE_PAGE_WINDOW (page_window_get_type ())
+#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow))
+#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass))
+#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW))
+#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW))
+#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass))
+
+typedef struct _PageWindow PageWindow;
+typedef struct _PageWindowClass PageWindowClass;
+
+#define TYPE_APP_WINDOW (app_window_get_type ())
+#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow))
+#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass))
+#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW))
+#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW))
+#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass))
+
+typedef struct _AppWindow AppWindow;
+typedef struct _AppWindowClass AppWindowClass;
+
+#define TYPE_LIBRARY_WINDOW (library_window_get_type ())
+#define LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_WINDOW, LibraryWindow))
+#define LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_WINDOW, LibraryWindowClass))
+#define IS_LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_WINDOW))
+#define IS_LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_WINDOW))
+#define LIBRARY_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_WINDOW, LibraryWindowClass))
+
+typedef struct _LibraryWindow LibraryWindow;
+typedef struct _LibraryWindowClass LibraryWindowClass;
+typedef struct _SpitDataImportsParamSpecCoreImporter SpitDataImportsParamSpecCoreImporter;
+
+#define PLUGINS_TYPE_STANDARD_HOST_INTERFACE (plugins_standard_host_interface_get_type ())
+#define PLUGINS_STANDARD_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterface))
+#define PLUGINS_STANDARD_HOST_INTERFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterfaceClass))
+#define PLUGINS_IS_STANDARD_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PLUGINS_TYPE_STANDARD_HOST_INTERFACE))
+#define PLUGINS_IS_STANDARD_HOST_INTERFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PLUGINS_TYPE_STANDARD_HOST_INTERFACE))
+#define PLUGINS_STANDARD_HOST_INTERFACE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterfaceClass))
+
+typedef struct _PluginsStandardHostInterface PluginsStandardHostInterface;
+typedef struct _PluginsStandardHostInterfaceClass PluginsStandardHostInterfaceClass;
+typedef struct _PluginsStandardHostInterfacePrivate PluginsStandardHostInterfacePrivate;
+
+#define SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST (spit_data_imports_concrete_data_imports_host_get_type ())
+#define SPIT_DATA_IMPORTS_CONCRETE_DATA_IMPORTS_HOST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHost))
+#define SPIT_DATA_IMPORTS_CONCRETE_DATA_IMPORTS_HOST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHostClass))
+#define SPIT_DATA_IMPORTS_IS_CONCRETE_DATA_IMPORTS_HOST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST))
+#define SPIT_DATA_IMPORTS_IS_CONCRETE_DATA_IMPORTS_HOST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST))
+#define SPIT_DATA_IMPORTS_CONCRETE_DATA_IMPORTS_HOST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHostClass))
+
+typedef struct _SpitDataImportsConcreteDataImportsHost SpitDataImportsConcreteDataImportsHost;
+typedef struct _SpitDataImportsConcreteDataImportsHostClass SpitDataImportsConcreteDataImportsHostClass;
+typedef struct _SpitDataImportsConcreteDataImportsHostPrivate SpitDataImportsConcreteDataImportsHostPrivate;
+
+#define DATA_IMPORTS_UI_TYPE_DATA_IMPORTS_DIALOG (data_imports_ui_data_imports_dialog_get_type ())
+#define DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_UI_TYPE_DATA_IMPORTS_DIALOG, DataImportsUIDataImportsDialog))
+#define DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_UI_TYPE_DATA_IMPORTS_DIALOG, DataImportsUIDataImportsDialogClass))
+#define DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_UI_TYPE_DATA_IMPORTS_DIALOG))
+#define DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_UI_TYPE_DATA_IMPORTS_DIALOG))
+#define DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_UI_TYPE_DATA_IMPORTS_DIALOG, DataImportsUIDataImportsDialogClass))
+
+typedef struct _DataImportsUIDataImportsDialog DataImportsUIDataImportsDialog;
+typedef struct _DataImportsUIDataImportsDialogClass DataImportsUIDataImportsDialogClass;
+
+#define DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE (data_imports_ui_concrete_dialog_pane_get_type ())
+#define DATA_IMPORTS_UI_CONCRETE_DIALOG_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE, DataImportsUIConcreteDialogPane))
+#define DATA_IMPORTS_UI_CONCRETE_DIALOG_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE, DataImportsUIConcreteDialogPaneClass))
+#define DATA_IMPORTS_UI_IS_CONCRETE_DIALOG_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE))
+#define DATA_IMPORTS_UI_IS_CONCRETE_DIALOG_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE))
+#define DATA_IMPORTS_UI_CONCRETE_DIALOG_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE, DataImportsUIConcreteDialogPaneClass))
+
+typedef struct _DataImportsUIConcreteDialogPane DataImportsUIConcreteDialogPane;
+typedef struct _DataImportsUIConcreteDialogPaneClass DataImportsUIConcreteDialogPaneClass;
+
+#define DATA_IMPORTS_UI_TYPE_PROGRESS_PANE (data_imports_ui_progress_pane_get_type ())
+#define DATA_IMPORTS_UI_PROGRESS_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_UI_TYPE_PROGRESS_PANE, DataImportsUIProgressPane))
+#define DATA_IMPORTS_UI_PROGRESS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_UI_TYPE_PROGRESS_PANE, DataImportsUIProgressPaneClass))
+#define DATA_IMPORTS_UI_IS_PROGRESS_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_UI_TYPE_PROGRESS_PANE))
+#define DATA_IMPORTS_UI_IS_PROGRESS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_UI_TYPE_PROGRESS_PANE))
+#define DATA_IMPORTS_UI_PROGRESS_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_UI_TYPE_PROGRESS_PANE, DataImportsUIProgressPaneClass))
+
+typedef struct _DataImportsUIProgressPane DataImportsUIProgressPane;
+typedef struct _DataImportsUIProgressPaneClass DataImportsUIProgressPaneClass;
+#define _spit_data_imports_core_importer_unref0(var) ((var == NULL) ? NULL : (var = (spit_data_imports_core_importer_unref (var), NULL)))
+
+#define DATA_IMPORTS_UI_TYPE_STATIC_MESSAGE_PANE (data_imports_ui_static_message_pane_get_type ())
+#define DATA_IMPORTS_UI_STATIC_MESSAGE_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_UI_TYPE_STATIC_MESSAGE_PANE, DataImportsUIStaticMessagePane))
+#define DATA_IMPORTS_UI_STATIC_MESSAGE_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_UI_TYPE_STATIC_MESSAGE_PANE, DataImportsUIStaticMessagePaneClass))
+#define DATA_IMPORTS_UI_IS_STATIC_MESSAGE_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_UI_TYPE_STATIC_MESSAGE_PANE))
+#define DATA_IMPORTS_UI_IS_STATIC_MESSAGE_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_UI_TYPE_STATIC_MESSAGE_PANE))
+#define DATA_IMPORTS_UI_STATIC_MESSAGE_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_UI_TYPE_STATIC_MESSAGE_PANE, DataImportsUIStaticMessagePaneClass))
+
+typedef struct _DataImportsUIStaticMessagePane DataImportsUIStaticMessagePane;
+typedef struct _DataImportsUIStaticMessagePaneClass DataImportsUIStaticMessagePaneClass;
+
+#define DATA_IMPORTS_UI_TYPE_LIBRARY_SELECTION_PANE (data_imports_ui_library_selection_pane_get_type ())
+#define DATA_IMPORTS_UI_LIBRARY_SELECTION_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_UI_TYPE_LIBRARY_SELECTION_PANE, DataImportsUILibrarySelectionPane))
+#define DATA_IMPORTS_UI_LIBRARY_SELECTION_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_UI_TYPE_LIBRARY_SELECTION_PANE, DataImportsUILibrarySelectionPaneClass))
+#define DATA_IMPORTS_UI_IS_LIBRARY_SELECTION_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_UI_TYPE_LIBRARY_SELECTION_PANE))
+#define DATA_IMPORTS_UI_IS_LIBRARY_SELECTION_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_UI_TYPE_LIBRARY_SELECTION_PANE))
+#define DATA_IMPORTS_UI_LIBRARY_SELECTION_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_UI_TYPE_LIBRARY_SELECTION_PANE, DataImportsUILibrarySelectionPaneClass))
+
+typedef struct _DataImportsUILibrarySelectionPane DataImportsUILibrarySelectionPane;
+typedef struct _DataImportsUILibrarySelectionPaneClass DataImportsUILibrarySelectionPaneClass;
+
+#define SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST (spit_data_imports_welcome_data_imports_host_get_type ())
+#define SPIT_DATA_IMPORTS_WELCOME_DATA_IMPORTS_HOST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST, SpitDataImportsWelcomeDataImportsHost))
+#define SPIT_DATA_IMPORTS_WELCOME_DATA_IMPORTS_HOST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST, SpitDataImportsWelcomeDataImportsHostClass))
+#define SPIT_DATA_IMPORTS_IS_WELCOME_DATA_IMPORTS_HOST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST))
+#define SPIT_DATA_IMPORTS_IS_WELCOME_DATA_IMPORTS_HOST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST))
+#define SPIT_DATA_IMPORTS_WELCOME_DATA_IMPORTS_HOST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST, SpitDataImportsWelcomeDataImportsHostClass))
+
+typedef struct _SpitDataImportsWelcomeDataImportsHost SpitDataImportsWelcomeDataImportsHost;
+typedef struct _SpitDataImportsWelcomeDataImportsHostClass SpitDataImportsWelcomeDataImportsHostClass;
+typedef struct _SpitDataImportsWelcomeDataImportsHostPrivate SpitDataImportsWelcomeDataImportsHostPrivate;
+
+#define SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_META_HOST (spit_data_imports_welcome_import_meta_host_get_type ())
+#define SPIT_DATA_IMPORTS_WELCOME_IMPORT_META_HOST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_META_HOST, SpitDataImportsWelcomeImportMetaHost))
+#define SPIT_DATA_IMPORTS_WELCOME_IMPORT_META_HOST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_META_HOST, SpitDataImportsWelcomeImportMetaHostClass))
+#define SPIT_DATA_IMPORTS_IS_WELCOME_IMPORT_META_HOST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_META_HOST))
+#define SPIT_DATA_IMPORTS_IS_WELCOME_IMPORT_META_HOST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_META_HOST))
+#define SPIT_DATA_IMPORTS_WELCOME_IMPORT_META_HOST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_META_HOST, SpitDataImportsWelcomeImportMetaHostClass))
+
+typedef struct _SpitDataImportsWelcomeImportMetaHost SpitDataImportsWelcomeImportMetaHost;
+typedef struct _SpitDataImportsWelcomeImportMetaHostClass SpitDataImportsWelcomeImportMetaHostClass;
+
+#define TYPE_WELCOME_SERVICE_ENTRY (welcome_service_entry_get_type ())
+#define WELCOME_SERVICE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_WELCOME_SERVICE_ENTRY, WelcomeServiceEntry))
+#define IS_WELCOME_SERVICE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_WELCOME_SERVICE_ENTRY))
+#define WELCOME_SERVICE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_WELCOME_SERVICE_ENTRY, WelcomeServiceEntryIface))
+
+typedef struct _WelcomeServiceEntry WelcomeServiceEntry;
+typedef struct _WelcomeServiceEntryIface WelcomeServiceEntryIface;
+
+#define SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_SERVICE_ENTRY (spit_data_imports_welcome_import_service_entry_get_type ())
+#define SPIT_DATA_IMPORTS_WELCOME_IMPORT_SERVICE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_SERVICE_ENTRY, SpitDataImportsWelcomeImportServiceEntry))
+#define SPIT_DATA_IMPORTS_WELCOME_IMPORT_SERVICE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_SERVICE_ENTRY, SpitDataImportsWelcomeImportServiceEntryClass))
+#define SPIT_DATA_IMPORTS_IS_WELCOME_IMPORT_SERVICE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_SERVICE_ENTRY))
+#define SPIT_DATA_IMPORTS_IS_WELCOME_IMPORT_SERVICE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_SERVICE_ENTRY))
+#define SPIT_DATA_IMPORTS_WELCOME_IMPORT_SERVICE_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_SERVICE_ENTRY, SpitDataImportsWelcomeImportServiceEntryClass))
+
+typedef struct _SpitDataImportsWelcomeImportServiceEntry SpitDataImportsWelcomeImportServiceEntry;
+typedef struct _SpitDataImportsWelcomeImportServiceEntryClass SpitDataImportsWelcomeImportServiceEntryClass;
+typedef struct _SpitDataImportsWelcomeImportServiceEntryPrivate SpitDataImportsWelcomeImportServiceEntryPrivate;
+typedef struct _SpitDataImportsWelcomeImportMetaHostPrivate SpitDataImportsWelcomeImportMetaHostPrivate;
+
+#define TYPE_WELCOME_DIALOG (welcome_dialog_get_type ())
+#define WELCOME_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_WELCOME_DIALOG, WelcomeDialog))
+#define WELCOME_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_WELCOME_DIALOG, WelcomeDialogClass))
+#define IS_WELCOME_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_WELCOME_DIALOG))
+#define IS_WELCOME_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_WELCOME_DIALOG))
+#define WELCOME_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_WELCOME_DIALOG, WelcomeDialogClass))
+
+typedef struct _WelcomeDialog WelcomeDialog;
+typedef struct _WelcomeDialogClass WelcomeDialogClass;
+typedef struct _ImportManifestPrivate ImportManifestPrivate;
+
+#define TYPE_DATA_OBJECT (data_object_get_type ())
+#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject))
+#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass))
+#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
+#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
+#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
+
+typedef struct _DataObject DataObject;
+typedef struct _DataObjectClass DataObjectClass;
+
+#define TYPE_DATA_SOURCE (data_source_get_type ())
+#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
+#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
+#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
+#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
+#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
+
+typedef struct _DataSource DataSource;
+typedef struct _DataSourceClass DataSourceClass;
+
+#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ())
+#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource))
+#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
+#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
+#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
+#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
+
+typedef struct _ThumbnailSource ThumbnailSource;
+typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
+
+#define TYPE_MEDIA_SOURCE (media_source_get_type ())
+#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource))
+#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass))
+#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE))
+#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE))
+#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass))
+
+typedef struct _MediaSource MediaSource;
+typedef struct _MediaSourceClass MediaSourceClass;
+
+#define TYPE_BATCH_IMPORT_RESULT (batch_import_result_get_type ())
+#define BATCH_IMPORT_RESULT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT_RESULT, BatchImportResult))
+#define BATCH_IMPORT_RESULT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT_RESULT, BatchImportResultClass))
+#define IS_BATCH_IMPORT_RESULT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT_RESULT))
+#define IS_BATCH_IMPORT_RESULT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT_RESULT))
+#define BATCH_IMPORT_RESULT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT_RESULT, BatchImportResultClass))
+
+typedef struct _BatchImportResult BatchImportResult;
+typedef struct _BatchImportResultClass BatchImportResultClass;
+#define _import_manifest_unref0(var) ((var == NULL) ? NULL : (var = (import_manifest_unref (var), NULL)))
+#define _batch_import_result_unref0(var) ((var == NULL) ? NULL : (var = (batch_import_result_unref (var), NULL)))
+
+#define IMPORT_UI_TYPE_QUESTION_PARAMS (import_ui_question_params_get_type ())
+#define IMPORT_UI_QUESTION_PARAMS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), IMPORT_UI_TYPE_QUESTION_PARAMS, ImportUIQuestionParams))
+#define IMPORT_UI_QUESTION_PARAMS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), IMPORT_UI_TYPE_QUESTION_PARAMS, ImportUIQuestionParamsClass))
+#define IMPORT_UI_IS_QUESTION_PARAMS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), IMPORT_UI_TYPE_QUESTION_PARAMS))
+#define IMPORT_UI_IS_QUESTION_PARAMS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), IMPORT_UI_TYPE_QUESTION_PARAMS))
+#define IMPORT_UI_QUESTION_PARAMS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), IMPORT_UI_TYPE_QUESTION_PARAMS, ImportUIQuestionParamsClass))
+
+typedef struct _ImportUIQuestionParams ImportUIQuestionParams;
+typedef struct _ImportUIQuestionParamsClass ImportUIQuestionParamsClass;
+
+struct _SpitDataImportsCoreImporter {
+ GTypeInstance parent_instance;
+ volatile int ref_count;
+ SpitDataImportsCoreImporterPrivate * priv;
+ gint imported_items_count;
+ BatchImportRoll* current_import_roll;
+};
+
+struct _SpitDataImportsCoreImporterClass {
+ GTypeClass parent_class;
+ void (*finalize) (SpitDataImportsCoreImporter *self);
+};
+
+struct _SpitDataImportsCoreImporterPrivate {
+ SpitDataImportsPluginHost* host;
+};
+
+typedef gint64 (*Comparator) (void* a, void* b, void* user_data);
+typedef void (*BatchImportImportReporter) (ImportManifest* manifest, BatchImportRoll* import_roll, void* user_data);
+struct _SpitDataImportsParamSpecCoreImporter {
+ GParamSpec parent_instance;
+};
+
+struct _PluginsStandardHostInterface {
+ GObject parent_instance;
+ PluginsStandardHostInterfacePrivate * priv;
+};
+
+struct _PluginsStandardHostInterfaceClass {
+ GObjectClass parent_class;
+};
+
+struct _SpitDataImportsConcreteDataImportsHost {
+ PluginsStandardHostInterface parent_instance;
+ SpitDataImportsConcreteDataImportsHostPrivate * priv;
+};
+
+struct _SpitDataImportsConcreteDataImportsHostClass {
+ PluginsStandardHostInterfaceClass parent_class;
+};
+
+struct _SpitDataImportsConcreteDataImportsHostPrivate {
+ SpitDataImportsDataImporter* active_importer;
+ DataImportsUIDataImportsDialog* dialog;
+ DataImportsUIProgressPane* progress_pane;
+ gboolean importing_halted;
+ SpitDataImportsCoreImporter* core_importer;
+};
+
+struct _SpitDataImportsWelcomeDataImportsHost {
+ PluginsStandardHostInterface parent_instance;
+ SpitDataImportsWelcomeDataImportsHostPrivate * priv;
+};
+
+struct _SpitDataImportsWelcomeDataImportsHostClass {
+ PluginsStandardHostInterfaceClass parent_class;
+};
+
+struct _SpitDataImportsWelcomeDataImportsHostPrivate {
+ SpitDataImportsWelcomeImportMetaHost* meta_host;
+ SpitDataImportsDataImporter* active_importer;
+ gboolean importing_halted;
+ SpitDataImportsCoreImporter* core_importer;
+};
+
+struct _WelcomeServiceEntryIface {
+ GTypeInterface parent_iface;
+ gchar* (*get_service_name) (WelcomeServiceEntry* self);
+ void (*execute) (WelcomeServiceEntry* self);
+};
+
+struct _SpitDataImportsWelcomeImportServiceEntry {
+ GObject parent_instance;
+ SpitDataImportsWelcomeImportServiceEntryPrivate * priv;
+};
+
+struct _SpitDataImportsWelcomeImportServiceEntryClass {
+ GObjectClass parent_class;
+};
+
+struct _SpitDataImportsWelcomeImportServiceEntryPrivate {
+ gchar* pluggable_name;
+ SpitDataImportsImportableLibrary** discovered_libraries;
+ gint discovered_libraries_length1;
+ gint _discovered_libraries_size_;
+ SpitDataImportsPluginHost* host;
+};
+
+struct _SpitDataImportsWelcomeImportMetaHost {
+ GObject parent_instance;
+ SpitDataImportsWelcomeImportMetaHostPrivate * priv;
+};
+
+struct _SpitDataImportsWelcomeImportMetaHostClass {
+ GObjectClass parent_class;
+};
+
+struct _SpitDataImportsWelcomeImportMetaHostPrivate {
+ WelcomeDialog* dialog;
+};
+
+struct _ImportManifest {
+ GTypeInstance parent_instance;
+ volatile int ref_count;
+ ImportManifestPrivate * priv;
+ GeeList* imported;
+ GeeList* success;
+ GeeList* camera_failed;
+ GeeList* failed;
+ GeeList* write_failed;
+ GeeList* skipped_photos;
+ GeeList* skipped_files;
+ GeeList* aborted;
+ GeeList* already_imported;
+ GeeList* corrupt_files;
+ GeeList* all;
+};
+
+struct _ImportManifestClass {
+ GTypeClass parent_class;
+ void (*finalize) (ImportManifest *self);
+};
+
+
+static gpointer spit_data_imports_core_importer_parent_class = NULL;
+static gpointer spit_data_imports_concrete_data_imports_host_parent_class = NULL;
+static SpitDataImportsPluginHostIface* spit_data_imports_concrete_data_imports_host_spit_data_imports_plugin_host_parent_iface = NULL;
+static gpointer spit_data_imports_welcome_data_imports_host_parent_class = NULL;
+static SpitDataImportsPluginHostIface* spit_data_imports_welcome_data_imports_host_spit_data_imports_plugin_host_parent_iface = NULL;
+static gpointer spit_data_imports_welcome_import_service_entry_parent_class = NULL;
+static WelcomeServiceEntryIface* spit_data_imports_welcome_import_service_entry_welcome_service_entry_parent_iface = NULL;
+static gpointer spit_data_imports_welcome_import_meta_host_parent_class = NULL;
+extern ImportManifest* spit_data_imports_meta_manifest;
+ImportManifest* spit_data_imports_meta_manifest = NULL;
+
+gpointer spit_data_imports_core_importer_ref (gpointer instance);
+void spit_data_imports_core_importer_unref (gpointer instance);
+GParamSpec* spit_data_imports_param_spec_core_importer (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void spit_data_imports_value_set_core_importer (GValue* value, gpointer v_object);
+void spit_data_imports_value_take_core_importer (GValue* value, gpointer v_object);
+gpointer spit_data_imports_value_get_core_importer (const GValue* value);
+GType spit_data_imports_core_importer_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);
+gpointer value_get_batch_import_roll (const GValue* value);
+GType batch_import_roll_get_type (void) G_GNUC_CONST;
+#define SPIT_DATA_IMPORTS_CORE_IMPORTER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SPIT_DATA_IMPORTS_TYPE_CORE_IMPORTER, SpitDataImportsCoreImporterPrivate))
+enum {
+ SPIT_DATA_IMPORTS_CORE_IMPORTER_DUMMY_PROPERTY
+};
+SpitDataImportsCoreImporter* spit_data_imports_core_importer_new (SpitDataImportsPluginHost* host);
+SpitDataImportsCoreImporter* spit_data_imports_core_importer_construct (GType object_type, SpitDataImportsPluginHost* host);
+void spit_data_imports_core_importer_prepare_media_items_for_import (SpitDataImportsCoreImporter* self, SpitDataImportsImportableMediaItem** items, int items_length1, gdouble progress, gdouble host_progress_delta, const gchar* progress_message);
+GType sorted_list_get_type (void) G_GNUC_CONST;
+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);
+gpointer value_get_batch_import_job (const GValue* value);
+GType batch_import_job_get_type (void) G_GNUC_CONST;
+GType spit_data_imports_data_import_job_get_type (void) G_GNUC_CONST;
+gint64 spit_data_imports_import_job_comparator (void* a, void* b);
+static gint64 _spit_data_imports_import_job_comparator_comparator (void* a, void* b, gpointer self);
+SortedList* sorted_list_new (GType g_type, GBoxedCopyFunc g_dup_func, GDestroyNotify g_destroy_func, Comparator cmp, void* cmp_target);
+SortedList* sorted_list_construct (GType object_type, GType g_type, GBoxedCopyFunc g_dup_func, GDestroyNotify g_destroy_func, Comparator cmp, void* cmp_target);
+gpointer spit_data_imports_data_import_source_ref (gpointer instance);
+void spit_data_imports_data_import_source_unref (gpointer instance);
+GParamSpec* spit_data_imports_param_spec_data_import_source (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void spit_data_imports_value_set_data_import_source (GValue* value, gpointer v_object);
+void spit_data_imports_value_take_data_import_source (GValue* value, gpointer v_object);
+gpointer spit_data_imports_value_get_data_import_source (const GValue* value);
+GType spit_data_imports_data_import_source_get_type (void) G_GNUC_CONST;
+SpitDataImportsDataImportSource* spit_data_imports_data_import_source_new (SpitDataImportsImportableMediaItem* db_photo);
+SpitDataImportsDataImportSource* spit_data_imports_data_import_source_construct (GType object_type, SpitDataImportsImportableMediaItem* db_photo);
+gboolean spit_data_imports_data_import_source_was_backing_file_found (SpitDataImportsDataImportSource* self);
+gchar* spit_data_imports_data_import_source_get_filename (SpitDataImportsDataImportSource* self);
+SpitDataImportsDataImportJob* spit_data_imports_data_import_job_new (SpitDataImportsDataImportSource* import_source);
+SpitDataImportsDataImportJob* spit_data_imports_data_import_job_construct (GType object_type, SpitDataImportsDataImportSource* import_source);
+gboolean spit_data_imports_data_import_source_is_already_imported (SpitDataImportsDataImportSource* self);
+BatchImportRoll* batch_import_roll_new (void);
+BatchImportRoll* batch_import_roll_construct (GType object_type);
+GType batch_import_get_type (void) G_GNUC_CONST;
+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);
+gpointer value_get_import_manifest (const GValue* value);
+GType import_manifest_get_type (void) G_GNUC_CONST;
+void spit_data_imports_data_import_reporter (ImportManifest* manifest, BatchImportRoll* import_roll);
+static void _spit_data_imports_data_import_reporter_batch_import_import_reporter (ImportManifest* manifest, BatchImportRoll* import_roll, gpointer self);
+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);
+GType page_window_get_type (void) G_GNUC_CONST;
+GType app_window_get_type (void) G_GNUC_CONST;
+GType library_window_get_type (void) G_GNUC_CONST;
+LibraryWindow* library_window_get_app (void);
+void library_window_enqueue_batch_import (LibraryWindow* self, BatchImport* batch_import, gboolean allow_user_cancel);
+void spit_data_imports_core_importer_finalize_import (SpitDataImportsCoreImporter* self);
+static void spit_data_imports_core_importer_finalize (SpitDataImportsCoreImporter* obj);
+GType plugins_standard_host_interface_get_type (void) G_GNUC_CONST;
+GType spit_data_imports_concrete_data_imports_host_get_type (void) G_GNUC_CONST;
+GType data_imports_ui_data_imports_dialog_get_type (void) G_GNUC_CONST;
+GType data_imports_ui_concrete_dialog_pane_get_type (void) G_GNUC_CONST;
+GType data_imports_ui_progress_pane_get_type (void) G_GNUC_CONST;
+#define SPIT_DATA_IMPORTS_CONCRETE_DATA_IMPORTS_HOST_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHostPrivate))
+enum {
+ SPIT_DATA_IMPORTS_CONCRETE_DATA_IMPORTS_HOST_DUMMY_PROPERTY
+};
+SpitDataImportsConcreteDataImportsHost* spit_data_imports_concrete_data_imports_host_new (SpitDataImportsService* service, DataImportsUIDataImportsDialog* dialog);
+SpitDataImportsConcreteDataImportsHost* spit_data_imports_concrete_data_imports_host_construct (GType object_type, SpitDataImportsService* service, DataImportsUIDataImportsDialog* dialog);
+PluginsStandardHostInterface* plugins_standard_host_interface_new (SpitPluggable* pluggable, const gchar* config_domain);
+PluginsStandardHostInterface* plugins_standard_host_interface_construct (GType object_type, SpitPluggable* pluggable, const gchar* config_domain);
+static SpitDataImportsDataImporter* spit_data_imports_concrete_data_imports_host_real_get_data_importer (SpitDataImportsPluginHost* base);
+static void spit_data_imports_concrete_data_imports_host_real_start_importing (SpitDataImportsPluginHost* base);
+static void spit_data_imports_concrete_data_imports_host_real_stop_importing (SpitDataImportsPluginHost* base);
+static void spit_data_imports_concrete_data_imports_host_clean_up (SpitDataImportsConcreteDataImportsHost* self);
+void spit_data_imports_concrete_data_imports_host_set_button_mode (SpitDataImportsConcreteDataImportsHost* self, SpitDataImportsPluginHostButtonMode mode);
+void data_imports_ui_data_imports_dialog_set_close_button_mode (DataImportsUIDataImportsDialog* self);
+void data_imports_ui_data_imports_dialog_set_cancel_button_mode (DataImportsUIDataImportsDialog* self);
+static void spit_data_imports_concrete_data_imports_host_real_post_error (SpitDataImportsPluginHost* base, GError* err);
+static void spit_data_imports_concrete_data_imports_host_real_post_error_message (SpitDataImportsPluginHost* base, const gchar* message);
+void data_imports_ui_data_imports_dialog_install_pane (DataImportsUIDataImportsDialog* self, SpitDataImportsDialogPane* pane);
+DataImportsUIStaticMessagePane* data_imports_ui_static_message_pane_new_with_pango (const gchar* msg);
+DataImportsUIStaticMessagePane* data_imports_ui_static_message_pane_construct_with_pango (GType object_type, const gchar* msg);
+GType data_imports_ui_static_message_pane_get_type (void) G_GNUC_CONST;
+void data_imports_ui_data_imports_dialog_unlock_service (DataImportsUIDataImportsDialog* self);
+static void spit_data_imports_concrete_data_imports_host_real_install_dialog_pane (SpitDataImportsPluginHost* base, SpitDataImportsDialogPane* pane, SpitDataImportsPluginHostButtonMode button_mode);
+static void spit_data_imports_concrete_data_imports_host_real_install_static_message_pane (SpitDataImportsPluginHost* base, const gchar* message, SpitDataImportsPluginHostButtonMode button_mode);
+static void spit_data_imports_concrete_data_imports_host_real_install_library_selection_pane (SpitDataImportsPluginHost* base, const gchar* welcome_message, SpitDataImportsImportableLibrary** discovered_libraries, int discovered_libraries_length1, const gchar* file_select_label);
+DataImportsUILibrarySelectionPane* data_imports_ui_library_selection_pane_new (SpitDataImportsPluginHost* host, const gchar* welcome_message, SpitDataImportsImportableLibrary** discovered_libraries, int discovered_libraries_length1, const gchar* file_select_label);
+DataImportsUILibrarySelectionPane* data_imports_ui_library_selection_pane_construct (GType object_type, SpitDataImportsPluginHost* host, const gchar* welcome_message, SpitDataImportsImportableLibrary** discovered_libraries, int discovered_libraries_length1, const gchar* file_select_label);
+GType data_imports_ui_library_selection_pane_get_type (void) G_GNUC_CONST;
+static void spit_data_imports_concrete_data_imports_host_real_install_import_progress_pane (SpitDataImportsPluginHost* base, const gchar* message);
+DataImportsUIProgressPane* data_imports_ui_progress_pane_new (const gchar* message);
+DataImportsUIProgressPane* data_imports_ui_progress_pane_construct (GType object_type, const gchar* message);
+static void spit_data_imports_concrete_data_imports_host_real_update_import_progress_pane (SpitDataImportsPluginHost* base, gdouble progress, const gchar* progress_message);
+void data_imports_ui_progress_pane_update_progress (DataImportsUIProgressPane* self, gdouble progress, const gchar* progress_message);
+static void spit_data_imports_concrete_data_imports_host_real_prepare_media_items_for_import (SpitDataImportsPluginHost* base, SpitDataImportsImportableMediaItem** items, int items_length1, gdouble progress, gdouble host_progress_delta, const gchar* progress_message);
+static void spit_data_imports_concrete_data_imports_host_real_finalize_import (SpitDataImportsPluginHost* base, SpitDataImportsImportedItemsCountCallback report_imported_items_count, void* report_imported_items_count_target, const gchar* finalize_message);
+void library_window_switch_to_import_queue_page (LibraryWindow* self);
+static void spit_data_imports_concrete_data_imports_host_finalize (GObject* obj);
+GType spit_data_imports_welcome_data_imports_host_get_type (void) G_GNUC_CONST;
+GType spit_data_imports_welcome_import_meta_host_get_type (void) G_GNUC_CONST;
+#define SPIT_DATA_IMPORTS_WELCOME_DATA_IMPORTS_HOST_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST, SpitDataImportsWelcomeDataImportsHostPrivate))
+enum {
+ SPIT_DATA_IMPORTS_WELCOME_DATA_IMPORTS_HOST_DUMMY_PROPERTY
+};
+SpitDataImportsWelcomeDataImportsHost* spit_data_imports_welcome_data_imports_host_new (SpitDataImportsService* service, SpitDataImportsWelcomeImportMetaHost* meta_host);
+SpitDataImportsWelcomeDataImportsHost* spit_data_imports_welcome_data_imports_host_construct (GType object_type, SpitDataImportsService* service, SpitDataImportsWelcomeImportMetaHost* meta_host);
+static SpitDataImportsDataImporter* spit_data_imports_welcome_data_imports_host_real_get_data_importer (SpitDataImportsPluginHost* base);
+static void spit_data_imports_welcome_data_imports_host_real_start_importing (SpitDataImportsPluginHost* base);
+static void spit_data_imports_welcome_data_imports_host_real_stop_importing (SpitDataImportsPluginHost* base);
+static void spit_data_imports_welcome_data_imports_host_clean_up (SpitDataImportsWelcomeDataImportsHost* self);
+static void spit_data_imports_welcome_data_imports_host_real_post_error (SpitDataImportsPluginHost* base, GError* err);
+static void spit_data_imports_welcome_data_imports_host_real_post_error_message (SpitDataImportsPluginHost* base, const gchar* message);
+static void spit_data_imports_welcome_data_imports_host_real_install_dialog_pane (SpitDataImportsPluginHost* base, SpitDataImportsDialogPane* pane, SpitDataImportsPluginHostButtonMode button_mode);
+static void spit_data_imports_welcome_data_imports_host_real_install_static_message_pane (SpitDataImportsPluginHost* base, const gchar* message, SpitDataImportsPluginHostButtonMode button_mode);
+static void spit_data_imports_welcome_data_imports_host_real_install_library_selection_pane (SpitDataImportsPluginHost* base, const gchar* welcome_message, SpitDataImportsImportableLibrary** discovered_libraries, int discovered_libraries_length1, const gchar* file_select_label);
+GType welcome_service_entry_get_type (void) G_GNUC_CONST;
+void spit_data_imports_welcome_import_meta_host_install_service_entry (SpitDataImportsWelcomeImportMetaHost* self, WelcomeServiceEntry* entry);
+SpitDataImportsWelcomeImportServiceEntry* spit_data_imports_welcome_import_service_entry_new (SpitDataImportsPluginHost* host, const gchar* pluggable_name, SpitDataImportsImportableLibrary** discovered_libraries, int discovered_libraries_length1);
+SpitDataImportsWelcomeImportServiceEntry* spit_data_imports_welcome_import_service_entry_construct (GType object_type, SpitDataImportsPluginHost* host, const gchar* pluggable_name, SpitDataImportsImportableLibrary** discovered_libraries, int discovered_libraries_length1);
+GType spit_data_imports_welcome_import_service_entry_get_type (void) G_GNUC_CONST;
+static void spit_data_imports_welcome_data_imports_host_real_install_import_progress_pane (SpitDataImportsPluginHost* base, const gchar* message);
+static void spit_data_imports_welcome_data_imports_host_real_update_import_progress_pane (SpitDataImportsPluginHost* base, gdouble progress, const gchar* progress_message);
+static void spit_data_imports_welcome_data_imports_host_real_prepare_media_items_for_import (SpitDataImportsPluginHost* base, SpitDataImportsImportableMediaItem** items, int items_length1, gdouble progress, gdouble host_progress_delta, const gchar* progress_message);
+static void spit_data_imports_welcome_data_imports_host_real_finalize_import (SpitDataImportsPluginHost* base, SpitDataImportsImportedItemsCountCallback report_imported_items_count, void* report_imported_items_count_target, const gchar* finalize_message);
+void spit_data_imports_welcome_import_meta_host_finalize_import (SpitDataImportsWelcomeImportMetaHost* self, SpitDataImportsWelcomeDataImportsHost* host);
+static void spit_data_imports_welcome_data_imports_host_finalize (GObject* obj);
+#define SPIT_DATA_IMPORTS_WELCOME_IMPORT_SERVICE_ENTRY_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_SERVICE_ENTRY, SpitDataImportsWelcomeImportServiceEntryPrivate))
+enum {
+ SPIT_DATA_IMPORTS_WELCOME_IMPORT_SERVICE_ENTRY_DUMMY_PROPERTY
+};
+static SpitDataImportsImportableLibrary** _vala_array_dup25 (SpitDataImportsImportableLibrary** self, int length);
+static gchar* spit_data_imports_welcome_import_service_entry_real_get_service_name (WelcomeServiceEntry* base);
+static void spit_data_imports_welcome_import_service_entry_real_execute (WelcomeServiceEntry* base);
+static void spit_data_imports_welcome_import_service_entry_finalize (GObject* obj);
+GType welcome_dialog_get_type (void) G_GNUC_CONST;
+#define SPIT_DATA_IMPORTS_WELCOME_IMPORT_META_HOST_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_META_HOST, SpitDataImportsWelcomeImportMetaHostPrivate))
+enum {
+ SPIT_DATA_IMPORTS_WELCOME_IMPORT_META_HOST_DUMMY_PROPERTY
+};
+SpitDataImportsWelcomeImportMetaHost* spit_data_imports_welcome_import_meta_host_new (WelcomeDialog* dialog);
+SpitDataImportsWelcomeImportMetaHost* spit_data_imports_welcome_import_meta_host_construct (GType object_type, WelcomeDialog* dialog);
+void spit_data_imports_welcome_import_meta_host_start (SpitDataImportsWelcomeImportMetaHost* self);
+SpitDataImportsService** spit_data_imports_load_all_services (int* result_length1);
+gchar* welcome_service_entry_get_service_name (WelcomeServiceEntry* self);
+void welcome_dialog_install_service_entry (WelcomeDialog* self, WelcomeServiceEntry* entry);
+static void spit_data_imports_welcome_import_meta_host_finalize (GObject* obj);
+SpitDataImportsService** spit_data_imports_load_services (gboolean load_all, int* result_length1);
+GeeCollection* plugins_get_pluggables_for_type (GType type, GCompareDataFunc compare_func, void* compare_func_target, GDestroyNotify compare_func_target_destroy_notify, gboolean include_disabled);
+gchar* plugins_get_pluggable_module_id (SpitPluggable* needle);
+static void _vala_array_add151 (SpitDataImportsService*** array, int* length, int* size, SpitDataImportsService* value);
+static gint __lambda21_ (void* a, void* b);
+gint utf8_cs_compare (void* a, void* b);
+static gint ___lambda21____compar_fn_t (void* key1, void* key2);
+GType data_object_get_type (void) G_GNUC_CONST;
+GType data_source_get_type (void) G_GNUC_CONST;
+GType thumbnail_source_get_type (void) G_GNUC_CONST;
+GType media_source_get_type (void) G_GNUC_CONST;
+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);
+gpointer value_get_batch_import_result (const GValue* value);
+GType batch_import_result_get_type (void) G_GNUC_CONST;
+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);
+void data_imports_ui_data_imports_dialog_terminate_instance (void);
+gpointer import_ui_question_params_ref (gpointer instance);
+void import_ui_question_params_unref (gpointer instance);
+GParamSpec* import_ui_param_spec_question_params (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void import_ui_value_set_question_params (GValue* value, gpointer v_object);
+void import_ui_value_take_question_params (GValue* value, gpointer v_object);
+gpointer import_ui_value_get_question_params (const GValue* value);
+GType import_ui_question_params_get_type (void) G_GNUC_CONST;
+gboolean import_ui_report_manifest (ImportManifest* manifest, gboolean show_dest_id, ImportUIQuestionParams* question);
+time_t spit_data_imports_data_import_job_get_exposure_time (SpitDataImportsDataImportJob* self);
+static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
+static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);
+
+
+SpitDataImportsCoreImporter* spit_data_imports_core_importer_construct (GType object_type, SpitDataImportsPluginHost* host) {
+ SpitDataImportsCoreImporter* self = NULL;
+ SpitDataImportsPluginHost* _tmp0_ = NULL;
+#line 14 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (host), NULL);
+#line 14 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self = (SpitDataImportsCoreImporter*) g_type_create_instance (object_type);
+#line 15 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp0_ = host;
+#line 15 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self->priv->host = _tmp0_;
+#line 14 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ return self;
+#line 672 "DataImportsPluginHost.c"
+}
+
+
+SpitDataImportsCoreImporter* spit_data_imports_core_importer_new (SpitDataImportsPluginHost* host) {
+#line 14 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ return spit_data_imports_core_importer_construct (SPIT_DATA_IMPORTS_TYPE_CORE_IMPORTER, host);
+#line 679 "DataImportsPluginHost.c"
+}
+
+
+static gint64 _spit_data_imports_import_job_comparator_comparator (void* a, void* b, gpointer self) {
+ gint64 result;
+ result = spit_data_imports_import_job_comparator (a, b);
+#line 26 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ return result;
+#line 688 "DataImportsPluginHost.c"
+}
+
+
+static gpointer _g_object_ref0 (gpointer self) {
+#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ return self ? g_object_ref (self) : NULL;
+#line 695 "DataImportsPluginHost.c"
+}
+
+
+static void _spit_data_imports_data_import_reporter_batch_import_import_reporter (ImportManifest* manifest, BatchImportRoll* import_roll, gpointer self) {
+#line 66 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ spit_data_imports_data_import_reporter (manifest, import_roll);
+#line 702 "DataImportsPluginHost.c"
+}
+
+
+void spit_data_imports_core_importer_prepare_media_items_for_import (SpitDataImportsCoreImporter* self, SpitDataImportsImportableMediaItem** items, int items_length1, gdouble progress, gdouble host_progress_delta, const gchar* progress_message) {
+ SpitDataImportsPluginHost* _tmp0_ = NULL;
+ gdouble _tmp1_ = 0.0;
+ const gchar* _tmp2_ = NULL;
+ SortedList* jobs = NULL;
+ SortedList* _tmp3_ = NULL;
+ GeeArrayList* already_imported = NULL;
+ GeeArrayList* _tmp4_ = NULL;
+ GeeArrayList* failed = NULL;
+ GeeArrayList* _tmp5_ = NULL;
+ gint item_idx = 0;
+ gdouble item_progress_delta = 0.0;
+ gdouble _tmp6_ = 0.0;
+ SpitDataImportsImportableMediaItem** _tmp7_ = NULL;
+ gint _tmp7__length1 = 0;
+ SpitDataImportsImportableMediaItem** _tmp8_ = NULL;
+ gint _tmp8__length1 = 0;
+ SortedList* _tmp39_ = NULL;
+ gint _tmp40_ = 0;
+ gint _tmp41_ = 0;
+ SpitDataImportsPluginHost* _tmp66_ = NULL;
+ gdouble _tmp67_ = 0.0;
+ gdouble _tmp68_ = 0.0;
+#line 18 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_return_if_fail (SPIT_DATA_IMPORTS_IS_CORE_IMPORTER (self));
+#line 24 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp0_ = self->priv->host;
+#line 24 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp1_ = progress;
+#line 24 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp2_ = progress_message;
+#line 24 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ spit_data_imports_plugin_host_update_import_progress_pane (_tmp0_, _tmp1_, _tmp2_);
+#line 26 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp3_ = sorted_list_new (SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, (GBoxedCopyFunc) batch_import_job_ref, batch_import_job_unref, _spit_data_imports_import_job_comparator_comparator, NULL);
+#line 26 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ jobs = _tmp3_;
+#line 28 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp4_ = gee_array_list_new (SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, (GBoxedCopyFunc) batch_import_job_ref, batch_import_job_unref, NULL, NULL, NULL);
+#line 28 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ already_imported = _tmp4_;
+#line 30 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp5_ = gee_array_list_new (SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, (GBoxedCopyFunc) batch_import_job_ref, batch_import_job_unref, NULL, NULL, NULL);
+#line 30 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ failed = _tmp5_;
+#line 33 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ item_idx = 0;
+#line 34 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp6_ = host_progress_delta;
+#line 34 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp7_ = items;
+#line 34 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp7__length1 = items_length1;
+#line 34 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ item_progress_delta = _tmp6_ / _tmp7__length1;
+#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp8_ = items;
+#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp8__length1 = items_length1;
+#line 765 "DataImportsPluginHost.c"
+ {
+ SpitDataImportsImportableMediaItem** src_item_collection = NULL;
+ gint src_item_collection_length1 = 0;
+ gint _src_item_collection_size_ = 0;
+ gint src_item_it = 0;
+#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ src_item_collection = _tmp8_;
+#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ src_item_collection_length1 = _tmp8__length1;
+#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ for (src_item_it = 0; src_item_it < _tmp8__length1; src_item_it = src_item_it + 1) {
+#line 777 "DataImportsPluginHost.c"
+ SpitDataImportsImportableMediaItem* _tmp9_ = NULL;
+ SpitDataImportsImportableMediaItem* src_item = NULL;
+#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp9_ = _g_object_ref0 (src_item_collection[src_item_it]);
+#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ src_item = _tmp9_;
+#line 784 "DataImportsPluginHost.c"
+ {
+ SpitDataImportsDataImportSource* import_source = NULL;
+ SpitDataImportsImportableMediaItem* _tmp10_ = NULL;
+ SpitDataImportsDataImportSource* _tmp11_ = NULL;
+ SpitDataImportsDataImportSource* _tmp12_ = NULL;
+ gboolean _tmp13_ = FALSE;
+ SpitDataImportsDataImportSource* _tmp21_ = NULL;
+ gboolean _tmp22_ = FALSE;
+ SortedList* _tmp30_ = NULL;
+ SpitDataImportsDataImportSource* _tmp31_ = NULL;
+ SpitDataImportsDataImportJob* _tmp32_ = NULL;
+ SpitDataImportsDataImportJob* _tmp33_ = NULL;
+ gint _tmp34_ = 0;
+ SpitDataImportsPluginHost* _tmp35_ = NULL;
+ gdouble _tmp36_ = 0.0;
+ gint _tmp37_ = 0;
+ gdouble _tmp38_ = 0.0;
+#line 36 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp10_ = src_item;
+#line 36 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp11_ = spit_data_imports_data_import_source_new (_tmp10_);
+#line 36 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ import_source = _tmp11_;
+#line 38 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp12_ = import_source;
+#line 38 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp13_ = spit_data_imports_data_import_source_was_backing_file_found (_tmp12_);
+#line 38 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ if (!_tmp13_) {
+#line 814 "DataImportsPluginHost.c"
+ SpitDataImportsDataImportSource* _tmp14_ = NULL;
+ gchar* _tmp15_ = NULL;
+ gchar* _tmp16_ = NULL;
+ GeeArrayList* _tmp17_ = NULL;
+ SpitDataImportsDataImportSource* _tmp18_ = NULL;
+ SpitDataImportsDataImportJob* _tmp19_ = NULL;
+ SpitDataImportsDataImportJob* _tmp20_ = NULL;
+#line 39 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp14_ = import_source;
+#line 39 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp15_ = spit_data_imports_data_import_source_get_filename (_tmp14_);
+#line 39 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp16_ = _tmp15_;
+#line 39 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_message ("DataImportsPluginHost.vala:39: Skipping import of %s: backing file not" \
+" found", _tmp16_);
+#line 39 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_free0 (_tmp16_);
+#line 41 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp17_ = failed;
+#line 41 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp18_ = import_source;
+#line 41 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp19_ = spit_data_imports_data_import_job_new (_tmp18_);
+#line 41 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp20_ = _tmp19_;
+#line 41 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp20_);
+#line 41 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _batch_import_job_unref0 (_tmp20_);
+#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _spit_data_imports_data_import_source_unref0 (import_source);
+#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_object_unref0 (src_item);
+#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ continue;
+#line 850 "DataImportsPluginHost.c"
+ }
+#line 46 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp21_ = import_source;
+#line 46 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp22_ = spit_data_imports_data_import_source_is_already_imported (_tmp21_);
+#line 46 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ if (_tmp22_) {
+#line 858 "DataImportsPluginHost.c"
+ SpitDataImportsDataImportSource* _tmp23_ = NULL;
+ gchar* _tmp24_ = NULL;
+ gchar* _tmp25_ = NULL;
+ GeeArrayList* _tmp26_ = NULL;
+ SpitDataImportsDataImportSource* _tmp27_ = NULL;
+ SpitDataImportsDataImportJob* _tmp28_ = NULL;
+ SpitDataImportsDataImportJob* _tmp29_ = NULL;
+#line 47 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp23_ = import_source;
+#line 47 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp24_ = spit_data_imports_data_import_source_get_filename (_tmp23_);
+#line 47 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp25_ = _tmp24_;
+#line 47 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_message ("DataImportsPluginHost.vala:47: Skipping import of %s: checksum detecte" \
+"d in library", _tmp25_);
+#line 47 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_free0 (_tmp25_);
+#line 49 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp26_ = already_imported;
+#line 49 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp27_ = import_source;
+#line 49 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp28_ = spit_data_imports_data_import_job_new (_tmp27_);
+#line 49 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp29_ = _tmp28_;
+#line 49 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp29_);
+#line 49 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _batch_import_job_unref0 (_tmp29_);
+#line 51 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _spit_data_imports_data_import_source_unref0 (import_source);
+#line 51 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_object_unref0 (src_item);
+#line 51 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ continue;
+#line 894 "DataImportsPluginHost.c"
+ }
+#line 54 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp30_ = jobs;
+#line 54 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp31_ = import_source;
+#line 54 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp32_ = spit_data_imports_data_import_job_new (_tmp31_);
+#line 54 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp33_ = _tmp32_;
+#line 54 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, GEE_TYPE_COLLECTION, GeeCollection), _tmp33_);
+#line 54 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _batch_import_job_unref0 (_tmp33_);
+#line 55 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp34_ = item_idx;
+#line 55 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ item_idx = _tmp34_ + 1;
+#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp35_ = self->priv->host;
+#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp36_ = progress;
+#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp37_ = item_idx;
+#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp38_ = item_progress_delta;
+#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ spit_data_imports_plugin_host_update_import_progress_pane (_tmp35_, _tmp36_ + (_tmp37_ * _tmp38_), NULL);
+#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _spit_data_imports_data_import_source_unref0 (import_source);
+#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_object_unref0 (src_item);
+#line 926 "DataImportsPluginHost.c"
+ }
+ }
+ }
+#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp39_ = jobs;
+#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp40_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, GEE_TYPE_COLLECTION, GeeCollection));
+#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp41_ = _tmp40_;
+#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ if (_tmp41_ > 0) {
+#line 938 "DataImportsPluginHost.c"
+ BatchImportRoll* _tmp42_ = NULL;
+ gchar* db_name = NULL;
+ const gchar* _tmp44_ = NULL;
+ SpitDataImportsPluginHost* _tmp45_ = NULL;
+ SpitDataImportsDataImporter* _tmp46_ = NULL;
+ SpitDataImportsDataImporter* _tmp47_ = NULL;
+ SpitDataImportsService* _tmp48_ = NULL;
+ SpitDataImportsService* _tmp49_ = NULL;
+ const gchar* _tmp50_ = NULL;
+ gchar* _tmp51_ = NULL;
+ gchar* _tmp52_ = NULL;
+ BatchImport* batch_import = NULL;
+ SortedList* _tmp53_ = NULL;
+ const gchar* _tmp54_ = NULL;
+ GeeArrayList* _tmp55_ = NULL;
+ GeeArrayList* _tmp56_ = NULL;
+ BatchImportRoll* _tmp57_ = NULL;
+ BatchImport* _tmp58_ = NULL;
+ LibraryWindow* _tmp59_ = NULL;
+ LibraryWindow* _tmp60_ = NULL;
+ BatchImport* _tmp61_ = NULL;
+ gint _tmp62_ = 0;
+ SortedList* _tmp63_ = NULL;
+ gint _tmp64_ = 0;
+ gint _tmp65_ = 0;
+#line 63 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp42_ = self->current_import_roll;
+#line 63 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ if (_tmp42_ == NULL) {
+#line 968 "DataImportsPluginHost.c"
+ BatchImportRoll* _tmp43_ = NULL;
+#line 64 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp43_ = batch_import_roll_new ();
+#line 64 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _batch_import_roll_unref0 (self->current_import_roll);
+#line 64 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self->current_import_roll = _tmp43_;
+#line 976 "DataImportsPluginHost.c"
+ }
+#line 65 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp44_ = _ ("%s Database");
+#line 65 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp45_ = self->priv->host;
+#line 65 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp46_ = spit_data_imports_plugin_host_get_data_importer (_tmp45_);
+#line 65 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp47_ = _tmp46_;
+#line 65 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp48_ = spit_data_imports_data_importer_get_service (_tmp47_);
+#line 65 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp49_ = _tmp48_;
+#line 65 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp50_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
+#line 65 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp51_ = g_strdup_printf (_tmp44_, _tmp50_);
+#line 65 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp52_ = _tmp51_;
+#line 65 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_object_unref0 (_tmp49_);
+#line 65 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_object_unref0 (_tmp47_);
+#line 65 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ db_name = _tmp52_;
+#line 66 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp53_ = jobs;
+#line 66 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp54_ = db_name;
+#line 66 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp55_ = failed;
+#line 66 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp56_ = already_imported;
+#line 66 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp57_ = self->current_import_roll;
+#line 66 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp58_ = batch_import_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, GEE_TYPE_ITERABLE, GeeIterable), _tmp54_, _spit_data_imports_data_import_reporter_batch_import_import_reporter, NULL, _tmp55_, _tmp56_, NULL, _tmp57_, NULL);
+#line 66 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ batch_import = _tmp58_;
+#line 69 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp59_ = library_window_get_app ();
+#line 69 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp60_ = _tmp59_;
+#line 69 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp61_ = batch_import;
+#line 69 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ library_window_enqueue_batch_import (_tmp60_, _tmp61_, TRUE);
+#line 69 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_object_unref0 (_tmp60_);
+#line 70 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp62_ = self->imported_items_count;
+#line 70 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp63_ = jobs;
+#line 70 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp64_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp63_, GEE_TYPE_COLLECTION, GeeCollection));
+#line 70 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp65_ = _tmp64_;
+#line 70 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self->imported_items_count = _tmp62_ + _tmp65_;
+#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_object_unref0 (batch_import);
+#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_free0 (db_name);
+#line 1040 "DataImportsPluginHost.c"
+ }
+#line 73 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp66_ = self->priv->host;
+#line 73 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp67_ = progress;
+#line 73 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp68_ = host_progress_delta;
+#line 73 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ spit_data_imports_plugin_host_update_import_progress_pane (_tmp66_, _tmp67_ + _tmp68_, NULL);
+#line 18 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_object_unref0 (failed);
+#line 18 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_object_unref0 (already_imported);
+#line 18 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_object_unref0 (jobs);
+#line 1056 "DataImportsPluginHost.c"
+}
+
+
+void spit_data_imports_core_importer_finalize_import (SpitDataImportsCoreImporter* self) {
+ gchar* db_name = NULL;
+ const gchar* _tmp0_ = NULL;
+ SpitDataImportsPluginHost* _tmp1_ = NULL;
+ SpitDataImportsDataImporter* _tmp2_ = NULL;
+ SpitDataImportsDataImporter* _tmp3_ = NULL;
+ SpitDataImportsService* _tmp4_ = NULL;
+ SpitDataImportsService* _tmp5_ = NULL;
+ const gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+ BatchImport* batch_import = NULL;
+ GeeArrayList* _tmp9_ = NULL;
+ GeeArrayList* _tmp10_ = NULL;
+ BatchImportRoll* _tmp11_ = NULL;
+ BatchImport* _tmp12_ = NULL;
+ BatchImport* _tmp13_ = NULL;
+ LibraryWindow* _tmp14_ = NULL;
+ LibraryWindow* _tmp15_ = NULL;
+#line 76 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_return_if_fail (SPIT_DATA_IMPORTS_IS_CORE_IMPORTER (self));
+#line 78 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp0_ = _ ("%s Database");
+#line 78 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp1_ = self->priv->host;
+#line 78 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp2_ = spit_data_imports_plugin_host_get_data_importer (_tmp1_);
+#line 78 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp3_ = _tmp2_;
+#line 78 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp4_ = spit_data_imports_data_importer_get_service (_tmp3_);
+#line 78 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp5_ = _tmp4_;
+#line 78 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp6_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
+#line 78 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp7_ = g_strdup_printf (_tmp0_, _tmp6_);
+#line 78 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp8_ = _tmp7_;
+#line 78 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_object_unref0 (_tmp5_);
+#line 78 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_object_unref0 (_tmp3_);
+#line 78 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ db_name = _tmp8_;
+#line 79 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp9_ = gee_array_list_new (TYPE_BATCH_IMPORT_JOB, (GBoxedCopyFunc) batch_import_job_ref, batch_import_job_unref, NULL, NULL, NULL);
+#line 79 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp10_ = _tmp9_;
+#line 79 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp11_ = self->current_import_roll;
+#line 79 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp12_ = batch_import_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ITERABLE, GeeIterable), db_name, _spit_data_imports_data_import_reporter_batch_import_import_reporter, NULL, NULL, NULL, NULL, _tmp11_, NULL);
+#line 79 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp13_ = _tmp12_;
+#line 79 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_object_unref0 (_tmp10_);
+#line 79 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ batch_import = _tmp13_;
+#line 82 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp14_ = library_window_get_app ();
+#line 82 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp15_ = _tmp14_;
+#line 82 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ library_window_enqueue_batch_import (_tmp15_, batch_import, TRUE);
+#line 82 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_object_unref0 (_tmp15_);
+#line 83 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _batch_import_roll_unref0 (self->current_import_roll);
+#line 83 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self->current_import_roll = NULL;
+#line 76 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_object_unref0 (batch_import);
+#line 76 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_free0 (db_name);
+#line 1135 "DataImportsPluginHost.c"
+}
+
+
+static void spit_data_imports_value_core_importer_init (GValue* value) {
+#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ value->data[0].v_pointer = NULL;
+#line 1142 "DataImportsPluginHost.c"
+}
+
+
+static void spit_data_imports_value_core_importer_free_value (GValue* value) {
+#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ if (value->data[0].v_pointer) {
+#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ spit_data_imports_core_importer_unref (value->data[0].v_pointer);
+#line 1151 "DataImportsPluginHost.c"
+ }
+}
+
+
+static void spit_data_imports_value_core_importer_copy_value (const GValue* src_value, GValue* dest_value) {
+#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ if (src_value->data[0].v_pointer) {
+#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ dest_value->data[0].v_pointer = spit_data_imports_core_importer_ref (src_value->data[0].v_pointer);
+#line 1161 "DataImportsPluginHost.c"
+ } else {
+#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ dest_value->data[0].v_pointer = NULL;
+#line 1165 "DataImportsPluginHost.c"
+ }
+}
+
+
+static gpointer spit_data_imports_value_core_importer_peek_pointer (const GValue* value) {
+#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ return value->data[0].v_pointer;
+#line 1173 "DataImportsPluginHost.c"
+}
+
+
+static gchar* spit_data_imports_value_core_importer_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ if (collect_values[0].v_pointer) {
+#line 1180 "DataImportsPluginHost.c"
+ SpitDataImportsCoreImporter* object;
+ object = collect_values[0].v_pointer;
+#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ if (object->parent_instance.g_class == NULL) {
+#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 1187 "DataImportsPluginHost.c"
+ } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
+#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.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 1191 "DataImportsPluginHost.c"
+ }
+#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ value->data[0].v_pointer = spit_data_imports_core_importer_ref (object);
+#line 1195 "DataImportsPluginHost.c"
+ } else {
+#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ value->data[0].v_pointer = NULL;
+#line 1199 "DataImportsPluginHost.c"
+ }
+#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ return NULL;
+#line 1203 "DataImportsPluginHost.c"
+}
+
+
+static gchar* spit_data_imports_value_core_importer_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+ SpitDataImportsCoreImporter** object_p;
+ object_p = collect_values[0].v_pointer;
+#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ if (!object_p) {
+#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
+#line 1214 "DataImportsPluginHost.c"
+ }
+#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ if (!value->data[0].v_pointer) {
+#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ *object_p = NULL;
+#line 1220 "DataImportsPluginHost.c"
+ } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
+#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ *object_p = value->data[0].v_pointer;
+#line 1224 "DataImportsPluginHost.c"
+ } else {
+#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ *object_p = spit_data_imports_core_importer_ref (value->data[0].v_pointer);
+#line 1228 "DataImportsPluginHost.c"
+ }
+#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ return NULL;
+#line 1232 "DataImportsPluginHost.c"
+}
+
+
+GParamSpec* spit_data_imports_param_spec_core_importer (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+ SpitDataImportsParamSpecCoreImporter* spec;
+#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_return_val_if_fail (g_type_is_a (object_type, SPIT_DATA_IMPORTS_TYPE_CORE_IMPORTER), NULL);
+#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
+#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ G_PARAM_SPEC (spec)->value_type = object_type;
+#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ return G_PARAM_SPEC (spec);
+#line 1246 "DataImportsPluginHost.c"
+}
+
+
+gpointer spit_data_imports_value_get_core_importer (const GValue* value) {
+#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, SPIT_DATA_IMPORTS_TYPE_CORE_IMPORTER), NULL);
+#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ return value->data[0].v_pointer;
+#line 1255 "DataImportsPluginHost.c"
+}
+
+
+void spit_data_imports_value_set_core_importer (GValue* value, gpointer v_object) {
+ SpitDataImportsCoreImporter* old;
+#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, SPIT_DATA_IMPORTS_TYPE_CORE_IMPORTER));
+#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ old = value->data[0].v_pointer;
+#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ if (v_object) {
+#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, SPIT_DATA_IMPORTS_TYPE_CORE_IMPORTER));
+#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ value->data[0].v_pointer = v_object;
+#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ spit_data_imports_core_importer_ref (value->data[0].v_pointer);
+#line 1275 "DataImportsPluginHost.c"
+ } else {
+#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ value->data[0].v_pointer = NULL;
+#line 1279 "DataImportsPluginHost.c"
+ }
+#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ if (old) {
+#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ spit_data_imports_core_importer_unref (old);
+#line 1285 "DataImportsPluginHost.c"
+ }
+}
+
+
+void spit_data_imports_value_take_core_importer (GValue* value, gpointer v_object) {
+ SpitDataImportsCoreImporter* old;
+#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, SPIT_DATA_IMPORTS_TYPE_CORE_IMPORTER));
+#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ old = value->data[0].v_pointer;
+#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ if (v_object) {
+#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, SPIT_DATA_IMPORTS_TYPE_CORE_IMPORTER));
+#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ value->data[0].v_pointer = v_object;
+#line 1304 "DataImportsPluginHost.c"
+ } else {
+#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ value->data[0].v_pointer = NULL;
+#line 1308 "DataImportsPluginHost.c"
+ }
+#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ if (old) {
+#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ spit_data_imports_core_importer_unref (old);
+#line 1314 "DataImportsPluginHost.c"
+ }
+}
+
+
+static void spit_data_imports_core_importer_class_init (SpitDataImportsCoreImporterClass * klass) {
+#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ spit_data_imports_core_importer_parent_class = g_type_class_peek_parent (klass);
+#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ ((SpitDataImportsCoreImporterClass *) klass)->finalize = spit_data_imports_core_importer_finalize;
+#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_type_class_add_private (klass, sizeof (SpitDataImportsCoreImporterPrivate));
+#line 1326 "DataImportsPluginHost.c"
+}
+
+
+static void spit_data_imports_core_importer_instance_init (SpitDataImportsCoreImporter * self) {
+#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self->priv = SPIT_DATA_IMPORTS_CORE_IMPORTER_GET_PRIVATE (self);
+#line 11 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self->imported_items_count = 0;
+#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self->current_import_roll = NULL;
+#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self->ref_count = 1;
+#line 1339 "DataImportsPluginHost.c"
+}
+
+
+static void spit_data_imports_core_importer_finalize (SpitDataImportsCoreImporter* obj) {
+ SpitDataImportsCoreImporter * self;
+#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, SPIT_DATA_IMPORTS_TYPE_CORE_IMPORTER, SpitDataImportsCoreImporter);
+#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_signal_handlers_destroy (self);
+#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _batch_import_roll_unref0 (self->current_import_roll);
+#line 1351 "DataImportsPluginHost.c"
+}
+
+
+GType spit_data_imports_core_importer_get_type (void) {
+ static volatile gsize spit_data_imports_core_importer_type_id__volatile = 0;
+ if (g_once_init_enter (&spit_data_imports_core_importer_type_id__volatile)) {
+ static const GTypeValueTable g_define_type_value_table = { spit_data_imports_value_core_importer_init, spit_data_imports_value_core_importer_free_value, spit_data_imports_value_core_importer_copy_value, spit_data_imports_value_core_importer_peek_pointer, "p", spit_data_imports_value_core_importer_collect_value, "p", spit_data_imports_value_core_importer_lcopy_value };
+ static const GTypeInfo g_define_type_info = { sizeof (SpitDataImportsCoreImporterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) spit_data_imports_core_importer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SpitDataImportsCoreImporter), 0, (GInstanceInitFunc) spit_data_imports_core_importer_instance_init, &g_define_type_value_table };
+ static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
+ GType spit_data_imports_core_importer_type_id;
+ spit_data_imports_core_importer_type_id = g_type_register_fundamental (g_type_fundamental_next (), "SpitDataImportsCoreImporter", &g_define_type_info, &g_define_type_fundamental_info, 0);
+ g_once_init_leave (&spit_data_imports_core_importer_type_id__volatile, spit_data_imports_core_importer_type_id);
+ }
+ return spit_data_imports_core_importer_type_id__volatile;
+}
+
+
+gpointer spit_data_imports_core_importer_ref (gpointer instance) {
+ SpitDataImportsCoreImporter* self;
+ self = instance;
+#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_atomic_int_inc (&self->ref_count);
+#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ return instance;
+#line 1376 "DataImportsPluginHost.c"
+}
+
+
+void spit_data_imports_core_importer_unref (gpointer instance) {
+ SpitDataImportsCoreImporter* self;
+ self = instance;
+#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ if (g_atomic_int_dec_and_test (&self->ref_count)) {
+#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ SPIT_DATA_IMPORTS_CORE_IMPORTER_GET_CLASS (self)->finalize (self);
+#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_type_free_instance ((GTypeInstance *) self);
+#line 1389 "DataImportsPluginHost.c"
+ }
+}
+
+
+SpitDataImportsConcreteDataImportsHost* spit_data_imports_concrete_data_imports_host_construct (GType object_type, SpitDataImportsService* service, DataImportsUIDataImportsDialog* dialog) {
+ SpitDataImportsConcreteDataImportsHost * self = NULL;
+ SpitDataImportsService* _tmp0_ = NULL;
+ DataImportsUIDataImportsDialog* _tmp1_ = NULL;
+ SpitDataImportsService* _tmp2_ = NULL;
+ SpitDataImportsDataImporter* _tmp3_ = NULL;
+ SpitDataImportsCoreImporter* _tmp4_ = NULL;
+#line 96 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_SERVICE (service), NULL);
+#line 96 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_return_val_if_fail (DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG (dialog), NULL);
+#line 97 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp0_ = service;
+#line 97 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self = (SpitDataImportsConcreteDataImportsHost*) plugins_standard_host_interface_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_PLUGGABLE, SpitPluggable), "data_imports");
+#line 98 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp1_ = dialog;
+#line 98 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self->priv->dialog = _tmp1_;
+#line 100 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp2_ = service;
+#line 100 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp3_ = spit_data_imports_service_create_data_importer (_tmp2_, G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost));
+#line 100 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_object_unref0 (self->priv->active_importer);
+#line 100 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self->priv->active_importer = _tmp3_;
+#line 101 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp4_ = spit_data_imports_core_importer_new (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost));
+#line 101 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _spit_data_imports_core_importer_unref0 (self->priv->core_importer);
+#line 101 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self->priv->core_importer = _tmp4_;
+#line 96 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ return self;
+#line 1429 "DataImportsPluginHost.c"
+}
+
+
+SpitDataImportsConcreteDataImportsHost* spit_data_imports_concrete_data_imports_host_new (SpitDataImportsService* service, DataImportsUIDataImportsDialog* dialog) {
+#line 96 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ return spit_data_imports_concrete_data_imports_host_construct (SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, service, dialog);
+#line 1436 "DataImportsPluginHost.c"
+}
+
+
+static SpitDataImportsDataImporter* spit_data_imports_concrete_data_imports_host_real_get_data_importer (SpitDataImportsPluginHost* base) {
+ SpitDataImportsConcreteDataImportsHost * self;
+ SpitDataImportsDataImporter* result = NULL;
+ SpitDataImportsDataImporter* _tmp0_ = NULL;
+ SpitDataImportsDataImporter* _tmp1_ = NULL;
+#line 104 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHost);
+#line 105 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp0_ = self->priv->active_importer;
+#line 105 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp1_ = _g_object_ref0 (_tmp0_);
+#line 105 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ result = _tmp1_;
+#line 105 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ return result;
+#line 1455 "DataImportsPluginHost.c"
+}
+
+
+static void spit_data_imports_concrete_data_imports_host_real_start_importing (SpitDataImportsPluginHost* base) {
+ SpitDataImportsConcreteDataImportsHost * self;
+ SpitDataImportsDataImporter* _tmp0_ = NULL;
+ SpitDataImportsDataImporter* _tmp1_ = NULL;
+ gboolean _tmp2_ = FALSE;
+ gboolean _tmp3_ = FALSE;
+ SpitDataImportsDataImporter* _tmp4_ = NULL;
+ SpitDataImportsDataImporter* _tmp5_ = NULL;
+#line 108 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHost);
+#line 109 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp0_ = spit_data_imports_plugin_host_get_data_importer (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost));
+#line 109 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp1_ = _tmp0_;
+#line 109 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp2_ = spit_data_imports_data_importer_is_running (_tmp1_);
+#line 109 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp3_ = _tmp2_;
+#line 109 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_object_unref0 (_tmp1_);
+#line 109 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ if (_tmp3_) {
+#line 110 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ return;
+#line 1483 "DataImportsPluginHost.c"
+ }
+#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_debug ("DataImportsPluginHost.vala:112: ConcreteDataImportsHost.start_importin" \
+"g( ): invoked.");
+#line 114 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp4_ = spit_data_imports_plugin_host_get_data_importer (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost));
+#line 114 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp5_ = _tmp4_;
+#line 114 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ spit_data_imports_data_importer_start (_tmp5_);
+#line 114 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_object_unref0 (_tmp5_);
+#line 1495 "DataImportsPluginHost.c"
+}
+
+
+static void spit_data_imports_concrete_data_imports_host_real_stop_importing (SpitDataImportsPluginHost* base) {
+ SpitDataImportsConcreteDataImportsHost * self;
+ SpitDataImportsDataImporter* _tmp0_ = NULL;
+ SpitDataImportsDataImporter* _tmp1_ = NULL;
+ gboolean _tmp2_ = FALSE;
+ gboolean _tmp3_ = FALSE;
+#line 117 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHost);
+#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_debug ("DataImportsPluginHost.vala:118: ConcreteDataImportsHost.stop_importing" \
+"( ): invoked.");
+#line 120 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp0_ = spit_data_imports_plugin_host_get_data_importer (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost));
+#line 120 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp1_ = _tmp0_;
+#line 120 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp2_ = spit_data_imports_data_importer_is_running (_tmp1_);
+#line 120 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp3_ = _tmp2_;
+#line 120 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_object_unref0 (_tmp1_);
+#line 120 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ if (_tmp3_) {
+#line 1521 "DataImportsPluginHost.c"
+ SpitDataImportsDataImporter* _tmp4_ = NULL;
+ SpitDataImportsDataImporter* _tmp5_ = NULL;
+#line 121 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp4_ = spit_data_imports_plugin_host_get_data_importer (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost));
+#line 121 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp5_ = _tmp4_;
+#line 121 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ spit_data_imports_data_importer_stop (_tmp5_);
+#line 121 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_object_unref0 (_tmp5_);
+#line 1532 "DataImportsPluginHost.c"
+ }
+#line 123 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ spit_data_imports_concrete_data_imports_host_clean_up (self);
+#line 125 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self->priv->importing_halted = TRUE;
+#line 1538 "DataImportsPluginHost.c"
+}
+
+
+static void spit_data_imports_concrete_data_imports_host_clean_up (SpitDataImportsConcreteDataImportsHost* self) {
+#line 128 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_return_if_fail (SPIT_DATA_IMPORTS_IS_CONCRETE_DATA_IMPORTS_HOST (self));
+#line 129 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_object_unref0 (self->priv->progress_pane);
+#line 129 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self->priv->progress_pane = NULL;
+#line 1549 "DataImportsPluginHost.c"
+}
+
+
+void spit_data_imports_concrete_data_imports_host_set_button_mode (SpitDataImportsConcreteDataImportsHost* self, SpitDataImportsPluginHostButtonMode mode) {
+ SpitDataImportsPluginHostButtonMode _tmp0_ = 0;
+#line 132 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_return_if_fail (SPIT_DATA_IMPORTS_IS_CONCRETE_DATA_IMPORTS_HOST (self));
+#line 133 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp0_ = mode;
+#line 133 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ if (_tmp0_ == SPIT_DATA_IMPORTS_PLUGIN_HOST_BUTTON_MODE_CLOSE) {
+#line 1561 "DataImportsPluginHost.c"
+ DataImportsUIDataImportsDialog* _tmp1_ = NULL;
+#line 134 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp1_ = self->priv->dialog;
+#line 134 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ data_imports_ui_data_imports_dialog_set_close_button_mode (_tmp1_);
+#line 1567 "DataImportsPluginHost.c"
+ } else {
+ SpitDataImportsPluginHostButtonMode _tmp2_ = 0;
+#line 135 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp2_ = mode;
+#line 135 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ if (_tmp2_ == SPIT_DATA_IMPORTS_PLUGIN_HOST_BUTTON_MODE_CANCEL) {
+#line 1574 "DataImportsPluginHost.c"
+ DataImportsUIDataImportsDialog* _tmp3_ = NULL;
+#line 136 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp3_ = self->priv->dialog;
+#line 136 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ data_imports_ui_data_imports_dialog_set_cancel_button_mode (_tmp3_);
+#line 1580 "DataImportsPluginHost.c"
+ } else {
+#line 138 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_error ("DataImportsPluginHost.vala:138: unrecognized button mode enumeration v" \
+"alue");
+#line 1584 "DataImportsPluginHost.c"
+ }
+ }
+}
+
+
+static void spit_data_imports_concrete_data_imports_host_real_post_error (SpitDataImportsPluginHost* base, GError* err) {
+ SpitDataImportsConcreteDataImportsHost * self;
+ GError* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+#line 143 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHost);
+#line 144 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp0_ = err;
+#line 144 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp1_ = _tmp0_->message;
+#line 144 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ spit_data_imports_plugin_host_post_error_message (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost), _tmp1_);
+#line 1602 "DataImportsPluginHost.c"
+}
+
+
+static void spit_data_imports_concrete_data_imports_host_real_post_error_message (SpitDataImportsPluginHost* base, const gchar* message) {
+ SpitDataImportsConcreteDataImportsHost * self;
+ gchar* msg = NULL;
+ const gchar* _tmp0_ = NULL;
+ SpitDataImportsDataImporter* _tmp1_ = NULL;
+ SpitDataImportsService* _tmp2_ = NULL;
+ SpitDataImportsService* _tmp3_ = NULL;
+ const gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ const gchar* _tmp7_ = NULL;
+ const gchar* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+ gchar* _tmp10_ = NULL;
+ gchar* _tmp11_ = NULL;
+ const gchar* _tmp12_ = NULL;
+ const gchar* _tmp13_ = NULL;
+ gchar* _tmp14_ = NULL;
+ DataImportsUIDataImportsDialog* _tmp15_ = NULL;
+ const gchar* _tmp16_ = NULL;
+ DataImportsUIStaticMessagePane* _tmp17_ = NULL;
+ DataImportsUIStaticMessagePane* _tmp18_ = NULL;
+ DataImportsUIDataImportsDialog* _tmp19_ = NULL;
+ DataImportsUIDataImportsDialog* _tmp20_ = NULL;
+ SpitDataImportsDataImporter* _tmp21_ = NULL;
+ SpitDataImportsDataImporter* _tmp22_ = NULL;
+#line 147 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHost);
+#line 147 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_return_if_fail (message != NULL);
+#line 148 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp0_ = _ ("Importing from %s can't continue because an error occurred:");
+#line 148 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp1_ = self->priv->active_importer;
+#line 148 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp2_ = spit_data_imports_data_importer_get_service (_tmp1_);
+#line 148 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp3_ = _tmp2_;
+#line 148 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp4_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
+#line 148 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp5_ = g_strdup_printf (_tmp0_, _tmp4_);
+#line 148 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp6_ = _tmp5_;
+#line 148 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_object_unref0 (_tmp3_);
+#line 148 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ msg = _tmp6_;
+#line 150 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp7_ = msg;
+#line 150 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp8_ = message;
+#line 150 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp9_ = g_markup_printf_escaped ("\n\n<i>%s</i>\n\n", _tmp8_);
+#line 150 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp10_ = _tmp9_;
+#line 150 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp11_ = g_strconcat (_tmp7_, _tmp10_, NULL);
+#line 150 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_free0 (msg);
+#line 150 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ msg = _tmp11_;
+#line 150 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_free0 (_tmp10_);
+#line 151 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp12_ = msg;
+#line 151 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp13_ = _ ("To try importing from another service, select one from the above menu.");
+#line 151 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp14_ = g_strconcat (_tmp12_, _tmp13_, NULL);
+#line 151 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_free0 (msg);
+#line 151 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ msg = _tmp14_;
+#line 153 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp15_ = self->priv->dialog;
+#line 153 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp16_ = msg;
+#line 153 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp17_ = data_imports_ui_static_message_pane_new_with_pango (_tmp16_);
+#line 153 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp18_ = _tmp17_;
+#line 153 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ data_imports_ui_data_imports_dialog_install_pane (_tmp15_, G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, SPIT_DATA_IMPORTS_TYPE_DIALOG_PANE, SpitDataImportsDialogPane));
+#line 153 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_object_unref0 (_tmp18_);
+#line 154 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp19_ = self->priv->dialog;
+#line 154 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ data_imports_ui_data_imports_dialog_set_close_button_mode (_tmp19_);
+#line 155 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp20_ = self->priv->dialog;
+#line 155 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ data_imports_ui_data_imports_dialog_unlock_service (_tmp20_);
+#line 157 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp21_ = spit_data_imports_plugin_host_get_data_importer (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost));
+#line 157 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp22_ = _tmp21_;
+#line 157 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ spit_data_imports_data_importer_stop (_tmp22_);
+#line 157 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_object_unref0 (_tmp22_);
+#line 162 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ spit_data_imports_concrete_data_imports_host_clean_up (self);
+#line 147 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_free0 (msg);
+#line 1712 "DataImportsPluginHost.c"
+}
+
+
+static void spit_data_imports_concrete_data_imports_host_real_install_dialog_pane (SpitDataImportsPluginHost* base, SpitDataImportsDialogPane* pane, SpitDataImportsPluginHostButtonMode button_mode) {
+ SpitDataImportsConcreteDataImportsHost * self;
+ gboolean _tmp0_ = FALSE;
+ SpitDataImportsDataImporter* _tmp1_ = NULL;
+ SpitDataImportsDataImporter* _tmp2_ = NULL;
+ gboolean _tmp3_ = FALSE;
+ DataImportsUIDataImportsDialog* _tmp7_ = NULL;
+ SpitDataImportsDialogPane* _tmp8_ = NULL;
+ SpitDataImportsPluginHostButtonMode _tmp9_ = 0;
+#line 165 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHost);
+#line 165 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_return_if_fail (SPIT_DATA_IMPORTS_IS_DIALOG_PANE (pane));
+#line 167 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_debug ("DataImportsPluginHost.vala:167: DataImports.PluginHost: install_dialog" \
+"_pane( ): invoked.");
+#line 169 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp1_ = spit_data_imports_plugin_host_get_data_importer (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost));
+#line 169 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp2_ = _tmp1_;
+#line 169 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp3_ = _tmp2_ == NULL;
+#line 169 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_object_unref0 (_tmp2_);
+#line 169 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ if (_tmp3_) {
+#line 169 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp0_ = TRUE;
+#line 1743 "DataImportsPluginHost.c"
+ } else {
+ SpitDataImportsDataImporter* _tmp4_ = NULL;
+ SpitDataImportsDataImporter* _tmp5_ = NULL;
+ gboolean _tmp6_ = FALSE;
+#line 169 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp4_ = spit_data_imports_plugin_host_get_data_importer (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost));
+#line 169 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp5_ = _tmp4_;
+#line 169 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp6_ = spit_data_imports_data_importer_is_running (_tmp5_);
+#line 169 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp0_ = !_tmp6_;
+#line 169 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_object_unref0 (_tmp5_);
+#line 1758 "DataImportsPluginHost.c"
+ }
+#line 169 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ if (_tmp0_) {
+#line 170 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ return;
+#line 1764 "DataImportsPluginHost.c"
+ }
+#line 172 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp7_ = self->priv->dialog;
+#line 172 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp8_ = pane;
+#line 172 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ data_imports_ui_data_imports_dialog_install_pane (_tmp7_, _tmp8_);
+#line 174 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp9_ = button_mode;
+#line 174 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ spit_data_imports_concrete_data_imports_host_set_button_mode (self, _tmp9_);
+#line 1776 "DataImportsPluginHost.c"
+}
+
+
+static void spit_data_imports_concrete_data_imports_host_real_install_static_message_pane (SpitDataImportsPluginHost* base, const gchar* message, SpitDataImportsPluginHostButtonMode button_mode) {
+ SpitDataImportsConcreteDataImportsHost * self;
+ SpitDataImportsPluginHostButtonMode _tmp0_ = 0;
+ DataImportsUIDataImportsDialog* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ DataImportsUIStaticMessagePane* _tmp3_ = NULL;
+ DataImportsUIStaticMessagePane* _tmp4_ = NULL;
+#line 177 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHost);
+#line 177 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_return_if_fail (message != NULL);
+#line 180 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp0_ = button_mode;
+#line 180 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ spit_data_imports_concrete_data_imports_host_set_button_mode (self, _tmp0_);
+#line 182 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp1_ = self->priv->dialog;
+#line 182 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp2_ = message;
+#line 182 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp3_ = data_imports_ui_static_message_pane_new_with_pango (_tmp2_);
+#line 182 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp4_ = _tmp3_;
+#line 182 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ data_imports_ui_data_imports_dialog_install_pane (_tmp1_, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, SPIT_DATA_IMPORTS_TYPE_DIALOG_PANE, SpitDataImportsDialogPane));
+#line 182 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_object_unref0 (_tmp4_);
+#line 1807 "DataImportsPluginHost.c"
+}
+
+
+static void spit_data_imports_concrete_data_imports_host_real_install_library_selection_pane (SpitDataImportsPluginHost* base, const gchar* welcome_message, SpitDataImportsImportableLibrary** discovered_libraries, int discovered_libraries_length1, const gchar* file_select_label) {
+ SpitDataImportsConcreteDataImportsHost * self;
+ gboolean _tmp0_ = FALSE;
+ SpitDataImportsImportableLibrary** _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+#line 185 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHost);
+#line 185 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_return_if_fail (welcome_message != NULL);
+#line 190 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp1_ = discovered_libraries;
+#line 190 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp1__length1 = discovered_libraries_length1;
+#line 190 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ if (_tmp1__length1 == 0) {
+#line 1826 "DataImportsPluginHost.c"
+ const gchar* _tmp2_ = NULL;
+#line 190 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp2_ = file_select_label;
+#line 190 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp0_ = _tmp2_ == NULL;
+#line 1832 "DataImportsPluginHost.c"
+ } else {
+#line 190 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp0_ = FALSE;
+#line 1836 "DataImportsPluginHost.c"
+ }
+#line 190 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ if (_tmp0_) {
+#line 191 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ spit_data_imports_plugin_host_post_error_message (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost), "Libraries or file option needed");
+#line 1842 "DataImportsPluginHost.c"
+ } else {
+ DataImportsUIDataImportsDialog* _tmp3_ = NULL;
+ const gchar* _tmp4_ = NULL;
+ SpitDataImportsImportableLibrary** _tmp5_ = NULL;
+ gint _tmp5__length1 = 0;
+ const gchar* _tmp6_ = NULL;
+ DataImportsUILibrarySelectionPane* _tmp7_ = NULL;
+ DataImportsUILibrarySelectionPane* _tmp8_ = NULL;
+#line 193 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp3_ = self->priv->dialog;
+#line 193 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp4_ = welcome_message;
+#line 193 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp5_ = discovered_libraries;
+#line 193 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp5__length1 = discovered_libraries_length1;
+#line 193 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp6_ = file_select_label;
+#line 193 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp7_ = data_imports_ui_library_selection_pane_new (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost), _tmp4_, _tmp5_, _tmp5__length1, _tmp6_);
+#line 193 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp8_ = _tmp7_;
+#line 193 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ data_imports_ui_data_imports_dialog_install_pane (_tmp3_, G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, SPIT_DATA_IMPORTS_TYPE_DIALOG_PANE, SpitDataImportsDialogPane));
+#line 193 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_object_unref0 (_tmp8_);
+#line 1869 "DataImportsPluginHost.c"
+ }
+#line 199 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ spit_data_imports_concrete_data_imports_host_set_button_mode (self, SPIT_DATA_IMPORTS_PLUGIN_HOST_BUTTON_MODE_CLOSE);
+#line 1873 "DataImportsPluginHost.c"
+}
+
+
+static void spit_data_imports_concrete_data_imports_host_real_install_import_progress_pane (SpitDataImportsPluginHost* base, const gchar* message) {
+ SpitDataImportsConcreteDataImportsHost * self;
+ const gchar* _tmp0_ = NULL;
+ DataImportsUIProgressPane* _tmp1_ = NULL;
+ DataImportsUIDataImportsDialog* _tmp2_ = NULL;
+ DataImportsUIProgressPane* _tmp3_ = NULL;
+ SpitDataImportsCoreImporter* _tmp4_ = NULL;
+ SpitDataImportsCoreImporter* _tmp5_ = NULL;
+#line 202 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHost);
+#line 202 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_return_if_fail (message != NULL);
+#line 205 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp0_ = message;
+#line 205 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp1_ = data_imports_ui_progress_pane_new (_tmp0_);
+#line 205 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_object_unref0 (self->priv->progress_pane);
+#line 205 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self->priv->progress_pane = _tmp1_;
+#line 206 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp2_ = self->priv->dialog;
+#line 206 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp3_ = self->priv->progress_pane;
+#line 206 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ data_imports_ui_data_imports_dialog_install_pane (_tmp2_, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, SPIT_DATA_IMPORTS_TYPE_DIALOG_PANE, SpitDataImportsDialogPane));
+#line 207 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ spit_data_imports_concrete_data_imports_host_set_button_mode (self, SPIT_DATA_IMPORTS_PLUGIN_HOST_BUTTON_MODE_CANCEL);
+#line 209 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp4_ = self->priv->core_importer;
+#line 209 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp4_->imported_items_count = 0;
+#line 210 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp5_ = self->priv->core_importer;
+#line 210 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _batch_import_roll_unref0 (_tmp5_->current_import_roll);
+#line 210 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp5_->current_import_roll = NULL;
+#line 1915 "DataImportsPluginHost.c"
+}
+
+
+static void spit_data_imports_concrete_data_imports_host_real_update_import_progress_pane (SpitDataImportsPluginHost* base, gdouble progress, const gchar* progress_message) {
+ SpitDataImportsConcreteDataImportsHost * self;
+ DataImportsUIProgressPane* _tmp0_ = NULL;
+#line 213 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHost);
+#line 217 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp0_ = self->priv->progress_pane;
+#line 217 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ if (_tmp0_ != NULL) {
+#line 1928 "DataImportsPluginHost.c"
+ DataImportsUIProgressPane* _tmp1_ = NULL;
+ gdouble _tmp2_ = 0.0;
+ const gchar* _tmp3_ = NULL;
+#line 218 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp1_ = self->priv->progress_pane;
+#line 218 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp2_ = progress;
+#line 218 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp3_ = progress_message;
+#line 218 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ data_imports_ui_progress_pane_update_progress (_tmp1_, _tmp2_, _tmp3_);
+#line 1940 "DataImportsPluginHost.c"
+ }
+}
+
+
+static void spit_data_imports_concrete_data_imports_host_real_prepare_media_items_for_import (SpitDataImportsPluginHost* base, SpitDataImportsImportableMediaItem** items, int items_length1, gdouble progress, gdouble host_progress_delta, const gchar* progress_message) {
+ SpitDataImportsConcreteDataImportsHost * self;
+ SpitDataImportsCoreImporter* _tmp0_ = NULL;
+ SpitDataImportsImportableMediaItem** _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+ gdouble _tmp2_ = 0.0;
+ gdouble _tmp3_ = 0.0;
+ const gchar* _tmp4_ = NULL;
+#line 222 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHost);
+#line 228 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp0_ = self->priv->core_importer;
+#line 228 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp1_ = items;
+#line 228 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp1__length1 = items_length1;
+#line 228 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp2_ = progress;
+#line 228 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp3_ = host_progress_delta;
+#line 228 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp4_ = progress_message;
+#line 228 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ spit_data_imports_core_importer_prepare_media_items_for_import (_tmp0_, _tmp1_, _tmp1__length1, _tmp2_, _tmp3_, _tmp4_);
+#line 1969 "DataImportsPluginHost.c"
+}
+
+
+static void spit_data_imports_concrete_data_imports_host_real_finalize_import (SpitDataImportsPluginHost* base, SpitDataImportsImportedItemsCountCallback report_imported_items_count, void* report_imported_items_count_target, const gchar* finalize_message) {
+ SpitDataImportsConcreteDataImportsHost * self;
+ const gchar* _tmp0_ = NULL;
+ SpitDataImportsCoreImporter* _tmp1_ = NULL;
+ SpitDataImportsImportedItemsCountCallback _tmp2_ = NULL;
+ void* _tmp2__target = NULL;
+ SpitDataImportsCoreImporter* _tmp3_ = NULL;
+ gint _tmp4_ = 0;
+ SpitDataImportsCoreImporter* _tmp5_ = NULL;
+ gint _tmp6_ = 0;
+#line 231 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHost);
+#line 235 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp0_ = finalize_message;
+#line 235 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ spit_data_imports_plugin_host_update_import_progress_pane (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost), 1.0, _tmp0_);
+#line 236 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ spit_data_imports_concrete_data_imports_host_set_button_mode (self, SPIT_DATA_IMPORTS_PLUGIN_HOST_BUTTON_MODE_CLOSE);
+#line 237 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp1_ = self->priv->core_importer;
+#line 237 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ spit_data_imports_core_importer_finalize_import (_tmp1_);
+#line 238 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp2_ = report_imported_items_count;
+#line 238 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp2__target = report_imported_items_count_target;
+#line 238 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp3_ = self->priv->core_importer;
+#line 238 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp4_ = _tmp3_->imported_items_count;
+#line 238 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp2_ (_tmp4_, _tmp2__target);
+#line 239 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp5_ = self->priv->core_importer;
+#line 239 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp6_ = _tmp5_->imported_items_count;
+#line 239 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ if (_tmp6_ > 0) {
+#line 2011 "DataImportsPluginHost.c"
+ LibraryWindow* _tmp7_ = NULL;
+ LibraryWindow* _tmp8_ = NULL;
+#line 240 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp7_ = library_window_get_app ();
+#line 240 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp8_ = _tmp7_;
+#line 240 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ library_window_switch_to_import_queue_page (_tmp8_);
+#line 240 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_object_unref0 (_tmp8_);
+#line 2022 "DataImportsPluginHost.c"
+ }
+}
+
+
+static void spit_data_imports_concrete_data_imports_host_class_init (SpitDataImportsConcreteDataImportsHostClass * klass) {
+#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ spit_data_imports_concrete_data_imports_host_parent_class = g_type_class_peek_parent (klass);
+#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_type_class_add_private (klass, sizeof (SpitDataImportsConcreteDataImportsHostPrivate));
+#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ G_OBJECT_CLASS (klass)->finalize = spit_data_imports_concrete_data_imports_host_finalize;
+#line 2034 "DataImportsPluginHost.c"
+}
+
+
+static void spit_data_imports_concrete_data_imports_host_spit_data_imports_plugin_host_interface_init (SpitDataImportsPluginHostIface * iface) {
+#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ spit_data_imports_concrete_data_imports_host_spit_data_imports_plugin_host_parent_iface = g_type_interface_peek_parent (iface);
+#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ iface->get_data_importer = (SpitDataImportsDataImporter* (*)(SpitDataImportsPluginHost*)) spit_data_imports_concrete_data_imports_host_real_get_data_importer;
+#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ iface->start_importing = (void (*)(SpitDataImportsPluginHost*)) spit_data_imports_concrete_data_imports_host_real_start_importing;
+#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ iface->stop_importing = (void (*)(SpitDataImportsPluginHost*)) spit_data_imports_concrete_data_imports_host_real_stop_importing;
+#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ iface->post_error = (void (*)(SpitDataImportsPluginHost*, GError*)) spit_data_imports_concrete_data_imports_host_real_post_error;
+#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ iface->post_error_message = (void (*)(SpitDataImportsPluginHost*, const gchar*)) spit_data_imports_concrete_data_imports_host_real_post_error_message;
+#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ iface->install_dialog_pane = (void (*)(SpitDataImportsPluginHost*, SpitDataImportsDialogPane*, SpitDataImportsPluginHostButtonMode)) spit_data_imports_concrete_data_imports_host_real_install_dialog_pane;
+#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ iface->install_static_message_pane = (void (*)(SpitDataImportsPluginHost*, const gchar*, SpitDataImportsPluginHostButtonMode)) spit_data_imports_concrete_data_imports_host_real_install_static_message_pane;
+#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ iface->install_library_selection_pane = (void (*)(SpitDataImportsPluginHost*, const gchar*, SpitDataImportsImportableLibrary**, int, const gchar*)) spit_data_imports_concrete_data_imports_host_real_install_library_selection_pane;
+#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ iface->install_import_progress_pane = (void (*)(SpitDataImportsPluginHost*, const gchar*)) spit_data_imports_concrete_data_imports_host_real_install_import_progress_pane;
+#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ iface->update_import_progress_pane = (void (*)(SpitDataImportsPluginHost*, gdouble, const gchar*)) spit_data_imports_concrete_data_imports_host_real_update_import_progress_pane;
+#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ iface->prepare_media_items_for_import = (void (*)(SpitDataImportsPluginHost*, SpitDataImportsImportableMediaItem**, int, gdouble, gdouble, const gchar*)) spit_data_imports_concrete_data_imports_host_real_prepare_media_items_for_import;
+#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ iface->finalize_import = (void (*)(SpitDataImportsPluginHost*, SpitDataImportsImportedItemsCountCallback, void*, const gchar*)) spit_data_imports_concrete_data_imports_host_real_finalize_import;
+#line 2065 "DataImportsPluginHost.c"
+}
+
+
+static void spit_data_imports_concrete_data_imports_host_instance_init (SpitDataImportsConcreteDataImportsHost * self) {
+#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self->priv = SPIT_DATA_IMPORTS_CONCRETE_DATA_IMPORTS_HOST_GET_PRIVATE (self);
+#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self->priv->active_importer = NULL;
+#line 91 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self->priv->dialog = NULL;
+#line 92 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self->priv->progress_pane = NULL;
+#line 93 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self->priv->importing_halted = FALSE;
+#line 2080 "DataImportsPluginHost.c"
+}
+
+
+static void spit_data_imports_concrete_data_imports_host_finalize (GObject* obj) {
+ SpitDataImportsConcreteDataImportsHost * self;
+#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHost);
+#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_object_unref0 (self->priv->active_importer);
+#line 92 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_object_unref0 (self->priv->progress_pane);
+#line 94 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _spit_data_imports_core_importer_unref0 (self->priv->core_importer);
+#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ G_OBJECT_CLASS (spit_data_imports_concrete_data_imports_host_parent_class)->finalize (obj);
+#line 2096 "DataImportsPluginHost.c"
+}
+
+
+GType spit_data_imports_concrete_data_imports_host_get_type (void) {
+ static volatile gsize spit_data_imports_concrete_data_imports_host_type_id__volatile = 0;
+ if (g_once_init_enter (&spit_data_imports_concrete_data_imports_host_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (SpitDataImportsConcreteDataImportsHostClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) spit_data_imports_concrete_data_imports_host_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SpitDataImportsConcreteDataImportsHost), 0, (GInstanceInitFunc) spit_data_imports_concrete_data_imports_host_instance_init, NULL };
+ static const GInterfaceInfo spit_data_imports_plugin_host_info = { (GInterfaceInitFunc) spit_data_imports_concrete_data_imports_host_spit_data_imports_plugin_host_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType spit_data_imports_concrete_data_imports_host_type_id;
+ spit_data_imports_concrete_data_imports_host_type_id = g_type_register_static (PLUGINS_TYPE_STANDARD_HOST_INTERFACE, "SpitDataImportsConcreteDataImportsHost", &g_define_type_info, 0);
+ g_type_add_interface_static (spit_data_imports_concrete_data_imports_host_type_id, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, &spit_data_imports_plugin_host_info);
+ g_once_init_leave (&spit_data_imports_concrete_data_imports_host_type_id__volatile, spit_data_imports_concrete_data_imports_host_type_id);
+ }
+ return spit_data_imports_concrete_data_imports_host_type_id__volatile;
+}
+
+
+SpitDataImportsWelcomeDataImportsHost* spit_data_imports_welcome_data_imports_host_construct (GType object_type, SpitDataImportsService* service, SpitDataImportsWelcomeImportMetaHost* meta_host) {
+ SpitDataImportsWelcomeDataImportsHost * self = NULL;
+ SpitDataImportsService* _tmp0_ = NULL;
+ SpitDataImportsService* _tmp1_ = NULL;
+ SpitDataImportsDataImporter* _tmp2_ = NULL;
+ SpitDataImportsCoreImporter* _tmp3_ = NULL;
+ SpitDataImportsWelcomeImportMetaHost* _tmp4_ = NULL;
+#line 252 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_SERVICE (service), NULL);
+#line 252 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_WELCOME_IMPORT_META_HOST (meta_host), NULL);
+#line 253 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp0_ = service;
+#line 253 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self = (SpitDataImportsWelcomeDataImportsHost*) plugins_standard_host_interface_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_PLUGGABLE, SpitPluggable), "data_imports");
+#line 255 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp1_ = service;
+#line 255 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp2_ = spit_data_imports_service_create_data_importer (_tmp1_, G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost));
+#line 255 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_object_unref0 (self->priv->active_importer);
+#line 255 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self->priv->active_importer = _tmp2_;
+#line 256 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp3_ = spit_data_imports_core_importer_new (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost));
+#line 256 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _spit_data_imports_core_importer_unref0 (self->priv->core_importer);
+#line 256 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self->priv->core_importer = _tmp3_;
+#line 257 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp4_ = meta_host;
+#line 257 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self->priv->meta_host = _tmp4_;
+#line 252 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ return self;
+#line 2149 "DataImportsPluginHost.c"
+}
+
+
+SpitDataImportsWelcomeDataImportsHost* spit_data_imports_welcome_data_imports_host_new (SpitDataImportsService* service, SpitDataImportsWelcomeImportMetaHost* meta_host) {
+#line 252 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ return spit_data_imports_welcome_data_imports_host_construct (SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST, service, meta_host);
+#line 2156 "DataImportsPluginHost.c"
+}
+
+
+static SpitDataImportsDataImporter* spit_data_imports_welcome_data_imports_host_real_get_data_importer (SpitDataImportsPluginHost* base) {
+ SpitDataImportsWelcomeDataImportsHost * self;
+ SpitDataImportsDataImporter* result = NULL;
+ SpitDataImportsDataImporter* _tmp0_ = NULL;
+ SpitDataImportsDataImporter* _tmp1_ = NULL;
+#line 260 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST, SpitDataImportsWelcomeDataImportsHost);
+#line 261 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp0_ = self->priv->active_importer;
+#line 261 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp1_ = _g_object_ref0 (_tmp0_);
+#line 261 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ result = _tmp1_;
+#line 261 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ return result;
+#line 2175 "DataImportsPluginHost.c"
+}
+
+
+static void spit_data_imports_welcome_data_imports_host_real_start_importing (SpitDataImportsPluginHost* base) {
+ SpitDataImportsWelcomeDataImportsHost * self;
+ SpitDataImportsDataImporter* _tmp0_ = NULL;
+ SpitDataImportsDataImporter* _tmp1_ = NULL;
+ gboolean _tmp2_ = FALSE;
+ gboolean _tmp3_ = FALSE;
+ SpitDataImportsDataImporter* _tmp4_ = NULL;
+ SpitDataImportsDataImporter* _tmp5_ = NULL;
+#line 264 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST, SpitDataImportsWelcomeDataImportsHost);
+#line 265 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp0_ = spit_data_imports_plugin_host_get_data_importer (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost));
+#line 265 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp1_ = _tmp0_;
+#line 265 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp2_ = spit_data_imports_data_importer_is_running (_tmp1_);
+#line 265 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp3_ = _tmp2_;
+#line 265 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_object_unref0 (_tmp1_);
+#line 265 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ if (_tmp3_) {
+#line 266 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ return;
+#line 2203 "DataImportsPluginHost.c"
+ }
+#line 268 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_debug ("DataImportsPluginHost.vala:268: WelcomeDataImportsHost.start_importing" \
+"( ): invoked.");
+#line 270 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp4_ = spit_data_imports_plugin_host_get_data_importer (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost));
+#line 270 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp5_ = _tmp4_;
+#line 270 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ spit_data_imports_data_importer_start (_tmp5_);
+#line 270 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_object_unref0 (_tmp5_);
+#line 2215 "DataImportsPluginHost.c"
+}
+
+
+static void spit_data_imports_welcome_data_imports_host_real_stop_importing (SpitDataImportsPluginHost* base) {
+ SpitDataImportsWelcomeDataImportsHost * self;
+ SpitDataImportsDataImporter* _tmp0_ = NULL;
+ SpitDataImportsDataImporter* _tmp1_ = NULL;
+ gboolean _tmp2_ = FALSE;
+ gboolean _tmp3_ = FALSE;
+#line 273 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST, SpitDataImportsWelcomeDataImportsHost);
+#line 274 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_debug ("DataImportsPluginHost.vala:274: WelcomeDataImportsHost.stop_importing(" \
+" ): invoked.");
+#line 276 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp0_ = spit_data_imports_plugin_host_get_data_importer (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost));
+#line 276 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp1_ = _tmp0_;
+#line 276 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp2_ = spit_data_imports_data_importer_is_running (_tmp1_);
+#line 276 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp3_ = _tmp2_;
+#line 276 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_object_unref0 (_tmp1_);
+#line 276 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ if (_tmp3_) {
+#line 2241 "DataImportsPluginHost.c"
+ SpitDataImportsDataImporter* _tmp4_ = NULL;
+ SpitDataImportsDataImporter* _tmp5_ = NULL;
+#line 277 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp4_ = spit_data_imports_plugin_host_get_data_importer (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost));
+#line 277 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp5_ = _tmp4_;
+#line 277 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ spit_data_imports_data_importer_stop (_tmp5_);
+#line 277 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_object_unref0 (_tmp5_);
+#line 2252 "DataImportsPluginHost.c"
+ }
+#line 279 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ spit_data_imports_welcome_data_imports_host_clean_up (self);
+#line 281 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self->priv->importing_halted = TRUE;
+#line 2258 "DataImportsPluginHost.c"
+}
+
+
+static void spit_data_imports_welcome_data_imports_host_clean_up (SpitDataImportsWelcomeDataImportsHost* self) {
+#line 284 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_return_if_fail (SPIT_DATA_IMPORTS_IS_WELCOME_DATA_IMPORTS_HOST (self));
+#line 2265 "DataImportsPluginHost.c"
+}
+
+
+static void spit_data_imports_welcome_data_imports_host_real_post_error (SpitDataImportsPluginHost* base, GError* err) {
+ SpitDataImportsWelcomeDataImportsHost * self;
+ GError* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+#line 289 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST, SpitDataImportsWelcomeDataImportsHost);
+#line 290 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp0_ = err;
+#line 290 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp1_ = _tmp0_->message;
+#line 290 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ spit_data_imports_plugin_host_post_error_message (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost), _tmp1_);
+#line 2281 "DataImportsPluginHost.c"
+}
+
+
+static void spit_data_imports_welcome_data_imports_host_real_post_error_message (SpitDataImportsPluginHost* base, const gchar* message) {
+ SpitDataImportsWelcomeDataImportsHost * self;
+ gchar* msg = NULL;
+ const gchar* _tmp0_ = NULL;
+ SpitDataImportsDataImporter* _tmp1_ = NULL;
+ SpitDataImportsService* _tmp2_ = NULL;
+ SpitDataImportsService* _tmp3_ = NULL;
+ const gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ SpitDataImportsDataImporter* _tmp7_ = NULL;
+ SpitDataImportsDataImporter* _tmp8_ = NULL;
+#line 293 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST, SpitDataImportsWelcomeDataImportsHost);
+#line 293 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_return_if_fail (message != NULL);
+#line 294 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp0_ = _ ("Importing from %s can't continue because an error occurred:");
+#line 294 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp1_ = self->priv->active_importer;
+#line 294 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp2_ = spit_data_imports_data_importer_get_service (_tmp1_);
+#line 294 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp3_ = _tmp2_;
+#line 294 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp4_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
+#line 294 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp5_ = g_strdup_printf (_tmp0_, _tmp4_);
+#line 294 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp6_ = _tmp5_;
+#line 294 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_object_unref0 (_tmp3_);
+#line 294 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ msg = _tmp6_;
+#line 297 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_debug ("DataImportsPluginHost.vala:297: %s", msg);
+#line 299 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp7_ = spit_data_imports_plugin_host_get_data_importer (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost));
+#line 299 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp8_ = _tmp7_;
+#line 299 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ spit_data_imports_data_importer_stop (_tmp8_);
+#line 299 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_object_unref0 (_tmp8_);
+#line 304 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ spit_data_imports_welcome_data_imports_host_clean_up (self);
+#line 293 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_free0 (msg);
+#line 2333 "DataImportsPluginHost.c"
+}
+
+
+static void spit_data_imports_welcome_data_imports_host_real_install_dialog_pane (SpitDataImportsPluginHost* base, SpitDataImportsDialogPane* pane, SpitDataImportsPluginHostButtonMode button_mode) {
+ SpitDataImportsWelcomeDataImportsHost * self;
+#line 307 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST, SpitDataImportsWelcomeDataImportsHost);
+#line 307 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_return_if_fail (SPIT_DATA_IMPORTS_IS_DIALOG_PANE (pane));
+#line 2343 "DataImportsPluginHost.c"
+}
+
+
+static void spit_data_imports_welcome_data_imports_host_real_install_static_message_pane (SpitDataImportsPluginHost* base, const gchar* message, SpitDataImportsPluginHostButtonMode button_mode) {
+ SpitDataImportsWelcomeDataImportsHost * self;
+#line 312 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST, SpitDataImportsWelcomeDataImportsHost);
+#line 312 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_return_if_fail (message != NULL);
+#line 2353 "DataImportsPluginHost.c"
+}
+
+
+static void spit_data_imports_welcome_data_imports_host_real_install_library_selection_pane (SpitDataImportsPluginHost* base, const gchar* welcome_message, SpitDataImportsImportableLibrary** discovered_libraries, int discovered_libraries_length1, const gchar* file_select_label) {
+ SpitDataImportsWelcomeDataImportsHost * self;
+ SpitDataImportsDataImporter* _tmp0_ = NULL;
+ SpitDataImportsDataImporter* _tmp1_ = NULL;
+ SpitDataImportsService* _tmp2_ = NULL;
+ SpitDataImportsService* _tmp3_ = NULL;
+ const gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ SpitDataImportsImportableLibrary** _tmp7_ = NULL;
+ gint _tmp7__length1 = 0;
+#line 317 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST, SpitDataImportsWelcomeDataImportsHost);
+#line 317 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_return_if_fail (welcome_message != NULL);
+#line 322 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp0_ = spit_data_imports_plugin_host_get_data_importer (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost));
+#line 322 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp1_ = _tmp0_;
+#line 322 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp2_ = spit_data_imports_data_importer_get_service (_tmp1_);
+#line 322 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp3_ = _tmp2_;
+#line 322 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp4_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
+#line 322 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp5_ = g_strdup_printf ("WelcomeDataImportsHost: Installing library selection pane for %s", _tmp4_);
+#line 322 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp6_ = _tmp5_;
+#line 322 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_debug ("DataImportsPluginHost.vala:322: %s", _tmp6_);
+#line 322 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_free0 (_tmp6_);
+#line 322 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_object_unref0 (_tmp3_);
+#line 322 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_object_unref0 (_tmp1_);
+#line 323 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp7_ = discovered_libraries;
+#line 323 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp7__length1 = discovered_libraries_length1;
+#line 323 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ if (_tmp7__length1 > 0) {
+#line 2400 "DataImportsPluginHost.c"
+ SpitDataImportsWelcomeImportMetaHost* _tmp8_ = NULL;
+ SpitDataImportsDataImporter* _tmp9_ = NULL;
+ SpitDataImportsDataImporter* _tmp10_ = NULL;
+ SpitDataImportsService* _tmp11_ = NULL;
+ SpitDataImportsService* _tmp12_ = NULL;
+ const gchar* _tmp13_ = NULL;
+ SpitDataImportsImportableLibrary** _tmp14_ = NULL;
+ gint _tmp14__length1 = 0;
+ SpitDataImportsWelcomeImportServiceEntry* _tmp15_ = NULL;
+ SpitDataImportsWelcomeImportServiceEntry* _tmp16_ = NULL;
+#line 324 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp8_ = self->priv->meta_host;
+#line 324 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp9_ = spit_data_imports_plugin_host_get_data_importer (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost));
+#line 324 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp10_ = _tmp9_;
+#line 324 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp11_ = spit_data_imports_data_importer_get_service (_tmp10_);
+#line 324 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp12_ = _tmp11_;
+#line 324 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp13_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
+#line 324 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp14_ = discovered_libraries;
+#line 324 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp14__length1 = discovered_libraries_length1;
+#line 324 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp15_ = spit_data_imports_welcome_import_service_entry_new (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost), _tmp13_, _tmp14_, _tmp14__length1);
+#line 324 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp16_ = _tmp15_;
+#line 324 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ spit_data_imports_welcome_import_meta_host_install_service_entry (_tmp8_, G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_WELCOME_SERVICE_ENTRY, WelcomeServiceEntry));
+#line 324 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_object_unref0 (_tmp16_);
+#line 324 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_object_unref0 (_tmp12_);
+#line 324 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_object_unref0 (_tmp10_);
+#line 2439 "DataImportsPluginHost.c"
+ }
+}
+
+
+static void spit_data_imports_welcome_data_imports_host_real_install_import_progress_pane (SpitDataImportsPluginHost* base, const gchar* message) {
+ SpitDataImportsWelcomeDataImportsHost * self;
+#line 332 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST, SpitDataImportsWelcomeDataImportsHost);
+#line 332 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_return_if_fail (message != NULL);
+#line 2450 "DataImportsPluginHost.c"
+}
+
+
+static void spit_data_imports_welcome_data_imports_host_real_update_import_progress_pane (SpitDataImportsPluginHost* base, gdouble progress, const gchar* progress_message) {
+ SpitDataImportsWelcomeDataImportsHost * self;
+#line 338 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST, SpitDataImportsWelcomeDataImportsHost);
+#line 2458 "DataImportsPluginHost.c"
+}
+
+
+static void spit_data_imports_welcome_data_imports_host_real_prepare_media_items_for_import (SpitDataImportsPluginHost* base, SpitDataImportsImportableMediaItem** items, int items_length1, gdouble progress, gdouble host_progress_delta, const gchar* progress_message) {
+ SpitDataImportsWelcomeDataImportsHost * self;
+ SpitDataImportsCoreImporter* _tmp0_ = NULL;
+ SpitDataImportsImportableMediaItem** _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+ gdouble _tmp2_ = 0.0;
+ gdouble _tmp3_ = 0.0;
+ const gchar* _tmp4_ = NULL;
+#line 345 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST, SpitDataImportsWelcomeDataImportsHost);
+#line 351 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp0_ = self->priv->core_importer;
+#line 351 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp1_ = items;
+#line 351 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp1__length1 = items_length1;
+#line 351 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp2_ = progress;
+#line 351 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp3_ = host_progress_delta;
+#line 351 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp4_ = progress_message;
+#line 351 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ spit_data_imports_core_importer_prepare_media_items_for_import (_tmp0_, _tmp1_, _tmp1__length1, _tmp2_, _tmp3_, _tmp4_);
+#line 2486 "DataImportsPluginHost.c"
+}
+
+
+static void spit_data_imports_welcome_data_imports_host_real_finalize_import (SpitDataImportsPluginHost* base, SpitDataImportsImportedItemsCountCallback report_imported_items_count, void* report_imported_items_count_target, const gchar* finalize_message) {
+ SpitDataImportsWelcomeDataImportsHost * self;
+ SpitDataImportsCoreImporter* _tmp0_ = NULL;
+ SpitDataImportsImportedItemsCountCallback _tmp1_ = NULL;
+ void* _tmp1__target = NULL;
+ SpitDataImportsCoreImporter* _tmp2_ = NULL;
+ gint _tmp3_ = 0;
+ SpitDataImportsWelcomeImportMetaHost* _tmp4_ = NULL;
+#line 354 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST, SpitDataImportsWelcomeDataImportsHost);
+#line 358 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp0_ = self->priv->core_importer;
+#line 358 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ spit_data_imports_core_importer_finalize_import (_tmp0_);
+#line 359 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp1_ = report_imported_items_count;
+#line 359 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp1__target = report_imported_items_count_target;
+#line 359 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp2_ = self->priv->core_importer;
+#line 359 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp3_ = _tmp2_->imported_items_count;
+#line 359 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp1_ (_tmp3_, _tmp1__target);
+#line 360 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp4_ = self->priv->meta_host;
+#line 360 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ spit_data_imports_welcome_import_meta_host_finalize_import (_tmp4_, self);
+#line 2518 "DataImportsPluginHost.c"
+}
+
+
+static void spit_data_imports_welcome_data_imports_host_class_init (SpitDataImportsWelcomeDataImportsHostClass * klass) {
+#line 244 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ spit_data_imports_welcome_data_imports_host_parent_class = g_type_class_peek_parent (klass);
+#line 244 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_type_class_add_private (klass, sizeof (SpitDataImportsWelcomeDataImportsHostPrivate));
+#line 244 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ G_OBJECT_CLASS (klass)->finalize = spit_data_imports_welcome_data_imports_host_finalize;
+#line 2529 "DataImportsPluginHost.c"
+}
+
+
+static void spit_data_imports_welcome_data_imports_host_spit_data_imports_plugin_host_interface_init (SpitDataImportsPluginHostIface * iface) {
+#line 244 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ spit_data_imports_welcome_data_imports_host_spit_data_imports_plugin_host_parent_iface = g_type_interface_peek_parent (iface);
+#line 244 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ iface->get_data_importer = (SpitDataImportsDataImporter* (*)(SpitDataImportsPluginHost*)) spit_data_imports_welcome_data_imports_host_real_get_data_importer;
+#line 244 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ iface->start_importing = (void (*)(SpitDataImportsPluginHost*)) spit_data_imports_welcome_data_imports_host_real_start_importing;
+#line 244 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ iface->stop_importing = (void (*)(SpitDataImportsPluginHost*)) spit_data_imports_welcome_data_imports_host_real_stop_importing;
+#line 244 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ iface->post_error = (void (*)(SpitDataImportsPluginHost*, GError*)) spit_data_imports_welcome_data_imports_host_real_post_error;
+#line 244 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ iface->post_error_message = (void (*)(SpitDataImportsPluginHost*, const gchar*)) spit_data_imports_welcome_data_imports_host_real_post_error_message;
+#line 244 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ iface->install_dialog_pane = (void (*)(SpitDataImportsPluginHost*, SpitDataImportsDialogPane*, SpitDataImportsPluginHostButtonMode)) spit_data_imports_welcome_data_imports_host_real_install_dialog_pane;
+#line 244 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ iface->install_static_message_pane = (void (*)(SpitDataImportsPluginHost*, const gchar*, SpitDataImportsPluginHostButtonMode)) spit_data_imports_welcome_data_imports_host_real_install_static_message_pane;
+#line 244 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ iface->install_library_selection_pane = (void (*)(SpitDataImportsPluginHost*, const gchar*, SpitDataImportsImportableLibrary**, int, const gchar*)) spit_data_imports_welcome_data_imports_host_real_install_library_selection_pane;
+#line 244 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ iface->install_import_progress_pane = (void (*)(SpitDataImportsPluginHost*, const gchar*)) spit_data_imports_welcome_data_imports_host_real_install_import_progress_pane;
+#line 244 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ iface->update_import_progress_pane = (void (*)(SpitDataImportsPluginHost*, gdouble, const gchar*)) spit_data_imports_welcome_data_imports_host_real_update_import_progress_pane;
+#line 244 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ iface->prepare_media_items_for_import = (void (*)(SpitDataImportsPluginHost*, SpitDataImportsImportableMediaItem**, int, gdouble, gdouble, const gchar*)) spit_data_imports_welcome_data_imports_host_real_prepare_media_items_for_import;
+#line 244 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ iface->finalize_import = (void (*)(SpitDataImportsPluginHost*, SpitDataImportsImportedItemsCountCallback, void*, const gchar*)) spit_data_imports_welcome_data_imports_host_real_finalize_import;
+#line 2560 "DataImportsPluginHost.c"
+}
+
+
+static void spit_data_imports_welcome_data_imports_host_instance_init (SpitDataImportsWelcomeDataImportsHost * self) {
+#line 244 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self->priv = SPIT_DATA_IMPORTS_WELCOME_DATA_IMPORTS_HOST_GET_PRIVATE (self);
+#line 248 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self->priv->active_importer = NULL;
+#line 249 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self->priv->importing_halted = FALSE;
+#line 2571 "DataImportsPluginHost.c"
+}
+
+
+static void spit_data_imports_welcome_data_imports_host_finalize (GObject* obj) {
+ SpitDataImportsWelcomeDataImportsHost * self;
+#line 244 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST, SpitDataImportsWelcomeDataImportsHost);
+#line 248 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_object_unref0 (self->priv->active_importer);
+#line 250 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _spit_data_imports_core_importer_unref0 (self->priv->core_importer);
+#line 244 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ G_OBJECT_CLASS (spit_data_imports_welcome_data_imports_host_parent_class)->finalize (obj);
+#line 2585 "DataImportsPluginHost.c"
+}
+
+
+GType spit_data_imports_welcome_data_imports_host_get_type (void) {
+ static volatile gsize spit_data_imports_welcome_data_imports_host_type_id__volatile = 0;
+ if (g_once_init_enter (&spit_data_imports_welcome_data_imports_host_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (SpitDataImportsWelcomeDataImportsHostClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) spit_data_imports_welcome_data_imports_host_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SpitDataImportsWelcomeDataImportsHost), 0, (GInstanceInitFunc) spit_data_imports_welcome_data_imports_host_instance_init, NULL };
+ static const GInterfaceInfo spit_data_imports_plugin_host_info = { (GInterfaceInitFunc) spit_data_imports_welcome_data_imports_host_spit_data_imports_plugin_host_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType spit_data_imports_welcome_data_imports_host_type_id;
+ spit_data_imports_welcome_data_imports_host_type_id = g_type_register_static (PLUGINS_TYPE_STANDARD_HOST_INTERFACE, "SpitDataImportsWelcomeDataImportsHost", &g_define_type_info, 0);
+ g_type_add_interface_static (spit_data_imports_welcome_data_imports_host_type_id, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, &spit_data_imports_plugin_host_info);
+ g_once_init_leave (&spit_data_imports_welcome_data_imports_host_type_id__volatile, spit_data_imports_welcome_data_imports_host_type_id);
+ }
+ return spit_data_imports_welcome_data_imports_host_type_id__volatile;
+}
+
+
+static SpitDataImportsImportableLibrary** _vala_array_dup25 (SpitDataImportsImportableLibrary** self, int length) {
+ SpitDataImportsImportableLibrary** result;
+ int i;
+#line 378 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ result = g_new0 (SpitDataImportsImportableLibrary*, length + 1);
+#line 378 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ for (i = 0; i < length; i++) {
+#line 2610 "DataImportsPluginHost.c"
+ SpitDataImportsImportableLibrary* _tmp0_ = NULL;
+#line 378 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp0_ = _g_object_ref0 (self[i]);
+#line 378 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ result[i] = _tmp0_;
+#line 2616 "DataImportsPluginHost.c"
+ }
+#line 378 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ return result;
+#line 2620 "DataImportsPluginHost.c"
+}
+
+
+SpitDataImportsWelcomeImportServiceEntry* spit_data_imports_welcome_import_service_entry_construct (GType object_type, SpitDataImportsPluginHost* host, const gchar* pluggable_name, SpitDataImportsImportableLibrary** discovered_libraries, int discovered_libraries_length1) {
+ SpitDataImportsWelcomeImportServiceEntry * self = NULL;
+ SpitDataImportsPluginHost* _tmp0_ = NULL;
+ SpitDataImportsPluginHost* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ SpitDataImportsImportableLibrary** _tmp4_ = NULL;
+ gint _tmp4__length1 = 0;
+ SpitDataImportsImportableLibrary** _tmp5_ = NULL;
+ gint _tmp5__length1 = 0;
+#line 372 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (host), NULL);
+#line 372 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_return_val_if_fail (pluggable_name != NULL, NULL);
+#line 372 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self = (SpitDataImportsWelcomeImportServiceEntry*) g_object_new (object_type, NULL);
+#line 376 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp0_ = host;
+#line 376 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp1_ = _g_object_ref0 (_tmp0_);
+#line 376 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_object_unref0 (self->priv->host);
+#line 376 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self->priv->host = _tmp1_;
+#line 377 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp2_ = pluggable_name;
+#line 377 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp3_ = g_strdup (_tmp2_);
+#line 377 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_free0 (self->priv->pluggable_name);
+#line 377 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self->priv->pluggable_name = _tmp3_;
+#line 378 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp4_ = discovered_libraries;
+#line 378 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp4__length1 = discovered_libraries_length1;
+#line 378 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp5_ = (_tmp4_ != NULL) ? _vala_array_dup25 (_tmp4_, _tmp4__length1) : ((gpointer) _tmp4_);
+#line 378 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp5__length1 = _tmp4__length1;
+#line 378 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self->priv->discovered_libraries = (_vala_array_free (self->priv->discovered_libraries, self->priv->discovered_libraries_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 378 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self->priv->discovered_libraries = _tmp5_;
+#line 378 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self->priv->discovered_libraries_length1 = _tmp5__length1;
+#line 378 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self->priv->_discovered_libraries_size_ = self->priv->discovered_libraries_length1;
+#line 372 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ return self;
+#line 2674 "DataImportsPluginHost.c"
+}
+
+
+SpitDataImportsWelcomeImportServiceEntry* spit_data_imports_welcome_import_service_entry_new (SpitDataImportsPluginHost* host, const gchar* pluggable_name, SpitDataImportsImportableLibrary** discovered_libraries, int discovered_libraries_length1) {
+#line 372 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ return spit_data_imports_welcome_import_service_entry_construct (SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_SERVICE_ENTRY, host, pluggable_name, discovered_libraries, discovered_libraries_length1);
+#line 2681 "DataImportsPluginHost.c"
+}
+
+
+static gchar* spit_data_imports_welcome_import_service_entry_real_get_service_name (WelcomeServiceEntry* base) {
+ SpitDataImportsWelcomeImportServiceEntry * self;
+ gchar* result = NULL;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 381 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_SERVICE_ENTRY, SpitDataImportsWelcomeImportServiceEntry);
+#line 382 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp0_ = self->priv->pluggable_name;
+#line 382 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 382 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ result = _tmp1_;
+#line 382 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ return result;
+#line 2700 "DataImportsPluginHost.c"
+}
+
+
+static void spit_data_imports_welcome_import_service_entry_real_execute (WelcomeServiceEntry* base) {
+ SpitDataImportsWelcomeImportServiceEntry * self;
+ SpitDataImportsImportableLibrary** _tmp0_ = NULL;
+ gint _tmp0__length1 = 0;
+#line 385 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_SERVICE_ENTRY, SpitDataImportsWelcomeImportServiceEntry);
+#line 386 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp0_ = self->priv->discovered_libraries;
+#line 386 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp0__length1 = self->priv->discovered_libraries_length1;
+#line 2714 "DataImportsPluginHost.c"
+ {
+ SpitDataImportsImportableLibrary** library_collection = NULL;
+ gint library_collection_length1 = 0;
+ gint _library_collection_size_ = 0;
+ gint library_it = 0;
+#line 386 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ library_collection = _tmp0_;
+#line 386 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ library_collection_length1 = _tmp0__length1;
+#line 386 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ for (library_it = 0; library_it < _tmp0__length1; library_it = library_it + 1) {
+#line 2726 "DataImportsPluginHost.c"
+ SpitDataImportsImportableLibrary* _tmp1_ = NULL;
+ SpitDataImportsImportableLibrary* library = NULL;
+#line 386 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp1_ = _g_object_ref0 (library_collection[library_it]);
+#line 386 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ library = _tmp1_;
+#line 2733 "DataImportsPluginHost.c"
+ {
+ SpitDataImportsPluginHost* _tmp2_ = NULL;
+ SpitDataImportsDataImporter* _tmp3_ = NULL;
+ SpitDataImportsDataImporter* _tmp4_ = NULL;
+ SpitDataImportsImportableLibrary* _tmp5_ = NULL;
+#line 387 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp2_ = self->priv->host;
+#line 387 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp3_ = spit_data_imports_plugin_host_get_data_importer (_tmp2_);
+#line 387 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp4_ = _tmp3_;
+#line 387 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp5_ = library;
+#line 387 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ spit_data_imports_data_importer_on_library_selected (_tmp4_, _tmp5_);
+#line 387 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_object_unref0 (_tmp4_);
+#line 386 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_object_unref0 (library);
+#line 2753 "DataImportsPluginHost.c"
+ }
+ }
+ }
+}
+
+
+static void spit_data_imports_welcome_import_service_entry_class_init (SpitDataImportsWelcomeImportServiceEntryClass * klass) {
+#line 367 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ spit_data_imports_welcome_import_service_entry_parent_class = g_type_class_peek_parent (klass);
+#line 367 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_type_class_add_private (klass, sizeof (SpitDataImportsWelcomeImportServiceEntryPrivate));
+#line 367 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ G_OBJECT_CLASS (klass)->finalize = spit_data_imports_welcome_import_service_entry_finalize;
+#line 2767 "DataImportsPluginHost.c"
+}
+
+
+static void spit_data_imports_welcome_import_service_entry_welcome_service_entry_interface_init (WelcomeServiceEntryIface * iface) {
+#line 367 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ spit_data_imports_welcome_import_service_entry_welcome_service_entry_parent_iface = g_type_interface_peek_parent (iface);
+#line 367 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ iface->get_service_name = (gchar* (*)(WelcomeServiceEntry*)) spit_data_imports_welcome_import_service_entry_real_get_service_name;
+#line 367 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ iface->execute = (void (*)(WelcomeServiceEntry*)) spit_data_imports_welcome_import_service_entry_real_execute;
+#line 2778 "DataImportsPluginHost.c"
+}
+
+
+static void spit_data_imports_welcome_import_service_entry_instance_init (SpitDataImportsWelcomeImportServiceEntry * self) {
+#line 367 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self->priv = SPIT_DATA_IMPORTS_WELCOME_IMPORT_SERVICE_ENTRY_GET_PRIVATE (self);
+#line 2785 "DataImportsPluginHost.c"
+}
+
+
+static void spit_data_imports_welcome_import_service_entry_finalize (GObject* obj) {
+ SpitDataImportsWelcomeImportServiceEntry * self;
+#line 367 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_SERVICE_ENTRY, SpitDataImportsWelcomeImportServiceEntry);
+#line 368 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_free0 (self->priv->pluggable_name);
+#line 369 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self->priv->discovered_libraries = (_vala_array_free (self->priv->discovered_libraries, self->priv->discovered_libraries_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 370 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_object_unref0 (self->priv->host);
+#line 367 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ G_OBJECT_CLASS (spit_data_imports_welcome_import_service_entry_parent_class)->finalize (obj);
+#line 2801 "DataImportsPluginHost.c"
+}
+
+
+GType spit_data_imports_welcome_import_service_entry_get_type (void) {
+ static volatile gsize spit_data_imports_welcome_import_service_entry_type_id__volatile = 0;
+ if (g_once_init_enter (&spit_data_imports_welcome_import_service_entry_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (SpitDataImportsWelcomeImportServiceEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) spit_data_imports_welcome_import_service_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SpitDataImportsWelcomeImportServiceEntry), 0, (GInstanceInitFunc) spit_data_imports_welcome_import_service_entry_instance_init, NULL };
+ static const GInterfaceInfo welcome_service_entry_info = { (GInterfaceInitFunc) spit_data_imports_welcome_import_service_entry_welcome_service_entry_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType spit_data_imports_welcome_import_service_entry_type_id;
+ spit_data_imports_welcome_import_service_entry_type_id = g_type_register_static (G_TYPE_OBJECT, "SpitDataImportsWelcomeImportServiceEntry", &g_define_type_info, 0);
+ g_type_add_interface_static (spit_data_imports_welcome_import_service_entry_type_id, TYPE_WELCOME_SERVICE_ENTRY, &welcome_service_entry_info);
+ g_once_init_leave (&spit_data_imports_welcome_import_service_entry_type_id__volatile, spit_data_imports_welcome_import_service_entry_type_id);
+ }
+ return spit_data_imports_welcome_import_service_entry_type_id__volatile;
+}
+
+
+SpitDataImportsWelcomeImportMetaHost* spit_data_imports_welcome_import_meta_host_construct (GType object_type, WelcomeDialog* dialog) {
+ SpitDataImportsWelcomeImportMetaHost * self = NULL;
+ WelcomeDialog* _tmp0_ = NULL;
+ WelcomeDialog* _tmp1_ = NULL;
+#line 395 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_return_val_if_fail (IS_WELCOME_DIALOG (dialog), NULL);
+#line 395 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self = (SpitDataImportsWelcomeImportMetaHost*) g_object_new (object_type, NULL);
+#line 396 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp0_ = dialog;
+#line 396 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp1_ = _g_object_ref0 (_tmp0_);
+#line 396 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_object_unref0 (self->priv->dialog);
+#line 396 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self->priv->dialog = _tmp1_;
+#line 395 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ return self;
+#line 2837 "DataImportsPluginHost.c"
+}
+
+
+SpitDataImportsWelcomeImportMetaHost* spit_data_imports_welcome_import_meta_host_new (WelcomeDialog* dialog) {
+#line 395 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ return spit_data_imports_welcome_import_meta_host_construct (SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_META_HOST, dialog);
+#line 2844 "DataImportsPluginHost.c"
+}
+
+
+void spit_data_imports_welcome_import_meta_host_start (SpitDataImportsWelcomeImportMetaHost* self) {
+ SpitDataImportsService** services = NULL;
+ gint _tmp0_ = 0;
+ SpitDataImportsService** _tmp1_ = NULL;
+ gint services_length1 = 0;
+ gint _services_size_ = 0;
+ SpitDataImportsService** _tmp2_ = NULL;
+ gint _tmp2__length1 = 0;
+#line 399 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_return_if_fail (SPIT_DATA_IMPORTS_IS_WELCOME_IMPORT_META_HOST (self));
+#line 400 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp1_ = spit_data_imports_load_all_services (&_tmp0_);
+#line 400 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ services = _tmp1_;
+#line 400 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ services_length1 = _tmp0_;
+#line 400 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _services_size_ = services_length1;
+#line 401 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp2_ = services;
+#line 401 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp2__length1 = services_length1;
+#line 2870 "DataImportsPluginHost.c"
+ {
+ SpitDataImportsService** service_collection = NULL;
+ gint service_collection_length1 = 0;
+ gint _service_collection_size_ = 0;
+ gint service_it = 0;
+#line 401 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ service_collection = _tmp2_;
+#line 401 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ service_collection_length1 = _tmp2__length1;
+#line 401 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ for (service_it = 0; service_it < _tmp2__length1; service_it = service_it + 1) {
+#line 2882 "DataImportsPluginHost.c"
+ SpitDataImportsService* _tmp3_ = NULL;
+ SpitDataImportsService* service = NULL;
+#line 401 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp3_ = _g_object_ref0 (service_collection[service_it]);
+#line 401 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ service = _tmp3_;
+#line 2889 "DataImportsPluginHost.c"
+ {
+ SpitDataImportsWelcomeDataImportsHost* host = NULL;
+ SpitDataImportsService* _tmp4_ = NULL;
+ SpitDataImportsWelcomeDataImportsHost* _tmp5_ = NULL;
+ SpitDataImportsWelcomeDataImportsHost* _tmp6_ = NULL;
+#line 402 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp4_ = service;
+#line 402 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp5_ = spit_data_imports_welcome_data_imports_host_new (_tmp4_, self);
+#line 402 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ host = _tmp5_;
+#line 403 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp6_ = host;
+#line 403 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ spit_data_imports_plugin_host_start_importing (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost));
+#line 401 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_object_unref0 (host);
+#line 401 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_object_unref0 (service);
+#line 2909 "DataImportsPluginHost.c"
+ }
+ }
+ }
+#line 399 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ services = (_vala_array_free (services, services_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 2915 "DataImportsPluginHost.c"
+}
+
+
+void spit_data_imports_welcome_import_meta_host_finalize_import (SpitDataImportsWelcomeImportMetaHost* self, SpitDataImportsWelcomeDataImportsHost* host) {
+ SpitDataImportsWelcomeDataImportsHost* _tmp0_ = NULL;
+#line 407 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_return_if_fail (SPIT_DATA_IMPORTS_IS_WELCOME_IMPORT_META_HOST (self));
+#line 407 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_return_if_fail (SPIT_DATA_IMPORTS_IS_WELCOME_DATA_IMPORTS_HOST (host));
+#line 408 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp0_ = host;
+#line 408 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ spit_data_imports_plugin_host_stop_importing (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost));
+#line 2929 "DataImportsPluginHost.c"
+}
+
+
+void spit_data_imports_welcome_import_meta_host_install_service_entry (SpitDataImportsWelcomeImportMetaHost* self, WelcomeServiceEntry* entry) {
+ WelcomeServiceEntry* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ WelcomeDialog* _tmp5_ = NULL;
+ WelcomeServiceEntry* _tmp6_ = NULL;
+#line 411 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_return_if_fail (SPIT_DATA_IMPORTS_IS_WELCOME_IMPORT_META_HOST (self));
+#line 411 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_return_if_fail (IS_WELCOME_SERVICE_ENTRY (entry));
+#line 412 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp0_ = entry;
+#line 412 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp1_ = welcome_service_entry_get_service_name (_tmp0_);
+#line 412 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp2_ = _tmp1_;
+#line 412 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp3_ = g_strdup_printf ("WelcomeImportMetaHost: Installing service entry for %s", _tmp2_);
+#line 412 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp4_ = _tmp3_;
+#line 412 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_debug ("DataImportsPluginHost.vala:412: %s", _tmp4_);
+#line 412 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_free0 (_tmp4_);
+#line 412 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_free0 (_tmp2_);
+#line 413 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp5_ = self->priv->dialog;
+#line 413 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp6_ = entry;
+#line 413 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ welcome_dialog_install_service_entry (_tmp5_, _tmp6_);
+#line 2967 "DataImportsPluginHost.c"
+}
+
+
+static void spit_data_imports_welcome_import_meta_host_class_init (SpitDataImportsWelcomeImportMetaHostClass * klass) {
+#line 392 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ spit_data_imports_welcome_import_meta_host_parent_class = g_type_class_peek_parent (klass);
+#line 392 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_type_class_add_private (klass, sizeof (SpitDataImportsWelcomeImportMetaHostPrivate));
+#line 392 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ G_OBJECT_CLASS (klass)->finalize = spit_data_imports_welcome_import_meta_host_finalize;
+#line 2978 "DataImportsPluginHost.c"
+}
+
+
+static void spit_data_imports_welcome_import_meta_host_instance_init (SpitDataImportsWelcomeImportMetaHost * self) {
+#line 392 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self->priv = SPIT_DATA_IMPORTS_WELCOME_IMPORT_META_HOST_GET_PRIVATE (self);
+#line 2985 "DataImportsPluginHost.c"
+}
+
+
+static void spit_data_imports_welcome_import_meta_host_finalize (GObject* obj) {
+ SpitDataImportsWelcomeImportMetaHost * self;
+#line 392 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_META_HOST, SpitDataImportsWelcomeImportMetaHost);
+#line 393 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_object_unref0 (self->priv->dialog);
+#line 392 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ G_OBJECT_CLASS (spit_data_imports_welcome_import_meta_host_parent_class)->finalize (obj);
+#line 2997 "DataImportsPluginHost.c"
+}
+
+
+GType spit_data_imports_welcome_import_meta_host_get_type (void) {
+ static volatile gsize spit_data_imports_welcome_import_meta_host_type_id__volatile = 0;
+ if (g_once_init_enter (&spit_data_imports_welcome_import_meta_host_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (SpitDataImportsWelcomeImportMetaHostClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) spit_data_imports_welcome_import_meta_host_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SpitDataImportsWelcomeImportMetaHost), 0, (GInstanceInitFunc) spit_data_imports_welcome_import_meta_host_instance_init, NULL };
+ GType spit_data_imports_welcome_import_meta_host_type_id;
+ spit_data_imports_welcome_import_meta_host_type_id = g_type_register_static (G_TYPE_OBJECT, "SpitDataImportsWelcomeImportMetaHost", &g_define_type_info, 0);
+ g_once_init_leave (&spit_data_imports_welcome_import_meta_host_type_id__volatile, spit_data_imports_welcome_import_meta_host_type_id);
+ }
+ return spit_data_imports_welcome_import_meta_host_type_id__volatile;
+}
+
+
+SpitDataImportsService** spit_data_imports_load_all_services (int* result_length1) {
+ SpitDataImportsService** result = NULL;
+ gint _tmp0_ = 0;
+ SpitDataImportsService** _tmp1_ = NULL;
+ SpitDataImportsService** _tmp2_ = NULL;
+ gint _tmp2__length1 = 0;
+#line 418 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp1_ = spit_data_imports_load_services (TRUE, &_tmp0_);
+#line 418 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp2_ = _tmp1_;
+#line 418 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp2__length1 = _tmp0_;
+#line 418 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ if (result_length1) {
+#line 418 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ *result_length1 = _tmp2__length1;
+#line 3029 "DataImportsPluginHost.c"
+ }
+#line 418 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ result = _tmp2_;
+#line 418 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ return result;
+#line 3035 "DataImportsPluginHost.c"
+}
+
+
+static void _vala_array_add151 (SpitDataImportsService*** array, int* length, int* size, SpitDataImportsService* value) {
+#line 447 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ if ((*length) == (*size)) {
+#line 447 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 447 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ *array = g_renew (SpitDataImportsService*, *array, (*size) + 1);
+#line 3046 "DataImportsPluginHost.c"
+ }
+#line 447 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ (*array)[(*length)++] = value;
+#line 447 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ (*array)[*length] = NULL;
+#line 3052 "DataImportsPluginHost.c"
+}
+
+
+static gint __lambda21_ (void* a, void* b) {
+ gint result = 0;
+ void* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ void* _tmp2_ = NULL;
+ const gchar* _tmp3_ = NULL;
+ gint _tmp4_ = 0;
+#line 453 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp0_ = a;
+#line 453 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp1_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (*((SpitDataImportsService**) _tmp0_), SPIT_TYPE_PLUGGABLE, SpitPluggable));
+#line 453 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp2_ = b;
+#line 453 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp3_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (*((SpitDataImportsService**) _tmp2_), SPIT_TYPE_PLUGGABLE, SpitPluggable));
+#line 453 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp4_ = utf8_cs_compare (_tmp1_, _tmp3_);
+#line 453 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ result = _tmp4_;
+#line 453 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ return result;
+#line 3077 "DataImportsPluginHost.c"
+}
+
+
+static gint ___lambda21____compar_fn_t (void* key1, void* key2) {
+ gint result;
+ result = __lambda21_ (key1, key2);
+#line 452 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ return result;
+#line 3086 "DataImportsPluginHost.c"
+}
+
+
+SpitDataImportsService** spit_data_imports_load_services (gboolean load_all, int* result_length1) {
+ SpitDataImportsService** result = NULL;
+ SpitDataImportsService** loaded_services = NULL;
+ SpitDataImportsService** _tmp0_ = NULL;
+ gint loaded_services_length1 = 0;
+ gint _loaded_services_size_ = 0;
+ GeeCollection* pluggables = NULL;
+ gboolean _tmp1_ = FALSE;
+ GeeCollection* _tmp2_ = NULL;
+ GeeCollection* _tmp3_ = NULL;
+ gint _tmp4_ = 0;
+ gint _tmp5_ = 0;
+ SpitDataImportsService** _tmp26_ = NULL;
+ gint _tmp26__length1 = 0;
+ SpitDataImportsService** _tmp27_ = NULL;
+ gint _tmp27__length1 = 0;
+ SpitDataImportsService** _tmp28_ = NULL;
+ gint _tmp28__length1 = 0;
+#line 422 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp0_ = g_new0 (SpitDataImportsService*, 0 + 1);
+#line 422 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ loaded_services = _tmp0_;
+#line 422 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ loaded_services_length1 = 0;
+#line 422 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _loaded_services_size_ = loaded_services_length1;
+#line 425 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp1_ = load_all;
+#line 425 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp2_ = plugins_get_pluggables_for_type (SPIT_DATA_IMPORTS_TYPE_SERVICE, NULL, NULL, NULL, _tmp1_);
+#line 425 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ pluggables = _tmp2_;
+#line 429 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp3_ = pluggables;
+#line 429 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp4_ = gee_collection_get_size (_tmp3_);
+#line 429 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp5_ = _tmp4_;
+#line 429 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_debug ("DataImportsPluginHost.vala:429: DataImportsDialog: discovered %d plugg" \
+"able data import services.", _tmp5_);
+#line 3130 "DataImportsPluginHost.c"
+ {
+ GeeIterator* _pluggable_it = NULL;
+ GeeCollection* _tmp6_ = NULL;
+ GeeIterator* _tmp7_ = NULL;
+#line 431 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp6_ = pluggables;
+#line 431 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp7_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ITERABLE, GeeIterable));
+#line 431 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _pluggable_it = _tmp7_;
+#line 431 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ while (TRUE) {
+#line 3143 "DataImportsPluginHost.c"
+ GeeIterator* _tmp8_ = NULL;
+ gboolean _tmp9_ = FALSE;
+ SpitPluggable* pluggable = NULL;
+ GeeIterator* _tmp10_ = NULL;
+ gpointer _tmp11_ = NULL;
+ gint pluggable_interface = 0;
+ SpitPluggable* _tmp12_ = NULL;
+ gint _tmp13_ = 0;
+ gint _tmp14_ = 0;
+ SpitDataImportsService* service = NULL;
+ SpitPluggable* _tmp19_ = NULL;
+ SpitDataImportsService* _tmp20_ = NULL;
+ SpitDataImportsService* _tmp21_ = NULL;
+ const gchar* _tmp22_ = NULL;
+ SpitDataImportsService** _tmp23_ = NULL;
+ gint _tmp23__length1 = 0;
+ SpitDataImportsService* _tmp24_ = NULL;
+ SpitDataImportsService* _tmp25_ = NULL;
+#line 431 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp8_ = _pluggable_it;
+#line 431 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp9_ = gee_iterator_next (_tmp8_);
+#line 431 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ if (!_tmp9_) {
+#line 431 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ break;
+#line 3170 "DataImportsPluginHost.c"
+ }
+#line 431 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp10_ = _pluggable_it;
+#line 431 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp11_ = gee_iterator_get (_tmp10_);
+#line 431 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ pluggable = (SpitPluggable*) _tmp11_;
+#line 432 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp12_ = pluggable;
+#line 432 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp13_ = spit_pluggable_get_pluggable_interface (_tmp12_, SPIT_DATA_IMPORTS_CURRENT_INTERFACE, SPIT_DATA_IMPORTS_CURRENT_INTERFACE);
+#line 432 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ pluggable_interface = _tmp13_;
+#line 434 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp14_ = pluggable_interface;
+#line 434 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ if (_tmp14_ != SPIT_DATA_IMPORTS_CURRENT_INTERFACE) {
+#line 3188 "DataImportsPluginHost.c"
+ SpitPluggable* _tmp15_ = NULL;
+ gchar* _tmp16_ = NULL;
+ gchar* _tmp17_ = NULL;
+ gint _tmp18_ = 0;
+#line 435 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp15_ = pluggable;
+#line 435 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp16_ = plugins_get_pluggable_module_id (_tmp15_);
+#line 435 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp17_ = _tmp16_;
+#line 435 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp18_ = pluggable_interface;
+#line 435 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_warning ("DataImportsPluginHost.vala:435: Unable to load data import plugin %s: " \
+"reported interface %d.", _tmp17_, _tmp18_);
+#line 435 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_free0 (_tmp17_);
+#line 438 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_object_unref0 (pluggable);
+#line 438 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ continue;
+#line 3209 "DataImportsPluginHost.c"
+ }
+#line 441 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp19_ = pluggable;
+#line 441 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp20_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, SPIT_DATA_IMPORTS_TYPE_SERVICE, SpitDataImportsService));
+#line 441 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ service = _tmp20_;
+#line 444 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp21_ = service;
+#line 444 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp22_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
+#line 444 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_debug ("DataImportsPluginHost.vala:444: DataImportsDialog: discovered pluggabl" \
+"e data import service '%s'.", _tmp22_);
+#line 447 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp23_ = loaded_services;
+#line 447 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp23__length1 = loaded_services_length1;
+#line 447 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp24_ = service;
+#line 447 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp25_ = _g_object_ref0 (_tmp24_);
+#line 447 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _vala_array_add151 (&loaded_services, &loaded_services_length1, &_loaded_services_size_, _tmp25_);
+#line 431 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_object_unref0 (service);
+#line 431 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_object_unref0 (pluggable);
+#line 3237 "DataImportsPluginHost.c"
+ }
+#line 431 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_object_unref0 (_pluggable_it);
+#line 3241 "DataImportsPluginHost.c"
+ }
+#line 452 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp26_ = loaded_services;
+#line 452 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp26__length1 = loaded_services_length1;
+#line 452 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp27_ = loaded_services;
+#line 452 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp27__length1 = loaded_services_length1;
+#line 452 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ qsort (_tmp26_, (gsize) _tmp27__length1, (gsize) sizeof (SpitDataImportsService*), ___lambda21____compar_fn_t);
+#line 457 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp28_ = loaded_services;
+#line 457 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp28__length1 = loaded_services_length1;
+#line 457 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ if (result_length1) {
+#line 457 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ *result_length1 = _tmp28__length1;
+#line 3261 "DataImportsPluginHost.c"
+ }
+#line 457 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ result = _tmp28_;
+#line 457 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_object_unref0 (pluggables);
+#line 457 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ return result;
+#line 3269 "DataImportsPluginHost.c"
+}
+
+
+void spit_data_imports_data_import_reporter (ImportManifest* manifest, BatchImportRoll* import_roll) {
+ ImportManifest* _tmp0_ = NULL;
+ GeeList* _tmp1_ = NULL;
+ gint _tmp2_ = 0;
+ gint _tmp3_ = 0;
+#line 462 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_return_if_fail (IS_IMPORT_MANIFEST (manifest));
+#line 462 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ g_return_if_fail (IS_BATCH_IMPORT_ROLL (import_roll));
+#line 463 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp0_ = manifest;
+#line 463 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp1_ = _tmp0_->all;
+#line 463 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp2_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection));
+#line 463 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp3_ = _tmp2_;
+#line 463 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ if (_tmp3_ > 0) {
+#line 3292 "DataImportsPluginHost.c"
+ ImportManifest* _tmp4_ = NULL;
+#line 464 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp4_ = spit_data_imports_meta_manifest;
+#line 464 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ if (_tmp4_ == NULL) {
+#line 3298 "DataImportsPluginHost.c"
+ ImportManifest* _tmp5_ = NULL;
+#line 465 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp5_ = import_manifest_new (NULL, NULL);
+#line 465 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _import_manifest_unref0 (spit_data_imports_meta_manifest);
+#line 465 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ spit_data_imports_meta_manifest = _tmp5_;
+#line 3306 "DataImportsPluginHost.c"
+ }
+ {
+ GeeList* _result_list = NULL;
+ ImportManifest* _tmp6_ = NULL;
+ GeeList* _tmp7_ = NULL;
+ GeeList* _tmp8_ = NULL;
+ gint _result_size = 0;
+ GeeList* _tmp9_ = NULL;
+ gint _tmp10_ = 0;
+ gint _tmp11_ = 0;
+ gint _result_index = 0;
+#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp6_ = manifest;
+#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp7_ = _tmp6_->all;
+#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp8_ = _g_object_ref0 (_tmp7_);
+#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _result_list = _tmp8_;
+#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp9_ = _result_list;
+#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp10_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_COLLECTION, GeeCollection));
+#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp11_ = _tmp10_;
+#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _result_size = _tmp11_;
+#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _result_index = -1;
+#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ while (TRUE) {
+#line 3338 "DataImportsPluginHost.c"
+ gint _tmp12_ = 0;
+ gint _tmp13_ = 0;
+ gint _tmp14_ = 0;
+ BatchImportResult* _result_ = NULL;
+ GeeList* _tmp15_ = NULL;
+ gint _tmp16_ = 0;
+ gpointer _tmp17_ = NULL;
+ ImportManifest* _tmp18_ = NULL;
+ BatchImportResult* _tmp19_ = NULL;
+#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp12_ = _result_index;
+#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _result_index = _tmp12_ + 1;
+#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp13_ = _result_index;
+#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp14_ = _result_size;
+#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ if (!(_tmp13_ < _tmp14_)) {
+#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ break;
+#line 3360 "DataImportsPluginHost.c"
+ }
+#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp15_ = _result_list;
+#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp16_ = _result_index;
+#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp17_ = gee_list_get (_tmp15_, _tmp16_);
+#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _result_ = (BatchImportResult*) _tmp17_;
+#line 467 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp18_ = spit_data_imports_meta_manifest;
+#line 467 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp19_ = _result_;
+#line 467 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ import_manifest_add_result (_tmp18_, _tmp19_);
+#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _batch_import_result_unref0 (_result_);
+#line 3378 "DataImportsPluginHost.c"
+ }
+#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _g_object_unref0 (_result_list);
+#line 3382 "DataImportsPluginHost.c"
+ }
+ } else {
+ ImportManifest* _tmp20_ = NULL;
+#line 470 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ data_imports_ui_data_imports_dialog_terminate_instance ();
+#line 471 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp20_ = spit_data_imports_meta_manifest;
+#line 471 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ import_ui_report_manifest (_tmp20_, TRUE, NULL);
+#line 472 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _import_manifest_unref0 (spit_data_imports_meta_manifest);
+#line 472 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ spit_data_imports_meta_manifest = NULL;
+#line 3396 "DataImportsPluginHost.c"
+ }
+}
+
+
+gint64 spit_data_imports_import_job_comparator (void* a, void* b) {
+ gint64 result = 0LL;
+ void* _tmp0_ = NULL;
+ time_t _tmp1_ = 0;
+ void* _tmp2_ = NULL;
+ time_t _tmp3_ = 0;
+#line 477 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp0_ = a;
+#line 477 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp1_ = spit_data_imports_data_import_job_get_exposure_time (G_TYPE_CHECK_INSTANCE_CAST ((SpitDataImportsDataImportJob*) _tmp0_, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJob));
+#line 477 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp2_ = b;
+#line 477 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ _tmp3_ = spit_data_imports_data_import_job_get_exposure_time (G_TYPE_CHECK_INSTANCE_CAST ((SpitDataImportsDataImportJob*) _tmp2_, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJob));
+#line 477 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ result = (gint64) (_tmp1_ - _tmp3_);
+#line 477 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
+ return result;
+#line 3419 "DataImportsPluginHost.c"
+}
+
+
+static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) {
+ if ((array != NULL) && (destroy_func != NULL)) {
+ int i;
+ for (i = 0; i < array_length; i = i + 1) {
+ if (((gpointer*) array)[i] != NULL) {
+ destroy_func (((gpointer*) array)[i]);
+ }
+ }
+ }
+}
+
+
+static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) {
+ _vala_array_destroy (array, array_length, destroy_func);
+ g_free (array);
+}
+
+
+
diff --git a/src/data_imports/DataImportsUI.c b/src/data_imports/DataImportsUI.c
new file mode 100644
index 0000000..ac73508
--- /dev/null
+++ b/src/data_imports/DataImportsUI.c
@@ -0,0 +1,2693 @@
+/* DataImportsUI.c generated by valac 0.32.1, the Vala compiler
+ * generated from DataImportsUI.vala, do not modify */
+
+/* Copyright 2016 Software Freedom Conservancy Inc.
+ *
+ * This software is licensed under the GNU Lesser General Public License
+ * (version 2.1 or later). See the COPYING file in this distribution.
+ */
+
+#include <glib.h>
+#include <glib-object.h>
+#include <stdlib.h>
+#include <string.h>
+#include <glib/gi18n-lib.h>
+#include "shotwell-plugin-dev-1.0.h"
+#include <gtk/gtk.h>
+#include <gio/gio.h>
+#include <float.h>
+#include <math.h>
+#include <gdk/gdk.h>
+
+
+#define DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE (data_imports_ui_concrete_dialog_pane_get_type ())
+#define DATA_IMPORTS_UI_CONCRETE_DIALOG_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE, DataImportsUIConcreteDialogPane))
+#define DATA_IMPORTS_UI_CONCRETE_DIALOG_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE, DataImportsUIConcreteDialogPaneClass))
+#define DATA_IMPORTS_UI_IS_CONCRETE_DIALOG_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE))
+#define DATA_IMPORTS_UI_IS_CONCRETE_DIALOG_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE))
+#define DATA_IMPORTS_UI_CONCRETE_DIALOG_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE, DataImportsUIConcreteDialogPaneClass))
+
+typedef struct _DataImportsUIConcreteDialogPane DataImportsUIConcreteDialogPane;
+typedef struct _DataImportsUIConcreteDialogPaneClass DataImportsUIConcreteDialogPaneClass;
+typedef struct _DataImportsUIConcreteDialogPanePrivate DataImportsUIConcreteDialogPanePrivate;
+#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
+
+#define DATA_IMPORTS_UI_TYPE_STATIC_MESSAGE_PANE (data_imports_ui_static_message_pane_get_type ())
+#define DATA_IMPORTS_UI_STATIC_MESSAGE_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_UI_TYPE_STATIC_MESSAGE_PANE, DataImportsUIStaticMessagePane))
+#define DATA_IMPORTS_UI_STATIC_MESSAGE_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_UI_TYPE_STATIC_MESSAGE_PANE, DataImportsUIStaticMessagePaneClass))
+#define DATA_IMPORTS_UI_IS_STATIC_MESSAGE_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_UI_TYPE_STATIC_MESSAGE_PANE))
+#define DATA_IMPORTS_UI_IS_STATIC_MESSAGE_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_UI_TYPE_STATIC_MESSAGE_PANE))
+#define DATA_IMPORTS_UI_STATIC_MESSAGE_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_UI_TYPE_STATIC_MESSAGE_PANE, DataImportsUIStaticMessagePaneClass))
+
+typedef struct _DataImportsUIStaticMessagePane DataImportsUIStaticMessagePane;
+typedef struct _DataImportsUIStaticMessagePaneClass DataImportsUIStaticMessagePaneClass;
+typedef struct _DataImportsUIStaticMessagePanePrivate DataImportsUIStaticMessagePanePrivate;
+
+#define DATA_IMPORTS_UI_TYPE_LIBRARY_SELECTION_PANE (data_imports_ui_library_selection_pane_get_type ())
+#define DATA_IMPORTS_UI_LIBRARY_SELECTION_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_UI_TYPE_LIBRARY_SELECTION_PANE, DataImportsUILibrarySelectionPane))
+#define DATA_IMPORTS_UI_LIBRARY_SELECTION_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_UI_TYPE_LIBRARY_SELECTION_PANE, DataImportsUILibrarySelectionPaneClass))
+#define DATA_IMPORTS_UI_IS_LIBRARY_SELECTION_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_UI_TYPE_LIBRARY_SELECTION_PANE))
+#define DATA_IMPORTS_UI_IS_LIBRARY_SELECTION_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_UI_TYPE_LIBRARY_SELECTION_PANE))
+#define DATA_IMPORTS_UI_LIBRARY_SELECTION_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_UI_TYPE_LIBRARY_SELECTION_PANE, DataImportsUILibrarySelectionPaneClass))
+
+typedef struct _DataImportsUILibrarySelectionPane DataImportsUILibrarySelectionPane;
+typedef struct _DataImportsUILibrarySelectionPaneClass DataImportsUILibrarySelectionPaneClass;
+typedef struct _DataImportsUILibrarySelectionPanePrivate DataImportsUILibrarySelectionPanePrivate;
+#define _g_free0(var) (var = (g_free (var), NULL))
+typedef struct _Block10Data Block10Data;
+typedef struct _Block11Data Block11Data;
+
+#define DATA_IMPORTS_UI_TYPE_PROGRESS_PANE (data_imports_ui_progress_pane_get_type ())
+#define DATA_IMPORTS_UI_PROGRESS_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_UI_TYPE_PROGRESS_PANE, DataImportsUIProgressPane))
+#define DATA_IMPORTS_UI_PROGRESS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_UI_TYPE_PROGRESS_PANE, DataImportsUIProgressPaneClass))
+#define DATA_IMPORTS_UI_IS_PROGRESS_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_UI_TYPE_PROGRESS_PANE))
+#define DATA_IMPORTS_UI_IS_PROGRESS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_UI_TYPE_PROGRESS_PANE))
+#define DATA_IMPORTS_UI_PROGRESS_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_UI_TYPE_PROGRESS_PANE, DataImportsUIProgressPaneClass))
+
+typedef struct _DataImportsUIProgressPane DataImportsUIProgressPane;
+typedef struct _DataImportsUIProgressPaneClass DataImportsUIProgressPaneClass;
+typedef struct _DataImportsUIProgressPanePrivate DataImportsUIProgressPanePrivate;
+
+#define DATA_IMPORTS_UI_TYPE_DATA_IMPORTS_DIALOG (data_imports_ui_data_imports_dialog_get_type ())
+#define DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_UI_TYPE_DATA_IMPORTS_DIALOG, DataImportsUIDataImportsDialog))
+#define DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_UI_TYPE_DATA_IMPORTS_DIALOG, DataImportsUIDataImportsDialogClass))
+#define DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_UI_TYPE_DATA_IMPORTS_DIALOG))
+#define DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_UI_TYPE_DATA_IMPORTS_DIALOG))
+#define DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_UI_TYPE_DATA_IMPORTS_DIALOG, DataImportsUIDataImportsDialogClass))
+
+typedef struct _DataImportsUIDataImportsDialog DataImportsUIDataImportsDialog;
+typedef struct _DataImportsUIDataImportsDialogClass DataImportsUIDataImportsDialogClass;
+typedef struct _DataImportsUIDataImportsDialogPrivate DataImportsUIDataImportsDialogPrivate;
+
+#define PLUGINS_TYPE_STANDARD_HOST_INTERFACE (plugins_standard_host_interface_get_type ())
+#define PLUGINS_STANDARD_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterface))
+#define PLUGINS_STANDARD_HOST_INTERFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterfaceClass))
+#define PLUGINS_IS_STANDARD_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PLUGINS_TYPE_STANDARD_HOST_INTERFACE))
+#define PLUGINS_IS_STANDARD_HOST_INTERFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PLUGINS_TYPE_STANDARD_HOST_INTERFACE))
+#define PLUGINS_STANDARD_HOST_INTERFACE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterfaceClass))
+
+typedef struct _PluginsStandardHostInterface PluginsStandardHostInterface;
+typedef struct _PluginsStandardHostInterfaceClass PluginsStandardHostInterfaceClass;
+
+#define SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST (spit_data_imports_concrete_data_imports_host_get_type ())
+#define SPIT_DATA_IMPORTS_CONCRETE_DATA_IMPORTS_HOST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHost))
+#define SPIT_DATA_IMPORTS_CONCRETE_DATA_IMPORTS_HOST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHostClass))
+#define SPIT_DATA_IMPORTS_IS_CONCRETE_DATA_IMPORTS_HOST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST))
+#define SPIT_DATA_IMPORTS_IS_CONCRETE_DATA_IMPORTS_HOST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST))
+#define SPIT_DATA_IMPORTS_CONCRETE_DATA_IMPORTS_HOST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHostClass))
+
+typedef struct _SpitDataImportsConcreteDataImportsHost SpitDataImportsConcreteDataImportsHost;
+typedef struct _SpitDataImportsConcreteDataImportsHostClass SpitDataImportsConcreteDataImportsHostClass;
+
+#define TYPE_CONFIGURATION_FACADE (configuration_facade_get_type ())
+#define CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacade))
+#define CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass))
+#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE))
+#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE))
+#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass))
+
+typedef struct _ConfigurationFacade ConfigurationFacade;
+typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass;
+
+#define CONFIG_TYPE_FACADE (config_facade_get_type ())
+#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade))
+#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass))
+#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE))
+#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE))
+#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass))
+
+typedef struct _ConfigFacade ConfigFacade;
+typedef struct _ConfigFacadeClass ConfigFacadeClass;
+#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
+#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
+#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
+#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
+
+struct _DataImportsUIConcreteDialogPane {
+ GObject parent_instance;
+ DataImportsUIConcreteDialogPanePrivate * priv;
+};
+
+struct _DataImportsUIConcreteDialogPaneClass {
+ GObjectClass parent_class;
+};
+
+struct _DataImportsUIConcreteDialogPanePrivate {
+ GtkBox* pane_widget;
+};
+
+struct _DataImportsUIStaticMessagePane {
+ DataImportsUIConcreteDialogPane parent_instance;
+ DataImportsUIStaticMessagePanePrivate * priv;
+};
+
+struct _DataImportsUIStaticMessagePaneClass {
+ DataImportsUIConcreteDialogPaneClass parent_class;
+};
+
+struct _DataImportsUILibrarySelectionPane {
+ DataImportsUIConcreteDialogPane parent_instance;
+ DataImportsUILibrarySelectionPanePrivate * priv;
+};
+
+struct _DataImportsUILibrarySelectionPaneClass {
+ DataImportsUIConcreteDialogPaneClass parent_class;
+};
+
+struct _DataImportsUILibrarySelectionPanePrivate {
+ SpitDataImportsPluginHost* host;
+ SpitDataImportsImportableLibrary* selected_library;
+ GFile* selected_file;
+ GtkButton* import_button;
+ GtkRadioButton* file_radio;
+};
+
+struct _Block10Data {
+ int _ref_count_;
+ DataImportsUILibrarySelectionPane* self;
+ GtkFileChooserButton* file_chooser;
+};
+
+struct _Block11Data {
+ int _ref_count_;
+ DataImportsUILibrarySelectionPane* self;
+ GtkRadioButton* button;
+ SpitDataImportsImportableLibrary* library;
+};
+
+struct _DataImportsUIProgressPane {
+ DataImportsUIConcreteDialogPane parent_instance;
+ DataImportsUIProgressPanePrivate * priv;
+};
+
+struct _DataImportsUIProgressPaneClass {
+ DataImportsUIConcreteDialogPaneClass parent_class;
+};
+
+struct _DataImportsUIProgressPanePrivate {
+ GtkLabel* message_label;
+ GtkLabel* progress_label;
+ GtkProgressBar* progress_bar;
+};
+
+struct _DataImportsUIDataImportsDialog {
+ GtkDialog parent_instance;
+ DataImportsUIDataImportsDialogPrivate * priv;
+};
+
+struct _DataImportsUIDataImportsDialogClass {
+ GtkDialogClass parent_class;
+};
+
+struct _DataImportsUIDataImportsDialogPrivate {
+ GtkComboBoxText* service_selector_box;
+ GtkBox* central_area_layouter;
+ GtkButton* close_cancel_button;
+ SpitDataImportsDialogPane* active_pane;
+ SpitDataImportsConcreteDataImportsHost* host;
+};
+
+
+static gpointer data_imports_ui_concrete_dialog_pane_parent_class = NULL;
+static SpitDataImportsDialogPaneIface* data_imports_ui_concrete_dialog_pane_spit_data_imports_dialog_pane_parent_iface = NULL;
+static gpointer data_imports_ui_static_message_pane_parent_class = NULL;
+static gpointer data_imports_ui_library_selection_pane_parent_class = NULL;
+static gpointer data_imports_ui_progress_pane_parent_class = NULL;
+static gpointer data_imports_ui_data_imports_dialog_parent_class = NULL;
+static DataImportsUIDataImportsDialog* data_imports_ui_data_imports_dialog_instance;
+static DataImportsUIDataImportsDialog* data_imports_ui_data_imports_dialog_instance = NULL;
+
+#define DATA_IMPORTS_UI_NO_PLUGINS_ENABLED_MESSAGE _ ("You do not have any data imports plugins enabled.\n" \
+"\n" \
+"In order to use the Import From Application functionality, you need to" \
+" have at least one data imports plugin enabled. Plugins can be enabled" \
+" in the Preferences dialog.")
+GType data_imports_ui_concrete_dialog_pane_get_type (void) G_GNUC_CONST;
+#define DATA_IMPORTS_UI_CONCRETE_DIALOG_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE, DataImportsUIConcreteDialogPanePrivate))
+enum {
+ DATA_IMPORTS_UI_CONCRETE_DIALOG_PANE_DUMMY_PROPERTY
+};
+DataImportsUIConcreteDialogPane* data_imports_ui_concrete_dialog_pane_new (void);
+DataImportsUIConcreteDialogPane* data_imports_ui_concrete_dialog_pane_construct (GType object_type);
+static GtkWidget* data_imports_ui_concrete_dialog_pane_real_get_widget (SpitDataImportsDialogPane* base);
+static SpitDataImportsDialogPaneGeometryOptions data_imports_ui_concrete_dialog_pane_real_get_preferred_geometry (SpitDataImportsDialogPane* base);
+static void data_imports_ui_concrete_dialog_pane_real_on_pane_installed (SpitDataImportsDialogPane* base);
+static void data_imports_ui_concrete_dialog_pane_real_on_pane_uninstalled (SpitDataImportsDialogPane* base);
+static void data_imports_ui_concrete_dialog_pane_finalize (GObject* obj);
+GType data_imports_ui_static_message_pane_get_type (void) G_GNUC_CONST;
+enum {
+ DATA_IMPORTS_UI_STATIC_MESSAGE_PANE_DUMMY_PROPERTY
+};
+DataImportsUIStaticMessagePane* data_imports_ui_static_message_pane_new (const gchar* message_string);
+DataImportsUIStaticMessagePane* data_imports_ui_static_message_pane_construct (GType object_type, const gchar* message_string);
+DataImportsUIStaticMessagePane* data_imports_ui_static_message_pane_new_with_pango (const gchar* msg);
+DataImportsUIStaticMessagePane* data_imports_ui_static_message_pane_construct_with_pango (GType object_type, const gchar* msg);
+GType data_imports_ui_library_selection_pane_get_type (void) G_GNUC_CONST;
+#define DATA_IMPORTS_UI_LIBRARY_SELECTION_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), DATA_IMPORTS_UI_TYPE_LIBRARY_SELECTION_PANE, DataImportsUILibrarySelectionPanePrivate))
+enum {
+ DATA_IMPORTS_UI_LIBRARY_SELECTION_PANE_DUMMY_PROPERTY
+};
+DataImportsUILibrarySelectionPane* data_imports_ui_library_selection_pane_new (SpitDataImportsPluginHost* host, const gchar* welcome_message, SpitDataImportsImportableLibrary** discovered_libraries, int discovered_libraries_length1, const gchar* file_select_label);
+DataImportsUILibrarySelectionPane* data_imports_ui_library_selection_pane_construct (GType object_type, SpitDataImportsPluginHost* host, const gchar* welcome_message, SpitDataImportsImportableLibrary** discovered_libraries, int discovered_libraries_length1, const gchar* file_select_label);
+static void data_imports_ui_library_selection_pane_on_file_selected (DataImportsUILibrarySelectionPane* self, GFile* file);
+static GtkRadioButton* data_imports_ui_library_selection_pane_create_radio_button (DataImportsUILibrarySelectionPane* self, GtkBox* box, GtkRadioButton* group, SpitDataImportsImportableLibrary* library, const gchar* label, gint margin_left, gint margin_right);
+static Block10Data* block10_data_ref (Block10Data* _data10_);
+static void block10_data_unref (void * _userdata_);
+static void ___lambda19_ (Block10Data* _data10_);
+static void data_imports_ui_library_selection_pane_set_import_button_sensitivity (DataImportsUILibrarySelectionPane* self);
+static void ____lambda19__gtk_file_chooser_selection_changed (GtkFileChooser* _sender, gpointer self);
+static void __lambda20_ (DataImportsUILibrarySelectionPane* self);
+static void data_imports_ui_library_selection_pane_on_library_selected (DataImportsUILibrarySelectionPane* self, SpitDataImportsImportableLibrary* library);
+static void ___lambda20__gtk_button_clicked (GtkButton* _sender, gpointer self);
+static Block11Data* block11_data_ref (Block11Data* _data11_);
+static void block11_data_unref (void * _userdata_);
+static void __lambda18_ (Block11Data* _data11_);
+static void ___lambda18__gtk_toggle_button_toggled (GtkToggleButton* _sender, gpointer self);
+static void data_imports_ui_library_selection_pane_finalize (GObject* obj);
+GType data_imports_ui_progress_pane_get_type (void) G_GNUC_CONST;
+#define DATA_IMPORTS_UI_PROGRESS_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), DATA_IMPORTS_UI_TYPE_PROGRESS_PANE, DataImportsUIProgressPanePrivate))
+enum {
+ DATA_IMPORTS_UI_PROGRESS_PANE_DUMMY_PROPERTY
+};
+DataImportsUIProgressPane* data_imports_ui_progress_pane_new (const gchar* message);
+DataImportsUIProgressPane* data_imports_ui_progress_pane_construct (GType object_type, const gchar* message);
+void data_imports_ui_progress_pane_update_progress (DataImportsUIProgressPane* self, gdouble progress, const gchar* progress_message);
+void spin_event_loop (void);
+static void data_imports_ui_progress_pane_finalize (GObject* obj);
+GType data_imports_ui_data_imports_dialog_get_type (void) G_GNUC_CONST;
+GType plugins_standard_host_interface_get_type (void) G_GNUC_CONST;
+GType spit_data_imports_concrete_data_imports_host_get_type (void) G_GNUC_CONST;
+#define DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), DATA_IMPORTS_UI_TYPE_DATA_IMPORTS_DIALOG, DataImportsUIDataImportsDialogPrivate))
+enum {
+ DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_DUMMY_PROPERTY
+};
+#define DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_LARGE_WINDOW_WIDTH 860
+#define DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_LARGE_WINDOW_HEIGHT 688
+#define DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_COLOSSAL_WINDOW_WIDTH 1024
+#define DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_COLOSSAL_WINDOW_HEIGHT 688
+#define DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_STANDARD_WINDOW_WIDTH 600
+#define DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_STANDARD_WINDOW_HEIGHT 510
+#define DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_BORDER_REGION_WIDTH 16
+#define DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_BORDER_REGION_HEIGHT 100
+#define DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_STANDARD_CONTENT_LABEL_WIDTH 500
+#define DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_STANDARD_ACTION_BUTTON_WIDTH 128
+DataImportsUIDataImportsDialog* data_imports_ui_data_imports_dialog_new (void);
+DataImportsUIDataImportsDialog* data_imports_ui_data_imports_dialog_construct (GType object_type);
+static gboolean data_imports_ui_data_imports_dialog_on_window_close (DataImportsUIDataImportsDialog* self, GdkEventAny* evt);
+static gboolean _data_imports_ui_data_imports_dialog_on_window_close_gtk_widget_delete_event (GtkWidget* _sender, GdkEventAny* event, gpointer self);
+SpitDataImportsService** spit_data_imports_load_services (gboolean load_all, int* result_length1);
+GType configuration_facade_get_type (void) G_GNUC_CONST;
+GType config_facade_get_type (void) G_GNUC_CONST;
+ConfigFacade* config_facade_get_instance (void);
+gchar* configuration_facade_get_last_used_dataimports_service (ConfigurationFacade* self);
+static void data_imports_ui_data_imports_dialog_on_service_changed (DataImportsUIDataImportsDialog* self);
+static void _data_imports_ui_data_imports_dialog_on_service_changed_gtk_combo_box_changed (GtkComboBox* _sender, gpointer self);
+static void data_imports_ui_data_imports_dialog_on_close_cancel_clicked (DataImportsUIDataImportsDialog* self);
+static void _data_imports_ui_data_imports_dialog_on_close_cancel_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self);
+static void data_imports_ui_data_imports_dialog_set_standard_window_mode (DataImportsUIDataImportsDialog* self);
+void data_imports_ui_data_imports_dialog_install_pane (DataImportsUIDataImportsDialog* self, SpitDataImportsDialogPane* pane);
+void data_imports_ui_data_imports_dialog_set_close_button_mode (DataImportsUIDataImportsDialog* self);
+DataImportsUIDataImportsDialog* data_imports_ui_data_imports_dialog_get_or_create_instance (void);
+void data_imports_ui_data_imports_dialog_terminate_instance (void);
+static void data_imports_ui_data_imports_dialog_terminate (DataImportsUIDataImportsDialog* self);
+SpitDataImportsService** spit_data_imports_load_all_services (int* result_length1);
+void configuration_facade_set_last_used_dataimports_service (ConfigurationFacade* self, const gchar* service_name);
+SpitDataImportsConcreteDataImportsHost* spit_data_imports_concrete_data_imports_host_new (SpitDataImportsService* service, DataImportsUIDataImportsDialog* dialog);
+SpitDataImportsConcreteDataImportsHost* spit_data_imports_concrete_data_imports_host_construct (GType object_type, SpitDataImportsService* service, DataImportsUIDataImportsDialog* dialog);
+static void data_imports_ui_data_imports_dialog_set_large_window_mode (DataImportsUIDataImportsDialog* self);
+static void data_imports_ui_data_imports_dialog_set_colossal_window_mode (DataImportsUIDataImportsDialog* self);
+static void data_imports_ui_data_imports_dialog_set_free_sizable_window_mode (DataImportsUIDataImportsDialog* self);
+static void data_imports_ui_data_imports_dialog_clear_free_sizable_window_mode (DataImportsUIDataImportsDialog* self);
+SpitDataImportsDialogPane* data_imports_ui_data_imports_dialog_get_active_pane (DataImportsUIDataImportsDialog* self);
+void data_imports_ui_data_imports_dialog_set_cancel_button_mode (DataImportsUIDataImportsDialog* self);
+void data_imports_ui_data_imports_dialog_lock_service (DataImportsUIDataImportsDialog* self);
+void data_imports_ui_data_imports_dialog_unlock_service (DataImportsUIDataImportsDialog* self);
+static void data_imports_ui_data_imports_dialog_finalize (GObject* obj);
+static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
+static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);
+
+
+DataImportsUIConcreteDialogPane* data_imports_ui_concrete_dialog_pane_construct (GType object_type) {
+ DataImportsUIConcreteDialogPane * self = NULL;
+ GtkBox* _tmp0_ = NULL;
+#line 15 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ self = (DataImportsUIConcreteDialogPane*) g_object_new (object_type, NULL);
+#line 16 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp0_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 8);
+#line 16 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_object_ref_sink (_tmp0_);
+#line 16 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (self->priv->pane_widget);
+#line 16 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ self->priv->pane_widget = _tmp0_;
+#line 15 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ return self;
+#line 342 "DataImportsUI.c"
+}
+
+
+DataImportsUIConcreteDialogPane* data_imports_ui_concrete_dialog_pane_new (void) {
+#line 15 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ return data_imports_ui_concrete_dialog_pane_construct (DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE);
+#line 349 "DataImportsUI.c"
+}
+
+
+static gpointer _g_object_ref0 (gpointer self) {
+#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ return self ? g_object_ref (self) : NULL;
+#line 356 "DataImportsUI.c"
+}
+
+
+static GtkWidget* data_imports_ui_concrete_dialog_pane_real_get_widget (SpitDataImportsDialogPane* base) {
+ DataImportsUIConcreteDialogPane * self;
+ GtkWidget* result = NULL;
+ GtkBox* _tmp0_ = NULL;
+ GtkWidget* _tmp1_ = NULL;
+#line 19 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE, DataImportsUIConcreteDialogPane);
+#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp0_ = self->priv->pane_widget;
+#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget));
+#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ result = _tmp1_;
+#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ return result;
+#line 375 "DataImportsUI.c"
+}
+
+
+static SpitDataImportsDialogPaneGeometryOptions data_imports_ui_concrete_dialog_pane_real_get_preferred_geometry (SpitDataImportsDialogPane* base) {
+ DataImportsUIConcreteDialogPane * self;
+ SpitDataImportsDialogPaneGeometryOptions result = 0;
+#line 23 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE, DataImportsUIConcreteDialogPane);
+#line 24 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ result = SPIT_DATA_IMPORTS_DIALOG_PANE_GEOMETRY_OPTIONS_NONE;
+#line 24 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ return result;
+#line 388 "DataImportsUI.c"
+}
+
+
+static void data_imports_ui_concrete_dialog_pane_real_on_pane_installed (SpitDataImportsDialogPane* base) {
+ DataImportsUIConcreteDialogPane * self;
+#line 27 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE, DataImportsUIConcreteDialogPane);
+#line 396 "DataImportsUI.c"
+}
+
+
+static void data_imports_ui_concrete_dialog_pane_real_on_pane_uninstalled (SpitDataImportsDialogPane* base) {
+ DataImportsUIConcreteDialogPane * self;
+#line 30 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE, DataImportsUIConcreteDialogPane);
+#line 404 "DataImportsUI.c"
+}
+
+
+static void data_imports_ui_concrete_dialog_pane_class_init (DataImportsUIConcreteDialogPaneClass * klass) {
+#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ data_imports_ui_concrete_dialog_pane_parent_class = g_type_class_peek_parent (klass);
+#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_type_class_add_private (klass, sizeof (DataImportsUIConcreteDialogPanePrivate));
+#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ G_OBJECT_CLASS (klass)->finalize = data_imports_ui_concrete_dialog_pane_finalize;
+#line 415 "DataImportsUI.c"
+}
+
+
+static void data_imports_ui_concrete_dialog_pane_spit_data_imports_dialog_pane_interface_init (SpitDataImportsDialogPaneIface * iface) {
+#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ data_imports_ui_concrete_dialog_pane_spit_data_imports_dialog_pane_parent_iface = g_type_interface_peek_parent (iface);
+#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ iface->get_widget = (GtkWidget* (*)(SpitDataImportsDialogPane*)) data_imports_ui_concrete_dialog_pane_real_get_widget;
+#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ iface->get_preferred_geometry = (SpitDataImportsDialogPaneGeometryOptions (*)(SpitDataImportsDialogPane*)) data_imports_ui_concrete_dialog_pane_real_get_preferred_geometry;
+#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ iface->on_pane_installed = (void (*)(SpitDataImportsDialogPane*)) data_imports_ui_concrete_dialog_pane_real_on_pane_installed;
+#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ iface->on_pane_uninstalled = (void (*)(SpitDataImportsDialogPane*)) data_imports_ui_concrete_dialog_pane_real_on_pane_uninstalled;
+#line 430 "DataImportsUI.c"
+}
+
+
+static void data_imports_ui_concrete_dialog_pane_instance_init (DataImportsUIConcreteDialogPane * self) {
+#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ self->priv = DATA_IMPORTS_UI_CONCRETE_DIALOG_PANE_GET_PRIVATE (self);
+#line 437 "DataImportsUI.c"
+}
+
+
+static void data_imports_ui_concrete_dialog_pane_finalize (GObject* obj) {
+ DataImportsUIConcreteDialogPane * self;
+#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE, DataImportsUIConcreteDialogPane);
+#line 13 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (self->priv->pane_widget);
+#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ G_OBJECT_CLASS (data_imports_ui_concrete_dialog_pane_parent_class)->finalize (obj);
+#line 449 "DataImportsUI.c"
+}
+
+
+GType data_imports_ui_concrete_dialog_pane_get_type (void) {
+ static volatile gsize data_imports_ui_concrete_dialog_pane_type_id__volatile = 0;
+ if (g_once_init_enter (&data_imports_ui_concrete_dialog_pane_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (DataImportsUIConcreteDialogPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_ui_concrete_dialog_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsUIConcreteDialogPane), 0, (GInstanceInitFunc) data_imports_ui_concrete_dialog_pane_instance_init, NULL };
+ static const GInterfaceInfo spit_data_imports_dialog_pane_info = { (GInterfaceInitFunc) data_imports_ui_concrete_dialog_pane_spit_data_imports_dialog_pane_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType data_imports_ui_concrete_dialog_pane_type_id;
+ data_imports_ui_concrete_dialog_pane_type_id = g_type_register_static (G_TYPE_OBJECT, "DataImportsUIConcreteDialogPane", &g_define_type_info, 0);
+ g_type_add_interface_static (data_imports_ui_concrete_dialog_pane_type_id, SPIT_DATA_IMPORTS_TYPE_DIALOG_PANE, &spit_data_imports_dialog_pane_info);
+ g_once_init_leave (&data_imports_ui_concrete_dialog_pane_type_id__volatile, data_imports_ui_concrete_dialog_pane_type_id);
+ }
+ return data_imports_ui_concrete_dialog_pane_type_id__volatile;
+}
+
+
+DataImportsUIStaticMessagePane* data_imports_ui_static_message_pane_construct (GType object_type, const gchar* message_string) {
+ DataImportsUIStaticMessagePane * self = NULL;
+ GtkLabel* message_label = NULL;
+ const gchar* _tmp0_ = NULL;
+ GtkLabel* _tmp1_ = NULL;
+ GtkWidget* _tmp2_ = NULL;
+ GtkBox* _tmp3_ = NULL;
+ GtkBox* _tmp4_ = NULL;
+#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_return_val_if_fail (message_string != NULL, NULL);
+#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ self = (DataImportsUIStaticMessagePane*) data_imports_ui_concrete_dialog_pane_construct (object_type);
+#line 36 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp0_ = message_string;
+#line 36 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp1_ = (GtkLabel*) gtk_label_new (_tmp0_);
+#line 36 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_object_ref_sink (_tmp1_);
+#line 36 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ message_label = _tmp1_;
+#line 37 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp2_ = spit_data_imports_dialog_pane_get_widget (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_DIALOG_PANE, SpitDataImportsDialogPane));
+#line 37 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp3_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, gtk_box_get_type ()) ? ((GtkBox*) _tmp2_) : NULL;
+#line 37 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ if (_tmp3_ == NULL) {
+#line 37 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (_tmp2_);
+#line 495 "DataImportsUI.c"
+ }
+#line 37 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp4_ = _tmp3_;
+#line 37 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_box_pack_start (_tmp4_, G_TYPE_CHECK_INSTANCE_CAST (message_label, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 0);
+#line 37 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (_tmp4_);
+#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (message_label);
+#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ return self;
+#line 507 "DataImportsUI.c"
+}
+
+
+DataImportsUIStaticMessagePane* data_imports_ui_static_message_pane_new (const gchar* message_string) {
+#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ return data_imports_ui_static_message_pane_construct (DATA_IMPORTS_UI_TYPE_STATIC_MESSAGE_PANE, message_string);
+#line 514 "DataImportsUI.c"
+}
+
+
+DataImportsUIStaticMessagePane* data_imports_ui_static_message_pane_construct_with_pango (GType object_type, const gchar* msg) {
+ DataImportsUIStaticMessagePane * self = NULL;
+ GtkLabel* label = NULL;
+ GtkLabel* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ GtkWidget* _tmp2_ = NULL;
+ GtkBox* _tmp3_ = NULL;
+ GtkBox* _tmp4_ = NULL;
+#line 40 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_return_val_if_fail (msg != NULL, NULL);
+#line 40 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ self = (DataImportsUIStaticMessagePane*) data_imports_ui_concrete_dialog_pane_construct (object_type);
+#line 41 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp0_ = (GtkLabel*) gtk_label_new (NULL);
+#line 41 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_object_ref_sink (_tmp0_);
+#line 41 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ label = _tmp0_;
+#line 42 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp1_ = msg;
+#line 42 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_label_set_markup (label, _tmp1_);
+#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_label_set_line_wrap (label, TRUE);
+#line 45 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp2_ = spit_data_imports_dialog_pane_get_widget (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_DIALOG_PANE, SpitDataImportsDialogPane));
+#line 45 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp3_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, gtk_box_get_type ()) ? ((GtkBox*) _tmp2_) : NULL;
+#line 45 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ if (_tmp3_ == NULL) {
+#line 45 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (_tmp2_);
+#line 550 "DataImportsUI.c"
+ }
+#line 45 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp4_ = _tmp3_;
+#line 45 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_box_pack_start (_tmp4_, G_TYPE_CHECK_INSTANCE_CAST (label, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 0);
+#line 45 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (_tmp4_);
+#line 40 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (label);
+#line 40 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ return self;
+#line 562 "DataImportsUI.c"
+}
+
+
+DataImportsUIStaticMessagePane* data_imports_ui_static_message_pane_new_with_pango (const gchar* msg) {
+#line 40 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ return data_imports_ui_static_message_pane_construct_with_pango (DATA_IMPORTS_UI_TYPE_STATIC_MESSAGE_PANE, msg);
+#line 569 "DataImportsUI.c"
+}
+
+
+static void data_imports_ui_static_message_pane_class_init (DataImportsUIStaticMessagePaneClass * klass) {
+#line 34 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ data_imports_ui_static_message_pane_parent_class = g_type_class_peek_parent (klass);
+#line 576 "DataImportsUI.c"
+}
+
+
+static void data_imports_ui_static_message_pane_instance_init (DataImportsUIStaticMessagePane * self) {
+}
+
+
+GType data_imports_ui_static_message_pane_get_type (void) {
+ static volatile gsize data_imports_ui_static_message_pane_type_id__volatile = 0;
+ if (g_once_init_enter (&data_imports_ui_static_message_pane_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (DataImportsUIStaticMessagePaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_ui_static_message_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsUIStaticMessagePane), 0, (GInstanceInitFunc) data_imports_ui_static_message_pane_instance_init, NULL };
+ GType data_imports_ui_static_message_pane_type_id;
+ data_imports_ui_static_message_pane_type_id = g_type_register_static (DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE, "DataImportsUIStaticMessagePane", &g_define_type_info, 0);
+ g_once_init_leave (&data_imports_ui_static_message_pane_type_id__volatile, data_imports_ui_static_message_pane_type_id);
+ }
+ return data_imports_ui_static_message_pane_type_id__volatile;
+}
+
+
+static Block10Data* block10_data_ref (Block10Data* _data10_) {
+#line 99 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_atomic_int_inc (&_data10_->_ref_count_);
+#line 99 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ return _data10_;
+#line 601 "DataImportsUI.c"
+}
+
+
+static void block10_data_unref (void * _userdata_) {
+ Block10Data* _data10_;
+ _data10_ = (Block10Data*) _userdata_;
+#line 99 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ if (g_atomic_int_dec_and_test (&_data10_->_ref_count_)) {
+#line 610 "DataImportsUI.c"
+ DataImportsUILibrarySelectionPane* self;
+#line 99 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ self = _data10_->self;
+#line 99 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (_data10_->file_chooser);
+#line 99 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (self);
+#line 99 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_slice_free (Block10Data, _data10_);
+#line 620 "DataImportsUI.c"
+ }
+}
+
+
+static void ___lambda19_ (Block10Data* _data10_) {
+ DataImportsUILibrarySelectionPane* self;
+ GtkFileChooserButton* _tmp0_ = NULL;
+ GFile* _tmp1_ = NULL;
+ GtkRadioButton* _tmp2_ = NULL;
+#line 101 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ self = _data10_->self;
+#line 102 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp0_ = _data10_->file_chooser;
+#line 102 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp1_ = gtk_file_chooser_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GTK_TYPE_FILE_CHOOSER, GtkFileChooser));
+#line 102 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (self->priv->selected_file);
+#line 102 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ self->priv->selected_file = _tmp1_;
+#line 103 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp2_ = self->priv->file_radio;
+#line 103 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ if (_tmp2_ != NULL) {
+#line 644 "DataImportsUI.c"
+ GtkRadioButton* _tmp3_ = NULL;
+#line 104 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp3_ = self->priv->file_radio;
+#line 104 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_toggle_button_get_type (), GtkToggleButton), TRUE);
+#line 650 "DataImportsUI.c"
+ }
+#line 105 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ data_imports_ui_library_selection_pane_set_import_button_sensitivity (self);
+#line 654 "DataImportsUI.c"
+}
+
+
+static void ____lambda19__gtk_file_chooser_selection_changed (GtkFileChooser* _sender, gpointer self) {
+#line 101 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ ___lambda19_ (self);
+#line 661 "DataImportsUI.c"
+}
+
+
+static void __lambda20_ (DataImportsUILibrarySelectionPane* self) {
+ SpitDataImportsImportableLibrary* _tmp0_ = NULL;
+#line 114 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp0_ = self->priv->selected_library;
+#line 114 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ if (_tmp0_ != NULL) {
+#line 671 "DataImportsUI.c"
+ SpitDataImportsImportableLibrary* _tmp1_ = NULL;
+#line 115 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp1_ = self->priv->selected_library;
+#line 115 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ data_imports_ui_library_selection_pane_on_library_selected (self, _tmp1_);
+#line 677 "DataImportsUI.c"
+ } else {
+ GFile* _tmp2_ = NULL;
+#line 116 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp2_ = self->priv->selected_file;
+#line 116 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ if (_tmp2_ != NULL) {
+#line 684 "DataImportsUI.c"
+ GFile* _tmp3_ = NULL;
+#line 117 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp3_ = self->priv->selected_file;
+#line 117 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ data_imports_ui_library_selection_pane_on_file_selected (self, _tmp3_);
+#line 690 "DataImportsUI.c"
+ } else {
+#line 119 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_debug ("DataImportsUI.vala:119: LibrarySelectionPane: Library or file should b" \
+"e selected.");
+#line 694 "DataImportsUI.c"
+ }
+ }
+}
+
+
+static void ___lambda20__gtk_button_clicked (GtkButton* _sender, gpointer self) {
+#line 113 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ __lambda20_ ((DataImportsUILibrarySelectionPane*) self);
+#line 703 "DataImportsUI.c"
+}
+
+
+DataImportsUILibrarySelectionPane* data_imports_ui_library_selection_pane_construct (GType object_type, SpitDataImportsPluginHost* host, const gchar* welcome_message, SpitDataImportsImportableLibrary** discovered_libraries, int discovered_libraries_length1, const gchar* file_select_label) {
+ DataImportsUILibrarySelectionPane * self = NULL;
+ gboolean _tmp0_ = FALSE;
+ SpitDataImportsImportableLibrary** _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+ SpitDataImportsPluginHost* _tmp2_ = NULL;
+ GtkBox* content_box = NULL;
+ GtkBox* _tmp3_ = NULL;
+ GtkBox* _tmp4_ = NULL;
+ GtkBox* _tmp5_ = NULL;
+ GtkLabel* welcome_label = NULL;
+ GtkLabel* _tmp6_ = NULL;
+ GtkLabel* _tmp7_ = NULL;
+ const gchar* _tmp8_ = NULL;
+ GtkLabel* _tmp9_ = NULL;
+ GtkLabel* _tmp10_ = NULL;
+ GtkBox* _tmp11_ = NULL;
+ GtkLabel* _tmp12_ = NULL;
+ gint radio_margin_left = 0;
+ gint radio_margin_right = 0;
+ gint chooser_margin_left = 0;
+ gint _tmp13_ = 0;
+ gint chooser_margin_right = 0;
+ gint _tmp14_ = 0;
+ GtkRadioButton* lib_radio = NULL;
+ SpitDataImportsImportableLibrary** _tmp15_ = NULL;
+ gint _tmp15__length1 = 0;
+ const gchar* _tmp37_ = NULL;
+ const gchar* _tmp47_ = NULL;
+ GtkButton* _tmp48_ = NULL;
+ GtkButton* _tmp49_ = NULL;
+ GtkButtonBox* button_box = NULL;
+ GtkButtonBox* _tmp50_ = NULL;
+ GtkButton* _tmp51_ = NULL;
+ GtkBox* _tmp52_ = NULL;
+ GtkWidget* _tmp53_ = NULL;
+ GtkBox* _tmp54_ = NULL;
+ GtkBox* _tmp55_ = NULL;
+ GtkBox* _tmp56_ = NULL;
+#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (host), NULL);
+#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_return_val_if_fail (welcome_message != NULL, NULL);
+#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ self = (DataImportsUILibrarySelectionPane*) data_imports_ui_concrete_dialog_pane_construct (object_type);
+#line 62 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp1_ = discovered_libraries;
+#line 62 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp1__length1 = discovered_libraries_length1;
+#line 62 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ if (_tmp1__length1 > 0) {
+#line 62 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp0_ = TRUE;
+#line 760 "DataImportsUI.c"
+ } else {
+#line 62 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp0_ = data_imports_ui_library_selection_pane_on_file_selected != NULL;
+#line 764 "DataImportsUI.c"
+ }
+#line 62 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _vala_assert (_tmp0_, "discovered_libraries.length > 0 || on_file_selected != null");
+#line 64 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp2_ = host;
+#line 64 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ self->priv->host = _tmp2_;
+#line 66 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp3_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 8);
+#line 66 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_object_ref_sink (_tmp3_);
+#line 66 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ content_box = _tmp3_;
+#line 67 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp4_ = content_box;
+#line 67 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_widget_set_margin_left (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget), 30);
+#line 68 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp5_ = content_box;
+#line 68 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_widget_set_margin_right (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget), 30);
+#line 69 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp6_ = (GtkLabel*) gtk_label_new (NULL);
+#line 69 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_object_ref_sink (_tmp6_);
+#line 69 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ welcome_label = _tmp6_;
+#line 70 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp7_ = welcome_label;
+#line 70 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp8_ = welcome_message;
+#line 70 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_label_set_markup (_tmp7_, _tmp8_);
+#line 71 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp9_ = welcome_label;
+#line 71 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_label_set_line_wrap (_tmp9_, TRUE);
+#line 72 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp10_ = welcome_label;
+#line 72 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_widget_set_halign (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_START);
+#line 73 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp11_ = content_box;
+#line 73 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp12_ = welcome_label;
+#line 73 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_box_pack_start (_tmp11_, G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 6);
+#line 76 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ radio_margin_left = 20;
+#line 77 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ radio_margin_right = 20;
+#line 78 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp13_ = radio_margin_left;
+#line 78 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ chooser_margin_left = _tmp13_;
+#line 79 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp14_ = radio_margin_right;
+#line 79 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ chooser_margin_right = _tmp14_;
+#line 81 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ lib_radio = NULL;
+#line 82 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp15_ = discovered_libraries;
+#line 82 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp15__length1 = discovered_libraries_length1;
+#line 82 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ if (_tmp15__length1 > 0) {
+#line 832 "DataImportsUI.c"
+ gint _tmp16_ = 0;
+ SpitDataImportsImportableLibrary** _tmp17_ = NULL;
+ gint _tmp17__length1 = 0;
+ const gchar* _tmp28_ = NULL;
+#line 83 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp16_ = radio_margin_left;
+#line 83 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ chooser_margin_left = _tmp16_ + 20;
+#line 84 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp17_ = discovered_libraries;
+#line 84 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp17__length1 = discovered_libraries_length1;
+#line 845 "DataImportsUI.c"
+ {
+ SpitDataImportsImportableLibrary** library_collection = NULL;
+ gint library_collection_length1 = 0;
+ gint _library_collection_size_ = 0;
+ gint library_it = 0;
+#line 84 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ library_collection = _tmp17_;
+#line 84 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ library_collection_length1 = _tmp17__length1;
+#line 84 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ for (library_it = 0; library_it < _tmp17__length1; library_it = library_it + 1) {
+#line 857 "DataImportsUI.c"
+ SpitDataImportsImportableLibrary* _tmp18_ = NULL;
+ SpitDataImportsImportableLibrary* library = NULL;
+#line 84 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp18_ = _g_object_ref0 (library_collection[library_it]);
+#line 84 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ library = _tmp18_;
+#line 864 "DataImportsUI.c"
+ {
+ gchar* lib_radio_label = NULL;
+ SpitDataImportsImportableLibrary* _tmp19_ = NULL;
+ gchar* _tmp20_ = NULL;
+ GtkBox* _tmp21_ = NULL;
+ GtkRadioButton* _tmp22_ = NULL;
+ SpitDataImportsImportableLibrary* _tmp23_ = NULL;
+ const gchar* _tmp24_ = NULL;
+ gint _tmp25_ = 0;
+ gint _tmp26_ = 0;
+ GtkRadioButton* _tmp27_ = NULL;
+#line 85 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp19_ = library;
+#line 85 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp20_ = spit_data_imports_importable_library_get_display_name (_tmp19_);
+#line 85 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ lib_radio_label = _tmp20_;
+#line 86 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp21_ = content_box;
+#line 86 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp22_ = lib_radio;
+#line 86 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp23_ = library;
+#line 86 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp24_ = lib_radio_label;
+#line 86 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp25_ = radio_margin_left;
+#line 86 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp26_ = radio_margin_right;
+#line 86 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp27_ = data_imports_ui_library_selection_pane_create_radio_button (self, _tmp21_, _tmp22_, _tmp23_, _tmp24_, _tmp25_, _tmp26_);
+#line 86 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (lib_radio);
+#line 86 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ lib_radio = _tmp27_;
+#line 84 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_free0 (lib_radio_label);
+#line 84 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (library);
+#line 904 "DataImportsUI.c"
+ }
+ }
+ }
+#line 91 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp28_ = file_select_label;
+#line 91 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ if (_tmp28_ != NULL) {
+#line 912 "DataImportsUI.c"
+ GtkBox* _tmp29_ = NULL;
+ GtkRadioButton* _tmp30_ = NULL;
+ const gchar* _tmp31_ = NULL;
+ gint _tmp32_ = 0;
+ gint _tmp33_ = 0;
+ GtkRadioButton* _tmp34_ = NULL;
+ GtkRadioButton* _tmp35_ = NULL;
+ GtkRadioButton* _tmp36_ = NULL;
+#line 92 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp29_ = content_box;
+#line 92 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp30_ = lib_radio;
+#line 92 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp31_ = file_select_label;
+#line 92 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp32_ = radio_margin_left;
+#line 92 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp33_ = radio_margin_right;
+#line 92 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp34_ = data_imports_ui_library_selection_pane_create_radio_button (self, _tmp29_, _tmp30_, NULL, _tmp31_, _tmp32_, _tmp33_);
+#line 92 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (lib_radio);
+#line 92 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ lib_radio = _tmp34_;
+#line 96 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp35_ = lib_radio;
+#line 96 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp36_ = _g_object_ref0 (_tmp35_);
+#line 96 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (self->priv->file_radio);
+#line 96 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ self->priv->file_radio = _tmp36_;
+#line 945 "DataImportsUI.c"
+ }
+ }
+#line 99 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp37_ = file_select_label;
+#line 99 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ if (_tmp37_ != NULL) {
+#line 952 "DataImportsUI.c"
+ Block10Data* _data10_;
+ const gchar* _tmp38_ = NULL;
+ GtkFileChooserButton* _tmp39_ = NULL;
+ GtkFileChooserButton* _tmp40_ = NULL;
+ GtkFileChooserButton* _tmp41_ = NULL;
+ gint _tmp42_ = 0;
+ GtkFileChooserButton* _tmp43_ = NULL;
+ gint _tmp44_ = 0;
+ GtkBox* _tmp45_ = NULL;
+ GtkFileChooserButton* _tmp46_ = NULL;
+#line 99 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _data10_ = g_slice_new0 (Block10Data);
+#line 99 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _data10_->_ref_count_ = 1;
+#line 99 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _data10_->self = g_object_ref (self);
+#line 100 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp38_ = _ ("Database file:");
+#line 100 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp39_ = (GtkFileChooserButton*) gtk_file_chooser_button_new (_tmp38_, GTK_FILE_CHOOSER_ACTION_OPEN);
+#line 100 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_object_ref_sink (_tmp39_);
+#line 100 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _data10_->file_chooser = _tmp39_;
+#line 101 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp40_ = _data10_->file_chooser;
+#line 101 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_signal_connect_data (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, GTK_TYPE_FILE_CHOOSER, GtkFileChooser), "selection-changed", (GCallback) ____lambda19__gtk_file_chooser_selection_changed, block10_data_ref (_data10_), (GClosureNotify) block10_data_unref, 0);
+#line 107 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp41_ = _data10_->file_chooser;
+#line 107 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp42_ = chooser_margin_left;
+#line 107 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_widget_set_margin_left (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, gtk_widget_get_type (), GtkWidget), _tmp42_);
+#line 108 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp43_ = _data10_->file_chooser;
+#line 108 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp44_ = chooser_margin_right;
+#line 108 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_widget_set_margin_right (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, gtk_widget_get_type (), GtkWidget), _tmp44_);
+#line 109 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp45_ = content_box;
+#line 109 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp46_ = _data10_->file_chooser;
+#line 109 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_box_pack_start (_tmp45_, G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 6);
+#line 99 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ block10_data_unref (_data10_);
+#line 99 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _data10_ = NULL;
+#line 1003 "DataImportsUI.c"
+ }
+#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp47_ = _ ("_Import");
+#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp48_ = (GtkButton*) gtk_button_new_with_mnemonic (_tmp47_);
+#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_object_ref_sink (_tmp48_);
+#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (self->priv->import_button);
+#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ self->priv->import_button = _tmp48_;
+#line 113 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp49_ = self->priv->import_button;
+#line 113 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_signal_connect_object (_tmp49_, "clicked", (GCallback) ___lambda20__gtk_button_clicked, self, 0);
+#line 121 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp50_ = (GtkButtonBox*) gtk_button_box_new (GTK_ORIENTATION_HORIZONTAL);
+#line 121 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_object_ref_sink (_tmp50_);
+#line 121 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ button_box = _tmp50_;
+#line 122 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_object_set (button_box, "layout-style", GTK_BUTTONBOX_CENTER, NULL);
+#line 123 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp51_ = self->priv->import_button;
+#line 123 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (button_box, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp51_, gtk_widget_get_type (), GtkWidget));
+#line 124 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp52_ = content_box;
+#line 124 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_box_pack_end (_tmp52_, G_TYPE_CHECK_INSTANCE_CAST (button_box, gtk_widget_get_type (), GtkWidget), TRUE, FALSE, (guint) 6);
+#line 126 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp53_ = spit_data_imports_dialog_pane_get_widget (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_DIALOG_PANE, SpitDataImportsDialogPane));
+#line 126 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp54_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp53_, gtk_box_get_type ()) ? ((GtkBox*) _tmp53_) : NULL;
+#line 126 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ if (_tmp54_ == NULL) {
+#line 126 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (_tmp53_);
+#line 1043 "DataImportsUI.c"
+ }
+#line 126 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp55_ = _tmp54_;
+#line 126 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp56_ = content_box;
+#line 126 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_box_pack_start (_tmp55_, G_TYPE_CHECK_INSTANCE_CAST (_tmp56_, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 0);
+#line 126 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (_tmp55_);
+#line 128 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ data_imports_ui_library_selection_pane_set_import_button_sensitivity (self);
+#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (button_box);
+#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (lib_radio);
+#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (welcome_label);
+#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (content_box);
+#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ return self;
+#line 1065 "DataImportsUI.c"
+}
+
+
+DataImportsUILibrarySelectionPane* data_imports_ui_library_selection_pane_new (SpitDataImportsPluginHost* host, const gchar* welcome_message, SpitDataImportsImportableLibrary** discovered_libraries, int discovered_libraries_length1, const gchar* file_select_label) {
+#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ return data_imports_ui_library_selection_pane_construct (DATA_IMPORTS_UI_TYPE_LIBRARY_SELECTION_PANE, host, welcome_message, discovered_libraries, discovered_libraries_length1, file_select_label);
+#line 1072 "DataImportsUI.c"
+}
+
+
+static Block11Data* block11_data_ref (Block11Data* _data11_) {
+#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_atomic_int_inc (&_data11_->_ref_count_);
+#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ return _data11_;
+#line 1081 "DataImportsUI.c"
+}
+
+
+static void block11_data_unref (void * _userdata_) {
+ Block11Data* _data11_;
+ _data11_ = (Block11Data*) _userdata_;
+#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ if (g_atomic_int_dec_and_test (&_data11_->_ref_count_)) {
+#line 1090 "DataImportsUI.c"
+ DataImportsUILibrarySelectionPane* self;
+#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ self = _data11_->self;
+#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (_data11_->button);
+#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (_data11_->library);
+#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (self);
+#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_slice_free (Block11Data, _data11_);
+#line 1102 "DataImportsUI.c"
+ }
+}
+
+
+static void __lambda18_ (Block11Data* _data11_) {
+ DataImportsUILibrarySelectionPane* self;
+ GtkRadioButton* _tmp0_ = NULL;
+ gboolean _tmp1_ = FALSE;
+ gboolean _tmp2_ = FALSE;
+#line 140 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ self = _data11_->self;
+#line 141 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp0_ = _data11_->button;
+#line 141 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp1_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_toggle_button_get_type (), GtkToggleButton));
+#line 141 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp2_ = _tmp1_;
+#line 141 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ if (_tmp2_) {
+#line 1122 "DataImportsUI.c"
+ SpitDataImportsImportableLibrary* _tmp3_ = NULL;
+ SpitDataImportsImportableLibrary* _tmp4_ = NULL;
+#line 142 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp3_ = _data11_->library;
+#line 142 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp4_ = _g_object_ref0 (_tmp3_);
+#line 142 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (self->priv->selected_library);
+#line 142 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ self->priv->selected_library = _tmp4_;
+#line 143 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ data_imports_ui_library_selection_pane_set_import_button_sensitivity (self);
+#line 1135 "DataImportsUI.c"
+ }
+}
+
+
+static void ___lambda18__gtk_toggle_button_toggled (GtkToggleButton* _sender, gpointer self) {
+#line 140 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ __lambda18_ (self);
+#line 1143 "DataImportsUI.c"
+}
+
+
+static GtkRadioButton* data_imports_ui_library_selection_pane_create_radio_button (DataImportsUILibrarySelectionPane* self, GtkBox* box, GtkRadioButton* group, SpitDataImportsImportableLibrary* library, const gchar* label, gint margin_left, gint margin_right) {
+ GtkRadioButton* result = NULL;
+ Block11Data* _data11_;
+ SpitDataImportsImportableLibrary* _tmp0_ = NULL;
+ SpitDataImportsImportableLibrary* _tmp1_ = NULL;
+ GtkRadioButton* _tmp2_ = NULL;
+ const gchar* _tmp3_ = NULL;
+ GtkRadioButton* _tmp4_ = NULL;
+ GtkRadioButton* _tmp5_ = NULL;
+ GtkRadioButton* _tmp9_ = NULL;
+ GtkRadioButton* _tmp10_ = NULL;
+ gint _tmp11_ = 0;
+ GtkRadioButton* _tmp12_ = NULL;
+ gint _tmp13_ = 0;
+ GtkBox* _tmp14_ = NULL;
+ GtkRadioButton* _tmp15_ = NULL;
+ GtkRadioButton* _tmp16_ = NULL;
+ GtkRadioButton* _tmp17_ = NULL;
+#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_return_val_if_fail (DATA_IMPORTS_UI_IS_LIBRARY_SELECTION_PANE (self), NULL);
+#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_return_val_if_fail (GTK_IS_BOX (box), NULL);
+#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_return_val_if_fail ((group == NULL) || GTK_IS_RADIO_BUTTON (group), NULL);
+#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_return_val_if_fail ((library == NULL) || SPIT_DATA_IMPORTS_IS_IMPORTABLE_LIBRARY (library), NULL);
+#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_return_val_if_fail (label != NULL, NULL);
+#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _data11_ = g_slice_new0 (Block11Data);
+#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _data11_->_ref_count_ = 1;
+#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _data11_->self = g_object_ref (self);
+#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp0_ = library;
+#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp1_ = _g_object_ref0 (_tmp0_);
+#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (_data11_->library);
+#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _data11_->library = _tmp1_;
+#line 135 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp2_ = group;
+#line 135 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp3_ = label;
+#line 135 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp4_ = (GtkRadioButton*) gtk_radio_button_new_with_label_from_widget (_tmp2_, _tmp3_);
+#line 135 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_object_ref_sink (_tmp4_);
+#line 135 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _data11_->button = _tmp4_;
+#line 136 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp5_ = group;
+#line 136 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ if (_tmp5_ == NULL) {
+#line 1203 "DataImportsUI.c"
+ GtkRadioButton* _tmp6_ = NULL;
+ SpitDataImportsImportableLibrary* _tmp7_ = NULL;
+ SpitDataImportsImportableLibrary* _tmp8_ = NULL;
+#line 137 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp6_ = _data11_->button;
+#line 137 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_toggle_button_get_type (), GtkToggleButton), TRUE);
+#line 138 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp7_ = _data11_->library;
+#line 138 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp8_ = _g_object_ref0 (_tmp7_);
+#line 138 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (self->priv->selected_library);
+#line 138 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ self->priv->selected_library = _tmp8_;
+#line 1219 "DataImportsUI.c"
+ }
+#line 140 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp9_ = _data11_->button;
+#line 140 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_signal_connect_data (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_toggle_button_get_type (), GtkToggleButton), "toggled", (GCallback) ___lambda18__gtk_toggle_button_toggled, block11_data_ref (_data11_), (GClosureNotify) block11_data_unref, 0);
+#line 147 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp10_ = _data11_->button;
+#line 147 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp11_ = margin_left;
+#line 147 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_widget_set_margin_left (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_widget_get_type (), GtkWidget), _tmp11_);
+#line 148 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp12_ = _data11_->button;
+#line 148 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp13_ = margin_right;
+#line 148 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_widget_set_margin_right (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_widget_get_type (), GtkWidget), _tmp13_);
+#line 149 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp14_ = box;
+#line 149 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp15_ = _data11_->button;
+#line 149 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_box_pack_start (_tmp14_, G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 6);
+#line 150 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp16_ = _data11_->button;
+#line 150 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp17_ = _g_object_ref0 (_tmp16_);
+#line 150 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ result = _tmp17_;
+#line 150 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ block11_data_unref (_data11_);
+#line 150 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _data11_ = NULL;
+#line 150 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ return result;
+#line 1255 "DataImportsUI.c"
+}
+
+
+static void data_imports_ui_library_selection_pane_set_import_button_sensitivity (DataImportsUILibrarySelectionPane* self) {
+ gboolean _tmp0_ = FALSE;
+ SpitDataImportsImportableLibrary* _tmp1_ = NULL;
+ GtkButton* _tmp3_ = NULL;
+#line 153 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_return_if_fail (DATA_IMPORTS_UI_IS_LIBRARY_SELECTION_PANE (self));
+#line 154 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp1_ = self->priv->selected_library;
+#line 154 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ if (_tmp1_ != NULL) {
+#line 154 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp0_ = TRUE;
+#line 1271 "DataImportsUI.c"
+ } else {
+ GFile* _tmp2_ = NULL;
+#line 154 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp2_ = self->priv->selected_file;
+#line 154 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp0_ = _tmp2_ != NULL;
+#line 1278 "DataImportsUI.c"
+ }
+#line 154 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp3_ = self->priv->import_button;
+#line 154 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget), _tmp0_);
+#line 1284 "DataImportsUI.c"
+}
+
+
+static void data_imports_ui_library_selection_pane_on_library_selected (DataImportsUILibrarySelectionPane* self, SpitDataImportsImportableLibrary* library) {
+ SpitDataImportsPluginHost* _tmp0_ = NULL;
+ SpitDataImportsDataImporter* _tmp1_ = NULL;
+ SpitDataImportsDataImporter* _tmp2_ = NULL;
+ SpitDataImportsImportableLibrary* _tmp3_ = NULL;
+#line 157 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_return_if_fail (DATA_IMPORTS_UI_IS_LIBRARY_SELECTION_PANE (self));
+#line 157 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_return_if_fail (SPIT_DATA_IMPORTS_IS_IMPORTABLE_LIBRARY (library));
+#line 158 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp0_ = self->priv->host;
+#line 158 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp1_ = spit_data_imports_plugin_host_get_data_importer (_tmp0_);
+#line 158 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp2_ = _tmp1_;
+#line 158 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp3_ = library;
+#line 158 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ spit_data_imports_data_importer_on_library_selected (_tmp2_, _tmp3_);
+#line 158 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (_tmp2_);
+#line 1309 "DataImportsUI.c"
+}
+
+
+static void data_imports_ui_library_selection_pane_on_file_selected (DataImportsUILibrarySelectionPane* self, GFile* file) {
+ SpitDataImportsPluginHost* _tmp0_ = NULL;
+ SpitDataImportsDataImporter* _tmp1_ = NULL;
+ SpitDataImportsDataImporter* _tmp2_ = NULL;
+ GFile* _tmp3_ = NULL;
+#line 161 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_return_if_fail (DATA_IMPORTS_UI_IS_LIBRARY_SELECTION_PANE (self));
+#line 161 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_return_if_fail (G_IS_FILE (file));
+#line 162 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp0_ = self->priv->host;
+#line 162 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp1_ = spit_data_imports_plugin_host_get_data_importer (_tmp0_);
+#line 162 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp2_ = _tmp1_;
+#line 162 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp3_ = file;
+#line 162 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ spit_data_imports_data_importer_on_file_selected (_tmp2_, _tmp3_);
+#line 162 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (_tmp2_);
+#line 1334 "DataImportsUI.c"
+}
+
+
+static void data_imports_ui_library_selection_pane_class_init (DataImportsUILibrarySelectionPaneClass * klass) {
+#line 49 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ data_imports_ui_library_selection_pane_parent_class = g_type_class_peek_parent (klass);
+#line 49 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_type_class_add_private (klass, sizeof (DataImportsUILibrarySelectionPanePrivate));
+#line 49 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ G_OBJECT_CLASS (klass)->finalize = data_imports_ui_library_selection_pane_finalize;
+#line 1345 "DataImportsUI.c"
+}
+
+
+static void data_imports_ui_library_selection_pane_instance_init (DataImportsUILibrarySelectionPane * self) {
+#line 49 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ self->priv = DATA_IMPORTS_UI_LIBRARY_SELECTION_PANE_GET_PRIVATE (self);
+#line 51 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ self->priv->selected_library = NULL;
+#line 52 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ self->priv->selected_file = NULL;
+#line 54 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ self->priv->file_radio = NULL;
+#line 1358 "DataImportsUI.c"
+}
+
+
+static void data_imports_ui_library_selection_pane_finalize (GObject* obj) {
+ DataImportsUILibrarySelectionPane * self;
+#line 49 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, DATA_IMPORTS_UI_TYPE_LIBRARY_SELECTION_PANE, DataImportsUILibrarySelectionPane);
+#line 51 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (self->priv->selected_library);
+#line 52 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (self->priv->selected_file);
+#line 53 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (self->priv->import_button);
+#line 54 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (self->priv->file_radio);
+#line 49 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ G_OBJECT_CLASS (data_imports_ui_library_selection_pane_parent_class)->finalize (obj);
+#line 1376 "DataImportsUI.c"
+}
+
+
+GType data_imports_ui_library_selection_pane_get_type (void) {
+ static volatile gsize data_imports_ui_library_selection_pane_type_id__volatile = 0;
+ if (g_once_init_enter (&data_imports_ui_library_selection_pane_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (DataImportsUILibrarySelectionPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_ui_library_selection_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsUILibrarySelectionPane), 0, (GInstanceInitFunc) data_imports_ui_library_selection_pane_instance_init, NULL };
+ GType data_imports_ui_library_selection_pane_type_id;
+ data_imports_ui_library_selection_pane_type_id = g_type_register_static (DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE, "DataImportsUILibrarySelectionPane", &g_define_type_info, 0);
+ g_once_init_leave (&data_imports_ui_library_selection_pane_type_id__volatile, data_imports_ui_library_selection_pane_type_id);
+ }
+ return data_imports_ui_library_selection_pane_type_id__volatile;
+}
+
+
+DataImportsUIProgressPane* data_imports_ui_progress_pane_construct (GType object_type, const gchar* message) {
+ DataImportsUIProgressPane * self = NULL;
+ GtkBox* content_box = NULL;
+ GtkBox* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ GtkLabel* _tmp2_ = NULL;
+ GtkLabel* _tmp3_ = NULL;
+ GtkProgressBar* _tmp4_ = NULL;
+ GtkProgressBar* _tmp5_ = NULL;
+ GtkLabel* _tmp6_ = NULL;
+ GtkLabel* _tmp7_ = NULL;
+ GtkWidget* _tmp8_ = NULL;
+ GtkContainer* _tmp9_ = NULL;
+ GtkContainer* _tmp10_ = NULL;
+#line 171 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_return_val_if_fail (message != NULL, NULL);
+#line 171 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ self = (DataImportsUIProgressPane*) data_imports_ui_concrete_dialog_pane_construct (object_type);
+#line 172 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp0_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 8);
+#line 172 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_object_ref_sink (_tmp0_);
+#line 172 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ content_box = _tmp0_;
+#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp1_ = message;
+#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp2_ = (GtkLabel*) gtk_label_new (_tmp1_);
+#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_object_ref_sink (_tmp2_);
+#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (self->priv->message_label);
+#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ self->priv->message_label = _tmp2_;
+#line 174 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp3_ = self->priv->message_label;
+#line 174 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_box_pack_start (content_box, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 6);
+#line 175 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp4_ = (GtkProgressBar*) gtk_progress_bar_new ();
+#line 175 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_object_ref_sink (_tmp4_);
+#line 175 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (self->priv->progress_bar);
+#line 175 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ self->priv->progress_bar = _tmp4_;
+#line 176 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp5_ = self->priv->progress_bar;
+#line 176 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_box_pack_start (content_box, G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget), FALSE, TRUE, (guint) 6);
+#line 177 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp6_ = (GtkLabel*) gtk_label_new ("");
+#line 177 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_object_ref_sink (_tmp6_);
+#line 177 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (self->priv->progress_label);
+#line 177 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ self->priv->progress_label = _tmp6_;
+#line 178 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp7_ = self->priv->progress_label;
+#line 178 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_box_pack_start (content_box, G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_widget_get_type (), GtkWidget), FALSE, TRUE, (guint) 6);
+#line 180 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp8_ = spit_data_imports_dialog_pane_get_widget (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_DIALOG_PANE, SpitDataImportsDialogPane));
+#line 180 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp9_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp8_, gtk_container_get_type ()) ? ((GtkContainer*) _tmp8_) : NULL;
+#line 180 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ if (_tmp9_ == NULL) {
+#line 180 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (_tmp8_);
+#line 1462 "DataImportsUI.c"
+ }
+#line 180 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp10_ = _tmp9_;
+#line 180 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_container_add (_tmp10_, G_TYPE_CHECK_INSTANCE_CAST (content_box, gtk_widget_get_type (), GtkWidget));
+#line 180 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (_tmp10_);
+#line 171 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (content_box);
+#line 171 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ return self;
+#line 1474 "DataImportsUI.c"
+}
+
+
+DataImportsUIProgressPane* data_imports_ui_progress_pane_new (const gchar* message) {
+#line 171 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ return data_imports_ui_progress_pane_construct (DATA_IMPORTS_UI_TYPE_PROGRESS_PANE, message);
+#line 1481 "DataImportsUI.c"
+}
+
+
+void data_imports_ui_progress_pane_update_progress (DataImportsUIProgressPane* self, gdouble progress, const gchar* progress_message) {
+ GtkProgressBar* _tmp0_ = NULL;
+ gdouble _tmp1_ = 0.0;
+ const gchar* _tmp2_ = NULL;
+#line 183 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_return_if_fail (DATA_IMPORTS_UI_IS_PROGRESS_PANE (self));
+#line 184 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp0_ = self->priv->progress_bar;
+#line 184 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp1_ = progress;
+#line 184 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_progress_bar_set_fraction (_tmp0_, _tmp1_);
+#line 185 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp2_ = progress_message;
+#line 185 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ if (_tmp2_ != NULL) {
+#line 1501 "DataImportsUI.c"
+ GtkLabel* _tmp3_ = NULL;
+ const gchar* _tmp4_ = NULL;
+#line 186 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp3_ = self->priv->progress_label;
+#line 186 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp4_ = progress_message;
+#line 186 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_label_set_label (_tmp3_, _tmp4_);
+#line 1510 "DataImportsUI.c"
+ }
+#line 187 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ spin_event_loop ();
+#line 1514 "DataImportsUI.c"
+}
+
+
+static void data_imports_ui_progress_pane_class_init (DataImportsUIProgressPaneClass * klass) {
+#line 166 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ data_imports_ui_progress_pane_parent_class = g_type_class_peek_parent (klass);
+#line 166 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_type_class_add_private (klass, sizeof (DataImportsUIProgressPanePrivate));
+#line 166 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ G_OBJECT_CLASS (klass)->finalize = data_imports_ui_progress_pane_finalize;
+#line 1525 "DataImportsUI.c"
+}
+
+
+static void data_imports_ui_progress_pane_instance_init (DataImportsUIProgressPane * self) {
+#line 166 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ self->priv = DATA_IMPORTS_UI_PROGRESS_PANE_GET_PRIVATE (self);
+#line 1532 "DataImportsUI.c"
+}
+
+
+static void data_imports_ui_progress_pane_finalize (GObject* obj) {
+ DataImportsUIProgressPane * self;
+#line 166 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, DATA_IMPORTS_UI_TYPE_PROGRESS_PANE, DataImportsUIProgressPane);
+#line 167 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (self->priv->message_label);
+#line 168 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (self->priv->progress_label);
+#line 169 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (self->priv->progress_bar);
+#line 166 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ G_OBJECT_CLASS (data_imports_ui_progress_pane_parent_class)->finalize (obj);
+#line 1548 "DataImportsUI.c"
+}
+
+
+GType data_imports_ui_progress_pane_get_type (void) {
+ static volatile gsize data_imports_ui_progress_pane_type_id__volatile = 0;
+ if (g_once_init_enter (&data_imports_ui_progress_pane_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (DataImportsUIProgressPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_ui_progress_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsUIProgressPane), 0, (GInstanceInitFunc) data_imports_ui_progress_pane_instance_init, NULL };
+ GType data_imports_ui_progress_pane_type_id;
+ data_imports_ui_progress_pane_type_id = g_type_register_static (DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE, "DataImportsUIProgressPane", &g_define_type_info, 0);
+ g_once_init_leave (&data_imports_ui_progress_pane_type_id__volatile, data_imports_ui_progress_pane_type_id);
+ }
+ return data_imports_ui_progress_pane_type_id__volatile;
+}
+
+
+static gboolean _data_imports_ui_data_imports_dialog_on_window_close_gtk_widget_delete_event (GtkWidget* _sender, GdkEventAny* event, gpointer self) {
+ gboolean result;
+ result = data_imports_ui_data_imports_dialog_on_window_close ((DataImportsUIDataImportsDialog*) self, event);
+#line 218 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ return result;
+#line 1569 "DataImportsUI.c"
+}
+
+
+static void _data_imports_ui_data_imports_dialog_on_service_changed_gtk_combo_box_changed (GtkComboBox* _sender, gpointer self) {
+#line 251 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ data_imports_ui_data_imports_dialog_on_service_changed ((DataImportsUIDataImportsDialog*) self);
+#line 1576 "DataImportsUI.c"
+}
+
+
+static void _data_imports_ui_data_imports_dialog_on_close_cancel_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self) {
+#line 291 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ data_imports_ui_data_imports_dialog_on_close_cancel_clicked ((DataImportsUIDataImportsDialog*) self);
+#line 1583 "DataImportsUI.c"
+}
+
+
+DataImportsUIDataImportsDialog* data_imports_ui_data_imports_dialog_construct (GType object_type) {
+ DataImportsUIDataImportsDialog * self = NULL;
+ gboolean use_header = FALSE;
+ GtkSettings* _tmp0_ = NULL;
+ gint _tmp1_ = 0;
+ gboolean _tmp2_ = FALSE;
+ gboolean _tmp3_ = FALSE;
+ gchar* title = NULL;
+ const gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ gchar* label = NULL;
+ const gchar* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+ const gchar* _tmp9_ = NULL;
+ SpitDataImportsService** loaded_services = NULL;
+ gint _tmp10_ = 0;
+ SpitDataImportsService** _tmp11_ = NULL;
+ gint loaded_services_length1 = 0;
+ gint _loaded_services_size_ = 0;
+ SpitDataImportsService** _tmp12_ = NULL;
+ gint _tmp12__length1 = 0;
+ GtkBox* _tmp64_ = NULL;
+ GtkBox* _tmp65_ = NULL;
+ GtkBox* _tmp66_ = NULL;
+ GtkButton* _tmp67_ = NULL;
+ GtkButton* _tmp68_ = NULL;
+ GtkButton* _tmp69_ = NULL;
+ gboolean _tmp70_ = FALSE;
+ SpitDataImportsService** _tmp77_ = NULL;
+ gint _tmp77__length1 = 0;
+#line 212 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp0_ = gtk_settings_get_default ();
+#line 212 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_object_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, G_TYPE_OBJECT, GObject), "gtk-dialogs-use-header", &use_header, NULL);
+#line 213 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp2_ = use_header;
+#line 213 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ if (_tmp2_) {
+#line 213 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp1_ = 1;
+#line 1627 "DataImportsUI.c"
+ } else {
+#line 213 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp1_ = 0;
+#line 1631 "DataImportsUI.c"
+ }
+#line 213 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ self = (DataImportsUIDataImportsDialog*) g_object_new (object_type, "use-header-bar", _tmp1_, NULL);
+#line 214 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp3_ = use_header;
+#line 214 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ if (_tmp3_) {
+#line 1639 "DataImportsUI.c"
+ GtkWidget* _tmp4_ = NULL;
+#line 215 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp4_ = gtk_dialog_get_header_bar (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog));
+#line 215 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_header_bar_set_show_close_button (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_header_bar_get_type (), GtkHeaderBar), FALSE);
+#line 1645 "DataImportsUI.c"
+ }
+#line 217 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_window_set_resizable (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), FALSE);
+#line 218 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), "delete-event", (GCallback) _data_imports_ui_data_imports_dialog_on_window_close_gtk_widget_delete_event, self, 0);
+#line 220 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp5_ = _ ("Import From Application");
+#line 220 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp6_ = g_strdup (_tmp5_);
+#line 220 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ title = _tmp6_;
+#line 221 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp7_ = _ ("Import media _from:");
+#line 221 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp8_ = g_strdup (_tmp7_);
+#line 221 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ label = _tmp8_;
+#line 223 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp9_ = title;
+#line 223 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_window_set_title (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), _tmp9_);
+#line 225 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp11_ = spit_data_imports_load_services (FALSE, &_tmp10_);
+#line 225 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ loaded_services = _tmp11_;
+#line 225 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ loaded_services_length1 = _tmp10_;
+#line 225 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _loaded_services_size_ = loaded_services_length1;
+#line 227 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp12_ = loaded_services;
+#line 227 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp12__length1 = loaded_services_length1;
+#line 227 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ if (_tmp12__length1 > 0) {
+#line 1681 "DataImportsUI.c"
+ GtkComboBoxText* _tmp13_ = NULL;
+ GtkComboBoxText* _tmp14_ = NULL;
+ gchar* last_used_service = NULL;
+ ConfigFacade* _tmp15_ = NULL;
+ ConfigFacade* _tmp16_ = NULL;
+ gchar* _tmp17_ = NULL;
+ gchar* _tmp18_ = NULL;
+ gint ticker = 0;
+ gint last_used_index = 0;
+ SpitDataImportsService** _tmp19_ = NULL;
+ gint _tmp19__length1 = 0;
+ gint _tmp33_ = 0;
+ GtkComboBoxText* _tmp37_ = NULL;
+ gboolean _tmp38_ = FALSE;
+#line 230 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp13_ = (GtkComboBoxText*) gtk_combo_box_text_new ();
+#line 230 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_object_ref_sink (_tmp13_);
+#line 230 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (self->priv->service_selector_box);
+#line 230 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ self->priv->service_selector_box = _tmp13_;
+#line 231 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp14_ = self->priv->service_selector_box;
+#line 231 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_combo_box_get_type (), GtkComboBox), 0);
+#line 234 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp15_ = config_facade_get_instance ();
+#line 234 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp16_ = _tmp15_;
+#line 234 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp17_ = configuration_facade_get_last_used_dataimports_service (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
+#line 234 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp18_ = _tmp17_;
+#line 234 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (_tmp16_);
+#line 234 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ last_used_service = _tmp18_;
+#line 236 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ ticker = 0;
+#line 237 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ last_used_index = -1;
+#line 238 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp19_ = loaded_services;
+#line 238 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp19__length1 = loaded_services_length1;
+#line 1728 "DataImportsUI.c"
+ {
+ SpitDataImportsService** service_collection = NULL;
+ gint service_collection_length1 = 0;
+ gint _service_collection_size_ = 0;
+ gint service_it = 0;
+#line 238 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ service_collection = _tmp19_;
+#line 238 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ service_collection_length1 = _tmp19__length1;
+#line 238 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ for (service_it = 0; service_it < _tmp19__length1; service_it = service_it + 1) {
+#line 1740 "DataImportsUI.c"
+ SpitDataImportsService* _tmp20_ = NULL;
+ SpitDataImportsService* service = NULL;
+#line 238 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp20_ = _g_object_ref0 (service_collection[service_it]);
+#line 238 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ service = _tmp20_;
+#line 1747 "DataImportsUI.c"
+ {
+ gchar* curr_service_id = NULL;
+ SpitDataImportsService* _tmp21_ = NULL;
+ const gchar* _tmp22_ = NULL;
+ gchar* _tmp23_ = NULL;
+ gboolean _tmp24_ = FALSE;
+ const gchar* _tmp25_ = NULL;
+ GtkComboBoxText* _tmp29_ = NULL;
+ SpitDataImportsService* _tmp30_ = NULL;
+ const gchar* _tmp31_ = NULL;
+ gint _tmp32_ = 0;
+#line 239 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp21_ = service;
+#line 239 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp22_ = spit_pluggable_get_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
+#line 239 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp23_ = g_strdup (_tmp22_);
+#line 239 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ curr_service_id = _tmp23_;
+#line 240 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp25_ = last_used_service;
+#line 240 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ if (_tmp25_ != NULL) {
+#line 1771 "DataImportsUI.c"
+ const gchar* _tmp26_ = NULL;
+ const gchar* _tmp27_ = NULL;
+#line 240 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp26_ = last_used_service;
+#line 240 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp27_ = curr_service_id;
+#line 240 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp24_ = g_strcmp0 (_tmp26_, _tmp27_) == 0;
+#line 1780 "DataImportsUI.c"
+ } else {
+#line 240 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp24_ = FALSE;
+#line 1784 "DataImportsUI.c"
+ }
+#line 240 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ if (_tmp24_) {
+#line 1788 "DataImportsUI.c"
+ gint _tmp28_ = 0;
+#line 241 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp28_ = ticker;
+#line 241 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ last_used_index = _tmp28_;
+#line 1794 "DataImportsUI.c"
+ }
+#line 243 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp29_ = self->priv->service_selector_box;
+#line 243 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp30_ = service;
+#line 243 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp31_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
+#line 243 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_combo_box_text_append_text (_tmp29_, _tmp31_);
+#line 244 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp32_ = ticker;
+#line 244 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ ticker = _tmp32_ + 1;
+#line 238 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_free0 (curr_service_id);
+#line 238 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (service);
+#line 1812 "DataImportsUI.c"
+ }
+ }
+ }
+#line 246 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp33_ = last_used_index;
+#line 246 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ if (_tmp33_ >= 0) {
+#line 1820 "DataImportsUI.c"
+ GtkComboBoxText* _tmp34_ = NULL;
+ gint _tmp35_ = 0;
+#line 247 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp34_ = self->priv->service_selector_box;
+#line 247 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp35_ = last_used_index;
+#line 247 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, gtk_combo_box_get_type (), GtkComboBox), _tmp35_);
+#line 1829 "DataImportsUI.c"
+ } else {
+ GtkComboBoxText* _tmp36_ = NULL;
+#line 249 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp36_ = self->priv->service_selector_box;
+#line 249 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, gtk_combo_box_get_type (), GtkComboBox), 0);
+#line 1836 "DataImportsUI.c"
+ }
+#line 251 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp37_ = self->priv->service_selector_box;
+#line 251 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _data_imports_ui_data_imports_dialog_on_service_changed_gtk_combo_box_changed, self, 0);
+#line 253 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp38_ = use_header;
+#line 253 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ if (!_tmp38_) {
+#line 1846 "DataImportsUI.c"
+ GtkLabel* service_selector_box_label = NULL;
+ const gchar* _tmp39_ = NULL;
+ GtkLabel* _tmp40_ = NULL;
+ GtkLabel* _tmp41_ = NULL;
+ GtkComboBoxText* _tmp42_ = NULL;
+ GtkLabel* _tmp43_ = NULL;
+ GtkAlignment* service_selector_box_wrapper = NULL;
+ GtkAlignment* _tmp44_ = NULL;
+ GtkAlignment* _tmp45_ = NULL;
+ GtkComboBoxText* _tmp46_ = NULL;
+ GtkBox* service_selector_layouter = NULL;
+ GtkBox* _tmp47_ = NULL;
+ GtkBox* _tmp48_ = NULL;
+ GtkBox* _tmp49_ = NULL;
+ GtkLabel* _tmp50_ = NULL;
+ GtkBox* _tmp51_ = NULL;
+ GtkAlignment* _tmp52_ = NULL;
+ GtkBox* service_area_layouter = NULL;
+ GtkBox* _tmp53_ = NULL;
+ GtkBox* _tmp54_ = NULL;
+ GtkBox* _tmp55_ = NULL;
+ GtkSeparator* service_central_separator = NULL;
+ GtkSeparator* _tmp56_ = NULL;
+ GtkBox* _tmp57_ = NULL;
+ GtkSeparator* _tmp58_ = NULL;
+ GtkAlignment* service_area_wrapper = NULL;
+ GtkAlignment* _tmp59_ = NULL;
+ GtkAlignment* _tmp60_ = NULL;
+ GtkBox* _tmp61_ = NULL;
+ GtkBox* _tmp62_ = NULL;
+ GtkAlignment* _tmp63_ = NULL;
+#line 255 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp39_ = label;
+#line 255 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp40_ = (GtkLabel*) gtk_label_new_with_mnemonic (_tmp39_);
+#line 255 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_object_ref_sink (_tmp40_);
+#line 255 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ service_selector_box_label = _tmp40_;
+#line 256 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp41_ = service_selector_box_label;
+#line 256 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp42_ = self->priv->service_selector_box;
+#line 256 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_label_set_mnemonic_widget (_tmp41_, G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, gtk_widget_get_type (), GtkWidget));
+#line 257 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp43_ = service_selector_box_label;
+#line 257 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_misc_set_alignment (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, gtk_misc_get_type (), GtkMisc), 0.0f, 0.5f);
+#line 263 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp44_ = (GtkAlignment*) gtk_alignment_new (1.0f, 0.5f, 0.0f, 0.0f);
+#line 263 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_object_ref_sink (_tmp44_);
+#line 263 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ service_selector_box_wrapper = _tmp44_;
+#line 264 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp45_ = service_selector_box_wrapper;
+#line 264 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp46_ = self->priv->service_selector_box;
+#line 264 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, gtk_widget_get_type (), GtkWidget));
+#line 266 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp47_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 8);
+#line 266 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_object_ref_sink (_tmp47_);
+#line 266 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ service_selector_layouter = _tmp47_;
+#line 267 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp48_ = service_selector_layouter;
+#line 267 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_container_set_border_width (G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, gtk_container_get_type (), GtkContainer), (guint) 12);
+#line 268 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp49_ = service_selector_layouter;
+#line 268 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp50_ = service_selector_box_label;
+#line 268 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, gtk_widget_get_type (), GtkWidget));
+#line 269 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp51_ = service_selector_layouter;
+#line 269 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp52_ = service_selector_box_wrapper;
+#line 269 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_box_pack_start (_tmp51_, G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 0);
+#line 273 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp53_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
+#line 273 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_object_ref_sink (_tmp53_);
+#line 273 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ service_area_layouter = _tmp53_;
+#line 274 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp54_ = service_area_layouter;
+#line 274 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp55_ = service_selector_layouter;
+#line 274 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_box_pack_start (_tmp54_, G_TYPE_CHECK_INSTANCE_CAST (_tmp55_, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 0);
+#line 275 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp56_ = (GtkSeparator*) gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
+#line 275 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_object_ref_sink (_tmp56_);
+#line 275 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ service_central_separator = _tmp56_;
+#line 276 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp57_ = service_area_layouter;
+#line 276 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp58_ = service_central_separator;
+#line 276 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp57_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp58_, gtk_widget_get_type (), GtkWidget));
+#line 278 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp59_ = (GtkAlignment*) gtk_alignment_new (0.0f, 0.0f, 1.0f, 0.0f);
+#line 278 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_object_ref_sink (_tmp59_);
+#line 278 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ service_area_wrapper = _tmp59_;
+#line 279 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp60_ = service_area_wrapper;
+#line 279 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp61_ = service_area_layouter;
+#line 279 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp60_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp61_, gtk_widget_get_type (), GtkWidget));
+#line 281 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp62_ = (GtkBox*) gtk_dialog_get_content_area (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog));
+#line 281 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp63_ = service_area_wrapper;
+#line 281 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_box_pack_start (G_TYPE_CHECK_INSTANCE_CAST (_tmp62_, gtk_box_get_type (), GtkBox), G_TYPE_CHECK_INSTANCE_CAST (_tmp63_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0);
+#line 253 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (service_area_wrapper);
+#line 253 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (service_central_separator);
+#line 253 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (service_area_layouter);
+#line 253 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (service_selector_layouter);
+#line 253 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (service_selector_box_wrapper);
+#line 253 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (service_selector_box_label);
+#line 1984 "DataImportsUI.c"
+ }
+#line 227 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_free0 (last_used_service);
+#line 1988 "DataImportsUI.c"
+ }
+#line 286 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp64_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
+#line 286 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_object_ref_sink (_tmp64_);
+#line 286 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (self->priv->central_area_layouter);
+#line 286 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ self->priv->central_area_layouter = _tmp64_;
+#line 287 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp65_ = (GtkBox*) gtk_dialog_get_content_area (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog));
+#line 287 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp66_ = self->priv->central_area_layouter;
+#line 287 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_box_pack_start (G_TYPE_CHECK_INSTANCE_CAST (_tmp65_, gtk_box_get_type (), GtkBox), G_TYPE_CHECK_INSTANCE_CAST (_tmp66_, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 0);
+#line 289 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp67_ = (GtkButton*) gtk_button_new_with_mnemonic ("_Cancel");
+#line 289 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_object_ref_sink (_tmp67_);
+#line 289 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (self->priv->close_cancel_button);
+#line 289 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ self->priv->close_cancel_button = _tmp67_;
+#line 290 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp68_ = self->priv->close_cancel_button;
+#line 290 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_widget_set_can_default (G_TYPE_CHECK_INSTANCE_CAST (_tmp68_, gtk_widget_get_type (), GtkWidget), TRUE);
+#line 291 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp69_ = self->priv->close_cancel_button;
+#line 291 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_signal_connect_object (_tmp69_, "clicked", (GCallback) _data_imports_ui_data_imports_dialog_on_close_cancel_clicked_gtk_button_clicked, self, 0);
+#line 293 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp70_ = use_header;
+#line 293 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ if (_tmp70_) {
+#line 2024 "DataImportsUI.c"
+ GtkWidget* _tmp71_ = NULL;
+ GtkButton* _tmp72_ = NULL;
+ GtkWidget* _tmp73_ = NULL;
+ GtkComboBoxText* _tmp74_ = NULL;
+#line 294 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp71_ = gtk_dialog_get_header_bar (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog));
+#line 294 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp72_ = self->priv->close_cancel_button;
+#line 294 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_header_bar_pack_start (G_TYPE_CHECK_INSTANCE_CAST (_tmp71_, gtk_header_bar_get_type (), GtkHeaderBar), G_TYPE_CHECK_INSTANCE_CAST (_tmp72_, gtk_widget_get_type (), GtkWidget));
+#line 295 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp73_ = gtk_dialog_get_header_bar (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog));
+#line 295 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp74_ = self->priv->service_selector_box;
+#line 295 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_header_bar_pack_end (G_TYPE_CHECK_INSTANCE_CAST (_tmp73_, gtk_header_bar_get_type (), GtkHeaderBar), G_TYPE_CHECK_INSTANCE_CAST (_tmp74_, gtk_widget_get_type (), GtkWidget));
+#line 2041 "DataImportsUI.c"
+ } else {
+ GtkWidget* _tmp75_ = NULL;
+ GtkButton* _tmp76_ = NULL;
+#line 298 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp75_ = gtk_dialog_get_action_area (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog));
+#line 298 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp76_ = self->priv->close_cancel_button;
+#line 298 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (_tmp75_, gtk_box_get_type (), GtkBox), gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp76_, gtk_widget_get_type (), GtkWidget));
+#line 2051 "DataImportsUI.c"
+ }
+#line 300 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ data_imports_ui_data_imports_dialog_set_standard_window_mode (self);
+#line 302 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp77_ = loaded_services;
+#line 302 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp77__length1 = loaded_services_length1;
+#line 302 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ if (_tmp77__length1 > 0) {
+#line 304 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ data_imports_ui_data_imports_dialog_on_service_changed (self);
+#line 2063 "DataImportsUI.c"
+ } else {
+ DataImportsUIStaticMessagePane* _tmp78_ = NULL;
+ DataImportsUIStaticMessagePane* _tmp79_ = NULL;
+#line 307 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp78_ = data_imports_ui_static_message_pane_new_with_pango (DATA_IMPORTS_UI_NO_PLUGINS_ENABLED_MESSAGE);
+#line 307 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp79_ = _tmp78_;
+#line 307 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ data_imports_ui_data_imports_dialog_install_pane (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp79_, SPIT_DATA_IMPORTS_TYPE_DIALOG_PANE, SpitDataImportsDialogPane));
+#line 307 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (_tmp79_);
+#line 308 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ data_imports_ui_data_imports_dialog_set_close_button_mode (self);
+#line 2077 "DataImportsUI.c"
+ }
+#line 311 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
+#line 210 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ loaded_services = (_vala_array_free (loaded_services, loaded_services_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 210 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_free0 (label);
+#line 210 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_free0 (title);
+#line 210 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ return self;
+#line 2089 "DataImportsUI.c"
+}
+
+
+DataImportsUIDataImportsDialog* data_imports_ui_data_imports_dialog_new (void) {
+#line 210 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ return data_imports_ui_data_imports_dialog_construct (DATA_IMPORTS_UI_TYPE_DATA_IMPORTS_DIALOG);
+#line 2096 "DataImportsUI.c"
+}
+
+
+DataImportsUIDataImportsDialog* data_imports_ui_data_imports_dialog_get_or_create_instance (void) {
+ DataImportsUIDataImportsDialog* result = NULL;
+ DataImportsUIDataImportsDialog* _tmp0_ = NULL;
+ DataImportsUIDataImportsDialog* _tmp2_ = NULL;
+ DataImportsUIDataImportsDialog* _tmp3_ = NULL;
+#line 315 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp0_ = data_imports_ui_data_imports_dialog_instance;
+#line 315 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ if (_tmp0_ == NULL) {
+#line 2109 "DataImportsUI.c"
+ DataImportsUIDataImportsDialog* _tmp1_ = NULL;
+#line 316 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp1_ = data_imports_ui_data_imports_dialog_new ();
+#line 316 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_object_ref_sink (_tmp1_);
+#line 316 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (data_imports_ui_data_imports_dialog_instance);
+#line 316 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ data_imports_ui_data_imports_dialog_instance = _tmp1_;
+#line 2119 "DataImportsUI.c"
+ }
+#line 318 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp2_ = data_imports_ui_data_imports_dialog_instance;
+#line 318 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp3_ = _g_object_ref0 (_tmp2_);
+#line 318 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ result = _tmp3_;
+#line 318 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ return result;
+#line 2129 "DataImportsUI.c"
+}
+
+
+void data_imports_ui_data_imports_dialog_terminate_instance (void) {
+ DataImportsUIDataImportsDialog* _tmp0_ = NULL;
+#line 322 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp0_ = data_imports_ui_data_imports_dialog_instance;
+#line 322 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ if (_tmp0_ != NULL) {
+#line 2139 "DataImportsUI.c"
+ DataImportsUIDataImportsDialog* _tmp1_ = NULL;
+#line 323 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp1_ = data_imports_ui_data_imports_dialog_instance;
+#line 323 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ data_imports_ui_data_imports_dialog_terminate (_tmp1_);
+#line 2145 "DataImportsUI.c"
+ }
+#line 325 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (data_imports_ui_data_imports_dialog_instance);
+#line 325 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ data_imports_ui_data_imports_dialog_instance = NULL;
+#line 2151 "DataImportsUI.c"
+}
+
+
+static gboolean data_imports_ui_data_imports_dialog_on_window_close (DataImportsUIDataImportsDialog* self, GdkEventAny* evt) {
+ gboolean result = FALSE;
+#line 328 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_return_val_if_fail (DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG (self), FALSE);
+#line 328 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_return_val_if_fail (evt != NULL, FALSE);
+#line 329 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_debug ("DataImportsUI.vala:329: DataImportsDialog: on_window_close( ): invoked" \
+".");
+#line 330 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ data_imports_ui_data_imports_dialog_terminate (self);
+#line 332 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ result = TRUE;
+#line 332 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ return result;
+#line 2169 "DataImportsUI.c"
+}
+
+
+static void data_imports_ui_data_imports_dialog_on_service_changed (DataImportsUIDataImportsDialog* self) {
+ gchar* service_name = NULL;
+ GtkComboBoxText* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ SpitDataImportsService* selected_service = NULL;
+ SpitDataImportsService** services = NULL;
+ gint _tmp2_ = 0;
+ SpitDataImportsService** _tmp3_ = NULL;
+ gint services_length1 = 0;
+ gint _services_size_ = 0;
+ SpitDataImportsService** _tmp4_ = NULL;
+ gint _tmp4__length1 = 0;
+ SpitDataImportsService* _tmp11_ = NULL;
+ ConfigFacade* _tmp12_ = NULL;
+ ConfigFacade* _tmp13_ = NULL;
+ SpitDataImportsService* _tmp14_ = NULL;
+ const gchar* _tmp15_ = NULL;
+ SpitDataImportsService* _tmp16_ = NULL;
+ SpitDataImportsConcreteDataImportsHost* _tmp17_ = NULL;
+ SpitDataImportsConcreteDataImportsHost* _tmp18_ = NULL;
+#line 335 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_return_if_fail (DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG (self));
+#line 336 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_debug ("DataImportsUI.vala:336: DataImportsDialog: on_service_changed invoked.");
+#line 337 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp0_ = self->priv->service_selector_box;
+#line 337 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp1_ = gtk_combo_box_text_get_active_text (_tmp0_);
+#line 337 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ service_name = _tmp1_;
+#line 339 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ selected_service = NULL;
+#line 340 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp3_ = spit_data_imports_load_all_services (&_tmp2_);
+#line 340 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ services = _tmp3_;
+#line 340 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ services_length1 = _tmp2_;
+#line 340 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _services_size_ = services_length1;
+#line 341 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp4_ = services;
+#line 341 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp4__length1 = services_length1;
+#line 2217 "DataImportsUI.c"
+ {
+ SpitDataImportsService** service_collection = NULL;
+ gint service_collection_length1 = 0;
+ gint _service_collection_size_ = 0;
+ gint service_it = 0;
+#line 341 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ service_collection = _tmp4_;
+#line 341 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ service_collection_length1 = _tmp4__length1;
+#line 341 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ for (service_it = 0; service_it < _tmp4__length1; service_it = service_it + 1) {
+#line 2229 "DataImportsUI.c"
+ SpitDataImportsService* _tmp5_ = NULL;
+ SpitDataImportsService* service = NULL;
+#line 341 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp5_ = _g_object_ref0 (service_collection[service_it]);
+#line 341 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ service = _tmp5_;
+#line 2236 "DataImportsUI.c"
+ {
+ SpitDataImportsService* _tmp6_ = NULL;
+ const gchar* _tmp7_ = NULL;
+ const gchar* _tmp8_ = NULL;
+#line 342 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp6_ = service;
+#line 342 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp7_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
+#line 342 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp8_ = service_name;
+#line 342 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ if (g_strcmp0 (_tmp7_, _tmp8_) == 0) {
+#line 2249 "DataImportsUI.c"
+ SpitDataImportsService* _tmp9_ = NULL;
+ SpitDataImportsService* _tmp10_ = NULL;
+#line 343 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp9_ = service;
+#line 343 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp10_ = _g_object_ref0 (_tmp9_);
+#line 343 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (selected_service);
+#line 343 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ selected_service = _tmp10_;
+#line 344 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (service);
+#line 344 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ break;
+#line 2264 "DataImportsUI.c"
+ }
+#line 341 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (service);
+#line 2268 "DataImportsUI.c"
+ }
+ }
+ }
+#line 347 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp11_ = selected_service;
+#line 347 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _vala_assert (_tmp11_ != NULL, "selected_service != null");
+#line 349 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp12_ = config_facade_get_instance ();
+#line 349 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp13_ = _tmp12_;
+#line 349 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp14_ = selected_service;
+#line 349 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp15_ = spit_pluggable_get_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
+#line 349 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ configuration_facade_set_last_used_dataimports_service (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp15_);
+#line 349 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (_tmp13_);
+#line 351 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp16_ = selected_service;
+#line 351 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp17_ = spit_data_imports_concrete_data_imports_host_new (_tmp16_, self);
+#line 351 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (self->priv->host);
+#line 351 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ self->priv->host = _tmp17_;
+#line 352 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp18_ = self->priv->host;
+#line 352 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ spit_data_imports_plugin_host_start_importing (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost));
+#line 335 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ services = (_vala_array_free (services, services_length1, (GDestroyNotify) g_object_unref), NULL);
+#line 335 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (selected_service);
+#line 335 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_free0 (service_name);
+#line 2306 "DataImportsUI.c"
+}
+
+
+static void data_imports_ui_data_imports_dialog_on_close_cancel_clicked (DataImportsUIDataImportsDialog* self) {
+#line 355 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_return_if_fail (DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG (self));
+#line 356 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_debug ("DataImportsUI.vala:356: DataImportsDialog: on_close_cancel_clicked( ):" \
+" invoked.");
+#line 358 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ data_imports_ui_data_imports_dialog_terminate (self);
+#line 2317 "DataImportsUI.c"
+}
+
+
+static void data_imports_ui_data_imports_dialog_terminate (DataImportsUIDataImportsDialog* self) {
+ SpitDataImportsConcreteDataImportsHost* _tmp0_ = NULL;
+#line 361 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_return_if_fail (DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG (self));
+#line 362 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_debug ("DataImportsUI.vala:362: DataImportsDialog: terminate( ): invoked.");
+#line 364 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp0_ = self->priv->host;
+#line 364 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ if (_tmp0_ != NULL) {
+#line 2331 "DataImportsUI.c"
+ SpitDataImportsConcreteDataImportsHost* _tmp1_ = NULL;
+#line 365 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp1_ = self->priv->host;
+#line 365 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ spit_data_imports_plugin_host_stop_importing (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost));
+#line 366 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (self->priv->host);
+#line 366 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ self->priv->host = NULL;
+#line 2341 "DataImportsUI.c"
+ }
+#line 369 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
+#line 370 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
+#line 371 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (data_imports_ui_data_imports_dialog_instance);
+#line 371 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ data_imports_ui_data_imports_dialog_instance = NULL;
+#line 2351 "DataImportsUI.c"
+}
+
+
+static void data_imports_ui_data_imports_dialog_set_large_window_mode (DataImportsUIDataImportsDialog* self) {
+ GtkBox* _tmp0_ = NULL;
+#line 374 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_return_if_fail (DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG (self));
+#line 375 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_LARGE_WINDOW_WIDTH, DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_LARGE_WINDOW_HEIGHT);
+#line 376 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp0_ = self->priv->central_area_layouter;
+#line 376 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_LARGE_WINDOW_WIDTH - DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_BORDER_REGION_WIDTH, DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_LARGE_WINDOW_HEIGHT - DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_BORDER_REGION_HEIGHT);
+#line 378 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_window_set_resizable (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), FALSE);
+#line 2367 "DataImportsUI.c"
+}
+
+
+static void data_imports_ui_data_imports_dialog_set_colossal_window_mode (DataImportsUIDataImportsDialog* self) {
+ GtkBox* _tmp0_ = NULL;
+#line 381 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_return_if_fail (DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG (self));
+#line 382 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_COLOSSAL_WINDOW_WIDTH, DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_COLOSSAL_WINDOW_HEIGHT);
+#line 383 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp0_ = self->priv->central_area_layouter;
+#line 383 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_COLOSSAL_WINDOW_WIDTH - DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_BORDER_REGION_WIDTH, DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_COLOSSAL_WINDOW_HEIGHT - DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_BORDER_REGION_HEIGHT);
+#line 385 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_window_set_resizable (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), FALSE);
+#line 2383 "DataImportsUI.c"
+}
+
+
+static void data_imports_ui_data_imports_dialog_set_standard_window_mode (DataImportsUIDataImportsDialog* self) {
+ GtkBox* _tmp0_ = NULL;
+#line 388 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_return_if_fail (DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG (self));
+#line 389 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_STANDARD_WINDOW_WIDTH, DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_STANDARD_WINDOW_HEIGHT);
+#line 390 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp0_ = self->priv->central_area_layouter;
+#line 390 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_STANDARD_WINDOW_WIDTH - DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_BORDER_REGION_WIDTH, DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_STANDARD_WINDOW_HEIGHT - DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_BORDER_REGION_HEIGHT);
+#line 392 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_window_set_resizable (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), FALSE);
+#line 2399 "DataImportsUI.c"
+}
+
+
+static void data_imports_ui_data_imports_dialog_set_free_sizable_window_mode (DataImportsUIDataImportsDialog* self) {
+#line 395 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_return_if_fail (DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG (self));
+#line 396 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_window_set_resizable (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), TRUE);
+#line 2408 "DataImportsUI.c"
+}
+
+
+static void data_imports_ui_data_imports_dialog_clear_free_sizable_window_mode (DataImportsUIDataImportsDialog* self) {
+#line 399 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_return_if_fail (DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG (self));
+#line 400 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_window_set_resizable (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), FALSE);
+#line 2417 "DataImportsUI.c"
+}
+
+
+SpitDataImportsDialogPane* data_imports_ui_data_imports_dialog_get_active_pane (DataImportsUIDataImportsDialog* self) {
+ SpitDataImportsDialogPane* result = NULL;
+ SpitDataImportsDialogPane* _tmp0_ = NULL;
+ SpitDataImportsDialogPane* _tmp1_ = NULL;
+#line 403 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_return_val_if_fail (DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG (self), NULL);
+#line 404 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp0_ = self->priv->active_pane;
+#line 404 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp1_ = _g_object_ref0 (_tmp0_);
+#line 404 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ result = _tmp1_;
+#line 404 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ return result;
+#line 2435 "DataImportsUI.c"
+}
+
+
+void data_imports_ui_data_imports_dialog_set_close_button_mode (DataImportsUIDataImportsDialog* self) {
+ GtkButton* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ GtkButton* _tmp2_ = NULL;
+#line 407 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_return_if_fail (DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG (self));
+#line 408 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp0_ = self->priv->close_cancel_button;
+#line 408 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp1_ = _ ("_Close");
+#line 408 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_button_set_label (_tmp0_, _tmp1_);
+#line 409 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp2_ = self->priv->close_cancel_button;
+#line 409 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_window_set_default (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget));
+#line 2455 "DataImportsUI.c"
+}
+
+
+void data_imports_ui_data_imports_dialog_set_cancel_button_mode (DataImportsUIDataImportsDialog* self) {
+ GtkButton* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+#line 412 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_return_if_fail (DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG (self));
+#line 413 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp0_ = self->priv->close_cancel_button;
+#line 413 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp1_ = _ ("_Cancel");
+#line 413 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_button_set_label (_tmp0_, _tmp1_);
+#line 2470 "DataImportsUI.c"
+}
+
+
+void data_imports_ui_data_imports_dialog_lock_service (DataImportsUIDataImportsDialog* self) {
+ GtkComboBoxText* _tmp0_ = NULL;
+#line 416 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_return_if_fail (DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG (self));
+#line 417 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp0_ = self->priv->service_selector_box;
+#line 417 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), FALSE);
+#line 2482 "DataImportsUI.c"
+}
+
+
+void data_imports_ui_data_imports_dialog_unlock_service (DataImportsUIDataImportsDialog* self) {
+ GtkComboBoxText* _tmp0_ = NULL;
+#line 420 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_return_if_fail (DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG (self));
+#line 421 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp0_ = self->priv->service_selector_box;
+#line 421 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), TRUE);
+#line 2494 "DataImportsUI.c"
+}
+
+
+void data_imports_ui_data_imports_dialog_install_pane (DataImportsUIDataImportsDialog* self, SpitDataImportsDialogPane* pane) {
+ SpitDataImportsDialogPane* _tmp0_ = NULL;
+ GtkBox* _tmp6_ = NULL;
+ SpitDataImportsDialogPane* _tmp7_ = NULL;
+ GtkWidget* _tmp8_ = NULL;
+ GtkWidget* _tmp9_ = NULL;
+ SpitDataImportsDialogPaneGeometryOptions geometry_options = 0;
+ SpitDataImportsDialogPane* _tmp10_ = NULL;
+ SpitDataImportsDialogPaneGeometryOptions _tmp11_ = 0;
+ SpitDataImportsDialogPaneGeometryOptions _tmp12_ = 0;
+ SpitDataImportsDialogPaneGeometryOptions _tmp14_ = 0;
+ SpitDataImportsDialogPane* _tmp15_ = NULL;
+ SpitDataImportsDialogPane* _tmp16_ = NULL;
+ SpitDataImportsDialogPane* _tmp17_ = NULL;
+#line 424 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_return_if_fail (DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG (self));
+#line 424 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_return_if_fail (SPIT_DATA_IMPORTS_IS_DIALOG_PANE (pane));
+#line 425 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_debug ("DataImportsUI.vala:425: DataImportsDialog: install_pane( ): invoked.");
+#line 427 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp0_ = self->priv->active_pane;
+#line 427 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ if (_tmp0_ != NULL) {
+#line 2522 "DataImportsUI.c"
+ SpitDataImportsDialogPane* _tmp1_ = NULL;
+ GtkBox* _tmp2_ = NULL;
+ SpitDataImportsDialogPane* _tmp3_ = NULL;
+ GtkWidget* _tmp4_ = NULL;
+ GtkWidget* _tmp5_ = NULL;
+#line 428 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_debug ("DataImportsUI.vala:428: DataImportsDialog: install_pane( ): a pane is " \
+"already installed; removing it.");
+#line 430 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp1_ = self->priv->active_pane;
+#line 430 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ spit_data_imports_dialog_pane_on_pane_uninstalled (_tmp1_);
+#line 431 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp2_ = self->priv->central_area_layouter;
+#line 431 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp3_ = self->priv->active_pane;
+#line 431 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp4_ = spit_data_imports_dialog_pane_get_widget (_tmp3_);
+#line 431 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp5_ = _tmp4_;
+#line 431 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_container_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_container_get_type (), GtkContainer), _tmp5_);
+#line 431 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (_tmp5_);
+#line 2546 "DataImportsUI.c"
+ }
+#line 434 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp6_ = self->priv->central_area_layouter;
+#line 434 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp7_ = pane;
+#line 434 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp8_ = spit_data_imports_dialog_pane_get_widget (_tmp7_);
+#line 434 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp9_ = _tmp8_;
+#line 434 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_box_pack_start (_tmp6_, _tmp9_, TRUE, TRUE, (guint) 0);
+#line 434 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (_tmp9_);
+#line 435 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
+#line 437 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp10_ = pane;
+#line 437 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp11_ = spit_data_imports_dialog_pane_get_preferred_geometry (_tmp10_);
+#line 437 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ geometry_options = _tmp11_;
+#line 439 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp12_ = geometry_options;
+#line 439 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ if ((_tmp12_ & SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_EXTENDED_SIZE) != 0) {
+#line 440 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ data_imports_ui_data_imports_dialog_set_large_window_mode (self);
+#line 2574 "DataImportsUI.c"
+ } else {
+ SpitDataImportsDialogPaneGeometryOptions _tmp13_ = 0;
+#line 441 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp13_ = geometry_options;
+#line 441 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ if ((_tmp13_ & SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_COLOSSAL_SIZE) != 0) {
+#line 442 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ data_imports_ui_data_imports_dialog_set_colossal_window_mode (self);
+#line 2583 "DataImportsUI.c"
+ } else {
+#line 444 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ data_imports_ui_data_imports_dialog_set_standard_window_mode (self);
+#line 2587 "DataImportsUI.c"
+ }
+ }
+#line 446 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp14_ = geometry_options;
+#line 446 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ if ((_tmp14_ & SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_RESIZABLE) != 0) {
+#line 447 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ data_imports_ui_data_imports_dialog_set_free_sizable_window_mode (self);
+#line 2596 "DataImportsUI.c"
+ } else {
+#line 449 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ data_imports_ui_data_imports_dialog_clear_free_sizable_window_mode (self);
+#line 2600 "DataImportsUI.c"
+ }
+#line 451 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp15_ = pane;
+#line 451 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp16_ = _g_object_ref0 (_tmp15_);
+#line 451 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (self->priv->active_pane);
+#line 451 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ self->priv->active_pane = _tmp16_;
+#line 452 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _tmp17_ = pane;
+#line 452 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ spit_data_imports_dialog_pane_on_pane_installed (_tmp17_);
+#line 2614 "DataImportsUI.c"
+}
+
+
+static void data_imports_ui_data_imports_dialog_class_init (DataImportsUIDataImportsDialogClass * klass) {
+#line 191 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ data_imports_ui_data_imports_dialog_parent_class = g_type_class_peek_parent (klass);
+#line 191 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ g_type_class_add_private (klass, sizeof (DataImportsUIDataImportsDialogPrivate));
+#line 191 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ G_OBJECT_CLASS (klass)->finalize = data_imports_ui_data_imports_dialog_finalize;
+#line 2625 "DataImportsUI.c"
+}
+
+
+static void data_imports_ui_data_imports_dialog_instance_init (DataImportsUIDataImportsDialog * self) {
+#line 191 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ self->priv = DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_GET_PRIVATE (self);
+#line 2632 "DataImportsUI.c"
+}
+
+
+static void data_imports_ui_data_imports_dialog_finalize (GObject* obj) {
+ DataImportsUIDataImportsDialog * self;
+#line 191 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, DATA_IMPORTS_UI_TYPE_DATA_IMPORTS_DIALOG, DataImportsUIDataImportsDialog);
+#line 204 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (self->priv->service_selector_box);
+#line 205 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (self->priv->central_area_layouter);
+#line 206 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (self->priv->close_cancel_button);
+#line 207 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (self->priv->active_pane);
+#line 208 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ _g_object_unref0 (self->priv->host);
+#line 191 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala"
+ G_OBJECT_CLASS (data_imports_ui_data_imports_dialog_parent_class)->finalize (obj);
+#line 2652 "DataImportsUI.c"
+}
+
+
+GType data_imports_ui_data_imports_dialog_get_type (void) {
+ static volatile gsize data_imports_ui_data_imports_dialog_type_id__volatile = 0;
+ if (g_once_init_enter (&data_imports_ui_data_imports_dialog_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (DataImportsUIDataImportsDialogClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_ui_data_imports_dialog_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsUIDataImportsDialog), 0, (GInstanceInitFunc) data_imports_ui_data_imports_dialog_instance_init, NULL };
+ GType data_imports_ui_data_imports_dialog_type_id;
+ data_imports_ui_data_imports_dialog_type_id = g_type_register_static (gtk_dialog_get_type (), "DataImportsUIDataImportsDialog", &g_define_type_info, 0);
+ g_once_init_leave (&data_imports_ui_data_imports_dialog_type_id__volatile, data_imports_ui_data_imports_dialog_type_id);
+ }
+ return data_imports_ui_data_imports_dialog_type_id__volatile;
+}
+
+
+static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) {
+ if ((array != NULL) && (destroy_func != NULL)) {
+ int i;
+ for (i = 0; i < array_length; i = i + 1) {
+ if (((gpointer*) array)[i] != NULL) {
+ destroy_func (((gpointer*) array)[i]);
+ }
+ }
+ }
+}
+
+
+static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) {
+ _vala_array_destroy (array, array_length, destroy_func);
+ g_free (array);
+}
+
+
+
diff --git a/src/data_imports/mk/data_imports.mk b/src/data_imports/mk/data_imports.mk
deleted file mode 100644
index 771ba74..0000000
--- a/src/data_imports/mk/data_imports.mk
+++ /dev/null
@@ -1,31 +0,0 @@
-
-# UNIT_NAME is the Vala namespace. A file named UNIT_NAME.vala must be in this directory with
-# a init() and terminate() function declared in the namespace.
-UNIT_NAME := DataImports
-
-# UNIT_DIR should match the subdirectory the files are located in. Generally UNIT_NAME in all
-# lowercase. The name of this file should be UNIT_DIR.mk.
-UNIT_DIR := data_imports
-
-# All Vala files in the unit should be listed here with no subdirectory prefix.
-#
-# NOTE: Do *not* include the unit's master file, i.e. UNIT_NAME.vala.
-UNIT_FILES := \
- DataImportsPluginHost.vala \
- DataImportsUI.vala \
- DataImportJob.vala \
- DataImportSource.vala
-
-# Any unit this unit relies upon (and should be initialized before it's initialized) should
-# be listed here using its Vala namespace.
-#
-# NOTE: All units are assumed to rely upon the unit-unit. Do not include that here.
-UNIT_USES :=
-
-# List any additional files that are used in the build process as a part of this unit that should
-# be packaged in the tarball. File names should be relative to the unit's home directory.
-UNIT_RC :=
-
-# unitize.mk must be called at the end of each UNIT_DIR.mk file.
-include unitize.mk
-