summaryrefslogtreecommitdiff
path: root/src/photos/PhotoMetadata.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2017-11-12 15:55:20 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2017-11-12 15:55:20 +0100
commitf6140ff1c9ec493d947da5b346508846e7a1a06f (patch)
treec01b9164ee4b0d46b6670ccee45f6181c6237d7f /src/photos/PhotoMetadata.c
parent0f67b3cc674377559e66c5a6729fd499049a992f (diff)
parent2492891f112caac6076ce49721d9d5d78a152c3a (diff)
Update upstream source from tag 'upstream/0.26.4'
Update to upstream version '0.26.4' with Debian dir fae3cc48a8ec2f37979206f90dc828cbebee14c4
Diffstat (limited to 'src/photos/PhotoMetadata.c')
-rw-r--r--src/photos/PhotoMetadata.c2898
1 files changed, 1470 insertions, 1428 deletions
diff --git a/src/photos/PhotoMetadata.c b/src/photos/PhotoMetadata.c
index 6f7c8c7..9950bc1 100644
--- a/src/photos/PhotoMetadata.c
+++ b/src/photos/PhotoMetadata.c
@@ -1,4 +1,4 @@
-/* PhotoMetadata.c generated by valac 0.34.7, the Vala compiler
+/* PhotoMetadata.c generated by valac 0.36.6, the Vala compiler
* generated from PhotoMetadata.vala, do not modify */
/* Copyright 2016 Software Freedom Conservancy Inc.
@@ -491,7 +491,7 @@ enum {
GeeList* keyword_transformer_transform (KeywordTransformer* self, const gchar* input, GError** error);
static GeeList* keyword_transformer_real_transform (KeywordTransformer* self, const gchar* input, GError** error);
KeywordTransformer* keyword_transformer_construct (GType object_type);
-static void keyword_transformer_finalize (KeywordTransformer* obj);
+static void keyword_transformer_finalize (KeywordTransformer * obj);
GType null_keyword_transformer_get_type (void) G_GNUC_CONST;
enum {
NULL_KEYWORD_TRANSFORMER_DUMMY_PROPERTY
@@ -515,7 +515,7 @@ static void _acd_see_keyword_transformer_on_text_gmarkup_parser_text_func (GMark
static void acd_see_keyword_transformer_on_error (ACDSeeKeywordTransformer* self, GMarkupParseContext* ctx, GError* _error_);
static void _acd_see_keyword_transformer_on_error_gmarkup_parser_error_func (GMarkupParseContext* context, GError* _error_, gpointer self);
static GeeList* acd_see_keyword_transformer_real_transform (KeywordTransformer* base, const gchar* input, GError** error);
-static void acd_see_keyword_transformer_finalize (KeywordTransformer* obj);
+static void acd_see_keyword_transformer_finalize (KeywordTransformer * obj);
gpointer hierarchical_keyword_field_ref (gpointer instance);
void hierarchical_keyword_field_unref (gpointer instance);
GParamSpec* param_spec_hierarchical_keyword_field (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
@@ -528,7 +528,7 @@ enum {
};
HierarchicalKeywordField* hierarchical_keyword_field_new (const gchar* field_name, const gchar* path_separator, gboolean wants_leading_separator, gboolean is_writeable, KeywordTransformer* transformer);
HierarchicalKeywordField* hierarchical_keyword_field_construct (GType object_type, const gchar* field_name, const gchar* path_separator, gboolean wants_leading_separator, gboolean is_writeable, KeywordTransformer* transformer);
-static void hierarchical_keyword_field_finalize (HierarchicalKeywordField* obj);
+static void hierarchical_keyword_field_finalize (HierarchicalKeywordField * obj);
gpointer photo_preview_ref (gpointer instance);
void photo_preview_unref (gpointer instance);
GParamSpec* param_spec_photo_preview (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
@@ -554,7 +554,7 @@ static guint8* photo_preview_real_flatten (PhotoPreview* self, int* result_lengt
GdkPixbuf* photo_preview_get_pixbuf (PhotoPreview* self, GError** error);
static GdkPixbuf* photo_preview_real_get_pixbuf (PhotoPreview* self, GError** error);
static guint8* _vala_array_dup4 (guint8* self, int length);
-static void photo_preview_finalize (PhotoPreview* obj);
+static void photo_preview_finalize (PhotoPreview * obj);
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);
@@ -616,8 +616,8 @@ static void block1_data_unref (void * _userdata_);
static void __lambda5_ (Block1Data* _data1_, const gchar* tag);
static void ___lambda5__photo_metadata_set_generic_value (const gchar* tag, gpointer self);
void photo_metadata_set_string_multiple (PhotoMetadata* self, const gchar* tag, GeeCollection* collection);
-static void _vala_array_add45 (gchar*** array, int* length, int* size, gchar* value);
-static void _vala_array_add46 (gchar*** array, int* length, int* size, gchar* value);
+static void _vala_array_add45 (gchar** * array, int* length, int* size, gchar* value);
+static void _vala_array_add46 (gchar** * array, int* length, int* size, gchar* value);
void photo_metadata_set_all_string_multiple (PhotoMetadata* self, gchar** tags, int tags_length1, GeeCollection* values, PhotoMetadataSetOption option);
static Block2Data* block2_data_ref (Block2Data* _data2_);
static void block2_data_unref (void * _userdata_);
@@ -717,7 +717,7 @@ gboolean photo_metadata_has_orientation (PhotoMetadata* self);
GType orientation_get_type (void) G_GNUC_CONST;
Orientation photo_metadata_get_orientation (PhotoMetadata* self);
void photo_metadata_set_orientation (PhotoMetadata* self, Orientation orientation);
-gboolean photo_metadata_get_gps (PhotoMetadata* self, gdouble* longitude, gchar** long_ref, gdouble* latitude, gchar** lat_ref, gdouble* altitude);
+gboolean photo_metadata_get_gps (PhotoMetadata* self, gdouble* longitude, gchar* * long_ref, gdouble* latitude, gchar* * lat_ref, gdouble* altitude);
gboolean photo_metadata_get_exposure (PhotoMetadata* self, MetadataRational* exposure);
gchar* photo_metadata_get_exposure_string (PhotoMetadata* self);
gboolean metadata_rational_is_valid (MetadataRational *self);
@@ -747,8 +747,8 @@ enum {
};
static guint8* photo_metadata_internal_photo_preview_real_flatten (PhotoPreview* base, int* result_length1, GError** error);
static guint8* _vala_array_dup6 (guint8* self, int length);
-static void photo_metadata_internal_photo_preview_finalize (PhotoPreview* obj);
-static void photo_metadata_finalize (MediaMetadata* obj);
+static void photo_metadata_internal_photo_preview_finalize (PhotoPreview * obj);
+static void photo_metadata_finalize (MediaMetadata * obj);
static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);
static gint _vala_array_length (gpointer array);
@@ -837,7 +837,7 @@ static gchar* value_keyword_transformer_collect_value (GValue* value, guint n_co
#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (collect_values[0].v_pointer) {
#line 840 "PhotoMetadata.c"
- KeywordTransformer* object;
+ KeywordTransformer * object;
object = collect_values[0].v_pointer;
#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (object->parent_instance.g_class == NULL) {
@@ -864,7 +864,7 @@ static gchar* value_keyword_transformer_collect_value (GValue* value, guint n_co
static gchar* value_keyword_transformer_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
- KeywordTransformer** object_p;
+ KeywordTransformer ** object_p;
object_p = collect_values[0].v_pointer;
#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (!object_p) {
@@ -916,7 +916,7 @@ gpointer value_get_keyword_transformer (const GValue* value) {
void value_set_keyword_transformer (GValue* value, gpointer v_object) {
- KeywordTransformer* old;
+ KeywordTransformer * old;
#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_KEYWORD_TRANSFORMER));
#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -947,7 +947,7 @@ void value_set_keyword_transformer (GValue* value, gpointer v_object) {
void value_take_keyword_transformer (GValue* value, gpointer v_object) {
- KeywordTransformer* old;
+ KeywordTransformer * old;
#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_KEYWORD_TRANSFORMER));
#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -981,7 +981,7 @@ static void keyword_transformer_class_init (KeywordTransformerClass * klass) {
#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
((KeywordTransformerClass *) klass)->finalize = keyword_transformer_finalize;
#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- ((KeywordTransformerClass *) klass)->transform = (GeeList* (*)(KeywordTransformer*, const gchar*, GError**)) keyword_transformer_real_transform;
+ ((KeywordTransformerClass *) klass)->transform = (GeeList* (*) (KeywordTransformer *, const gchar*, GError**)) keyword_transformer_real_transform;
#line 986 "PhotoMetadata.c"
}
@@ -993,7 +993,7 @@ static void keyword_transformer_instance_init (KeywordTransformer * self) {
}
-static void keyword_transformer_finalize (KeywordTransformer* obj) {
+static void keyword_transformer_finalize (KeywordTransformer * obj) {
KeywordTransformer * self;
#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_KEYWORD_TRANSFORMER, KeywordTransformer);
@@ -1018,7 +1018,7 @@ GType keyword_transformer_get_type (void) {
gpointer keyword_transformer_ref (gpointer instance) {
- KeywordTransformer* self;
+ KeywordTransformer * self;
self = instance;
#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_atomic_int_inc (&self->ref_count);
@@ -1029,7 +1029,7 @@ gpointer keyword_transformer_ref (gpointer instance) {
void keyword_transformer_unref (gpointer instance) {
- KeywordTransformer* self;
+ KeywordTransformer * self;
self = instance;
#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (g_atomic_int_dec_and_test (&self->ref_count)) {
@@ -1046,8 +1046,8 @@ static GeeList* null_keyword_transformer_real_transform (KeywordTransformer* bas
NullKeywordTransformer * self;
GeeList* result = NULL;
GeeArrayList* _result_ = NULL;
- GeeArrayList* _tmp0_ = NULL;
- const gchar* _tmp1_ = NULL;
+ GeeArrayList* _tmp0_;
+ const gchar* _tmp1_;
#line 36 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_NULL_KEYWORD_TRANSFORMER, NullKeywordTransformer);
#line 36 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -1089,7 +1089,7 @@ static void null_keyword_transformer_class_init (NullKeywordTransformerClass * k
#line 35 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
null_keyword_transformer_parent_class = g_type_class_peek_parent (klass);
#line 35 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- ((KeywordTransformerClass *) klass)->transform = (GeeList* (*)(KeywordTransformer*, const gchar*, GError**)) null_keyword_transformer_real_transform;
+ ((KeywordTransformerClass *) klass)->transform = (GeeList* (*) (KeywordTransformer *, const gchar*, GError**)) null_keyword_transformer_real_transform;
#line 1094 "PhotoMetadata.c"
}
@@ -1140,8 +1140,8 @@ static void _acd_see_keyword_transformer_on_error_gmarkup_parser_error_func (GMa
ACDSeeKeywordTransformer* acd_see_keyword_transformer_construct (GType object_type) {
ACDSeeKeywordTransformer* self = NULL;
- GeeArrayList* _tmp0_ = NULL;
- GeeArrayQueue* _tmp1_ = NULL;
+ GeeArrayList* _tmp0_;
+ GeeArrayQueue* _tmp1_;
#line 62 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
self = (ACDSeeKeywordTransformer*) keyword_transformer_construct (object_type);
#line 63 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -1190,14 +1190,14 @@ static GeeList* acd_see_keyword_transformer_real_transform (KeywordTransformer*
ACDSeeKeywordTransformer * self;
GeeList* result = NULL;
GMarkupParseContext* ctx = NULL;
- GMarkupParser _tmp0_ = {0};
- GMarkupParseContext* _tmp1_ = NULL;
- const gchar* _tmp2_ = NULL;
- const gchar* _tmp3_ = NULL;
- gint _tmp4_ = 0;
- gint _tmp5_ = 0;
- GeeArrayList* _tmp6_ = NULL;
- GeeList* _tmp7_ = NULL;
+ GMarkupParser _tmp0_;
+ GMarkupParseContext* _tmp1_;
+ const gchar* _tmp2_;
+ const gchar* _tmp3_;
+ gint _tmp4_;
+ gint _tmp5_;
+ GeeArrayList* _tmp6_;
+ GeeList* _tmp7_;
GError * _inner_error_ = NULL;
#line 72 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_ACD_SEE_KEYWORD_TRANSFORMER, ACDSeeKeywordTransformer);
@@ -1244,13 +1244,13 @@ static GeeList* acd_see_keyword_transformer_real_transform (KeywordTransformer*
static void acd_see_keyword_transformer_on_start (ACDSeeKeywordTransformer* self, GMarkupParseContext* ctx, const gchar* name, gchar** attribute_names, gchar** attribute_values, GError** error) {
- const gchar* _tmp0_ = NULL;
- const gchar* _tmp1_ = NULL;
- const gchar* _tmp2_ = NULL;
- gchar** _tmp3_ = NULL;
- gint _tmp3__length1 = 0;
- gchar** _tmp4_ = NULL;
- gint _tmp4__length1 = 0;
+ const gchar* _tmp0_;
+ const gchar* _tmp1_;
+ const gchar* _tmp2_;
+ gchar** _tmp3_;
+ gint _tmp3__length1;
+ gchar** _tmp4_;
+ gint _tmp4__length1;
GError * _inner_error_ = NULL;
#line 80 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_ACD_SEE_KEYWORD_TRANSFORMER (self));
@@ -1311,7 +1311,7 @@ static void acd_see_keyword_transformer_on_start (ACDSeeKeywordTransformer* self
static void acd_see_keyword_transformer_on_end (ACDSeeKeywordTransformer* self, GMarkupParseContext* ctx, const gchar* name, GError** error) {
- const gchar* _tmp0_ = NULL;
+ const gchar* _tmp0_;
#line 104 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_ACD_SEE_KEYWORD_TRANSFORMER (self));
#line 104 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -1323,9 +1323,9 @@ static void acd_see_keyword_transformer_on_end (ACDSeeKeywordTransformer* self,
#line 106 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (g_strcmp0 (_tmp0_, "Category") == 0) {
#line 1326 "PhotoMetadata.c"
- GeeArrayQueue* _tmp1_ = NULL;
- gpointer _tmp2_ = NULL;
- gchar* _tmp3_ = NULL;
+ GeeArrayQueue* _tmp1_;
+ gpointer _tmp2_;
+ gchar* _tmp3_;
#line 107 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp1_ = self->priv->stack;
#line 107 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -1340,10 +1340,10 @@ static void acd_see_keyword_transformer_on_end (ACDSeeKeywordTransformer* self,
static void acd_see_keyword_transformer_on_text (ACDSeeKeywordTransformer* self, GMarkupParseContext* ctx, const gchar* text, GError** error) {
- const gchar* _tmp0_ = NULL;
- GeeArrayQueue* _tmp1_ = NULL;
- const gchar* _tmp2_ = NULL;
- gboolean _tmp3_ = FALSE;
+ const gchar* _tmp0_;
+ GeeArrayQueue* _tmp1_;
+ const gchar* _tmp2_;
+ gboolean _tmp3_;
#line 111 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_ACD_SEE_KEYWORD_TRANSFORMER (self));
#line 111 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -1370,12 +1370,12 @@ static void acd_see_keyword_transformer_on_text (ACDSeeKeywordTransformer* self,
if (_tmp3_) {
#line 1372 "PhotoMetadata.c"
GString* builder = NULL;
- GString* _tmp4_ = NULL;
- GString* _tmp13_ = NULL;
- gssize _tmp14_ = 0L;
- GeeArrayList* _tmp18_ = NULL;
- GString* _tmp19_ = NULL;
- const gchar* _tmp20_ = NULL;
+ GString* _tmp4_;
+ GString* _tmp13_;
+ gssize _tmp14_;
+ GeeArrayList* _tmp18_;
+ GString* _tmp19_;
+ const gchar* _tmp20_;
#line 119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp4_ = g_string_new ("");
#line 119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -1383,8 +1383,8 @@ static void acd_see_keyword_transformer_on_text (ACDSeeKeywordTransformer* self,
#line 1384 "PhotoMetadata.c"
{
GeeIterator* _f_it = NULL;
- GeeArrayQueue* _tmp5_ = NULL;
- GeeIterator* _tmp6_ = NULL;
+ GeeArrayQueue* _tmp5_;
+ GeeIterator* _tmp6_;
#line 120 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp5_ = self->priv->stack;
#line 120 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -1394,13 +1394,13 @@ static void acd_see_keyword_transformer_on_text (ACDSeeKeywordTransformer* self,
#line 120 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
while (TRUE) {
#line 1397 "PhotoMetadata.c"
- GeeIterator* _tmp7_ = NULL;
- gboolean _tmp8_ = FALSE;
+ GeeIterator* _tmp7_;
+ gboolean _tmp8_;
gchar* f = NULL;
- GeeIterator* _tmp9_ = NULL;
- gpointer _tmp10_ = NULL;
- GString* _tmp11_ = NULL;
- const gchar* _tmp12_ = NULL;
+ GeeIterator* _tmp9_;
+ gpointer _tmp10_;
+ GString* _tmp11_;
+ const gchar* _tmp12_;
#line 120 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp7_ = _f_it;
#line 120 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -1438,9 +1438,9 @@ static void acd_see_keyword_transformer_on_text (ACDSeeKeywordTransformer* self,
#line 123 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp14_ > ((gssize) 0)) {
#line 1441 "PhotoMetadata.c"
- GString* _tmp15_ = NULL;
- GString* _tmp16_ = NULL;
- gssize _tmp17_ = 0L;
+ GString* _tmp15_;
+ GString* _tmp16_;
+ gssize _tmp17_;
#line 124 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp15_ = builder;
#line 124 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -1474,8 +1474,8 @@ static gpointer _g_error_copy0 (gpointer self) {
static void acd_see_keyword_transformer_on_error (ACDSeeKeywordTransformer* self, GMarkupParseContext* ctx, GError* _error_) {
- GError* _tmp0_ = NULL;
- GError* _tmp1_ = NULL;
+ GError* _tmp0_;
+ GError* _tmp1_;
#line 130 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_ACD_SEE_KEYWORD_TRANSFORMER (self));
#line 130 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -1500,7 +1500,7 @@ static void acd_see_keyword_transformer_class_init (ACDSeeKeywordTransformerClas
#line 55 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_type_class_add_private (klass, sizeof (ACDSeeKeywordTransformerPrivate));
#line 55 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- ((KeywordTransformerClass *) klass)->transform = (GeeList* (*)(KeywordTransformer*, const gchar*, GError**)) acd_see_keyword_transformer_real_transform;
+ ((KeywordTransformerClass *) klass)->transform = (GeeList* (*) (KeywordTransformer *, const gchar*, GError**)) acd_see_keyword_transformer_real_transform;
#line 1505 "PhotoMetadata.c"
}
@@ -1512,7 +1512,7 @@ static void acd_see_keyword_transformer_instance_init (ACDSeeKeywordTransformer
}
-static void acd_see_keyword_transformer_finalize (KeywordTransformer* obj) {
+static void acd_see_keyword_transformer_finalize (KeywordTransformer * obj) {
ACDSeeKeywordTransformer * self;
#line 55 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_ACD_SEE_KEYWORD_TRANSFORMER, ACDSeeKeywordTransformer);
@@ -1549,14 +1549,14 @@ static gpointer _keyword_transformer_ref0 (gpointer self) {
HierarchicalKeywordField* hierarchical_keyword_field_construct (GType object_type, const gchar* field_name, const gchar* path_separator, gboolean wants_leading_separator, gboolean is_writeable, KeywordTransformer* transformer) {
HierarchicalKeywordField* self = NULL;
- const gchar* _tmp0_ = NULL;
- gchar* _tmp1_ = NULL;
- const gchar* _tmp2_ = NULL;
- gchar* _tmp3_ = NULL;
- gboolean _tmp4_ = FALSE;
- gboolean _tmp5_ = FALSE;
- KeywordTransformer* _tmp6_ = NULL;
- KeywordTransformer* _tmp7_ = NULL;
+ const gchar* _tmp0_;
+ gchar* _tmp1_;
+ const gchar* _tmp2_;
+ gchar* _tmp3_;
+ gboolean _tmp4_;
+ gboolean _tmp5_;
+ KeywordTransformer* _tmp6_;
+ KeywordTransformer* _tmp7_;
#line 144 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (field_name != NULL, NULL);
#line 144 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -1652,7 +1652,7 @@ static gchar* value_hierarchical_keyword_field_collect_value (GValue* value, gui
#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (collect_values[0].v_pointer) {
#line 1655 "PhotoMetadata.c"
- HierarchicalKeywordField* object;
+ HierarchicalKeywordField * object;
object = collect_values[0].v_pointer;
#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (object->parent_instance.g_class == NULL) {
@@ -1679,7 +1679,7 @@ static gchar* value_hierarchical_keyword_field_collect_value (GValue* value, gui
static gchar* value_hierarchical_keyword_field_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
- HierarchicalKeywordField** object_p;
+ HierarchicalKeywordField ** object_p;
object_p = collect_values[0].v_pointer;
#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (!object_p) {
@@ -1731,7 +1731,7 @@ gpointer value_get_hierarchical_keyword_field (const GValue* value) {
void value_set_hierarchical_keyword_field (GValue* value, gpointer v_object) {
- HierarchicalKeywordField* old;
+ HierarchicalKeywordField * old;
#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_HIERARCHICAL_KEYWORD_FIELD));
#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -1762,7 +1762,7 @@ void value_set_hierarchical_keyword_field (GValue* value, gpointer v_object) {
void value_take_hierarchical_keyword_field (GValue* value, gpointer v_object) {
- HierarchicalKeywordField* old;
+ HierarchicalKeywordField * old;
#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_HIERARCHICAL_KEYWORD_FIELD));
#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -1806,7 +1806,7 @@ static void hierarchical_keyword_field_instance_init (HierarchicalKeywordField *
}
-static void hierarchical_keyword_field_finalize (HierarchicalKeywordField* obj) {
+static void hierarchical_keyword_field_finalize (HierarchicalKeywordField * obj) {
HierarchicalKeywordField * self;
#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_HIERARCHICAL_KEYWORD_FIELD, HierarchicalKeywordField);
@@ -1837,7 +1837,7 @@ GType hierarchical_keyword_field_get_type (void) {
gpointer hierarchical_keyword_field_ref (gpointer instance) {
- HierarchicalKeywordField* self;
+ HierarchicalKeywordField * self;
self = instance;
#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_atomic_int_inc (&self->ref_count);
@@ -1848,7 +1848,7 @@ gpointer hierarchical_keyword_field_ref (gpointer instance) {
void hierarchical_keyword_field_unref (gpointer instance) {
- HierarchicalKeywordField* self;
+ HierarchicalKeywordField * self;
self = instance;
#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (g_atomic_int_dec_and_test (&self->ref_count)) {
@@ -1863,14 +1863,14 @@ void hierarchical_keyword_field_unref (gpointer instance) {
PhotoPreview* photo_preview_construct (GType object_type, const gchar* name, Dimensions* dimensions, guint32 size, const gchar* mime_type, const gchar* extension) {
PhotoPreview* self = NULL;
- const gchar* _tmp0_ = NULL;
- gchar* _tmp1_ = NULL;
- Dimensions _tmp2_ = {0};
- guint32 _tmp3_ = 0U;
- const gchar* _tmp4_ = NULL;
- gchar* _tmp5_ = NULL;
- const gchar* _tmp6_ = NULL;
- gchar* _tmp7_ = NULL;
+ const gchar* _tmp0_;
+ gchar* _tmp1_;
+ Dimensions _tmp2_;
+ guint32 _tmp3_;
+ const gchar* _tmp4_;
+ gchar* _tmp5_;
+ const gchar* _tmp6_;
+ gchar* _tmp7_;
#line 165 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (name != NULL, NULL);
#line 165 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -1921,8 +1921,8 @@ PhotoPreview* photo_preview_construct (GType object_type, const gchar* name, Dim
gchar* photo_preview_get_name (PhotoPreview* self) {
gchar* result = NULL;
- const gchar* _tmp0_ = NULL;
- gchar* _tmp1_ = NULL;
+ const gchar* _tmp0_;
+ gchar* _tmp1_;
#line 173 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_PREVIEW (self), NULL);
#line 174 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -1938,7 +1938,7 @@ gchar* photo_preview_get_name (PhotoPreview* self) {
void photo_preview_get_pixel_dimensions (PhotoPreview* self, Dimensions* result) {
- Dimensions _tmp0_ = {0};
+ Dimensions _tmp0_;
#line 177 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_PREVIEW (self));
#line 178 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -1953,7 +1953,7 @@ void photo_preview_get_pixel_dimensions (PhotoPreview* self, Dimensions* result)
guint32 photo_preview_get_size (PhotoPreview* self) {
guint32 result = 0U;
- guint32 _tmp0_ = 0U;
+ guint32 _tmp0_;
#line 181 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_PREVIEW (self), 0U);
#line 182 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -1968,8 +1968,8 @@ guint32 photo_preview_get_size (PhotoPreview* self) {
gchar* photo_preview_get_mime_type (PhotoPreview* self) {
gchar* result = NULL;
- const gchar* _tmp0_ = NULL;
- gchar* _tmp1_ = NULL;
+ const gchar* _tmp0_;
+ gchar* _tmp1_;
#line 185 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_PREVIEW (self), NULL);
#line 186 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -1986,8 +1986,8 @@ gchar* photo_preview_get_mime_type (PhotoPreview* self) {
gchar* photo_preview_get_extension (PhotoPreview* self) {
gchar* result = NULL;
- const gchar* _tmp0_ = NULL;
- gchar* _tmp1_ = NULL;
+ const gchar* _tmp0_;
+ gchar* _tmp1_;
#line 189 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_PREVIEW (self), NULL);
#line 190 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -2030,10 +2030,10 @@ static guint8* _vala_array_dup4 (guint8* self, int length) {
static GdkPixbuf* photo_preview_real_get_pixbuf (PhotoPreview* self, GError** error) {
GdkPixbuf* result = NULL;
guint8* flattened = NULL;
- gint _tmp0_ = 0;
- guint8* _tmp1_ = NULL;
- gint flattened_length1 = 0;
- gint _flattened_size_ = 0;
+ gint _tmp0_;
+ guint8* _tmp1_;
+ gint flattened_length1;
+ gint _flattened_size_;
GError * _inner_error_ = NULL;
#line 196 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp1_ = photo_preview_flatten (self, &_tmp0_, &_inner_error_);
@@ -2053,13 +2053,13 @@ static GdkPixbuf* photo_preview_real_get_pixbuf (PhotoPreview* self, GError** er
}
{
GdkPixbuf* _tmp2_ = NULL;
- guint8* _tmp3_ = NULL;
- gint _tmp3__length1 = 0;
- GMemoryInputStream* _tmp4_ = NULL;
- GMemoryInputStream* _tmp5_ = NULL;
- GdkPixbuf* _tmp6_ = NULL;
- GdkPixbuf* _tmp7_ = NULL;
- GdkPixbuf* _tmp8_ = NULL;
+ guint8* _tmp3_;
+ gint _tmp3__length1;
+ GMemoryInputStream* _tmp4_;
+ GMemoryInputStream* _tmp5_;
+ GdkPixbuf* _tmp6_;
+ GdkPixbuf* _tmp7_;
+ GdkPixbuf* _tmp8_;
#line 201 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp3_ = (flattened != NULL) ? _vala_array_dup4 (flattened, flattened_length1) : ((gpointer) flattened);
#line 201 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -2099,9 +2099,9 @@ static GdkPixbuf* photo_preview_real_get_pixbuf (PhotoPreview* self, GError** er
__catch25_g_error:
{
GError* err = NULL;
- const gchar* _tmp9_ = NULL;
- GError* _tmp10_ = NULL;
- const gchar* _tmp11_ = NULL;
+ const gchar* _tmp9_;
+ GError* _tmp10_;
+ const gchar* _tmp11_;
#line 200 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
err = _inner_error_;
#line 200 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -2186,7 +2186,7 @@ static gchar* value_photo_preview_collect_value (GValue* value, guint n_collect_
#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (collect_values[0].v_pointer) {
#line 2189 "PhotoMetadata.c"
- PhotoPreview* object;
+ PhotoPreview * object;
object = collect_values[0].v_pointer;
#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (object->parent_instance.g_class == NULL) {
@@ -2213,7 +2213,7 @@ static gchar* value_photo_preview_collect_value (GValue* value, guint n_collect_
static gchar* value_photo_preview_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
- PhotoPreview** object_p;
+ PhotoPreview ** object_p;
object_p = collect_values[0].v_pointer;
#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (!object_p) {
@@ -2265,7 +2265,7 @@ gpointer value_get_photo_preview (const GValue* value) {
void value_set_photo_preview (GValue* value, gpointer v_object) {
- PhotoPreview* old;
+ PhotoPreview * old;
#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_PREVIEW));
#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -2296,7 +2296,7 @@ void value_set_photo_preview (GValue* value, gpointer v_object) {
void value_take_photo_preview (GValue* value, gpointer v_object) {
- PhotoPreview* old;
+ PhotoPreview * old;
#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_PREVIEW));
#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -2332,9 +2332,9 @@ static void photo_preview_class_init (PhotoPreviewClass * klass) {
#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_type_class_add_private (klass, sizeof (PhotoPreviewPrivate));
#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- ((PhotoPreviewClass *) klass)->flatten = (guint8* (*)(PhotoPreview*, int*, GError**)) photo_preview_real_flatten;
+ ((PhotoPreviewClass *) klass)->flatten = (guint8* (*) (PhotoPreview *, int*, GError**)) photo_preview_real_flatten;
#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- ((PhotoPreviewClass *) klass)->get_pixbuf = (GdkPixbuf* (*)(PhotoPreview*, GError**)) photo_preview_real_get_pixbuf;
+ ((PhotoPreviewClass *) klass)->get_pixbuf = (GdkPixbuf* (*) (PhotoPreview *, GError**)) photo_preview_real_get_pixbuf;
#line 2339 "PhotoMetadata.c"
}
@@ -2348,7 +2348,7 @@ static void photo_preview_instance_init (PhotoPreview * self) {
}
-static void photo_preview_finalize (PhotoPreview* obj) {
+static void photo_preview_finalize (PhotoPreview * obj) {
PhotoPreview * self;
#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PHOTO_PREVIEW, PhotoPreview);
@@ -2379,7 +2379,7 @@ GType photo_preview_get_type (void) {
gpointer photo_preview_ref (gpointer instance) {
- PhotoPreview* self;
+ PhotoPreview * self;
self = instance;
#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_atomic_int_inc (&self->ref_count);
@@ -2390,7 +2390,7 @@ gpointer photo_preview_ref (gpointer instance) {
void photo_preview_unref (gpointer instance) {
- PhotoPreview* self;
+ PhotoPreview * self;
self = instance;
#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (g_atomic_int_dec_and_test (&self->ref_count)) {
@@ -2434,17 +2434,17 @@ PhotoMetadata* photo_metadata_new (void) {
static void photo_metadata_real_read_from_file (MediaMetadata* base, GFile* file, GError** error) {
PhotoMetadata * self;
- GExiv2Metadata* _tmp0_ = NULL;
- GExiv2Metadata* _tmp1_ = NULL;
- GFile* _tmp2_ = NULL;
- gchar* _tmp3_ = NULL;
- gchar* _tmp4_ = NULL;
- GFile* _tmp5_ = NULL;
- gchar* _tmp6_ = NULL;
- gchar* _tmp7_ = NULL;
- ExifData* _tmp8_ = NULL;
- GFile* _tmp9_ = NULL;
- gchar* _tmp10_ = NULL;
+ GExiv2Metadata* _tmp0_;
+ GExiv2Metadata* _tmp1_;
+ GFile* _tmp2_;
+ gchar* _tmp3_;
+ gchar* _tmp4_;
+ GFile* _tmp5_;
+ gchar* _tmp6_;
+ gchar* _tmp7_;
+ ExifData* _tmp8_;
+ GFile* _tmp9_;
+ gchar* _tmp10_;
GError * _inner_error_ = NULL;
#line 254 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_METADATA, PhotoMetadata);
@@ -2507,10 +2507,10 @@ static void photo_metadata_real_read_from_file (MediaMetadata* base, GFile* file
void photo_metadata_write_to_file (PhotoMetadata* self, GFile* file, GError** error) {
- GExiv2Metadata* _tmp0_ = NULL;
- GFile* _tmp1_ = NULL;
- gchar* _tmp2_ = NULL;
- gchar* _tmp3_ = NULL;
+ GExiv2Metadata* _tmp0_;
+ GFile* _tmp1_;
+ gchar* _tmp2_;
+ gchar* _tmp3_;
GError * _inner_error_ = NULL;
#line 263 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
@@ -2540,21 +2540,21 @@ void photo_metadata_write_to_file (PhotoMetadata* self, GFile* file, GError** er
void photo_metadata_read_from_buffer (PhotoMetadata* self, guint8* buffer, int buffer_length1, gint length, GError** error) {
- gint _tmp0_ = 0;
- guint8* _tmp2_ = NULL;
- gint _tmp2__length1 = 0;
- gint _tmp3_ = 0;
- GExiv2Metadata* _tmp4_ = NULL;
- GExiv2Metadata* _tmp5_ = NULL;
- guint8* _tmp6_ = NULL;
- gint _tmp6__length1 = 0;
- gint _tmp7_ = 0;
- guint8* _tmp8_ = NULL;
- gint _tmp8__length1 = 0;
- gint _tmp9_ = 0;
- ExifData* _tmp10_ = NULL;
- gint _tmp11_ = 0;
- gchar* _tmp12_ = NULL;
+ gint _tmp0_;
+ guint8* _tmp2_;
+ gint _tmp2__length1;
+ gint _tmp3_;
+ GExiv2Metadata* _tmp4_;
+ GExiv2Metadata* _tmp5_;
+ guint8* _tmp6_;
+ gint _tmp6__length1;
+ gint _tmp7_;
+ guint8* _tmp8_;
+ gint _tmp8__length1;
+ gint _tmp9_;
+ ExifData* _tmp10_;
+ gint _tmp11_;
+ gchar* _tmp12_;
GError * _inner_error_ = NULL;
#line 267 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
@@ -2563,8 +2563,8 @@ void photo_metadata_read_from_buffer (PhotoMetadata* self, guint8* buffer, int b
#line 268 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp0_ <= 0) {
#line 2566 "PhotoMetadata.c"
- guint8* _tmp1_ = NULL;
- gint _tmp1__length1 = 0;
+ guint8* _tmp1_;
+ gint _tmp1__length1;
#line 269 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp1_ = buffer;
#line 269 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -2634,21 +2634,21 @@ void photo_metadata_read_from_buffer (PhotoMetadata* self, guint8* buffer, int b
void photo_metadata_read_from_app1_segment (PhotoMetadata* self, guint8* buffer, int buffer_length1, gint length, GError** error) {
- gint _tmp0_ = 0;
- guint8* _tmp2_ = NULL;
- gint _tmp2__length1 = 0;
- gint _tmp3_ = 0;
- GExiv2Metadata* _tmp4_ = NULL;
- GExiv2Metadata* _tmp5_ = NULL;
- guint8* _tmp6_ = NULL;
- gint _tmp6__length1 = 0;
- gint _tmp7_ = 0;
- guint8* _tmp8_ = NULL;
- gint _tmp8__length1 = 0;
- gint _tmp9_ = 0;
- ExifData* _tmp10_ = NULL;
- gint _tmp11_ = 0;
- gchar* _tmp12_ = NULL;
+ gint _tmp0_;
+ guint8* _tmp2_;
+ gint _tmp2__length1;
+ gint _tmp3_;
+ GExiv2Metadata* _tmp4_;
+ GExiv2Metadata* _tmp5_;
+ guint8* _tmp6_;
+ gint _tmp6__length1;
+ gint _tmp7_;
+ guint8* _tmp8_;
+ gint _tmp8__length1;
+ gint _tmp9_;
+ ExifData* _tmp10_;
+ gint _tmp11_;
+ gchar* _tmp12_;
GError * _inner_error_ = NULL;
#line 281 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
@@ -2657,8 +2657,8 @@ void photo_metadata_read_from_app1_segment (PhotoMetadata* self, guint8* buffer,
#line 282 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp0_ <= 0) {
#line 2660 "PhotoMetadata.c"
- guint8* _tmp1_ = NULL;
- gint _tmp1__length1 = 0;
+ guint8* _tmp1_;
+ gint _tmp1__length1;
#line 283 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp1_ = buffer;
#line 283 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -2729,12 +2729,12 @@ void photo_metadata_read_from_app1_segment (PhotoMetadata* self, guint8* buffer,
MetadataDomain photo_metadata_get_tag_domain (const gchar* tag) {
MetadataDomain result = 0;
- const gchar* _tmp0_ = NULL;
- gboolean _tmp1_ = FALSE;
- const gchar* _tmp2_ = NULL;
- gboolean _tmp3_ = FALSE;
- const gchar* _tmp4_ = NULL;
- gboolean _tmp5_ = FALSE;
+ const gchar* _tmp0_;
+ gboolean _tmp1_;
+ const gchar* _tmp2_;
+ gboolean _tmp3_;
+ const gchar* _tmp4_;
+ gboolean _tmp5_;
#line 295 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (tag != NULL, 0);
#line 296 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -2783,7 +2783,7 @@ MetadataDomain photo_metadata_get_tag_domain (const gchar* tag) {
gboolean photo_metadata_has_domain (PhotoMetadata* self, MetadataDomain domain) {
gboolean result = FALSE;
- MetadataDomain _tmp0_ = 0;
+ MetadataDomain _tmp0_;
#line 308 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE);
#line 309 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -2794,8 +2794,8 @@ gboolean photo_metadata_has_domain (PhotoMetadata* self, MetadataDomain domain)
case METADATA_DOMAIN_EXIF:
#line 2796 "PhotoMetadata.c"
{
- GExiv2Metadata* _tmp1_ = NULL;
- gboolean _tmp2_ = FALSE;
+ GExiv2Metadata* _tmp1_;
+ gboolean _tmp2_;
#line 311 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp1_ = self->priv->exiv2;
#line 311 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -2810,8 +2810,8 @@ gboolean photo_metadata_has_domain (PhotoMetadata* self, MetadataDomain domain)
case METADATA_DOMAIN_XMP:
#line 2812 "PhotoMetadata.c"
{
- GExiv2Metadata* _tmp3_ = NULL;
- gboolean _tmp4_ = FALSE;
+ GExiv2Metadata* _tmp3_;
+ gboolean _tmp4_;
#line 314 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp3_ = self->priv->exiv2;
#line 314 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -2826,8 +2826,8 @@ gboolean photo_metadata_has_domain (PhotoMetadata* self, MetadataDomain domain)
case METADATA_DOMAIN_IPTC:
#line 2828 "PhotoMetadata.c"
{
- GExiv2Metadata* _tmp5_ = NULL;
- gboolean _tmp6_ = FALSE;
+ GExiv2Metadata* _tmp5_;
+ gboolean _tmp6_;
#line 317 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp5_ = self->priv->exiv2;
#line 317 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -2855,7 +2855,7 @@ gboolean photo_metadata_has_domain (PhotoMetadata* self, MetadataDomain domain)
gboolean photo_metadata_has_exif (PhotoMetadata* self) {
gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
+ gboolean _tmp0_;
#line 325 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE);
#line 326 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -2870,7 +2870,7 @@ gboolean photo_metadata_has_exif (PhotoMetadata* self) {
gboolean photo_metadata_has_xmp (PhotoMetadata* self) {
gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
+ gboolean _tmp0_;
#line 329 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE);
#line 330 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -2885,7 +2885,7 @@ gboolean photo_metadata_has_xmp (PhotoMetadata* self) {
gboolean photo_metadata_has_iptc (PhotoMetadata* self) {
gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
+ gboolean _tmp0_;
#line 333 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE);
#line 334 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -2900,7 +2900,7 @@ gboolean photo_metadata_has_iptc (PhotoMetadata* self) {
gboolean photo_metadata_can_write_to_domain (PhotoMetadata* self, MetadataDomain domain) {
gboolean result = FALSE;
- MetadataDomain _tmp0_ = 0;
+ MetadataDomain _tmp0_;
#line 337 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE);
#line 338 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -2911,8 +2911,8 @@ gboolean photo_metadata_can_write_to_domain (PhotoMetadata* self, MetadataDomain
case METADATA_DOMAIN_EXIF:
#line 2913 "PhotoMetadata.c"
{
- GExiv2Metadata* _tmp1_ = NULL;
- gboolean _tmp2_ = FALSE;
+ GExiv2Metadata* _tmp1_;
+ gboolean _tmp2_;
#line 340 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp1_ = self->priv->exiv2;
#line 340 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -2927,8 +2927,8 @@ gboolean photo_metadata_can_write_to_domain (PhotoMetadata* self, MetadataDomain
case METADATA_DOMAIN_XMP:
#line 2929 "PhotoMetadata.c"
{
- GExiv2Metadata* _tmp3_ = NULL;
- gboolean _tmp4_ = FALSE;
+ GExiv2Metadata* _tmp3_;
+ gboolean _tmp4_;
#line 343 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp3_ = self->priv->exiv2;
#line 343 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -2943,8 +2943,8 @@ gboolean photo_metadata_can_write_to_domain (PhotoMetadata* self, MetadataDomain
case METADATA_DOMAIN_IPTC:
#line 2945 "PhotoMetadata.c"
{
- GExiv2Metadata* _tmp5_ = NULL;
- gboolean _tmp6_ = FALSE;
+ GExiv2Metadata* _tmp5_;
+ gboolean _tmp6_;
#line 346 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp5_ = self->priv->exiv2;
#line 346 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -2972,7 +2972,7 @@ gboolean photo_metadata_can_write_to_domain (PhotoMetadata* self, MetadataDomain
gboolean photo_metadata_can_write_exif (PhotoMetadata* self) {
gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
+ gboolean _tmp0_;
#line 354 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE);
#line 355 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -2987,7 +2987,7 @@ gboolean photo_metadata_can_write_exif (PhotoMetadata* self) {
gboolean photo_metadata_can_write_xmp (PhotoMetadata* self) {
gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
+ gboolean _tmp0_;
#line 358 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE);
#line 359 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -3002,7 +3002,7 @@ gboolean photo_metadata_can_write_xmp (PhotoMetadata* self) {
gboolean photo_metadata_can_write_iptc (PhotoMetadata* self) {
gboolean result = FALSE;
- gboolean _tmp0_ = FALSE;
+ gboolean _tmp0_;
#line 362 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE);
#line 363 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -3017,9 +3017,9 @@ gboolean photo_metadata_can_write_iptc (PhotoMetadata* self) {
gboolean photo_metadata_has_tag (PhotoMetadata* self, const gchar* tag) {
gboolean result = FALSE;
- GExiv2Metadata* _tmp0_ = NULL;
- const gchar* _tmp1_ = NULL;
- gboolean _tmp2_ = FALSE;
+ GExiv2Metadata* _tmp0_;
+ const gchar* _tmp1_;
+ gboolean _tmp2_;
#line 366 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE);
#line 366 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -3040,8 +3040,8 @@ gboolean photo_metadata_has_tag (PhotoMetadata* self, const gchar* tag) {
static GeeSet* photo_metadata_create_string_set (PhotoMetadata* self, GCompareDataFunc compare_func, void* compare_func_target, GDestroyNotify compare_func_target_destroy_notify) {
GeeSet* result = NULL;
- GCompareDataFunc _tmp0_ = NULL;
- void* _tmp0__target = NULL;
+ GCompareDataFunc _tmp0_;
+ void* _tmp0__target;
#line 370 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
#line 372 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -3051,7 +3051,7 @@ static GeeSet* photo_metadata_create_string_set (PhotoMetadata* self, GCompareDa
#line 372 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp0_ == NULL) {
#line 3054 "PhotoMetadata.c"
- GeeHashSet* _tmp1_ = NULL;
+ GeeHashSet* _tmp1_;
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp1_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL);
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -3068,10 +3068,10 @@ static GeeSet* photo_metadata_create_string_set (PhotoMetadata* self, GCompareDa
return result;
#line 3070 "PhotoMetadata.c"
} else {
- GCompareDataFunc _tmp2_ = NULL;
- void* _tmp2__target = NULL;
- GDestroyNotify _tmp2__target_destroy_notify = NULL;
- GeeTreeSet* _tmp3_ = NULL;
+ GCompareDataFunc _tmp2_;
+ void* _tmp2__target;
+ GDestroyNotify _tmp2__target_destroy_notify;
+ GeeTreeSet* _tmp3_;
#line 375 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp2_ = compare_func;
#line 375 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -3115,19 +3115,19 @@ static GeeSet* photo_metadata_create_string_set (PhotoMetadata* self, GCompareDa
GeeCollection* photo_metadata_get_tags (PhotoMetadata* self, MetadataDomain domain, GCompareDataFunc compare_func, void* compare_func_target, GDestroyNotify compare_func_target_destroy_notify) {
GeeCollection* result = NULL;
gchar** tags = NULL;
- gint tags_length1 = 0;
- gint _tags_size_ = 0;
- MetadataDomain _tmp0_ = 0;
+ gint tags_length1;
+ gint _tags_size_;
+ MetadataDomain _tmp0_;
gboolean _tmp10_ = FALSE;
- gchar** _tmp11_ = NULL;
- gint _tmp11__length1 = 0;
+ gchar** _tmp11_;
+ gint _tmp11__length1;
GeeCollection* collection = NULL;
- GCompareDataFunc _tmp13_ = NULL;
- void* _tmp13__target = NULL;
- GDestroyNotify _tmp13__target_destroy_notify = NULL;
- GeeSet* _tmp14_ = NULL;
- gchar** _tmp15_ = NULL;
- gint _tmp15__length1 = 0;
+ GCompareDataFunc _tmp13_;
+ void* _tmp13__target;
+ GDestroyNotify _tmp13__target_destroy_notify;
+ GeeSet* _tmp14_;
+ gchar** _tmp15_;
+ gint _tmp15__length1;
#line 378 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
#line 380 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -3144,9 +3144,9 @@ GeeCollection* photo_metadata_get_tags (PhotoMetadata* self, MetadataDomain doma
case METADATA_DOMAIN_EXIF:
#line 3146 "PhotoMetadata.c"
{
- GExiv2Metadata* _tmp1_ = NULL;
- gchar** _tmp2_ = NULL;
- gchar** _tmp3_ = NULL;
+ GExiv2Metadata* _tmp1_;
+ gchar** _tmp2_;
+ gchar** _tmp3_;
#line 383 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp1_ = self->priv->exiv2;
#line 383 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -3167,9 +3167,9 @@ GeeCollection* photo_metadata_get_tags (PhotoMetadata* self, MetadataDomain doma
case METADATA_DOMAIN_XMP:
#line 3169 "PhotoMetadata.c"
{
- GExiv2Metadata* _tmp4_ = NULL;
- gchar** _tmp5_ = NULL;
- gchar** _tmp6_ = NULL;
+ GExiv2Metadata* _tmp4_;
+ gchar** _tmp5_;
+ gchar** _tmp6_;
#line 387 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp4_ = self->priv->exiv2;
#line 387 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -3190,9 +3190,9 @@ GeeCollection* photo_metadata_get_tags (PhotoMetadata* self, MetadataDomain doma
case METADATA_DOMAIN_IPTC:
#line 3192 "PhotoMetadata.c"
{
- GExiv2Metadata* _tmp7_ = NULL;
- gchar** _tmp8_ = NULL;
- gchar** _tmp9_ = NULL;
+ GExiv2Metadata* _tmp7_;
+ gchar** _tmp8_;
+ gchar** _tmp9_;
#line 391 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp7_ = self->priv->exiv2;
#line 391 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -3224,8 +3224,8 @@ GeeCollection* photo_metadata_get_tags (PhotoMetadata* self, MetadataDomain doma
_tmp10_ = TRUE;
#line 3226 "PhotoMetadata.c"
} else {
- gchar** _tmp12_ = NULL;
- gint _tmp12__length1 = 0;
+ gchar** _tmp12_;
+ gint _tmp12__length1;
#line 395 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp12_ = tags;
#line 395 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -3285,7 +3285,7 @@ GeeCollection* photo_metadata_get_tags (PhotoMetadata* self, MetadataDomain doma
#line 399 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
for (tag_it = 0; tag_it < _tmp15__length1; tag_it = tag_it + 1) {
#line 3288 "PhotoMetadata.c"
- gchar* _tmp16_ = NULL;
+ gchar* _tmp16_;
gchar* tag = NULL;
#line 399 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp16_ = g_strdup (tag_collection[tag_it]);
@@ -3293,8 +3293,8 @@ GeeCollection* photo_metadata_get_tags (PhotoMetadata* self, MetadataDomain doma
tag = _tmp16_;
#line 3295 "PhotoMetadata.c"
{
- GeeCollection* _tmp17_ = NULL;
- const gchar* _tmp18_ = NULL;
+ GeeCollection* _tmp17_;
+ const gchar* _tmp18_;
#line 400 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp17_ = collection;
#line 400 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -3328,27 +3328,27 @@ GeeCollection* photo_metadata_get_tags (PhotoMetadata* self, MetadataDomain doma
GeeCollection* photo_metadata_get_all_tags (PhotoMetadata* self, GCompareDataFunc compare_func, void* compare_func_target, GDestroyNotify compare_func_target_destroy_notify) {
GeeCollection* result = NULL;
GeeCollection* all_tags = NULL;
- GCompareDataFunc _tmp0_ = NULL;
- void* _tmp0__target = NULL;
- GDestroyNotify _tmp0__target_destroy_notify = NULL;
- GeeSet* _tmp1_ = NULL;
+ GCompareDataFunc _tmp0_;
+ void* _tmp0__target;
+ GDestroyNotify _tmp0__target_destroy_notify;
+ GeeSet* _tmp1_;
GeeCollection* exif_tags = NULL;
- GeeCollection* _tmp2_ = NULL;
+ GeeCollection* _tmp2_;
gboolean _tmp3_ = FALSE;
- GeeCollection* _tmp4_ = NULL;
+ GeeCollection* _tmp4_;
GeeCollection* xmp_tags = NULL;
- GeeCollection* _tmp10_ = NULL;
+ GeeCollection* _tmp10_;
gboolean _tmp11_ = FALSE;
- GeeCollection* _tmp12_ = NULL;
+ GeeCollection* _tmp12_;
GeeCollection* iptc_tags = NULL;
- GeeCollection* _tmp18_ = NULL;
+ GeeCollection* _tmp18_;
gboolean _tmp19_ = FALSE;
- GeeCollection* _tmp20_ = NULL;
+ GeeCollection* _tmp20_;
GeeCollection* _tmp26_ = NULL;
- GeeCollection* _tmp27_ = NULL;
- gint _tmp28_ = 0;
- gint _tmp29_ = 0;
- GeeCollection* _tmp31_ = NULL;
+ GeeCollection* _tmp27_;
+ gint _tmp28_;
+ gint _tmp29_;
+ GeeCollection* _tmp31_;
#line 405 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
#line 407 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -3376,9 +3376,9 @@ GeeCollection* photo_metadata_get_all_tags (PhotoMetadata* self, GCompareDataFun
#line 410 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp4_ != NULL) {
#line 3379 "PhotoMetadata.c"
- GeeCollection* _tmp5_ = NULL;
- gint _tmp6_ = 0;
- gint _tmp7_ = 0;
+ GeeCollection* _tmp5_;
+ gint _tmp6_;
+ gint _tmp7_;
#line 410 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp5_ = exif_tags;
#line 410 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -3396,8 +3396,8 @@ GeeCollection* photo_metadata_get_all_tags (PhotoMetadata* self, GCompareDataFun
#line 410 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp3_) {
#line 3399 "PhotoMetadata.c"
- GeeCollection* _tmp8_ = NULL;
- GeeCollection* _tmp9_ = NULL;
+ GeeCollection* _tmp8_;
+ GeeCollection* _tmp9_;
#line 411 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp8_ = all_tags;
#line 411 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -3415,9 +3415,9 @@ GeeCollection* photo_metadata_get_all_tags (PhotoMetadata* self, GCompareDataFun
#line 414 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp12_ != NULL) {
#line 3418 "PhotoMetadata.c"
- GeeCollection* _tmp13_ = NULL;
- gint _tmp14_ = 0;
- gint _tmp15_ = 0;
+ GeeCollection* _tmp13_;
+ gint _tmp14_;
+ gint _tmp15_;
#line 414 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp13_ = xmp_tags;
#line 414 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -3435,8 +3435,8 @@ GeeCollection* photo_metadata_get_all_tags (PhotoMetadata* self, GCompareDataFun
#line 414 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp11_) {
#line 3438 "PhotoMetadata.c"
- GeeCollection* _tmp16_ = NULL;
- GeeCollection* _tmp17_ = NULL;
+ GeeCollection* _tmp16_;
+ GeeCollection* _tmp17_;
#line 415 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp16_ = all_tags;
#line 415 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -3454,9 +3454,9 @@ GeeCollection* photo_metadata_get_all_tags (PhotoMetadata* self, GCompareDataFun
#line 418 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp20_ != NULL) {
#line 3457 "PhotoMetadata.c"
- GeeCollection* _tmp21_ = NULL;
- gint _tmp22_ = 0;
- gint _tmp23_ = 0;
+ GeeCollection* _tmp21_;
+ gint _tmp22_;
+ gint _tmp23_;
#line 418 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp21_ = iptc_tags;
#line 418 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -3474,8 +3474,8 @@ GeeCollection* photo_metadata_get_all_tags (PhotoMetadata* self, GCompareDataFun
#line 418 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp19_) {
#line 3477 "PhotoMetadata.c"
- GeeCollection* _tmp24_ = NULL;
- GeeCollection* _tmp25_ = NULL;
+ GeeCollection* _tmp24_;
+ GeeCollection* _tmp25_;
#line 419 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp24_ = all_tags;
#line 419 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -3493,7 +3493,7 @@ GeeCollection* photo_metadata_get_all_tags (PhotoMetadata* self, GCompareDataFun
#line 421 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp29_ > 0) {
#line 3496 "PhotoMetadata.c"
- GeeCollection* _tmp30_ = NULL;
+ GeeCollection* _tmp30_;
#line 421 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp30_ = all_tags;
#line 421 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -3532,9 +3532,9 @@ GeeCollection* photo_metadata_get_all_tags (PhotoMetadata* self, GCompareDataFun
gchar* photo_metadata_get_tag_label (PhotoMetadata* self, const gchar* tag) {
gchar* result = NULL;
- const gchar* _tmp0_ = NULL;
- const gchar* _tmp1_ = NULL;
- gchar* _tmp2_ = NULL;
+ const gchar* _tmp0_;
+ const gchar* _tmp1_;
+ gchar* _tmp2_;
#line 424 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
#line 424 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -3555,9 +3555,9 @@ gchar* photo_metadata_get_tag_label (PhotoMetadata* self, const gchar* tag) {
gchar* photo_metadata_get_tag_description (PhotoMetadata* self, const gchar* tag) {
gchar* result = NULL;
- const gchar* _tmp0_ = NULL;
- const gchar* _tmp1_ = NULL;
- gchar* _tmp2_ = NULL;
+ const gchar* _tmp0_;
+ const gchar* _tmp1_;
+ gchar* _tmp2_;
#line 428 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
#line 428 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -3578,13 +3578,13 @@ gchar* photo_metadata_get_tag_description (PhotoMetadata* self, const gchar* tag
gchar* photo_metadata_get_string (PhotoMetadata* self, const gchar* tag, PrepareInputTextOptions options) {
gchar* result = NULL;
- GExiv2Metadata* _tmp0_ = NULL;
- const gchar* _tmp1_ = NULL;
- gchar* _tmp2_ = NULL;
- gchar* _tmp3_ = NULL;
- PrepareInputTextOptions _tmp4_ = 0;
- gchar* _tmp5_ = NULL;
- gchar* _tmp6_ = NULL;
+ GExiv2Metadata* _tmp0_;
+ const gchar* _tmp1_;
+ gchar* _tmp2_;
+ gchar* _tmp3_;
+ PrepareInputTextOptions _tmp4_;
+ gchar* _tmp5_;
+ gchar* _tmp6_;
#line 432 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
#line 432 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -3615,13 +3615,13 @@ gchar* photo_metadata_get_string (PhotoMetadata* self, const gchar* tag, Prepare
gchar* photo_metadata_get_string_interpreted (PhotoMetadata* self, const gchar* tag, PrepareInputTextOptions options) {
gchar* result = NULL;
- GExiv2Metadata* _tmp0_ = NULL;
- const gchar* _tmp1_ = NULL;
- gchar* _tmp2_ = NULL;
- gchar* _tmp3_ = NULL;
- PrepareInputTextOptions _tmp4_ = 0;
- gchar* _tmp5_ = NULL;
- gchar* _tmp6_ = NULL;
+ GExiv2Metadata* _tmp0_;
+ const gchar* _tmp1_;
+ gchar* _tmp2_;
+ gchar* _tmp3_;
+ PrepareInputTextOptions _tmp4_;
+ gchar* _tmp5_;
+ gchar* _tmp6_;
#line 436 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
#line 436 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -3652,8 +3652,8 @@ gchar* photo_metadata_get_string_interpreted (PhotoMetadata* self, const gchar*
gchar* photo_metadata_get_first_string (PhotoMetadata* self, gchar** tags, int tags_length1) {
gchar* result = NULL;
- gchar** _tmp0_ = NULL;
- gint _tmp0__length1 = 0;
+ gchar** _tmp0_;
+ gint _tmp0__length1;
#line 440 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
#line 441 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -3673,7 +3673,7 @@ gchar* photo_metadata_get_first_string (PhotoMetadata* self, gchar** tags, int t
#line 441 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
for (tag_it = 0; tag_it < _tmp0__length1; tag_it = tag_it + 1) {
#line 3676 "PhotoMetadata.c"
- gchar* _tmp1_ = NULL;
+ gchar* _tmp1_;
gchar* tag = NULL;
#line 441 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp1_ = g_strdup (tag_collection[tag_it]);
@@ -3682,9 +3682,9 @@ gchar* photo_metadata_get_first_string (PhotoMetadata* self, gchar** tags, int t
#line 3683 "PhotoMetadata.c"
{
gchar* value = NULL;
- const gchar* _tmp2_ = NULL;
- gchar* _tmp3_ = NULL;
- const gchar* _tmp4_ = NULL;
+ const gchar* _tmp2_;
+ gchar* _tmp3_;
+ const gchar* _tmp4_;
#line 442 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp2_ = tag;
#line 442 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -3721,8 +3721,8 @@ gchar* photo_metadata_get_first_string (PhotoMetadata* self, gchar** tags, int t
gchar* photo_metadata_get_first_string_interpreted (PhotoMetadata* self, gchar** tags, int tags_length1) {
gchar* result = NULL;
- gchar** _tmp0_ = NULL;
- gint _tmp0__length1 = 0;
+ gchar** _tmp0_;
+ gint _tmp0__length1;
#line 450 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
#line 451 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -3742,7 +3742,7 @@ gchar* photo_metadata_get_first_string_interpreted (PhotoMetadata* self, gchar**
#line 451 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
for (tag_it = 0; tag_it < _tmp0__length1; tag_it = tag_it + 1) {
#line 3745 "PhotoMetadata.c"
- gchar* _tmp1_ = NULL;
+ gchar* _tmp1_;
gchar* tag = NULL;
#line 451 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp1_ = g_strdup (tag_collection[tag_it]);
@@ -3751,9 +3751,9 @@ gchar* photo_metadata_get_first_string_interpreted (PhotoMetadata* self, gchar**
#line 3752 "PhotoMetadata.c"
{
gchar* value = NULL;
- const gchar* _tmp2_ = NULL;
- gchar* _tmp3_ = NULL;
- const gchar* _tmp4_ = NULL;
+ const gchar* _tmp2_;
+ gchar* _tmp3_;
+ const gchar* _tmp4_;
#line 452 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp2_ = tag;
#line 452 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -3791,26 +3791,26 @@ gchar* photo_metadata_get_first_string_interpreted (PhotoMetadata* self, gchar**
GeeList* photo_metadata_get_string_multiple (PhotoMetadata* self, const gchar* tag) {
GeeList* result = NULL;
gchar** values = NULL;
- GExiv2Metadata* _tmp0_ = NULL;
- const gchar* _tmp1_ = NULL;
- gchar** _tmp2_ = NULL;
- gchar** _tmp3_ = NULL;
- gint values_length1 = 0;
- gint _values_size_ = 0;
+ GExiv2Metadata* _tmp0_;
+ const gchar* _tmp1_;
+ gchar** _tmp2_;
+ gchar** _tmp3_;
+ gint values_length1;
+ gint _values_size_;
gboolean _tmp4_ = FALSE;
- gchar** _tmp5_ = NULL;
- gint _tmp5__length1 = 0;
+ gchar** _tmp5_;
+ gint _tmp5__length1;
GeeList* list = NULL;
- GeeArrayList* _tmp7_ = NULL;
+ GeeArrayList* _tmp7_;
GeeHashSet* collection = NULL;
- GeeHashSet* _tmp8_ = NULL;
- gchar** _tmp9_ = NULL;
- gint _tmp9__length1 = 0;
+ GeeHashSet* _tmp8_;
+ gchar** _tmp9_;
+ gint _tmp9__length1;
GeeList* _tmp22_ = NULL;
- GeeList* _tmp23_ = NULL;
- gint _tmp24_ = 0;
- gint _tmp25_ = 0;
- GeeList* _tmp27_ = NULL;
+ GeeList* _tmp23_;
+ gint _tmp24_;
+ gint _tmp25_;
+ GeeList* _tmp27_;
#line 466 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
#line 466 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -3837,8 +3837,8 @@ GeeList* photo_metadata_get_string_multiple (PhotoMetadata* self, const gchar* t
_tmp4_ = TRUE;
#line 3839 "PhotoMetadata.c"
} else {
- gchar** _tmp6_ = NULL;
- gint _tmp6__length1 = 0;
+ gchar** _tmp6_;
+ gint _tmp6__length1;
#line 468 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp6_ = values;
#line 468 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -3882,7 +3882,7 @@ GeeList* photo_metadata_get_string_multiple (PhotoMetadata* self, const gchar* t
#line 474 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
for (value_it = 0; value_it < _tmp9__length1; value_it = value_it + 1) {
#line 3885 "PhotoMetadata.c"
- gchar* _tmp10_ = NULL;
+ gchar* _tmp10_;
gchar* value = NULL;
#line 474 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp10_ = g_strdup (value_collection[value_it]);
@@ -3891,10 +3891,10 @@ GeeList* photo_metadata_get_string_multiple (PhotoMetadata* self, const gchar* t
#line 3892 "PhotoMetadata.c"
{
gchar* prepped = NULL;
- const gchar* _tmp11_ = NULL;
- gchar* _tmp12_ = NULL;
+ const gchar* _tmp11_;
+ gchar* _tmp12_;
gboolean _tmp13_ = FALSE;
- const gchar* _tmp14_ = NULL;
+ const gchar* _tmp14_;
#line 475 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp11_ = value;
#line 475 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -3906,9 +3906,9 @@ GeeList* photo_metadata_get_string_multiple (PhotoMetadata* self, const gchar* t
#line 478 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp14_ != NULL) {
#line 3909 "PhotoMetadata.c"
- GeeHashSet* _tmp15_ = NULL;
- const gchar* _tmp16_ = NULL;
- gboolean _tmp17_ = FALSE;
+ GeeHashSet* _tmp15_;
+ const gchar* _tmp16_;
+ gboolean _tmp17_;
#line 478 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp15_ = collection;
#line 478 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -3926,10 +3926,10 @@ GeeList* photo_metadata_get_string_multiple (PhotoMetadata* self, const gchar* t
#line 478 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp13_) {
#line 3929 "PhotoMetadata.c"
- GeeList* _tmp18_ = NULL;
- const gchar* _tmp19_ = NULL;
- GeeHashSet* _tmp20_ = NULL;
- const gchar* _tmp21_ = NULL;
+ GeeList* _tmp18_;
+ const gchar* _tmp19_;
+ GeeHashSet* _tmp20_;
+ const gchar* _tmp21_;
#line 479 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp18_ = list;
#line 479 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -3961,7 +3961,7 @@ GeeList* photo_metadata_get_string_multiple (PhotoMetadata* self, const gchar* t
#line 484 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp25_ > 0) {
#line 3964 "PhotoMetadata.c"
- GeeList* _tmp26_ = NULL;
+ GeeList* _tmp26_;
#line 484 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp26_ = list;
#line 484 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -3990,8 +3990,8 @@ GeeList* photo_metadata_get_string_multiple (PhotoMetadata* self, const gchar* t
GeeList* photo_metadata_get_first_string_multiple (PhotoMetadata* self, gchar** tags, int tags_length1) {
GeeList* result = NULL;
- gchar** _tmp0_ = NULL;
- gint _tmp0__length1 = 0;
+ gchar** _tmp0_;
+ gint _tmp0__length1;
#line 493 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
#line 494 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -4011,7 +4011,7 @@ GeeList* photo_metadata_get_first_string_multiple (PhotoMetadata* self, gchar**
#line 494 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
for (tag_it = 0; tag_it < _tmp0__length1; tag_it = tag_it + 1) {
#line 4014 "PhotoMetadata.c"
- gchar* _tmp1_ = NULL;
+ gchar* _tmp1_;
gchar* tag = NULL;
#line 494 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp1_ = g_strdup (tag_collection[tag_it]);
@@ -4020,10 +4020,10 @@ GeeList* photo_metadata_get_first_string_multiple (PhotoMetadata* self, gchar**
#line 4021 "PhotoMetadata.c"
{
GeeList* values = NULL;
- const gchar* _tmp2_ = NULL;
- GeeList* _tmp3_ = NULL;
+ const gchar* _tmp2_;
+ GeeList* _tmp3_;
gboolean _tmp4_ = FALSE;
- GeeList* _tmp5_ = NULL;
+ GeeList* _tmp5_;
#line 495 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp2_ = tag;
#line 495 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -4035,9 +4035,9 @@ GeeList* photo_metadata_get_first_string_multiple (PhotoMetadata* self, gchar**
#line 496 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp5_ != NULL) {
#line 4038 "PhotoMetadata.c"
- GeeList* _tmp6_ = NULL;
- gint _tmp7_ = 0;
- gint _tmp8_ = 0;
+ GeeList* _tmp6_;
+ gint _tmp7_;
+ gint _tmp8_;
#line 496 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp6_ = values;
#line 496 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -4080,14 +4080,14 @@ GeeList* photo_metadata_get_first_string_multiple (PhotoMetadata* self, gchar**
void photo_metadata_set_string (PhotoMetadata* self, const gchar* tag, const gchar* value, PrepareInputTextOptions options) {
gchar* prepped = NULL;
- const gchar* _tmp0_ = NULL;
- PrepareInputTextOptions _tmp1_ = 0;
- gchar* _tmp2_ = NULL;
- const gchar* _tmp3_ = NULL;
- GExiv2Metadata* _tmp6_ = NULL;
- const gchar* _tmp7_ = NULL;
- const gchar* _tmp8_ = NULL;
- gboolean _tmp9_ = FALSE;
+ const gchar* _tmp0_;
+ PrepareInputTextOptions _tmp1_;
+ gchar* _tmp2_;
+ const gchar* _tmp3_;
+ GExiv2Metadata* _tmp6_;
+ const gchar* _tmp7_;
+ const gchar* _tmp8_;
+ gboolean _tmp9_;
#line 503 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
#line 503 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -4107,8 +4107,8 @@ void photo_metadata_set_string (PhotoMetadata* self, const gchar* tag, const gch
#line 505 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp3_ == NULL) {
#line 4110 "PhotoMetadata.c"
- const gchar* _tmp4_ = NULL;
- const gchar* _tmp5_ = NULL;
+ const gchar* _tmp4_;
+ const gchar* _tmp5_;
#line 506 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp4_ = tag;
#line 506 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -4132,9 +4132,9 @@ void photo_metadata_set_string (PhotoMetadata* self, const gchar* tag, const gch
#line 511 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (!_tmp9_) {
#line 4135 "PhotoMetadata.c"
- const gchar* _tmp10_ = NULL;
- const gchar* _tmp11_ = NULL;
- const gchar* _tmp12_ = NULL;
+ const gchar* _tmp10_;
+ const gchar* _tmp11_;
+ const gchar* _tmp12_;
#line 512 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp10_ = tag;
#line 512 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -4154,11 +4154,11 @@ void photo_metadata_set_string (PhotoMetadata* self, const gchar* tag, const gch
static void photo_metadata_set_all_generic (PhotoMetadata* self, gchar** tags, int tags_length1, PhotoMetadataSetOption option, PhotoMetadataSetGenericValue setter, void* setter_target) {
gboolean written = FALSE;
- gchar** _tmp0_ = NULL;
- gint _tmp0__length1 = 0;
+ gchar** _tmp0_;
+ gint _tmp0__length1;
gboolean _tmp9_ = FALSE;
gboolean _tmp10_ = FALSE;
- PhotoMetadataSetOption _tmp11_ = 0;
+ PhotoMetadataSetOption _tmp11_;
#line 517 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
#line 518 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -4180,7 +4180,7 @@ static void photo_metadata_set_all_generic (PhotoMetadata* self, gchar** tags, i
#line 519 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
for (tag_it = 0; tag_it < _tmp0__length1; tag_it = tag_it + 1) {
#line 4182 "PhotoMetadata.c"
- gchar* _tmp1_ = NULL;
+ gchar* _tmp1_;
gchar* tag = NULL;
#line 519 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp1_ = g_strdup (tag_collection[tag_it]);
@@ -4189,7 +4189,7 @@ static void photo_metadata_set_all_generic (PhotoMetadata* self, gchar** tags, i
#line 4189 "PhotoMetadata.c"
{
gboolean _tmp2_ = FALSE;
- PhotoMetadataSetOption _tmp3_ = 0;
+ PhotoMetadataSetOption _tmp3_;
#line 520 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp3_ = option;
#line 520 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -4198,9 +4198,9 @@ static void photo_metadata_set_all_generic (PhotoMetadata* self, gchar** tags, i
_tmp2_ = TRUE;
#line 4199 "PhotoMetadata.c"
} else {
- const gchar* _tmp4_ = NULL;
- MetadataDomain _tmp5_ = 0;
- gboolean _tmp6_ = FALSE;
+ const gchar* _tmp4_;
+ MetadataDomain _tmp5_;
+ gboolean _tmp6_;
#line 520 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp4_ = tag;
#line 520 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -4214,9 +4214,9 @@ static void photo_metadata_set_all_generic (PhotoMetadata* self, gchar** tags, i
#line 520 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp2_) {
#line 4216 "PhotoMetadata.c"
- PhotoMetadataSetGenericValue _tmp7_ = NULL;
- void* _tmp7__target = NULL;
- const gchar* _tmp8_ = NULL;
+ PhotoMetadataSetGenericValue _tmp7_;
+ void* _tmp7__target;
+ const gchar* _tmp8_;
#line 521 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp7_ = setter;
#line 521 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -4240,7 +4240,7 @@ static void photo_metadata_set_all_generic (PhotoMetadata* self, gchar** tags, i
#line 526 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp11_ == PHOTO_METADATA_SET_OPTION_AT_LEAST_DEFAULT_DOMAIN) {
#line 4242 "PhotoMetadata.c"
- gboolean _tmp12_ = FALSE;
+ gboolean _tmp12_;
#line 526 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp12_ = written;
#line 526 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -4254,8 +4254,8 @@ static void photo_metadata_set_all_generic (PhotoMetadata* self, gchar** tags, i
#line 526 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp10_) {
#line 4256 "PhotoMetadata.c"
- gchar** _tmp13_ = NULL;
- gint _tmp13__length1 = 0;
+ gchar** _tmp13_;
+ gint _tmp13__length1;
#line 526 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp13_ = tags;
#line 526 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -4272,15 +4272,15 @@ static void photo_metadata_set_all_generic (PhotoMetadata* self, gchar** tags, i
if (_tmp9_) {
#line 4273 "PhotoMetadata.c"
MetadataDomain default_domain = 0;
- gchar** _tmp14_ = NULL;
- gint _tmp14__length1 = 0;
- const gchar* _tmp15_ = NULL;
- MetadataDomain _tmp16_ = 0;
- PhotoMetadataSetGenericValue _tmp17_ = NULL;
- void* _tmp17__target = NULL;
- gchar** _tmp18_ = NULL;
- gint _tmp18__length1 = 0;
- const gchar* _tmp19_ = NULL;
+ gchar** _tmp14_;
+ gint _tmp14__length1;
+ const gchar* _tmp15_;
+ MetadataDomain _tmp16_;
+ PhotoMetadataSetGenericValue _tmp17_;
+ void* _tmp17__target;
+ gchar** _tmp18_;
+ gint _tmp18__length1;
+ const gchar* _tmp19_;
#line 527 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp14_ = tags;
#line 527 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -4316,19 +4316,19 @@ static void photo_metadata_set_all_generic (PhotoMetadata* self, gchar** tags, i
#line 533 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
while (TRUE) {
#line 4318 "PhotoMetadata.c"
- gint _tmp22_ = 0;
- gchar** _tmp23_ = NULL;
- gint _tmp23__length1 = 0;
- gchar** _tmp24_ = NULL;
- gint _tmp24__length1 = 0;
- gint _tmp25_ = 0;
- const gchar* _tmp26_ = NULL;
- MetadataDomain _tmp27_ = 0;
- MetadataDomain _tmp28_ = 0;
+ gint _tmp22_;
+ gchar** _tmp23_;
+ gint _tmp23__length1;
+ gchar** _tmp24_;
+ gint _tmp24__length1;
+ gint _tmp25_;
+ const gchar* _tmp26_;
+ MetadataDomain _tmp27_;
+ MetadataDomain _tmp28_;
#line 533 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (!_tmp20_) {
#line 4330 "PhotoMetadata.c"
- gint _tmp21_ = 0;
+ gint _tmp21_;
#line 533 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp21_ = ctr;
#line 533 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -4364,12 +4364,12 @@ static void photo_metadata_set_all_generic (PhotoMetadata* self, gchar** tags, i
#line 534 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp27_ == _tmp28_) {
#line 4366 "PhotoMetadata.c"
- PhotoMetadataSetGenericValue _tmp29_ = NULL;
- void* _tmp29__target = NULL;
- gchar** _tmp30_ = NULL;
- gint _tmp30__length1 = 0;
- gint _tmp31_ = 0;
- const gchar* _tmp32_ = NULL;
+ PhotoMetadataSetGenericValue _tmp29_;
+ void* _tmp29__target;
+ gchar** _tmp30_;
+ gint _tmp30__length1;
+ gint _tmp31_;
+ const gchar* _tmp32_;
#line 535 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp29_ = setter;
#line 535 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -4424,8 +4424,8 @@ static void block1_data_unref (void * _userdata_) {
static void __lambda5_ (Block1Data* _data1_, const gchar* tag) {
PhotoMetadata* self;
- const gchar* _tmp0_ = NULL;
- const gchar* _tmp1_ = NULL;
+ const gchar* _tmp0_;
+ const gchar* _tmp1_;
#line 541 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
self = _data1_->self;
#line 541 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -4449,11 +4449,11 @@ static void ___lambda5__photo_metadata_set_generic_value (const gchar* tag, gpoi
void photo_metadata_set_all_string (PhotoMetadata* self, gchar** tags, int tags_length1, const gchar* value, PhotoMetadataSetOption option) {
Block1Data* _data1_;
- const gchar* _tmp0_ = NULL;
- gchar* _tmp1_ = NULL;
- gchar** _tmp2_ = NULL;
- gint _tmp2__length1 = 0;
- PhotoMetadataSetOption _tmp3_ = 0;
+ const gchar* _tmp0_;
+ gchar* _tmp1_;
+ gchar** _tmp2_;
+ gint _tmp2__length1;
+ PhotoMetadataSetOption _tmp3_;
#line 540 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
#line 540 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -4488,7 +4488,7 @@ void photo_metadata_set_all_string (PhotoMetadata* self, gchar** tags, int tags_
}
-static void _vala_array_add45 (gchar*** array, int* length, int* size, gchar* value) {
+static void _vala_array_add45 (gchar** * array, int* length, int* size, gchar* value) {
#line 549 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if ((*length) == (*size)) {
#line 549 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -4505,7 +4505,7 @@ static void _vala_array_add45 (gchar*** array, int* length, int* size, gchar* va
}
-static void _vala_array_add46 (gchar*** array, int* length, int* size, gchar* value) {
+static void _vala_array_add46 (gchar** * array, int* length, int* size, gchar* value) {
#line 561 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if ((*length) == (*size)) {
#line 561 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -4524,18 +4524,18 @@ static void _vala_array_add46 (gchar*** array, int* length, int* size, gchar* va
void photo_metadata_set_string_multiple (PhotoMetadata* self, const gchar* tag, GeeCollection* collection) {
gchar** values = NULL;
- gchar** _tmp0_ = NULL;
- gint values_length1 = 0;
- gint _values_size_ = 0;
- gchar** _tmp15_ = NULL;
- gint _tmp15__length1 = 0;
- gchar** _tmp16_ = NULL;
- gint _tmp16__length1 = 0;
- GExiv2Metadata* _tmp17_ = NULL;
- const gchar* _tmp18_ = NULL;
- gchar** _tmp19_ = NULL;
- gint _tmp19__length1 = 0;
- gboolean _tmp20_ = FALSE;
+ gchar** _tmp0_;
+ gint values_length1;
+ gint _values_size_;
+ gchar** _tmp15_;
+ gint _tmp15__length1;
+ gchar** _tmp16_;
+ gint _tmp16__length1;
+ GExiv2Metadata* _tmp17_;
+ const gchar* _tmp18_;
+ gchar** _tmp19_;
+ gint _tmp19__length1;
+ gboolean _tmp20_;
#line 544 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
#line 544 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -4553,8 +4553,8 @@ void photo_metadata_set_string_multiple (PhotoMetadata* self, const gchar* tag,
#line 4553 "PhotoMetadata.c"
{
GeeIterator* _value_it = NULL;
- GeeCollection* _tmp1_ = NULL;
- GeeIterator* _tmp2_ = NULL;
+ GeeCollection* _tmp1_;
+ GeeIterator* _tmp2_;
#line 546 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp1_ = collection;
#line 546 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -4564,15 +4564,15 @@ void photo_metadata_set_string_multiple (PhotoMetadata* self, const gchar* tag,
#line 546 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
while (TRUE) {
#line 4566 "PhotoMetadata.c"
- GeeIterator* _tmp3_ = NULL;
- gboolean _tmp4_ = FALSE;
+ GeeIterator* _tmp3_;
+ gboolean _tmp4_;
gchar* value = NULL;
- GeeIterator* _tmp5_ = NULL;
- gpointer _tmp6_ = NULL;
+ GeeIterator* _tmp5_;
+ gpointer _tmp6_;
gchar* prepped = NULL;
- const gchar* _tmp7_ = NULL;
- gchar* _tmp8_ = NULL;
- const gchar* _tmp9_ = NULL;
+ const gchar* _tmp7_;
+ gchar* _tmp8_;
+ const gchar* _tmp9_;
#line 546 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp3_ = _value_it;
#line 546 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -4600,10 +4600,10 @@ void photo_metadata_set_string_multiple (PhotoMetadata* self, const gchar* tag,
#line 548 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp9_ != NULL) {
#line 4602 "PhotoMetadata.c"
- gchar** _tmp10_ = NULL;
- gint _tmp10__length1 = 0;
- const gchar* _tmp11_ = NULL;
- gchar* _tmp12_ = NULL;
+ gchar** _tmp10_;
+ gint _tmp10__length1;
+ const gchar* _tmp11_;
+ gchar* _tmp12_;
#line 549 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp10_ = values;
#line 549 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -4616,8 +4616,8 @@ void photo_metadata_set_string_multiple (PhotoMetadata* self, const gchar* tag,
_vala_array_add45 (&values, &values_length1, &_values_size_, _tmp12_);
#line 4617 "PhotoMetadata.c"
} else {
- const gchar* _tmp13_ = NULL;
- const gchar* _tmp14_ = NULL;
+ const gchar* _tmp13_;
+ const gchar* _tmp14_;
#line 551 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp13_ = value;
#line 551 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -4667,10 +4667,10 @@ void photo_metadata_set_string_multiple (PhotoMetadata* self, const gchar* tag,
#line 563 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (!_tmp20_) {
#line 4669 "PhotoMetadata.c"
- gchar** _tmp21_ = NULL;
- gint _tmp21__length1 = 0;
- const gchar* _tmp22_ = NULL;
- const gchar* _tmp23_ = NULL;
+ gchar** _tmp21_;
+ gint _tmp21__length1;
+ const gchar* _tmp22_;
+ const gchar* _tmp23_;
#line 564 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp21_ = values;
#line 564 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -4721,8 +4721,8 @@ static void block2_data_unref (void * _userdata_) {
static void __lambda6_ (Block2Data* _data2_, const gchar* tag) {
PhotoMetadata* self;
- const gchar* _tmp0_ = NULL;
- GeeCollection* _tmp1_ = NULL;
+ const gchar* _tmp0_;
+ GeeCollection* _tmp1_;
#line 568 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
self = _data2_->self;
#line 568 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -4746,11 +4746,11 @@ static void ___lambda6__photo_metadata_set_generic_value (const gchar* tag, gpoi
void photo_metadata_set_all_string_multiple (PhotoMetadata* self, gchar** tags, int tags_length1, GeeCollection* values, PhotoMetadataSetOption option) {
Block2Data* _data2_;
- GeeCollection* _tmp0_ = NULL;
- GeeCollection* _tmp1_ = NULL;
- gchar** _tmp2_ = NULL;
- gint _tmp2__length1 = 0;
- PhotoMetadataSetOption _tmp3_ = 0;
+ GeeCollection* _tmp0_;
+ GeeCollection* _tmp1_;
+ gchar** _tmp2_;
+ gint _tmp2__length1;
+ PhotoMetadataSetOption _tmp3_;
#line 567 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
#line 567 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -4788,11 +4788,11 @@ void photo_metadata_set_all_string_multiple (PhotoMetadata* self, gchar** tags,
gboolean photo_metadata_get_long (PhotoMetadata* self, const gchar* tag, glong* value) {
glong _vala_value = 0L;
gboolean result = FALSE;
- const gchar* _tmp0_ = NULL;
- gboolean _tmp1_ = FALSE;
- GExiv2Metadata* _tmp2_ = NULL;
- const gchar* _tmp3_ = NULL;
- glong _tmp4_ = 0L;
+ const gchar* _tmp0_;
+ gboolean _tmp1_;
+ GExiv2Metadata* _tmp2_;
+ const gchar* _tmp3_;
+ glong _tmp4_;
#line 571 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE);
#line 571 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -4842,8 +4842,8 @@ gboolean photo_metadata_get_long (PhotoMetadata* self, const gchar* tag, glong*
gboolean photo_metadata_get_first_long (PhotoMetadata* self, gchar** tags, int tags_length1, glong* value) {
glong _vala_value = 0L;
gboolean result = FALSE;
- gchar** _tmp0_ = NULL;
- gint _tmp0__length1 = 0;
+ gchar** _tmp0_;
+ gint _tmp0__length1;
#line 583 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE);
#line 584 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -4863,7 +4863,7 @@ gboolean photo_metadata_get_first_long (PhotoMetadata* self, gchar** tags, int t
#line 584 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
for (tag_it = 0; tag_it < _tmp0__length1; tag_it = tag_it + 1) {
#line 4864 "PhotoMetadata.c"
- gchar* _tmp1_ = NULL;
+ gchar* _tmp1_;
gchar* tag = NULL;
#line 584 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp1_ = g_strdup (tag_collection[tag_it]);
@@ -4871,9 +4871,9 @@ gboolean photo_metadata_get_first_long (PhotoMetadata* self, gchar** tags, int t
tag = _tmp1_;
#line 4871 "PhotoMetadata.c"
{
- const gchar* _tmp2_ = NULL;
+ const gchar* _tmp2_;
glong _tmp3_ = 0L;
- gboolean _tmp4_ = FALSE;
+ gboolean _tmp4_;
#line 585 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp2_ = tag;
#line 585 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -4919,10 +4919,10 @@ gboolean photo_metadata_get_first_long (PhotoMetadata* self, gchar** tags, int t
void photo_metadata_set_long (PhotoMetadata* self, const gchar* tag, glong value) {
- GExiv2Metadata* _tmp0_ = NULL;
- const gchar* _tmp1_ = NULL;
- glong _tmp2_ = 0L;
- gboolean _tmp3_ = FALSE;
+ GExiv2Metadata* _tmp0_;
+ const gchar* _tmp1_;
+ glong _tmp2_;
+ gboolean _tmp3_;
#line 594 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
#line 594 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -4938,9 +4938,9 @@ void photo_metadata_set_long (PhotoMetadata* self, const gchar* tag, glong value
#line 595 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (!_tmp3_) {
#line 4939 "PhotoMetadata.c"
- const gchar* _tmp4_ = NULL;
- glong _tmp5_ = 0L;
- const gchar* _tmp6_ = NULL;
+ const gchar* _tmp4_;
+ glong _tmp5_;
+ const gchar* _tmp6_;
#line 596 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp4_ = tag;
#line 596 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -4984,8 +4984,8 @@ static void block3_data_unref (void * _userdata_) {
static void __lambda7_ (Block3Data* _data3_, const gchar* tag) {
PhotoMetadata* self;
- const gchar* _tmp0_ = NULL;
- glong _tmp1_ = 0L;
+ const gchar* _tmp0_;
+ glong _tmp1_;
#line 600 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
self = _data3_->self;
#line 600 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -5009,10 +5009,10 @@ static void ___lambda7__photo_metadata_set_generic_value (const gchar* tag, gpoi
void photo_metadata_set_all_long (PhotoMetadata* self, gchar** tags, int tags_length1, glong value, PhotoMetadataSetOption option) {
Block3Data* _data3_;
- glong _tmp0_ = 0L;
- gchar** _tmp1_ = NULL;
- gint _tmp1__length1 = 0;
- PhotoMetadataSetOption _tmp2_ = 0;
+ glong _tmp0_;
+ gchar** _tmp1_;
+ gint _tmp1__length1;
+ PhotoMetadataSetOption _tmp2_;
#line 599 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
#line 599 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -5047,11 +5047,11 @@ gboolean photo_metadata_get_rational (PhotoMetadata* self, const gchar* tag, Met
gint numerator = 0;
gint denominator = 0;
gboolean _result_ = FALSE;
- GExiv2Metadata* _tmp0_ = NULL;
- const gchar* _tmp1_ = NULL;
+ GExiv2Metadata* _tmp0_;
+ const gchar* _tmp1_;
gint _tmp2_ = 0;
gint _tmp3_ = 0;
- gboolean _tmp4_ = FALSE;
+ gboolean _tmp4_;
#line 603 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE);
#line 603 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -5087,8 +5087,8 @@ gboolean photo_metadata_get_rational (PhotoMetadata* self, const gchar* tag, Met
gboolean photo_metadata_get_first_rational (PhotoMetadata* self, gchar** tags, int tags_length1, MetadataRational* rational) {
MetadataRational _vala_rational = {0};
gboolean result = FALSE;
- gchar** _tmp0_ = NULL;
- gint _tmp0__length1 = 0;
+ gchar** _tmp0_;
+ gint _tmp0__length1;
#line 612 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE);
#line 613 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -5108,7 +5108,7 @@ gboolean photo_metadata_get_first_rational (PhotoMetadata* self, gchar** tags, i
#line 613 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
for (tag_it = 0; tag_it < _tmp0__length1; tag_it = tag_it + 1) {
#line 5108 "PhotoMetadata.c"
- gchar* _tmp1_ = NULL;
+ gchar* _tmp1_;
gchar* tag = NULL;
#line 613 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp1_ = g_strdup (tag_collection[tag_it]);
@@ -5116,9 +5116,9 @@ gboolean photo_metadata_get_first_rational (PhotoMetadata* self, gchar** tags, i
tag = _tmp1_;
#line 5115 "PhotoMetadata.c"
{
- const gchar* _tmp2_ = NULL;
+ const gchar* _tmp2_;
MetadataRational _tmp3_ = {0};
- gboolean _tmp4_ = FALSE;
+ gboolean _tmp4_;
#line 614 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp2_ = tag;
#line 614 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -5164,13 +5164,13 @@ gboolean photo_metadata_get_first_rational (PhotoMetadata* self, gchar** tags, i
void photo_metadata_set_rational (PhotoMetadata* self, const gchar* tag, MetadataRational* rational) {
- GExiv2Metadata* _tmp0_ = NULL;
- const gchar* _tmp1_ = NULL;
- MetadataRational _tmp2_ = {0};
- gint _tmp3_ = 0;
- MetadataRational _tmp4_ = {0};
- gint _tmp5_ = 0;
- gboolean _tmp6_ = FALSE;
+ GExiv2Metadata* _tmp0_;
+ const gchar* _tmp1_;
+ MetadataRational _tmp2_;
+ gint _tmp3_;
+ MetadataRational _tmp4_;
+ gint _tmp5_;
+ gboolean _tmp6_;
#line 623 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
#line 623 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -5194,10 +5194,10 @@ void photo_metadata_set_rational (PhotoMetadata* self, const gchar* tag, Metadat
#line 624 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (!_tmp6_) {
#line 5194 "PhotoMetadata.c"
- const gchar* _tmp7_ = NULL;
- gchar* _tmp8_ = NULL;
- gchar* _tmp9_ = NULL;
- const gchar* _tmp10_ = NULL;
+ const gchar* _tmp7_;
+ gchar* _tmp8_;
+ gchar* _tmp9_;
+ const gchar* _tmp10_;
#line 625 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp7_ = tag;
#line 625 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -5245,8 +5245,8 @@ static void block4_data_unref (void * _userdata_) {
static void __lambda8_ (Block4Data* _data4_, const gchar* tag) {
PhotoMetadata* self;
- const gchar* _tmp0_ = NULL;
- MetadataRational _tmp1_ = {0};
+ const gchar* _tmp0_;
+ MetadataRational _tmp1_;
#line 631 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
self = _data4_->self;
#line 631 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -5270,10 +5270,10 @@ static void ___lambda8__photo_metadata_set_generic_value (const gchar* tag, gpoi
void photo_metadata_set_all_rational (PhotoMetadata* self, gchar** tags, int tags_length1, MetadataRational* rational, PhotoMetadataSetOption option) {
Block4Data* _data4_;
- MetadataRational _tmp0_ = {0};
- gchar** _tmp1_ = NULL;
- gint _tmp1__length1 = 0;
- PhotoMetadataSetOption _tmp2_ = 0;
+ MetadataRational _tmp0_;
+ gchar** _tmp1_;
+ gint _tmp1__length1;
+ PhotoMetadataSetOption _tmp2_;
#line 630 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
#line 630 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -5307,9 +5307,9 @@ void photo_metadata_set_all_rational (PhotoMetadata* self, gchar** tags, int tag
MetadataDateTime* photo_metadata_get_date_time (PhotoMetadata* self, const gchar* tag) {
MetadataDateTime* result = NULL;
gchar* value = NULL;
- const gchar* _tmp0_ = NULL;
- gchar* _tmp1_ = NULL;
- const gchar* _tmp2_ = NULL;
+ const gchar* _tmp0_;
+ gchar* _tmp1_;
+ const gchar* _tmp2_;
GError * _inner_error_ = NULL;
#line 634 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
@@ -5334,8 +5334,8 @@ MetadataDateTime* photo_metadata_get_date_time (PhotoMetadata* self, const gchar
#line 5331 "PhotoMetadata.c"
}
{
- const gchar* _tmp3_ = NULL;
- MetadataDomain _tmp4_ = 0;
+ const gchar* _tmp3_;
+ MetadataDomain _tmp4_;
#line 640 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp3_ = tag;
#line 640 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -5347,9 +5347,9 @@ MetadataDateTime* photo_metadata_get_date_time (PhotoMetadata* self, const gchar
#line 5344 "PhotoMetadata.c"
{
MetadataDateTime* _tmp5_ = NULL;
- const gchar* _tmp6_ = NULL;
- MetadataDateTime* _tmp7_ = NULL;
- MetadataDateTime* _tmp8_ = NULL;
+ const gchar* _tmp6_;
+ MetadataDateTime* _tmp7_;
+ MetadataDateTime* _tmp8_;
#line 642 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp6_ = value;
#line 642 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -5393,9 +5393,9 @@ MetadataDateTime* photo_metadata_get_date_time (PhotoMetadata* self, const gchar
#line 5390 "PhotoMetadata.c"
{
MetadataDateTime* _tmp9_ = NULL;
- const gchar* _tmp10_ = NULL;
- MetadataDateTime* _tmp11_ = NULL;
- MetadataDateTime* _tmp12_ = NULL;
+ const gchar* _tmp10_;
+ MetadataDateTime* _tmp11_;
+ MetadataDateTime* _tmp12_;
#line 651 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp10_ = value;
#line 651 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -5427,10 +5427,10 @@ MetadataDateTime* photo_metadata_get_date_time (PhotoMetadata* self, const gchar
__catch26_g_error:
{
GError* err = NULL;
- const gchar* _tmp13_ = NULL;
- const gchar* _tmp14_ = NULL;
- GError* _tmp15_ = NULL;
- const gchar* _tmp16_ = NULL;
+ const gchar* _tmp13_;
+ const gchar* _tmp14_;
+ GError* _tmp15_;
+ const gchar* _tmp16_;
#line 639 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
err = _inner_error_;
#line 639 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -5470,8 +5470,8 @@ MetadataDateTime* photo_metadata_get_date_time (PhotoMetadata* self, const gchar
MetadataDateTime* photo_metadata_get_first_date_time (PhotoMetadata* self, gchar** tags, int tags_length1) {
MetadataDateTime* result = NULL;
- gchar** _tmp0_ = NULL;
- gint _tmp0__length1 = 0;
+ gchar** _tmp0_;
+ gint _tmp0__length1;
#line 660 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
#line 661 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -5491,7 +5491,7 @@ MetadataDateTime* photo_metadata_get_first_date_time (PhotoMetadata* self, gchar
#line 661 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
for (tag_it = 0; tag_it < _tmp0__length1; tag_it = tag_it + 1) {
#line 5490 "PhotoMetadata.c"
- gchar* _tmp1_ = NULL;
+ gchar* _tmp1_;
gchar* tag = NULL;
#line 661 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp1_ = g_strdup (tag_collection[tag_it]);
@@ -5500,9 +5500,9 @@ MetadataDateTime* photo_metadata_get_first_date_time (PhotoMetadata* self, gchar
#line 5497 "PhotoMetadata.c"
{
MetadataDateTime* date_time = NULL;
- const gchar* _tmp2_ = NULL;
- MetadataDateTime* _tmp3_ = NULL;
- MetadataDateTime* _tmp4_ = NULL;
+ const gchar* _tmp2_;
+ MetadataDateTime* _tmp3_;
+ MetadataDateTime* _tmp4_;
#line 662 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp2_ = tag;
#line 662 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -5538,8 +5538,8 @@ MetadataDateTime* photo_metadata_get_first_date_time (PhotoMetadata* self, gchar
void photo_metadata_set_date_time (PhotoMetadata* self, const gchar* tag, MetadataDateTime* date_time) {
- const gchar* _tmp0_ = NULL;
- MetadataDomain _tmp1_ = 0;
+ const gchar* _tmp0_;
+ MetadataDomain _tmp1_;
#line 670 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
#line 670 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -5556,10 +5556,10 @@ void photo_metadata_set_date_time (PhotoMetadata* self, const gchar* tag, Metada
case METADATA_DOMAIN_EXIF:
#line 5554 "PhotoMetadata.c"
{
- const gchar* _tmp2_ = NULL;
- MetadataDateTime* _tmp3_ = NULL;
- gchar* _tmp4_ = NULL;
- gchar* _tmp5_ = NULL;
+ const gchar* _tmp2_;
+ MetadataDateTime* _tmp3_;
+ gchar* _tmp4_;
+ gchar* _tmp5_;
#line 673 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp2_ = tag;
#line 673 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -5580,10 +5580,10 @@ void photo_metadata_set_date_time (PhotoMetadata* self, const gchar* tag, Metada
case METADATA_DOMAIN_XMP:
#line 5578 "PhotoMetadata.c"
{
- const gchar* _tmp6_ = NULL;
- MetadataDateTime* _tmp7_ = NULL;
- gchar* _tmp8_ = NULL;
- gchar* _tmp9_ = NULL;
+ const gchar* _tmp6_;
+ MetadataDateTime* _tmp7_;
+ gchar* _tmp8_;
+ gchar* _tmp9_;
#line 677 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp6_ = tag;
#line 677 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -5605,10 +5605,10 @@ void photo_metadata_set_date_time (PhotoMetadata* self, const gchar* tag, Metada
case METADATA_DOMAIN_IPTC:
#line 5603 "PhotoMetadata.c"
{
- const gchar* _tmp10_ = NULL;
- const gchar* _tmp11_ = NULL;
- const gchar* _tmp12_ = NULL;
- MetadataDomain _tmp13_ = 0;
+ const gchar* _tmp10_;
+ const gchar* _tmp11_;
+ const gchar* _tmp12_;
+ MetadataDomain _tmp13_;
GEnumValue* _tmp14_;
#line 683 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp10_ = tag;
@@ -5669,8 +5669,8 @@ static void block5_data_unref (void * _userdata_) {
static void __lambda9_ (Block5Data* _data5_, const gchar* tag) {
PhotoMetadata* self;
- const gchar* _tmp0_ = NULL;
- MetadataDateTime* _tmp1_ = NULL;
+ const gchar* _tmp0_;
+ MetadataDateTime* _tmp1_;
#line 690 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
self = _data5_->self;
#line 690 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -5694,11 +5694,11 @@ static void ___lambda9__photo_metadata_set_generic_value (const gchar* tag, gpoi
void photo_metadata_set_all_date_time (PhotoMetadata* self, gchar** tags, int tags_length1, MetadataDateTime* date_time, PhotoMetadataSetOption option) {
Block5Data* _data5_;
- MetadataDateTime* _tmp0_ = NULL;
- MetadataDateTime* _tmp1_ = NULL;
- gchar** _tmp2_ = NULL;
- gint _tmp2__length1 = 0;
- PhotoMetadataSetOption _tmp3_ = 0;
+ MetadataDateTime* _tmp0_;
+ MetadataDateTime* _tmp1_;
+ gchar** _tmp2_;
+ gint _tmp2__length1;
+ PhotoMetadataSetOption _tmp3_;
#line 689 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
#line 689 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -5735,28 +5735,28 @@ void photo_metadata_set_all_date_time (PhotoMetadata* self, gchar** tags, int ta
guint8* photo_metadata_flatten_exif (PhotoMetadata* self, gboolean include_preview, int* result_length1) {
guint8* result = NULL;
- ExifData* _tmp0_ = NULL;
+ ExifData* _tmp0_;
guchar* thumbnail = NULL;
- ExifData* _tmp2_ = NULL;
- guchar* _tmp3_ = NULL;
+ ExifData* _tmp2_;
+ guchar* _tmp3_;
guint thumbnail_size = 0U;
- ExifData* _tmp4_ = NULL;
- guint _tmp5_ = 0U;
- gboolean _tmp6_ = FALSE;
+ ExifData* _tmp4_;
+ guint _tmp5_;
+ gboolean _tmp6_;
guint8* flattened = NULL;
- gint flattened_length1 = 0;
- gint _flattened_size_ = 0;
+ gint flattened_length1;
+ gint _flattened_size_;
guchar* saved_data = NULL;
guint saved_size = 0U;
- ExifData* _tmp9_ = NULL;
+ ExifData* _tmp9_;
gboolean _tmp10_ = FALSE;
- guint _tmp11_ = 0U;
- ExifData* _tmp21_ = NULL;
- guchar* _tmp22_ = NULL;
- ExifData* _tmp23_ = NULL;
- guint _tmp24_ = 0U;
- guint8* _tmp25_ = NULL;
- gint _tmp25__length1 = 0;
+ guint _tmp11_;
+ ExifData* _tmp21_;
+ guchar* _tmp22_;
+ ExifData* _tmp23_;
+ guint _tmp24_;
+ guint8* _tmp25_;
+ gint _tmp25__length1;
#line 694 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
#line 695 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -5764,8 +5764,8 @@ guint8* photo_metadata_flatten_exif (PhotoMetadata* self, gboolean include_previ
#line 695 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp0_ == NULL) {
#line 5762 "PhotoMetadata.c"
- guint8* _tmp1_ = NULL;
- gint _tmp1__length1 = 0;
+ guint8* _tmp1_;
+ gint _tmp1__length1;
#line 696 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp1_ = NULL;
#line 696 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -5799,8 +5799,8 @@ guint8* photo_metadata_flatten_exif (PhotoMetadata* self, gboolean include_previ
#line 702 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (!_tmp6_) {
#line 5797 "PhotoMetadata.c"
- ExifData* _tmp7_ = NULL;
- ExifData* _tmp8_ = NULL;
+ ExifData* _tmp7_;
+ ExifData* _tmp8_;
#line 703 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp7_ = self->priv->exif;
#line 703 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -5830,7 +5830,7 @@ guint8* photo_metadata_flatten_exif (PhotoMetadata* self, gboolean include_previ
#line 713 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp11_ > ((guint) 0)) {
#line 5828 "PhotoMetadata.c"
- guchar* _tmp12_ = NULL;
+ guchar* _tmp12_;
#line 713 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp12_ = saved_data;
#line 713 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -5844,15 +5844,15 @@ guint8* photo_metadata_flatten_exif (PhotoMetadata* self, gboolean include_previ
#line 713 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp10_) {
#line 5842 "PhotoMetadata.c"
- guint _tmp13_ = 0U;
- guint8* _tmp14_ = NULL;
- guint8* _tmp15_ = NULL;
- gint _tmp15__length1 = 0;
- guchar* _tmp16_ = NULL;
- guint _tmp17_ = 0U;
- ExifMem* _tmp18_ = NULL;
- ExifMem* _tmp19_ = NULL;
- guchar* _tmp20_ = NULL;
+ guint _tmp13_;
+ guint8* _tmp14_;
+ guint8* _tmp15_;
+ gint _tmp15__length1;
+ guchar* _tmp16_;
+ guint _tmp17_;
+ ExifMem* _tmp18_;
+ ExifMem* _tmp19_;
+ guchar* _tmp20_;
#line 714 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp13_ = saved_size;
#line 714 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -5932,14 +5932,14 @@ guint8* photo_metadata_flatten_exif_preview (PhotoMetadata* self, int* result_le
guchar* _tmp0_ = NULL;
gint _tmp0__length1 = 0;
gint __tmp0__size_ = 0;
- GExiv2Metadata* _tmp1_ = NULL;
+ GExiv2Metadata* _tmp1_;
guint8* _tmp2_ = NULL;
- gint _tmp3_ = 0;
- gboolean _tmp4_ = FALSE;
- guint8* _tmp6_ = NULL;
- gint _tmp6__length1 = 0;
- guint8* _tmp7_ = NULL;
- gint _tmp7__length1 = 0;
+ gint _tmp3_;
+ gboolean _tmp4_;
+ guint8* _tmp6_;
+ gint _tmp6__length1;
+ guint8* _tmp7_;
+ gint _tmp7__length1;
#line 728 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
#line 730 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -5957,8 +5957,8 @@ guint8* photo_metadata_flatten_exif_preview (PhotoMetadata* self, int* result_le
#line 730 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp4_) {
#line 5955 "PhotoMetadata.c"
- guchar* _tmp5_ = NULL;
- gint _tmp5__length1 = 0;
+ guchar* _tmp5_;
+ gint _tmp5__length1;
#line 730 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp5_ = buffer;
#line 730 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -6006,14 +6006,14 @@ guint8* photo_metadata_flatten_exif_preview (PhotoMetadata* self, int* result_le
guint photo_metadata_get_preview_count (PhotoMetadata* self) {
guint result = 0U;
GExiv2PreviewProperties** props = NULL;
- GExiv2Metadata* _tmp0_ = NULL;
- GExiv2PreviewProperties** _tmp1_ = NULL;
- GExiv2PreviewProperties** _tmp2_ = NULL;
- gint props_length1 = 0;
- gint _props_size_ = 0;
+ GExiv2Metadata* _tmp0_;
+ GExiv2PreviewProperties** _tmp1_;
+ GExiv2PreviewProperties** _tmp2_;
+ gint props_length1;
+ gint _props_size_;
gint _tmp3_ = 0;
- GExiv2PreviewProperties** _tmp4_ = NULL;
- gint _tmp4__length1 = 0;
+ GExiv2PreviewProperties** _tmp4_;
+ gint _tmp4__length1;
#line 733 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), 0U);
#line 734 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -6033,8 +6033,8 @@ guint photo_metadata_get_preview_count (PhotoMetadata* self) {
#line 736 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp4_ != NULL) {
#line 6031 "PhotoMetadata.c"
- GExiv2PreviewProperties** _tmp5_ = NULL;
- gint _tmp5__length1 = 0;
+ GExiv2PreviewProperties** _tmp5_;
+ gint _tmp5__length1;
#line 736 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp5_ = props;
#line 736 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -6058,21 +6058,21 @@ guint photo_metadata_get_preview_count (PhotoMetadata* self) {
PhotoPreview* photo_metadata_get_preview (PhotoMetadata* self, guint number) {
PhotoPreview* result = NULL;
GExiv2PreviewProperties** props = NULL;
- GExiv2Metadata* _tmp0_ = NULL;
- GExiv2PreviewProperties** _tmp1_ = NULL;
- GExiv2PreviewProperties** _tmp2_ = NULL;
- gint props_length1 = 0;
- gint _props_size_ = 0;
+ GExiv2Metadata* _tmp0_;
+ GExiv2PreviewProperties** _tmp1_;
+ GExiv2PreviewProperties** _tmp2_;
+ gint props_length1;
+ gint _props_size_;
gboolean _tmp3_ = FALSE;
- GExiv2PreviewProperties** _tmp4_ = NULL;
- gint _tmp4__length1 = 0;
- const gchar* _tmp7_ = NULL;
- guint _tmp8_ = 0U;
- GExiv2PreviewProperties** _tmp9_ = NULL;
- gint _tmp9__length1 = 0;
- guint _tmp10_ = 0U;
- GExiv2PreviewProperties* _tmp11_ = NULL;
- PhotoMetadataInternalPhotoPreview* _tmp12_ = NULL;
+ GExiv2PreviewProperties** _tmp4_;
+ gint _tmp4__length1;
+ const gchar* _tmp7_;
+ guint _tmp8_;
+ GExiv2PreviewProperties** _tmp9_;
+ gint _tmp9__length1;
+ guint _tmp10_;
+ GExiv2PreviewProperties* _tmp11_;
+ PhotoMetadataInternalPhotoPreview* _tmp12_;
#line 740 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
#line 741 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -6095,9 +6095,9 @@ PhotoPreview* photo_metadata_get_preview (PhotoMetadata* self, guint number) {
_tmp3_ = TRUE;
#line 6092 "PhotoMetadata.c"
} else {
- GExiv2PreviewProperties** _tmp5_ = NULL;
- gint _tmp5__length1 = 0;
- guint _tmp6_ = 0U;
+ GExiv2PreviewProperties** _tmp5_;
+ gint _tmp5__length1;
+ guint _tmp6_;
#line 742 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp5_ = props;
#line 742 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -6139,8 +6139,8 @@ PhotoPreview* photo_metadata_get_preview (PhotoMetadata* self, guint number) {
void photo_metadata_remove_exif_thumbnail (PhotoMetadata* self) {
- GExiv2Metadata* _tmp0_ = NULL;
- ExifData* _tmp1_ = NULL;
+ GExiv2Metadata* _tmp0_;
+ ExifData* _tmp1_;
#line 748 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
#line 749 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -6152,12 +6152,12 @@ void photo_metadata_remove_exif_thumbnail (PhotoMetadata* self) {
#line 750 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp1_ != NULL) {
#line 6150 "PhotoMetadata.c"
- ExifMem* _tmp2_ = NULL;
- ExifMem* _tmp3_ = NULL;
- ExifData* _tmp4_ = NULL;
- guchar* _tmp5_ = NULL;
- ExifData* _tmp6_ = NULL;
- ExifData* _tmp7_ = NULL;
+ ExifMem* _tmp2_;
+ ExifMem* _tmp3_;
+ ExifData* _tmp4_;
+ guchar* _tmp5_;
+ ExifData* _tmp6_;
+ ExifData* _tmp7_;
#line 751 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp2_ = exif_mem_new_default ();
#line 751 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -6184,8 +6184,8 @@ void photo_metadata_remove_exif_thumbnail (PhotoMetadata* self) {
void photo_metadata_remove_tag (PhotoMetadata* self, const gchar* tag) {
- GExiv2Metadata* _tmp0_ = NULL;
- const gchar* _tmp1_ = NULL;
+ GExiv2Metadata* _tmp0_;
+ const gchar* _tmp1_;
#line 757 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
#line 757 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -6201,8 +6201,8 @@ void photo_metadata_remove_tag (PhotoMetadata* self, const gchar* tag) {
void photo_metadata_remove_tags (PhotoMetadata* self, gchar** tags, int tags_length1) {
- gchar** _tmp0_ = NULL;
- gint _tmp0__length1 = 0;
+ gchar** _tmp0_;
+ gint _tmp0__length1;
#line 761 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
#line 762 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -6222,7 +6222,7 @@ void photo_metadata_remove_tags (PhotoMetadata* self, gchar** tags, int tags_len
#line 762 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
for (tag_it = 0; tag_it < _tmp0__length1; tag_it = tag_it + 1) {
#line 6220 "PhotoMetadata.c"
- gchar* _tmp1_ = NULL;
+ gchar* _tmp1_;
gchar* tag = NULL;
#line 762 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp1_ = g_strdup (tag_collection[tag_it]);
@@ -6230,7 +6230,7 @@ void photo_metadata_remove_tags (PhotoMetadata* self, gchar** tags, int tags_len
tag = _tmp1_;
#line 6227 "PhotoMetadata.c"
{
- const gchar* _tmp2_ = NULL;
+ const gchar* _tmp2_;
#line 763 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp2_ = tag;
#line 763 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -6245,7 +6245,7 @@ void photo_metadata_remove_tags (PhotoMetadata* self, gchar** tags, int tags_len
void photo_metadata_clear_domain (PhotoMetadata* self, MetadataDomain domain) {
- MetadataDomain _tmp0_ = 0;
+ MetadataDomain _tmp0_;
#line 766 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
#line 767 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -6256,7 +6256,7 @@ void photo_metadata_clear_domain (PhotoMetadata* self, MetadataDomain domain) {
case METADATA_DOMAIN_EXIF:
#line 6253 "PhotoMetadata.c"
{
- GExiv2Metadata* _tmp1_ = NULL;
+ GExiv2Metadata* _tmp1_;
#line 769 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp1_ = self->priv->exiv2;
#line 769 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -6269,7 +6269,7 @@ void photo_metadata_clear_domain (PhotoMetadata* self, MetadataDomain domain) {
case METADATA_DOMAIN_XMP:
#line 6266 "PhotoMetadata.c"
{
- GExiv2Metadata* _tmp2_ = NULL;
+ GExiv2Metadata* _tmp2_;
#line 773 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp2_ = self->priv->exiv2;
#line 773 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -6282,7 +6282,7 @@ void photo_metadata_clear_domain (PhotoMetadata* self, MetadataDomain domain) {
case METADATA_DOMAIN_IPTC:
#line 6279 "PhotoMetadata.c"
{
- GExiv2Metadata* _tmp3_ = NULL;
+ GExiv2Metadata* _tmp3_;
#line 777 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp3_ = self->priv->exiv2;
#line 777 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -6300,7 +6300,7 @@ void photo_metadata_clear_domain (PhotoMetadata* self, MetadataDomain domain) {
void photo_metadata_clear (PhotoMetadata* self) {
- GExiv2Metadata* _tmp0_ = NULL;
+ GExiv2Metadata* _tmp0_;
#line 782 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
#line 783 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -6313,9 +6313,9 @@ void photo_metadata_clear (PhotoMetadata* self) {
MetadataDateTime* photo_metadata_get_modification_date_time (PhotoMetadata* self) {
MetadataDateTime* result = NULL;
- gchar** _tmp0_ = NULL;
- gint _tmp0__length1 = 0;
- MetadataDateTime* _tmp1_ = NULL;
+ gchar** _tmp0_;
+ gint _tmp0__length1;
+ MetadataDateTime* _tmp1_;
#line 793 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
#line 794 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -6333,7 +6333,7 @@ MetadataDateTime* photo_metadata_get_modification_date_time (PhotoMetadata* self
void photo_metadata_set_modification_date_time (PhotoMetadata* self, MetadataDateTime* date_time, PhotoMetadataSetOption option) {
- MetadataDateTime* _tmp0_ = NULL;
+ MetadataDateTime* _tmp0_;
#line 797 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
#line 797 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -6343,10 +6343,10 @@ void photo_metadata_set_modification_date_time (PhotoMetadata* self, MetadataDat
#line 799 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp0_ != NULL) {
#line 6341 "PhotoMetadata.c"
- gchar** _tmp1_ = NULL;
- gint _tmp1__length1 = 0;
- MetadataDateTime* _tmp2_ = NULL;
- PhotoMetadataSetOption _tmp3_ = 0;
+ gchar** _tmp1_;
+ gint _tmp1__length1;
+ MetadataDateTime* _tmp2_;
+ PhotoMetadataSetOption _tmp3_;
#line 800 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp1_ = photo_metadata_DATE_TIME_TAGS;
#line 800 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -6359,8 +6359,8 @@ void photo_metadata_set_modification_date_time (PhotoMetadata* self, MetadataDat
photo_metadata_set_all_date_time (self, _tmp1_, _tmp1__length1, _tmp2_, _tmp3_);
#line 6356 "PhotoMetadata.c"
} else {
- gchar** _tmp4_ = NULL;
- gint _tmp4__length1 = 0;
+ gchar** _tmp4_;
+ gint _tmp4__length1;
#line 802 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp4_ = photo_metadata_DATE_TIME_TAGS;
#line 802 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -6374,9 +6374,9 @@ void photo_metadata_set_modification_date_time (PhotoMetadata* self, MetadataDat
MetadataDateTime* photo_metadata_get_exposure_date_time (PhotoMetadata* self) {
MetadataDateTime* result = NULL;
- gchar** _tmp0_ = NULL;
- gint _tmp0__length1 = 0;
- MetadataDateTime* _tmp1_ = NULL;
+ gchar** _tmp0_;
+ gint _tmp0__length1;
+ MetadataDateTime* _tmp1_;
#line 814 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
#line 815 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -6394,7 +6394,7 @@ MetadataDateTime* photo_metadata_get_exposure_date_time (PhotoMetadata* self) {
void photo_metadata_set_exposure_date_time (PhotoMetadata* self, MetadataDateTime* date_time, PhotoMetadataSetOption option) {
- MetadataDateTime* _tmp0_ = NULL;
+ MetadataDateTime* _tmp0_;
#line 818 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
#line 818 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -6404,10 +6404,10 @@ void photo_metadata_set_exposure_date_time (PhotoMetadata* self, MetadataDateTim
#line 820 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp0_ != NULL) {
#line 6402 "PhotoMetadata.c"
- gchar** _tmp1_ = NULL;
- gint _tmp1__length1 = 0;
- MetadataDateTime* _tmp2_ = NULL;
- PhotoMetadataSetOption _tmp3_ = 0;
+ gchar** _tmp1_;
+ gint _tmp1__length1;
+ MetadataDateTime* _tmp2_;
+ PhotoMetadataSetOption _tmp3_;
#line 821 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp1_ = photo_metadata_EXPOSURE_DATE_TIME_TAGS;
#line 821 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -6420,8 +6420,8 @@ void photo_metadata_set_exposure_date_time (PhotoMetadata* self, MetadataDateTim
photo_metadata_set_all_date_time (self, _tmp1_, _tmp1__length1, _tmp2_, _tmp3_);
#line 6417 "PhotoMetadata.c"
} else {
- gchar** _tmp4_ = NULL;
- gint _tmp4__length1 = 0;
+ gchar** _tmp4_;
+ gint _tmp4__length1;
#line 823 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp4_ = photo_metadata_EXPOSURE_DATE_TIME_TAGS;
#line 823 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -6435,9 +6435,9 @@ void photo_metadata_set_exposure_date_time (PhotoMetadata* self, MetadataDateTim
MetadataDateTime* photo_metadata_get_digitized_date_time (PhotoMetadata* self) {
MetadataDateTime* result = NULL;
- gchar** _tmp0_ = NULL;
- gint _tmp0__length1 = 0;
- MetadataDateTime* _tmp1_ = NULL;
+ gchar** _tmp0_;
+ gint _tmp0__length1;
+ MetadataDateTime* _tmp1_;
#line 831 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
#line 832 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -6455,7 +6455,7 @@ MetadataDateTime* photo_metadata_get_digitized_date_time (PhotoMetadata* self) {
void photo_metadata_set_digitized_date_time (PhotoMetadata* self, MetadataDateTime* date_time, PhotoMetadataSetOption option) {
- MetadataDateTime* _tmp0_ = NULL;
+ MetadataDateTime* _tmp0_;
#line 835 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
#line 835 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -6465,10 +6465,10 @@ void photo_metadata_set_digitized_date_time (PhotoMetadata* self, MetadataDateTi
#line 837 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp0_ != NULL) {
#line 6463 "PhotoMetadata.c"
- gchar** _tmp1_ = NULL;
- gint _tmp1__length1 = 0;
- MetadataDateTime* _tmp2_ = NULL;
- PhotoMetadataSetOption _tmp3_ = 0;
+ gchar** _tmp1_;
+ gint _tmp1__length1;
+ MetadataDateTime* _tmp2_;
+ PhotoMetadataSetOption _tmp3_;
#line 838 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp1_ = photo_metadata_DIGITIZED_DATE_TIME_TAGS;
#line 838 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -6481,8 +6481,8 @@ void photo_metadata_set_digitized_date_time (PhotoMetadata* self, MetadataDateTi
photo_metadata_set_all_date_time (self, _tmp1_, _tmp1__length1, _tmp2_, _tmp3_);
#line 6478 "PhotoMetadata.c"
} else {
- gchar** _tmp4_ = NULL;
- gint _tmp4__length1 = 0;
+ gchar** _tmp4_;
+ gint _tmp4__length1;
#line 840 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp4_ = photo_metadata_DIGITIZED_DATE_TIME_TAGS;
#line 840 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -6498,8 +6498,8 @@ static MetadataDateTime* photo_metadata_real_get_creation_date_time (MediaMetada
PhotoMetadata * self;
MetadataDateTime* result = NULL;
MetadataDateTime* creation = NULL;
- MetadataDateTime* _tmp0_ = NULL;
- MetadataDateTime* _tmp1_ = NULL;
+ MetadataDateTime* _tmp0_;
+ MetadataDateTime* _tmp1_;
#line 843 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_METADATA, PhotoMetadata);
#line 844 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -6511,7 +6511,7 @@ static MetadataDateTime* photo_metadata_real_get_creation_date_time (MediaMetada
#line 845 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp1_ == NULL) {
#line 6509 "PhotoMetadata.c"
- MetadataDateTime* _tmp2_ = NULL;
+ MetadataDateTime* _tmp2_;
#line 846 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp2_ = photo_metadata_get_digitized_date_time (self);
#line 846 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -6537,10 +6537,10 @@ static gpointer _dimensions_dup0 (gpointer self) {
Dimensions* photo_metadata_get_pixel_dimensions (PhotoMetadata* self) {
Dimensions* result = NULL;
- gchar** _tmp0_ = NULL;
- gint _tmp0__length1 = 0;
- gchar** _tmp1_ = NULL;
- gint _tmp1__length1 = 0;
+ gchar** _tmp0_;
+ gint _tmp0__length1;
+ gchar** _tmp1_;
+ gint _tmp1__length1;
#line 865 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
#line 867 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -6566,31 +6566,31 @@ Dimensions* photo_metadata_get_pixel_dimensions (PhotoMetadata* self) {
#line 868 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
while (TRUE) {
#line 6564 "PhotoMetadata.c"
- gint _tmp4_ = 0;
- gchar** _tmp5_ = NULL;
- gint _tmp5__length1 = 0;
+ gint _tmp4_;
+ gchar** _tmp5_;
+ gint _tmp5__length1;
glong width = 0L;
- gchar** _tmp6_ = NULL;
- gint _tmp6__length1 = 0;
- gint _tmp7_ = 0;
- const gchar* _tmp8_ = NULL;
+ gchar** _tmp6_;
+ gint _tmp6__length1;
+ gint _tmp7_;
+ const gchar* _tmp8_;
glong _tmp9_ = 0L;
- gboolean _tmp10_ = FALSE;
+ gboolean _tmp10_;
glong height = 0L;
- gchar** _tmp11_ = NULL;
- gint _tmp11__length1 = 0;
- gint _tmp12_ = 0;
- const gchar* _tmp13_ = NULL;
+ gchar** _tmp11_;
+ gint _tmp11__length1;
+ gint _tmp12_;
+ const gchar* _tmp13_;
glong _tmp14_ = 0L;
- gboolean _tmp15_ = FALSE;
- glong _tmp16_ = 0L;
- glong _tmp17_ = 0L;
+ gboolean _tmp15_;
+ glong _tmp16_;
+ glong _tmp17_;
Dimensions _tmp18_ = {0};
- Dimensions* _tmp19_ = NULL;
+ Dimensions* _tmp19_;
#line 868 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (!_tmp2_) {
#line 6588 "PhotoMetadata.c"
- gint _tmp3_ = 0;
+ gint _tmp3_;
#line 868 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp3_ = ctr;
#line 868 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -6672,7 +6672,7 @@ Dimensions* photo_metadata_get_pixel_dimensions (PhotoMetadata* self) {
void photo_metadata_set_pixel_dimensions (PhotoMetadata* self, Dimensions* dim, PhotoMetadataSetOption option) {
- Dimensions* _tmp0_ = NULL;
+ Dimensions* _tmp0_;
#line 885 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
#line 886 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -6680,16 +6680,16 @@ void photo_metadata_set_pixel_dimensions (PhotoMetadata* self, Dimensions* dim,
#line 886 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp0_ != NULL) {
#line 6678 "PhotoMetadata.c"
- gchar** _tmp1_ = NULL;
- gint _tmp1__length1 = 0;
- Dimensions* _tmp2_ = NULL;
- gint _tmp3_ = 0;
- PhotoMetadataSetOption _tmp4_ = 0;
- gchar** _tmp5_ = NULL;
- gint _tmp5__length1 = 0;
- Dimensions* _tmp6_ = NULL;
- gint _tmp7_ = 0;
- PhotoMetadataSetOption _tmp8_ = 0;
+ gchar** _tmp1_;
+ gint _tmp1__length1;
+ Dimensions* _tmp2_;
+ gint _tmp3_;
+ PhotoMetadataSetOption _tmp4_;
+ gchar** _tmp5_;
+ gint _tmp5__length1;
+ Dimensions* _tmp6_;
+ gint _tmp7_;
+ PhotoMetadataSetOption _tmp8_;
#line 887 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp1_ = photo_metadata_WIDTH_TAGS;
#line 887 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -6716,10 +6716,10 @@ void photo_metadata_set_pixel_dimensions (PhotoMetadata* self, Dimensions* dim,
photo_metadata_set_all_long (self, _tmp5_, _tmp5__length1, (glong) _tmp7_, _tmp8_);
#line 6713 "PhotoMetadata.c"
} else {
- gchar** _tmp9_ = NULL;
- gint _tmp9__length1 = 0;
- gchar** _tmp10_ = NULL;
- gint _tmp10__length1 = 0;
+ gchar** _tmp9_;
+ gint _tmp9__length1;
+ gchar** _tmp10_;
+ gint _tmp10__length1;
#line 890 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp9_ = photo_metadata_WIDTH_TAGS;
#line 890 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -6740,21 +6740,21 @@ void photo_metadata_set_pixel_dimensions (PhotoMetadata* self, Dimensions* dim,
static gchar* string_strip (const gchar* self) {
gchar* result = NULL;
gchar* _result_ = NULL;
- gchar* _tmp0_ = NULL;
- const gchar* _tmp1_ = NULL;
-#line 1207 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+ gchar* _tmp0_;
+ const gchar* _tmp1_;
+#line 1234 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
g_return_val_if_fail (self != NULL, NULL);
-#line 1208 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1235 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp0_ = g_strdup (self);
-#line 1208 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1235 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_result_ = _tmp0_;
-#line 1209 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1236 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp1_ = _result_;
-#line 1209 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1236 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
g_strstrip (_tmp1_);
-#line 1210 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1237 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
result = _result_;
-#line 1210 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1237 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
return result;
#line 6755 "PhotoMetadata.c"
}
@@ -6762,19 +6762,19 @@ static gchar* string_strip (const gchar* self) {
static gboolean string_contains (const gchar* self, const gchar* needle) {
gboolean result = FALSE;
- const gchar* _tmp0_ = NULL;
- gchar* _tmp1_ = NULL;
-#line 1376 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+ const gchar* _tmp0_;
+ gchar* _tmp1_;
+#line 1403 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
g_return_val_if_fail (self != NULL, FALSE);
-#line 1376 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1403 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
g_return_val_if_fail (needle != NULL, FALSE);
-#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1404 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp0_ = needle;
-#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1404 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp1_ = strstr ((gchar*) self, (gchar*) _tmp0_);
-#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1404 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
result = _tmp1_ != NULL;
-#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1404 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
return result;
#line 6775 "PhotoMetadata.c"
}
@@ -6784,21 +6784,21 @@ static gchar* photo_metadata_real_get_title (MediaMetadata* base) {
PhotoMetadata * self;
gchar* result = NULL;
GeeList* _tmp0_ = NULL;
- gboolean _tmp1_ = FALSE;
+ gboolean _tmp1_;
GeeList* titles = NULL;
- GeeList* _tmp5_ = NULL;
+ GeeList* _tmp5_;
gchar* _tmp6_ = NULL;
gboolean _tmp7_ = FALSE;
- GeeList* _tmp8_ = NULL;
+ GeeList* _tmp8_;
gchar* title = NULL;
- gchar* _tmp14_ = NULL;
- const gchar* _tmp15_ = NULL;
+ gchar* _tmp14_;
+ const gchar* _tmp15_;
const gchar* _tmp18_ = NULL;
gboolean _tmp19_ = FALSE;
gboolean _tmp20_ = FALSE;
- const gchar* _tmp21_ = NULL;
- gboolean _tmp22_ = FALSE;
- gchar* _tmp28_ = NULL;
+ const gchar* _tmp21_;
+ gboolean _tmp22_;
+ gchar* _tmp28_;
#line 925 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_METADATA, PhotoMetadata);
#line 933 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -6806,7 +6806,7 @@ static gchar* photo_metadata_real_get_title (MediaMetadata* base) {
#line 933 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp1_) {
#line 6804 "PhotoMetadata.c"
- GeeList* _tmp2_ = NULL;
+ GeeList* _tmp2_;
#line 934 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp2_ = photo_metadata_get_string_multiple (self, PHOTO_METADATA_IPHOTO_TITLE_TAG);
#line 934 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -6815,9 +6815,9 @@ static gchar* photo_metadata_real_get_title (MediaMetadata* base) {
_tmp0_ = _tmp2_;
#line 6812 "PhotoMetadata.c"
} else {
- gchar** _tmp3_ = NULL;
- gint _tmp3__length1 = 0;
- GeeList* _tmp4_ = NULL;
+ gchar** _tmp3_;
+ gint _tmp3__length1;
+ GeeList* _tmp4_;
#line 935 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp3_ = photo_metadata_STANDARD_TITLE_TAGS;
#line 935 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -6839,9 +6839,9 @@ static gchar* photo_metadata_real_get_title (MediaMetadata* base) {
#line 940 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp8_ != NULL) {
#line 6837 "PhotoMetadata.c"
- GeeList* _tmp9_ = NULL;
- gint _tmp10_ = 0;
- gint _tmp11_ = 0;
+ GeeList* _tmp9_;
+ gint _tmp10_;
+ gint _tmp11_;
#line 940 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp9_ = titles;
#line 940 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -6859,8 +6859,8 @@ static gchar* photo_metadata_real_get_title (MediaMetadata* base) {
#line 940 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp7_) {
#line 6857 "PhotoMetadata.c"
- GeeList* _tmp12_ = NULL;
- gpointer _tmp13_ = NULL;
+ GeeList* _tmp12_;
+ gpointer _tmp13_;
#line 940 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp12_ = titles;
#line 940 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -6886,8 +6886,8 @@ static gchar* photo_metadata_real_get_title (MediaMetadata* base) {
#line 943 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp15_ != NULL) {
#line 6884 "PhotoMetadata.c"
- const gchar* _tmp16_ = NULL;
- gchar* _tmp17_ = NULL;
+ const gchar* _tmp16_;
+ gchar* _tmp17_;
#line 944 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp16_ = title;
#line 944 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -6905,8 +6905,8 @@ static gchar* photo_metadata_real_get_title (MediaMetadata* base) {
#line 947 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (!_tmp22_) {
#line 6903 "PhotoMetadata.c"
- const gchar* _tmp23_ = NULL;
- gboolean _tmp24_ = FALSE;
+ const gchar* _tmp23_;
+ gboolean _tmp24_;
#line 947 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp23_ = title;
#line 947 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -6922,8 +6922,8 @@ static gchar* photo_metadata_real_get_title (MediaMetadata* base) {
#line 947 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp20_) {
#line 6920 "PhotoMetadata.c"
- const gchar* _tmp25_ = NULL;
- gboolean _tmp26_ = FALSE;
+ const gchar* _tmp25_;
+ gboolean _tmp26_;
#line 947 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp25_ = title;
#line 947 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -6939,7 +6939,7 @@ static gchar* photo_metadata_real_get_title (MediaMetadata* base) {
#line 947 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp19_) {
#line 6937 "PhotoMetadata.c"
- const gchar* _tmp27_ = NULL;
+ const gchar* _tmp27_;
#line 948 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp27_ = title;
#line 948 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -6969,8 +6969,8 @@ static gchar* photo_metadata_real_get_title (MediaMetadata* base) {
void photo_metadata_set_title (PhotoMetadata* self, const gchar* title, PhotoMetadataSetOption option) {
- const gchar* _tmp0_ = NULL;
- gboolean _tmp1_ = FALSE;
+ const gchar* _tmp0_;
+ gboolean _tmp1_;
#line 951 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
#line 952 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -6980,23 +6980,23 @@ void photo_metadata_set_title (PhotoMetadata* self, const gchar* title, PhotoMet
#line 952 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (!_tmp1_) {
#line 6978 "PhotoMetadata.c"
- gboolean _tmp2_ = FALSE;
+ gboolean _tmp2_;
#line 953 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp2_ = photo_metadata_has_tag (self, PHOTO_METADATA_IPHOTO_TITLE_TAG);
#line 953 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp2_) {
#line 6984 "PhotoMetadata.c"
- const gchar* _tmp3_ = NULL;
+ const gchar* _tmp3_;
#line 954 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp3_ = title;
#line 954 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
photo_metadata_set_string (self, PHOTO_METADATA_IPHOTO_TITLE_TAG, _tmp3_, PHOTO_METADATA_PREPARE_STRING_OPTIONS);
#line 6990 "PhotoMetadata.c"
} else {
- gchar** _tmp4_ = NULL;
- gint _tmp4__length1 = 0;
- const gchar* _tmp5_ = NULL;
- PhotoMetadataSetOption _tmp6_ = 0;
+ gchar** _tmp4_;
+ gint _tmp4__length1;
+ const gchar* _tmp5_;
+ PhotoMetadataSetOption _tmp6_;
#line 956 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp4_ = photo_metadata_STANDARD_TITLE_TAGS;
#line 956 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -7010,8 +7010,8 @@ void photo_metadata_set_title (PhotoMetadata* self, const gchar* title, PhotoMet
#line 7006 "PhotoMetadata.c"
}
} else {
- gchar** _tmp7_ = NULL;
- gint _tmp7__length1 = 0;
+ gchar** _tmp7_;
+ gint _tmp7__length1;
#line 958 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp7_ = photo_metadata_STANDARD_TITLE_TAGS;
#line 958 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -7026,9 +7026,9 @@ void photo_metadata_set_title (PhotoMetadata* self, const gchar* title, PhotoMet
static gchar* photo_metadata_real_get_comment (MediaMetadata* base) {
PhotoMetadata * self;
gchar* result = NULL;
- gchar** _tmp0_ = NULL;
- gint _tmp0__length1 = 0;
- gchar* _tmp1_ = NULL;
+ gchar** _tmp0_;
+ gint _tmp0__length1;
+ gchar* _tmp1_;
#line 967 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_METADATA, PhotoMetadata);
#line 968 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -7076,8 +7076,8 @@ static void block6_data_unref (void * _userdata_) {
static void ___lambda10_ (Block6Data* _data6_, const gchar* tag) {
PhotoMetadata* self;
- const gchar* _tmp0_ = NULL;
- const gchar* _tmp1_ = NULL;
+ const gchar* _tmp0_;
+ const gchar* _tmp1_;
#line 976 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
self = _data6_->self;
#line 976 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -7101,10 +7101,10 @@ static void ____lambda10__photo_metadata_set_generic_value (const gchar* tag, gp
void photo_metadata_set_comment (PhotoMetadata* self, const gchar* comment, PhotoMetadataSetOption option) {
Block6Data* _data6_;
- const gchar* _tmp0_ = NULL;
- gchar* _tmp1_ = NULL;
- const gchar* _tmp2_ = NULL;
- gboolean _tmp3_ = FALSE;
+ const gchar* _tmp0_;
+ gchar* _tmp1_;
+ const gchar* _tmp2_;
+ gboolean _tmp3_;
#line 971 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
#line 971 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -7128,9 +7128,9 @@ void photo_metadata_set_comment (PhotoMetadata* self, const gchar* comment, Phot
#line 975 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (!_tmp3_) {
#line 7126 "PhotoMetadata.c"
- gchar** _tmp4_ = NULL;
- gint _tmp4__length1 = 0;
- PhotoMetadataSetOption _tmp5_ = 0;
+ gchar** _tmp4_;
+ gint _tmp4__length1;
+ PhotoMetadataSetOption _tmp5_;
#line 976 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp4_ = photo_metadata_COMMENT_TAGS;
#line 976 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -7141,8 +7141,8 @@ void photo_metadata_set_comment (PhotoMetadata* self, const gchar* comment, Phot
photo_metadata_set_all_generic (self, _tmp4_, _tmp4__length1, _tmp5_, ____lambda10__photo_metadata_set_generic_value, _data6_);
#line 7138 "PhotoMetadata.c"
} else {
- gchar** _tmp6_ = NULL;
- gint _tmp6__length1 = 0;
+ gchar** _tmp6_;
+ gint _tmp6__length1;
#line 981 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp6_ = photo_metadata_COMMENT_TAGS;
#line 981 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -7162,12 +7162,12 @@ void photo_metadata_set_comment (PhotoMetadata* self, const gchar* comment, Phot
GeeSet* photo_metadata_get_keywords (PhotoMetadata* self, GCompareDataFunc compare_func, void* compare_func_target, GDestroyNotify compare_func_target_destroy_notify) {
GeeSet* result = NULL;
GeeSet* keywords = NULL;
- gchar** _tmp0_ = NULL;
- gint _tmp0__length1 = 0;
+ gchar** _tmp0_;
+ gint _tmp0__length1;
GeeSet* _tmp22_ = NULL;
gboolean _tmp23_ = FALSE;
- GeeSet* _tmp24_ = NULL;
- GeeSet* _tmp29_ = NULL;
+ GeeSet* _tmp24_;
+ GeeSet* _tmp29_;
#line 1001 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
#line 1002 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -7189,7 +7189,7 @@ GeeSet* photo_metadata_get_keywords (PhotoMetadata* self, GCompareDataFunc compa
#line 1003 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
for (tag_it = 0; tag_it < _tmp0__length1; tag_it = tag_it + 1) {
#line 7187 "PhotoMetadata.c"
- gchar* _tmp1_ = NULL;
+ gchar* _tmp1_;
gchar* tag = NULL;
#line 1003 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp1_ = g_strdup (tag_collection[tag_it]);
@@ -7198,10 +7198,10 @@ GeeSet* photo_metadata_get_keywords (PhotoMetadata* self, GCompareDataFunc compa
#line 7194 "PhotoMetadata.c"
{
GeeCollection* values = NULL;
- const gchar* _tmp2_ = NULL;
- GeeList* _tmp3_ = NULL;
+ const gchar* _tmp2_;
+ GeeList* _tmp3_;
gboolean _tmp4_ = FALSE;
- GeeCollection* _tmp5_ = NULL;
+ GeeCollection* _tmp5_;
#line 1004 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp2_ = tag;
#line 1004 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -7213,9 +7213,9 @@ GeeSet* photo_metadata_get_keywords (PhotoMetadata* self, GCompareDataFunc compa
#line 1005 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp5_ != NULL) {
#line 7211 "PhotoMetadata.c"
- GeeCollection* _tmp6_ = NULL;
- gint _tmp7_ = 0;
- gint _tmp8_ = 0;
+ GeeCollection* _tmp6_;
+ gint _tmp7_;
+ gint _tmp8_;
#line 1005 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp6_ = values;
#line 1005 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -7233,16 +7233,16 @@ GeeSet* photo_metadata_get_keywords (PhotoMetadata* self, GCompareDataFunc compa
#line 1005 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp4_) {
#line 7231 "PhotoMetadata.c"
- GeeSet* _tmp9_ = NULL;
+ GeeSet* _tmp9_;
#line 1006 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp9_ = keywords;
#line 1006 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp9_ == NULL) {
#line 7237 "PhotoMetadata.c"
- GCompareDataFunc _tmp10_ = NULL;
- void* _tmp10__target = NULL;
- GDestroyNotify _tmp10__target_destroy_notify = NULL;
- GeeSet* _tmp11_ = NULL;
+ GCompareDataFunc _tmp10_;
+ void* _tmp10__target;
+ GDestroyNotify _tmp10__target_destroy_notify;
+ GeeSet* _tmp11_;
#line 1007 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp10_ = compare_func;
#line 1007 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -7265,8 +7265,8 @@ GeeSet* photo_metadata_get_keywords (PhotoMetadata* self, GCompareDataFunc compa
}
{
GeeIterator* _current_value_it = NULL;
- GeeCollection* _tmp12_ = NULL;
- GeeIterator* _tmp13_ = NULL;
+ GeeCollection* _tmp12_;
+ GeeIterator* _tmp13_;
#line 1009 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp12_ = values;
#line 1009 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -7276,15 +7276,15 @@ GeeSet* photo_metadata_get_keywords (PhotoMetadata* self, GCompareDataFunc compa
#line 1009 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
while (TRUE) {
#line 7274 "PhotoMetadata.c"
- GeeIterator* _tmp14_ = NULL;
- gboolean _tmp15_ = FALSE;
+ GeeIterator* _tmp14_;
+ gboolean _tmp15_;
gchar* current_value = NULL;
- GeeIterator* _tmp16_ = NULL;
- gpointer _tmp17_ = NULL;
- GeeSet* _tmp18_ = NULL;
- const gchar* _tmp19_ = NULL;
- gchar* _tmp20_ = NULL;
- gchar* _tmp21_ = NULL;
+ GeeIterator* _tmp16_;
+ gpointer _tmp17_;
+ GeeSet* _tmp18_;
+ const gchar* _tmp19_;
+ gchar* _tmp20_;
+ gchar* _tmp21_;
#line 1009 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp14_ = _current_value_it;
#line 1009 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -7335,9 +7335,9 @@ GeeSet* photo_metadata_get_keywords (PhotoMetadata* self, GCompareDataFunc compa
#line 1014 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp24_ != NULL) {
#line 7333 "PhotoMetadata.c"
- GeeSet* _tmp25_ = NULL;
- gint _tmp26_ = 0;
- gint _tmp27_ = 0;
+ GeeSet* _tmp25_;
+ gint _tmp26_;
+ gint _tmp27_;
#line 1014 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp25_ = keywords;
#line 1014 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -7355,7 +7355,7 @@ GeeSet* photo_metadata_get_keywords (PhotoMetadata* self, GCompareDataFunc compa
#line 1014 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp23_) {
#line 7353 "PhotoMetadata.c"
- GeeSet* _tmp28_ = NULL;
+ GeeSet* _tmp28_;
#line 1014 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp28_ = keywords;
#line 1014 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -7395,120 +7395,162 @@ static gpointer _hierarchical_keyword_field_ref0 (gpointer self) {
static gchar* string_replace (const gchar* self, const gchar* old, const gchar* replacement) {
gchar* result = NULL;
+ gboolean _tmp0_ = FALSE;
+ gboolean _tmp1_ = FALSE;
GError * _inner_error_ = NULL;
-#line 1380 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1407 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
g_return_val_if_fail (self != NULL, NULL);
-#line 1380 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1407 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
g_return_val_if_fail (old != NULL, NULL);
-#line 1380 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1407 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
g_return_val_if_fail (replacement != NULL, NULL);
-#line 7401 "PhotoMetadata.c"
+#line 1408 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ if ((*((gchar*) self)) == '\0') {
+#line 1408 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ _tmp1_ = TRUE;
+#line 7407 "PhotoMetadata.c"
+ } else {
+ const gchar* _tmp2_;
+#line 1408 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ _tmp2_ = old;
+#line 1408 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ _tmp1_ = (*((gchar*) _tmp2_)) == '\0';
+#line 7414 "PhotoMetadata.c"
+ }
+#line 1408 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ if (_tmp1_) {
+#line 1408 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ _tmp0_ = TRUE;
+#line 7420 "PhotoMetadata.c"
+ } else {
+ const gchar* _tmp3_;
+ const gchar* _tmp4_;
+#line 1408 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ _tmp3_ = old;
+#line 1408 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ _tmp4_ = replacement;
+#line 1408 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ _tmp0_ = g_strcmp0 (_tmp3_, _tmp4_) == 0;
+#line 7430 "PhotoMetadata.c"
+ }
+#line 1408 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ if (_tmp0_) {
+#line 7434 "PhotoMetadata.c"
+ gchar* _tmp5_;
+#line 1409 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ _tmp5_ = g_strdup (self);
+#line 1409 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ result = _tmp5_;
+#line 1409 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ return result;
+#line 7442 "PhotoMetadata.c"
+ }
{
GRegex* regex = NULL;
- const gchar* _tmp0_ = NULL;
- gchar* _tmp1_ = NULL;
- gchar* _tmp2_ = NULL;
- GRegex* _tmp3_ = NULL;
- GRegex* _tmp4_ = NULL;
- gchar* _tmp5_ = NULL;
- GRegex* _tmp6_ = NULL;
- const gchar* _tmp7_ = NULL;
- gchar* _tmp8_ = NULL;
- gchar* _tmp9_ = NULL;
-#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
- _tmp0_ = old;
-#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
- _tmp1_ = g_regex_escape_string (_tmp0_, -1);
-#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
- _tmp2_ = _tmp1_;
-#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
- _tmp3_ = g_regex_new (_tmp2_, 0, 0, &_inner_error_);
-#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
- _tmp4_ = _tmp3_;
-#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
- _g_free0 (_tmp2_);
-#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
- regex = _tmp4_;
-#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+ const gchar* _tmp6_;
+ gchar* _tmp7_;
+ gchar* _tmp8_;
+ GRegex* _tmp9_;
+ GRegex* _tmp10_;
+ gchar* _tmp11_ = NULL;
+ GRegex* _tmp12_;
+ const gchar* _tmp13_;
+ gchar* _tmp14_;
+ gchar* _tmp15_;
+#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ _tmp6_ = old;
+#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ _tmp7_ = g_regex_escape_string (_tmp6_, -1);
+#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ _tmp8_ = _tmp7_;
+#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ _tmp9_ = g_regex_new (_tmp8_, 0, 0, &_inner_error_);
+#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ _tmp10_ = _tmp9_;
+#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ _g_free0 (_tmp8_);
+#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ regex = _tmp10_;
+#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
if (_inner_error_->domain == G_REGEX_ERROR) {
-#line 7432 "PhotoMetadata.c"
+#line 7474 "PhotoMetadata.c"
goto __catch27_g_regex_error;
}
-#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
-#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
g_clear_error (&_inner_error_);
-#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
return NULL;
-#line 7441 "PhotoMetadata.c"
+#line 7483 "PhotoMetadata.c"
}
-#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
- _tmp6_ = regex;
-#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
- _tmp7_ = replacement;
-#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
- _tmp8_ = g_regex_replace_literal (_tmp6_, self, (gssize) -1, 0, _tmp7_, 0, &_inner_error_);
-#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
- _tmp5_ = _tmp8_;
-#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ _tmp12_ = regex;
+#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ _tmp13_ = replacement;
+#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ _tmp14_ = g_regex_replace_literal (_tmp12_, self, (gssize) -1, 0, _tmp13_, 0, &_inner_error_);
+#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ _tmp11_ = _tmp14_;
+#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_g_regex_unref0 (regex);
-#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
if (_inner_error_->domain == G_REGEX_ERROR) {
-#line 7457 "PhotoMetadata.c"
+#line 7499 "PhotoMetadata.c"
goto __catch27_g_regex_error;
}
-#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_g_regex_unref0 (regex);
-#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
-#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
g_clear_error (&_inner_error_);
-#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
return NULL;
-#line 7468 "PhotoMetadata.c"
+#line 7510 "PhotoMetadata.c"
}
-#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
- _tmp9_ = _tmp5_;
-#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
- _tmp5_ = NULL;
-#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
- result = _tmp9_;
-#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
- _g_free0 (_tmp5_);
-#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ _tmp15_ = _tmp11_;
+#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ _tmp11_ = NULL;
+#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ result = _tmp15_;
+#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ _g_free0 (_tmp11_);
+#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_g_regex_unref0 (regex);
-#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
return result;
-#line 7482 "PhotoMetadata.c"
+#line 7524 "PhotoMetadata.c"
}
goto __finally27;
__catch27_g_regex_error:
{
GError* e = NULL;
-#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1411 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
e = _inner_error_;
-#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1411 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_inner_error_ = NULL;
-#line 1385 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1415 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
g_assert_not_reached ();
-#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1411 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_g_error_free0 (e);
-#line 7496 "PhotoMetadata.c"
+#line 7538 "PhotoMetadata.c"
}
__finally27:
-#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1411 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1411 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
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 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1411 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
g_clear_error (&_inner_error_);
-#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1411 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
return NULL;
-#line 7507 "PhotoMetadata.c"
+#line 7549 "PhotoMetadata.c"
}
}
@@ -7516,43 +7558,43 @@ static gchar* string_replace (const gchar* self, const gchar* old, const gchar*
static glong string_strnlen (gchar* str, glong maxlen) {
glong result = 0L;
gchar* end = NULL;
- gchar* _tmp0_ = NULL;
- glong _tmp1_ = 0L;
- gchar* _tmp2_ = NULL;
- gchar* _tmp3_ = NULL;
-#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+ gchar* _tmp0_;
+ glong _tmp1_;
+ gchar* _tmp2_;
+ gchar* _tmp3_;
+#line 1322 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp0_ = str;
-#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1322 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp1_ = maxlen;
-#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1322 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp2_ = memchr (_tmp0_, 0, (gsize) _tmp1_);
-#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1322 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
end = _tmp2_;
-#line 1296 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1323 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp3_ = end;
-#line 1296 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1323 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
if (_tmp3_ == NULL) {
-#line 7531 "PhotoMetadata.c"
- glong _tmp4_ = 0L;
-#line 1297 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 7573 "PhotoMetadata.c"
+ glong _tmp4_;
+#line 1324 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp4_ = maxlen;
-#line 1297 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1324 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
result = _tmp4_;
-#line 1297 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1324 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
return result;
-#line 7539 "PhotoMetadata.c"
+#line 7581 "PhotoMetadata.c"
} else {
- gchar* _tmp5_ = NULL;
- gchar* _tmp6_ = NULL;
-#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+ gchar* _tmp5_;
+ gchar* _tmp6_;
+#line 1326 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp5_ = end;
-#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1326 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp6_ = str;
-#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1326 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
result = (glong) (_tmp5_ - _tmp6_);
-#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1326 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
return result;
-#line 7551 "PhotoMetadata.c"
+#line 7593 "PhotoMetadata.c"
}
}
@@ -7561,132 +7603,132 @@ static gchar* string_substring (const gchar* self, glong offset, glong len) {
gchar* result = NULL;
glong string_length = 0L;
gboolean _tmp0_ = FALSE;
- glong _tmp1_ = 0L;
- glong _tmp8_ = 0L;
- glong _tmp14_ = 0L;
- glong _tmp17_ = 0L;
- glong _tmp18_ = 0L;
- glong _tmp19_ = 0L;
- glong _tmp20_ = 0L;
- glong _tmp21_ = 0L;
- gchar* _tmp22_ = NULL;
-#line 1306 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+ glong _tmp1_;
+ glong _tmp8_;
+ glong _tmp14_;
+ glong _tmp17_;
+ glong _tmp18_;
+ glong _tmp19_;
+ glong _tmp20_;
+ glong _tmp21_;
+ gchar* _tmp22_;
+#line 1333 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
g_return_val_if_fail (self != NULL, NULL);
-#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1335 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp1_ = offset;
-#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1335 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
if (_tmp1_ >= ((glong) 0)) {
-#line 7575 "PhotoMetadata.c"
- glong _tmp2_ = 0L;
-#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 7617 "PhotoMetadata.c"
+ glong _tmp2_;
+#line 1335 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp2_ = len;
-#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1335 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp0_ = _tmp2_ >= ((glong) 0);
-#line 7581 "PhotoMetadata.c"
+#line 7623 "PhotoMetadata.c"
} else {
-#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1335 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp0_ = FALSE;
-#line 7585 "PhotoMetadata.c"
+#line 7627 "PhotoMetadata.c"
}
-#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1335 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
if (_tmp0_) {
-#line 7589 "PhotoMetadata.c"
- glong _tmp3_ = 0L;
- glong _tmp4_ = 0L;
- glong _tmp5_ = 0L;
-#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 7631 "PhotoMetadata.c"
+ glong _tmp3_;
+ glong _tmp4_;
+ glong _tmp5_;
+#line 1337 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp3_ = offset;
-#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1337 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp4_ = len;
-#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1337 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp5_ = string_strnlen ((gchar*) self, _tmp3_ + _tmp4_);
-#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1337 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
string_length = _tmp5_;
-#line 7601 "PhotoMetadata.c"
+#line 7643 "PhotoMetadata.c"
} else {
- gint _tmp6_ = 0;
- gint _tmp7_ = 0;
-#line 1312 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+ gint _tmp6_;
+ gint _tmp7_;
+#line 1339 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp6_ = strlen (self);
-#line 1312 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1339 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp7_ = _tmp6_;
-#line 1312 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1339 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
string_length = (glong) _tmp7_;
-#line 7611 "PhotoMetadata.c"
+#line 7653 "PhotoMetadata.c"
}
-#line 1315 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1342 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp8_ = offset;
-#line 1315 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1342 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
if (_tmp8_ < ((glong) 0)) {
-#line 7617 "PhotoMetadata.c"
- glong _tmp9_ = 0L;
- glong _tmp10_ = 0L;
- glong _tmp11_ = 0L;
-#line 1316 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 7659 "PhotoMetadata.c"
+ glong _tmp9_;
+ glong _tmp10_;
+ glong _tmp11_;
+#line 1343 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp9_ = string_length;
-#line 1316 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1343 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp10_ = offset;
-#line 1316 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1343 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
offset = _tmp9_ + _tmp10_;
-#line 1317 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1344 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp11_ = offset;
-#line 1317 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1344 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
g_return_val_if_fail (_tmp11_ >= ((glong) 0), NULL);
-#line 7631 "PhotoMetadata.c"
+#line 7673 "PhotoMetadata.c"
} else {
- glong _tmp12_ = 0L;
- glong _tmp13_ = 0L;
-#line 1319 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+ glong _tmp12_;
+ glong _tmp13_;
+#line 1346 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp12_ = offset;
-#line 1319 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1346 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp13_ = string_length;
-#line 1319 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1346 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
g_return_val_if_fail (_tmp12_ <= _tmp13_, NULL);
-#line 7641 "PhotoMetadata.c"
+#line 7683 "PhotoMetadata.c"
}
-#line 1321 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1348 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp14_ = len;
-#line 1321 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1348 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
if (_tmp14_ < ((glong) 0)) {
-#line 7647 "PhotoMetadata.c"
- glong _tmp15_ = 0L;
- glong _tmp16_ = 0L;
-#line 1322 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 7689 "PhotoMetadata.c"
+ glong _tmp15_;
+ glong _tmp16_;
+#line 1349 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp15_ = string_length;
-#line 1322 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1349 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp16_ = offset;
-#line 1322 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1349 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
len = _tmp15_ - _tmp16_;
-#line 7656 "PhotoMetadata.c"
+#line 7698 "PhotoMetadata.c"
}
-#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1351 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp17_ = offset;
-#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1351 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp18_ = len;
-#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1351 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp19_ = string_length;
-#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1351 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
g_return_val_if_fail ((_tmp17_ + _tmp18_) <= _tmp19_, NULL);
-#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1352 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp20_ = offset;
-#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1352 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp21_ = len;
-#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1352 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp22_ = g_strndup (((gchar*) self) + _tmp20_, (gsize) _tmp21_);
-#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1352 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
result = _tmp22_;
-#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1352 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
return result;
-#line 7676 "PhotoMetadata.c"
+#line 7718 "PhotoMetadata.c"
}
static void photo_metadata_internal_set_hierarchical_keywords (PhotoMetadata* self, HierarchicalTagIndex* index) {
- HierarchicalKeywordField** _tmp0_ = NULL;
- gint _tmp0__length1 = 0;
- HierarchicalTagIndex* _tmp4_ = NULL;
- HierarchicalKeywordField** _tmp5_ = NULL;
- gint _tmp5__length1 = 0;
+ HierarchicalKeywordField** _tmp0_;
+ gint _tmp0__length1;
+ HierarchicalTagIndex* _tmp4_;
+ HierarchicalKeywordField** _tmp5_;
+ gint _tmp5__length1;
#line 1017 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
#line 1017 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -7695,7 +7737,7 @@ static void photo_metadata_internal_set_hierarchical_keywords (PhotoMetadata* se
_tmp0_ = photo_metadata_HIERARCHICAL_KEYWORD_TAGS;
#line 1018 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp0__length1 = photo_metadata_HIERARCHICAL_KEYWORD_TAGS_length1;
-#line 7694 "PhotoMetadata.c"
+#line 7736 "PhotoMetadata.c"
{
HierarchicalKeywordField** current_field_collection = NULL;
gint current_field_collection_length1 = 0;
@@ -7707,17 +7749,17 @@ static void photo_metadata_internal_set_hierarchical_keywords (PhotoMetadata* se
current_field_collection_length1 = _tmp0__length1;
#line 1018 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
for (current_field_it = 0; current_field_it < _tmp0__length1; current_field_it = current_field_it + 1) {
-#line 7706 "PhotoMetadata.c"
- HierarchicalKeywordField* _tmp1_ = NULL;
+#line 7748 "PhotoMetadata.c"
+ HierarchicalKeywordField* _tmp1_;
HierarchicalKeywordField* current_field = NULL;
#line 1018 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp1_ = _hierarchical_keyword_field_ref0 (current_field_collection[current_field_it]);
#line 1018 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
current_field = _tmp1_;
-#line 7713 "PhotoMetadata.c"
+#line 7755 "PhotoMetadata.c"
{
- HierarchicalKeywordField* _tmp2_ = NULL;
- const gchar* _tmp3_ = NULL;
+ HierarchicalKeywordField* _tmp2_;
+ const gchar* _tmp3_;
#line 1019 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp2_ = current_field;
#line 1019 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -7726,7 +7768,7 @@ static void photo_metadata_internal_set_hierarchical_keywords (PhotoMetadata* se
photo_metadata_remove_tag (self, _tmp3_);
#line 1018 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_hierarchical_keyword_field_unref0 (current_field);
-#line 7725 "PhotoMetadata.c"
+#line 7767 "PhotoMetadata.c"
}
}
}
@@ -7736,13 +7778,13 @@ static void photo_metadata_internal_set_hierarchical_keywords (PhotoMetadata* se
if (_tmp4_ == NULL) {
#line 1022 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return;
-#line 7735 "PhotoMetadata.c"
+#line 7777 "PhotoMetadata.c"
}
#line 1024 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp5_ = photo_metadata_HIERARCHICAL_KEYWORD_TAGS;
#line 1024 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp5__length1 = photo_metadata_HIERARCHICAL_KEYWORD_TAGS_length1;
-#line 7741 "PhotoMetadata.c"
+#line 7783 "PhotoMetadata.c"
{
HierarchicalKeywordField** current_field_collection = NULL;
gint current_field_collection_length1 = 0;
@@ -7754,22 +7796,22 @@ static void photo_metadata_internal_set_hierarchical_keywords (PhotoMetadata* se
current_field_collection_length1 = _tmp5__length1;
#line 1024 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
for (current_field_it = 0; current_field_it < _tmp5__length1; current_field_it = current_field_it + 1) {
-#line 7753 "PhotoMetadata.c"
- HierarchicalKeywordField* _tmp6_ = NULL;
+#line 7795 "PhotoMetadata.c"
+ HierarchicalKeywordField* _tmp6_;
HierarchicalKeywordField* current_field = NULL;
#line 1024 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp6_ = _hierarchical_keyword_field_ref0 (current_field_collection[current_field_it]);
#line 1024 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
current_field = _tmp6_;
-#line 7760 "PhotoMetadata.c"
+#line 7802 "PhotoMetadata.c"
{
- HierarchicalKeywordField* _tmp7_ = NULL;
- gboolean _tmp8_ = FALSE;
+ HierarchicalKeywordField* _tmp7_;
+ gboolean _tmp8_;
GeeSet* writeable_set = NULL;
- GeeTreeSet* _tmp9_ = NULL;
- HierarchicalKeywordField* _tmp29_ = NULL;
- const gchar* _tmp30_ = NULL;
- GeeSet* _tmp31_ = NULL;
+ GeeTreeSet* _tmp9_;
+ HierarchicalKeywordField* _tmp29_;
+ const gchar* _tmp30_;
+ GeeSet* _tmp31_;
#line 1025 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp7_ = current_field;
#line 1025 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -7780,20 +7822,20 @@ static void photo_metadata_internal_set_hierarchical_keywords (PhotoMetadata* se
_hierarchical_keyword_field_unref0 (current_field);
#line 1026 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
continue;
-#line 7779 "PhotoMetadata.c"
+#line 7821 "PhotoMetadata.c"
}
#line 1028 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp9_ = gee_tree_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL);
#line 1028 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
writeable_set = G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_SET, GeeSet);
-#line 7785 "PhotoMetadata.c"
+#line 7827 "PhotoMetadata.c"
{
GeeIterator* _current_path_it = NULL;
- HierarchicalTagIndex* _tmp10_ = NULL;
- GeeCollection* _tmp11_ = NULL;
- GeeCollection* _tmp12_ = NULL;
- GeeIterator* _tmp13_ = NULL;
- GeeIterator* _tmp14_ = NULL;
+ HierarchicalTagIndex* _tmp10_;
+ GeeCollection* _tmp11_;
+ GeeCollection* _tmp12_;
+ GeeIterator* _tmp13_;
+ GeeIterator* _tmp14_;
#line 1030 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp10_ = index;
#line 1030 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -7810,21 +7852,21 @@ static void photo_metadata_internal_set_hierarchical_keywords (PhotoMetadata* se
_current_path_it = _tmp14_;
#line 1030 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
while (TRUE) {
-#line 7809 "PhotoMetadata.c"
- GeeIterator* _tmp15_ = NULL;
- gboolean _tmp16_ = FALSE;
+#line 7851 "PhotoMetadata.c"
+ GeeIterator* _tmp15_;
+ gboolean _tmp16_;
gchar* current_path = NULL;
- GeeIterator* _tmp17_ = NULL;
- gpointer _tmp18_ = NULL;
+ GeeIterator* _tmp17_;
+ gpointer _tmp18_;
gchar* writeable_path = NULL;
- const gchar* _tmp19_ = NULL;
- HierarchicalKeywordField* _tmp20_ = NULL;
- const gchar* _tmp21_ = NULL;
- gchar* _tmp22_ = NULL;
- HierarchicalKeywordField* _tmp23_ = NULL;
- gboolean _tmp24_ = FALSE;
- GeeSet* _tmp27_ = NULL;
- const gchar* _tmp28_ = NULL;
+ const gchar* _tmp19_;
+ HierarchicalKeywordField* _tmp20_;
+ const gchar* _tmp21_;
+ gchar* _tmp22_;
+ HierarchicalKeywordField* _tmp23_;
+ gboolean _tmp24_;
+ GeeSet* _tmp27_;
+ const gchar* _tmp28_;
#line 1030 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp15_ = _current_path_it;
#line 1030 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -7833,7 +7875,7 @@ static void photo_metadata_internal_set_hierarchical_keywords (PhotoMetadata* se
if (!_tmp16_) {
#line 1030 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
break;
-#line 7832 "PhotoMetadata.c"
+#line 7874 "PhotoMetadata.c"
}
#line 1030 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp17_ = _current_path_it;
@@ -7857,9 +7899,9 @@ static void photo_metadata_internal_set_hierarchical_keywords (PhotoMetadata* se
_tmp24_ = _tmp23_->wants_leading_separator;
#line 1033 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (!_tmp24_) {
-#line 7856 "PhotoMetadata.c"
- const gchar* _tmp25_ = NULL;
- gchar* _tmp26_ = NULL;
+#line 7898 "PhotoMetadata.c"
+ const gchar* _tmp25_;
+ gchar* _tmp26_;
#line 1034 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp25_ = writeable_path;
#line 1034 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -7868,7 +7910,7 @@ static void photo_metadata_internal_set_hierarchical_keywords (PhotoMetadata* se
_g_free0 (writeable_path);
#line 1034 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
writeable_path = _tmp26_;
-#line 7867 "PhotoMetadata.c"
+#line 7909 "PhotoMetadata.c"
}
#line 1036 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp27_ = writeable_set;
@@ -7880,11 +7922,11 @@ static void photo_metadata_internal_set_hierarchical_keywords (PhotoMetadata* se
_g_free0 (writeable_path);
#line 1030 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (current_path);
-#line 7879 "PhotoMetadata.c"
+#line 7921 "PhotoMetadata.c"
}
#line 1030 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_object_unref0 (_current_path_it);
-#line 7883 "PhotoMetadata.c"
+#line 7925 "PhotoMetadata.c"
}
#line 1039 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp29_ = current_field;
@@ -7898,7 +7940,7 @@ static void photo_metadata_internal_set_hierarchical_keywords (PhotoMetadata* se
_g_object_unref0 (writeable_set);
#line 1024 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_hierarchical_keyword_field_unref0 (current_field);
-#line 7897 "PhotoMetadata.c"
+#line 7939 "PhotoMetadata.c"
}
}
}
@@ -7907,11 +7949,11 @@ static void photo_metadata_internal_set_hierarchical_keywords (PhotoMetadata* se
void photo_metadata_set_keywords (PhotoMetadata* self, GeeCollection* keywords, PhotoMetadataSetOption option) {
HierarchicalTagIndex* htag_index = NULL;
- HierarchicalTagIndex* _tmp0_ = NULL;
+ HierarchicalTagIndex* _tmp0_;
GeeSet* flat_keywords = NULL;
- GeeTreeSet* _tmp1_ = NULL;
- GeeCollection* _tmp2_ = NULL;
- GeeCollection* _tmp28_ = NULL;
+ GeeTreeSet* _tmp1_;
+ GeeCollection* _tmp2_;
+ GeeCollection* _tmp28_;
#line 1043 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
#line 1043 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -7928,15 +7970,15 @@ void photo_metadata_set_keywords (PhotoMetadata* self, GeeCollection* keywords,
_tmp2_ = keywords;
#line 1047 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp2_ != NULL) {
-#line 7927 "PhotoMetadata.c"
- GeeSet* _tmp24_ = NULL;
- HierarchicalTagIndex* _tmp25_ = NULL;
- GeeCollection* _tmp26_ = NULL;
- GeeCollection* _tmp27_ = NULL;
+#line 7969 "PhotoMetadata.c"
+ GeeSet* _tmp24_;
+ HierarchicalTagIndex* _tmp25_;
+ GeeCollection* _tmp26_;
+ GeeCollection* _tmp27_;
{
GeeIterator* _keyword_it = NULL;
- GeeCollection* _tmp3_ = NULL;
- GeeIterator* _tmp4_ = NULL;
+ GeeCollection* _tmp3_;
+ GeeIterator* _tmp4_;
#line 1048 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp3_ = keywords;
#line 1048 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -7945,14 +7987,14 @@ void photo_metadata_set_keywords (PhotoMetadata* self, GeeCollection* keywords,
_keyword_it = _tmp4_;
#line 1048 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
while (TRUE) {
-#line 7944 "PhotoMetadata.c"
- GeeIterator* _tmp5_ = NULL;
- gboolean _tmp6_ = FALSE;
+#line 7986 "PhotoMetadata.c"
+ GeeIterator* _tmp5_;
+ gboolean _tmp6_;
gchar* keyword = NULL;
- GeeIterator* _tmp7_ = NULL;
- gpointer _tmp8_ = NULL;
- const gchar* _tmp9_ = NULL;
- gboolean _tmp10_ = FALSE;
+ GeeIterator* _tmp7_;
+ gpointer _tmp8_;
+ const gchar* _tmp9_;
+ gboolean _tmp10_;
#line 1048 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp5_ = _keyword_it;
#line 1048 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -7961,7 +8003,7 @@ void photo_metadata_set_keywords (PhotoMetadata* self, GeeCollection* keywords,
if (!_tmp6_) {
#line 1048 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
break;
-#line 7960 "PhotoMetadata.c"
+#line 8002 "PhotoMetadata.c"
}
#line 1048 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp7_ = _keyword_it;
@@ -7975,21 +8017,21 @@ void photo_metadata_set_keywords (PhotoMetadata* self, GeeCollection* keywords,
_tmp10_ = g_str_has_prefix (_tmp9_, TAG_PATH_SEPARATOR_STRING);
#line 1049 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp10_) {
-#line 7974 "PhotoMetadata.c"
+#line 8016 "PhotoMetadata.c"
GeeCollection* path_components = NULL;
- const gchar* _tmp11_ = NULL;
- GeeList* _tmp12_ = NULL;
+ const gchar* _tmp11_;
+ GeeList* _tmp12_;
#line 1050 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp11_ = keyword;
#line 1050 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp12_ = hierarchical_tag_utilities_enumerate_path_components (_tmp11_);
#line 1050 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
path_components = G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 7984 "PhotoMetadata.c"
+#line 8026 "PhotoMetadata.c"
{
GeeIterator* _component_it = NULL;
- GeeCollection* _tmp13_ = NULL;
- GeeIterator* _tmp14_ = NULL;
+ GeeCollection* _tmp13_;
+ GeeIterator* _tmp14_;
#line 1052 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp13_ = path_components;
#line 1052 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -7998,15 +8040,15 @@ void photo_metadata_set_keywords (PhotoMetadata* self, GeeCollection* keywords,
_component_it = _tmp14_;
#line 1052 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
while (TRUE) {
-#line 7997 "PhotoMetadata.c"
- GeeIterator* _tmp15_ = NULL;
- gboolean _tmp16_ = FALSE;
+#line 8039 "PhotoMetadata.c"
+ GeeIterator* _tmp15_;
+ gboolean _tmp16_;
gchar* component = NULL;
- GeeIterator* _tmp17_ = NULL;
- gpointer _tmp18_ = NULL;
- HierarchicalTagIndex* _tmp19_ = NULL;
- const gchar* _tmp20_ = NULL;
- const gchar* _tmp21_ = NULL;
+ GeeIterator* _tmp17_;
+ gpointer _tmp18_;
+ HierarchicalTagIndex* _tmp19_;
+ const gchar* _tmp20_;
+ const gchar* _tmp21_;
#line 1052 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp15_ = _component_it;
#line 1052 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -8015,7 +8057,7 @@ void photo_metadata_set_keywords (PhotoMetadata* self, GeeCollection* keywords,
if (!_tmp16_) {
#line 1052 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
break;
-#line 8014 "PhotoMetadata.c"
+#line 8056 "PhotoMetadata.c"
}
#line 1052 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp17_ = _component_it;
@@ -8033,33 +8075,33 @@ void photo_metadata_set_keywords (PhotoMetadata* self, GeeCollection* keywords,
hierarchical_tag_index_add_path (_tmp19_, _tmp20_, _tmp21_);
#line 1052 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (component);
-#line 8032 "PhotoMetadata.c"
+#line 8074 "PhotoMetadata.c"
}
#line 1052 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_object_unref0 (_component_it);
-#line 8036 "PhotoMetadata.c"
+#line 8078 "PhotoMetadata.c"
}
#line 1049 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_object_unref0 (path_components);
-#line 8040 "PhotoMetadata.c"
+#line 8082 "PhotoMetadata.c"
} else {
- GeeSet* _tmp22_ = NULL;
- const gchar* _tmp23_ = NULL;
+ GeeSet* _tmp22_;
+ const gchar* _tmp23_;
#line 1055 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp22_ = flat_keywords;
#line 1055 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp23_ = keyword;
#line 1055 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GEE_TYPE_COLLECTION, GeeCollection), _tmp23_);
-#line 8050 "PhotoMetadata.c"
+#line 8092 "PhotoMetadata.c"
}
#line 1048 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (keyword);
-#line 8054 "PhotoMetadata.c"
+#line 8096 "PhotoMetadata.c"
}
#line 1048 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_object_unref0 (_keyword_it);
-#line 8058 "PhotoMetadata.c"
+#line 8100 "PhotoMetadata.c"
}
#line 1059 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp24_ = flat_keywords;
@@ -8073,18 +8115,18 @@ void photo_metadata_set_keywords (PhotoMetadata* self, GeeCollection* keywords,
gee_collection_add_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, GEE_TYPE_COLLECTION, GeeCollection), _tmp27_);
#line 1059 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_object_unref0 (_tmp27_);
-#line 8072 "PhotoMetadata.c"
+#line 8114 "PhotoMetadata.c"
}
#line 1062 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp28_ = keywords;
#line 1062 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp28_ != NULL) {
-#line 8078 "PhotoMetadata.c"
- gchar** _tmp29_ = NULL;
- gint _tmp29__length1 = 0;
- GeeSet* _tmp30_ = NULL;
- PhotoMetadataSetOption _tmp31_ = 0;
- HierarchicalTagIndex* _tmp32_ = NULL;
+#line 8120 "PhotoMetadata.c"
+ gchar** _tmp29_;
+ gint _tmp29__length1;
+ GeeSet* _tmp30_;
+ PhotoMetadataSetOption _tmp31_;
+ HierarchicalTagIndex* _tmp32_;
#line 1063 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp29_ = photo_metadata_KEYWORD_TAGS;
#line 1063 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -8099,10 +8141,10 @@ void photo_metadata_set_keywords (PhotoMetadata* self, GeeCollection* keywords,
_tmp32_ = htag_index;
#line 1064 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
photo_metadata_internal_set_hierarchical_keywords (self, _tmp32_);
-#line 8098 "PhotoMetadata.c"
+#line 8140 "PhotoMetadata.c"
} else {
- gchar** _tmp33_ = NULL;
- gint _tmp33__length1 = 0;
+ gchar** _tmp33_;
+ gint _tmp33__length1;
#line 1066 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp33_ = photo_metadata_KEYWORD_TAGS;
#line 1066 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -8111,27 +8153,27 @@ void photo_metadata_set_keywords (PhotoMetadata* self, GeeCollection* keywords,
photo_metadata_remove_tags (self, _tmp33_, _tmp33__length1);
#line 1067 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
photo_metadata_internal_set_hierarchical_keywords (self, NULL);
-#line 8110 "PhotoMetadata.c"
+#line 8152 "PhotoMetadata.c"
}
#line 1043 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_object_unref0 (flat_keywords);
#line 1043 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_hierarchical_tag_index_unref0 (htag_index);
-#line 8116 "PhotoMetadata.c"
+#line 8158 "PhotoMetadata.c"
}
gboolean photo_metadata_has_hierarchical_keywords (PhotoMetadata* self) {
gboolean result = FALSE;
- HierarchicalKeywordField** _tmp0_ = NULL;
- gint _tmp0__length1 = 0;
+ HierarchicalKeywordField** _tmp0_;
+ gint _tmp0__length1;
#line 1071 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE);
#line 1072 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp0_ = photo_metadata_HIERARCHICAL_KEYWORD_TAGS;
#line 1072 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp0__length1 = photo_metadata_HIERARCHICAL_KEYWORD_TAGS_length1;
-#line 8130 "PhotoMetadata.c"
+#line 8172 "PhotoMetadata.c"
{
HierarchicalKeywordField** field_collection = NULL;
gint field_collection_length1 = 0;
@@ -8143,21 +8185,21 @@ gboolean photo_metadata_has_hierarchical_keywords (PhotoMetadata* self) {
field_collection_length1 = _tmp0__length1;
#line 1072 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
for (field_it = 0; field_it < _tmp0__length1; field_it = field_it + 1) {
-#line 8142 "PhotoMetadata.c"
- HierarchicalKeywordField* _tmp1_ = NULL;
+#line 8184 "PhotoMetadata.c"
+ HierarchicalKeywordField* _tmp1_;
HierarchicalKeywordField* field = NULL;
#line 1072 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp1_ = _hierarchical_keyword_field_ref0 (field_collection[field_it]);
#line 1072 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
field = _tmp1_;
-#line 8149 "PhotoMetadata.c"
+#line 8191 "PhotoMetadata.c"
{
GeeCollection* values = NULL;
- HierarchicalKeywordField* _tmp2_ = NULL;
- const gchar* _tmp3_ = NULL;
- GeeList* _tmp4_ = NULL;
+ HierarchicalKeywordField* _tmp2_;
+ const gchar* _tmp3_;
+ GeeList* _tmp4_;
gboolean _tmp5_ = FALSE;
- GeeCollection* _tmp6_ = NULL;
+ GeeCollection* _tmp6_;
#line 1073 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp2_ = field;
#line 1073 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -8170,10 +8212,10 @@ gboolean photo_metadata_has_hierarchical_keywords (PhotoMetadata* self) {
_tmp6_ = values;
#line 1075 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp6_ != NULL) {
-#line 8169 "PhotoMetadata.c"
- GeeCollection* _tmp7_ = NULL;
- gint _tmp8_ = 0;
- gint _tmp9_ = 0;
+#line 8211 "PhotoMetadata.c"
+ GeeCollection* _tmp7_;
+ gint _tmp8_;
+ gint _tmp9_;
#line 1075 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp7_ = values;
#line 1075 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -8182,11 +8224,11 @@ gboolean photo_metadata_has_hierarchical_keywords (PhotoMetadata* self) {
_tmp9_ = _tmp8_;
#line 1075 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp5_ = _tmp9_ > 0;
-#line 8181 "PhotoMetadata.c"
+#line 8223 "PhotoMetadata.c"
} else {
#line 1075 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp5_ = FALSE;
-#line 8185 "PhotoMetadata.c"
+#line 8227 "PhotoMetadata.c"
}
#line 1075 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp5_) {
@@ -8198,13 +8240,13 @@ gboolean photo_metadata_has_hierarchical_keywords (PhotoMetadata* self) {
_hierarchical_keyword_field_unref0 (field);
#line 1076 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 8197 "PhotoMetadata.c"
+#line 8239 "PhotoMetadata.c"
}
#line 1072 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_object_unref0 (values);
#line 1072 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_hierarchical_keyword_field_unref0 (field);
-#line 8203 "PhotoMetadata.c"
+#line 8245 "PhotoMetadata.c"
}
}
}
@@ -8212,17 +8254,17 @@ gboolean photo_metadata_has_hierarchical_keywords (PhotoMetadata* self) {
result = FALSE;
#line 1079 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 8211 "PhotoMetadata.c"
+#line 8253 "PhotoMetadata.c"
}
GeeSet* photo_metadata_get_hierarchical_keywords (PhotoMetadata* self) {
GeeSet* result = NULL;
- gboolean _tmp0_ = FALSE;
+ gboolean _tmp0_;
GeeSet* h_keywords = NULL;
- GeeSet* _tmp1_ = NULL;
- HierarchicalKeywordField** _tmp2_ = NULL;
- gint _tmp2__length1 = 0;
+ GeeSet* _tmp1_;
+ HierarchicalKeywordField** _tmp2_;
+ gint _tmp2__length1;
GError * _inner_error_ = NULL;
#line 1082 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
@@ -8238,7 +8280,7 @@ GeeSet* photo_metadata_get_hierarchical_keywords (PhotoMetadata* self) {
_tmp2_ = photo_metadata_HIERARCHICAL_KEYWORD_TAGS;
#line 1087 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp2__length1 = photo_metadata_HIERARCHICAL_KEYWORD_TAGS_length1;
-#line 8237 "PhotoMetadata.c"
+#line 8279 "PhotoMetadata.c"
{
HierarchicalKeywordField** field_collection = NULL;
gint field_collection_length1 = 0;
@@ -8250,23 +8292,23 @@ GeeSet* photo_metadata_get_hierarchical_keywords (PhotoMetadata* self) {
field_collection_length1 = _tmp2__length1;
#line 1087 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
for (field_it = 0; field_it < _tmp2__length1; field_it = field_it + 1) {
-#line 8249 "PhotoMetadata.c"
- HierarchicalKeywordField* _tmp3_ = NULL;
+#line 8291 "PhotoMetadata.c"
+ HierarchicalKeywordField* _tmp3_;
HierarchicalKeywordField* field = NULL;
#line 1087 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp3_ = _hierarchical_keyword_field_ref0 (field_collection[field_it]);
#line 1087 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
field = _tmp3_;
-#line 8256 "PhotoMetadata.c"
+#line 8298 "PhotoMetadata.c"
{
GeeCollection* values = NULL;
- HierarchicalKeywordField* _tmp4_ = NULL;
- const gchar* _tmp5_ = NULL;
- GeeList* _tmp6_ = NULL;
+ HierarchicalKeywordField* _tmp4_;
+ const gchar* _tmp5_;
+ GeeList* _tmp6_;
gboolean _tmp7_ = FALSE;
- GeeCollection* _tmp8_ = NULL;
+ GeeCollection* _tmp8_;
GeeArrayList* transformed_values = NULL;
- GeeArrayList* _tmp12_ = NULL;
+ GeeArrayList* _tmp12_;
#line 1088 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp4_ = field;
#line 1088 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -8281,11 +8323,11 @@ GeeSet* photo_metadata_get_hierarchical_keywords (PhotoMetadata* self) {
if (_tmp8_ == NULL) {
#line 1090 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp7_ = TRUE;
-#line 8280 "PhotoMetadata.c"
+#line 8322 "PhotoMetadata.c"
} else {
- GeeCollection* _tmp9_ = NULL;
- gint _tmp10_ = 0;
- gint _tmp11_ = 0;
+ GeeCollection* _tmp9_;
+ gint _tmp10_;
+ gint _tmp11_;
#line 1090 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp9_ = values;
#line 1090 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -8294,7 +8336,7 @@ GeeSet* photo_metadata_get_hierarchical_keywords (PhotoMetadata* self) {
_tmp11_ = _tmp10_;
#line 1090 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp7_ = _tmp11_ < 1;
-#line 8293 "PhotoMetadata.c"
+#line 8335 "PhotoMetadata.c"
}
#line 1090 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp7_) {
@@ -8304,17 +8346,17 @@ GeeSet* photo_metadata_get_hierarchical_keywords (PhotoMetadata* self) {
_hierarchical_keyword_field_unref0 (field);
#line 1091 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
continue;
-#line 8303 "PhotoMetadata.c"
+#line 8345 "PhotoMetadata.c"
}
#line 1093 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp12_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL);
#line 1093 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
transformed_values = _tmp12_;
-#line 8309 "PhotoMetadata.c"
+#line 8351 "PhotoMetadata.c"
{
GeeIterator* _current_value_it = NULL;
- GeeCollection* _tmp13_ = NULL;
- GeeIterator* _tmp14_ = NULL;
+ GeeCollection* _tmp13_;
+ GeeIterator* _tmp14_;
#line 1094 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp13_ = values;
#line 1094 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -8323,12 +8365,12 @@ GeeSet* photo_metadata_get_hierarchical_keywords (PhotoMetadata* self) {
_current_value_it = _tmp14_;
#line 1094 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
while (TRUE) {
-#line 8322 "PhotoMetadata.c"
- GeeIterator* _tmp15_ = NULL;
- gboolean _tmp16_ = FALSE;
+#line 8364 "PhotoMetadata.c"
+ GeeIterator* _tmp15_;
+ gboolean _tmp16_;
gchar* current_value = NULL;
- GeeIterator* _tmp17_ = NULL;
- gpointer _tmp18_ = NULL;
+ GeeIterator* _tmp17_;
+ gpointer _tmp18_;
#line 1094 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp15_ = _current_value_it;
#line 1094 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -8337,7 +8379,7 @@ GeeSet* photo_metadata_get_hierarchical_keywords (PhotoMetadata* self) {
if (!_tmp16_) {
#line 1094 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
break;
-#line 8336 "PhotoMetadata.c"
+#line 8378 "PhotoMetadata.c"
}
#line 1094 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp17_ = _current_value_it;
@@ -8345,15 +8387,15 @@ GeeSet* photo_metadata_get_hierarchical_keywords (PhotoMetadata* self) {
_tmp18_ = gee_iterator_get (_tmp17_);
#line 1094 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
current_value = (gchar*) _tmp18_;
-#line 8344 "PhotoMetadata.c"
+#line 8386 "PhotoMetadata.c"
{
GeeList* transformed = NULL;
- HierarchicalKeywordField* _tmp19_ = NULL;
- KeywordTransformer* _tmp20_ = NULL;
- const gchar* _tmp21_ = NULL;
- GeeList* _tmp22_ = NULL;
- GeeArrayList* _tmp23_ = NULL;
- GeeList* _tmp24_ = NULL;
+ HierarchicalKeywordField* _tmp19_;
+ KeywordTransformer* _tmp20_;
+ const gchar* _tmp21_;
+ GeeList* _tmp22_;
+ GeeArrayList* _tmp23_;
+ GeeList* _tmp24_;
#line 1096 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp19_ = field;
#line 1096 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -8366,7 +8408,7 @@ GeeSet* photo_metadata_get_hierarchical_keywords (PhotoMetadata* self) {
transformed = _tmp22_;
#line 1096 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 8365 "PhotoMetadata.c"
+#line 8407 "PhotoMetadata.c"
goto __catch28_g_error;
}
#line 1097 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -8377,15 +8419,15 @@ GeeSet* photo_metadata_get_hierarchical_keywords (PhotoMetadata* self) {
gee_array_list_add_all (_tmp23_, G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, GEE_TYPE_COLLECTION, GeeCollection));
#line 1095 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_object_unref0 (transformed);
-#line 8376 "PhotoMetadata.c"
+#line 8418 "PhotoMetadata.c"
}
goto __finally28;
__catch28_g_error:
{
GError* _error_ = NULL;
- const gchar* _tmp25_ = NULL;
- GError* _tmp26_ = NULL;
- const gchar* _tmp27_ = NULL;
+ const gchar* _tmp25_;
+ GError* _tmp26_;
+ const gchar* _tmp27_;
#line 1095 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_error_ = _inner_error_;
#line 1095 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -8400,7 +8442,7 @@ GeeSet* photo_metadata_get_hierarchical_keywords (PhotoMetadata* self) {
g_critical ("PhotoMetadata.vala:1099: Failed to transform tag value %s: %s", _tmp25_, _tmp27_);
#line 1095 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_error_free0 (_error_);
-#line 8399 "PhotoMetadata.c"
+#line 8441 "PhotoMetadata.c"
}
__finally28:
#line 1095 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -8423,24 +8465,24 @@ GeeSet* photo_metadata_get_hierarchical_keywords (PhotoMetadata* self) {
g_clear_error (&_inner_error_);
#line 1095 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return NULL;
-#line 8422 "PhotoMetadata.c"
+#line 8464 "PhotoMetadata.c"
}
#line 1094 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (current_value);
-#line 8426 "PhotoMetadata.c"
+#line 8468 "PhotoMetadata.c"
}
#line 1094 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_object_unref0 (_current_value_it);
-#line 8430 "PhotoMetadata.c"
+#line 8472 "PhotoMetadata.c"
}
{
GeeArrayList* _current_value_list = NULL;
- GeeArrayList* _tmp28_ = NULL;
- GeeArrayList* _tmp29_ = NULL;
+ GeeArrayList* _tmp28_;
+ GeeArrayList* _tmp29_;
gint _current_value_size = 0;
- GeeArrayList* _tmp30_ = NULL;
- gint _tmp31_ = 0;
- gint _tmp32_ = 0;
+ GeeArrayList* _tmp30_;
+ gint _tmp31_;
+ gint _tmp32_;
gint _current_value_index = 0;
#line 1105 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp28_ = transformed_values;
@@ -8460,20 +8502,20 @@ GeeSet* photo_metadata_get_hierarchical_keywords (PhotoMetadata* self) {
_current_value_index = -1;
#line 1105 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
while (TRUE) {
-#line 8459 "PhotoMetadata.c"
- gint _tmp33_ = 0;
- gint _tmp34_ = 0;
- gint _tmp35_ = 0;
+#line 8501 "PhotoMetadata.c"
+ gint _tmp33_;
+ gint _tmp34_;
+ gint _tmp35_;
gchar* current_value = NULL;
- GeeArrayList* _tmp36_ = NULL;
- gint _tmp37_ = 0;
- gpointer _tmp38_ = NULL;
+ GeeArrayList* _tmp36_;
+ gint _tmp37_;
+ gpointer _tmp38_;
gchar* canonicalized = NULL;
- const gchar* _tmp39_ = NULL;
- HierarchicalKeywordField* _tmp40_ = NULL;
- const gchar* _tmp41_ = NULL;
- gchar* _tmp42_ = NULL;
- const gchar* _tmp43_ = NULL;
+ const gchar* _tmp39_;
+ HierarchicalKeywordField* _tmp40_;
+ const gchar* _tmp41_;
+ gchar* _tmp42_;
+ const gchar* _tmp43_;
#line 1105 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp33_ = _current_value_index;
#line 1105 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -8486,7 +8528,7 @@ GeeSet* photo_metadata_get_hierarchical_keywords (PhotoMetadata* self) {
if (!(_tmp34_ < _tmp35_)) {
#line 1105 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
break;
-#line 8485 "PhotoMetadata.c"
+#line 8527 "PhotoMetadata.c"
}
#line 1105 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp36_ = _current_value_list;
@@ -8510,26 +8552,26 @@ GeeSet* photo_metadata_get_hierarchical_keywords (PhotoMetadata* self) {
_tmp43_ = canonicalized;
#line 1110 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp43_ != NULL) {
-#line 8509 "PhotoMetadata.c"
- GeeSet* _tmp44_ = NULL;
- const gchar* _tmp45_ = NULL;
+#line 8551 "PhotoMetadata.c"
+ GeeSet* _tmp44_;
+ const gchar* _tmp45_;
#line 1111 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp44_ = h_keywords;
#line 1111 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp45_ = canonicalized;
#line 1111 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, GEE_TYPE_COLLECTION, GeeCollection), _tmp45_);
-#line 8518 "PhotoMetadata.c"
+#line 8560 "PhotoMetadata.c"
}
#line 1105 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (canonicalized);
#line 1105 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (current_value);
-#line 8524 "PhotoMetadata.c"
+#line 8566 "PhotoMetadata.c"
}
#line 1105 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_object_unref0 (_current_value_list);
-#line 8528 "PhotoMetadata.c"
+#line 8570 "PhotoMetadata.c"
}
#line 1087 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_object_unref0 (transformed_values);
@@ -8537,7 +8579,7 @@ GeeSet* photo_metadata_get_hierarchical_keywords (PhotoMetadata* self) {
_g_object_unref0 (values);
#line 1087 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_hierarchical_keyword_field_unref0 (field);
-#line 8536 "PhotoMetadata.c"
+#line 8578 "PhotoMetadata.c"
}
}
}
@@ -8545,14 +8587,14 @@ GeeSet* photo_metadata_get_hierarchical_keywords (PhotoMetadata* self) {
result = h_keywords;
#line 1115 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 8544 "PhotoMetadata.c"
+#line 8586 "PhotoMetadata.c"
}
gboolean photo_metadata_has_orientation (PhotoMetadata* self) {
gboolean result = FALSE;
- GExiv2Metadata* _tmp0_ = NULL;
- GExiv2Orientation _tmp1_ = 0;
+ GExiv2Metadata* _tmp0_;
+ GExiv2Orientation _tmp1_;
#line 1118 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE);
#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -8563,18 +8605,18 @@ gboolean photo_metadata_has_orientation (PhotoMetadata* self) {
result = _tmp1_ == GEXIV2_ORIENTATION_UNSPECIFIED;
#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 8562 "PhotoMetadata.c"
+#line 8604 "PhotoMetadata.c"
}
Orientation photo_metadata_get_orientation (PhotoMetadata* self) {
Orientation result = 0;
GExiv2Orientation orientation = 0;
- GExiv2Metadata* _tmp0_ = NULL;
- GExiv2Orientation _tmp1_ = 0;
+ GExiv2Metadata* _tmp0_;
+ GExiv2Orientation _tmp1_;
gboolean _tmp2_ = FALSE;
gboolean _tmp3_ = FALSE;
- GExiv2Orientation _tmp4_ = 0;
+ GExiv2Orientation _tmp4_;
#line 1123 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), 0);
#line 1126 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -8589,27 +8631,27 @@ Orientation photo_metadata_get_orientation (PhotoMetadata* self) {
if (_tmp4_ == GEXIV2_ORIENTATION_UNSPECIFIED) {
#line 1127 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp3_ = TRUE;
-#line 8588 "PhotoMetadata.c"
+#line 8630 "PhotoMetadata.c"
} else {
- GExiv2Orientation _tmp5_ = 0;
+ GExiv2Orientation _tmp5_;
#line 1127 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp5_ = orientation;
#line 1127 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp3_ = _tmp5_ < ORIENTATION_MIN;
-#line 8595 "PhotoMetadata.c"
+#line 8637 "PhotoMetadata.c"
}
#line 1127 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp3_) {
#line 1127 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp2_ = TRUE;
-#line 8601 "PhotoMetadata.c"
+#line 8643 "PhotoMetadata.c"
} else {
- GExiv2Orientation _tmp6_ = 0;
+ GExiv2Orientation _tmp6_;
#line 1128 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp6_ = orientation;
#line 1128 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp2_ = _tmp6_ > ORIENTATION_MAX;
-#line 8608 "PhotoMetadata.c"
+#line 8650 "PhotoMetadata.c"
}
#line 1127 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp2_) {
@@ -8617,23 +8659,23 @@ Orientation photo_metadata_get_orientation (PhotoMetadata* self) {
result = ORIENTATION_TOP_LEFT;
#line 1129 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 8616 "PhotoMetadata.c"
+#line 8658 "PhotoMetadata.c"
} else {
- GExiv2Orientation _tmp7_ = 0;
+ GExiv2Orientation _tmp7_;
#line 1131 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp7_ = orientation;
#line 1131 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
result = (Orientation) _tmp7_;
#line 1131 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 8625 "PhotoMetadata.c"
+#line 8667 "PhotoMetadata.c"
}
}
void photo_metadata_set_orientation (PhotoMetadata* self, Orientation orientation) {
- GExiv2Metadata* _tmp0_ = NULL;
- Orientation _tmp1_ = 0;
+ GExiv2Metadata* _tmp0_;
+ Orientation _tmp1_;
#line 1134 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
#line 1136 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -8642,24 +8684,24 @@ void photo_metadata_set_orientation (PhotoMetadata* self, Orientation orientatio
_tmp1_ = orientation;
#line 1136 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
gexiv2_metadata_set_orientation (_tmp0_, (GExiv2Orientation) _tmp1_);
-#line 8641 "PhotoMetadata.c"
+#line 8683 "PhotoMetadata.c"
}
-gboolean photo_metadata_get_gps (PhotoMetadata* self, gdouble* longitude, gchar** long_ref, gdouble* latitude, gchar** lat_ref, gdouble* altitude) {
+gboolean photo_metadata_get_gps (PhotoMetadata* self, gdouble* longitude, gchar* * long_ref, gdouble* latitude, gchar* * lat_ref, gdouble* altitude) {
gdouble _vala_longitude = 0.0;
gchar* _vala_long_ref = NULL;
gdouble _vala_latitude = 0.0;
gchar* _vala_lat_ref = NULL;
gdouble _vala_altitude = 0.0;
gboolean result = FALSE;
- GExiv2Metadata* _tmp0_ = NULL;
+ GExiv2Metadata* _tmp0_;
gdouble _tmp1_ = 0.0;
gdouble _tmp2_ = 0.0;
gdouble _tmp3_ = 0.0;
- gboolean _tmp4_ = FALSE;
- gchar* _tmp5_ = NULL;
- gchar* _tmp6_ = NULL;
+ gboolean _tmp4_;
+ gchar* _tmp5_;
+ gchar* _tmp6_;
#line 1139 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE);
#line 1141 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -8688,43 +8730,43 @@ gboolean photo_metadata_get_gps (PhotoMetadata* self, gdouble* longitude, gchar*
if (longitude) {
#line 1145 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
*longitude = _vala_longitude;
-#line 8687 "PhotoMetadata.c"
+#line 8729 "PhotoMetadata.c"
}
#line 1145 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (long_ref) {
#line 1145 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
*long_ref = _vala_long_ref;
-#line 8693 "PhotoMetadata.c"
+#line 8735 "PhotoMetadata.c"
} else {
#line 1145 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (_vala_long_ref);
-#line 8697 "PhotoMetadata.c"
+#line 8739 "PhotoMetadata.c"
}
#line 1145 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (latitude) {
#line 1145 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
*latitude = _vala_latitude;
-#line 8703 "PhotoMetadata.c"
+#line 8745 "PhotoMetadata.c"
}
#line 1145 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (lat_ref) {
#line 1145 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
*lat_ref = _vala_lat_ref;
-#line 8709 "PhotoMetadata.c"
+#line 8751 "PhotoMetadata.c"
} else {
#line 1145 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (_vala_lat_ref);
-#line 8713 "PhotoMetadata.c"
+#line 8755 "PhotoMetadata.c"
}
#line 1145 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (altitude) {
#line 1145 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
*altitude = _vala_altitude;
-#line 8719 "PhotoMetadata.c"
+#line 8761 "PhotoMetadata.c"
}
#line 1145 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 8723 "PhotoMetadata.c"
+#line 8765 "PhotoMetadata.c"
}
#line 1148 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp5_ = photo_metadata_get_string (self, "Exif.GPSInfo.GPSLongitudeRef", PHOTO_METADATA_PREPARE_STRING_OPTIONS);
@@ -8744,43 +8786,43 @@ gboolean photo_metadata_get_gps (PhotoMetadata* self, gdouble* longitude, gchar*
if (longitude) {
#line 1151 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
*longitude = _vala_longitude;
-#line 8743 "PhotoMetadata.c"
+#line 8785 "PhotoMetadata.c"
}
#line 1151 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (long_ref) {
#line 1151 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
*long_ref = _vala_long_ref;
-#line 8749 "PhotoMetadata.c"
+#line 8791 "PhotoMetadata.c"
} else {
#line 1151 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (_vala_long_ref);
-#line 8753 "PhotoMetadata.c"
+#line 8795 "PhotoMetadata.c"
}
#line 1151 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (latitude) {
#line 1151 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
*latitude = _vala_latitude;
-#line 8759 "PhotoMetadata.c"
+#line 8801 "PhotoMetadata.c"
}
#line 1151 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (lat_ref) {
#line 1151 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
*lat_ref = _vala_lat_ref;
-#line 8765 "PhotoMetadata.c"
+#line 8807 "PhotoMetadata.c"
} else {
#line 1151 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (_vala_lat_ref);
-#line 8769 "PhotoMetadata.c"
+#line 8811 "PhotoMetadata.c"
}
#line 1151 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (altitude) {
#line 1151 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
*altitude = _vala_altitude;
-#line 8775 "PhotoMetadata.c"
+#line 8817 "PhotoMetadata.c"
}
#line 1151 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 8779 "PhotoMetadata.c"
+#line 8821 "PhotoMetadata.c"
}
@@ -8788,7 +8830,7 @@ gboolean photo_metadata_get_exposure (PhotoMetadata* self, MetadataRational* exp
MetadataRational _vala_exposure = {0};
gboolean result = FALSE;
MetadataRational _tmp0_ = {0};
- gboolean _tmp1_ = FALSE;
+ gboolean _tmp1_;
#line 1154 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE);
#line 1155 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -8801,11 +8843,11 @@ gboolean photo_metadata_get_exposure (PhotoMetadata* self, MetadataRational* exp
if (exposure) {
#line 1155 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
*exposure = _vala_exposure;
-#line 8800 "PhotoMetadata.c"
+#line 8842 "PhotoMetadata.c"
}
#line 1155 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 8804 "PhotoMetadata.c"
+#line 8846 "PhotoMetadata.c"
}
@@ -8813,9 +8855,9 @@ gchar* photo_metadata_get_exposure_string (PhotoMetadata* self) {
gchar* result = NULL;
MetadataRational exposure_time = {0};
MetadataRational _tmp0_ = {0};
- gboolean _tmp1_ = FALSE;
- gboolean _tmp2_ = FALSE;
- gchar* _tmp3_ = NULL;
+ gboolean _tmp1_;
+ gboolean _tmp2_;
+ gchar* _tmp3_;
#line 1158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
#line 1160 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -8828,7 +8870,7 @@ gchar* photo_metadata_get_exposure_string (PhotoMetadata* self) {
result = NULL;
#line 1161 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 8827 "PhotoMetadata.c"
+#line 8869 "PhotoMetadata.c"
}
#line 1163 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp2_ = metadata_rational_is_valid (&exposure_time);
@@ -8838,7 +8880,7 @@ gchar* photo_metadata_get_exposure_string (PhotoMetadata* self) {
result = NULL;
#line 1164 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 8837 "PhotoMetadata.c"
+#line 8879 "PhotoMetadata.c"
}
#line 1166 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp3_ = photo_metadata_get_string_interpreted (self, "Exif.Photo.ExposureTime", PHOTO_METADATA_PREPARE_STRING_OPTIONS);
@@ -8846,7 +8888,7 @@ gchar* photo_metadata_get_exposure_string (PhotoMetadata* self) {
result = _tmp3_;
#line 1166 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 8845 "PhotoMetadata.c"
+#line 8887 "PhotoMetadata.c"
}
@@ -8855,10 +8897,10 @@ gboolean photo_metadata_get_iso (PhotoMetadata* self, glong* iso) {
gboolean result = FALSE;
gboolean fetched_ok = FALSE;
glong _tmp0_ = 0L;
- gboolean _tmp1_ = FALSE;
- gboolean _tmp2_ = FALSE;
+ gboolean _tmp1_;
+ gboolean _tmp2_;
gboolean _tmp3_ = FALSE;
- glong _tmp4_ = 0L;
+ glong _tmp4_;
#line 1169 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE);
#line 1170 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -8877,11 +8919,11 @@ gboolean photo_metadata_get_iso (PhotoMetadata* self, glong* iso) {
if (iso) {
#line 1173 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
*iso = _vala_iso;
-#line 8876 "PhotoMetadata.c"
+#line 8918 "PhotoMetadata.c"
}
#line 1173 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 8880 "PhotoMetadata.c"
+#line 8922 "PhotoMetadata.c"
}
#line 1177 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp4_ = _vala_iso;
@@ -8889,14 +8931,14 @@ gboolean photo_metadata_get_iso (PhotoMetadata* self, glong* iso) {
if (_tmp4_ < ((glong) 6)) {
#line 1177 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp3_ = TRUE;
-#line 8888 "PhotoMetadata.c"
+#line 8930 "PhotoMetadata.c"
} else {
- glong _tmp5_ = 0L;
+ glong _tmp5_;
#line 1177 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp5_ = _vala_iso;
#line 1177 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp3_ = _tmp5_ > ((glong) 409600);
-#line 8895 "PhotoMetadata.c"
+#line 8937 "PhotoMetadata.c"
}
#line 1177 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp3_) {
@@ -8906,11 +8948,11 @@ gboolean photo_metadata_get_iso (PhotoMetadata* self, glong* iso) {
if (iso) {
#line 1178 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
*iso = _vala_iso;
-#line 8905 "PhotoMetadata.c"
+#line 8947 "PhotoMetadata.c"
}
#line 1178 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 8909 "PhotoMetadata.c"
+#line 8951 "PhotoMetadata.c"
}
#line 1180 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
result = TRUE;
@@ -8918,11 +8960,11 @@ gboolean photo_metadata_get_iso (PhotoMetadata* self, glong* iso) {
if (iso) {
#line 1180 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
*iso = _vala_iso;
-#line 8917 "PhotoMetadata.c"
+#line 8959 "PhotoMetadata.c"
}
#line 1180 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 8921 "PhotoMetadata.c"
+#line 8963 "PhotoMetadata.c"
}
@@ -8930,8 +8972,8 @@ gchar* photo_metadata_get_iso_string (PhotoMetadata* self) {
gchar* result = NULL;
glong iso = 0L;
glong _tmp0_ = 0L;
- gboolean _tmp1_ = FALSE;
- gchar* _tmp2_ = NULL;
+ gboolean _tmp1_;
+ gchar* _tmp2_;
#line 1183 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
#line 1185 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -8944,7 +8986,7 @@ gchar* photo_metadata_get_iso_string (PhotoMetadata* self) {
result = NULL;
#line 1186 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 8943 "PhotoMetadata.c"
+#line 8985 "PhotoMetadata.c"
}
#line 1188 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp2_ = photo_metadata_get_string_interpreted (self, "Exif.Photo.ISOSpeedRatings", PHOTO_METADATA_PREPARE_STRING_OPTIONS);
@@ -8952,7 +8994,7 @@ gchar* photo_metadata_get_iso_string (PhotoMetadata* self) {
result = _tmp2_;
#line 1188 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 8951 "PhotoMetadata.c"
+#line 8993 "PhotoMetadata.c"
}
@@ -8960,7 +9002,7 @@ gboolean photo_metadata_get_aperture (PhotoMetadata* self, MetadataRational* ape
MetadataRational _vala_aperture = {0};
gboolean result = FALSE;
MetadataRational _tmp0_ = {0};
- gboolean _tmp1_ = FALSE;
+ gboolean _tmp1_;
#line 1191 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE);
#line 1192 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -8973,11 +9015,11 @@ gboolean photo_metadata_get_aperture (PhotoMetadata* self, MetadataRational* ape
if (aperture) {
#line 1192 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
*aperture = _vala_aperture;
-#line 8972 "PhotoMetadata.c"
+#line 9014 "PhotoMetadata.c"
}
#line 1192 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 8976 "PhotoMetadata.c"
+#line 9018 "PhotoMetadata.c"
}
@@ -8985,22 +9027,22 @@ gchar* photo_metadata_get_aperture_string (PhotoMetadata* self, gboolean pango_f
gchar* result = NULL;
MetadataRational aperture = {0};
MetadataRational _tmp0_ = {0};
- gboolean _tmp1_ = FALSE;
+ gboolean _tmp1_;
gdouble aperture_value = 0.0;
- MetadataRational _tmp2_ = {0};
- gint _tmp3_ = 0;
- MetadataRational _tmp4_ = {0};
- gint _tmp5_ = 0;
- gdouble _tmp6_ = 0.0;
+ MetadataRational _tmp2_;
+ gint _tmp3_;
+ MetadataRational _tmp4_;
+ gint _tmp5_;
+ gdouble _tmp6_;
const gchar* _tmp7_ = NULL;
- gboolean _tmp8_ = FALSE;
+ gboolean _tmp8_;
const gchar* _tmp9_ = NULL;
- gdouble _tmp10_ = 0.0;
- gdouble _tmp11_ = 0.0;
- gchar* _tmp12_ = NULL;
- gchar* _tmp13_ = NULL;
- gchar* _tmp14_ = NULL;
- gchar* _tmp15_ = NULL;
+ gdouble _tmp10_;
+ gdouble _tmp11_;
+ gchar* _tmp12_;
+ gchar* _tmp13_;
+ gchar* _tmp14_;
+ gchar* _tmp15_;
#line 1195 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
#line 1197 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -9013,7 +9055,7 @@ gchar* photo_metadata_get_aperture_string (PhotoMetadata* self, gboolean pango_f
result = NULL;
#line 1198 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 9012 "PhotoMetadata.c"
+#line 9054 "PhotoMetadata.c"
}
#line 1200 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp2_ = aperture;
@@ -9035,11 +9077,11 @@ gchar* photo_metadata_get_aperture_string (PhotoMetadata* self, gboolean pango_f
if (_tmp8_) {
#line 1203 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp7_ = "<i>f</i>/";
-#line 9034 "PhotoMetadata.c"
+#line 9076 "PhotoMetadata.c"
} else {
#line 1203 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp7_ = "f/";
-#line 9038 "PhotoMetadata.c"
+#line 9080 "PhotoMetadata.c"
}
#line 1204 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp10_ = aperture_value;
@@ -9047,11 +9089,11 @@ gchar* photo_metadata_get_aperture_string (PhotoMetadata* self, gboolean pango_f
if (fmod (_tmp10_, 1) == ((gdouble) 0)) {
#line 1204 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp9_ = "%.0f";
-#line 9046 "PhotoMetadata.c"
+#line 9088 "PhotoMetadata.c"
} else {
#line 1204 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp9_ = "%.1f";
-#line 9050 "PhotoMetadata.c"
+#line 9092 "PhotoMetadata.c"
}
#line 1203 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp11_ = aperture_value;
@@ -9069,13 +9111,13 @@ gchar* photo_metadata_get_aperture_string (PhotoMetadata* self, gboolean pango_f
result = _tmp15_;
#line 1203 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 9068 "PhotoMetadata.c"
+#line 9110 "PhotoMetadata.c"
}
gchar* photo_metadata_get_camera_make (PhotoMetadata* self) {
gchar* result = NULL;
- gchar* _tmp0_ = NULL;
+ gchar* _tmp0_;
#line 1207 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
#line 1208 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -9084,13 +9126,13 @@ gchar* photo_metadata_get_camera_make (PhotoMetadata* self) {
result = _tmp0_;
#line 1208 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 9083 "PhotoMetadata.c"
+#line 9125 "PhotoMetadata.c"
}
gchar* photo_metadata_get_camera_model (PhotoMetadata* self) {
gchar* result = NULL;
- gchar* _tmp0_ = NULL;
+ gchar* _tmp0_;
#line 1211 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
#line 1212 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -9099,7 +9141,7 @@ gchar* photo_metadata_get_camera_model (PhotoMetadata* self) {
result = _tmp0_;
#line 1212 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 9098 "PhotoMetadata.c"
+#line 9140 "PhotoMetadata.c"
}
@@ -9107,7 +9149,7 @@ gboolean photo_metadata_get_flash (PhotoMetadata* self, glong* flash) {
glong _vala_flash = 0L;
gboolean result = FALSE;
glong _tmp0_ = 0L;
- gboolean _tmp1_ = FALSE;
+ gboolean _tmp1_;
#line 1215 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE);
#line 1217 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -9120,17 +9162,17 @@ gboolean photo_metadata_get_flash (PhotoMetadata* self, glong* flash) {
if (flash) {
#line 1217 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
*flash = _vala_flash;
-#line 9119 "PhotoMetadata.c"
+#line 9161 "PhotoMetadata.c"
}
#line 1217 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 9123 "PhotoMetadata.c"
+#line 9165 "PhotoMetadata.c"
}
gchar* photo_metadata_get_flash_string (PhotoMetadata* self) {
gchar* result = NULL;
- gchar* _tmp0_ = NULL;
+ gchar* _tmp0_;
#line 1220 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
#line 1222 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -9139,7 +9181,7 @@ gchar* photo_metadata_get_flash_string (PhotoMetadata* self) {
result = _tmp0_;
#line 1222 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 9138 "PhotoMetadata.c"
+#line 9180 "PhotoMetadata.c"
}
@@ -9147,7 +9189,7 @@ gboolean photo_metadata_get_focal_length (PhotoMetadata* self, MetadataRational*
MetadataRational _vala_focal_length = {0};
gboolean result = FALSE;
MetadataRational _tmp0_ = {0};
- gboolean _tmp1_ = FALSE;
+ gboolean _tmp1_;
#line 1225 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE);
#line 1226 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -9160,17 +9202,17 @@ gboolean photo_metadata_get_focal_length (PhotoMetadata* self, MetadataRational*
if (focal_length) {
#line 1226 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
*focal_length = _vala_focal_length;
-#line 9159 "PhotoMetadata.c"
+#line 9201 "PhotoMetadata.c"
}
#line 1226 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 9163 "PhotoMetadata.c"
+#line 9205 "PhotoMetadata.c"
}
gchar* photo_metadata_get_focal_length_string (PhotoMetadata* self) {
gchar* result = NULL;
- gchar* _tmp0_ = NULL;
+ gchar* _tmp0_;
#line 1229 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
#line 1230 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -9179,15 +9221,15 @@ gchar* photo_metadata_get_focal_length_string (PhotoMetadata* self) {
result = _tmp0_;
#line 1230 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 9178 "PhotoMetadata.c"
+#line 9220 "PhotoMetadata.c"
}
gchar* photo_metadata_get_artist (PhotoMetadata* self) {
gchar* result = NULL;
- gchar** _tmp0_ = NULL;
- gint _tmp0__length1 = 0;
- gchar* _tmp1_ = NULL;
+ gchar** _tmp0_;
+ gint _tmp0__length1;
+ gchar* _tmp1_;
#line 1239 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
#line 1240 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -9200,13 +9242,13 @@ gchar* photo_metadata_get_artist (PhotoMetadata* self) {
result = _tmp1_;
#line 1240 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 9199 "PhotoMetadata.c"
+#line 9241 "PhotoMetadata.c"
}
gchar* photo_metadata_get_copyright (PhotoMetadata* self) {
gchar* result = NULL;
- gchar* _tmp0_ = NULL;
+ gchar* _tmp0_;
#line 1243 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
#line 1244 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -9215,13 +9257,13 @@ gchar* photo_metadata_get_copyright (PhotoMetadata* self) {
result = _tmp0_;
#line 1244 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 9214 "PhotoMetadata.c"
+#line 9256 "PhotoMetadata.c"
}
gchar* photo_metadata_get_software (PhotoMetadata* self) {
gchar* result = NULL;
- gchar* _tmp0_ = NULL;
+ gchar* _tmp0_;
#line 1247 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
#line 1248 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -9230,16 +9272,16 @@ gchar* photo_metadata_get_software (PhotoMetadata* self) {
result = _tmp0_;
#line 1248 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 9229 "PhotoMetadata.c"
+#line 9271 "PhotoMetadata.c"
}
void photo_metadata_set_software (PhotoMetadata* self, const gchar* software, const gchar* version) {
- const gchar* _tmp0_ = NULL;
- const gchar* _tmp1_ = NULL;
- gchar* _tmp2_ = NULL;
- gchar* _tmp3_ = NULL;
- gboolean _tmp4_ = FALSE;
+ const gchar* _tmp0_;
+ const gchar* _tmp1_;
+ gchar* _tmp2_;
+ gchar* _tmp3_;
+ gboolean _tmp4_;
#line 1251 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
#line 1251 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -9262,9 +9304,9 @@ void photo_metadata_set_software (PhotoMetadata* self, const gchar* software, co
_tmp4_ = photo_metadata_has_iptc (self);
#line 1255 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp4_) {
-#line 9261 "PhotoMetadata.c"
- const gchar* _tmp5_ = NULL;
- const gchar* _tmp6_ = NULL;
+#line 9303 "PhotoMetadata.c"
+ const gchar* _tmp5_;
+ const gchar* _tmp6_;
#line 1256 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp5_ = software;
#line 1256 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -9273,7 +9315,7 @@ void photo_metadata_set_software (PhotoMetadata* self, const gchar* software, co
_tmp6_ = version;
#line 1257 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
photo_metadata_set_string (self, "Iptc.Application2.ProgramVersion", _tmp6_, PHOTO_METADATA_PREPARE_STRING_OPTIONS);
-#line 9272 "PhotoMetadata.c"
+#line 9314 "PhotoMetadata.c"
}
}
@@ -9287,13 +9329,13 @@ void photo_metadata_remove_software (PhotoMetadata* self) {
photo_metadata_remove_tag (self, "Iptc.Application2.Program");
#line 1264 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
photo_metadata_remove_tag (self, "Iptc.Application2.ProgramVersion");
-#line 9286 "PhotoMetadata.c"
+#line 9328 "PhotoMetadata.c"
}
gchar* photo_metadata_get_exposure_bias (PhotoMetadata* self) {
gchar* result = NULL;
- gchar* _tmp0_ = NULL;
+ gchar* _tmp0_;
#line 1267 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
#line 1268 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -9302,23 +9344,23 @@ gchar* photo_metadata_get_exposure_bias (PhotoMetadata* self) {
result = _tmp0_;
#line 1268 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 9301 "PhotoMetadata.c"
+#line 9343 "PhotoMetadata.c"
}
Rating photo_metadata_get_rating (PhotoMetadata* self) {
Rating result = 0;
gchar* rating_string = NULL;
- gchar** _tmp0_ = NULL;
- gint _tmp0__length1 = 0;
- gchar* _tmp1_ = NULL;
- const gchar* _tmp2_ = NULL;
- gchar* _tmp6_ = NULL;
- const gchar* _tmp7_ = NULL;
+ gchar** _tmp0_;
+ gint _tmp0__length1;
+ gchar* _tmp1_;
+ const gchar* _tmp2_;
+ gchar* _tmp6_;
+ const gchar* _tmp7_;
gint int_percent_rating = 0;
- const gchar* _tmp8_ = NULL;
- gint _tmp9_ = 0;
- Rating _tmp18_ = 0;
+ const gchar* _tmp8_;
+ gint _tmp9_;
+ Rating _tmp18_;
#line 1279 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), 0);
#line 1280 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -9333,10 +9375,10 @@ Rating photo_metadata_get_rating (PhotoMetadata* self) {
_tmp2_ = rating_string;
#line 1281 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp2_ != NULL) {
-#line 9332 "PhotoMetadata.c"
- const gchar* _tmp3_ = NULL;
- gint _tmp4_ = 0;
- Rating _tmp5_ = 0;
+#line 9374 "PhotoMetadata.c"
+ const gchar* _tmp3_;
+ gint _tmp4_;
+ Rating _tmp5_;
#line 1282 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp3_ = rating_string;
#line 1282 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -9349,7 +9391,7 @@ Rating photo_metadata_get_rating (PhotoMetadata* self) {
_g_free0 (rating_string);
#line 1282 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 9348 "PhotoMetadata.c"
+#line 9390 "PhotoMetadata.c"
}
#line 1284 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp6_ = photo_metadata_get_string (self, "Exif.Image.RatingPercent", PHOTO_METADATA_PREPARE_STRING_OPTIONS);
@@ -9367,7 +9409,7 @@ Rating photo_metadata_get_rating (PhotoMetadata* self) {
_g_free0 (rating_string);
#line 1286 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 9366 "PhotoMetadata.c"
+#line 9408 "PhotoMetadata.c"
}
#line 1289 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp8_ = rating_string;
@@ -9375,32 +9417,32 @@ Rating photo_metadata_get_rating (PhotoMetadata* self) {
_tmp9_ = atoi (_tmp8_);
#line 1289 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
int_percent_rating = _tmp9_;
-#line 9374 "PhotoMetadata.c"
+#line 9416 "PhotoMetadata.c"
{
gint i = 0;
#line 1290 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
i = 5;
-#line 9379 "PhotoMetadata.c"
+#line 9421 "PhotoMetadata.c"
{
gboolean _tmp10_ = FALSE;
#line 1290 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp10_ = TRUE;
#line 1290 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
while (TRUE) {
-#line 9386 "PhotoMetadata.c"
- gint _tmp12_ = 0;
- gint _tmp13_ = 0;
- gint _tmp14_ = 0;
- gint _tmp15_ = 0;
+#line 9428 "PhotoMetadata.c"
+ gint _tmp12_;
+ gint _tmp13_;
+ gint _tmp14_;
+ gint _tmp15_;
#line 1290 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (!_tmp10_) {
-#line 9393 "PhotoMetadata.c"
- gint _tmp11_ = 0;
+#line 9435 "PhotoMetadata.c"
+ gint _tmp11_;
#line 1290 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp11_ = i;
#line 1290 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
i = _tmp11_ - 1;
-#line 9399 "PhotoMetadata.c"
+#line 9441 "PhotoMetadata.c"
}
#line 1290 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp10_ = FALSE;
@@ -9410,7 +9452,7 @@ Rating photo_metadata_get_rating (PhotoMetadata* self) {
if (!(_tmp12_ >= 0)) {
#line 1290 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
break;
-#line 9409 "PhotoMetadata.c"
+#line 9451 "PhotoMetadata.c"
}
#line 1291 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp13_ = int_percent_rating;
@@ -9420,9 +9462,9 @@ Rating photo_metadata_get_rating (PhotoMetadata* self) {
_tmp15_ = RESOURCES_rating_thresholds[_tmp14_];
#line 1291 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp13_ >= _tmp15_) {
-#line 9419 "PhotoMetadata.c"
- gint _tmp16_ = 0;
- Rating _tmp17_ = 0;
+#line 9461 "PhotoMetadata.c"
+ gint _tmp16_;
+ Rating _tmp17_;
#line 1292 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp16_ = i;
#line 1292 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -9433,7 +9475,7 @@ Rating photo_metadata_get_rating (PhotoMetadata* self) {
_g_free0 (rating_string);
#line 1292 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 9432 "PhotoMetadata.c"
+#line 9474 "PhotoMetadata.c"
}
}
}
@@ -9446,21 +9488,21 @@ Rating photo_metadata_get_rating (PhotoMetadata* self) {
_g_free0 (rating_string);
#line 1294 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 9445 "PhotoMetadata.c"
+#line 9487 "PhotoMetadata.c"
}
void photo_metadata_set_rating (PhotoMetadata* self, Rating rating) {
gint int_rating = 0;
- Rating _tmp0_ = 0;
- gint _tmp1_ = 0;
- gint _tmp2_ = 0;
- gchar* _tmp3_ = NULL;
- gchar* _tmp4_ = NULL;
- gint _tmp5_ = 0;
- gchar* _tmp6_ = NULL;
- gchar* _tmp7_ = NULL;
- gint _tmp8_ = 0;
+ Rating _tmp0_;
+ gint _tmp1_;
+ gint _tmp2_;
+ gchar* _tmp3_;
+ gchar* _tmp4_;
+ gint _tmp5_;
+ gchar* _tmp6_;
+ gchar* _tmp7_;
+ gint _tmp8_;
#line 1302 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
#line 1303 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -9493,11 +9535,11 @@ void photo_metadata_set_rating (PhotoMetadata* self, Rating rating) {
_tmp8_ = int_rating;
#line 1307 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (0 <= _tmp8_) {
-#line 9492 "PhotoMetadata.c"
- gint _tmp9_ = 0;
- gint _tmp10_ = 0;
- gchar* _tmp11_ = NULL;
- gchar* _tmp12_ = NULL;
+#line 9534 "PhotoMetadata.c"
+ gint _tmp9_;
+ gint _tmp10_;
+ gchar* _tmp11_;
+ gchar* _tmp12_;
#line 1308 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp9_ = int_rating;
#line 1308 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -9510,11 +9552,11 @@ void photo_metadata_set_rating (PhotoMetadata* self, Rating rating) {
photo_metadata_set_string (self, "Exif.Image.RatingPercent", _tmp12_, PHOTO_METADATA_PREPARE_STRING_OPTIONS);
#line 1308 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (_tmp12_);
-#line 9509 "PhotoMetadata.c"
+#line 9551 "PhotoMetadata.c"
} else {
- gint _tmp13_ = 0;
- gchar* _tmp14_ = NULL;
- gchar* _tmp15_ = NULL;
+ gint _tmp13_;
+ gchar* _tmp14_;
+ gchar* _tmp15_;
#line 1310 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp13_ = int_rating;
#line 1310 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -9525,7 +9567,7 @@ void photo_metadata_set_rating (PhotoMetadata* self, Rating rating) {
photo_metadata_set_string (self, "Exif.Image.RatingPercent", _tmp15_, PHOTO_METADATA_PREPARE_STRING_OPTIONS);
#line 1310 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (_tmp15_);
-#line 9524 "PhotoMetadata.c"
+#line 9566 "PhotoMetadata.c"
}
}
@@ -9533,27 +9575,27 @@ void photo_metadata_set_rating (PhotoMetadata* self, Rating rating) {
static gpointer _media_metadata_ref0 (gpointer self) {
#line 235 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return self ? media_metadata_ref (self) : NULL;
-#line 9532 "PhotoMetadata.c"
+#line 9574 "PhotoMetadata.c"
}
static PhotoMetadataInternalPhotoPreview* photo_metadata_internal_photo_preview_construct (GType object_type, PhotoMetadata* owner, const gchar* name, guint number, GExiv2PreviewProperties* props) {
PhotoMetadataInternalPhotoPreview* self = NULL;
- const gchar* _tmp0_ = NULL;
- GExiv2PreviewProperties* _tmp1_ = NULL;
- guint32 _tmp2_ = 0U;
- GExiv2PreviewProperties* _tmp3_ = NULL;
- guint32 _tmp4_ = 0U;
+ const gchar* _tmp0_;
+ GExiv2PreviewProperties* _tmp1_;
+ guint32 _tmp2_;
+ GExiv2PreviewProperties* _tmp3_;
+ guint32 _tmp4_;
Dimensions _tmp5_ = {0};
- GExiv2PreviewProperties* _tmp6_ = NULL;
- guint32 _tmp7_ = 0U;
- GExiv2PreviewProperties* _tmp8_ = NULL;
- const gchar* _tmp9_ = NULL;
- GExiv2PreviewProperties* _tmp10_ = NULL;
- const gchar* _tmp11_ = NULL;
- PhotoMetadata* _tmp12_ = NULL;
- PhotoMetadata* _tmp13_ = NULL;
- guint _tmp14_ = 0U;
+ GExiv2PreviewProperties* _tmp6_;
+ guint32 _tmp7_;
+ GExiv2PreviewProperties* _tmp8_;
+ const gchar* _tmp9_;
+ GExiv2PreviewProperties* _tmp10_;
+ const gchar* _tmp11_;
+ PhotoMetadata* _tmp12_;
+ PhotoMetadata* _tmp13_;
+ guint _tmp14_;
#line 230 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (owner), NULL);
#line 230 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -9600,21 +9642,21 @@ static PhotoMetadataInternalPhotoPreview* photo_metadata_internal_photo_preview_
self->number = _tmp14_;
#line 230 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return self;
-#line 9599 "PhotoMetadata.c"
+#line 9641 "PhotoMetadata.c"
}
static PhotoMetadataInternalPhotoPreview* photo_metadata_internal_photo_preview_new (PhotoMetadata* owner, const gchar* name, guint number, GExiv2PreviewProperties* props) {
#line 230 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return photo_metadata_internal_photo_preview_construct (PHOTO_METADATA_TYPE_INTERNAL_PHOTO_PREVIEW, owner, name, number, props);
-#line 9606 "PhotoMetadata.c"
+#line 9648 "PhotoMetadata.c"
}
static guint8* _vala_array_dup6 (guint8* self, int length) {
#line 243 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return g_memdup (self, length * sizeof (guint8));
-#line 9613 "PhotoMetadata.c"
+#line 9655 "PhotoMetadata.c"
}
@@ -9622,31 +9664,31 @@ static guint8* photo_metadata_internal_photo_preview_real_flatten (PhotoPreview*
PhotoMetadataInternalPhotoPreview * self;
guint8* result = NULL;
GExiv2PreviewProperties** props = NULL;
- PhotoMetadata* _tmp0_ = NULL;
- GExiv2Metadata* _tmp1_ = NULL;
- GExiv2PreviewProperties** _tmp2_ = NULL;
- GExiv2PreviewProperties** _tmp3_ = NULL;
- gint props_length1 = 0;
- gint _props_size_ = 0;
+ PhotoMetadata* _tmp0_;
+ GExiv2Metadata* _tmp1_;
+ GExiv2PreviewProperties** _tmp2_;
+ GExiv2PreviewProperties** _tmp3_;
+ gint props_length1;
+ gint _props_size_;
gboolean _tmp4_ = FALSE;
- GExiv2PreviewProperties** _tmp5_ = NULL;
- gint _tmp5__length1 = 0;
- PhotoMetadata* _tmp8_ = NULL;
- GExiv2Metadata* _tmp9_ = NULL;
- GExiv2PreviewProperties** _tmp10_ = NULL;
- gint _tmp10__length1 = 0;
- guint _tmp11_ = 0U;
- GExiv2PreviewProperties* _tmp12_ = NULL;
- GExiv2PreviewImage* _tmp13_ = NULL;
- GExiv2PreviewImage* _tmp14_ = NULL;
+ GExiv2PreviewProperties** _tmp5_;
+ gint _tmp5__length1;
+ PhotoMetadata* _tmp8_;
+ GExiv2Metadata* _tmp9_;
+ GExiv2PreviewProperties** _tmp10_;
+ gint _tmp10__length1;
+ guint _tmp11_;
+ GExiv2PreviewProperties* _tmp12_;
+ GExiv2PreviewImage* _tmp13_;
+ GExiv2PreviewImage* _tmp14_;
guint32 _tmp15_;
- guint8* _tmp16_ = NULL;
- guint8* _tmp17_ = NULL;
- gint _tmp17__length1 = 0;
- guint8* _tmp18_ = NULL;
- gint _tmp18__length1 = 0;
- guint8* _tmp19_ = NULL;
- gint _tmp19__length1 = 0;
+ guint8* _tmp16_;
+ guint8* _tmp17_;
+ gint _tmp17__length1;
+ guint8* _tmp18_;
+ gint _tmp18__length1;
+ guint8* _tmp19_;
+ gint _tmp19__length1;
#line 239 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTO_METADATA_TYPE_INTERNAL_PHOTO_PREVIEW, PhotoMetadataInternalPhotoPreview);
#line 240 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -9667,10 +9709,10 @@ static guint8* photo_metadata_internal_photo_preview_real_flatten (PhotoPreview*
_tmp5__length1 = props_length1;
#line 241 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp5_ != NULL) {
-#line 9666 "PhotoMetadata.c"
- GExiv2PreviewProperties** _tmp6_ = NULL;
- gint _tmp6__length1 = 0;
- guint _tmp7_ = 0U;
+#line 9708 "PhotoMetadata.c"
+ GExiv2PreviewProperties** _tmp6_;
+ gint _tmp6__length1;
+ guint _tmp7_;
#line 241 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp6_ = props;
#line 241 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -9679,11 +9721,11 @@ static guint8* photo_metadata_internal_photo_preview_real_flatten (PhotoPreview*
_tmp7_ = self->number;
#line 241 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp4_ = ((guint) _tmp6__length1) > _tmp7_;
-#line 9678 "PhotoMetadata.c"
+#line 9720 "PhotoMetadata.c"
} else {
#line 241 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp4_ = FALSE;
-#line 9682 "PhotoMetadata.c"
+#line 9724 "PhotoMetadata.c"
}
#line 241 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_vala_assert (_tmp4_, "props != null && props.length > number");
@@ -9723,13 +9765,13 @@ static guint8* photo_metadata_internal_photo_preview_real_flatten (PhotoPreview*
if (result_length1) {
#line 243 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
*result_length1 = _tmp19__length1;
-#line 9722 "PhotoMetadata.c"
+#line 9764 "PhotoMetadata.c"
}
#line 243 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
result = _tmp19_;
#line 243 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 9728 "PhotoMetadata.c"
+#line 9770 "PhotoMetadata.c"
}
@@ -9739,8 +9781,8 @@ static void photo_metadata_internal_photo_preview_class_init (PhotoMetadataInter
#line 226 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
((PhotoPreviewClass *) klass)->finalize = photo_metadata_internal_photo_preview_finalize;
#line 226 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- ((PhotoPreviewClass *) klass)->flatten = (guint8* (*)(PhotoPreview*, int*, GError**)) photo_metadata_internal_photo_preview_real_flatten;
-#line 9739 "PhotoMetadata.c"
+ ((PhotoPreviewClass *) klass)->flatten = (guint8* (*) (PhotoPreview *, int*, GError**)) photo_metadata_internal_photo_preview_real_flatten;
+#line 9781 "PhotoMetadata.c"
}
@@ -9748,7 +9790,7 @@ static void photo_metadata_internal_photo_preview_instance_init (PhotoMetadataIn
}
-static void photo_metadata_internal_photo_preview_finalize (PhotoPreview* obj) {
+static void photo_metadata_internal_photo_preview_finalize (PhotoPreview * obj) {
PhotoMetadataInternalPhotoPreview * self;
#line 226 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, PHOTO_METADATA_TYPE_INTERNAL_PHOTO_PREVIEW, PhotoMetadataInternalPhotoPreview);
@@ -9756,7 +9798,7 @@ static void photo_metadata_internal_photo_preview_finalize (PhotoPreview* obj) {
_media_metadata_unref0 (self->owner);
#line 226 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
PHOTO_PREVIEW_CLASS (photo_metadata_internal_photo_preview_parent_class)->finalize (obj);
-#line 9755 "PhotoMetadata.c"
+#line 9797 "PhotoMetadata.c"
}
@@ -9773,70 +9815,70 @@ static GType photo_metadata_internal_photo_preview_get_type (void) {
static void photo_metadata_class_init (PhotoMetadataClass * klass) {
- gchar* _tmp0_ = NULL;
- gchar* _tmp1_ = NULL;
- gchar* _tmp2_ = NULL;
- gchar* _tmp3_ = NULL;
- gchar** _tmp4_ = NULL;
- gchar* _tmp5_ = NULL;
- gchar* _tmp6_ = NULL;
- gchar* _tmp7_ = NULL;
- gchar* _tmp8_ = NULL;
- gchar* _tmp9_ = NULL;
- gchar* _tmp10_ = NULL;
- gchar** _tmp11_ = NULL;
- gchar* _tmp12_ = NULL;
- gchar* _tmp13_ = NULL;
- gchar** _tmp14_ = NULL;
- gchar* _tmp15_ = NULL;
- gchar* _tmp16_ = NULL;
- gchar* _tmp17_ = NULL;
- gchar* _tmp18_ = NULL;
- gchar** _tmp19_ = NULL;
- gchar* _tmp20_ = NULL;
- gchar* _tmp21_ = NULL;
- gchar* _tmp22_ = NULL;
- gchar* _tmp23_ = NULL;
- gchar** _tmp24_ = NULL;
- gchar* _tmp25_ = NULL;
- gchar* _tmp26_ = NULL;
- gchar* _tmp27_ = NULL;
- gchar* _tmp28_ = NULL;
- gchar* _tmp29_ = NULL;
- gchar** _tmp30_ = NULL;
- gchar* _tmp31_ = NULL;
- gchar* _tmp32_ = NULL;
- gchar** _tmp33_ = NULL;
- gchar* _tmp34_ = NULL;
- gchar* _tmp35_ = NULL;
- gchar* _tmp36_ = NULL;
- gchar** _tmp37_ = NULL;
- NullKeywordTransformer* _tmp38_ = NULL;
- NullKeywordTransformer* _tmp39_ = NULL;
- HierarchicalKeywordField* _tmp40_ = NULL;
- NullKeywordTransformer* _tmp41_ = NULL;
- NullKeywordTransformer* _tmp42_ = NULL;
- HierarchicalKeywordField* _tmp43_ = NULL;
- ACDSeeKeywordTransformer* _tmp44_ = NULL;
- ACDSeeKeywordTransformer* _tmp45_ = NULL;
- HierarchicalKeywordField* _tmp46_ = NULL;
- NullKeywordTransformer* _tmp47_ = NULL;
- NullKeywordTransformer* _tmp48_ = NULL;
- HierarchicalKeywordField* _tmp49_ = NULL;
- NullKeywordTransformer* _tmp50_ = NULL;
- NullKeywordTransformer* _tmp51_ = NULL;
- HierarchicalKeywordField* _tmp52_ = NULL;
- HierarchicalKeywordField** _tmp53_ = NULL;
- gchar* _tmp54_ = NULL;
- gchar* _tmp55_ = NULL;
- gchar* _tmp56_ = NULL;
- gchar** _tmp57_ = NULL;
- gchar* _tmp58_ = NULL;
- gchar* _tmp59_ = NULL;
- gchar* _tmp60_ = NULL;
- gchar* _tmp61_ = NULL;
- gchar* _tmp62_ = NULL;
- gchar** _tmp63_ = NULL;
+ gchar* _tmp0_;
+ gchar* _tmp1_;
+ gchar* _tmp2_;
+ gchar* _tmp3_;
+ gchar** _tmp4_;
+ gchar* _tmp5_;
+ gchar* _tmp6_;
+ gchar* _tmp7_;
+ gchar* _tmp8_;
+ gchar* _tmp9_;
+ gchar* _tmp10_;
+ gchar** _tmp11_;
+ gchar* _tmp12_;
+ gchar* _tmp13_;
+ gchar** _tmp14_;
+ gchar* _tmp15_;
+ gchar* _tmp16_;
+ gchar* _tmp17_;
+ gchar* _tmp18_;
+ gchar** _tmp19_;
+ gchar* _tmp20_;
+ gchar* _tmp21_;
+ gchar* _tmp22_;
+ gchar* _tmp23_;
+ gchar** _tmp24_;
+ gchar* _tmp25_;
+ gchar* _tmp26_;
+ gchar* _tmp27_;
+ gchar* _tmp28_;
+ gchar* _tmp29_;
+ gchar** _tmp30_;
+ gchar* _tmp31_;
+ gchar* _tmp32_;
+ gchar** _tmp33_;
+ gchar* _tmp34_;
+ gchar* _tmp35_;
+ gchar* _tmp36_;
+ gchar** _tmp37_;
+ NullKeywordTransformer* _tmp38_;
+ NullKeywordTransformer* _tmp39_;
+ HierarchicalKeywordField* _tmp40_;
+ NullKeywordTransformer* _tmp41_;
+ NullKeywordTransformer* _tmp42_;
+ HierarchicalKeywordField* _tmp43_;
+ ACDSeeKeywordTransformer* _tmp44_;
+ ACDSeeKeywordTransformer* _tmp45_;
+ HierarchicalKeywordField* _tmp46_;
+ NullKeywordTransformer* _tmp47_;
+ NullKeywordTransformer* _tmp48_;
+ HierarchicalKeywordField* _tmp49_;
+ NullKeywordTransformer* _tmp50_;
+ NullKeywordTransformer* _tmp51_;
+ HierarchicalKeywordField* _tmp52_;
+ HierarchicalKeywordField** _tmp53_;
+ gchar* _tmp54_;
+ gchar* _tmp55_;
+ gchar* _tmp56_;
+ gchar** _tmp57_;
+ gchar* _tmp58_;
+ gchar* _tmp59_;
+ gchar* _tmp60_;
+ gchar* _tmp61_;
+ gchar* _tmp62_;
+ gchar** _tmp63_;
#line 211 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
photo_metadata_parent_class = g_type_class_peek_parent (klass);
#line 211 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -9844,13 +9886,13 @@ static void photo_metadata_class_init (PhotoMetadataClass * klass) {
#line 211 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_type_class_add_private (klass, sizeof (PhotoMetadataPrivate));
#line 211 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- ((MediaMetadataClass *) klass)->read_from_file = (void (*)(MediaMetadata*, GFile*, GError**)) photo_metadata_real_read_from_file;
+ ((MediaMetadataClass *) klass)->read_from_file = (void (*) (MediaMetadata *, GFile*, GError**)) photo_metadata_real_read_from_file;
#line 211 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- ((MediaMetadataClass *) klass)->get_creation_date_time = (MetadataDateTime* (*)(MediaMetadata*)) photo_metadata_real_get_creation_date_time;
+ ((MediaMetadataClass *) klass)->get_creation_date_time = (MetadataDateTime* (*) (MediaMetadata *)) photo_metadata_real_get_creation_date_time;
#line 211 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- ((MediaMetadataClass *) klass)->get_title = (gchar* (*)(MediaMetadata*)) photo_metadata_real_get_title;
+ ((MediaMetadataClass *) klass)->get_title = (gchar* (*) (MediaMetadata *)) photo_metadata_real_get_title;
#line 211 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- ((MediaMetadataClass *) klass)->get_comment = (gchar* (*)(MediaMetadata*)) photo_metadata_real_get_comment;
+ ((MediaMetadataClass *) klass)->get_comment = (gchar* (*) (MediaMetadata *)) photo_metadata_real_get_comment;
#line 786 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp0_ = g_strdup ("Exif.Image.DateTime");
#line 786 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -10109,13 +10151,13 @@ static void photo_metadata_class_init (PhotoMetadataClass * klass) {
photo_metadata_RATING_TAGS = _tmp63_;
#line 1271 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
photo_metadata_RATING_TAGS_length1 = 5;
-#line 10108 "PhotoMetadata.c"
+#line 10150 "PhotoMetadata.c"
}
static void photo_metadata_instance_init (PhotoMetadata * self) {
- GExiv2Metadata* _tmp0_ = NULL;
- gchar* _tmp1_ = NULL;
+ GExiv2Metadata* _tmp0_;
+ gchar* _tmp1_;
#line 211 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
self->priv = PHOTO_METADATA_GET_PRIVATE (self);
#line 247 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -10128,11 +10170,11 @@ static void photo_metadata_instance_init (PhotoMetadata * self) {
_tmp1_ = g_strdup ("<uninitialized>");
#line 249 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
self->priv->source_name = _tmp1_;
-#line 10127 "PhotoMetadata.c"
+#line 10169 "PhotoMetadata.c"
}
-static void photo_metadata_finalize (MediaMetadata* obj) {
+static void photo_metadata_finalize (MediaMetadata * obj) {
PhotoMetadata * self;
#line 211 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PHOTO_METADATA, PhotoMetadata);
@@ -10144,7 +10186,7 @@ static void photo_metadata_finalize (MediaMetadata* obj) {
_g_free0 (self->priv->source_name);
#line 211 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
MEDIA_METADATA_CLASS (photo_metadata_parent_class)->finalize (obj);
-#line 10143 "PhotoMetadata.c"
+#line 10185 "PhotoMetadata.c"
}