summaryrefslogtreecommitdiff
path: root/src/data_imports/DataImportsPluginHost.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2018-07-09 12:10:38 +0200
committerJörg Frings-Fürst <debian@jff.email>2018-07-09 12:10:38 +0200
commit709e2d6f5652ec90c194a4ec2b530bebc6f952cb (patch)
tree496b2f3899e1d5728ee9ae76095cc5056c317447 /src/data_imports/DataImportsPluginHost.c
parentf1353e9ffd34db5f755c7da0b3f9c10638fbfd38 (diff)
parent5c8be07095cc04a6d8a95204b0504fd7ab030154 (diff)
Merge branch 'release/0.28.3-1'0.28.3-1
Diffstat (limited to 'src/data_imports/DataImportsPluginHost.c')
-rw-r--r--src/data_imports/DataImportsPluginHost.c2350
1 files changed, 1286 insertions, 1064 deletions
diff --git a/src/data_imports/DataImportsPluginHost.c b/src/data_imports/DataImportsPluginHost.c
index 0c9913d..6b42fc1 100644
--- a/src/data_imports/DataImportsPluginHost.c
+++ b/src/data_imports/DataImportsPluginHost.c
@@ -1,4 +1,4 @@
-/* DataImportsPluginHost.c generated by valac 0.36.6, the Vala compiler
+/* DataImportsPluginHost.c generated by valac 0.40.4, the Vala compiler
* generated from DataImportsPluginHost.vala, do not modify */
/* Copyright 2016 Software Freedom Conservancy Inc.
@@ -7,6 +7,7 @@
* (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"
@@ -190,6 +191,11 @@ typedef struct _DataImportsUIConcreteDialogPaneClass DataImportsUIConcreteDialog
typedef struct _DataImportsUIProgressPane DataImportsUIProgressPane;
typedef struct _DataImportsUIProgressPaneClass DataImportsUIProgressPaneClass;
+enum {
+ SPIT_DATA_IMPORTS_CONCRETE_DATA_IMPORTS_HOST_0_PROPERTY,
+ SPIT_DATA_IMPORTS_CONCRETE_DATA_IMPORTS_HOST_NUM_PROPERTIES
+};
+static GParamSpec* spit_data_imports_concrete_data_imports_host_properties[SPIT_DATA_IMPORTS_CONCRETE_DATA_IMPORTS_HOST_NUM_PROPERTIES];
#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 ())
@@ -232,6 +238,11 @@ typedef struct _SpitDataImportsWelcomeDataImportsHostPrivate SpitDataImportsWelc
typedef struct _SpitDataImportsWelcomeImportMetaHost SpitDataImportsWelcomeImportMetaHost;
typedef struct _SpitDataImportsWelcomeImportMetaHostClass SpitDataImportsWelcomeImportMetaHostClass;
+enum {
+ SPIT_DATA_IMPORTS_WELCOME_DATA_IMPORTS_HOST_0_PROPERTY,
+ SPIT_DATA_IMPORTS_WELCOME_DATA_IMPORTS_HOST_NUM_PROPERTIES
+};
+static GParamSpec* spit_data_imports_welcome_data_imports_host_properties[SPIT_DATA_IMPORTS_WELCOME_DATA_IMPORTS_HOST_NUM_PROPERTIES];
#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))
@@ -251,6 +262,11 @@ typedef struct _WelcomeServiceEntryIface WelcomeServiceEntryIface;
typedef struct _SpitDataImportsWelcomeImportServiceEntry SpitDataImportsWelcomeImportServiceEntry;
typedef struct _SpitDataImportsWelcomeImportServiceEntryClass SpitDataImportsWelcomeImportServiceEntryClass;
typedef struct _SpitDataImportsWelcomeImportServiceEntryPrivate SpitDataImportsWelcomeImportServiceEntryPrivate;
+enum {
+ SPIT_DATA_IMPORTS_WELCOME_IMPORT_SERVICE_ENTRY_0_PROPERTY,
+ SPIT_DATA_IMPORTS_WELCOME_IMPORT_SERVICE_ENTRY_NUM_PROPERTIES
+};
+static GParamSpec* spit_data_imports_welcome_import_service_entry_properties[SPIT_DATA_IMPORTS_WELCOME_IMPORT_SERVICE_ENTRY_NUM_PROPERTIES];
typedef struct _SpitDataImportsWelcomeImportMetaHostPrivate SpitDataImportsWelcomeImportMetaHostPrivate;
#define TYPE_WELCOME_DIALOG (welcome_dialog_get_type ())
@@ -262,6 +278,11 @@ typedef struct _SpitDataImportsWelcomeImportMetaHostPrivate SpitDataImportsWelco
typedef struct _WelcomeDialog WelcomeDialog;
typedef struct _WelcomeDialogClass WelcomeDialogClass;
+enum {
+ SPIT_DATA_IMPORTS_WELCOME_IMPORT_META_HOST_0_PROPERTY,
+ SPIT_DATA_IMPORTS_WELCOME_IMPORT_META_HOST_NUM_PROPERTIES
+};
+static GParamSpec* spit_data_imports_welcome_import_meta_host_properties[SPIT_DATA_IMPORTS_WELCOME_IMPORT_META_HOST_NUM_PROPERTIES];
typedef struct _ImportManifestPrivate ImportManifestPrivate;
#define TYPE_DATA_OBJECT (data_object_get_type ())
@@ -442,6 +463,7 @@ struct _ImportManifest {
GeeList* already_imported;
GeeList* corrupt_files;
GeeList* all;
+ GTimer* timer;
};
struct _ImportManifestClass {
@@ -463,71 +485,140 @@ 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);
+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);
+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);
+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);
+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);
+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);
+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);
+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);
+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);
+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);
+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 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;
@@ -536,526 +627,610 @@ 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);
+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 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);
+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);
+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);
+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);
+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);
+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);
+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);
+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);
+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_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 SpitDataImportsImportableLibrary** _vala_array_dup21 (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);
+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);
+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);
+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_add69 (SpitDataImportsService** * array, int* length, int* size, SpitDataImportsService* value);
-static gint __lambda23_ (void* a, void* b);
-gint utf8_cs_compare (void* a, void* b);
-static gint ___lambda23____compar_fn_t (void* key1, void* key2);
+static void _vala_array_add72 (SpitDataImportsService** * array,
+ int* length,
+ int* size,
+ SpitDataImportsService* value);
+static gint __lambda25_ (void* a,
+ void* b);
+gint utf8_cs_compare (void* a,
+ void* b);
+static gint ___lambda25____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);
+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);
+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);
+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);
+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) {
+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_;
#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_;
+ self->priv->host = host;
#line 14 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
return self;
-#line 672 "DataImportsPluginHost.c"
+#line 862 "DataImportsPluginHost.c"
}
-SpitDataImportsCoreImporter* spit_data_imports_core_importer_new (SpitDataImportsPluginHost* host) {
+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"
+#line 871 "DataImportsPluginHost.c"
}
-static gint64 _spit_data_imports_import_job_comparator_comparator (void* a, void* b, gpointer self) {
+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"
+#line 884 "DataImportsPluginHost.c"
}
-static gpointer _g_object_ref0 (gpointer self) {
+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"
+#line 893 "DataImportsPluginHost.c"
}
-static void _spit_data_imports_data_import_reporter_batch_import_import_reporter (ImportManifest* manifest, BatchImportRoll* import_roll, gpointer self) {
+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"
+#line 904 "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) {
+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_;
- gdouble _tmp1_;
- const gchar* _tmp2_;
SortedList* jobs = NULL;
- SortedList* _tmp3_;
+ SortedList* _tmp1_;
GeeArrayList* already_imported = NULL;
- GeeArrayList* _tmp4_;
+ GeeArrayList* _tmp2_;
GeeArrayList* failed = NULL;
- GeeArrayList* _tmp5_;
+ GeeArrayList* _tmp3_;
gint item_idx = 0;
gdouble item_progress_delta = 0.0;
- gdouble _tmp6_;
- SpitDataImportsImportableMediaItem** _tmp7_;
- gint _tmp7__length1;
- SpitDataImportsImportableMediaItem** _tmp8_;
- gint _tmp8__length1;
- SortedList* _tmp39_;
- gint _tmp40_;
- gint _tmp41_;
- SpitDataImportsPluginHost* _tmp65_;
- gdouble _tmp66_;
- gdouble _tmp67_;
+ SortedList* _tmp31_;
+ gint _tmp32_;
+ gint _tmp33_;
+ SpitDataImportsPluginHost* _tmp57_;
#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_);
+ spit_data_imports_plugin_host_update_import_progress_pane (_tmp0_, progress, progress_message);
#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, (GDestroyNotify) batch_import_job_unref, _spit_data_imports_import_job_comparator_comparator, NULL);
+ _tmp1_ = sorted_list_new (SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, (GBoxedCopyFunc) batch_import_job_ref, (GDestroyNotify) 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_;
+ jobs = _tmp1_;
#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, (GDestroyNotify) batch_import_job_unref, NULL, NULL, NULL);
+ _tmp2_ = gee_array_list_new (SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, (GBoxedCopyFunc) batch_import_job_ref, (GDestroyNotify) batch_import_job_unref, NULL, NULL, NULL);
#line 28 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- already_imported = _tmp4_;
+ already_imported = _tmp2_;
#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, (GDestroyNotify) batch_import_job_unref, NULL, NULL, NULL);
+ _tmp3_ = gee_array_list_new (SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, (GBoxedCopyFunc) batch_import_job_ref, (GDestroyNotify) batch_import_job_unref, NULL, NULL, NULL);
#line 30 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- failed = _tmp5_;
+ failed = _tmp3_;
#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"
+ item_progress_delta = host_progress_delta / items_length1;
+#line 951 "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_;
+ src_item_collection = items;
#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- src_item_collection_length1 = _tmp8__length1;
+ src_item_collection_length1 = items_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_;
+ for (src_item_it = 0; src_item_it < items_length1; src_item_it = src_item_it + 1) {
+#line 963 "DataImportsPluginHost.c"
+ SpitDataImportsImportableMediaItem* _tmp4_;
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]);
+ _tmp4_ = _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"
+ src_item = _tmp4_;
+#line 970 "DataImportsPluginHost.c"
{
SpitDataImportsDataImportSource* import_source = NULL;
- SpitDataImportsImportableMediaItem* _tmp10_;
- SpitDataImportsDataImportSource* _tmp11_;
- SpitDataImportsDataImportSource* _tmp12_;
- gboolean _tmp13_;
- SpitDataImportsDataImportSource* _tmp21_;
- gboolean _tmp22_;
- SortedList* _tmp30_;
- SpitDataImportsDataImportSource* _tmp31_;
- SpitDataImportsDataImportJob* _tmp32_;
- SpitDataImportsDataImportJob* _tmp33_;
- gint _tmp34_;
- SpitDataImportsPluginHost* _tmp35_;
- gdouble _tmp36_;
- gint _tmp37_;
- gdouble _tmp38_;
+ SpitDataImportsImportableMediaItem* _tmp5_;
+ SpitDataImportsDataImportSource* _tmp6_;
+ SpitDataImportsDataImportSource* _tmp7_;
+ SpitDataImportsDataImportSource* _tmp15_;
+ SortedList* _tmp23_;
+ SpitDataImportsDataImportSource* _tmp24_;
+ SpitDataImportsDataImportJob* _tmp25_;
+ SpitDataImportsDataImportJob* _tmp26_;
+ gint _tmp27_;
+ SpitDataImportsPluginHost* _tmp28_;
+ gint _tmp29_;
+ gdouble _tmp30_;
#line 36 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp10_ = src_item;
+ _tmp5_ = src_item;
#line 36 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp11_ = spit_data_imports_data_import_source_new (_tmp10_);
+ _tmp6_ = spit_data_imports_data_import_source_new (_tmp5_);
#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;
+ import_source = _tmp6_;
#line 38 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp13_ = spit_data_imports_data_import_source_was_backing_file_found (_tmp12_);
+ _tmp7_ = import_source;
#line 38 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- if (!_tmp13_) {
-#line 814 "DataImportsPluginHost.c"
- SpitDataImportsDataImportSource* _tmp14_;
- gchar* _tmp15_;
- gchar* _tmp16_;
- GeeArrayList* _tmp17_;
- SpitDataImportsDataImportSource* _tmp18_;
- SpitDataImportsDataImportJob* _tmp19_;
- SpitDataImportsDataImportJob* _tmp20_;
+ if (!spit_data_imports_data_import_source_was_backing_file_found (_tmp7_)) {
+#line 995 "DataImportsPluginHost.c"
+ SpitDataImportsDataImportSource* _tmp8_;
+ gchar* _tmp9_;
+ gchar* _tmp10_;
+ GeeArrayList* _tmp11_;
+ SpitDataImportsDataImportSource* _tmp12_;
+ SpitDataImportsDataImportJob* _tmp13_;
+ SpitDataImportsDataImportJob* _tmp14_;
#line 39 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp14_ = import_source;
+ _tmp8_ = import_source;
#line 39 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp15_ = spit_data_imports_data_import_source_get_filename (_tmp14_);
+ _tmp9_ = spit_data_imports_data_import_source_get_filename (_tmp8_);
#line 39 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp16_ = _tmp15_;
+ _tmp10_ = _tmp9_;
#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_);
+" found", _tmp10_);
#line 39 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_free0 (_tmp16_);
+ _g_free0 (_tmp10_);
#line 41 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp17_ = failed;
+ _tmp11_ = failed;
#line 41 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp18_ = import_source;
+ _tmp12_ = import_source;
#line 41 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp19_ = spit_data_imports_data_import_job_new (_tmp18_);
+ _tmp13_ = spit_data_imports_data_import_job_new (_tmp12_);
#line 41 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp20_ = _tmp19_;
+ _tmp14_ = _tmp13_;
#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_);
+ gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp14_);
#line 41 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _batch_import_job_unref0 (_tmp20_);
+ _batch_import_job_unref0 (_tmp14_);
#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 1031 "DataImportsPluginHost.c"
}
#line 46 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp21_ = import_source;
+ _tmp15_ = 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_;
- gchar* _tmp24_;
- gchar* _tmp25_;
- GeeArrayList* _tmp26_;
- SpitDataImportsDataImportSource* _tmp27_;
- SpitDataImportsDataImportJob* _tmp28_;
- SpitDataImportsDataImportJob* _tmp29_;
+ if (spit_data_imports_data_import_source_is_already_imported (_tmp15_)) {
+#line 1037 "DataImportsPluginHost.c"
+ SpitDataImportsDataImportSource* _tmp16_;
+ gchar* _tmp17_;
+ gchar* _tmp18_;
+ GeeArrayList* _tmp19_;
+ SpitDataImportsDataImportSource* _tmp20_;
+ SpitDataImportsDataImportJob* _tmp21_;
+ SpitDataImportsDataImportJob* _tmp22_;
#line 47 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp23_ = import_source;
+ _tmp16_ = import_source;
#line 47 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp24_ = spit_data_imports_data_import_source_get_filename (_tmp23_);
+ _tmp17_ = spit_data_imports_data_import_source_get_filename (_tmp16_);
#line 47 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp25_ = _tmp24_;
+ _tmp18_ = _tmp17_;
#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_);
+"d in library", _tmp18_);
#line 47 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_free0 (_tmp25_);
+ _g_free0 (_tmp18_);
#line 49 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp26_ = already_imported;
+ _tmp19_ = already_imported;
#line 49 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp27_ = import_source;
+ _tmp20_ = import_source;
#line 49 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp28_ = spit_data_imports_data_import_job_new (_tmp27_);
+ _tmp21_ = spit_data_imports_data_import_job_new (_tmp20_);
#line 49 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp29_ = _tmp28_;
+ _tmp22_ = _tmp21_;
#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_);
+ gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp22_);
#line 49 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _batch_import_job_unref0 (_tmp29_);
+ _batch_import_job_unref0 (_tmp22_);
#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 1073 "DataImportsPluginHost.c"
}
#line 54 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp30_ = jobs;
+ _tmp23_ = jobs;
#line 54 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp31_ = import_source;
+ _tmp24_ = import_source;
#line 54 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp32_ = spit_data_imports_data_import_job_new (_tmp31_);
+ _tmp25_ = spit_data_imports_data_import_job_new (_tmp24_);
#line 54 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp33_ = _tmp32_;
+ _tmp26_ = _tmp25_;
#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_);
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_COLLECTION, GeeCollection), _tmp26_);
#line 54 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _batch_import_job_unref0 (_tmp33_);
+ _batch_import_job_unref0 (_tmp26_);
#line 55 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp34_ = item_idx;
+ _tmp27_ = item_idx;
#line 55 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- item_idx = _tmp34_ + 1;
+ item_idx = _tmp27_ + 1;
#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp35_ = self->priv->host;
+ _tmp28_ = self->priv->host;
#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp36_ = progress;
+ _tmp29_ = item_idx;
#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp37_ = item_idx;
+ _tmp30_ = item_progress_delta;
#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);
+ spit_data_imports_plugin_host_update_import_progress_pane (_tmp28_, progress + (_tmp29_ * _tmp30_), 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 1103 "DataImportsPluginHost.c"
}
}
}
#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp39_ = jobs;
+ _tmp31_ = 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));
+ _tmp32_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, GEE_TYPE_COLLECTION, GeeCollection));
#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp41_ = _tmp40_;
+ _tmp33_ = _tmp32_;
#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- if (_tmp41_ > 0) {
-#line 938 "DataImportsPluginHost.c"
- BatchImportRoll* _tmp42_;
+ if (_tmp33_ > 0) {
+#line 1115 "DataImportsPluginHost.c"
+ BatchImportRoll* _tmp34_;
gchar* db_name = NULL;
- SpitDataImportsPluginHost* _tmp44_;
- SpitDataImportsDataImporter* _tmp45_;
- SpitDataImportsDataImporter* _tmp46_;
- SpitDataImportsService* _tmp47_;
- SpitDataImportsService* _tmp48_;
- const gchar* _tmp49_;
- gchar* _tmp50_;
- gchar* _tmp51_;
+ SpitDataImportsPluginHost* _tmp36_;
+ SpitDataImportsDataImporter* _tmp37_;
+ SpitDataImportsDataImporter* _tmp38_;
+ SpitDataImportsService* _tmp39_;
+ SpitDataImportsService* _tmp40_;
+ const gchar* _tmp41_;
+ gchar* _tmp42_;
+ gchar* _tmp43_;
BatchImport* batch_import = NULL;
- SortedList* _tmp52_;
- const gchar* _tmp53_;
- GeeArrayList* _tmp54_;
- GeeArrayList* _tmp55_;
- BatchImportRoll* _tmp56_;
- BatchImport* _tmp57_;
- LibraryWindow* _tmp58_;
- LibraryWindow* _tmp59_;
- BatchImport* _tmp60_;
- gint _tmp61_;
- SortedList* _tmp62_;
- gint _tmp63_;
- gint _tmp64_;
+ SortedList* _tmp44_;
+ const gchar* _tmp45_;
+ GeeArrayList* _tmp46_;
+ GeeArrayList* _tmp47_;
+ BatchImportRoll* _tmp48_;
+ BatchImport* _tmp49_;
+ LibraryWindow* _tmp50_;
+ LibraryWindow* _tmp51_;
+ BatchImport* _tmp52_;
+ gint _tmp53_;
+ SortedList* _tmp54_;
+ gint _tmp55_;
+ gint _tmp56_;
#line 63 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp42_ = self->current_import_roll;
+ _tmp34_ = self->current_import_roll;
#line 63 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- if (_tmp42_ == NULL) {
-#line 967 "DataImportsPluginHost.c"
- BatchImportRoll* _tmp43_;
+ if (_tmp34_ == NULL) {
+#line 1144 "DataImportsPluginHost.c"
+ BatchImportRoll* _tmp35_;
#line 64 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp43_ = batch_import_roll_new ();
+ _tmp35_ = 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 975 "DataImportsPluginHost.c"
+ self->current_import_roll = _tmp35_;
+#line 1152 "DataImportsPluginHost.c"
}
#line 65 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp44_ = self->priv->host;
+ _tmp36_ = self->priv->host;
#line 65 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp45_ = spit_data_imports_plugin_host_get_data_importer (_tmp44_);
+ _tmp37_ = spit_data_imports_plugin_host_get_data_importer (_tmp36_);
#line 65 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp46_ = _tmp45_;
+ _tmp38_ = _tmp37_;
#line 65 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp47_ = spit_data_imports_data_importer_get_service (_tmp46_);
+ _tmp39_ = spit_data_imports_data_importer_get_service (_tmp38_);
#line 65 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp48_ = _tmp47_;
+ _tmp40_ = _tmp39_;
#line 65 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp49_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
+ _tmp41_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
#line 65 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp50_ = g_strdup_printf (_ ("%s Database"), _tmp49_);
+ _tmp42_ = g_strdup_printf (_ ("%s Database"), _tmp41_);
#line 65 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp51_ = _tmp50_;
+ _tmp43_ = _tmp42_;
#line 65 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (_tmp48_);
+ _g_object_unref0 (_tmp40_);
#line 65 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (_tmp46_);
+ _g_object_unref0 (_tmp38_);
#line 65 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- db_name = _tmp51_;
+ db_name = _tmp43_;
#line 66 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp52_ = jobs;
+ _tmp44_ = jobs;
#line 66 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp53_ = db_name;
+ _tmp45_ = db_name;
#line 66 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp54_ = failed;
+ _tmp46_ = failed;
#line 66 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp55_ = already_imported;
+ _tmp47_ = already_imported;
#line 66 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp56_ = self->current_import_roll;
+ _tmp48_ = self->current_import_roll;
#line 66 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp57_ = batch_import_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, GEE_TYPE_ITERABLE, GeeIterable), _tmp53_, _spit_data_imports_data_import_reporter_batch_import_import_reporter, NULL, _tmp54_, _tmp55_, NULL, _tmp56_, NULL);
+ _tmp49_ = batch_import_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, GEE_TYPE_ITERABLE, GeeIterable), _tmp45_, _spit_data_imports_data_import_reporter_batch_import_import_reporter, NULL, _tmp46_, _tmp47_, NULL, _tmp48_, NULL);
#line 66 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- batch_import = _tmp57_;
+ batch_import = _tmp49_;
#line 69 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp58_ = library_window_get_app ();
+ _tmp50_ = library_window_get_app ();
#line 69 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp59_ = _tmp58_;
+ _tmp51_ = _tmp50_;
#line 69 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp60_ = batch_import;
+ _tmp52_ = batch_import;
#line 69 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- library_window_enqueue_batch_import (_tmp59_, _tmp60_, TRUE);
+ library_window_enqueue_batch_import (_tmp51_, _tmp52_, TRUE);
#line 69 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (_tmp59_);
+ _g_object_unref0 (_tmp51_);
#line 70 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp61_ = self->imported_items_count;
+ _tmp53_ = self->imported_items_count;
#line 70 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp62_ = jobs;
+ _tmp54_ = jobs;
#line 70 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp63_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp62_, GEE_TYPE_COLLECTION, GeeCollection));
+ _tmp55_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp54_, GEE_TYPE_COLLECTION, GeeCollection));
#line 70 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp64_ = _tmp63_;
+ _tmp56_ = _tmp55_;
#line 70 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self->imported_items_count = _tmp61_ + _tmp64_;
+ self->imported_items_count = _tmp53_ + _tmp56_;
#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 1037 "DataImportsPluginHost.c"
+#line 1214 "DataImportsPluginHost.c"
}
#line 73 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp65_ = self->priv->host;
-#line 73 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp66_ = progress;
+ _tmp57_ = self->priv->host;
#line 73 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp67_ = host_progress_delta;
-#line 73 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- spit_data_imports_plugin_host_update_import_progress_pane (_tmp65_, _tmp66_ + _tmp67_, NULL);
+ spit_data_imports_plugin_host_update_import_progress_pane (_tmp57_, progress + host_progress_delta, 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 1053 "DataImportsPluginHost.c"
+#line 1226 "DataImportsPluginHost.c"
}
-void spit_data_imports_core_importer_finalize_import (SpitDataImportsCoreImporter* self) {
+void
+spit_data_imports_core_importer_finalize_import (SpitDataImportsCoreImporter* self)
+{
gchar* db_name = NULL;
SpitDataImportsPluginHost* _tmp0_;
SpitDataImportsDataImporter* _tmp1_;
@@ -1127,108 +1302,133 @@ void spit_data_imports_core_importer_finalize_import (SpitDataImportsCoreImporte
_g_object_unref0 (batch_import);
#line 76 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
_g_free0 (db_name);
-#line 1129 "DataImportsPluginHost.c"
+#line 1304 "DataImportsPluginHost.c"
}
-static void spit_data_imports_value_core_importer_init (GValue* value) {
+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 1136 "DataImportsPluginHost.c"
+#line 1313 "DataImportsPluginHost.c"
}
-static void spit_data_imports_value_core_importer_free_value (GValue* value) {
+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 1145 "DataImportsPluginHost.c"
+#line 1324 "DataImportsPluginHost.c"
}
}
-static void spit_data_imports_value_core_importer_copy_value (const GValue* src_value, GValue* dest_value) {
+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 1155 "DataImportsPluginHost.c"
+#line 1337 "DataImportsPluginHost.c"
} else {
#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
dest_value->data[0].v_pointer = NULL;
-#line 1159 "DataImportsPluginHost.c"
+#line 1341 "DataImportsPluginHost.c"
}
}
-static gpointer spit_data_imports_value_core_importer_peek_pointer (const GValue* value) {
+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 1167 "DataImportsPluginHost.c"
+#line 1351 "DataImportsPluginHost.c"
}
-static gchar* spit_data_imports_value_core_importer_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+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 1174 "DataImportsPluginHost.c"
+#line 1363 "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 1181 "DataImportsPluginHost.c"
+#line 1370 "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 1185 "DataImportsPluginHost.c"
+#line 1374 "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 1189 "DataImportsPluginHost.c"
+#line 1378 "DataImportsPluginHost.c"
} else {
#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
value->data[0].v_pointer = NULL;
-#line 1193 "DataImportsPluginHost.c"
+#line 1382 "DataImportsPluginHost.c"
}
#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
return NULL;
-#line 1197 "DataImportsPluginHost.c"
+#line 1386 "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) {
+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 1208 "DataImportsPluginHost.c"
+#line 1402 "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 1214 "DataImportsPluginHost.c"
+#line 1408 "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 1218 "DataImportsPluginHost.c"
+#line 1412 "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 1222 "DataImportsPluginHost.c"
+#line 1416 "DataImportsPluginHost.c"
}
#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
return NULL;
-#line 1226 "DataImportsPluginHost.c"
+#line 1420 "DataImportsPluginHost.c"
}
-GParamSpec* spit_data_imports_param_spec_core_importer (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+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);
@@ -1238,20 +1438,25 @@ GParamSpec* spit_data_imports_param_spec_core_importer (const gchar* name, const
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 1240 "DataImportsPluginHost.c"
+#line 1440 "DataImportsPluginHost.c"
}
-gpointer spit_data_imports_value_get_core_importer (const GValue* value) {
+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 1249 "DataImportsPluginHost.c"
+#line 1451 "DataImportsPluginHost.c"
}
-void spit_data_imports_value_set_core_importer (GValue* value, gpointer v_object) {
+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));
@@ -1267,22 +1472,25 @@ void spit_data_imports_value_set_core_importer (GValue* value, gpointer v_object
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 1269 "DataImportsPluginHost.c"
+#line 1474 "DataImportsPluginHost.c"
} else {
#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
value->data[0].v_pointer = NULL;
-#line 1273 "DataImportsPluginHost.c"
+#line 1478 "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 1279 "DataImportsPluginHost.c"
+#line 1484 "DataImportsPluginHost.c"
}
}
-void spit_data_imports_value_take_core_importer (GValue* value, gpointer v_object) {
+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));
@@ -1296,33 +1504,37 @@ void spit_data_imports_value_take_core_importer (GValue* value, gpointer v_objec
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 1298 "DataImportsPluginHost.c"
+#line 1506 "DataImportsPluginHost.c"
} else {
#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
value->data[0].v_pointer = NULL;
-#line 1302 "DataImportsPluginHost.c"
+#line 1510 "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 1308 "DataImportsPluginHost.c"
+#line 1516 "DataImportsPluginHost.c"
}
}
-static void spit_data_imports_core_importer_class_init (SpitDataImportsCoreImporterClass * klass) {
+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 1320 "DataImportsPluginHost.c"
+#line 1530 "DataImportsPluginHost.c"
}
-static void spit_data_imports_core_importer_instance_init (SpitDataImportsCoreImporter * self) {
+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"
@@ -1331,11 +1543,13 @@ static void spit_data_imports_core_importer_instance_init (SpitDataImportsCoreIm
self->current_import_roll = NULL;
#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
self->ref_count = 1;
-#line 1333 "DataImportsPluginHost.c"
+#line 1545 "DataImportsPluginHost.c"
}
-static void spit_data_imports_core_importer_finalize (SpitDataImportsCoreImporter * obj) {
+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);
@@ -1343,11 +1557,13 @@ static void spit_data_imports_core_importer_finalize (SpitDataImportsCoreImporte
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 1345 "DataImportsPluginHost.c"
+#line 1559 "DataImportsPluginHost.c"
}
-GType spit_data_imports_core_importer_get_type (void) {
+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 };
@@ -1361,18 +1577,22 @@ GType spit_data_imports_core_importer_get_type (void) {
}
-gpointer spit_data_imports_core_importer_ref (gpointer instance) {
+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 1370 "DataImportsPluginHost.c"
+#line 1588 "DataImportsPluginHost.c"
}
-void spit_data_imports_core_importer_unref (gpointer instance) {
+void
+spit_data_imports_core_importer_unref (gpointer instance)
+{
SpitDataImportsCoreImporter * self;
self = instance;
#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
@@ -1381,58 +1601,58 @@ void spit_data_imports_core_importer_unref (gpointer instance) {
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 1383 "DataImportsPluginHost.c"
+#line 1603 "DataImportsPluginHost.c"
}
}
-SpitDataImportsConcreteDataImportsHost* spit_data_imports_concrete_data_imports_host_construct (GType object_type, SpitDataImportsService* service, DataImportsUIDataImportsDialog* dialog) {
+SpitDataImportsConcreteDataImportsHost*
+spit_data_imports_concrete_data_imports_host_construct (GType object_type,
+ SpitDataImportsService* service,
+ DataImportsUIDataImportsDialog* dialog)
+{
SpitDataImportsConcreteDataImportsHost * self = NULL;
- SpitDataImportsService* _tmp0_;
- DataImportsUIDataImportsDialog* _tmp1_;
- SpitDataImportsService* _tmp2_;
- SpitDataImportsDataImporter* _tmp3_;
- SpitDataImportsCoreImporter* _tmp4_;
+ SpitDataImportsDataImporter* _tmp0_;
+ SpitDataImportsCoreImporter* _tmp1_;
#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");
+ self = (SpitDataImportsConcreteDataImportsHost*) plugins_standard_host_interface_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (service, 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;
+ self->priv->dialog = dialog;
#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));
+ _tmp0_ = spit_data_imports_service_create_data_importer (service, 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_;
+ self->priv->active_importer = _tmp0_;
#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));
+ _tmp1_ = 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_;
+ self->priv->core_importer = _tmp1_;
#line 96 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
return self;
-#line 1423 "DataImportsPluginHost.c"
+#line 1638 "DataImportsPluginHost.c"
}
-SpitDataImportsConcreteDataImportsHost* spit_data_imports_concrete_data_imports_host_new (SpitDataImportsService* service, DataImportsUIDataImportsDialog* dialog) {
+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 1430 "DataImportsPluginHost.c"
+#line 1648 "DataImportsPluginHost.c"
}
-static SpitDataImportsDataImporter* spit_data_imports_concrete_data_imports_host_real_get_data_importer (SpitDataImportsPluginHost* base) {
+static SpitDataImportsDataImporter*
+spit_data_imports_concrete_data_imports_host_real_get_data_importer (SpitDataImportsPluginHost* base)
+{
SpitDataImportsConcreteDataImportsHost * self;
SpitDataImportsDataImporter* result = NULL;
SpitDataImportsDataImporter* _tmp0_;
@@ -1447,18 +1667,19 @@ static SpitDataImportsDataImporter* spit_data_imports_concrete_data_imports_host
result = _tmp1_;
#line 105 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
return result;
-#line 1449 "DataImportsPluginHost.c"
+#line 1669 "DataImportsPluginHost.c"
}
-static void spit_data_imports_concrete_data_imports_host_real_start_importing (SpitDataImportsPluginHost* base) {
+static void
+spit_data_imports_concrete_data_imports_host_real_start_importing (SpitDataImportsPluginHost* base)
+{
SpitDataImportsConcreteDataImportsHost * self;
SpitDataImportsDataImporter* _tmp0_;
SpitDataImportsDataImporter* _tmp1_;
gboolean _tmp2_;
- gboolean _tmp3_;
+ SpitDataImportsDataImporter* _tmp3_;
SpitDataImportsDataImporter* _tmp4_;
- SpitDataImportsDataImporter* _tmp5_;
#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"
@@ -1468,36 +1689,35 @@ static void spit_data_imports_concrete_data_imports_host_real_start_importing (S
#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_) {
+ if (_tmp2_) {
#line 110 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
return;
-#line 1477 "DataImportsPluginHost.c"
+#line 1696 "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));
+ _tmp3_ = 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_;
+ _tmp4_ = _tmp3_;
#line 114 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- spit_data_imports_data_importer_start (_tmp5_);
+ spit_data_imports_data_importer_start (_tmp4_);
#line 114 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (_tmp5_);
-#line 1489 "DataImportsPluginHost.c"
+ _g_object_unref0 (_tmp4_);
+#line 1708 "DataImportsPluginHost.c"
}
-static void spit_data_imports_concrete_data_imports_host_real_stop_importing (SpitDataImportsPluginHost* base) {
+static void
+spit_data_imports_concrete_data_imports_host_real_stop_importing (SpitDataImportsPluginHost* base)
+{
SpitDataImportsConcreteDataImportsHost * self;
SpitDataImportsDataImporter* _tmp0_;
SpitDataImportsDataImporter* _tmp1_;
gboolean _tmp2_;
- gboolean _tmp3_;
#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"
@@ -1510,98 +1730,98 @@ static void spit_data_imports_concrete_data_imports_host_real_stop_importing (Sp
#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 1515 "DataImportsPluginHost.c"
+ if (_tmp2_) {
+#line 1733 "DataImportsPluginHost.c"
+ SpitDataImportsDataImporter* _tmp3_;
SpitDataImportsDataImporter* _tmp4_;
- SpitDataImportsDataImporter* _tmp5_;
#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));
+ _tmp3_ = 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_;
+ _tmp4_ = _tmp3_;
#line 121 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- spit_data_imports_data_importer_stop (_tmp5_);
+ spit_data_imports_data_importer_stop (_tmp4_);
#line 121 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (_tmp5_);
-#line 1526 "DataImportsPluginHost.c"
+ _g_object_unref0 (_tmp4_);
+#line 1744 "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 1532 "DataImportsPluginHost.c"
+#line 1750 "DataImportsPluginHost.c"
}
-static void spit_data_imports_concrete_data_imports_host_clean_up (SpitDataImportsConcreteDataImportsHost* self) {
+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 1543 "DataImportsPluginHost.c"
+#line 1763 "DataImportsPluginHost.c"
}
-void spit_data_imports_concrete_data_imports_host_set_button_mode (SpitDataImportsConcreteDataImportsHost* self, SpitDataImportsPluginHostButtonMode mode) {
- SpitDataImportsPluginHostButtonMode _tmp0_;
+void
+spit_data_imports_concrete_data_imports_host_set_button_mode (SpitDataImportsConcreteDataImportsHost* self,
+ SpitDataImportsPluginHostButtonMode mode)
+{
#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 1555 "DataImportsPluginHost.c"
- DataImportsUIDataImportsDialog* _tmp1_;
+ if (mode == SPIT_DATA_IMPORTS_PLUGIN_HOST_BUTTON_MODE_CLOSE) {
+#line 1775 "DataImportsPluginHost.c"
+ DataImportsUIDataImportsDialog* _tmp0_;
#line 134 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp1_ = self->priv->dialog;
+ _tmp0_ = 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 1561 "DataImportsPluginHost.c"
+ data_imports_ui_data_imports_dialog_set_close_button_mode (_tmp0_);
+#line 1781 "DataImportsPluginHost.c"
} else {
- SpitDataImportsPluginHostButtonMode _tmp2_;
-#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 1568 "DataImportsPluginHost.c"
- DataImportsUIDataImportsDialog* _tmp3_;
+ if (mode == SPIT_DATA_IMPORTS_PLUGIN_HOST_BUTTON_MODE_CANCEL) {
+#line 1785 "DataImportsPluginHost.c"
+ DataImportsUIDataImportsDialog* _tmp1_;
#line 136 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp3_ = self->priv->dialog;
+ _tmp1_ = 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 1574 "DataImportsPluginHost.c"
+ data_imports_ui_data_imports_dialog_set_cancel_button_mode (_tmp1_);
+#line 1791 "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 1578 "DataImportsPluginHost.c"
+#line 1795 "DataImportsPluginHost.c"
}
}
}
-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 (SpitDataImportsPluginHost* base,
+ GError* err)
+{
SpitDataImportsConcreteDataImportsHost * self;
- GError* _tmp0_;
- const gchar* _tmp1_;
+ const gchar* _tmp0_;
#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;
+ _tmp0_ = err->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 1596 "DataImportsPluginHost.c"
+ spit_data_imports_plugin_host_post_error_message (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost), _tmp0_);
+#line 1813 "DataImportsPluginHost.c"
}
-static void spit_data_imports_concrete_data_imports_host_real_post_error_message (SpitDataImportsPluginHost* base, const gchar* message) {
+static void
+spit_data_imports_concrete_data_imports_host_real_post_error_message (SpitDataImportsPluginHost* base,
+ const gchar* message)
+{
SpitDataImportsConcreteDataImportsHost * self;
gchar* msg = NULL;
SpitDataImportsDataImporter* _tmp0_;
@@ -1611,20 +1831,19 @@ static void spit_data_imports_concrete_data_imports_host_real_post_error_message
gchar* _tmp4_;
gchar* _tmp5_;
const gchar* _tmp6_;
- const gchar* _tmp7_;
+ gchar* _tmp7_;
gchar* _tmp8_;
gchar* _tmp9_;
- gchar* _tmp10_;
- const gchar* _tmp11_;
- gchar* _tmp12_;
- DataImportsUIDataImportsDialog* _tmp13_;
- const gchar* _tmp14_;
+ const gchar* _tmp10_;
+ gchar* _tmp11_;
+ DataImportsUIDataImportsDialog* _tmp12_;
+ const gchar* _tmp13_;
+ DataImportsUIStaticMessagePane* _tmp14_;
DataImportsUIStaticMessagePane* _tmp15_;
- DataImportsUIStaticMessagePane* _tmp16_;
+ DataImportsUIDataImportsDialog* _tmp16_;
DataImportsUIDataImportsDialog* _tmp17_;
- DataImportsUIDataImportsDialog* _tmp18_;
+ SpitDataImportsDataImporter* _tmp18_;
SpitDataImportsDataImporter* _tmp19_;
- SpitDataImportsDataImporter* _tmp20_;
#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"
@@ -1648,72 +1867,72 @@ static void spit_data_imports_concrete_data_imports_host_real_post_error_message
#line 150 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
_tmp6_ = msg;
#line 150 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp7_ = message;
-#line 150 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp8_ = g_markup_printf_escaped ("\n\n<i>%s</i>\n\n", _tmp7_);
+ _tmp7_ = g_markup_printf_escaped ("\n\n<i>%s</i>\n\n", message);
#line 150 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp9_ = _tmp8_;
+ _tmp8_ = _tmp7_;
#line 150 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp10_ = g_strconcat (_tmp6_, _tmp9_, NULL);
+ _tmp9_ = g_strconcat (_tmp6_, _tmp8_, 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 = _tmp10_;
+ msg = _tmp9_;
#line 150 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_free0 (_tmp9_);
+ _g_free0 (_tmp8_);
#line 151 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp11_ = msg;
+ _tmp10_ = msg;
#line 151 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp12_ = g_strconcat (_tmp11_, _ ("To try importing from another service, select one from the above menu."), NULL);
+ _tmp11_ = g_strconcat (_tmp10_, _ ("To try importing from another service, select one from the above menu."), 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 = _tmp12_;
+ msg = _tmp11_;
#line 153 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp13_ = self->priv->dialog;
+ _tmp12_ = self->priv->dialog;
#line 153 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp14_ = msg;
+ _tmp13_ = msg;
#line 153 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp15_ = data_imports_ui_static_message_pane_new_with_pango (_tmp14_);
+ _tmp14_ = data_imports_ui_static_message_pane_new_with_pango (_tmp13_);
#line 153 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp16_ = _tmp15_;
+ _tmp15_ = _tmp14_;
#line 153 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- data_imports_ui_data_imports_dialog_install_pane (_tmp13_, G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, SPIT_DATA_IMPORTS_TYPE_DIALOG_PANE, SpitDataImportsDialogPane));
+ data_imports_ui_data_imports_dialog_install_pane (_tmp12_, G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, SPIT_DATA_IMPORTS_TYPE_DIALOG_PANE, SpitDataImportsDialogPane));
#line 153 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (_tmp16_);
+ _g_object_unref0 (_tmp15_);
#line 154 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp17_ = self->priv->dialog;
+ _tmp16_ = self->priv->dialog;
#line 154 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- data_imports_ui_data_imports_dialog_set_close_button_mode (_tmp17_);
+ data_imports_ui_data_imports_dialog_set_close_button_mode (_tmp16_);
#line 155 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp18_ = self->priv->dialog;
+ _tmp17_ = self->priv->dialog;
#line 155 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- data_imports_ui_data_imports_dialog_unlock_service (_tmp18_);
+ data_imports_ui_data_imports_dialog_unlock_service (_tmp17_);
#line 157 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp19_ = spit_data_imports_plugin_host_get_data_importer (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost));
+ _tmp18_ = 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"
- _tmp20_ = _tmp19_;
+ _tmp19_ = _tmp18_;
#line 157 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- spit_data_imports_data_importer_stop (_tmp20_);
+ spit_data_imports_data_importer_stop (_tmp19_);
#line 157 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (_tmp20_);
+ _g_object_unref0 (_tmp19_);
#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 1700 "DataImportsPluginHost.c"
+#line 1917 "DataImportsPluginHost.c"
}
-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_dialog_pane (SpitDataImportsPluginHost* base,
+ SpitDataImportsDialogPane* pane,
+ SpitDataImportsPluginHostButtonMode button_mode)
+{
SpitDataImportsConcreteDataImportsHost * self;
gboolean _tmp0_ = FALSE;
SpitDataImportsDataImporter* _tmp1_;
SpitDataImportsDataImporter* _tmp2_;
gboolean _tmp3_;
- DataImportsUIDataImportsDialog* _tmp7_;
- SpitDataImportsDialogPane* _tmp8_;
- SpitDataImportsPluginHostButtonMode _tmp9_;
+ DataImportsUIDataImportsDialog* _tmp6_;
#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"
@@ -1733,183 +1952,162 @@ static void spit_data_imports_concrete_data_imports_host_real_install_dialog_pan
if (_tmp3_) {
#line 169 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
_tmp0_ = TRUE;
-#line 1731 "DataImportsPluginHost.c"
+#line 1950 "DataImportsPluginHost.c"
} else {
SpitDataImportsDataImporter* _tmp4_;
SpitDataImportsDataImporter* _tmp5_;
- gboolean _tmp6_;
#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_;
+ _tmp0_ = !spit_data_imports_data_importer_is_running (_tmp5_);
#line 169 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
_g_object_unref0 (_tmp5_);
-#line 1746 "DataImportsPluginHost.c"
+#line 1962 "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 1752 "DataImportsPluginHost.c"
+#line 1968 "DataImportsPluginHost.c"
}
#line 172 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp7_ = self->priv->dialog;
+ _tmp6_ = 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;
+ data_imports_ui_data_imports_dialog_install_pane (_tmp6_, pane);
#line 174 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- spit_data_imports_concrete_data_imports_host_set_button_mode (self, _tmp9_);
-#line 1764 "DataImportsPluginHost.c"
+ spit_data_imports_concrete_data_imports_host_set_button_mode (self, button_mode);
+#line 1976 "DataImportsPluginHost.c"
}
-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_static_message_pane (SpitDataImportsPluginHost* base,
+ const gchar* message,
+ SpitDataImportsPluginHostButtonMode button_mode)
+{
SpitDataImportsConcreteDataImportsHost * self;
- SpitDataImportsPluginHostButtonMode _tmp0_;
- DataImportsUIDataImportsDialog* _tmp1_;
- const gchar* _tmp2_;
- DataImportsUIStaticMessagePane* _tmp3_;
- DataImportsUIStaticMessagePane* _tmp4_;
+ DataImportsUIDataImportsDialog* _tmp0_;
+ DataImportsUIStaticMessagePane* _tmp1_;
+ DataImportsUIStaticMessagePane* _tmp2_;
#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;
+ spit_data_imports_concrete_data_imports_host_set_button_mode (self, button_mode);
#line 182 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp2_ = message;
+ _tmp0_ = self->priv->dialog;
#line 182 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp3_ = data_imports_ui_static_message_pane_new_with_pango (_tmp2_);
+ _tmp1_ = data_imports_ui_static_message_pane_new_with_pango (message);
#line 182 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp4_ = _tmp3_;
+ _tmp2_ = _tmp1_;
#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));
+ data_imports_ui_data_imports_dialog_install_pane (_tmp0_, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SPIT_DATA_IMPORTS_TYPE_DIALOG_PANE, SpitDataImportsDialogPane));
#line 182 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (_tmp4_);
-#line 1795 "DataImportsPluginHost.c"
+ _g_object_unref0 (_tmp2_);
+#line 2005 "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) {
+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_;
- gint _tmp1__length1;
#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 1814 "DataImportsPluginHost.c"
- const gchar* _tmp2_;
+ if (discovered_libraries_length1 == 0) {
#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 1820 "DataImportsPluginHost.c"
+ _tmp0_ = file_select_label == NULL;
+#line 2026 "DataImportsPluginHost.c"
} else {
#line 190 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
_tmp0_ = FALSE;
-#line 1824 "DataImportsPluginHost.c"
+#line 2030 "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 1830 "DataImportsPluginHost.c"
+#line 2036 "DataImportsPluginHost.c"
} else {
- DataImportsUIDataImportsDialog* _tmp3_;
- const gchar* _tmp4_;
- SpitDataImportsImportableLibrary** _tmp5_;
- gint _tmp5__length1;
- const gchar* _tmp6_;
- DataImportsUILibrarySelectionPane* _tmp7_;
- DataImportsUILibrarySelectionPane* _tmp8_;
-#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;
+ DataImportsUIDataImportsDialog* _tmp1_;
+ DataImportsUILibrarySelectionPane* _tmp2_;
+ DataImportsUILibrarySelectionPane* _tmp3_;
#line 193 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp6_ = file_select_label;
+ _tmp1_ = self->priv->dialog;
#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_);
+ _tmp2_ = data_imports_ui_library_selection_pane_new (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost), welcome_message, discovered_libraries, discovered_libraries_length1, file_select_label);
#line 193 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp8_ = _tmp7_;
+ _tmp3_ = _tmp2_;
#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));
+ data_imports_ui_data_imports_dialog_install_pane (_tmp1_, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, SPIT_DATA_IMPORTS_TYPE_DIALOG_PANE, SpitDataImportsDialogPane));
#line 193 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (_tmp8_);
-#line 1857 "DataImportsPluginHost.c"
+ _g_object_unref0 (_tmp3_);
+#line 2051 "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 1861 "DataImportsPluginHost.c"
+#line 2055 "DataImportsPluginHost.c"
}
-static void spit_data_imports_concrete_data_imports_host_real_install_import_progress_pane (SpitDataImportsPluginHost* base, const gchar* message) {
+static void
+spit_data_imports_concrete_data_imports_host_real_install_import_progress_pane (SpitDataImportsPluginHost* base,
+ const gchar* message)
+{
SpitDataImportsConcreteDataImportsHost * self;
- const gchar* _tmp0_;
- DataImportsUIProgressPane* _tmp1_;
- DataImportsUIDataImportsDialog* _tmp2_;
- DataImportsUIProgressPane* _tmp3_;
+ DataImportsUIProgressPane* _tmp0_;
+ DataImportsUIDataImportsDialog* _tmp1_;
+ DataImportsUIProgressPane* _tmp2_;
+ SpitDataImportsCoreImporter* _tmp3_;
SpitDataImportsCoreImporter* _tmp4_;
- SpitDataImportsCoreImporter* _tmp5_;
#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_);
+ _tmp0_ = data_imports_ui_progress_pane_new (message);
#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_;
+ self->priv->progress_pane = _tmp0_;
#line 206 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp2_ = self->priv->dialog;
+ _tmp1_ = self->priv->dialog;
#line 206 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp3_ = self->priv->progress_pane;
+ _tmp2_ = 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));
+ data_imports_ui_data_imports_dialog_install_pane (_tmp1_, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, 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;
+ _tmp3_ = self->priv->core_importer;
#line 209 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp4_->imported_items_count = 0;
+ _tmp3_->imported_items_count = 0;
#line 210 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp5_ = self->priv->core_importer;
+ _tmp4_ = self->priv->core_importer;
#line 210 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _batch_import_roll_unref0 (_tmp5_->current_import_roll);
+ _batch_import_roll_unref0 (_tmp4_->current_import_roll);
#line 210 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp5_->current_import_roll = NULL;
-#line 1903 "DataImportsPluginHost.c"
+ _tmp4_->current_import_roll = NULL;
+#line 2097 "DataImportsPluginHost.c"
}
-static void spit_data_imports_concrete_data_imports_host_real_update_import_progress_pane (SpitDataImportsPluginHost* base, gdouble progress, const gchar* progress_message) {
+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_;
#line 213 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
@@ -1918,117 +2116,103 @@ static void spit_data_imports_concrete_data_imports_host_real_update_import_prog
_tmp0_ = self->priv->progress_pane;
#line 217 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
if (_tmp0_ != NULL) {
-#line 1916 "DataImportsPluginHost.c"
+#line 2114 "DataImportsPluginHost.c"
DataImportsUIProgressPane* _tmp1_;
- gdouble _tmp2_;
- const gchar* _tmp3_;
#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 1928 "DataImportsPluginHost.c"
+ data_imports_ui_progress_pane_update_progress (_tmp1_, progress, progress_message);
+#line 2120 "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) {
+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_;
- SpitDataImportsImportableMediaItem** _tmp1_;
- gint _tmp1__length1;
- gdouble _tmp2_;
- gdouble _tmp3_;
- const gchar* _tmp4_;
#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 1957 "DataImportsPluginHost.c"
+ spit_data_imports_core_importer_prepare_media_items_for_import (_tmp0_, items, items_length1, progress, host_progress_delta, progress_message);
+#line 2141 "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) {
+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_;
+ SpitDataImportsCoreImporter* _tmp0_;
SpitDataImportsCoreImporter* _tmp1_;
- SpitDataImportsImportedItemsCountCallback _tmp2_;
- void* _tmp2__target;
+ gint _tmp2_;
SpitDataImportsCoreImporter* _tmp3_;
gint _tmp4_;
- SpitDataImportsCoreImporter* _tmp5_;
- gint _tmp6_;
#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_);
+ spit_data_imports_plugin_host_update_import_progress_pane (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost), 1.0, finalize_message);
#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;
+ _tmp0_ = 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;
+ spit_data_imports_core_importer_finalize_import (_tmp0_);
#line 238 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp3_ = self->priv->core_importer;
+ _tmp1_ = self->priv->core_importer;
#line 238 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp4_ = _tmp3_->imported_items_count;
+ _tmp2_ = _tmp1_->imported_items_count;
#line 238 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp2_ (_tmp4_, _tmp2__target);
+ report_imported_items_count (_tmp2_, report_imported_items_count_target);
#line 239 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp5_ = self->priv->core_importer;
+ _tmp3_ = self->priv->core_importer;
#line 239 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp6_ = _tmp5_->imported_items_count;
+ _tmp4_ = _tmp3_->imported_items_count;
#line 239 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- if (_tmp6_ > 0) {
-#line 1999 "DataImportsPluginHost.c"
- LibraryWindow* _tmp7_;
- LibraryWindow* _tmp8_;
+ if (_tmp4_ > 0) {
+#line 2179 "DataImportsPluginHost.c"
+ LibraryWindow* _tmp5_;
+ LibraryWindow* _tmp6_;
#line 240 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp7_ = library_window_get_app ();
+ _tmp5_ = library_window_get_app ();
#line 240 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp8_ = _tmp7_;
+ _tmp6_ = _tmp5_;
#line 240 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- library_window_switch_to_import_queue_page (_tmp8_);
+ library_window_switch_to_import_queue_page (_tmp6_);
#line 240 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (_tmp8_);
-#line 2010 "DataImportsPluginHost.c"
+ _g_object_unref0 (_tmp6_);
+#line 2190 "DataImportsPluginHost.c"
}
}
-static void spit_data_imports_concrete_data_imports_host_class_init (SpitDataImportsConcreteDataImportsHostClass * klass) {
+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 2022 "DataImportsPluginHost.c"
+#line 2204 "DataImportsPluginHost.c"
}
-static void spit_data_imports_concrete_data_imports_host_spit_data_imports_plugin_host_interface_init (SpitDataImportsPluginHostIface * iface) {
+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"
@@ -2055,11 +2239,13 @@ static void spit_data_imports_concrete_data_imports_host_spit_data_imports_plugi
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 2053 "DataImportsPluginHost.c"
+#line 2237 "DataImportsPluginHost.c"
}
-static void spit_data_imports_concrete_data_imports_host_instance_init (SpitDataImportsConcreteDataImportsHost * self) {
+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"
@@ -2070,11 +2256,13 @@ static void spit_data_imports_concrete_data_imports_host_instance_init (SpitData
self->priv->progress_pane = NULL;
#line 93 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
self->priv->importing_halted = FALSE;
-#line 2068 "DataImportsPluginHost.c"
+#line 2254 "DataImportsPluginHost.c"
}
-static void spit_data_imports_concrete_data_imports_host_finalize (GObject * obj) {
+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);
@@ -2086,11 +2274,13 @@ static void spit_data_imports_concrete_data_imports_host_finalize (GObject * obj
_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 2084 "DataImportsPluginHost.c"
+#line 2272 "DataImportsPluginHost.c"
}
-GType spit_data_imports_concrete_data_imports_host_get_type (void) {
+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 };
@@ -2104,53 +2294,53 @@ GType spit_data_imports_concrete_data_imports_host_get_type (void) {
}
-SpitDataImportsWelcomeDataImportsHost* spit_data_imports_welcome_data_imports_host_construct (GType object_type, SpitDataImportsService* service, SpitDataImportsWelcomeImportMetaHost* meta_host) {
+SpitDataImportsWelcomeDataImportsHost*
+spit_data_imports_welcome_data_imports_host_construct (GType object_type,
+ SpitDataImportsService* service,
+ SpitDataImportsWelcomeImportMetaHost* meta_host)
+{
SpitDataImportsWelcomeDataImportsHost * self = NULL;
- SpitDataImportsService* _tmp0_;
- SpitDataImportsService* _tmp1_;
- SpitDataImportsDataImporter* _tmp2_;
- SpitDataImportsCoreImporter* _tmp3_;
- SpitDataImportsWelcomeImportMetaHost* _tmp4_;
+ SpitDataImportsDataImporter* _tmp0_;
+ SpitDataImportsCoreImporter* _tmp1_;
#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;
+ self = (SpitDataImportsWelcomeDataImportsHost*) plugins_standard_host_interface_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (service, SPIT_TYPE_PLUGGABLE, SpitPluggable), "data_imports");
#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));
+ _tmp0_ = spit_data_imports_service_create_data_importer (service, 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_;
+ self->priv->active_importer = _tmp0_;
#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));
+ _tmp1_ = 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_;
+ self->priv->core_importer = _tmp1_;
#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_;
+ self->priv->meta_host = meta_host;
#line 252 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
return self;
-#line 2137 "DataImportsPluginHost.c"
+#line 2322 "DataImportsPluginHost.c"
}
-SpitDataImportsWelcomeDataImportsHost* spit_data_imports_welcome_data_imports_host_new (SpitDataImportsService* service, SpitDataImportsWelcomeImportMetaHost* meta_host) {
+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 2144 "DataImportsPluginHost.c"
+#line 2332 "DataImportsPluginHost.c"
}
-static SpitDataImportsDataImporter* spit_data_imports_welcome_data_imports_host_real_get_data_importer (SpitDataImportsPluginHost* base) {
+static SpitDataImportsDataImporter*
+spit_data_imports_welcome_data_imports_host_real_get_data_importer (SpitDataImportsPluginHost* base)
+{
SpitDataImportsWelcomeDataImportsHost * self;
SpitDataImportsDataImporter* result = NULL;
SpitDataImportsDataImporter* _tmp0_;
@@ -2165,18 +2355,19 @@ static SpitDataImportsDataImporter* spit_data_imports_welcome_data_imports_host_
result = _tmp1_;
#line 261 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
return result;
-#line 2163 "DataImportsPluginHost.c"
+#line 2353 "DataImportsPluginHost.c"
}
-static void spit_data_imports_welcome_data_imports_host_real_start_importing (SpitDataImportsPluginHost* base) {
+static void
+spit_data_imports_welcome_data_imports_host_real_start_importing (SpitDataImportsPluginHost* base)
+{
SpitDataImportsWelcomeDataImportsHost * self;
SpitDataImportsDataImporter* _tmp0_;
SpitDataImportsDataImporter* _tmp1_;
gboolean _tmp2_;
- gboolean _tmp3_;
+ SpitDataImportsDataImporter* _tmp3_;
SpitDataImportsDataImporter* _tmp4_;
- SpitDataImportsDataImporter* _tmp5_;
#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"
@@ -2186,36 +2377,35 @@ static void spit_data_imports_welcome_data_imports_host_real_start_importing (Sp
#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_) {
+ if (_tmp2_) {
#line 266 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
return;
-#line 2191 "DataImportsPluginHost.c"
+#line 2380 "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));
+ _tmp3_ = 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_;
+ _tmp4_ = _tmp3_;
#line 270 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- spit_data_imports_data_importer_start (_tmp5_);
+ spit_data_imports_data_importer_start (_tmp4_);
#line 270 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (_tmp5_);
-#line 2203 "DataImportsPluginHost.c"
+ _g_object_unref0 (_tmp4_);
+#line 2392 "DataImportsPluginHost.c"
}
-static void spit_data_imports_welcome_data_imports_host_real_stop_importing (SpitDataImportsPluginHost* base) {
+static void
+spit_data_imports_welcome_data_imports_host_real_stop_importing (SpitDataImportsPluginHost* base)
+{
SpitDataImportsWelcomeDataImportsHost * self;
SpitDataImportsDataImporter* _tmp0_;
SpitDataImportsDataImporter* _tmp1_;
gboolean _tmp2_;
- gboolean _tmp3_;
#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"
@@ -2228,56 +2418,59 @@ static void spit_data_imports_welcome_data_imports_host_real_stop_importing (Spi
#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 2229 "DataImportsPluginHost.c"
+ if (_tmp2_) {
+#line 2417 "DataImportsPluginHost.c"
+ SpitDataImportsDataImporter* _tmp3_;
SpitDataImportsDataImporter* _tmp4_;
- SpitDataImportsDataImporter* _tmp5_;
#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));
+ _tmp3_ = 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_;
+ _tmp4_ = _tmp3_;
#line 277 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- spit_data_imports_data_importer_stop (_tmp5_);
+ spit_data_imports_data_importer_stop (_tmp4_);
#line 277 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (_tmp5_);
-#line 2240 "DataImportsPluginHost.c"
+ _g_object_unref0 (_tmp4_);
+#line 2428 "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 2246 "DataImportsPluginHost.c"
+#line 2434 "DataImportsPluginHost.c"
}
-static void spit_data_imports_welcome_data_imports_host_clean_up (SpitDataImportsWelcomeDataImportsHost* self) {
+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 2253 "DataImportsPluginHost.c"
+#line 2443 "DataImportsPluginHost.c"
}
-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 (SpitDataImportsPluginHost* base,
+ GError* err)
+{
SpitDataImportsWelcomeDataImportsHost * self;
- GError* _tmp0_;
- const gchar* _tmp1_;
+ const gchar* _tmp0_;
#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;
+ _tmp0_ = err->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 2269 "DataImportsPluginHost.c"
+ spit_data_imports_plugin_host_post_error_message (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost), _tmp0_);
+#line 2459 "DataImportsPluginHost.c"
}
-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_post_error_message (SpitDataImportsPluginHost* base,
+ const gchar* message)
+{
SpitDataImportsWelcomeDataImportsHost * self;
gchar* msg = NULL;
SpitDataImportsDataImporter* _tmp0_;
@@ -2322,31 +2515,45 @@ static void spit_data_imports_welcome_data_imports_host_real_post_error_message
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 2318 "DataImportsPluginHost.c"
+#line 2511 "DataImportsPluginHost.c"
}
-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_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 2328 "DataImportsPluginHost.c"
+#line 2525 "DataImportsPluginHost.c"
}
-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_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 2338 "DataImportsPluginHost.c"
+#line 2539 "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) {
+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_;
SpitDataImportsDataImporter* _tmp1_;
@@ -2355,8 +2562,6 @@ static void spit_data_imports_welcome_data_imports_host_real_install_library_sel
const gchar* _tmp4_;
gchar* _tmp5_;
gchar* _tmp6_;
- SpitDataImportsImportableLibrary** _tmp7_;
- gint _tmp7__length1;
#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"
@@ -2384,109 +2589,101 @@ static void spit_data_imports_welcome_data_imports_host_real_install_library_sel
#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 2385 "DataImportsPluginHost.c"
- SpitDataImportsWelcomeImportMetaHost* _tmp8_;
+ if (discovered_libraries_length1 > 0) {
+#line 2586 "DataImportsPluginHost.c"
+ SpitDataImportsWelcomeImportMetaHost* _tmp7_;
+ SpitDataImportsDataImporter* _tmp8_;
SpitDataImportsDataImporter* _tmp9_;
- SpitDataImportsDataImporter* _tmp10_;
+ SpitDataImportsService* _tmp10_;
SpitDataImportsService* _tmp11_;
- SpitDataImportsService* _tmp12_;
- const gchar* _tmp13_;
- SpitDataImportsImportableLibrary** _tmp14_;
- gint _tmp14__length1;
- SpitDataImportsWelcomeImportServiceEntry* _tmp15_;
- SpitDataImportsWelcomeImportServiceEntry* _tmp16_;
-#line 324 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp8_ = self->priv->meta_host;
+ const gchar* _tmp12_;
+ SpitDataImportsWelcomeImportServiceEntry* _tmp13_;
+ SpitDataImportsWelcomeImportServiceEntry* _tmp14_;
#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));
+ _tmp7_ = self->priv->meta_host;
#line 324 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp10_ = _tmp9_;
+ _tmp8_ = 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"
- _tmp11_ = spit_data_imports_data_importer_get_service (_tmp10_);
+ _tmp9_ = _tmp8_;
#line 324 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp12_ = _tmp11_;
+ _tmp10_ = spit_data_imports_data_importer_get_service (_tmp9_);
#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));
+ _tmp11_ = _tmp10_;
#line 324 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp14_ = discovered_libraries;
+ _tmp12_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, SPIT_TYPE_PLUGGABLE, SpitPluggable));
#line 324 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp14__length1 = discovered_libraries_length1;
+ _tmp13_ = spit_data_imports_welcome_import_service_entry_new (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost), _tmp12_, discovered_libraries, 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);
+ _tmp14_ = _tmp13_;
#line 324 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp16_ = _tmp15_;
+ spit_data_imports_welcome_import_meta_host_install_service_entry (_tmp7_, G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_WELCOME_SERVICE_ENTRY, WelcomeServiceEntry));
#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));
+ _g_object_unref0 (_tmp14_);
#line 324 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_object_unref0 (_tmp16_);
+ _g_object_unref0 (_tmp11_);
#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 2424 "DataImportsPluginHost.c"
+ _g_object_unref0 (_tmp9_);
+#line 2619 "DataImportsPluginHost.c"
}
}
-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_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 2435 "DataImportsPluginHost.c"
+#line 2633 "DataImportsPluginHost.c"
}
-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_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 2443 "DataImportsPluginHost.c"
+#line 2645 "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) {
+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_;
- SpitDataImportsImportableMediaItem** _tmp1_;
- gint _tmp1__length1;
- gdouble _tmp2_;
- gdouble _tmp3_;
- const gchar* _tmp4_;
#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 2471 "DataImportsPluginHost.c"
+ spit_data_imports_core_importer_prepare_media_items_for_import (_tmp0_, items, items_length1, progress, host_progress_delta, progress_message);
+#line 2665 "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) {
+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_;
- SpitDataImportsImportedItemsCountCallback _tmp1_;
- void* _tmp1__target;
- SpitDataImportsCoreImporter* _tmp2_;
- gint _tmp3_;
- SpitDataImportsWelcomeImportMetaHost* _tmp4_;
+ SpitDataImportsCoreImporter* _tmp1_;
+ gint _tmp2_;
+ SpitDataImportsWelcomeImportMetaHost* _tmp3_;
#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"
@@ -2494,35 +2691,35 @@ static void spit_data_imports_welcome_data_imports_host_real_finalize_import (Sp
#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;
+ _tmp1_ = self->priv->core_importer;
#line 359 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp3_ = _tmp2_->imported_items_count;
+ _tmp2_ = _tmp1_->imported_items_count;
#line 359 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp1_ (_tmp3_, _tmp1__target);
+ report_imported_items_count (_tmp2_, report_imported_items_count_target);
#line 360 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp4_ = self->priv->meta_host;
+ _tmp3_ = 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 2503 "DataImportsPluginHost.c"
+ spit_data_imports_welcome_import_meta_host_finalize_import (_tmp3_, self);
+#line 2696 "DataImportsPluginHost.c"
}
-static void spit_data_imports_welcome_data_imports_host_class_init (SpitDataImportsWelcomeDataImportsHostClass * klass) {
+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 2514 "DataImportsPluginHost.c"
+#line 2709 "DataImportsPluginHost.c"
}
-static void spit_data_imports_welcome_data_imports_host_spit_data_imports_plugin_host_interface_init (SpitDataImportsPluginHostIface * iface) {
+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"
@@ -2549,22 +2746,26 @@ static void spit_data_imports_welcome_data_imports_host_spit_data_imports_plugin
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 2545 "DataImportsPluginHost.c"
+#line 2742 "DataImportsPluginHost.c"
}
-static void spit_data_imports_welcome_data_imports_host_instance_init (SpitDataImportsWelcomeDataImportsHost * self) {
+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 2556 "DataImportsPluginHost.c"
+#line 2755 "DataImportsPluginHost.c"
}
-static void spit_data_imports_welcome_data_imports_host_finalize (GObject * obj) {
+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);
@@ -2574,11 +2775,13 @@ static void spit_data_imports_welcome_data_imports_host_finalize (GObject * obj)
_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 2570 "DataImportsPluginHost.c"
+#line 2771 "DataImportsPluginHost.c"
}
-GType spit_data_imports_welcome_data_imports_host_get_type (void) {
+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 };
@@ -2592,37 +2795,42 @@ GType spit_data_imports_welcome_data_imports_host_get_type (void) {
}
-static SpitDataImportsImportableLibrary** _vala_array_dup25 (SpitDataImportsImportableLibrary** self, int length) {
+static SpitDataImportsImportableLibrary**
+_vala_array_dup21 (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 2595 "DataImportsPluginHost.c"
+#line 2801 "DataImportsPluginHost.c"
SpitDataImportsImportableLibrary* _tmp0_;
#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 2601 "DataImportsPluginHost.c"
+#line 2807 "DataImportsPluginHost.c"
}
#line 378 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
return result;
-#line 2605 "DataImportsPluginHost.c"
+#line 2811 "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*
+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_;
- SpitDataImportsPluginHost* _tmp1_;
- const gchar* _tmp2_;
- gchar* _tmp3_;
- SpitDataImportsImportableLibrary** _tmp4_;
- gint _tmp4__length1;
- SpitDataImportsImportableLibrary** _tmp5_;
- gint _tmp5__length1;
+ gchar* _tmp1_;
+ SpitDataImportsImportableLibrary** _tmp2_;
+ gint _tmp2__length1;
#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"
@@ -2630,51 +2838,50 @@ SpitDataImportsWelcomeImportServiceEntry* spit_data_imports_welcome_import_servi
#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_);
+ _tmp0_ = _g_object_ref0 (host);
#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;
+ self->priv->host = _tmp0_;
#line 377 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp3_ = g_strdup (_tmp2_);
+ _tmp1_ = g_strdup (pluggable_name);
#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_;
+ self->priv->pluggable_name = _tmp1_;
#line 378 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp4_ = discovered_libraries;
+ _tmp2_ = (discovered_libraries != NULL) ? _vala_array_dup21 (discovered_libraries, discovered_libraries_length1) : ((gpointer) 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;
+ _tmp2__length1 = discovered_libraries_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_;
+ self->priv->discovered_libraries = _tmp2_;
#line 378 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- self->priv->discovered_libraries_length1 = _tmp5__length1;
+ self->priv->discovered_libraries_length1 = _tmp2__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 2659 "DataImportsPluginHost.c"
+#line 2859 "DataImportsPluginHost.c"
}
-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_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 2666 "DataImportsPluginHost.c"
+#line 2871 "DataImportsPluginHost.c"
}
-static gchar* spit_data_imports_welcome_import_service_entry_real_get_service_name (WelcomeServiceEntry* base) {
+static gchar*
+spit_data_imports_welcome_import_service_entry_real_get_service_name (WelcomeServiceEntry* base)
+{
SpitDataImportsWelcomeImportServiceEntry * self;
gchar* result = NULL;
const gchar* _tmp0_;
@@ -2689,11 +2896,13 @@ static gchar* spit_data_imports_welcome_import_service_entry_real_get_service_na
result = _tmp1_;
#line 382 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
return result;
-#line 2685 "DataImportsPluginHost.c"
+#line 2892 "DataImportsPluginHost.c"
}
-static void spit_data_imports_welcome_import_service_entry_real_execute (WelcomeServiceEntry* base) {
+static void
+spit_data_imports_welcome_import_service_entry_real_execute (WelcomeServiceEntry* base)
+{
SpitDataImportsWelcomeImportServiceEntry * self;
SpitDataImportsImportableLibrary** _tmp0_;
gint _tmp0__length1;
@@ -2703,7 +2912,7 @@ static void spit_data_imports_welcome_import_service_entry_real_execute (Welcome
_tmp0_ = self->priv->discovered_libraries;
#line 386 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
_tmp0__length1 = self->priv->discovered_libraries_length1;
-#line 2699 "DataImportsPluginHost.c"
+#line 2908 "DataImportsPluginHost.c"
{
SpitDataImportsImportableLibrary** library_collection = NULL;
gint library_collection_length1 = 0;
@@ -2715,14 +2924,14 @@ static void spit_data_imports_welcome_import_service_entry_real_execute (Welcome
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 2711 "DataImportsPluginHost.c"
+#line 2920 "DataImportsPluginHost.c"
SpitDataImportsImportableLibrary* _tmp1_;
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 2718 "DataImportsPluginHost.c"
+#line 2927 "DataImportsPluginHost.c"
{
SpitDataImportsPluginHost* _tmp2_;
SpitDataImportsDataImporter* _tmp3_;
@@ -2742,43 +2951,51 @@ static void spit_data_imports_welcome_import_service_entry_real_execute (Welcome
_g_object_unref0 (_tmp4_);
#line 386 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
_g_object_unref0 (library);
-#line 2738 "DataImportsPluginHost.c"
+#line 2947 "DataImportsPluginHost.c"
}
}
}
}
-static void spit_data_imports_welcome_import_service_entry_class_init (SpitDataImportsWelcomeImportServiceEntryClass * klass) {
+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 2752 "DataImportsPluginHost.c"
+#line 2963 "DataImportsPluginHost.c"
}
-static void spit_data_imports_welcome_import_service_entry_welcome_service_entry_interface_init (WelcomeServiceEntryIface * iface) {
+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 2763 "DataImportsPluginHost.c"
+#line 2976 "DataImportsPluginHost.c"
}
-static void spit_data_imports_welcome_import_service_entry_instance_init (SpitDataImportsWelcomeImportServiceEntry * self) {
+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 2770 "DataImportsPluginHost.c"
+#line 2985 "DataImportsPluginHost.c"
}
-static void spit_data_imports_welcome_import_service_entry_finalize (GObject * obj) {
+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);
@@ -2790,11 +3007,13 @@ static void spit_data_imports_welcome_import_service_entry_finalize (GObject * o
_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 2786 "DataImportsPluginHost.c"
+#line 3003 "DataImportsPluginHost.c"
}
-GType spit_data_imports_welcome_import_service_entry_get_type (void) {
+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 };
@@ -2808,36 +3027,40 @@ GType spit_data_imports_welcome_import_service_entry_get_type (void) {
}
-SpitDataImportsWelcomeImportMetaHost* spit_data_imports_welcome_import_meta_host_construct (GType object_type, WelcomeDialog* dialog) {
+SpitDataImportsWelcomeImportMetaHost*
+spit_data_imports_welcome_import_meta_host_construct (GType object_type,
+ WelcomeDialog* dialog)
+{
SpitDataImportsWelcomeImportMetaHost * self = NULL;
WelcomeDialog* _tmp0_;
- WelcomeDialog* _tmp1_;
#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_);
+ _tmp0_ = _g_object_ref0 (dialog);
#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_;
+ self->priv->dialog = _tmp0_;
#line 395 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
return self;
-#line 2822 "DataImportsPluginHost.c"
+#line 3041 "DataImportsPluginHost.c"
}
-SpitDataImportsWelcomeImportMetaHost* spit_data_imports_welcome_import_meta_host_new (WelcomeDialog* dialog) {
+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 2829 "DataImportsPluginHost.c"
+#line 3050 "DataImportsPluginHost.c"
}
-void spit_data_imports_welcome_import_meta_host_start (SpitDataImportsWelcomeImportMetaHost* self) {
+void
+spit_data_imports_welcome_import_meta_host_start (SpitDataImportsWelcomeImportMetaHost* self)
+{
SpitDataImportsService** services = NULL;
gint _tmp0_;
SpitDataImportsService** _tmp1_;
@@ -2859,7 +3082,7 @@ void spit_data_imports_welcome_import_meta_host_start (SpitDataImportsWelcomeImp
_tmp2_ = services;
#line 401 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
_tmp2__length1 = services_length1;
-#line 2855 "DataImportsPluginHost.c"
+#line 3078 "DataImportsPluginHost.c"
{
SpitDataImportsService** service_collection = NULL;
gint service_collection_length1 = 0;
@@ -2871,14 +3094,14 @@ void spit_data_imports_welcome_import_meta_host_start (SpitDataImportsWelcomeImp
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 2867 "DataImportsPluginHost.c"
+#line 3090 "DataImportsPluginHost.c"
SpitDataImportsService* _tmp3_;
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 2874 "DataImportsPluginHost.c"
+#line 3097 "DataImportsPluginHost.c"
{
SpitDataImportsWelcomeDataImportsHost* host = NULL;
SpitDataImportsService* _tmp4_;
@@ -2898,87 +3121,90 @@ void spit_data_imports_welcome_import_meta_host_start (SpitDataImportsWelcomeImp
_g_object_unref0 (host);
#line 401 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
_g_object_unref0 (service);
-#line 2894 "DataImportsPluginHost.c"
+#line 3117 "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 2900 "DataImportsPluginHost.c"
+#line 3123 "DataImportsPluginHost.c"
}
-void spit_data_imports_welcome_import_meta_host_finalize_import (SpitDataImportsWelcomeImportMetaHost* self, SpitDataImportsWelcomeDataImportsHost* host) {
- SpitDataImportsWelcomeDataImportsHost* _tmp0_;
+void
+spit_data_imports_welcome_import_meta_host_finalize_import (SpitDataImportsWelcomeImportMetaHost* self,
+ SpitDataImportsWelcomeDataImportsHost* host)
+{
#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 2914 "DataImportsPluginHost.c"
+ spit_data_imports_plugin_host_stop_importing (G_TYPE_CHECK_INSTANCE_CAST (host, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost));
+#line 3137 "DataImportsPluginHost.c"
}
-void spit_data_imports_welcome_import_meta_host_install_service_entry (SpitDataImportsWelcomeImportMetaHost* self, WelcomeServiceEntry* entry) {
- WelcomeServiceEntry* _tmp0_;
+void
+spit_data_imports_welcome_import_meta_host_install_service_entry (SpitDataImportsWelcomeImportMetaHost* self,
+ WelcomeServiceEntry* entry)
+{
+ gchar* _tmp0_;
gchar* _tmp1_;
gchar* _tmp2_;
gchar* _tmp3_;
- gchar* _tmp4_;
- WelcomeDialog* _tmp5_;
- WelcomeServiceEntry* _tmp6_;
+ WelcomeDialog* _tmp4_;
#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;
+ _tmp0_ = welcome_service_entry_get_service_name (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_;
+ _tmp1_ = _tmp0_;
#line 412 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp3_ = g_strdup_printf ("WelcomeImportMetaHost: Installing service entry for %s", _tmp2_);
+ _tmp2_ = g_strdup_printf ("WelcomeImportMetaHost: Installing service entry for %s", _tmp1_);
#line 412 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp4_ = _tmp3_;
+ _tmp3_ = _tmp2_;
#line 412 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- g_debug ("DataImportsPluginHost.vala:412: %s", _tmp4_);
+ g_debug ("DataImportsPluginHost.vala:412: %s", _tmp3_);
#line 412 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_free0 (_tmp4_);
+ _g_free0 (_tmp3_);
#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;
+ _g_free0 (_tmp1_);
#line 413 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp6_ = entry;
+ _tmp4_ = self->priv->dialog;
#line 413 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- welcome_dialog_install_service_entry (_tmp5_, _tmp6_);
-#line 2952 "DataImportsPluginHost.c"
+ welcome_dialog_install_service_entry (_tmp4_, entry);
+#line 3172 "DataImportsPluginHost.c"
}
-static void spit_data_imports_welcome_import_meta_host_class_init (SpitDataImportsWelcomeImportMetaHostClass * klass) {
+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 2963 "DataImportsPluginHost.c"
+#line 3185 "DataImportsPluginHost.c"
}
-static void spit_data_imports_welcome_import_meta_host_instance_init (SpitDataImportsWelcomeImportMetaHost * self) {
+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 2970 "DataImportsPluginHost.c"
+#line 3194 "DataImportsPluginHost.c"
}
-static void spit_data_imports_welcome_import_meta_host_finalize (GObject * obj) {
+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);
@@ -2986,11 +3212,13 @@ static void spit_data_imports_welcome_import_meta_host_finalize (GObject * obj)
_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 2982 "DataImportsPluginHost.c"
+#line 3208 "DataImportsPluginHost.c"
}
-GType spit_data_imports_welcome_import_meta_host_get_type (void) {
+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 };
@@ -3002,7 +3230,9 @@ GType spit_data_imports_welcome_import_meta_host_get_type (void) {
}
-SpitDataImportsService** spit_data_imports_load_all_services (int* result_length1) {
+SpitDataImportsService**
+spit_data_imports_load_all_services (int* result_length1)
+{
SpitDataImportsService** result = NULL;
gint _tmp0_;
SpitDataImportsService** _tmp1_;
@@ -3018,85 +3248,89 @@ SpitDataImportsService** spit_data_imports_load_all_services (int* result_length
if (result_length1) {
#line 418 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
*result_length1 = _tmp2__length1;
-#line 3014 "DataImportsPluginHost.c"
+#line 3244 "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 3020 "DataImportsPluginHost.c"
+#line 3250 "DataImportsPluginHost.c"
}
-static void _vala_array_add69 (SpitDataImportsService** * array, int* length, int* size, SpitDataImportsService* value) {
+static void
+_vala_array_add72 (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 3031 "DataImportsPluginHost.c"
+#line 3266 "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 3037 "DataImportsPluginHost.c"
+#line 3272 "DataImportsPluginHost.c"
}
-static gint __lambda23_ (void* a, void* b) {
+static gint
+__lambda25_ (void* a,
+ void* b)
+{
gint result = 0;
- void* _tmp0_;
+ const gchar* _tmp0_;
const gchar* _tmp1_;
- void* _tmp2_;
- const gchar* _tmp3_;
- gint _tmp4_;
-#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));
+ _tmp0_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (*((SpitDataImportsService**) a), SPIT_TYPE_PLUGGABLE, SpitPluggable));
#line 453 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp2_ = b;
+ _tmp1_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (*((SpitDataImportsService**) b), SPIT_TYPE_PLUGGABLE, SpitPluggable));
#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_;
+ result = utf8_cs_compare (_tmp0_, _tmp1_);
#line 453 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
return result;
-#line 3062 "DataImportsPluginHost.c"
+#line 3291 "DataImportsPluginHost.c"
}
-static gint ___lambda23____compar_fn_t (void* key1, void* key2) {
+static gint
+___lambda25____compar_fn_t (void* key1,
+ void* key2)
+{
gint result;
- result = __lambda23_ (key1, key2);
+ result = __lambda25_ (key1, key2);
#line 452 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
return result;
-#line 3071 "DataImportsPluginHost.c"
+#line 3303 "DataImportsPluginHost.c"
}
-SpitDataImportsService** spit_data_imports_load_services (gboolean load_all, int* result_length1) {
+SpitDataImportsService**
+spit_data_imports_load_services (gboolean load_all,
+ int* result_length1)
+{
SpitDataImportsService** result = NULL;
SpitDataImportsService** loaded_services = NULL;
SpitDataImportsService** _tmp0_;
gint loaded_services_length1;
gint _loaded_services_size_;
GeeCollection* pluggables = NULL;
- gboolean _tmp1_;
+ GeeCollection* _tmp1_;
GeeCollection* _tmp2_;
- GeeCollection* _tmp3_;
+ gint _tmp3_;
gint _tmp4_;
- gint _tmp5_;
- SpitDataImportsService** _tmp26_;
- gint _tmp26__length1;
- SpitDataImportsService** _tmp27_;
- gint _tmp27__length1;
- SpitDataImportsService** _tmp28_;
- gint _tmp28__length1;
+ SpitDataImportsService** _tmp23_;
+ gint _tmp23__length1;
+ SpitDataImportsService** _tmp24_;
+ gint _tmp24__length1;
+ SpitDataImportsService** _tmp25_;
+ gint _tmp25__length1;
#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"
@@ -3106,316 +3340,300 @@ SpitDataImportsService** spit_data_imports_load_services (gboolean load_all, int
#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_);
+ _tmp1_ = plugins_get_pluggables_for_type (SPIT_DATA_IMPORTS_TYPE_SERVICE, NULL, NULL, NULL, load_all);
#line 425 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- pluggables = _tmp2_;
+ pluggables = _tmp1_;
#line 429 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp3_ = pluggables;
+ _tmp2_ = pluggables;
#line 429 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp4_ = gee_collection_get_size (_tmp3_);
+ _tmp3_ = gee_collection_get_size (_tmp2_);
#line 429 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp5_ = _tmp4_;
+ _tmp4_ = _tmp3_;
#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 3115 "DataImportsPluginHost.c"
+"able data import services.", _tmp4_);
+#line 3347 "DataImportsPluginHost.c"
{
GeeIterator* _pluggable_it = NULL;
- GeeCollection* _tmp6_;
- GeeIterator* _tmp7_;
+ GeeCollection* _tmp5_;
+ GeeIterator* _tmp6_;
#line 431 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp6_ = pluggables;
+ _tmp5_ = 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));
+ _tmp6_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ITERABLE, GeeIterable));
#line 431 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _pluggable_it = _tmp7_;
+ _pluggable_it = _tmp6_;
#line 431 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
while (TRUE) {
-#line 3128 "DataImportsPluginHost.c"
- GeeIterator* _tmp8_;
- gboolean _tmp9_;
+#line 3360 "DataImportsPluginHost.c"
+ GeeIterator* _tmp7_;
SpitPluggable* pluggable = NULL;
- GeeIterator* _tmp10_;
- gpointer _tmp11_;
+ GeeIterator* _tmp8_;
+ gpointer _tmp9_;
gint pluggable_interface = 0;
- SpitPluggable* _tmp12_;
- gint _tmp13_;
- gint _tmp14_;
+ SpitPluggable* _tmp10_;
+ gint _tmp11_;
SpitDataImportsService* service = NULL;
- SpitPluggable* _tmp19_;
- SpitDataImportsService* _tmp20_;
+ SpitPluggable* _tmp16_;
+ SpitDataImportsService* _tmp17_;
+ SpitDataImportsService* _tmp18_;
+ const gchar* _tmp19_;
+ SpitDataImportsService** _tmp20_;
+ gint _tmp20__length1;
SpitDataImportsService* _tmp21_;
- const gchar* _tmp22_;
- SpitDataImportsService** _tmp23_;
- gint _tmp23__length1;
- SpitDataImportsService* _tmp24_;
- SpitDataImportsService* _tmp25_;
+ SpitDataImportsService* _tmp22_;
#line 431 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp8_ = _pluggable_it;
+ _tmp7_ = _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_) {
+ if (!gee_iterator_next (_tmp7_)) {
#line 431 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
break;
-#line 3155 "DataImportsPluginHost.c"
+#line 3383 "DataImportsPluginHost.c"
}
#line 431 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp10_ = _pluggable_it;
+ _tmp8_ = _pluggable_it;
#line 431 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp11_ = gee_iterator_get (_tmp10_);
+ _tmp9_ = gee_iterator_get (_tmp8_);
#line 431 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- pluggable = (SpitPluggable*) _tmp11_;
+ pluggable = (SpitPluggable*) _tmp9_;
#line 432 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp12_ = pluggable;
+ _tmp10_ = 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_;
+ pluggable_interface = spit_pluggable_get_pluggable_interface (_tmp10_, SPIT_DATA_IMPORTS_CURRENT_INTERFACE, SPIT_DATA_IMPORTS_CURRENT_INTERFACE);
#line 434 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp14_ = pluggable_interface;
+ _tmp11_ = pluggable_interface;
#line 434 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- if (_tmp14_ != SPIT_DATA_IMPORTS_CURRENT_INTERFACE) {
-#line 3173 "DataImportsPluginHost.c"
- SpitPluggable* _tmp15_;
- gchar* _tmp16_;
- gchar* _tmp17_;
- gint _tmp18_;
+ if (_tmp11_ != SPIT_DATA_IMPORTS_CURRENT_INTERFACE) {
+#line 3399 "DataImportsPluginHost.c"
+ SpitPluggable* _tmp12_;
+ gchar* _tmp13_;
+ gchar* _tmp14_;
+ gint _tmp15_;
#line 435 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp15_ = pluggable;
+ _tmp12_ = pluggable;
#line 435 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp16_ = plugins_get_pluggable_module_id (_tmp15_);
+ _tmp13_ = plugins_get_pluggable_module_id (_tmp12_);
#line 435 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp17_ = _tmp16_;
+ _tmp14_ = _tmp13_;
#line 435 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp18_ = pluggable_interface;
+ _tmp15_ = 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_);
+"reported interface %d.", _tmp14_, _tmp15_);
#line 435 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _g_free0 (_tmp17_);
+ _g_free0 (_tmp14_);
#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 3194 "DataImportsPluginHost.c"
+#line 3420 "DataImportsPluginHost.c"
}
#line 441 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp19_ = pluggable;
+ _tmp16_ = 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));
+ _tmp17_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, SPIT_DATA_IMPORTS_TYPE_SERVICE, SpitDataImportsService));
#line 441 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- service = _tmp20_;
+ service = _tmp17_;
#line 444 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp21_ = service;
+ _tmp18_ = 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));
+ _tmp19_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, 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_);
+"e data import service '%s'.", _tmp19_);
#line 447 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp23_ = loaded_services;
+ _tmp20_ = loaded_services;
#line 447 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp23__length1 = loaded_services_length1;
+ _tmp20__length1 = loaded_services_length1;
#line 447 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp24_ = service;
+ _tmp21_ = service;
#line 447 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp25_ = _g_object_ref0 (_tmp24_);
+ _tmp22_ = _g_object_ref0 (_tmp21_);
#line 447 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _vala_array_add69 (&loaded_services, &loaded_services_length1, &_loaded_services_size_, _tmp25_);
+ _vala_array_add72 (&loaded_services, &loaded_services_length1, &_loaded_services_size_, _tmp22_);
#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 3222 "DataImportsPluginHost.c"
+#line 3448 "DataImportsPluginHost.c"
}
#line 431 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
_g_object_unref0 (_pluggable_it);
-#line 3226 "DataImportsPluginHost.c"
+#line 3452 "DataImportsPluginHost.c"
}
#line 452 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp26_ = loaded_services;
+ _tmp23_ = loaded_services;
#line 452 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp26__length1 = loaded_services_length1;
+ _tmp23__length1 = loaded_services_length1;
#line 452 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp27_ = loaded_services;
+ _tmp24_ = loaded_services;
#line 452 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp27__length1 = loaded_services_length1;
+ _tmp24__length1 = loaded_services_length1;
#line 452 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- qsort (_tmp26_, (gsize) _tmp27__length1, (gsize) sizeof (SpitDataImportsService*), ___lambda23____compar_fn_t);
+ qsort (_tmp23_, (gsize) _tmp24__length1, (gsize) sizeof (SpitDataImportsService*), ___lambda25____compar_fn_t);
#line 457 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp28_ = loaded_services;
+ _tmp25_ = loaded_services;
#line 457 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp28__length1 = loaded_services_length1;
+ _tmp25__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 3246 "DataImportsPluginHost.c"
+ *result_length1 = _tmp25__length1;
+#line 3472 "DataImportsPluginHost.c"
}
#line 457 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- result = _tmp28_;
+ result = _tmp25_;
#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 3254 "DataImportsPluginHost.c"
+#line 3480 "DataImportsPluginHost.c"
}
-void spit_data_imports_data_import_reporter (ImportManifest* manifest, BatchImportRoll* import_roll) {
- ImportManifest* _tmp0_;
- GeeList* _tmp1_;
+void
+spit_data_imports_data_import_reporter (ImportManifest* manifest,
+ BatchImportRoll* import_roll)
+{
+ GeeList* _tmp0_;
+ gint _tmp1_;
gint _tmp2_;
- gint _tmp3_;
#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;
+ _tmp0_ = manifest->all;
#line 463 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp1_ = _tmp0_->all;
+ _tmp1_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection));
#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_;
+ _tmp2_ = _tmp1_;
#line 463 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- if (_tmp3_ > 0) {
-#line 3277 "DataImportsPluginHost.c"
- ImportManifest* _tmp4_;
+ if (_tmp2_ > 0) {
+#line 3503 "DataImportsPluginHost.c"
+ ImportManifest* _tmp3_;
#line 464 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp4_ = spit_data_imports_meta_manifest;
+ _tmp3_ = spit_data_imports_meta_manifest;
#line 464 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- if (_tmp4_ == NULL) {
-#line 3283 "DataImportsPluginHost.c"
- ImportManifest* _tmp5_;
+ if (_tmp3_ == NULL) {
+#line 3509 "DataImportsPluginHost.c"
+ ImportManifest* _tmp4_;
#line 465 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp5_ = import_manifest_new (NULL, NULL);
+ _tmp4_ = 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 3291 "DataImportsPluginHost.c"
+ spit_data_imports_meta_manifest = _tmp4_;
+#line 3517 "DataImportsPluginHost.c"
}
{
GeeList* _result_list = NULL;
- ImportManifest* _tmp6_;
- GeeList* _tmp7_;
- GeeList* _tmp8_;
+ GeeList* _tmp5_;
+ GeeList* _tmp6_;
gint _result_size = 0;
- GeeList* _tmp9_;
- gint _tmp10_;
- gint _tmp11_;
+ GeeList* _tmp7_;
+ gint _tmp8_;
+ gint _tmp9_;
gint _result_index = 0;
#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp6_ = manifest;
+ _tmp5_ = manifest->all;
#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp7_ = _tmp6_->all;
+ _tmp6_ = _g_object_ref0 (_tmp5_);
#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp8_ = _g_object_ref0 (_tmp7_);
+ _result_list = _tmp6_;
#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _result_list = _tmp8_;
+ _tmp7_ = _result_list;
#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp9_ = _result_list;
+ _tmp8_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_COLLECTION, GeeCollection));
#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));
+ _tmp9_ = _tmp8_;
#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_;
+ _result_size = _tmp9_;
#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 3323 "DataImportsPluginHost.c"
+#line 3546 "DataImportsPluginHost.c"
+ gint _tmp10_;
+ gint _tmp11_;
gint _tmp12_;
- gint _tmp13_;
- gint _tmp14_;
BatchImportResult* _result_ = NULL;
- GeeList* _tmp15_;
- gint _tmp16_;
- gpointer _tmp17_;
- ImportManifest* _tmp18_;
- BatchImportResult* _tmp19_;
+ GeeList* _tmp13_;
+ gint _tmp14_;
+ gpointer _tmp15_;
+ ImportManifest* _tmp16_;
+ BatchImportResult* _tmp17_;
#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp12_ = _result_index;
+ _tmp10_ = _result_index;
#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _result_index = _tmp12_ + 1;
+ _result_index = _tmp10_ + 1;
#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp13_ = _result_index;
+ _tmp11_ = _result_index;
#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp14_ = _result_size;
+ _tmp12_ = _result_size;
#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- if (!(_tmp13_ < _tmp14_)) {
+ if (!(_tmp11_ < _tmp12_)) {
#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
break;
-#line 3345 "DataImportsPluginHost.c"
+#line 3568 "DataImportsPluginHost.c"
}
#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp15_ = _result_list;
+ _tmp13_ = _result_list;
#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp16_ = _result_index;
+ _tmp14_ = _result_index;
#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp17_ = gee_list_get (_tmp15_, _tmp16_);
+ _tmp15_ = gee_list_get (_tmp13_, _tmp14_);
#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _result_ = (BatchImportResult*) _tmp17_;
+ _result_ = (BatchImportResult*) _tmp15_;
#line 467 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp18_ = spit_data_imports_meta_manifest;
+ _tmp16_ = spit_data_imports_meta_manifest;
#line 467 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- _tmp19_ = _result_;
+ _tmp17_ = _result_;
#line 467 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- import_manifest_add_result (_tmp18_, _tmp19_);
+ import_manifest_add_result (_tmp16_, _tmp17_);
#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
_batch_import_result_unref0 (_result_);
-#line 3363 "DataImportsPluginHost.c"
+#line 3586 "DataImportsPluginHost.c"
}
#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
_g_object_unref0 (_result_list);
-#line 3367 "DataImportsPluginHost.c"
+#line 3590 "DataImportsPluginHost.c"
}
} else {
- ImportManifest* _tmp20_;
+ ImportManifest* _tmp18_;
#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;
+ _tmp18_ = spit_data_imports_meta_manifest;
#line 471 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
- import_ui_report_manifest (_tmp20_, TRUE, NULL);
+ import_ui_report_manifest (_tmp18_, 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 3381 "DataImportsPluginHost.c"
+#line 3604 "DataImportsPluginHost.c"
}
}
-gint64 spit_data_imports_import_job_comparator (void* a, void* b) {
+gint64
+spit_data_imports_import_job_comparator (void* a,
+ void* b)
+{
gint64 result = 0LL;
- void* _tmp0_;
- time_t _tmp1_;
- void* _tmp2_;
- time_t _tmp3_;
-#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_);
+ result = (gint64) (spit_data_imports_data_import_job_get_exposure_time (G_TYPE_CHECK_INSTANCE_CAST ((SpitDataImportsDataImportJob*) a, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJob)) - spit_data_imports_data_import_job_get_exposure_time (G_TYPE_CHECK_INSTANCE_CAST ((SpitDataImportsDataImportJob*) b, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJob)));
#line 477 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala"
return result;
-#line 3404 "DataImportsPluginHost.c"
+#line 3618 "DataImportsPluginHost.c"
}
-static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) {
+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) {
@@ -3427,7 +3645,11 @@ static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNoti
}
-static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) {
+static void
+_vala_array_free (gpointer array,
+ gint array_length,
+ GDestroyNotify destroy_func)
+{
_vala_array_destroy (array, array_length, destroy_func);
g_free (array);
}