summaryrefslogtreecommitdiff
path: root/src/LibraryFiles.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2018-05-01 14:34:32 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2018-05-01 14:34:32 +0200
commit49120f48474fc8fdc2448c75d961bc238213cfac (patch)
tree05bcdb95d65a807cf0f1ffffd066c09074b5cf56 /src/LibraryFiles.c
parent2492891f112caac6076ce49721d9d5d78a152c3a (diff)
New upstream version 0.28.2upstream/0.28.2
Diffstat (limited to 'src/LibraryFiles.c')
-rw-r--r--src/LibraryFiles.c1388
1 files changed, 968 insertions, 420 deletions
diff --git a/src/LibraryFiles.c b/src/LibraryFiles.c
index 80acc12..e2bfc0c 100644
--- a/src/LibraryFiles.c
+++ b/src/LibraryFiles.c
@@ -9,11 +9,16 @@
#include <glib.h>
#include <glib-object.h>
+#include <gio/gio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
-#include <gio/gio.h>
+#include <stdio.h>
+#include <glib/gstdio.h>
+#define _g_free0(var) (var = (g_free (var), NULL))
+#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
+#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
#define TYPE_MEDIA_METADATA (media_metadata_get_type ())
#define MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_METADATA, MediaMetadata))
@@ -35,9 +40,6 @@ typedef struct _MediaMetadataClass MediaMetadataClass;
typedef struct _MetadataDateTime MetadataDateTime;
typedef struct _MetadataDateTimeClass MetadataDateTimeClass;
#define _metadata_date_time_unref0(var) ((var == NULL) ? NULL : (var = (metadata_date_time_unref (var), NULL)))
-#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _g_free0(var) (var = (g_free (var), NULL))
#define TYPE_CONFIGURATION_FACADE (configuration_facade_get_type ())
#define CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacade))
@@ -113,6 +115,7 @@ typedef struct _PhotoFileReaderClass PhotoFileReaderClass;
typedef struct _PhotoMetadata PhotoMetadata;
typedef struct _PhotoMetadataClass PhotoMetadataClass;
#define _photo_file_adapter_unref0(var) ((var == NULL) ? NULL : (var = (photo_file_adapter_unref (var), NULL)))
+#define _fclose0(var) ((var == NULL) ? NULL : (var = (fclose (var), NULL)))
typedef enum {
PHOTO_FILE_FORMAT_JFIF,
@@ -124,7 +127,11 @@ typedef enum {
} PhotoFileFormat;
+extern gboolean library_files_use_fallback_copy_func;
+gboolean library_files_use_fallback_copy_func = FALSE;
+void library_files_select_copy_function (void);
+GFile* app_dirs_get_import_dir (void);
gpointer media_metadata_ref (gpointer instance);
void media_metadata_unref (gpointer instance);
GParamSpec* param_spec_media_metadata (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
@@ -177,14 +184,130 @@ PhotoFileReader* photo_file_format_create_reader (PhotoFileFormat self, const gc
GType photo_metadata_get_type (void) G_GNUC_CONST;
PhotoMetadata* photo_file_reader_read_metadata (PhotoFileReader* self, GError** error);
void library_monitor_blacklist_file (GFile* file, const gchar* reason);
+void library_files_fallback_copy (GFile* src, GFile* dst, GFileProgressCallback callback, void* callback_target, GError** error);
void library_monitor_unblacklist_file (GFile* file);
gchar* md5_file (GFile* file, GError** error);
+static gchar* bool_to_string (gboolean self) {
+ gchar* result = NULL;
+#line 37 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ if (self) {
+#line 197 "LibraryFiles.c"
+ gchar* _tmp0_;
+#line 38 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ _tmp0_ = g_strdup ("true");
+#line 38 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ result = _tmp0_;
+#line 38 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ return result;
+#line 205 "LibraryFiles.c"
+ } else {
+ gchar* _tmp1_;
+#line 40 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ _tmp1_ = g_strdup ("false");
+#line 40 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ result = _tmp1_;
+#line 40 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ return result;
+#line 214 "LibraryFiles.c"
+ }
+}
+
+
+void library_files_select_copy_function (void) {
+ GFile* import_dir = NULL;
+ GFile* _tmp0_;
+ gboolean _tmp6_;
+ gchar* _tmp7_;
+ gchar* _tmp8_;
+ GError * _inner_error_ = NULL;
+#line 12 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp0_ = app_dirs_get_import_dir ();
+#line 12 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ import_dir = _tmp0_;
+#line 230 "LibraryFiles.c"
+ {
+ GFileInfo* info = NULL;
+ GFileInfo* _tmp1_;
+ gchar* _tmp2_;
+ gchar* _tmp3_;
+#line 15 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp1_ = g_file_query_filesystem_info (import_dir, "filesystem::type", NULL, &_inner_error_);
+#line 15 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ info = _tmp1_;
+#line 15 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 242 "LibraryFiles.c"
+ goto __catch471_g_error;
+ }
+#line 16 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp2_ = g_file_info_get_attribute_as_string (info, "filesystem::type");
+#line 16 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp3_ = _tmp2_;
+#line 16 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ library_files_use_fallback_copy_func = g_strcmp0 (_tmp3_, "nfs") == 0;
+#line 16 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _g_free0 (_tmp3_);
+#line 14 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _g_object_unref0 (info);
+#line 255 "LibraryFiles.c"
+ }
+ goto __finally471;
+ __catch471_g_error:
+ {
+ GError* _error_ = NULL;
+ GError* _tmp4_;
+ const gchar* _tmp5_;
+#line 14 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _error_ = _inner_error_;
+#line 14 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _inner_error_ = NULL;
+#line 18 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp4_ = _error_;
+#line 18 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp5_ = _tmp4_->message;
+#line 18 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ g_critical ("LibraryFiles.vala:18: Failed to query fs type: %s", _tmp5_);
+#line 19 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ library_files_use_fallback_copy_func = TRUE;
+#line 14 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _g_error_free0 (_error_);
+#line 277 "LibraryFiles.c"
+ }
+ __finally471:
+#line 14 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 14 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _g_object_unref0 (import_dir);
+#line 14 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 14 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ g_clear_error (&_inner_error_);
+#line 14 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ return;
+#line 290 "LibraryFiles.c"
+ }
+#line 22 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp6_ = library_files_use_fallback_copy_func;
+#line 22 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp7_ = bool_to_string (_tmp6_);
+#line 22 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp8_ = _tmp7_;
+#line 22 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ g_info ("LibraryFiles.vala:22: Using fallback copy: %s", _tmp8_);
+#line 22 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _g_free0 (_tmp8_);
+#line 11 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _g_object_unref0 (import_dir);
+#line 304 "LibraryFiles.c"
+}
+
+
static gpointer _g_error_copy0 (gpointer self) {
-#line 33 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 49 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
return self ? g_error_copy (self) : NULL;
-#line 188 "LibraryFiles.c"
+#line 311 "LibraryFiles.c"
}
@@ -206,170 +329,170 @@ GFile* library_files_generate_unique_file (const gchar* basename, MediaMetadata*
GFile* _tmp20_;
GFile* _tmp21_;
GError * _inner_error_ = NULL;
-#line 13 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 29 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
g_return_val_if_fail (basename != NULL, NULL);
-#line 13 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 29 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
g_return_val_if_fail ((metadata == NULL) || IS_MEDIA_METADATA (metadata), NULL);
-#line 18 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 34 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp0_ = ts;
-#line 18 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 34 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
timestamp = _tmp0_;
-#line 19 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 35 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp1_ = metadata;
-#line 19 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 35 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
if (_tmp1_ != NULL) {
-#line 222 "LibraryFiles.c"
+#line 345 "LibraryFiles.c"
MetadataDateTime* date_time = NULL;
MediaMetadata* _tmp2_;
MetadataDateTime* _tmp3_;
MetadataDateTime* _tmp4_;
-#line 20 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 36 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp2_ = metadata;
-#line 20 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 36 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp3_ = media_metadata_get_creation_date_time (_tmp2_);
-#line 20 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 36 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
date_time = _tmp3_;
-#line 21 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 37 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp4_ = date_time;
-#line 21 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 37 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
if (_tmp4_ != NULL) {
-#line 237 "LibraryFiles.c"
+#line 360 "LibraryFiles.c"
MetadataDateTime* _tmp5_;
time_t _tmp6_;
-#line 22 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 38 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp5_ = date_time;
-#line 22 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 38 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp6_ = metadata_date_time_get_timestamp (_tmp5_);
-#line 22 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 38 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
timestamp = _tmp6_;
-#line 246 "LibraryFiles.c"
+#line 369 "LibraryFiles.c"
} else {
time_t _tmp7_;
-#line 23 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 39 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp7_ = timestamp;
-#line 23 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 39 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
if (_tmp7_ == ((time_t) 0)) {
-#line 253 "LibraryFiles.c"
+#line 376 "LibraryFiles.c"
time_t _tmp8_;
-#line 24 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 40 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp8_ = time (NULL);
-#line 24 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 40 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
timestamp = _tmp8_;
-#line 259 "LibraryFiles.c"
+#line 382 "LibraryFiles.c"
}
}
-#line 19 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 35 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_metadata_date_time_unref0 (date_time);
-#line 264 "LibraryFiles.c"
+#line 387 "LibraryFiles.c"
}
-#line 28 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 44 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp9_ = timestamp;
-#line 28 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 44 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp10_ = app_dirs_get_baked_import_dir (_tmp9_);
-#line 28 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 44 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
dir = _tmp10_;
-#line 272 "LibraryFiles.c"
+#line 395 "LibraryFiles.c"
{
GFile* _tmp11_;
-#line 30 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 46 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp11_ = dir;
-#line 30 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 46 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
g_file_make_directory_with_parents (_tmp11_, NULL, &_inner_error_);
-#line 30 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 46 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 281 "LibraryFiles.c"
- goto __catch463_g_error;
+#line 404 "LibraryFiles.c"
+ goto __catch472_g_error;
}
}
- goto __finally463;
- __catch463_g_error:
+ goto __finally472;
+ __catch472_g_error:
{
GError* err = NULL;
GError* _tmp12_;
-#line 29 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 45 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
err = _inner_error_;
-#line 29 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 45 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_inner_error_ = NULL;
-#line 32 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 48 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp12_ = err;
-#line 32 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 48 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
if (!g_error_matches (_tmp12_, G_IO_ERROR, G_IO_ERROR_EXISTS)) {
-#line 298 "LibraryFiles.c"
+#line 421 "LibraryFiles.c"
GError* _tmp13_;
GError* _tmp14_;
-#line 33 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 49 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp13_ = err;
-#line 33 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 49 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp14_ = _g_error_copy0 (_tmp13_);
-#line 33 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 49 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_inner_error_ = _tmp14_;
-#line 33 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 49 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_g_error_free0 (err);
-#line 309 "LibraryFiles.c"
- goto __finally463;
+#line 432 "LibraryFiles.c"
+ goto __finally472;
}
-#line 29 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 45 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_g_error_free0 (err);
-#line 314 "LibraryFiles.c"
+#line 437 "LibraryFiles.c"
}
- __finally463:
-#line 29 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ __finally472:
+#line 45 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 29 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 45 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
g_propagate_error (error, _inner_error_);
-#line 29 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 45 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_g_object_unref0 (dir);
-#line 29 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 45 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
return NULL;
-#line 325 "LibraryFiles.c"
+#line 448 "LibraryFiles.c"
}
-#line 39 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 55 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp15_ = basename;
-#line 39 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 55 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp16_ = library_files_convert_basename (_tmp15_);
-#line 39 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 55 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
newbasename = _tmp16_;
-#line 41 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 57 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp18_ = dir;
-#line 41 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 57 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp20_ = generate_unique_file (_tmp18_, newbasename, &_tmp19_, &_inner_error_);
-#line 41 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 57 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_vala_collision = _tmp19_;
-#line 41 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 57 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp17_ = _tmp20_;
-#line 41 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 57 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 41 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 57 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
g_propagate_error (error, _inner_error_);
-#line 41 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 57 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_g_free0 (newbasename);
-#line 41 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 57 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_g_object_unref0 (dir);
-#line 41 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 57 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
return NULL;
-#line 351 "LibraryFiles.c"
+#line 474 "LibraryFiles.c"
}
-#line 41 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 57 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp21_ = _tmp17_;
-#line 41 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 57 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp17_ = NULL;
-#line 41 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 57 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
result = _tmp21_;
-#line 41 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 57 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_g_object_unref0 (_tmp17_);
-#line 41 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 57 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_g_free0 (newbasename);
-#line 41 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 57 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_g_object_unref0 (dir);
-#line 41 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 57 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
if (collision) {
-#line 41 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 57 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
*collision = _vala_collision;
-#line 369 "LibraryFiles.c"
+#line 492 "LibraryFiles.c"
}
-#line 41 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 57 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
return result;
-#line 373 "LibraryFiles.c"
+#line 496 "LibraryFiles.c"
}
@@ -379,44 +502,44 @@ gchar* library_files_convert_basename (const gchar* basename) {
ConfigFacade* _tmp1_;
gboolean _tmp2_;
gboolean _tmp3_;
-#line 46 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 62 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
g_return_val_if_fail (basename != NULL, NULL);
-#line 47 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 63 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp0_ = config_facade_get_instance ();
-#line 47 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 63 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp1_ = _tmp0_;
-#line 47 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 63 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp2_ = configuration_facade_get_use_lowercase_filenames (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
-#line 47 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 63 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp3_ = _tmp2_;
-#line 47 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 63 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_g_object_unref0 (_tmp1_);
-#line 47 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 63 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
if (_tmp3_) {
-#line 397 "LibraryFiles.c"
+#line 520 "LibraryFiles.c"
const gchar* _tmp4_;
gchar* _tmp5_;
-#line 48 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 64 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp4_ = basename;
-#line 48 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 64 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp5_ = g_utf8_strdown (_tmp4_, (gssize) -1);
-#line 48 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 64 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
result = _tmp5_;
-#line 48 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 64 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
return result;
-#line 408 "LibraryFiles.c"
+#line 531 "LibraryFiles.c"
} else {
const gchar* _tmp6_;
gchar* _tmp7_;
-#line 50 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 66 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp6_ = basename;
-#line 50 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 66 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp7_ = g_strdup (_tmp6_);
-#line 50 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 66 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
result = _tmp7_;
-#line 50 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 66 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
return result;
-#line 420 "LibraryFiles.c"
+#line 543 "LibraryFiles.c"
}
}
@@ -440,32 +563,32 @@ GFile* library_files_duplicate (GFile* src, GFileProgressCallback progress_callb
GFile* _tmp35_;
gboolean _tmp37_;
GError * _inner_error_ = NULL;
-#line 57 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 73 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
g_return_val_if_fail (G_IS_FILE (src), NULL);
-#line 58 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 74 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
timestamp = (time_t) 0;
-#line 448 "LibraryFiles.c"
+#line 571 "LibraryFiles.c"
{
time_t _tmp0_ = 0;
GFile* _tmp1_;
time_t _tmp2_;
-#line 60 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 76 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp1_ = src;
-#line 60 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 76 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp2_ = query_file_modified (_tmp1_, &_inner_error_);
-#line 60 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 76 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp0_ = _tmp2_;
-#line 60 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 76 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 461 "LibraryFiles.c"
- goto __catch464_g_error;
+#line 584 "LibraryFiles.c"
+ goto __catch473_g_error;
}
-#line 60 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 76 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
timestamp = _tmp0_;
-#line 466 "LibraryFiles.c"
+#line 589 "LibraryFiles.c"
}
- goto __finally464;
- __catch464_g_error:
+ goto __finally473;
+ __catch473_g_error:
{
GError* err = NULL;
GFile* _tmp3_;
@@ -473,112 +596,112 @@ GFile* library_files_duplicate (GFile* src, GFileProgressCallback progress_callb
gchar* _tmp5_;
GError* _tmp6_;
const gchar* _tmp7_;
-#line 59 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 75 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
err = _inner_error_;
-#line 59 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 75 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_inner_error_ = NULL;
-#line 62 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 78 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp3_ = src;
-#line 62 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 78 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp4_ = g_file_get_path (_tmp3_);
-#line 62 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 78 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp5_ = _tmp4_;
-#line 62 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 78 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp6_ = err;
-#line 62 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 78 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp7_ = _tmp6_->message;
-#line 62 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- g_critical ("LibraryFiles.vala:62: Unable to access file modification for %s: %s", _tmp5_, _tmp7_);
-#line 62 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 78 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ g_critical ("LibraryFiles.vala:78: Unable to access file modification for %s: %s", _tmp5_, _tmp7_);
+#line 78 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_g_free0 (_tmp5_);
-#line 59 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 75 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_g_error_free0 (err);
-#line 497 "LibraryFiles.c"
+#line 620 "LibraryFiles.c"
}
- __finally464:
-#line 59 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ __finally473:
+#line 75 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 59 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 75 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
g_propagate_error (error, _inner_error_);
-#line 59 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 75 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
return NULL;
-#line 506 "LibraryFiles.c"
+#line 629 "LibraryFiles.c"
}
-#line 65 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 81 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
metadata = NULL;
-#line 66 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 82 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp8_ = src;
-#line 66 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 82 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp9_ = video_reader_is_supported_video_file (_tmp8_);
-#line 66 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 82 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
if (_tmp9_) {
-#line 516 "LibraryFiles.c"
+#line 639 "LibraryFiles.c"
VideoReader* reader = NULL;
GFile* _tmp10_;
VideoReader* _tmp11_;
-#line 67 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 83 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp10_ = src;
-#line 67 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 83 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp11_ = video_reader_new (_tmp10_);
-#line 67 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 83 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
reader = _tmp11_;
-#line 526 "LibraryFiles.c"
+#line 649 "LibraryFiles.c"
{
VideoMetadata* _tmp12_ = NULL;
VideoReader* _tmp13_;
VideoMetadata* _tmp14_;
VideoMetadata* _tmp15_;
-#line 69 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 85 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp13_ = reader;
-#line 69 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 85 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp14_ = video_reader_read_metadata (_tmp13_, &_inner_error_);
-#line 69 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 85 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp12_ = _tmp14_;
-#line 69 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 85 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 540 "LibraryFiles.c"
- goto __catch465_g_error;
+#line 663 "LibraryFiles.c"
+ goto __catch474_g_error;
}
-#line 69 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 85 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp15_ = _tmp12_;
-#line 69 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 85 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp12_ = NULL;
-#line 69 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 85 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_media_metadata_unref0 (metadata);
-#line 69 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 85 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
metadata = G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_MEDIA_METADATA, MediaMetadata);
-#line 68 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 84 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_media_metadata_unref0 (_tmp12_);
-#line 553 "LibraryFiles.c"
+#line 676 "LibraryFiles.c"
}
- goto __finally465;
- __catch465_g_error:
+ goto __finally474;
+ __catch474_g_error:
{
GError* err = NULL;
-#line 68 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 84 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
err = _inner_error_;
-#line 68 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 84 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_inner_error_ = NULL;
-#line 68 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 84 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_g_error_free0 (err);
-#line 565 "LibraryFiles.c"
+#line 688 "LibraryFiles.c"
}
- __finally465:
-#line 68 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ __finally474:
+#line 84 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 68 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 84 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
g_propagate_error (error, _inner_error_);
-#line 68 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 84 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_video_reader_unref0 (reader);
-#line 68 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 84 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_media_metadata_unref0 (metadata);
-#line 68 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 84 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
return NULL;
-#line 578 "LibraryFiles.c"
+#line 701 "LibraryFiles.c"
}
-#line 66 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 82 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_video_reader_unref0 (reader);
-#line 582 "LibraryFiles.c"
+#line 705 "LibraryFiles.c"
} else {
PhotoFileReader* reader = NULL;
GFile* _tmp16_;
@@ -588,378 +711,803 @@ GFile* library_files_duplicate (GFile* src, GFileProgressCallback progress_callb
gchar* _tmp20_;
PhotoFileReader* _tmp21_;
PhotoFileReader* _tmp22_;
-#line 74 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 90 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp16_ = src;
-#line 74 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 90 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp17_ = photo_file_format_get_by_file_extension (_tmp16_);
-#line 74 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 90 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp18_ = src;
-#line 74 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 90 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp19_ = g_file_get_path (_tmp18_);
-#line 74 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 90 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp20_ = _tmp19_;
-#line 74 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 90 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp21_ = photo_file_format_create_reader (_tmp17_, _tmp20_);
-#line 74 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 90 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp22_ = _tmp21_;
-#line 74 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 90 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_g_free0 (_tmp20_);
-#line 74 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 90 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
reader = _tmp22_;
-#line 610 "LibraryFiles.c"
+#line 733 "LibraryFiles.c"
{
PhotoMetadata* _tmp23_ = NULL;
PhotoFileReader* _tmp24_;
PhotoMetadata* _tmp25_;
PhotoMetadata* _tmp26_;
-#line 77 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 93 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp24_ = reader;
-#line 77 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 93 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp25_ = photo_file_reader_read_metadata (_tmp24_, &_inner_error_);
-#line 77 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 93 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp23_ = _tmp25_;
-#line 77 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 93 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 624 "LibraryFiles.c"
- goto __catch466_g_error;
+#line 747 "LibraryFiles.c"
+ goto __catch475_g_error;
}
-#line 77 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 93 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp26_ = _tmp23_;
-#line 77 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 93 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp23_ = NULL;
-#line 77 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 93 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_media_metadata_unref0 (metadata);
-#line 77 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 93 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
metadata = G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, TYPE_MEDIA_METADATA, MediaMetadata);
-#line 76 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 92 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_media_metadata_unref0 (_tmp23_);
-#line 637 "LibraryFiles.c"
+#line 760 "LibraryFiles.c"
}
- goto __finally466;
- __catch466_g_error:
+ goto __finally475;
+ __catch475_g_error:
{
GError* err = NULL;
-#line 76 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 92 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
err = _inner_error_;
-#line 76 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 92 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_inner_error_ = NULL;
-#line 76 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 92 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_g_error_free0 (err);
-#line 649 "LibraryFiles.c"
+#line 772 "LibraryFiles.c"
}
- __finally466:
-#line 76 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ __finally475:
+#line 92 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 76 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 92 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
g_propagate_error (error, _inner_error_);
-#line 76 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 92 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_photo_file_adapter_unref0 (reader);
-#line 76 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 92 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_media_metadata_unref0 (metadata);
-#line 76 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 92 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
return NULL;
-#line 662 "LibraryFiles.c"
+#line 785 "LibraryFiles.c"
}
-#line 66 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 82 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_photo_file_adapter_unref0 (reader);
-#line 666 "LibraryFiles.c"
+#line 789 "LibraryFiles.c"
}
-#line 84 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 100 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp27_ = src;
-#line 84 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 100 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp28_ = g_file_get_basename (_tmp27_);
-#line 84 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 100 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp29_ = _tmp28_;
-#line 84 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 100 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp30_ = metadata;
-#line 84 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 100 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp31_ = timestamp;
-#line 84 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 100 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp33_ = library_files_generate_unique_file (_tmp29_, _tmp30_, _tmp31_, &_tmp32_, &_inner_error_);
-#line 84 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 100 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
collision = _tmp32_;
-#line 84 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 100 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp34_ = _tmp33_;
-#line 84 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 100 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_g_free0 (_tmp29_);
-#line 84 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 100 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
dest = _tmp34_;
-#line 84 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 100 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 84 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 100 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
g_propagate_error (error, _inner_error_);
-#line 84 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 100 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_media_metadata_unref0 (metadata);
-#line 84 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 100 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
return NULL;
-#line 696 "LibraryFiles.c"
+#line 819 "LibraryFiles.c"
}
-#line 85 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 101 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp35_ = dest;
-#line 85 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 101 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
if (_tmp35_ == NULL) {
-#line 702 "LibraryFiles.c"
+#line 825 "LibraryFiles.c"
GError* _tmp36_;
-#line 86 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 102 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp36_ = g_error_new_literal (G_FILE_ERROR, G_FILE_ERROR_FAILED, "Unable to generate unique pathname for destination");
-#line 86 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 102 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_inner_error_ = _tmp36_;
-#line 86 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 102 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
g_propagate_error (error, _inner_error_);
-#line 86 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 102 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_g_object_unref0 (dest);
-#line 86 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 102 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_media_metadata_unref0 (metadata);
-#line 86 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 102 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
return NULL;
-#line 716 "LibraryFiles.c"
+#line 839 "LibraryFiles.c"
}
-#line 88 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 104 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp37_ = blacklist;
-#line 88 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 104 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
if (_tmp37_) {
-#line 722 "LibraryFiles.c"
+#line 845 "LibraryFiles.c"
GFile* _tmp38_;
-#line 89 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 105 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_tmp38_ = dest;
-#line 89 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 105 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
library_monitor_blacklist_file (_tmp38_, "LibraryFiles.duplicate");
-#line 728 "LibraryFiles.c"
+#line 851 "LibraryFiles.c"
}
{
- GFile* _tmp39_;
- GFile* _tmp40_;
- GFileProgressCallback _tmp41_;
- void* _tmp41__target;
- gboolean _tmp42_;
-#line 92 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp39_ = src;
-#line 92 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp40_ = dest;
-#line 92 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp41_ = progress_callback;
-#line 92 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp41__target = progress_callback_target;
-#line 92 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- g_file_copy (_tmp39_, _tmp40_, G_FILE_COPY_ALL_METADATA | G_FILE_COPY_OVERWRITE, NULL, _tmp41_, _tmp41__target, &_inner_error_);
-#line 92 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 748 "LibraryFiles.c"
- goto __catch467_g_error;
- }
-#line 93 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp42_ = blacklist;
-#line 93 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- if (_tmp42_) {
-#line 755 "LibraryFiles.c"
+ gboolean _tmp39_;
+ gboolean _tmp46_;
+#line 108 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp39_ = library_files_use_fallback_copy_func;
+#line 108 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ if (_tmp39_) {
+#line 860 "LibraryFiles.c"
+ GFile* _tmp40_;
+ GFile* _tmp41_;
+ GFileProgressCallback _tmp42_;
+ void* _tmp42__target;
+#line 109 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp40_ = src;
+#line 109 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp41_ = dest;
+#line 109 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp42_ = progress_callback;
+#line 109 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp42__target = progress_callback_target;
+#line 109 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ library_files_fallback_copy (_tmp40_, _tmp41_, _tmp42_, _tmp42__target, &_inner_error_);
+#line 109 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 877 "LibraryFiles.c"
+ goto __catch476_g_error;
+ }
+ } else {
GFile* _tmp43_;
-#line 94 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp43_ = dest;
-#line 94 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- library_monitor_unblacklist_file (_tmp43_);
-#line 761 "LibraryFiles.c"
+ GFile* _tmp44_;
+ GFileProgressCallback _tmp45_;
+ void* _tmp45__target;
+#line 111 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp43_ = src;
+#line 111 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp44_ = dest;
+#line 111 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp45_ = progress_callback;
+#line 111 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp45__target = progress_callback_target;
+#line 111 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ g_file_copy (_tmp43_, _tmp44_, G_FILE_COPY_ALL_METADATA | G_FILE_COPY_OVERWRITE, NULL, _tmp45_, _tmp45__target, &_inner_error_);
+#line 111 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 897 "LibraryFiles.c"
+ goto __catch476_g_error;
+ }
+ }
+#line 113 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp46_ = blacklist;
+#line 113 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ if (_tmp46_) {
+#line 905 "LibraryFiles.c"
+ GFile* _tmp47_;
+#line 114 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp47_ = dest;
+#line 114 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ library_monitor_unblacklist_file (_tmp47_);
+#line 911 "LibraryFiles.c"
}
}
- goto __finally467;
- __catch467_g_error:
+ goto __finally476;
+ __catch476_g_error:
{
GError* err = NULL;
- GFile* _tmp44_;
- gchar* _tmp45_;
- gchar* _tmp46_;
- GError* _tmp47_;
- const gchar* _tmp48_;
- gboolean _tmp49_ = FALSE;
- gboolean _tmp50_;
-#line 91 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ GFile* _tmp48_;
+ gchar* _tmp49_;
+ gchar* _tmp50_;
+ GError* _tmp51_;
+ const gchar* _tmp52_;
+ gboolean _tmp53_ = FALSE;
+ gboolean _tmp54_;
+#line 107 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
err = _inner_error_;
-#line 91 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 107 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_inner_error_ = NULL;
-#line 96 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp44_ = src;
-#line 96 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp45_ = g_file_get_path (_tmp44_);
-#line 96 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp46_ = _tmp45_;
-#line 96 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp47_ = err;
-#line 96 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp48_ = _tmp47_->message;
-#line 96 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- g_message ("LibraryFiles.vala:96: There was a problem copying %s: %s", _tmp46_, _tmp48_);
-#line 96 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _g_free0 (_tmp46_);
-#line 97 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp50_ = blacklist;
-#line 97 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- if (_tmp50_) {
-#line 797 "LibraryFiles.c"
- gchar* _tmp51_ = NULL;
- GFile* _tmp52_;
- gchar* _tmp53_;
- gchar* _tmp54_ = NULL;
- GFile* _tmp55_;
- gchar* _tmp56_;
-#line 97 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp52_ = src;
-#line 97 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp53_ = md5_file (_tmp52_, &_inner_error_);
-#line 97 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp51_ = _tmp53_;
-#line 97 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 116 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp48_ = src;
+#line 116 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp49_ = g_file_get_path (_tmp48_);
+#line 116 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp50_ = _tmp49_;
+#line 116 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp51_ = err;
+#line 116 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp52_ = _tmp51_->message;
+#line 116 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ g_message ("LibraryFiles.vala:116: There was a problem copying %s: %s", _tmp50_, _tmp52_);
+#line 116 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _g_free0 (_tmp50_);
+#line 117 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp54_ = blacklist;
+#line 117 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ if (_tmp54_) {
+#line 947 "LibraryFiles.c"
+ gchar* _tmp55_ = NULL;
+ GFile* _tmp56_;
+ gchar* _tmp57_;
+ gchar* _tmp58_ = NULL;
+ GFile* _tmp59_;
+ gchar* _tmp60_;
+#line 117 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp56_ = src;
+#line 117 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp57_ = md5_file (_tmp56_, &_inner_error_);
+#line 117 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp55_ = _tmp57_;
+#line 117 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 97 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 117 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_g_error_free0 (err);
-#line 814 "LibraryFiles.c"
- goto __finally467;
+#line 964 "LibraryFiles.c"
+ goto __finally476;
}
-#line 97 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp55_ = dest;
-#line 97 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp56_ = md5_file (_tmp55_, &_inner_error_);
-#line 97 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp54_ = _tmp56_;
-#line 97 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 117 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp59_ = dest;
+#line 117 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp60_ = md5_file (_tmp59_, &_inner_error_);
+#line 117 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp58_ = _tmp60_;
+#line 117 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 97 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _g_free0 (_tmp51_);
-#line 97 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 117 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _g_free0 (_tmp55_);
+#line 117 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_g_error_free0 (err);
-#line 829 "LibraryFiles.c"
- goto __finally467;
+#line 979 "LibraryFiles.c"
+ goto __finally476;
}
-#line 97 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp49_ = g_strcmp0 (_tmp51_, _tmp54_) != 0;
-#line 97 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _g_free0 (_tmp54_);
-#line 97 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _g_free0 (_tmp51_);
-#line 838 "LibraryFiles.c"
+#line 117 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp53_ = g_strcmp0 (_tmp55_, _tmp58_) != 0;
+#line 117 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _g_free0 (_tmp58_);
+#line 117 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _g_free0 (_tmp55_);
+#line 988 "LibraryFiles.c"
} else {
-#line 97 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp49_ = FALSE;
-#line 842 "LibraryFiles.c"
+#line 117 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp53_ = FALSE;
+#line 992 "LibraryFiles.c"
}
-#line 97 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- if (_tmp49_) {
-#line 846 "LibraryFiles.c"
- GFile* _tmp57_;
-#line 98 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp57_ = dest;
-#line 98 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- library_monitor_unblacklist_file (_tmp57_);
-#line 852 "LibraryFiles.c"
+#line 117 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ if (_tmp53_) {
+#line 996 "LibraryFiles.c"
+ GFile* _tmp61_;
+#line 118 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp61_ = dest;
+#line 118 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ library_monitor_unblacklist_file (_tmp61_);
+#line 1002 "LibraryFiles.c"
}
-#line 91 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 107 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_g_error_free0 (err);
-#line 856 "LibraryFiles.c"
+#line 1006 "LibraryFiles.c"
}
- __finally467:
-#line 91 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ __finally476:
+#line 107 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 91 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 107 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
g_propagate_error (error, _inner_error_);
-#line 91 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 107 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_g_object_unref0 (dest);
-#line 91 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 107 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_media_metadata_unref0 (metadata);
-#line 91 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 107 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
return NULL;
-#line 869 "LibraryFiles.c"
+#line 1019 "LibraryFiles.c"
}
{
GFileInfo* info = NULL;
- GFile* _tmp58_;
- GFileInfo* _tmp59_;
+ GFile* _tmp62_;
+ GFileInfo* _tmp63_;
guint32 mode = 0U;
- GFileInfo* _tmp60_;
- guint32 _tmp61_;
- gboolean _tmp62_ = FALSE;
- GFile* _tmp63_;
- guint32 _tmp64_;
- gboolean _tmp65_;
-#line 103 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp58_ = dest;
-#line 103 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp59_ = g_file_query_info (_tmp58_, G_FILE_ATTRIBUTE_UNIX_MODE, G_FILE_QUERY_INFO_NONE, NULL, &_inner_error_);
-#line 103 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- info = _tmp59_;
-#line 103 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ GFileInfo* _tmp64_;
+ guint32 _tmp65_;
+ gboolean _tmp66_ = FALSE;
+ GFile* _tmp67_;
+ guint32 _tmp68_;
+ gboolean _tmp69_;
+#line 123 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp62_ = dest;
+#line 123 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp63_ = g_file_query_info (_tmp62_, G_FILE_ATTRIBUTE_UNIX_MODE, G_FILE_QUERY_INFO_NONE, NULL, &_inner_error_);
+#line 123 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ info = _tmp63_;
+#line 123 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 890 "LibraryFiles.c"
- goto __catch468_g_error;
+#line 1040 "LibraryFiles.c"
+ goto __catch477_g_error;
}
-#line 104 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp60_ = info;
-#line 104 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp61_ = g_file_info_get_attribute_uint32 (_tmp60_, G_FILE_ATTRIBUTE_UNIX_MODE);
-#line 104 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- mode = _tmp61_ | 0600;
-#line 105 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp63_ = dest;
-#line 105 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp64_ = mode;
-#line 105 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp65_ = g_file_set_attribute_uint32 (_tmp63_, G_FILE_ATTRIBUTE_UNIX_MODE, _tmp64_, G_FILE_QUERY_INFO_NONE, NULL, &_inner_error_);
-#line 105 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp62_ = _tmp65_;
-#line 105 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 124 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp64_ = info;
+#line 124 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp65_ = g_file_info_get_attribute_uint32 (_tmp64_, G_FILE_ATTRIBUTE_UNIX_MODE);
+#line 124 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ mode = _tmp65_ | 0600;
+#line 125 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp67_ = dest;
+#line 125 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp68_ = mode;
+#line 125 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp69_ = g_file_set_attribute_uint32 (_tmp67_, G_FILE_ATTRIBUTE_UNIX_MODE, _tmp68_, G_FILE_QUERY_INFO_NONE, NULL, &_inner_error_);
+#line 125 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp66_ = _tmp69_;
+#line 125 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 105 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 125 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_g_object_unref0 (info);
-#line 911 "LibraryFiles.c"
- goto __catch468_g_error;
+#line 1061 "LibraryFiles.c"
+ goto __catch477_g_error;
}
-#line 105 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- if (!_tmp62_) {
-#line 106 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- g_warning ("LibraryFiles.vala:106: Could not make file writable");
-#line 918 "LibraryFiles.c"
+#line 125 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ if (!_tmp66_) {
+#line 126 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ g_warning ("LibraryFiles.vala:126: Could not make file writable");
+#line 1068 "LibraryFiles.c"
}
-#line 102 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 122 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_g_object_unref0 (info);
-#line 922 "LibraryFiles.c"
+#line 1072 "LibraryFiles.c"
}
- goto __finally468;
- __catch468_g_error:
+ goto __finally477;
+ __catch477_g_error:
{
GError* err = NULL;
- GError* _tmp66_;
- const gchar* _tmp67_;
-#line 102 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ GError* _tmp70_;
+ const gchar* _tmp71_;
+#line 122 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
err = _inner_error_;
-#line 102 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 122 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_inner_error_ = NULL;
-#line 109 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp66_ = err;
-#line 109 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- _tmp67_ = _tmp66_->message;
-#line 109 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
- g_warning ("LibraryFiles.vala:109: Could not make file writable: %s", _tmp67_);
-#line 102 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 129 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp70_ = err;
+#line 129 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp71_ = _tmp70_->message;
+#line 129 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ g_warning ("LibraryFiles.vala:129: Could not make file writable: %s", _tmp71_);
+#line 122 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_g_error_free0 (err);
-#line 942 "LibraryFiles.c"
+#line 1092 "LibraryFiles.c"
}
- __finally468:
-#line 102 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ __finally477:
+#line 122 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 102 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 122 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
g_propagate_error (error, _inner_error_);
-#line 102 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 122 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_g_object_unref0 (dest);
-#line 102 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 122 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_media_metadata_unref0 (metadata);
-#line 102 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 122 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
return NULL;
-#line 955 "LibraryFiles.c"
+#line 1105 "LibraryFiles.c"
}
-#line 112 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 132 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
result = dest;
-#line 112 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 132 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
_media_metadata_unref0 (metadata);
-#line 112 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+#line 132 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
return result;
-#line 963 "LibraryFiles.c"
+#line 1113 "LibraryFiles.c"
+}
+
+
+void library_files_fallback_copy (GFile* src, GFile* dst, GFileProgressCallback callback, void* callback_target, GError** error) {
+ gboolean _tmp0_ = FALSE;
+ GFile* _tmp1_;
+ FILE* f = NULL;
+ GFile* _tmp3_;
+ gchar* _tmp4_;
+ gchar* _tmp5_;
+ FILE* _tmp6_;
+ FILE* _tmp7_;
+ FILE* _tmp8_;
+ GError * _inner_error_ = NULL;
+#line 135 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ g_return_if_fail ((src == NULL) || G_IS_FILE (src));
+#line 135 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ g_return_if_fail ((dst == NULL) || G_IS_FILE (dst));
+#line 136 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp1_ = src;
+#line 136 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ if (_tmp1_ == NULL) {
+#line 136 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp0_ = TRUE;
+#line 1138 "LibraryFiles.c"
+ } else {
+ GFile* _tmp2_;
+#line 136 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp2_ = dst;
+#line 136 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp0_ = _tmp2_ == NULL;
+#line 1145 "LibraryFiles.c"
+ }
+#line 136 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ if (_tmp0_) {
+#line 137 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ return;
+#line 1151 "LibraryFiles.c"
+ }
+#line 140 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp3_ = src;
+#line 140 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp4_ = g_file_get_path (_tmp3_);
+#line 140 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp5_ = _tmp4_;
+#line 140 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp6_ = g_fopen (_tmp5_, "rb");
+#line 140 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp7_ = _tmp6_;
+#line 140 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _g_free0 (_tmp5_);
+#line 140 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ f = _tmp7_;
+#line 141 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp8_ = f;
+#line 141 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ if (_tmp8_ != NULL) {
+#line 1171 "LibraryFiles.c"
+ FILE* _tmp9_;
+ glong size = 0L;
+ FILE* _tmp10_;
+ glong _tmp11_;
+ FILE* _tmp12_;
+ GFile* _tmp13_;
+ gchar* _tmp14_;
+ gchar* _tmp15_;
+ GFile* _tmp16_;
+ gchar* _tmp17_;
+ gchar* _tmp18_;
+ glong _tmp19_;
+ FILE* g = NULL;
+ GFile* _tmp20_;
+ gchar* _tmp21_;
+ gchar* _tmp22_;
+ FILE* _tmp23_;
+ FILE* _tmp24_;
+ FILE* _tmp25_;
+#line 142 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp9_ = f;
+#line 142 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ fseek (_tmp9_, (glong) 0, SEEK_END);
+#line 143 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp10_ = f;
+#line 143 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp11_ = ftell (_tmp10_);
+#line 143 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ size = _tmp11_;
+#line 144 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp12_ = f;
+#line 144 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ fseek (_tmp12_, (glong) 0, SEEK_SET);
+#line 145 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp13_ = src;
+#line 145 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp14_ = g_file_get_path (_tmp13_);
+#line 145 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp15_ = _tmp14_;
+#line 145 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp16_ = dst;
+#line 145 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp17_ = g_file_get_path (_tmp16_);
+#line 145 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp18_ = _tmp17_;
+#line 145 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp19_ = size;
+#line 145 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ g_debug ("LibraryFiles.vala:145: Copying %s to %s, size is %ld", _tmp15_, _tmp18_, _tmp19_);
+#line 145 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _g_free0 (_tmp18_);
+#line 145 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _g_free0 (_tmp15_);
+#line 147 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp20_ = dst;
+#line 147 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp21_ = g_file_get_path (_tmp20_);
+#line 147 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp22_ = _tmp21_;
+#line 147 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp23_ = g_fopen (_tmp22_, "wb");
+#line 147 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp24_ = _tmp23_;
+#line 147 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _g_free0 (_tmp22_);
+#line 147 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ g = _tmp24_;
+#line 148 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp25_ = g;
+#line 148 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ if (_tmp25_ != NULL) {
+#line 1243 "LibraryFiles.c"
+ guint8 buffer[4096] = {0};
+ gsize written = 0UL;
+#line 150 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ written = (gsize) 0;
+#line 152 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ while (TRUE) {
+#line 1250 "LibraryFiles.c"
+ FILE* _tmp26_;
+ gboolean _tmp27_;
+ gsize len = 0UL;
+ FILE* _tmp28_;
+ gsize _tmp29_;
+ gsize _tmp30_;
+#line 152 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp26_ = f;
+#line 152 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp27_ = feof (_tmp26_);
+#line 152 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ if (!(!_tmp27_)) {
+#line 152 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ break;
+#line 1265 "LibraryFiles.c"
+ }
+#line 153 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp28_ = f;
+#line 153 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp29_ = fread (buffer, (gsize) 1, 4096, _tmp28_);
+#line 153 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ len = _tmp29_;
+#line 154 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp30_ = len;
+#line 154 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ if (_tmp30_ > ((gsize) 0)) {
+#line 1277 "LibraryFiles.c"
+ gsize out_len = 0UL;
+ FILE* _tmp31_;
+ gsize _tmp32_;
+ gsize _tmp33_;
+ gsize _tmp34_;
+ gsize _tmp43_;
+ gsize _tmp44_;
+ GFileProgressCallback _tmp45_;
+ void* _tmp45__target;
+#line 155 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp31_ = g;
+#line 155 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp32_ = len;
+#line 155 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp33_ = fwrite (buffer + 0, (gsize) 1, ((gint) _tmp32_) - 0, _tmp31_);
+#line 155 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ out_len = _tmp33_;
+#line 156 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp34_ = out_len;
+#line 156 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ if (_tmp34_ < ((gsize) 0)) {
+#line 1299 "LibraryFiles.c"
+ GFile* _tmp35_;
+ gchar* _tmp36_;
+ gchar* _tmp37_;
+ GFile* _tmp38_;
+ gchar* _tmp39_;
+ gchar* _tmp40_;
+ GError* _tmp41_;
+ GError* _tmp42_;
+#line 157 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp35_ = dst;
+#line 157 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp36_ = g_file_get_path (_tmp35_);
+#line 157 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp37_ = _tmp36_;
+#line 157 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ g_critical ("LibraryFiles.vala:157: Failed to write to file %s: %m", _tmp37_);
+#line 157 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _g_free0 (_tmp37_);
+#line 158 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp38_ = dst;
+#line 158 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp39_ = g_file_get_path (_tmp38_);
+#line 158 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp40_ = _tmp39_;
+#line 158 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp41_ = g_error_new (G_IO_ERROR, G_IO_ERROR_FAILED, "Failed to write to %s", _tmp40_);
+#line 158 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp42_ = _tmp41_;
+#line 158 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _g_free0 (_tmp40_);
+#line 158 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _inner_error_ = _tmp42_;
+#line 158 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ g_propagate_error (error, _inner_error_);
+#line 158 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _fclose0 (g);
+#line 158 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _fclose0 (f);
+#line 158 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ return;
+#line 1340 "LibraryFiles.c"
+ }
+#line 160 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp43_ = written;
+#line 160 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp44_ = len;
+#line 160 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ written = _tmp43_ + _tmp44_;
+#line 162 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp45_ = callback;
+#line 162 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp45__target = callback_target;
+#line 162 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ if (_tmp45_ != NULL) {
+#line 1354 "LibraryFiles.c"
+ GFileProgressCallback _tmp46_;
+ void* _tmp46__target;
+ gsize _tmp47_;
+ glong _tmp48_;
+#line 163 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp46_ = callback;
+#line 163 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp46__target = callback_target;
+#line 163 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp47_ = written;
+#line 163 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp48_ = size;
+#line 163 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp46_ ((gint64) _tmp47_, (gint64) _tmp48_, _tmp46__target);
+#line 1369 "LibraryFiles.c"
+ }
+ } else {
+ gsize _tmp49_;
+#line 164 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp49_ = len;
+#line 164 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ if (_tmp49_ < ((gsize) 0)) {
+#line 1377 "LibraryFiles.c"
+ GFile* _tmp50_;
+ gchar* _tmp51_;
+ gchar* _tmp52_;
+ GFile* _tmp53_;
+ gchar* _tmp54_;
+ gchar* _tmp55_;
+ GError* _tmp56_;
+ GError* _tmp57_;
+#line 165 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp50_ = src;
+#line 165 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp51_ = g_file_get_path (_tmp50_);
+#line 165 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp52_ = _tmp51_;
+#line 165 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ g_critical ("LibraryFiles.vala:165: Failed to read from file %s: %m", _tmp52_);
+#line 165 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _g_free0 (_tmp52_);
+#line 166 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp53_ = src;
+#line 166 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp54_ = g_file_get_path (_tmp53_);
+#line 166 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp55_ = _tmp54_;
+#line 166 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp56_ = g_error_new (G_IO_ERROR, G_IO_ERROR_FAILED, "Failed to read from %s", _tmp55_);
+#line 166 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp57_ = _tmp56_;
+#line 166 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _g_free0 (_tmp55_);
+#line 166 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _inner_error_ = _tmp57_;
+#line 166 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ g_propagate_error (error, _inner_error_);
+#line 166 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _fclose0 (g);
+#line 166 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _fclose0 (f);
+#line 166 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ return;
+#line 1418 "LibraryFiles.c"
+ }
+ }
+ }
+ } else {
+ GFile* _tmp58_;
+ gchar* _tmp59_;
+ gchar* _tmp60_;
+ GFile* _tmp61_;
+ gchar* _tmp62_;
+ gchar* _tmp63_;
+ GError* _tmp64_;
+ GError* _tmp65_;
+#line 170 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp58_ = dst;
+#line 170 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp59_ = g_file_get_path (_tmp58_);
+#line 170 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp60_ = _tmp59_;
+#line 170 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ g_critical ("LibraryFiles.vala:170: Failed to open %s: %m", _tmp60_);
+#line 170 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _g_free0 (_tmp60_);
+#line 171 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp61_ = dst;
+#line 171 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp62_ = g_file_get_path (_tmp61_);
+#line 171 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp63_ = _tmp62_;
+#line 171 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp64_ = g_error_new (G_IO_ERROR, G_IO_ERROR_FAILED, "Failed to open %s", _tmp63_);
+#line 171 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp65_ = _tmp64_;
+#line 171 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _g_free0 (_tmp63_);
+#line 171 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _inner_error_ = _tmp65_;
+#line 171 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ g_propagate_error (error, _inner_error_);
+#line 171 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _fclose0 (g);
+#line 171 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _fclose0 (f);
+#line 171 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ return;
+#line 1463 "LibraryFiles.c"
+ }
+#line 141 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _fclose0 (g);
+#line 1467 "LibraryFiles.c"
+ } else {
+ GFile* _tmp66_;
+ gchar* _tmp67_;
+ gchar* _tmp68_;
+ GFile* _tmp69_;
+ gchar* _tmp70_;
+ gchar* _tmp71_;
+ GError* _tmp72_;
+ GError* _tmp73_;
+#line 174 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp66_ = src;
+#line 174 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp67_ = g_file_get_path (_tmp66_);
+#line 174 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp68_ = _tmp67_;
+#line 174 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ g_critical ("LibraryFiles.vala:174: Failed to open %s: %m", _tmp68_);
+#line 174 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _g_free0 (_tmp68_);
+#line 175 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp69_ = src;
+#line 175 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp70_ = g_file_get_path (_tmp69_);
+#line 175 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp71_ = _tmp70_;
+#line 175 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp72_ = g_error_new (G_IO_ERROR, G_IO_ERROR_FAILED, "Failed to open %s", _tmp71_);
+#line 175 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _tmp73_ = _tmp72_;
+#line 175 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _g_free0 (_tmp71_);
+#line 175 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _inner_error_ = _tmp73_;
+#line 175 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ g_propagate_error (error, _inner_error_);
+#line 175 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _fclose0 (f);
+#line 175 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ return;
+#line 1507 "LibraryFiles.c"
+ }
+#line 135 "/home/jens/Source/shotwell/src/LibraryFiles.vala"
+ _fclose0 (f);
+#line 1511 "LibraryFiles.c"
}