summaryrefslogtreecommitdiff
path: root/src/photos/PhotoMetadata.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2018-06-25 20:57:00 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2018-06-25 20:57:00 +0200
commita9bafe967a7a664c43dec4aeb64a6f6e0f284e05 (patch)
tree653c43a63b70c47278367ad2a4e92640a6669b44 /src/photos/PhotoMetadata.c
parent55778740c211992cc86ea87588ab62c6750f36d1 (diff)
parentab841afa5cb39058d9ab2cebb67cfe6369443f6e (diff)
Update upstream source from tag 'upstream/0.28.3'
Update to upstream version '0.28.3' with Debian dir 828a38627ed9287d7cf2466fb15ebdea073742b7
Diffstat (limited to 'src/photos/PhotoMetadata.c')
-rw-r--r--src/photos/PhotoMetadata.c6772
1 files changed, 3423 insertions, 3349 deletions
diff --git a/src/photos/PhotoMetadata.c b/src/photos/PhotoMetadata.c
index 144f24a..a04ad12 100644
--- a/src/photos/PhotoMetadata.c
+++ b/src/photos/PhotoMetadata.c
@@ -1,4 +1,4 @@
-/* PhotoMetadata.c generated by valac 0.36.6, the Vala compiler
+/* PhotoMetadata.c generated by valac 0.40.4, the Vala compiler
* generated from PhotoMetadata.vala, do not modify */
/* Copyright 2016 Software Freedom Conservancy Inc.
@@ -23,6 +23,7 @@
/* http://www.exiv2.org/metadata.html*/
/**/
+
#include <glib.h>
#include <glib-object.h>
#include <stdlib.h>
@@ -484,99 +485,165 @@ static gpointer photo_metadata_internal_photo_preview_parent_class = NULL;
GType metadata_domain_get_type (void) G_GNUC_CONST;
gpointer keyword_transformer_ref (gpointer instance);
void keyword_transformer_unref (gpointer instance);
-GParamSpec* param_spec_keyword_transformer (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_keyword_transformer (GValue* value, gpointer v_object);
-void value_take_keyword_transformer (GValue* value, gpointer v_object);
+GParamSpec* param_spec_keyword_transformer (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_keyword_transformer (GValue* value,
+ gpointer v_object);
+void value_take_keyword_transformer (GValue* value,
+ gpointer v_object);
gpointer value_get_keyword_transformer (const GValue* value);
GType keyword_transformer_get_type (void) G_GNUC_CONST;
-enum {
- KEYWORD_TRANSFORMER_DUMMY_PROPERTY
-};
-GeeList* keyword_transformer_transform (KeywordTransformer* self, const gchar* input, GError** error);
-static GeeList* keyword_transformer_real_transform (KeywordTransformer* self, const gchar* input, GError** error);
+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);
GType null_keyword_transformer_get_type (void) G_GNUC_CONST;
-enum {
- NULL_KEYWORD_TRANSFORMER_DUMMY_PROPERTY
-};
-static GeeList* null_keyword_transformer_real_transform (KeywordTransformer* base, const gchar* input, GError** error);
+static GeeList* null_keyword_transformer_real_transform (KeywordTransformer* base,
+ const gchar* input,
+ GError** error);
NullKeywordTransformer* null_keyword_transformer_new (void);
NullKeywordTransformer* null_keyword_transformer_construct (GType object_type);
GType acd_see_keyword_transformer_get_type (void) G_GNUC_CONST;
#define ACD_SEE_KEYWORD_TRANSFORMER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_ACD_SEE_KEYWORD_TRANSFORMER, ACDSeeKeywordTransformerPrivate))
-enum {
- ACD_SEE_KEYWORD_TRANSFORMER_DUMMY_PROPERTY
-};
ACDSeeKeywordTransformer* acd_see_keyword_transformer_new (void);
ACDSeeKeywordTransformer* acd_see_keyword_transformer_construct (GType object_type);
-static void acd_see_keyword_transformer_on_start (ACDSeeKeywordTransformer* self, GMarkupParseContext* ctx, const gchar* name, gchar** attribute_names, gchar** attribute_values, GError** error);
-static void _acd_see_keyword_transformer_on_start_gmarkup_parser_start_element_func (GMarkupParseContext* context, const gchar* element_name, gchar** attribute_names, gchar** attribute_values, gpointer self, GError** error);
-static void acd_see_keyword_transformer_on_end (ACDSeeKeywordTransformer* self, GMarkupParseContext* ctx, const gchar* name, GError** error);
-static void _acd_see_keyword_transformer_on_end_gmarkup_parser_end_element_func (GMarkupParseContext* context, const gchar* element_name, gpointer self, GError** error);
-static void acd_see_keyword_transformer_on_text (ACDSeeKeywordTransformer* self, GMarkupParseContext* ctx, const gchar* text, GError** error);
-static void _acd_see_keyword_transformer_on_text_gmarkup_parser_text_func (GMarkupParseContext* context, const gchar* text, gsize text_len, gpointer self, GError** error);
-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_on_start (ACDSeeKeywordTransformer* self,
+ GMarkupParseContext* ctx,
+ const gchar* name,
+ gchar** attribute_names,
+ gchar** attribute_values,
+ GError** error);
+static void _acd_see_keyword_transformer_on_start_gmarkup_parser_start_element_func (GMarkupParseContext* context,
+ const gchar* element_name,
+ gchar** attribute_names,
+ gchar** attribute_values,
+ gpointer self,
+ GError** error);
+static void acd_see_keyword_transformer_on_end (ACDSeeKeywordTransformer* self,
+ GMarkupParseContext* ctx,
+ const gchar* name,
+ GError** error);
+static void _acd_see_keyword_transformer_on_end_gmarkup_parser_end_element_func (GMarkupParseContext* context,
+ const gchar* element_name,
+ gpointer self,
+ GError** error);
+static void acd_see_keyword_transformer_on_text (ACDSeeKeywordTransformer* self,
+ GMarkupParseContext* ctx,
+ const gchar* text,
+ GError** error);
+static void _acd_see_keyword_transformer_on_text_gmarkup_parser_text_func (GMarkupParseContext* context,
+ const gchar* text,
+ gsize text_len,
+ gpointer self,
+ GError** error);
+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);
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);
-void value_set_hierarchical_keyword_field (GValue* value, gpointer v_object);
-void value_take_hierarchical_keyword_field (GValue* value, gpointer v_object);
+GParamSpec* param_spec_hierarchical_keyword_field (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_hierarchical_keyword_field (GValue* value,
+ gpointer v_object);
+void value_take_hierarchical_keyword_field (GValue* value,
+ gpointer v_object);
gpointer value_get_hierarchical_keyword_field (const GValue* value);
GType hierarchical_keyword_field_get_type (void) G_GNUC_CONST;
-enum {
- HIERARCHICAL_KEYWORD_FIELD_DUMMY_PROPERTY
-};
-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);
+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);
gpointer photo_preview_ref (gpointer instance);
void photo_preview_unref (gpointer instance);
-GParamSpec* param_spec_photo_preview (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_photo_preview (GValue* value, gpointer v_object);
-void value_take_photo_preview (GValue* value, gpointer v_object);
+GParamSpec* param_spec_photo_preview (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_photo_preview (GValue* value,
+ gpointer v_object);
+void value_take_photo_preview (GValue* value,
+ gpointer v_object);
gpointer value_get_photo_preview (const GValue* value);
GType photo_preview_get_type (void) G_GNUC_CONST;
GType dimensions_get_type (void) G_GNUC_CONST;
Dimensions* dimensions_dup (const Dimensions* self);
void dimensions_free (Dimensions* self);
#define PHOTO_PREVIEW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_PHOTO_PREVIEW, PhotoPreviewPrivate))
-enum {
- PHOTO_PREVIEW_DUMMY_PROPERTY
-};
-PhotoPreview* photo_preview_construct (GType object_type, const gchar* name, Dimensions* dimensions, guint32 size, const gchar* mime_type, const gchar* extension);
+PhotoPreview* photo_preview_construct (GType object_type,
+ const gchar* name,
+ Dimensions* dimensions,
+ guint32 size,
+ const gchar* mime_type,
+ const gchar* extension);
gchar* photo_preview_get_name (PhotoPreview* self);
-void photo_preview_get_pixel_dimensions (PhotoPreview* self, Dimensions* result);
+void photo_preview_get_pixel_dimensions (PhotoPreview* self,
+ Dimensions* result);
guint32 photo_preview_get_size (PhotoPreview* self);
gchar* photo_preview_get_mime_type (PhotoPreview* self);
gchar* photo_preview_get_extension (PhotoPreview* self);
-GBytes* photo_preview_flatten (PhotoPreview* self, GError** error);
-static GBytes* photo_preview_real_flatten (PhotoPreview* self, GError** error);
-GdkPixbuf* photo_preview_get_pixbuf (PhotoPreview* self, GError** error);
-static GdkPixbuf* photo_preview_real_get_pixbuf (PhotoPreview* self, GError** error);
+GBytes* photo_preview_flatten (PhotoPreview* self,
+ GError** error);
+static GBytes* photo_preview_real_flatten (PhotoPreview* self,
+ GError** error);
+GdkPixbuf* photo_preview_get_pixbuf (PhotoPreview* self,
+ GError** error);
+static GdkPixbuf* photo_preview_real_get_pixbuf (PhotoPreview* self,
+ GError** error);
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);
-void value_set_media_metadata (GValue* value, gpointer v_object);
-void value_take_media_metadata (GValue* value, gpointer v_object);
+GParamSpec* param_spec_media_metadata (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_media_metadata (GValue* value,
+ gpointer v_object);
+void value_take_media_metadata (GValue* value,
+ gpointer v_object);
gpointer value_get_media_metadata (const GValue* value);
GType media_metadata_get_type (void) G_GNUC_CONST;
gpointer metadata_date_time_ref (gpointer instance);
void metadata_date_time_unref (gpointer instance);
-GParamSpec* param_spec_metadata_date_time (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_metadata_date_time (GValue* value, gpointer v_object);
-void value_take_metadata_date_time (GValue* value, gpointer v_object);
+GParamSpec* param_spec_metadata_date_time (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_metadata_date_time (GValue* value,
+ gpointer v_object);
+void value_take_metadata_date_time (GValue* value,
+ gpointer v_object);
gpointer value_get_metadata_date_time (const GValue* value);
GType metadata_date_time_get_type (void) G_GNUC_CONST;
GType photo_metadata_get_type (void) G_GNUC_CONST;
#define PHOTO_METADATA_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_PHOTO_METADATA, PhotoMetadataPrivate))
-enum {
- PHOTO_METADATA_DUMMY_PROPERTY
-};
GType photo_metadata_set_option_get_type (void) G_GNUC_CONST;
GType prepare_input_text_options_get_type (void) G_GNUC_CONST;
#define PHOTO_METADATA_PREPARE_STRING_OPTIONS (((((PREPARE_INPUT_TEXT_OPTIONS_INVALID_IS_NULL | PREPARE_INPUT_TEXT_OPTIONS_EMPTY_IS_NULL) | PREPARE_INPUT_TEXT_OPTIONS_STRIP) | PREPARE_INPUT_TEXT_OPTIONS_STRIP_CRLF) | PREPARE_INPUT_TEXT_OPTIONS_NORMALIZE) | PREPARE_INPUT_TEXT_OPTIONS_VALIDATE)
@@ -584,179 +651,352 @@ GType prepare_input_text_options_get_type (void) G_GNUC_CONST;
PhotoMetadata* photo_metadata_new (void);
PhotoMetadata* photo_metadata_construct (GType object_type);
MediaMetadata* media_metadata_construct (GType object_type);
-static void photo_metadata_real_read_from_file (MediaMetadata* base, GFile* file, GError** error);
-void photo_metadata_write_to_file (PhotoMetadata* self, GFile* file, GError** error);
-void photo_metadata_read_from_buffer (PhotoMetadata* self, guint8* buffer, int buffer_length1, gint length, GError** error);
-void photo_metadata_read_from_app1_segment (PhotoMetadata* self, GBytes* buffer, GError** error);
+static void photo_metadata_real_read_from_file (MediaMetadata* base,
+ GFile* file,
+ GError** error);
+void photo_metadata_write_to_file (PhotoMetadata* self,
+ GFile* file,
+ GError** error);
+void photo_metadata_read_from_buffer (PhotoMetadata* self,
+ guint8* buffer,
+ int buffer_length1,
+ gint length,
+ GError** error);
+void photo_metadata_read_from_app1_segment (PhotoMetadata* self,
+ GBytes* buffer,
+ GError** error);
MetadataDomain photo_metadata_get_tag_domain (const gchar* tag);
-gboolean photo_metadata_has_domain (PhotoMetadata* self, MetadataDomain domain);
+gboolean photo_metadata_has_domain (PhotoMetadata* self,
+ MetadataDomain domain);
gboolean photo_metadata_has_exif (PhotoMetadata* self);
gboolean photo_metadata_has_xmp (PhotoMetadata* self);
gboolean photo_metadata_has_iptc (PhotoMetadata* self);
-gboolean photo_metadata_can_write_to_domain (PhotoMetadata* self, MetadataDomain domain);
+gboolean photo_metadata_can_write_to_domain (PhotoMetadata* self,
+ MetadataDomain domain);
gboolean photo_metadata_can_write_exif (PhotoMetadata* self);
gboolean photo_metadata_can_write_xmp (PhotoMetadata* self);
gboolean photo_metadata_can_write_iptc (PhotoMetadata* self);
-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);
-GeeCollection* photo_metadata_get_tags (PhotoMetadata* self, MetadataDomain domain, GCompareDataFunc compare_func, void* compare_func_target, GDestroyNotify compare_func_target_destroy_notify);
-GeeCollection* photo_metadata_get_all_tags (PhotoMetadata* self, GCompareDataFunc compare_func, void* compare_func_target, GDestroyNotify compare_func_target_destroy_notify);
-gchar* photo_metadata_get_tag_label (PhotoMetadata* self, const gchar* tag);
-gchar* photo_metadata_get_tag_description (PhotoMetadata* self, const gchar* tag);
-gchar* photo_metadata_get_string (PhotoMetadata* self, const gchar* tag, PrepareInputTextOptions options);
-gchar* prepare_input_text (const gchar* text, PrepareInputTextOptions options, gint dest_length);
+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);
+GeeCollection* photo_metadata_get_tags (PhotoMetadata* self,
+ MetadataDomain domain,
+ GCompareDataFunc compare_func,
+ void* compare_func_target,
+ GDestroyNotify compare_func_target_destroy_notify);
+GeeCollection* photo_metadata_get_all_tags (PhotoMetadata* self,
+ GCompareDataFunc compare_func,
+ void* compare_func_target,
+ GDestroyNotify compare_func_target_destroy_notify);
+gchar* photo_metadata_get_tag_label (PhotoMetadata* self,
+ const gchar* tag);
+gchar* photo_metadata_get_tag_description (PhotoMetadata* self,
+ const gchar* tag);
+gchar* photo_metadata_get_string (PhotoMetadata* self,
+ const gchar* tag,
+ PrepareInputTextOptions options);
+gchar* prepare_input_text (const gchar* text,
+ PrepareInputTextOptions options,
+ gint dest_length);
#define DEFAULT_USER_TEXT_INPUT_LENGTH 1024
-gchar* photo_metadata_get_string_interpreted (PhotoMetadata* self, const gchar* tag, PrepareInputTextOptions options);
-gchar* photo_metadata_get_first_string (PhotoMetadata* self, gchar** tags, int tags_length1);
-gchar* photo_metadata_get_first_string_interpreted (PhotoMetadata* self, gchar** tags, int tags_length1);
-GeeList* photo_metadata_get_string_multiple (PhotoMetadata* self, const gchar* tag);
-GeeList* photo_metadata_get_first_string_multiple (PhotoMetadata* self, gchar** tags, int tags_length1);
-void photo_metadata_set_string (PhotoMetadata* self, const gchar* tag, const gchar* value, PrepareInputTextOptions options);
-static void photo_metadata_set_all_generic (PhotoMetadata* self, gchar** tags, int tags_length1, PhotoMetadataSetOption option, PhotoMetadataSetGenericValue setter, void* setter_target);
-void photo_metadata_set_all_string (PhotoMetadata* self, gchar** tags, int tags_length1, const gchar* value, PhotoMetadataSetOption option);
+gchar* photo_metadata_get_string_interpreted (PhotoMetadata* self,
+ const gchar* tag,
+ PrepareInputTextOptions options);
+gchar* photo_metadata_get_first_string (PhotoMetadata* self,
+ gchar** tags,
+ int tags_length1);
+gchar* photo_metadata_get_first_string_interpreted (PhotoMetadata* self,
+ gchar** tags,
+ int tags_length1);
+GeeList* photo_metadata_get_string_multiple (PhotoMetadata* self,
+ const gchar* tag);
+GeeList* photo_metadata_get_first_string_multiple (PhotoMetadata* self,
+ gchar** tags,
+ int tags_length1);
+void photo_metadata_set_string (PhotoMetadata* self,
+ const gchar* tag,
+ const gchar* value,
+ PrepareInputTextOptions options);
+static void photo_metadata_set_all_generic (PhotoMetadata* self,
+ gchar** tags,
+ int tags_length1,
+ PhotoMetadataSetOption option,
+ PhotoMetadataSetGenericValue setter,
+ void* setter_target);
+void photo_metadata_set_all_string (PhotoMetadata* self,
+ gchar** tags,
+ int tags_length1,
+ const gchar* value,
+ PhotoMetadataSetOption option);
static Block1Data* block1_data_ref (Block1Data* _data1_);
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_add48 (gchar** * array, int* length, int* size, gchar* value);
-static void _vala_array_add49 (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 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_add48 (gchar** * array,
+ int* length,
+ int* size,
+ gchar* value);
+static void _vala_array_add49 (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_);
-static void __lambda6_ (Block2Data* _data2_, const gchar* tag);
-static void ___lambda6__photo_metadata_set_generic_value (const gchar* tag, gpointer self);
-gboolean photo_metadata_get_long (PhotoMetadata* self, const gchar* tag, glong* value);
-gboolean photo_metadata_get_first_long (PhotoMetadata* self, gchar** tags, int tags_length1, glong* value);
-void photo_metadata_set_long (PhotoMetadata* self, const gchar* tag, glong value);
-void photo_metadata_set_all_long (PhotoMetadata* self, gchar** tags, int tags_length1, glong value, PhotoMetadataSetOption option);
+static void __lambda6_ (Block2Data* _data2_,
+ const gchar* tag);
+static void ___lambda6__photo_metadata_set_generic_value (const gchar* tag,
+ gpointer self);
+gboolean photo_metadata_get_long (PhotoMetadata* self,
+ const gchar* tag,
+ glong* value);
+gboolean photo_metadata_get_first_long (PhotoMetadata* self,
+ gchar** tags,
+ int tags_length1,
+ glong* value);
+void photo_metadata_set_long (PhotoMetadata* self,
+ const gchar* tag,
+ glong value);
+void photo_metadata_set_all_long (PhotoMetadata* self,
+ gchar** tags,
+ int tags_length1,
+ glong value,
+ PhotoMetadataSetOption option);
static Block3Data* block3_data_ref (Block3Data* _data3_);
static void block3_data_unref (void * _userdata_);
-static void __lambda7_ (Block3Data* _data3_, const gchar* tag);
-static void ___lambda7__photo_metadata_set_generic_value (const gchar* tag, gpointer self);
+static void __lambda7_ (Block3Data* _data3_,
+ const gchar* tag);
+static void ___lambda7__photo_metadata_set_generic_value (const gchar* tag,
+ gpointer self);
GType metadata_rational_get_type (void) G_GNUC_CONST;
MetadataRational* metadata_rational_dup (const MetadataRational* self);
void metadata_rational_free (MetadataRational* self);
-gboolean photo_metadata_get_rational (PhotoMetadata* self, const gchar* tag, MetadataRational* rational);
-void metadata_rational_init (MetadataRational *self, gint numerator, gint denominator);
-gboolean photo_metadata_get_first_rational (PhotoMetadata* self, gchar** tags, int tags_length1, MetadataRational* rational);
-void photo_metadata_set_rational (PhotoMetadata* self, const gchar* tag, MetadataRational* rational);
+gboolean photo_metadata_get_rational (PhotoMetadata* self,
+ const gchar* tag,
+ MetadataRational* rational);
+void metadata_rational_init (MetadataRational *self,
+ gint numerator,
+ gint denominator);
+gboolean photo_metadata_get_first_rational (PhotoMetadata* self,
+ gchar** tags,
+ int tags_length1,
+ MetadataRational* rational);
+void photo_metadata_set_rational (PhotoMetadata* self,
+ const gchar* tag,
+ MetadataRational* rational);
gchar* metadata_rational_to_string (MetadataRational *self);
-void photo_metadata_set_all_rational (PhotoMetadata* self, gchar** tags, int tags_length1, MetadataRational* rational, PhotoMetadataSetOption option);
+void photo_metadata_set_all_rational (PhotoMetadata* self,
+ gchar** tags,
+ int tags_length1,
+ MetadataRational* rational,
+ PhotoMetadataSetOption option);
static Block4Data* block4_data_ref (Block4Data* _data4_);
static void block4_data_unref (void * _userdata_);
-static void __lambda8_ (Block4Data* _data4_, const gchar* tag);
-static void ___lambda8__photo_metadata_set_generic_value (const gchar* tag, gpointer self);
-MetadataDateTime* photo_metadata_get_date_time (PhotoMetadata* self, const gchar* tag);
+static void __lambda8_ (Block4Data* _data4_,
+ const gchar* tag);
+static void ___lambda8__photo_metadata_set_generic_value (const gchar* tag,
+ gpointer self);
+MetadataDateTime* photo_metadata_get_date_time (PhotoMetadata* self,
+ const gchar* tag);
GQuark metadata_date_time_error_quark (void);
-MetadataDateTime* metadata_date_time_new_from_xmp (const gchar* label, GError** error);
-MetadataDateTime* metadata_date_time_construct_from_xmp (GType object_type, const gchar* label, GError** error);
-MetadataDateTime* metadata_date_time_new_from_exif (const gchar* label, GError** error);
-MetadataDateTime* metadata_date_time_construct_from_exif (GType object_type, const gchar* label, GError** error);
-MetadataDateTime* photo_metadata_get_first_date_time (PhotoMetadata* self, gchar** tags, int tags_length1);
-void photo_metadata_set_date_time (PhotoMetadata* self, const gchar* tag, MetadataDateTime* date_time);
+MetadataDateTime* metadata_date_time_new_from_xmp (const gchar* label,
+ GError** error);
+MetadataDateTime* metadata_date_time_construct_from_xmp (GType object_type,
+ const gchar* label,
+ GError** error);
+MetadataDateTime* metadata_date_time_new_from_exif (const gchar* label,
+ GError** error);
+MetadataDateTime* metadata_date_time_construct_from_exif (GType object_type,
+ const gchar* label,
+ GError** error);
+MetadataDateTime* photo_metadata_get_first_date_time (PhotoMetadata* self,
+ gchar** tags,
+ int tags_length1);
+void photo_metadata_set_date_time (PhotoMetadata* self,
+ const gchar* tag,
+ MetadataDateTime* date_time);
gchar* metadata_date_time_get_exif_label (MetadataDateTime* self);
gchar* metadata_date_time_get_xmp_label (MetadataDateTime* self);
const gchar* metadata_domain_to_string (MetadataDomain self);
-void photo_metadata_set_all_date_time (PhotoMetadata* self, gchar** tags, int tags_length1, MetadataDateTime* date_time, PhotoMetadataSetOption option);
+void photo_metadata_set_all_date_time (PhotoMetadata* self,
+ gchar** tags,
+ int tags_length1,
+ MetadataDateTime* date_time,
+ PhotoMetadataSetOption option);
static Block5Data* block5_data_ref (Block5Data* _data5_);
static void block5_data_unref (void * _userdata_);
-static void __lambda9_ (Block5Data* _data5_, const gchar* tag);
-static void ___lambda9__photo_metadata_set_generic_value (const gchar* tag, gpointer self);
+static void __lambda9_ (Block5Data* _data5_,
+ const gchar* tag);
+static void ___lambda9__photo_metadata_set_generic_value (const gchar* tag,
+ gpointer self);
gchar* photo_metadata_exif_hash (PhotoMetadata* self);
gchar* photo_metadata_thumbnail_hash (PhotoMetadata* self);
guint photo_metadata_get_preview_count (PhotoMetadata* self);
-PhotoPreview* photo_metadata_get_preview (PhotoMetadata* self, guint number);
-static PhotoMetadataInternalPhotoPreview* photo_metadata_internal_photo_preview_new (PhotoMetadata* owner, const gchar* name, guint number, GExiv2PreviewProperties* props);
-static PhotoMetadataInternalPhotoPreview* photo_metadata_internal_photo_preview_construct (GType object_type, PhotoMetadata* owner, const gchar* name, guint number, GExiv2PreviewProperties* props);
+PhotoPreview* photo_metadata_get_preview (PhotoMetadata* self,
+ guint number);
+static PhotoMetadataInternalPhotoPreview* photo_metadata_internal_photo_preview_new (PhotoMetadata* owner,
+ const gchar* name,
+ guint number,
+ GExiv2PreviewProperties* props);
+static PhotoMetadataInternalPhotoPreview* photo_metadata_internal_photo_preview_construct (GType object_type,
+ PhotoMetadata* owner,
+ const gchar* name,
+ guint number,
+ GExiv2PreviewProperties* props);
static GType photo_metadata_internal_photo_preview_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
void photo_metadata_remove_exif_thumbnail (PhotoMetadata* self);
-void photo_metadata_remove_tag (PhotoMetadata* self, const gchar* tag);
-void photo_metadata_remove_tags (PhotoMetadata* self, gchar** tags, int tags_length1);
-void photo_metadata_clear_domain (PhotoMetadata* self, MetadataDomain domain);
+void photo_metadata_remove_tag (PhotoMetadata* self,
+ const gchar* tag);
+void photo_metadata_remove_tags (PhotoMetadata* self,
+ gchar** tags,
+ int tags_length1);
+void photo_metadata_clear_domain (PhotoMetadata* self,
+ MetadataDomain domain);
void photo_metadata_clear (PhotoMetadata* self);
MetadataDateTime* photo_metadata_get_modification_date_time (PhotoMetadata* self);
-void photo_metadata_set_modification_date_time (PhotoMetadata* self, MetadataDateTime* date_time, PhotoMetadataSetOption option);
+void photo_metadata_set_modification_date_time (PhotoMetadata* self,
+ MetadataDateTime* date_time,
+ PhotoMetadataSetOption option);
MetadataDateTime* photo_metadata_get_exposure_date_time (PhotoMetadata* self);
-void photo_metadata_set_exposure_date_time (PhotoMetadata* self, MetadataDateTime* date_time, PhotoMetadataSetOption option);
+void photo_metadata_set_exposure_date_time (PhotoMetadata* self,
+ MetadataDateTime* date_time,
+ PhotoMetadataSetOption option);
MetadataDateTime* photo_metadata_get_digitized_date_time (PhotoMetadata* self);
-void photo_metadata_set_digitized_date_time (PhotoMetadata* self, MetadataDateTime* date_time, PhotoMetadataSetOption option);
+void photo_metadata_set_digitized_date_time (PhotoMetadata* self,
+ MetadataDateTime* date_time,
+ PhotoMetadataSetOption option);
static MetadataDateTime* photo_metadata_real_get_creation_date_time (MediaMetadata* base);
Dimensions* photo_metadata_get_pixel_dimensions (PhotoMetadata* self);
-void dimensions_init (Dimensions *self, gint width, gint height);
-void photo_metadata_set_pixel_dimensions (PhotoMetadata* self, Dimensions* dim, PhotoMetadataSetOption option);
+void dimensions_init (Dimensions *self,
+ gint width,
+ gint height);
+void photo_metadata_set_pixel_dimensions (PhotoMetadata* self,
+ Dimensions* dim,
+ PhotoMetadataSetOption option);
static gchar* photo_metadata_real_get_title (MediaMetadata* base);
gboolean is_string_empty (const gchar* s);
-void photo_metadata_set_title (PhotoMetadata* self, const gchar* title, PhotoMetadataSetOption option);
+void photo_metadata_set_title (PhotoMetadata* self,
+ const gchar* title,
+ PhotoMetadataSetOption option);
static gchar* photo_metadata_real_get_comment (MediaMetadata* base);
-void photo_metadata_set_comment (PhotoMetadata* self, const gchar* comment, PhotoMetadataSetOption option);
+void photo_metadata_set_comment (PhotoMetadata* self,
+ const gchar* comment,
+ PhotoMetadataSetOption option);
static Block6Data* block6_data_ref (Block6Data* _data6_);
static void block6_data_unref (void * _userdata_);
-static void ___lambda10_ (Block6Data* _data6_, const gchar* tag);
-static void ____lambda10__photo_metadata_set_generic_value (const gchar* tag, gpointer self);
-GeeSet* photo_metadata_get_keywords (PhotoMetadata* self, GCompareDataFunc compare_func, void* compare_func_target, GDestroyNotify compare_func_target_destroy_notify);
+static void ___lambda10_ (Block6Data* _data6_,
+ const gchar* tag);
+static void ____lambda10__photo_metadata_set_generic_value (const gchar* tag,
+ gpointer self);
+GeeSet* photo_metadata_get_keywords (PhotoMetadata* self,
+ GCompareDataFunc compare_func,
+ void* compare_func_target,
+ GDestroyNotify compare_func_target_destroy_notify);
gchar* hierarchical_tag_utilities_make_flat_tag_safe (const gchar* in_tag);
gpointer hierarchical_tag_index_ref (gpointer instance);
void hierarchical_tag_index_unref (gpointer instance);
-GParamSpec* param_spec_hierarchical_tag_index (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_hierarchical_tag_index (GValue* value, gpointer v_object);
-void value_take_hierarchical_tag_index (GValue* value, gpointer v_object);
+GParamSpec* param_spec_hierarchical_tag_index (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_hierarchical_tag_index (GValue* value,
+ gpointer v_object);
+void value_take_hierarchical_tag_index (GValue* value,
+ gpointer v_object);
gpointer value_get_hierarchical_tag_index (const GValue* value);
GType hierarchical_tag_index_get_type (void) G_GNUC_CONST;
-static void photo_metadata_internal_set_hierarchical_keywords (PhotoMetadata* self, HierarchicalTagIndex* index);
+static void photo_metadata_internal_set_hierarchical_keywords (PhotoMetadata* self,
+ HierarchicalTagIndex* index);
GeeCollection* hierarchical_tag_index_get_all_paths (HierarchicalTagIndex* self);
#define TAG_PATH_SEPARATOR_STRING "/"
-void photo_metadata_set_keywords (PhotoMetadata* self, GeeCollection* keywords, PhotoMetadataSetOption option);
+void photo_metadata_set_keywords (PhotoMetadata* self,
+ GeeCollection* keywords,
+ PhotoMetadataSetOption option);
HierarchicalTagIndex* hierarchical_tag_index_new (void);
HierarchicalTagIndex* hierarchical_tag_index_construct (GType object_type);
GeeList* hierarchical_tag_utilities_enumerate_path_components (const gchar* in_path);
-void hierarchical_tag_index_add_path (HierarchicalTagIndex* self, const gchar* tag, const gchar* path);
+void hierarchical_tag_index_add_path (HierarchicalTagIndex* self,
+ const gchar* tag,
+ const gchar* path);
GeeCollection* hierarchical_tag_index_get_all_tags (HierarchicalTagIndex* self);
gboolean photo_metadata_has_hierarchical_keywords (PhotoMetadata* self);
GeeSet* photo_metadata_get_hierarchical_keywords (PhotoMetadata* self);
-gchar* hierarchical_tag_utilities_canonicalize (const gchar* in_tag, const gchar* foreign_separator);
+gchar* hierarchical_tag_utilities_canonicalize (const gchar* in_tag,
+ const gchar* foreign_separator);
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_exposure (PhotoMetadata* self, MetadataRational* exposure);
+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_exposure (PhotoMetadata* self,
+ MetadataRational* exposure);
gchar* photo_metadata_get_exposure_string (PhotoMetadata* self);
gboolean metadata_rational_is_valid (MetadataRational *self);
-gboolean photo_metadata_get_iso (PhotoMetadata* self, glong* iso);
+gboolean photo_metadata_get_iso (PhotoMetadata* self,
+ glong* iso);
gchar* photo_metadata_get_iso_string (PhotoMetadata* self);
-gboolean photo_metadata_get_aperture (PhotoMetadata* self, MetadataRational* aperture);
-gchar* photo_metadata_get_aperture_string (PhotoMetadata* self, gboolean pango_formatted);
+gboolean photo_metadata_get_aperture (PhotoMetadata* self,
+ MetadataRational* aperture);
+gchar* photo_metadata_get_aperture_string (PhotoMetadata* self,
+ gboolean pango_formatted);
gchar* photo_metadata_get_camera_make (PhotoMetadata* self);
gchar* photo_metadata_get_camera_model (PhotoMetadata* self);
-gboolean photo_metadata_get_flash (PhotoMetadata* self, glong* flash);
+gboolean photo_metadata_get_flash (PhotoMetadata* self,
+ glong* flash);
gchar* photo_metadata_get_flash_string (PhotoMetadata* self);
-gboolean photo_metadata_get_focal_length (PhotoMetadata* self, MetadataRational* focal_length);
+gboolean photo_metadata_get_focal_length (PhotoMetadata* self,
+ MetadataRational* focal_length);
gchar* photo_metadata_get_focal_length_string (PhotoMetadata* self);
gchar* photo_metadata_get_artist (PhotoMetadata* self);
gchar* photo_metadata_get_copyright (PhotoMetadata* self);
gchar* photo_metadata_get_software (PhotoMetadata* self);
-void photo_metadata_set_software (PhotoMetadata* self, const gchar* software, const gchar* version);
+void photo_metadata_set_software (PhotoMetadata* self,
+ const gchar* software,
+ const gchar* version);
void photo_metadata_remove_software (PhotoMetadata* self);
gchar* photo_metadata_get_exposure_bias (PhotoMetadata* self);
GType rating_get_type (void) G_GNUC_CONST;
Rating photo_metadata_get_rating (PhotoMetadata* self);
Rating rating_unserialize (gint value);
-void photo_metadata_set_rating (PhotoMetadata* self, Rating rating);
+void photo_metadata_set_rating (PhotoMetadata* self,
+ Rating rating);
gint rating_serialize (Rating self);
-enum {
- PHOTO_METADATA_INTERNAL_PHOTO_PREVIEW_DUMMY_PROPERTY
-};
-static GBytes* photo_metadata_internal_photo_preview_real_flatten (PhotoPreview* base, GError** error);
+static GBytes* photo_metadata_internal_photo_preview_real_flatten (PhotoPreview* base,
+ GError** error);
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 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);
extern const gint RESOURCES_rating_thresholds[6];
-GType metadata_domain_get_type (void) {
+GType
+metadata_domain_get_type (void)
+{
static volatile gsize metadata_domain_type_id__volatile = 0;
if (g_once_init_enter (&metadata_domain_type_id__volatile)) {
static const GEnumValue values[] = {{METADATA_DOMAIN_UNKNOWN, "METADATA_DOMAIN_UNKNOWN", "unknown"}, {METADATA_DOMAIN_EXIF, "METADATA_DOMAIN_EXIF", "exif"}, {METADATA_DOMAIN_XMP, "METADATA_DOMAIN_XMP", "xmp"}, {METADATA_DOMAIN_IPTC, "METADATA_DOMAIN_IPTC", "iptc"}, {0, NULL, NULL}};
@@ -768,132 +1008,167 @@ GType metadata_domain_get_type (void) {
}
-static GeeList* keyword_transformer_real_transform (KeywordTransformer* self, const gchar* input, GError** error) {
+static GeeList*
+keyword_transformer_real_transform (KeywordTransformer* self,
+ const gchar* input,
+ GError** error)
+{
#line 32 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_critical ("Type `%s' does not implement abstract method `keyword_transformer_transform'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
#line 32 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return NULL;
-#line 777 "PhotoMetadata.c"
+#line 1021 "PhotoMetadata.c"
}
-GeeList* keyword_transformer_transform (KeywordTransformer* self, const gchar* input, GError** error) {
+GeeList*
+keyword_transformer_transform (KeywordTransformer* self,
+ const gchar* input,
+ GError** error)
+{
#line 32 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_KEYWORD_TRANSFORMER (self), NULL);
#line 32 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return KEYWORD_TRANSFORMER_GET_CLASS (self)->transform (self, input, error);
-#line 786 "PhotoMetadata.c"
+#line 1034 "PhotoMetadata.c"
}
-KeywordTransformer* keyword_transformer_construct (GType object_type) {
+KeywordTransformer*
+keyword_transformer_construct (GType object_type)
+{
KeywordTransformer* self = NULL;
#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
self = (KeywordTransformer*) g_type_create_instance (object_type);
#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return self;
-#line 796 "PhotoMetadata.c"
+#line 1046 "PhotoMetadata.c"
}
-static void value_keyword_transformer_init (GValue* value) {
+static void
+value_keyword_transformer_init (GValue* value)
+{
#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
value->data[0].v_pointer = NULL;
-#line 803 "PhotoMetadata.c"
+#line 1055 "PhotoMetadata.c"
}
-static void value_keyword_transformer_free_value (GValue* value) {
+static void
+value_keyword_transformer_free_value (GValue* value)
+{
#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (value->data[0].v_pointer) {
#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
keyword_transformer_unref (value->data[0].v_pointer);
-#line 812 "PhotoMetadata.c"
+#line 1066 "PhotoMetadata.c"
}
}
-static void value_keyword_transformer_copy_value (const GValue* src_value, GValue* dest_value) {
+static void
+value_keyword_transformer_copy_value (const GValue* src_value,
+ GValue* dest_value)
+{
#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (src_value->data[0].v_pointer) {
#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
dest_value->data[0].v_pointer = keyword_transformer_ref (src_value->data[0].v_pointer);
-#line 822 "PhotoMetadata.c"
+#line 1079 "PhotoMetadata.c"
} else {
#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
dest_value->data[0].v_pointer = NULL;
-#line 826 "PhotoMetadata.c"
+#line 1083 "PhotoMetadata.c"
}
}
-static gpointer value_keyword_transformer_peek_pointer (const GValue* value) {
+static gpointer
+value_keyword_transformer_peek_pointer (const GValue* value)
+{
#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return value->data[0].v_pointer;
-#line 834 "PhotoMetadata.c"
+#line 1093 "PhotoMetadata.c"
}
-static gchar* value_keyword_transformer_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+static gchar*
+value_keyword_transformer_collect_value (GValue* value,
+ guint n_collect_values,
+ GTypeCValue* collect_values,
+ guint collect_flags)
+{
#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (collect_values[0].v_pointer) {
-#line 841 "PhotoMetadata.c"
+#line 1105 "PhotoMetadata.c"
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) {
#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 848 "PhotoMetadata.c"
+#line 1112 "PhotoMetadata.c"
} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 852 "PhotoMetadata.c"
+#line 1116 "PhotoMetadata.c"
}
#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
value->data[0].v_pointer = keyword_transformer_ref (object);
-#line 856 "PhotoMetadata.c"
+#line 1120 "PhotoMetadata.c"
} else {
#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
value->data[0].v_pointer = NULL;
-#line 860 "PhotoMetadata.c"
+#line 1124 "PhotoMetadata.c"
}
#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return NULL;
-#line 864 "PhotoMetadata.c"
+#line 1128 "PhotoMetadata.c"
}
-static gchar* value_keyword_transformer_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+static gchar*
+value_keyword_transformer_lcopy_value (const GValue* value,
+ guint n_collect_values,
+ GTypeCValue* collect_values,
+ guint collect_flags)
+{
KeywordTransformer ** object_p;
object_p = collect_values[0].v_pointer;
#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (!object_p) {
#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 875 "PhotoMetadata.c"
+#line 1144 "PhotoMetadata.c"
}
#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (!value->data[0].v_pointer) {
#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
*object_p = NULL;
-#line 881 "PhotoMetadata.c"
+#line 1150 "PhotoMetadata.c"
} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
*object_p = value->data[0].v_pointer;
-#line 885 "PhotoMetadata.c"
+#line 1154 "PhotoMetadata.c"
} else {
#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
*object_p = keyword_transformer_ref (value->data[0].v_pointer);
-#line 889 "PhotoMetadata.c"
+#line 1158 "PhotoMetadata.c"
}
#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return NULL;
-#line 893 "PhotoMetadata.c"
+#line 1162 "PhotoMetadata.c"
}
-GParamSpec* param_spec_keyword_transformer (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+GParamSpec*
+param_spec_keyword_transformer (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags)
+{
ParamSpecKeywordTransformer* spec;
#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (g_type_is_a (object_type, TYPE_KEYWORD_TRANSFORMER), NULL);
@@ -903,20 +1178,25 @@ GParamSpec* param_spec_keyword_transformer (const gchar* name, const gchar* nick
G_PARAM_SPEC (spec)->value_type = object_type;
#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return G_PARAM_SPEC (spec);
-#line 907 "PhotoMetadata.c"
+#line 1182 "PhotoMetadata.c"
}
-gpointer value_get_keyword_transformer (const GValue* value) {
+gpointer
+value_get_keyword_transformer (const GValue* value)
+{
#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_KEYWORD_TRANSFORMER), NULL);
#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return value->data[0].v_pointer;
-#line 916 "PhotoMetadata.c"
+#line 1193 "PhotoMetadata.c"
}
-void value_set_keyword_transformer (GValue* value, gpointer v_object) {
+void
+value_set_keyword_transformer (GValue* value,
+ gpointer v_object)
+{
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));
@@ -932,22 +1212,25 @@ void value_set_keyword_transformer (GValue* value, gpointer v_object) {
value->data[0].v_pointer = v_object;
#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
keyword_transformer_ref (value->data[0].v_pointer);
-#line 936 "PhotoMetadata.c"
+#line 1216 "PhotoMetadata.c"
} else {
#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
value->data[0].v_pointer = NULL;
-#line 940 "PhotoMetadata.c"
+#line 1220 "PhotoMetadata.c"
}
#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (old) {
#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
keyword_transformer_unref (old);
-#line 946 "PhotoMetadata.c"
+#line 1226 "PhotoMetadata.c"
}
}
-void value_take_keyword_transformer (GValue* value, gpointer v_object) {
+void
+value_take_keyword_transformer (GValue* value,
+ gpointer v_object)
+{
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));
@@ -961,50 +1244,58 @@ void value_take_keyword_transformer (GValue* value, gpointer v_object) {
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
value->data[0].v_pointer = v_object;
-#line 965 "PhotoMetadata.c"
+#line 1248 "PhotoMetadata.c"
} else {
#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
value->data[0].v_pointer = NULL;
-#line 969 "PhotoMetadata.c"
+#line 1252 "PhotoMetadata.c"
}
#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (old) {
#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
keyword_transformer_unref (old);
-#line 975 "PhotoMetadata.c"
+#line 1258 "PhotoMetadata.c"
}
}
-static void keyword_transformer_class_init (KeywordTransformerClass * klass) {
+static void
+keyword_transformer_class_init (KeywordTransformerClass * klass)
+{
#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
keyword_transformer_parent_class = g_type_class_peek_parent (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;
-#line 987 "PhotoMetadata.c"
+#line 1272 "PhotoMetadata.c"
}
-static void keyword_transformer_instance_init (KeywordTransformer * self) {
+static void
+keyword_transformer_instance_init (KeywordTransformer * self)
+{
#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
self->ref_count = 1;
-#line 994 "PhotoMetadata.c"
+#line 1281 "PhotoMetadata.c"
}
-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);
#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_signal_handlers_destroy (self);
-#line 1004 "PhotoMetadata.c"
+#line 1293 "PhotoMetadata.c"
}
-GType keyword_transformer_get_type (void) {
+GType
+keyword_transformer_get_type (void)
+{
static volatile gsize keyword_transformer_type_id__volatile = 0;
if (g_once_init_enter (&keyword_transformer_type_id__volatile)) {
static const GTypeValueTable g_define_type_value_table = { value_keyword_transformer_init, value_keyword_transformer_free_value, value_keyword_transformer_copy_value, value_keyword_transformer_peek_pointer, "p", value_keyword_transformer_collect_value, "p", value_keyword_transformer_lcopy_value };
@@ -1018,18 +1309,22 @@ GType keyword_transformer_get_type (void) {
}
-gpointer keyword_transformer_ref (gpointer instance) {
+gpointer
+keyword_transformer_ref (gpointer instance)
+{
KeywordTransformer * self;
self = instance;
#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_atomic_int_inc (&self->ref_count);
#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return instance;
-#line 1029 "PhotoMetadata.c"
+#line 1322 "PhotoMetadata.c"
}
-void keyword_transformer_unref (gpointer instance) {
+void
+keyword_transformer_unref (gpointer instance)
+{
KeywordTransformer * self;
self = instance;
#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -1038,17 +1333,20 @@ void keyword_transformer_unref (gpointer instance) {
KEYWORD_TRANSFORMER_GET_CLASS (self)->finalize (self);
#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_type_free_instance ((GTypeInstance *) self);
-#line 1042 "PhotoMetadata.c"
+#line 1337 "PhotoMetadata.c"
}
}
-static GeeList* null_keyword_transformer_real_transform (KeywordTransformer* base, const gchar* input, GError** error) {
+static GeeList*
+null_keyword_transformer_real_transform (KeywordTransformer* base,
+ const gchar* input,
+ GError** error)
+{
NullKeywordTransformer * self;
GeeList* result = NULL;
GeeArrayList* _result_ = 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"
@@ -1058,48 +1356,56 @@ static GeeList* null_keyword_transformer_real_transform (KeywordTransformer* bas
#line 37 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_result_ = _tmp0_;
#line 38 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = input;
-#line 38 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_result_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp1_);
+ gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_result_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), input);
#line 40 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
result = G_TYPE_CHECK_INSTANCE_CAST (_result_, GEE_TYPE_LIST, GeeList);
#line 40 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 1069 "PhotoMetadata.c"
+#line 1365 "PhotoMetadata.c"
}
-NullKeywordTransformer* null_keyword_transformer_construct (GType object_type) {
+NullKeywordTransformer*
+null_keyword_transformer_construct (GType object_type)
+{
NullKeywordTransformer* self = NULL;
#line 35 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
self = (NullKeywordTransformer*) keyword_transformer_construct (object_type);
#line 35 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return self;
-#line 1079 "PhotoMetadata.c"
+#line 1377 "PhotoMetadata.c"
}
-NullKeywordTransformer* null_keyword_transformer_new (void) {
+NullKeywordTransformer*
+null_keyword_transformer_new (void)
+{
#line 35 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return null_keyword_transformer_construct (TYPE_NULL_KEYWORD_TRANSFORMER);
-#line 1086 "PhotoMetadata.c"
+#line 1386 "PhotoMetadata.c"
}
-static void null_keyword_transformer_class_init (NullKeywordTransformerClass * klass) {
+static void
+null_keyword_transformer_class_init (NullKeywordTransformerClass * klass)
+{
#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;
-#line 1095 "PhotoMetadata.c"
+#line 1397 "PhotoMetadata.c"
}
-static void null_keyword_transformer_instance_init (NullKeywordTransformer * self) {
+static void
+null_keyword_transformer_instance_init (NullKeywordTransformer * self)
+{
}
-GType null_keyword_transformer_get_type (void) {
+GType
+null_keyword_transformer_get_type (void)
+{
static volatile gsize null_keyword_transformer_type_id__volatile = 0;
if (g_once_init_enter (&null_keyword_transformer_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (NullKeywordTransformerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) null_keyword_transformer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (NullKeywordTransformer), 0, (GInstanceInitFunc) null_keyword_transformer_instance_init, NULL };
@@ -1111,35 +1417,59 @@ GType null_keyword_transformer_get_type (void) {
}
-static void _acd_see_keyword_transformer_on_start_gmarkup_parser_start_element_func (GMarkupParseContext* context, const gchar* element_name, gchar** attribute_names, gchar** attribute_values, gpointer self, GError** error) {
+static void
+_acd_see_keyword_transformer_on_start_gmarkup_parser_start_element_func (GMarkupParseContext* context,
+ const gchar* element_name,
+ gchar** attribute_names,
+ gchar** attribute_values,
+ gpointer self,
+ GError** error)
+{
#line 64 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
acd_see_keyword_transformer_on_start ((ACDSeeKeywordTransformer*) self, context, element_name, attribute_names, attribute_values, error);
-#line 1118 "PhotoMetadata.c"
+#line 1431 "PhotoMetadata.c"
}
-static void _acd_see_keyword_transformer_on_end_gmarkup_parser_end_element_func (GMarkupParseContext* context, const gchar* element_name, gpointer self, GError** error) {
+static void
+_acd_see_keyword_transformer_on_end_gmarkup_parser_end_element_func (GMarkupParseContext* context,
+ const gchar* element_name,
+ gpointer self,
+ GError** error)
+{
#line 65 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
acd_see_keyword_transformer_on_end ((ACDSeeKeywordTransformer*) self, context, element_name, error);
-#line 1125 "PhotoMetadata.c"
+#line 1443 "PhotoMetadata.c"
}
-static void _acd_see_keyword_transformer_on_text_gmarkup_parser_text_func (GMarkupParseContext* context, const gchar* text, gsize text_len, gpointer self, GError** error) {
+static void
+_acd_see_keyword_transformer_on_text_gmarkup_parser_text_func (GMarkupParseContext* context,
+ const gchar* text,
+ gsize text_len,
+ gpointer self,
+ GError** error)
+{
#line 66 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
acd_see_keyword_transformer_on_text ((ACDSeeKeywordTransformer*) self, context, text, error);
-#line 1132 "PhotoMetadata.c"
+#line 1456 "PhotoMetadata.c"
}
-static void _acd_see_keyword_transformer_on_error_gmarkup_parser_error_func (GMarkupParseContext* context, GError* _error_, gpointer self) {
+static void
+_acd_see_keyword_transformer_on_error_gmarkup_parser_error_func (GMarkupParseContext* context,
+ GError* _error_,
+ gpointer self)
+{
#line 67 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
acd_see_keyword_transformer_on_error ((ACDSeeKeywordTransformer*) self, context, _error_);
-#line 1139 "PhotoMetadata.c"
+#line 1467 "PhotoMetadata.c"
}
-ACDSeeKeywordTransformer* acd_see_keyword_transformer_construct (GType object_type) {
+ACDSeeKeywordTransformer*
+acd_see_keyword_transformer_construct (GType object_type)
+{
ACDSeeKeywordTransformer* self = NULL;
GeeArrayList* _tmp0_;
GeeArrayQueue* _tmp1_;
@@ -1169,36 +1499,42 @@ ACDSeeKeywordTransformer* acd_see_keyword_transformer_construct (GType object_ty
self->priv->stack = _tmp1_;
#line 62 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return self;
-#line 1173 "PhotoMetadata.c"
+#line 1503 "PhotoMetadata.c"
}
-ACDSeeKeywordTransformer* acd_see_keyword_transformer_new (void) {
+ACDSeeKeywordTransformer*
+acd_see_keyword_transformer_new (void)
+{
#line 62 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return acd_see_keyword_transformer_construct (TYPE_ACD_SEE_KEYWORD_TRANSFORMER);
-#line 1180 "PhotoMetadata.c"
+#line 1512 "PhotoMetadata.c"
}
-static gpointer _g_object_ref0 (gpointer self) {
+static gpointer
+_g_object_ref0 (gpointer self)
+{
#line 77 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return self ? g_object_ref (self) : NULL;
-#line 1187 "PhotoMetadata.c"
+#line 1521 "PhotoMetadata.c"
}
-static GeeList* acd_see_keyword_transformer_real_transform (KeywordTransformer* base, const gchar* input, GError** error) {
+static GeeList*
+acd_see_keyword_transformer_real_transform (KeywordTransformer* base,
+ const gchar* input,
+ GError** error)
+{
ACDSeeKeywordTransformer * self;
GeeList* result = NULL;
GMarkupParseContext* ctx = NULL;
GMarkupParser _tmp0_;
GMarkupParseContext* _tmp1_;
- const gchar* _tmp2_;
- const gchar* _tmp3_;
- gint _tmp4_;
- gint _tmp5_;
- GeeArrayList* _tmp6_;
- GeeList* _tmp7_;
+ gint _tmp2_;
+ gint _tmp3_;
+ GeeArrayList* _tmp4_;
+ GeeList* _tmp5_;
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);
@@ -1211,15 +1547,11 @@ static GeeList* acd_see_keyword_transformer_real_transform (KeywordTransformer*
#line 73 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
ctx = _tmp1_;
#line 75 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = input;
+ _tmp2_ = strlen (input);
#line 75 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = input;
-#line 75 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = strlen (_tmp3_);
-#line 75 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = _tmp4_;
+ _tmp3_ = _tmp2_;
#line 75 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_markup_parse_context_parse (ctx, _tmp2_, (gssize) _tmp5_, &_inner_error_);
+ g_markup_parse_context_parse (ctx, input, (gssize) _tmp3_, &_inner_error_);
#line 75 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 75 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -1228,30 +1560,30 @@ static GeeList* acd_see_keyword_transformer_real_transform (KeywordTransformer*
_g_markup_parse_context_unref0 (ctx);
#line 75 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return NULL;
-#line 1232 "PhotoMetadata.c"
+#line 1564 "PhotoMetadata.c"
}
#line 77 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = self->priv->result;
+ _tmp4_ = self->priv->result;
#line 77 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_LIST, GeeList));
+ _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_LIST, GeeList));
#line 77 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp7_;
+ result = _tmp5_;
#line 77 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_markup_parse_context_unref0 (ctx);
#line 77 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 1244 "PhotoMetadata.c"
+#line 1576 "PhotoMetadata.c"
}
-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_;
- const gchar* _tmp1_;
- const gchar* _tmp2_;
- gchar** _tmp3_;
- gint _tmp3__length1;
- gchar** _tmp4_;
- gint _tmp4__length1;
+static void
+acd_see_keyword_transformer_on_start (ACDSeeKeywordTransformer* self,
+ GMarkupParseContext* ctx,
+ const gchar* name,
+ gchar** attribute_names,
+ gchar** attribute_values,
+ GError** error)
+{
GError * _inner_error_ = NULL;
#line 80 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_ACD_SEE_KEYWORD_TRANSFORMER (self));
@@ -1262,33 +1594,19 @@ static void acd_see_keyword_transformer_on_start (ACDSeeKeywordTransformer* self
#line 88 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
self->priv->assigned = FALSE;
#line 89 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = name;
-#line 89 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (g_strcmp0 (_tmp0_, "Categories") == 0) {
+ if (g_strcmp0 (name, "Categories") == 0) {
#line 90 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return;
-#line 1271 "PhotoMetadata.c"
+#line 1601 "PhotoMetadata.c"
}
#line 93 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = name;
-#line 93 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (g_strcmp0 (_tmp1_, "Category") != 0) {
+ if (g_strcmp0 (name, "Category") != 0) {
#line 94 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return;
-#line 1279 "PhotoMetadata.c"
+#line 1607 "PhotoMetadata.c"
}
#line 97 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = name;
-#line 97 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = attribute_names;
-#line 97 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3__length1 = _vala_array_length (attribute_names);
-#line 97 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = attribute_values;
-#line 97 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4__length1 = _vala_array_length (attribute_values);
-#line 97 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_markup_collect_attributes (_tmp2_, _tmp3_, _tmp4_, &_inner_error_, G_MARKUP_COLLECT_BOOLEAN, "Assigned", &self->priv->assigned, G_MARKUP_COLLECT_INVALID);
+ g_markup_collect_attributes (name, attribute_names, attribute_values, &_inner_error_, G_MARKUP_COLLECT_BOOLEAN, "Assigned", &self->priv->assigned, G_MARKUP_COLLECT_INVALID);
#line 97 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 97 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -1297,7 +1615,7 @@ static void acd_see_keyword_transformer_on_start (ACDSeeKeywordTransformer* self
g_propagate_error (error, _inner_error_);
#line 97 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return;
-#line 1301 "PhotoMetadata.c"
+#line 1619 "PhotoMetadata.c"
} else {
#line 97 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
@@ -1305,14 +1623,18 @@ static void acd_see_keyword_transformer_on_start (ACDSeeKeywordTransformer* self
g_clear_error (&_inner_error_);
#line 97 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return;
-#line 1309 "PhotoMetadata.c"
+#line 1627 "PhotoMetadata.c"
}
}
}
-static void acd_see_keyword_transformer_on_end (ACDSeeKeywordTransformer* self, GMarkupParseContext* ctx, const gchar* name, GError** error) {
- const gchar* _tmp0_;
+static void
+acd_see_keyword_transformer_on_end (ACDSeeKeywordTransformer* self,
+ GMarkupParseContext* ctx,
+ const gchar* name,
+ GError** error)
+{
#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"
@@ -1320,31 +1642,32 @@ static void acd_see_keyword_transformer_on_end (ACDSeeKeywordTransformer* self,
#line 104 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (name != NULL);
#line 106 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = name;
-#line 106 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (g_strcmp0 (_tmp0_, "Category") == 0) {
-#line 1327 "PhotoMetadata.c"
- GeeArrayQueue* _tmp1_;
- gpointer _tmp2_;
- gchar* _tmp3_;
+ if (g_strcmp0 (name, "Category") == 0) {
+#line 1647 "PhotoMetadata.c"
+ GeeArrayQueue* _tmp0_;
+ gpointer _tmp1_;
+ gchar* _tmp2_;
#line 107 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = self->priv->stack;
+ _tmp0_ = self->priv->stack;
#line 107 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = gee_deque_poll_tail (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_DEQUE, GeeDeque));
+ _tmp1_ = gee_deque_poll_tail (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_DEQUE, GeeDeque));
#line 107 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = (gchar*) _tmp2_;
+ _tmp2_ = (gchar*) _tmp1_;
#line 107 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (_tmp3_);
-#line 1339 "PhotoMetadata.c"
+ _g_free0 (_tmp2_);
+#line 1659 "PhotoMetadata.c"
}
}
-static void acd_see_keyword_transformer_on_text (ACDSeeKeywordTransformer* self, GMarkupParseContext* ctx, const gchar* text, GError** error) {
- const gchar* _tmp0_;
- GeeArrayQueue* _tmp1_;
- const gchar* _tmp2_;
- gboolean _tmp3_;
+static void
+acd_see_keyword_transformer_on_text (ACDSeeKeywordTransformer* self,
+ GMarkupParseContext* ctx,
+ const gchar* text,
+ GError** error)
+{
+ GeeArrayQueue* _tmp0_;
+ gboolean _tmp1_;
#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"
@@ -1352,148 +1675,146 @@ static void acd_see_keyword_transformer_on_text (ACDSeeKeywordTransformer* self,
#line 111 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (text != NULL);
#line 113 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = text;
-#line 113 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (g_strcmp0 (_tmp0_, "") == 0) {
+ if (g_strcmp0 (text, "") == 0) {
#line 114 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return;
-#line 1361 "PhotoMetadata.c"
+#line 1682 "PhotoMetadata.c"
}
#line 117 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = self->priv->stack;
-#line 117 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = text;
+ _tmp0_ = self->priv->stack;
#line 117 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- gee_deque_offer_tail (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_DEQUE, GeeDeque), _tmp2_);
+ gee_deque_offer_tail (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_DEQUE, GeeDeque), text);
#line 118 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = self->priv->assigned;
+ _tmp1_ = self->priv->assigned;
#line 118 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp3_) {
-#line 1373 "PhotoMetadata.c"
+ if (_tmp1_) {
+#line 1692 "PhotoMetadata.c"
GString* builder = NULL;
- GString* _tmp4_;
- GString* _tmp13_;
- gssize _tmp14_;
- GeeArrayList* _tmp18_;
- GString* _tmp19_;
- const gchar* _tmp20_;
+ GString* _tmp2_;
+ GString* _tmp10_;
+ gssize _tmp11_;
+ GeeArrayList* _tmp15_;
+ GString* _tmp16_;
+ const gchar* _tmp17_;
#line 119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = g_string_new ("");
+ _tmp2_ = g_string_new ("");
#line 119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- builder = _tmp4_;
-#line 1385 "PhotoMetadata.c"
+ builder = _tmp2_;
+#line 1704 "PhotoMetadata.c"
{
GeeIterator* _f_it = NULL;
- GeeArrayQueue* _tmp5_;
- GeeIterator* _tmp6_;
+ GeeArrayQueue* _tmp3_;
+ GeeIterator* _tmp4_;
#line 120 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = self->priv->stack;
+ _tmp3_ = self->priv->stack;
#line 120 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
+ _tmp4_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
#line 120 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _f_it = _tmp6_;
+ _f_it = _tmp4_;
#line 120 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
while (TRUE) {
-#line 1398 "PhotoMetadata.c"
- GeeIterator* _tmp7_;
- gboolean _tmp8_;
+#line 1717 "PhotoMetadata.c"
+ GeeIterator* _tmp5_;
gchar* f = NULL;
- GeeIterator* _tmp9_;
- gpointer _tmp10_;
- GString* _tmp11_;
- const gchar* _tmp12_;
-#line 120 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_ = _f_it;
+ GeeIterator* _tmp6_;
+ gpointer _tmp7_;
+ GString* _tmp8_;
+ const gchar* _tmp9_;
#line 120 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp8_ = gee_iterator_next (_tmp7_);
+ _tmp5_ = _f_it;
#line 120 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!_tmp8_) {
+ if (!gee_iterator_next (_tmp5_)) {
#line 120 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
break;
-#line 1414 "PhotoMetadata.c"
+#line 1730 "PhotoMetadata.c"
}
#line 120 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp9_ = _f_it;
+ _tmp6_ = _f_it;
#line 120 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp10_ = gee_iterator_get (_tmp9_);
+ _tmp7_ = gee_iterator_get (_tmp6_);
#line 120 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- f = (gchar*) _tmp10_;
+ f = (gchar*) _tmp7_;
#line 121 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp11_ = builder;
+ _tmp8_ = builder;
#line 121 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp12_ = f;
+ _tmp9_ = f;
#line 121 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_string_append_printf (_tmp11_, "%s|", _tmp12_);
+ g_string_append_printf (_tmp8_, "%s|", _tmp9_);
#line 120 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (f);
-#line 1430 "PhotoMetadata.c"
+#line 1746 "PhotoMetadata.c"
}
#line 120 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_object_unref0 (_f_it);
-#line 1434 "PhotoMetadata.c"
+#line 1750 "PhotoMetadata.c"
}
#line 123 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp13_ = builder;
+ _tmp10_ = builder;
#line 123 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp14_ = _tmp13_->len;
+ _tmp11_ = _tmp10_->len;
#line 123 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp14_ > ((gssize) 0)) {
-#line 1442 "PhotoMetadata.c"
- GString* _tmp15_;
- GString* _tmp16_;
- gssize _tmp17_;
+ if (_tmp11_ > ((gssize) 0)) {
+#line 1758 "PhotoMetadata.c"
+ GString* _tmp12_;
+ GString* _tmp13_;
+ gssize _tmp14_;
#line 124 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp15_ = builder;
+ _tmp12_ = builder;
#line 124 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp16_ = builder;
+ _tmp13_ = builder;
#line 124 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp17_ = _tmp16_->len;
+ _tmp14_ = _tmp13_->len;
#line 124 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_string_truncate (_tmp15_, (gsize) (_tmp17_ - 1));
-#line 1454 "PhotoMetadata.c"
+ g_string_truncate (_tmp12_, (gsize) (_tmp14_ - 1));
+#line 1770 "PhotoMetadata.c"
}
#line 126 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp18_ = self->priv->result;
+ _tmp15_ = self->priv->result;
#line 126 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp19_ = builder;
+ _tmp16_ = builder;
#line 126 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp20_ = _tmp19_->str;
+ _tmp17_ = _tmp16_->str;
#line 126 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp20_);
+ gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp17_);
#line 118 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_string_free0 (builder);
-#line 1466 "PhotoMetadata.c"
+#line 1782 "PhotoMetadata.c"
}
}
-static gpointer _g_error_copy0 (gpointer self) {
+static gpointer
+_g_error_copy0 (gpointer self)
+{
#line 131 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return self ? g_error_copy (self) : NULL;
-#line 1474 "PhotoMetadata.c"
+#line 1792 "PhotoMetadata.c"
}
-static void acd_see_keyword_transformer_on_error (ACDSeeKeywordTransformer* self, GMarkupParseContext* ctx, GError* _error_) {
+static void
+acd_see_keyword_transformer_on_error (ACDSeeKeywordTransformer* self,
+ GMarkupParseContext* ctx,
+ GError* _error_)
+{
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"
g_return_if_fail (ctx != NULL);
#line 131 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = _error_;
-#line 131 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = _g_error_copy0 (_tmp0_);
+ _tmp0_ = _g_error_copy0 (_error_);
#line 131 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_error_free0 (self->priv->error);
#line 131 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->priv->error = _tmp1_;
-#line 1493 "PhotoMetadata.c"
+ self->priv->error = _tmp0_;
+#line 1812 "PhotoMetadata.c"
}
-static void acd_see_keyword_transformer_class_init (ACDSeeKeywordTransformerClass * klass) {
+static void
+acd_see_keyword_transformer_class_init (ACDSeeKeywordTransformerClass * klass)
+{
#line 55 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
acd_see_keyword_transformer_parent_class = g_type_class_peek_parent (klass);
#line 55 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -1502,18 +1823,22 @@ static void acd_see_keyword_transformer_class_init (ACDSeeKeywordTransformerClas
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;
-#line 1506 "PhotoMetadata.c"
+#line 1827 "PhotoMetadata.c"
}
-static void acd_see_keyword_transformer_instance_init (ACDSeeKeywordTransformer * self) {
+static void
+acd_see_keyword_transformer_instance_init (ACDSeeKeywordTransformer * self)
+{
#line 55 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
self->priv = ACD_SEE_KEYWORD_TRANSFORMER_GET_PRIVATE (self);
-#line 1513 "PhotoMetadata.c"
+#line 1836 "PhotoMetadata.c"
}
-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);
@@ -1525,11 +1850,13 @@ static void acd_see_keyword_transformer_finalize (KeywordTransformer * obj) {
_g_object_unref0 (self->priv->result);
#line 55 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
KEYWORD_TRANSFORMER_CLASS (acd_see_keyword_transformer_parent_class)->finalize (obj);
-#line 1529 "PhotoMetadata.c"
+#line 1854 "PhotoMetadata.c"
}
-GType acd_see_keyword_transformer_get_type (void) {
+GType
+acd_see_keyword_transformer_get_type (void)
+{
static volatile gsize acd_see_keyword_transformer_type_id__volatile = 0;
if (g_once_init_enter (&acd_see_keyword_transformer_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (ACDSeeKeywordTransformerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) acd_see_keyword_transformer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ACDSeeKeywordTransformer), 0, (GInstanceInitFunc) acd_see_keyword_transformer_instance_init, NULL };
@@ -1541,23 +1868,27 @@ GType acd_see_keyword_transformer_get_type (void) {
}
-static gpointer _keyword_transformer_ref0 (gpointer self) {
+static gpointer
+_keyword_transformer_ref0 (gpointer self)
+{
#line 154 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return self ? keyword_transformer_ref (self) : NULL;
-#line 1548 "PhotoMetadata.c"
+#line 1877 "PhotoMetadata.c"
}
-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*
+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_;
+ gchar* _tmp0_;
gchar* _tmp1_;
- const gchar* _tmp2_;
- gchar* _tmp3_;
- gboolean _tmp4_;
- gboolean _tmp5_;
- KeywordTransformer* _tmp6_;
- KeywordTransformer* _tmp7_;
+ KeywordTransformer* _tmp2_;
#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"
@@ -1567,148 +1898,169 @@ HierarchicalKeywordField* hierarchical_keyword_field_construct (GType object_typ
#line 144 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
self = (HierarchicalKeywordField*) g_type_create_instance (object_type);
#line 150 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = field_name;
-#line 150 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = g_strdup (_tmp0_);
+ _tmp0_ = g_strdup (field_name);
#line 150 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (self->field_name);
#line 150 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->field_name = _tmp1_;
-#line 151 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = path_separator;
+ self->field_name = _tmp0_;
#line 151 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = g_strdup (_tmp2_);
+ _tmp1_ = g_strdup (path_separator);
#line 151 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (self->path_separator);
#line 151 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->path_separator = _tmp3_;
+ self->path_separator = _tmp1_;
#line 152 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = wants_leading_separator;
-#line 152 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->wants_leading_separator = _tmp4_;
-#line 153 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = is_writeable;
+ self->wants_leading_separator = wants_leading_separator;
#line 153 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->is_writeable = _tmp5_;
-#line 154 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = transformer;
+ self->is_writeable = is_writeable;
#line 154 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_ = _keyword_transformer_ref0 (_tmp6_);
+ _tmp2_ = _keyword_transformer_ref0 (transformer);
#line 154 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_keyword_transformer_unref0 (self->transformer);
#line 154 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->transformer = _tmp7_;
+ self->transformer = _tmp2_;
#line 144 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return self;
-#line 1604 "PhotoMetadata.c"
+#line 1925 "PhotoMetadata.c"
}
-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_new (const gchar* field_name,
+ const gchar* path_separator,
+ gboolean wants_leading_separator,
+ gboolean is_writeable,
+ KeywordTransformer* transformer)
+{
#line 144 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return hierarchical_keyword_field_construct (TYPE_HIERARCHICAL_KEYWORD_FIELD, field_name, path_separator, wants_leading_separator, is_writeable, transformer);
-#line 1611 "PhotoMetadata.c"
+#line 1938 "PhotoMetadata.c"
}
-static void value_hierarchical_keyword_field_init (GValue* value) {
+static void
+value_hierarchical_keyword_field_init (GValue* value)
+{
#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
value->data[0].v_pointer = NULL;
-#line 1618 "PhotoMetadata.c"
+#line 1947 "PhotoMetadata.c"
}
-static void value_hierarchical_keyword_field_free_value (GValue* value) {
+static void
+value_hierarchical_keyword_field_free_value (GValue* value)
+{
#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (value->data[0].v_pointer) {
#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
hierarchical_keyword_field_unref (value->data[0].v_pointer);
-#line 1627 "PhotoMetadata.c"
+#line 1958 "PhotoMetadata.c"
}
}
-static void value_hierarchical_keyword_field_copy_value (const GValue* src_value, GValue* dest_value) {
+static void
+value_hierarchical_keyword_field_copy_value (const GValue* src_value,
+ GValue* dest_value)
+{
#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (src_value->data[0].v_pointer) {
#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
dest_value->data[0].v_pointer = hierarchical_keyword_field_ref (src_value->data[0].v_pointer);
-#line 1637 "PhotoMetadata.c"
+#line 1971 "PhotoMetadata.c"
} else {
#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
dest_value->data[0].v_pointer = NULL;
-#line 1641 "PhotoMetadata.c"
+#line 1975 "PhotoMetadata.c"
}
}
-static gpointer value_hierarchical_keyword_field_peek_pointer (const GValue* value) {
+static gpointer
+value_hierarchical_keyword_field_peek_pointer (const GValue* value)
+{
#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return value->data[0].v_pointer;
-#line 1649 "PhotoMetadata.c"
+#line 1985 "PhotoMetadata.c"
}
-static gchar* value_hierarchical_keyword_field_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+static gchar*
+value_hierarchical_keyword_field_collect_value (GValue* value,
+ guint n_collect_values,
+ GTypeCValue* collect_values,
+ guint collect_flags)
+{
#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (collect_values[0].v_pointer) {
-#line 1656 "PhotoMetadata.c"
+#line 1997 "PhotoMetadata.c"
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) {
#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 1663 "PhotoMetadata.c"
+#line 2004 "PhotoMetadata.c"
} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 1667 "PhotoMetadata.c"
+#line 2008 "PhotoMetadata.c"
}
#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
value->data[0].v_pointer = hierarchical_keyword_field_ref (object);
-#line 1671 "PhotoMetadata.c"
+#line 2012 "PhotoMetadata.c"
} else {
#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
value->data[0].v_pointer = NULL;
-#line 1675 "PhotoMetadata.c"
+#line 2016 "PhotoMetadata.c"
}
#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return NULL;
-#line 1679 "PhotoMetadata.c"
+#line 2020 "PhotoMetadata.c"
}
-static gchar* value_hierarchical_keyword_field_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+static gchar*
+value_hierarchical_keyword_field_lcopy_value (const GValue* value,
+ guint n_collect_values,
+ GTypeCValue* collect_values,
+ guint collect_flags)
+{
HierarchicalKeywordField ** object_p;
object_p = collect_values[0].v_pointer;
#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (!object_p) {
#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 1690 "PhotoMetadata.c"
+#line 2036 "PhotoMetadata.c"
}
#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (!value->data[0].v_pointer) {
#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
*object_p = NULL;
-#line 1696 "PhotoMetadata.c"
+#line 2042 "PhotoMetadata.c"
} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
*object_p = value->data[0].v_pointer;
-#line 1700 "PhotoMetadata.c"
+#line 2046 "PhotoMetadata.c"
} else {
#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
*object_p = hierarchical_keyword_field_ref (value->data[0].v_pointer);
-#line 1704 "PhotoMetadata.c"
+#line 2050 "PhotoMetadata.c"
}
#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return NULL;
-#line 1708 "PhotoMetadata.c"
+#line 2054 "PhotoMetadata.c"
}
-GParamSpec* param_spec_hierarchical_keyword_field (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+GParamSpec*
+param_spec_hierarchical_keyword_field (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags)
+{
ParamSpecHierarchicalKeywordField* spec;
#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (g_type_is_a (object_type, TYPE_HIERARCHICAL_KEYWORD_FIELD), NULL);
@@ -1718,20 +2070,25 @@ GParamSpec* param_spec_hierarchical_keyword_field (const gchar* name, const gcha
G_PARAM_SPEC (spec)->value_type = object_type;
#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return G_PARAM_SPEC (spec);
-#line 1722 "PhotoMetadata.c"
+#line 2074 "PhotoMetadata.c"
}
-gpointer value_get_hierarchical_keyword_field (const GValue* value) {
+gpointer
+value_get_hierarchical_keyword_field (const GValue* value)
+{
#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_HIERARCHICAL_KEYWORD_FIELD), NULL);
#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return value->data[0].v_pointer;
-#line 1731 "PhotoMetadata.c"
+#line 2085 "PhotoMetadata.c"
}
-void value_set_hierarchical_keyword_field (GValue* value, gpointer v_object) {
+void
+value_set_hierarchical_keyword_field (GValue* value,
+ gpointer v_object)
+{
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));
@@ -1747,22 +2104,25 @@ void value_set_hierarchical_keyword_field (GValue* value, gpointer v_object) {
value->data[0].v_pointer = v_object;
#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
hierarchical_keyword_field_ref (value->data[0].v_pointer);
-#line 1751 "PhotoMetadata.c"
+#line 2108 "PhotoMetadata.c"
} else {
#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
value->data[0].v_pointer = NULL;
-#line 1755 "PhotoMetadata.c"
+#line 2112 "PhotoMetadata.c"
}
#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (old) {
#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
hierarchical_keyword_field_unref (old);
-#line 1761 "PhotoMetadata.c"
+#line 2118 "PhotoMetadata.c"
}
}
-void value_take_hierarchical_keyword_field (GValue* value, gpointer v_object) {
+void
+value_take_hierarchical_keyword_field (GValue* value,
+ gpointer v_object)
+{
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));
@@ -1776,38 +2136,44 @@ void value_take_hierarchical_keyword_field (GValue* value, gpointer v_object) {
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
value->data[0].v_pointer = v_object;
-#line 1780 "PhotoMetadata.c"
+#line 2140 "PhotoMetadata.c"
} else {
#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
value->data[0].v_pointer = NULL;
-#line 1784 "PhotoMetadata.c"
+#line 2144 "PhotoMetadata.c"
}
#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (old) {
#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
hierarchical_keyword_field_unref (old);
-#line 1790 "PhotoMetadata.c"
+#line 2150 "PhotoMetadata.c"
}
}
-static void hierarchical_keyword_field_class_init (HierarchicalKeywordFieldClass * klass) {
+static void
+hierarchical_keyword_field_class_init (HierarchicalKeywordFieldClass * klass)
+{
#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
hierarchical_keyword_field_parent_class = g_type_class_peek_parent (klass);
#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
((HierarchicalKeywordFieldClass *) klass)->finalize = hierarchical_keyword_field_finalize;
-#line 1800 "PhotoMetadata.c"
+#line 2162 "PhotoMetadata.c"
}
-static void hierarchical_keyword_field_instance_init (HierarchicalKeywordField * self) {
+static void
+hierarchical_keyword_field_instance_init (HierarchicalKeywordField * self)
+{
#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
self->ref_count = 1;
-#line 1807 "PhotoMetadata.c"
+#line 2171 "PhotoMetadata.c"
}
-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);
@@ -1819,11 +2185,13 @@ static void hierarchical_keyword_field_finalize (HierarchicalKeywordField * obj)
_g_free0 (self->path_separator);
#line 142 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_keyword_transformer_unref0 (self->transformer);
-#line 1823 "PhotoMetadata.c"
+#line 2189 "PhotoMetadata.c"
}
-GType hierarchical_keyword_field_get_type (void) {
+GType
+hierarchical_keyword_field_get_type (void)
+{
static volatile gsize hierarchical_keyword_field_type_id__volatile = 0;
if (g_once_init_enter (&hierarchical_keyword_field_type_id__volatile)) {
static const GTypeValueTable g_define_type_value_table = { value_hierarchical_keyword_field_init, value_hierarchical_keyword_field_free_value, value_hierarchical_keyword_field_copy_value, value_hierarchical_keyword_field_peek_pointer, "p", value_hierarchical_keyword_field_collect_value, "p", value_hierarchical_keyword_field_lcopy_value };
@@ -1837,18 +2205,22 @@ GType hierarchical_keyword_field_get_type (void) {
}
-gpointer hierarchical_keyword_field_ref (gpointer instance) {
+gpointer
+hierarchical_keyword_field_ref (gpointer instance)
+{
HierarchicalKeywordField * self;
self = instance;
#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_atomic_int_inc (&self->ref_count);
#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return instance;
-#line 1848 "PhotoMetadata.c"
+#line 2218 "PhotoMetadata.c"
}
-void hierarchical_keyword_field_unref (gpointer instance) {
+void
+hierarchical_keyword_field_unref (gpointer instance)
+{
HierarchicalKeywordField * self;
self = instance;
#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -1857,21 +2229,24 @@ void hierarchical_keyword_field_unref (gpointer instance) {
HIERARCHICAL_KEYWORD_FIELD_GET_CLASS (self)->finalize (self);
#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_type_free_instance ((GTypeInstance *) self);
-#line 1861 "PhotoMetadata.c"
+#line 2233 "PhotoMetadata.c"
}
}
-PhotoPreview* photo_preview_construct (GType object_type, const gchar* name, Dimensions* dimensions, guint32 size, const gchar* mime_type, const gchar* extension) {
+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_;
- gchar* _tmp1_;
- Dimensions _tmp2_;
- guint32 _tmp3_;
- const gchar* _tmp4_;
- gchar* _tmp5_;
- const gchar* _tmp6_;
- gchar* _tmp7_;
+ gchar* _tmp0_;
+ Dimensions _tmp1_;
+ gchar* _tmp2_;
+ gchar* _tmp3_;
#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"
@@ -1883,44 +2258,38 @@ PhotoPreview* photo_preview_construct (GType object_type, const gchar* name, Dim
#line 165 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
self = (PhotoPreview*) g_type_create_instance (object_type);
#line 166 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = name;
-#line 166 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = g_strdup (_tmp0_);
+ _tmp0_ = g_strdup (name);
#line 166 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (self->priv->name);
#line 166 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->priv->name = _tmp1_;
+ self->priv->name = _tmp0_;
#line 167 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = *dimensions;
+ _tmp1_ = *dimensions;
#line 167 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->priv->dimensions = _tmp2_;
-#line 168 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = size;
+ self->priv->dimensions = _tmp1_;
#line 168 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->priv->size = _tmp3_;
+ self->priv->size = size;
#line 169 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = mime_type;
-#line 169 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = g_strdup (_tmp4_);
+ _tmp2_ = g_strdup (mime_type);
#line 169 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (self->priv->mime_type);
#line 169 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->priv->mime_type = _tmp5_;
-#line 170 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = extension;
+ self->priv->mime_type = _tmp2_;
#line 170 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_ = g_strdup (_tmp6_);
+ _tmp3_ = g_strdup (extension);
#line 170 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (self->priv->extension);
#line 170 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->priv->extension = _tmp7_;
+ self->priv->extension = _tmp3_;
#line 165 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return self;
-#line 1920 "PhotoMetadata.c"
+#line 2287 "PhotoMetadata.c"
}
-gchar* photo_preview_get_name (PhotoPreview* self) {
+gchar*
+photo_preview_get_name (PhotoPreview* self)
+{
gchar* result = NULL;
const gchar* _tmp0_;
gchar* _tmp1_;
@@ -1934,11 +2303,14 @@ gchar* photo_preview_get_name (PhotoPreview* self) {
result = _tmp1_;
#line 174 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 1938 "PhotoMetadata.c"
+#line 2307 "PhotoMetadata.c"
}
-void photo_preview_get_pixel_dimensions (PhotoPreview* self, Dimensions* result) {
+void
+photo_preview_get_pixel_dimensions (PhotoPreview* self,
+ Dimensions* result)
+{
Dimensions _tmp0_;
#line 177 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_PREVIEW (self));
@@ -1948,11 +2320,13 @@ void photo_preview_get_pixel_dimensions (PhotoPreview* self, Dimensions* result)
*result = _tmp0_;
#line 178 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return;
-#line 1952 "PhotoMetadata.c"
+#line 2324 "PhotoMetadata.c"
}
-guint32 photo_preview_get_size (PhotoPreview* self) {
+guint32
+photo_preview_get_size (PhotoPreview* self)
+{
guint32 result = 0U;
guint32 _tmp0_;
#line 181 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -1963,11 +2337,13 @@ guint32 photo_preview_get_size (PhotoPreview* self) {
result = _tmp0_;
#line 182 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 1967 "PhotoMetadata.c"
+#line 2341 "PhotoMetadata.c"
}
-gchar* photo_preview_get_mime_type (PhotoPreview* self) {
+gchar*
+photo_preview_get_mime_type (PhotoPreview* self)
+{
gchar* result = NULL;
const gchar* _tmp0_;
gchar* _tmp1_;
@@ -1981,11 +2357,13 @@ gchar* photo_preview_get_mime_type (PhotoPreview* self) {
result = _tmp1_;
#line 186 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 1985 "PhotoMetadata.c"
+#line 2361 "PhotoMetadata.c"
}
-gchar* photo_preview_get_extension (PhotoPreview* self) {
+gchar*
+photo_preview_get_extension (PhotoPreview* self)
+{
gchar* result = NULL;
const gchar* _tmp0_;
gchar* _tmp1_;
@@ -1999,29 +2377,38 @@ gchar* photo_preview_get_extension (PhotoPreview* self) {
result = _tmp1_;
#line 190 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 2003 "PhotoMetadata.c"
+#line 2381 "PhotoMetadata.c"
}
-static GBytes* photo_preview_real_flatten (PhotoPreview* self, GError** error) {
+static GBytes*
+photo_preview_real_flatten (PhotoPreview* self,
+ GError** error)
+{
#line 193 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_critical ("Type `%s' does not implement abstract method `photo_preview_flatten'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
#line 193 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return NULL;
-#line 2012 "PhotoMetadata.c"
+#line 2393 "PhotoMetadata.c"
}
-GBytes* photo_preview_flatten (PhotoPreview* self, GError** error) {
+GBytes*
+photo_preview_flatten (PhotoPreview* self,
+ GError** error)
+{
#line 193 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_PREVIEW (self), NULL);
#line 193 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return PHOTO_PREVIEW_GET_CLASS (self)->flatten (self, error);
-#line 2021 "PhotoMetadata.c"
+#line 2405 "PhotoMetadata.c"
}
-static GdkPixbuf* photo_preview_real_get_pixbuf (PhotoPreview* self, GError** error) {
+static GdkPixbuf*
+photo_preview_real_get_pixbuf (PhotoPreview* self,
+ GError** error)
+{
GdkPixbuf* result = NULL;
GBytes* flattened = NULL;
GBytes* _tmp0_;
@@ -2036,7 +2423,7 @@ static GdkPixbuf* photo_preview_real_get_pixbuf (PhotoPreview* self, GError** er
g_propagate_error (error, _inner_error_);
#line 196 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return NULL;
-#line 2040 "PhotoMetadata.c"
+#line 2427 "PhotoMetadata.c"
}
{
GdkPixbuf* _tmp1_ = NULL;
@@ -2059,7 +2446,7 @@ static GdkPixbuf* photo_preview_real_get_pixbuf (PhotoPreview* self, GError** er
_tmp1_ = _tmp5_;
#line 201 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2063 "PhotoMetadata.c"
+#line 2450 "PhotoMetadata.c"
goto __catch29_g_error;
}
#line 201 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -2074,7 +2461,7 @@ static GdkPixbuf* photo_preview_real_get_pixbuf (PhotoPreview* self, GError** er
_g_bytes_unref0 (flattened);
#line 201 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 2078 "PhotoMetadata.c"
+#line 2465 "PhotoMetadata.c"
}
goto __finally29;
__catch29_g_error:
@@ -2103,7 +2490,7 @@ static GdkPixbuf* photo_preview_real_get_pixbuf (PhotoPreview* self, GError** er
_g_bytes_unref0 (flattened);
#line 206 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 2107 "PhotoMetadata.c"
+#line 2494 "PhotoMetadata.c"
}
__finally29:
#line 200 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -2112,117 +2499,145 @@ static GdkPixbuf* photo_preview_real_get_pixbuf (PhotoPreview* self, GError** er
_g_bytes_unref0 (flattened);
#line 200 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return NULL;
-#line 2116 "PhotoMetadata.c"
+#line 2503 "PhotoMetadata.c"
}
-GdkPixbuf* photo_preview_get_pixbuf (PhotoPreview* self, GError** error) {
+GdkPixbuf*
+photo_preview_get_pixbuf (PhotoPreview* self,
+ GError** error)
+{
#line 195 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_PREVIEW (self), NULL);
#line 195 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return PHOTO_PREVIEW_GET_CLASS (self)->get_pixbuf (self, error);
-#line 2125 "PhotoMetadata.c"
+#line 2515 "PhotoMetadata.c"
}
-static void value_photo_preview_init (GValue* value) {
+static void
+value_photo_preview_init (GValue* value)
+{
#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
value->data[0].v_pointer = NULL;
-#line 2132 "PhotoMetadata.c"
+#line 2524 "PhotoMetadata.c"
}
-static void value_photo_preview_free_value (GValue* value) {
+static void
+value_photo_preview_free_value (GValue* value)
+{
#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (value->data[0].v_pointer) {
#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
photo_preview_unref (value->data[0].v_pointer);
-#line 2141 "PhotoMetadata.c"
+#line 2535 "PhotoMetadata.c"
}
}
-static void value_photo_preview_copy_value (const GValue* src_value, GValue* dest_value) {
+static void
+value_photo_preview_copy_value (const GValue* src_value,
+ GValue* dest_value)
+{
#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (src_value->data[0].v_pointer) {
#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
dest_value->data[0].v_pointer = photo_preview_ref (src_value->data[0].v_pointer);
-#line 2151 "PhotoMetadata.c"
+#line 2548 "PhotoMetadata.c"
} else {
#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
dest_value->data[0].v_pointer = NULL;
-#line 2155 "PhotoMetadata.c"
+#line 2552 "PhotoMetadata.c"
}
}
-static gpointer value_photo_preview_peek_pointer (const GValue* value) {
+static gpointer
+value_photo_preview_peek_pointer (const GValue* value)
+{
#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return value->data[0].v_pointer;
-#line 2163 "PhotoMetadata.c"
+#line 2562 "PhotoMetadata.c"
}
-static gchar* value_photo_preview_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+static gchar*
+value_photo_preview_collect_value (GValue* value,
+ guint n_collect_values,
+ GTypeCValue* collect_values,
+ guint collect_flags)
+{
#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (collect_values[0].v_pointer) {
-#line 2170 "PhotoMetadata.c"
+#line 2574 "PhotoMetadata.c"
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) {
#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 2177 "PhotoMetadata.c"
+#line 2581 "PhotoMetadata.c"
} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 2181 "PhotoMetadata.c"
+#line 2585 "PhotoMetadata.c"
}
#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
value->data[0].v_pointer = photo_preview_ref (object);
-#line 2185 "PhotoMetadata.c"
+#line 2589 "PhotoMetadata.c"
} else {
#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
value->data[0].v_pointer = NULL;
-#line 2189 "PhotoMetadata.c"
+#line 2593 "PhotoMetadata.c"
}
#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return NULL;
-#line 2193 "PhotoMetadata.c"
+#line 2597 "PhotoMetadata.c"
}
-static gchar* value_photo_preview_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+static gchar*
+value_photo_preview_lcopy_value (const GValue* value,
+ guint n_collect_values,
+ GTypeCValue* collect_values,
+ guint collect_flags)
+{
PhotoPreview ** object_p;
object_p = collect_values[0].v_pointer;
#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (!object_p) {
#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 2204 "PhotoMetadata.c"
+#line 2613 "PhotoMetadata.c"
}
#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (!value->data[0].v_pointer) {
#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
*object_p = NULL;
-#line 2210 "PhotoMetadata.c"
+#line 2619 "PhotoMetadata.c"
} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
*object_p = value->data[0].v_pointer;
-#line 2214 "PhotoMetadata.c"
+#line 2623 "PhotoMetadata.c"
} else {
#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
*object_p = photo_preview_ref (value->data[0].v_pointer);
-#line 2218 "PhotoMetadata.c"
+#line 2627 "PhotoMetadata.c"
}
#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return NULL;
-#line 2222 "PhotoMetadata.c"
+#line 2631 "PhotoMetadata.c"
}
-GParamSpec* param_spec_photo_preview (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+GParamSpec*
+param_spec_photo_preview (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags)
+{
ParamSpecPhotoPreview* spec;
#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (g_type_is_a (object_type, TYPE_PHOTO_PREVIEW), NULL);
@@ -2232,20 +2647,25 @@ GParamSpec* param_spec_photo_preview (const gchar* name, const gchar* nick, cons
G_PARAM_SPEC (spec)->value_type = object_type;
#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return G_PARAM_SPEC (spec);
-#line 2236 "PhotoMetadata.c"
+#line 2651 "PhotoMetadata.c"
}
-gpointer value_get_photo_preview (const GValue* value) {
+gpointer
+value_get_photo_preview (const GValue* value)
+{
#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_PREVIEW), NULL);
#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return value->data[0].v_pointer;
-#line 2245 "PhotoMetadata.c"
+#line 2662 "PhotoMetadata.c"
}
-void value_set_photo_preview (GValue* value, gpointer v_object) {
+void
+value_set_photo_preview (GValue* value,
+ gpointer v_object)
+{
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));
@@ -2261,22 +2681,25 @@ void value_set_photo_preview (GValue* value, gpointer v_object) {
value->data[0].v_pointer = v_object;
#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
photo_preview_ref (value->data[0].v_pointer);
-#line 2265 "PhotoMetadata.c"
+#line 2685 "PhotoMetadata.c"
} else {
#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
value->data[0].v_pointer = NULL;
-#line 2269 "PhotoMetadata.c"
+#line 2689 "PhotoMetadata.c"
}
#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (old) {
#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
photo_preview_unref (old);
-#line 2275 "PhotoMetadata.c"
+#line 2695 "PhotoMetadata.c"
}
}
-void value_take_photo_preview (GValue* value, gpointer v_object) {
+void
+value_take_photo_preview (GValue* value,
+ gpointer v_object)
+{
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));
@@ -2290,22 +2713,24 @@ void value_take_photo_preview (GValue* value, gpointer v_object) {
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
value->data[0].v_pointer = v_object;
-#line 2294 "PhotoMetadata.c"
+#line 2717 "PhotoMetadata.c"
} else {
#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
value->data[0].v_pointer = NULL;
-#line 2298 "PhotoMetadata.c"
+#line 2721 "PhotoMetadata.c"
}
#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (old) {
#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
photo_preview_unref (old);
-#line 2304 "PhotoMetadata.c"
+#line 2727 "PhotoMetadata.c"
}
}
-static void photo_preview_class_init (PhotoPreviewClass * klass) {
+static void
+photo_preview_class_init (PhotoPreviewClass * klass)
+{
#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
photo_preview_parent_class = g_type_class_peek_parent (klass);
#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -2316,20 +2741,24 @@ static void photo_preview_class_init (PhotoPreviewClass * klass) {
((PhotoPreviewClass *) klass)->flatten = (GBytes* (*) (PhotoPreview *, 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;
-#line 2320 "PhotoMetadata.c"
+#line 2745 "PhotoMetadata.c"
}
-static void photo_preview_instance_init (PhotoPreview * self) {
+static void
+photo_preview_instance_init (PhotoPreview * self)
+{
#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
self->priv = PHOTO_PREVIEW_GET_PRIVATE (self);
#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
self->ref_count = 1;
-#line 2329 "PhotoMetadata.c"
+#line 2756 "PhotoMetadata.c"
}
-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);
@@ -2341,11 +2770,13 @@ static void photo_preview_finalize (PhotoPreview * obj) {
_g_free0 (self->priv->mime_type);
#line 163 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (self->priv->extension);
-#line 2345 "PhotoMetadata.c"
+#line 2774 "PhotoMetadata.c"
}
-GType photo_preview_get_type (void) {
+GType
+photo_preview_get_type (void)
+{
static volatile gsize photo_preview_type_id__volatile = 0;
if (g_once_init_enter (&photo_preview_type_id__volatile)) {
static const GTypeValueTable g_define_type_value_table = { value_photo_preview_init, value_photo_preview_free_value, value_photo_preview_copy_value, value_photo_preview_peek_pointer, "p", value_photo_preview_collect_value, "p", value_photo_preview_lcopy_value };
@@ -2359,18 +2790,22 @@ GType photo_preview_get_type (void) {
}
-gpointer photo_preview_ref (gpointer instance) {
+gpointer
+photo_preview_ref (gpointer instance)
+{
PhotoPreview * self;
self = instance;
#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_atomic_int_inc (&self->ref_count);
#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return instance;
-#line 2370 "PhotoMetadata.c"
+#line 2803 "PhotoMetadata.c"
}
-void photo_preview_unref (gpointer instance) {
+void
+photo_preview_unref (gpointer instance)
+{
PhotoPreview * self;
self = instance;
#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -2379,12 +2814,14 @@ void photo_preview_unref (gpointer instance) {
PHOTO_PREVIEW_GET_CLASS (self)->finalize (self);
#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_type_free_instance ((GTypeInstance *) self);
-#line 2383 "PhotoMetadata.c"
+#line 2818 "PhotoMetadata.c"
}
}
-GType photo_metadata_set_option_get_type (void) {
+GType
+photo_metadata_set_option_get_type (void)
+{
static volatile gsize photo_metadata_set_option_type_id__volatile = 0;
if (g_once_init_enter (&photo_metadata_set_option_type_id__volatile)) {
static const GEnumValue values[] = {{PHOTO_METADATA_SET_OPTION_ALL_DOMAINS, "PHOTO_METADATA_SET_OPTION_ALL_DOMAINS", "all-domains"}, {PHOTO_METADATA_SET_OPTION_ONLY_IF_DOMAIN_PRESENT, "PHOTO_METADATA_SET_OPTION_ONLY_IF_DOMAIN_PRESENT", "only-if-domain-present"}, {PHOTO_METADATA_SET_OPTION_AT_LEAST_DEFAULT_DOMAIN, "PHOTO_METADATA_SET_OPTION_AT_LEAST_DEFAULT_DOMAIN", "at-least-default-domain"}, {0, NULL, NULL}};
@@ -2396,36 +2833,41 @@ GType photo_metadata_set_option_get_type (void) {
}
-PhotoMetadata* photo_metadata_construct (GType object_type) {
+PhotoMetadata*
+photo_metadata_construct (GType object_type)
+{
PhotoMetadata* self = NULL;
#line 254 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
self = (PhotoMetadata*) media_metadata_construct (object_type);
#line 254 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return self;
-#line 2406 "PhotoMetadata.c"
+#line 2845 "PhotoMetadata.c"
}
-PhotoMetadata* photo_metadata_new (void) {
+PhotoMetadata*
+photo_metadata_new (void)
+{
#line 254 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return photo_metadata_construct (TYPE_PHOTO_METADATA);
-#line 2413 "PhotoMetadata.c"
+#line 2854 "PhotoMetadata.c"
}
-static void photo_metadata_real_read_from_file (MediaMetadata* base, GFile* file, GError** error) {
+static void
+photo_metadata_real_read_from_file (MediaMetadata* base,
+ GFile* file,
+ GError** error)
+{
PhotoMetadata * self;
GExiv2Metadata* _tmp0_;
GExiv2Metadata* _tmp1_;
- GFile* _tmp2_;
+ gchar* _tmp2_;
gchar* _tmp3_;
gchar* _tmp4_;
- GFile* _tmp5_;
- gchar* _tmp6_;
+ gchar* _tmp5_;
+ ExifData* _tmp6_;
gchar* _tmp7_;
- ExifData* _tmp8_;
- GFile* _tmp9_;
- gchar* _tmp10_;
GError * _inner_error_ = NULL;
#line 257 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_METADATA, PhotoMetadata);
@@ -2444,54 +2886,51 @@ static void photo_metadata_real_read_from_file (MediaMetadata* base, GFile* file
#line 261 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp1_ = self->priv->exiv2;
#line 261 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = file;
-#line 261 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = g_file_get_path (_tmp2_);
+ _tmp2_ = g_file_get_path (file);
#line 261 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = _tmp3_;
+ _tmp3_ = _tmp2_;
#line 261 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- gexiv2_metadata_open_path (_tmp1_, _tmp4_, &_inner_error_);
+ gexiv2_metadata_open_path (_tmp1_, _tmp3_, &_inner_error_);
#line 261 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (_tmp4_);
+ _g_free0 (_tmp3_);
#line 261 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 261 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_propagate_error (error, _inner_error_);
#line 261 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return;
-#line 2463 "PhotoMetadata.c"
+#line 2903 "PhotoMetadata.c"
}
#line 262 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = file;
-#line 262 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = g_file_get_path (_tmp5_);
+ _tmp4_ = g_file_get_path (file);
#line 262 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_ = _tmp6_;
+ _tmp5_ = _tmp4_;
#line 262 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp8_ = exif_data_new_from_file (_tmp7_);
+ _tmp6_ = exif_data_new_from_file (_tmp5_);
#line 262 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_exif_data_unref0 (self->priv->exif);
#line 262 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->priv->exif = _tmp8_;
+ self->priv->exif = _tmp6_;
#line 262 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (_tmp7_);
-#line 263 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp9_ = file;
+ _g_free0 (_tmp5_);
#line 263 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp10_ = g_file_get_basename (_tmp9_);
+ _tmp7_ = g_file_get_basename (file);
#line 263 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (self->priv->source_name);
#line 263 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->priv->source_name = _tmp10_;
-#line 2487 "PhotoMetadata.c"
+ self->priv->source_name = _tmp7_;
+#line 2923 "PhotoMetadata.c"
}
-void photo_metadata_write_to_file (PhotoMetadata* self, GFile* file, GError** error) {
+void
+photo_metadata_write_to_file (PhotoMetadata* self,
+ GFile* file,
+ GError** error)
+{
GExiv2Metadata* _tmp0_;
- GFile* _tmp1_;
+ gchar* _tmp1_;
gchar* _tmp2_;
- gchar* _tmp3_;
GError * _inner_error_ = NULL;
#line 266 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
@@ -2500,137 +2939,97 @@ void photo_metadata_write_to_file (PhotoMetadata* self, GFile* file, GError** er
#line 267 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp0_ = self->priv->exiv2;
#line 267 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = file;
+ _tmp1_ = g_file_get_path (file);
#line 267 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = g_file_get_path (_tmp1_);
-#line 267 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = _tmp2_;
+ _tmp2_ = _tmp1_;
#line 267 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- gexiv2_metadata_save_file (_tmp0_, _tmp3_, &_inner_error_);
+ gexiv2_metadata_save_file (_tmp0_, _tmp2_, &_inner_error_);
#line 267 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (_tmp3_);
+ _g_free0 (_tmp2_);
#line 267 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 267 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_propagate_error (error, _inner_error_);
#line 267 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return;
-#line 2519 "PhotoMetadata.c"
+#line 2956 "PhotoMetadata.c"
}
}
-void photo_metadata_read_from_buffer (PhotoMetadata* self, guint8* buffer, int buffer_length1, gint length, GError** error) {
- 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_;
+void
+photo_metadata_read_from_buffer (PhotoMetadata* self,
+ guint8* buffer,
+ int buffer_length1,
+ gint length,
+ GError** error)
+{
+ GExiv2Metadata* _tmp0_;
+ GExiv2Metadata* _tmp1_;
+ ExifData* _tmp2_;
+ gchar* _tmp3_;
GError * _inner_error_ = NULL;
#line 270 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
#line 271 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = length;
-#line 271 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp0_ <= 0) {
-#line 2547 "PhotoMetadata.c"
- guint8* _tmp1_;
- gint _tmp1__length1;
-#line 272 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = buffer;
+ if (length <= 0) {
#line 272 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1__length1 = buffer_length1;
-#line 272 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- length = _tmp1__length1;
-#line 2556 "PhotoMetadata.c"
+ length = buffer_length1;
+#line 2979 "PhotoMetadata.c"
}
#line 274 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = buffer;
-#line 274 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2__length1 = buffer_length1;
-#line 274 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = length;
-#line 274 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _vala_assert (_tmp2__length1 >= _tmp3_, "buffer.length >= length");
+ _vala_assert (buffer_length1 >= length, "buffer.length >= length");
#line 276 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = gexiv2_metadata_new ();
+ _tmp0_ = gexiv2_metadata_new ();
#line 276 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_object_unref0 (self->priv->exiv2);
#line 276 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->priv->exiv2 = _tmp4_;
+ self->priv->exiv2 = _tmp0_;
#line 277 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_exif_data_unref0 (self->priv->exif);
#line 277 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
self->priv->exif = NULL;
#line 279 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = self->priv->exiv2;
-#line 279 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = buffer;
-#line 279 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6__length1 = buffer_length1;
-#line 279 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_ = length;
+ _tmp1_ = self->priv->exiv2;
#line 279 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- gexiv2_metadata_open_buf (_tmp5_, _tmp6_, (glong) _tmp7_, &_inner_error_);
+ gexiv2_metadata_open_buf (_tmp1_, buffer, (glong) length, &_inner_error_);
#line 279 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 279 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_propagate_error (error, _inner_error_);
#line 279 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return;
-#line 2592 "PhotoMetadata.c"
+#line 3003 "PhotoMetadata.c"
}
#line 280 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp8_ = buffer;
-#line 280 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp8__length1 = buffer_length1;
-#line 280 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp9_ = length;
-#line 280 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp10_ = exif_data_new_from_data (_tmp8_, (gsize) _tmp9_);
+ _tmp2_ = exif_data_new_from_data (buffer, (gsize) length);
#line 280 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_exif_data_unref0 (self->priv->exif);
#line 280 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->priv->exif = _tmp10_;
+ self->priv->exif = _tmp2_;
#line 281 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp11_ = length;
-#line 281 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp12_ = g_strdup_printf ("<memory buffer %d bytes>", _tmp11_);
+ _tmp3_ = g_strdup_printf ("<memory buffer %d bytes>", length);
#line 281 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (self->priv->source_name);
#line 281 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->priv->source_name = _tmp12_;
-#line 2614 "PhotoMetadata.c"
+ self->priv->source_name = _tmp3_;
+#line 3017 "PhotoMetadata.c"
}
-void photo_metadata_read_from_app1_segment (PhotoMetadata* self, GBytes* buffer, GError** error) {
+void
+photo_metadata_read_from_app1_segment (PhotoMetadata* self,
+ GBytes* buffer,
+ GError** error)
+{
GExiv2Metadata* _tmp0_;
GExiv2Metadata* _tmp1_;
- GBytes* _tmp2_;
- gsize _tmp3_;
- guint8* _tmp4_;
- GBytes* _tmp5_;
- gsize _tmp6_;
- GBytes* _tmp7_;
- gsize _tmp8_;
- guint8* _tmp9_;
- GBytes* _tmp10_;
- gsize _tmp11_;
- ExifData* _tmp12_;
- GBytes* _tmp13_;
- gsize _tmp14_;
- gchar* _tmp15_;
+ gsize _tmp2_;
+ guint8* _tmp3_;
+ gsize _tmp4_;
+ guint8* _tmp5_;
+ ExifData* _tmp6_;
+ gchar* _tmp7_;
GError * _inner_error_ = NULL;
#line 284 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
@@ -2649,344 +3048,289 @@ void photo_metadata_read_from_app1_segment (PhotoMetadata* self, GBytes* buffer,
#line 288 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp1_ = self->priv->exiv2;
#line 288 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = buffer;
+ _tmp3_ = g_bytes_get_data (buffer, &_tmp2_);
#line 288 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = g_bytes_get_data (_tmp2_, &_tmp3_);
-#line 288 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = buffer;
-#line 288 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = g_bytes_get_size (_tmp5_);
-#line 288 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- gexiv2_metadata_from_app1_segment (_tmp1_, _tmp4_, (glong) _tmp6_, &_inner_error_);
+ gexiv2_metadata_from_app1_segment (_tmp1_, _tmp3_, (glong) g_bytes_get_size (buffer), &_inner_error_);
#line 288 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 288 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_propagate_error (error, _inner_error_);
#line 288 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return;
-#line 2668 "PhotoMetadata.c"
+#line 3061 "PhotoMetadata.c"
}
#line 289 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_ = buffer;
-#line 289 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp9_ = g_bytes_get_data (_tmp7_, &_tmp8_);
+ _tmp5_ = g_bytes_get_data (buffer, &_tmp4_);
#line 289 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp10_ = buffer;
-#line 289 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp11_ = g_bytes_get_size (_tmp10_);
-#line 289 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp12_ = exif_data_new_from_data (_tmp9_, _tmp11_);
+ _tmp6_ = exif_data_new_from_data (_tmp5_, g_bytes_get_size (buffer));
#line 289 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_exif_data_unref0 (self->priv->exif);
#line 289 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->priv->exif = _tmp12_;
-#line 290 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp13_ = buffer;
-#line 290 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp14_ = g_bytes_get_size (_tmp13_);
+ self->priv->exif = _tmp6_;
#line 290 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp15_ = g_strdup_printf ("<app1 segment %zu bytes>", _tmp14_);
+ _tmp7_ = g_strdup_printf ("<app1 segment %zu bytes>", g_bytes_get_size (buffer));
#line 290 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (self->priv->source_name);
#line 290 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->priv->source_name = _tmp15_;
-#line 2694 "PhotoMetadata.c"
+ self->priv->source_name = _tmp7_;
+#line 3077 "PhotoMetadata.c"
}
-MetadataDomain photo_metadata_get_tag_domain (const gchar* tag) {
+MetadataDomain
+photo_metadata_get_tag_domain (const gchar* tag)
+{
MetadataDomain result = 0;
- const gchar* _tmp0_;
- gboolean _tmp1_;
- const gchar* _tmp2_;
- gboolean _tmp3_;
- const gchar* _tmp4_;
- gboolean _tmp5_;
#line 293 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (tag != NULL, 0);
#line 294 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = tag;
-#line 294 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = gexiv2_metadata_is_exif_tag (_tmp0_);
-#line 294 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp1_) {
+ if (gexiv2_metadata_is_exif_tag (tag)) {
#line 295 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
result = METADATA_DOMAIN_EXIF;
#line 295 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 2718 "PhotoMetadata.c"
+#line 3093 "PhotoMetadata.c"
}
#line 297 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = tag;
-#line 297 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = gexiv2_metadata_is_xmp_tag (_tmp2_);
-#line 297 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp3_) {
+ if (gexiv2_metadata_is_xmp_tag (tag)) {
#line 298 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
result = METADATA_DOMAIN_XMP;
#line 298 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 2730 "PhotoMetadata.c"
+#line 3101 "PhotoMetadata.c"
}
#line 300 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = tag;
-#line 300 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = gexiv2_metadata_is_iptc_tag (_tmp4_);
-#line 300 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp5_) {
+ if (gexiv2_metadata_is_iptc_tag (tag)) {
#line 301 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
result = METADATA_DOMAIN_IPTC;
#line 301 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 2742 "PhotoMetadata.c"
+#line 3109 "PhotoMetadata.c"
}
#line 303 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
result = METADATA_DOMAIN_UNKNOWN;
#line 303 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 2748 "PhotoMetadata.c"
+#line 3115 "PhotoMetadata.c"
}
-gboolean photo_metadata_has_domain (PhotoMetadata* self, MetadataDomain domain) {
+gboolean
+photo_metadata_has_domain (PhotoMetadata* self,
+ MetadataDomain domain)
+{
gboolean result = FALSE;
- MetadataDomain _tmp0_;
#line 306 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE);
#line 307 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = domain;
-#line 307 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- switch (_tmp0_) {
+ switch (domain) {
#line 307 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
case METADATA_DOMAIN_EXIF:
-#line 2763 "PhotoMetadata.c"
+#line 3130 "PhotoMetadata.c"
{
- GExiv2Metadata* _tmp1_;
- gboolean _tmp2_;
-#line 309 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = self->priv->exiv2;
+ GExiv2Metadata* _tmp0_;
#line 309 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = gexiv2_metadata_has_exif (_tmp1_);
+ _tmp0_ = self->priv->exiv2;
#line 309 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp2_;
+ result = gexiv2_metadata_has_exif (_tmp0_);
#line 309 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 2775 "PhotoMetadata.c"
+#line 3139 "PhotoMetadata.c"
}
#line 307 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
case METADATA_DOMAIN_XMP:
-#line 2779 "PhotoMetadata.c"
+#line 3143 "PhotoMetadata.c"
{
- GExiv2Metadata* _tmp3_;
- gboolean _tmp4_;
-#line 312 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = self->priv->exiv2;
+ GExiv2Metadata* _tmp1_;
#line 312 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = gexiv2_metadata_has_xmp (_tmp3_);
+ _tmp1_ = self->priv->exiv2;
#line 312 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp4_;
+ result = gexiv2_metadata_has_xmp (_tmp1_);
#line 312 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 2791 "PhotoMetadata.c"
+#line 3152 "PhotoMetadata.c"
}
#line 307 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
case METADATA_DOMAIN_IPTC:
-#line 2795 "PhotoMetadata.c"
+#line 3156 "PhotoMetadata.c"
{
- GExiv2Metadata* _tmp5_;
- gboolean _tmp6_;
-#line 315 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = self->priv->exiv2;
+ GExiv2Metadata* _tmp2_;
#line 315 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = gexiv2_metadata_has_iptc (_tmp5_);
+ _tmp2_ = self->priv->exiv2;
#line 315 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp6_;
+ result = gexiv2_metadata_has_iptc (_tmp2_);
#line 315 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 2807 "PhotoMetadata.c"
+#line 3165 "PhotoMetadata.c"
}
default:
#line 307 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
case METADATA_DOMAIN_UNKNOWN:
-#line 2812 "PhotoMetadata.c"
+#line 3170 "PhotoMetadata.c"
{
#line 319 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
result = FALSE;
#line 319 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 2818 "PhotoMetadata.c"
+#line 3176 "PhotoMetadata.c"
}
}
}
-gboolean photo_metadata_has_exif (PhotoMetadata* self) {
+gboolean
+photo_metadata_has_exif (PhotoMetadata* self)
+{
gboolean result = FALSE;
- gboolean _tmp0_;
#line 323 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE);
#line 324 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = photo_metadata_has_domain (self, METADATA_DOMAIN_EXIF);
-#line 324 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp0_;
+ result = photo_metadata_has_domain (self, METADATA_DOMAIN_EXIF);
#line 324 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 2835 "PhotoMetadata.c"
+#line 3192 "PhotoMetadata.c"
}
-gboolean photo_metadata_has_xmp (PhotoMetadata* self) {
+gboolean
+photo_metadata_has_xmp (PhotoMetadata* self)
+{
gboolean result = FALSE;
- gboolean _tmp0_;
#line 327 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE);
#line 328 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = photo_metadata_has_domain (self, METADATA_DOMAIN_XMP);
-#line 328 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp0_;
+ result = photo_metadata_has_domain (self, METADATA_DOMAIN_XMP);
#line 328 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 2850 "PhotoMetadata.c"
+#line 3206 "PhotoMetadata.c"
}
-gboolean photo_metadata_has_iptc (PhotoMetadata* self) {
+gboolean
+photo_metadata_has_iptc (PhotoMetadata* self)
+{
gboolean result = FALSE;
- gboolean _tmp0_;
#line 331 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE);
#line 332 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = photo_metadata_has_domain (self, METADATA_DOMAIN_IPTC);
-#line 332 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp0_;
+ result = photo_metadata_has_domain (self, METADATA_DOMAIN_IPTC);
#line 332 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 2865 "PhotoMetadata.c"
+#line 3220 "PhotoMetadata.c"
}
-gboolean photo_metadata_can_write_to_domain (PhotoMetadata* self, MetadataDomain domain) {
+gboolean
+photo_metadata_can_write_to_domain (PhotoMetadata* self,
+ MetadataDomain domain)
+{
gboolean result = FALSE;
- MetadataDomain _tmp0_;
#line 335 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE);
#line 336 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = domain;
-#line 336 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- switch (_tmp0_) {
+ switch (domain) {
#line 336 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
case METADATA_DOMAIN_EXIF:
-#line 2880 "PhotoMetadata.c"
+#line 3235 "PhotoMetadata.c"
{
- GExiv2Metadata* _tmp1_;
- gboolean _tmp2_;
-#line 338 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = self->priv->exiv2;
+ GExiv2Metadata* _tmp0_;
#line 338 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = gexiv2_metadata_get_supports_exif (_tmp1_);
+ _tmp0_ = self->priv->exiv2;
#line 338 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp2_;
+ result = gexiv2_metadata_get_supports_exif (_tmp0_);
#line 338 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 2892 "PhotoMetadata.c"
+#line 3244 "PhotoMetadata.c"
}
#line 336 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
case METADATA_DOMAIN_XMP:
-#line 2896 "PhotoMetadata.c"
+#line 3248 "PhotoMetadata.c"
{
- GExiv2Metadata* _tmp3_;
- gboolean _tmp4_;
-#line 341 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = self->priv->exiv2;
+ GExiv2Metadata* _tmp1_;
#line 341 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = gexiv2_metadata_get_supports_xmp (_tmp3_);
+ _tmp1_ = self->priv->exiv2;
#line 341 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp4_;
+ result = gexiv2_metadata_get_supports_xmp (_tmp1_);
#line 341 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 2908 "PhotoMetadata.c"
+#line 3257 "PhotoMetadata.c"
}
#line 336 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
case METADATA_DOMAIN_IPTC:
-#line 2912 "PhotoMetadata.c"
+#line 3261 "PhotoMetadata.c"
{
- GExiv2Metadata* _tmp5_;
- gboolean _tmp6_;
-#line 344 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = self->priv->exiv2;
+ GExiv2Metadata* _tmp2_;
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = gexiv2_metadata_get_supports_iptc (_tmp5_);
+ _tmp2_ = self->priv->exiv2;
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp6_;
+ result = gexiv2_metadata_get_supports_iptc (_tmp2_);
#line 344 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 2924 "PhotoMetadata.c"
+#line 3270 "PhotoMetadata.c"
}
default:
#line 336 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
case METADATA_DOMAIN_UNKNOWN:
-#line 2929 "PhotoMetadata.c"
+#line 3275 "PhotoMetadata.c"
{
#line 348 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
result = FALSE;
#line 348 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 2935 "PhotoMetadata.c"
+#line 3281 "PhotoMetadata.c"
}
}
}
-gboolean photo_metadata_can_write_exif (PhotoMetadata* self) {
+gboolean
+photo_metadata_can_write_exif (PhotoMetadata* self)
+{
gboolean result = FALSE;
- gboolean _tmp0_;
#line 352 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE);
#line 353 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = photo_metadata_can_write_to_domain (self, METADATA_DOMAIN_EXIF);
-#line 353 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp0_;
+ result = photo_metadata_can_write_to_domain (self, METADATA_DOMAIN_EXIF);
#line 353 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 2952 "PhotoMetadata.c"
+#line 3297 "PhotoMetadata.c"
}
-gboolean photo_metadata_can_write_xmp (PhotoMetadata* self) {
+gboolean
+photo_metadata_can_write_xmp (PhotoMetadata* self)
+{
gboolean result = FALSE;
- gboolean _tmp0_;
#line 356 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE);
#line 357 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = photo_metadata_can_write_to_domain (self, METADATA_DOMAIN_XMP);
-#line 357 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp0_;
+ result = photo_metadata_can_write_to_domain (self, METADATA_DOMAIN_XMP);
#line 357 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 2967 "PhotoMetadata.c"
+#line 3311 "PhotoMetadata.c"
}
-gboolean photo_metadata_can_write_iptc (PhotoMetadata* self) {
+gboolean
+photo_metadata_can_write_iptc (PhotoMetadata* self)
+{
gboolean result = FALSE;
- gboolean _tmp0_;
#line 360 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE);
#line 361 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = photo_metadata_can_write_to_domain (self, METADATA_DOMAIN_IPTC);
-#line 361 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp0_;
+ result = photo_metadata_can_write_to_domain (self, METADATA_DOMAIN_IPTC);
#line 361 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 2982 "PhotoMetadata.c"
+#line 3325 "PhotoMetadata.c"
}
-gboolean photo_metadata_has_tag (PhotoMetadata* self, const gchar* tag) {
+gboolean
+photo_metadata_has_tag (PhotoMetadata* self,
+ const gchar* tag)
+{
gboolean result = FALSE;
GExiv2Metadata* _tmp0_;
- const gchar* _tmp1_;
- gboolean _tmp2_;
#line 364 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE);
#line 364 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -2994,35 +3338,30 @@ gboolean photo_metadata_has_tag (PhotoMetadata* self, const gchar* tag) {
#line 365 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp0_ = self->priv->exiv2;
#line 365 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = tag;
-#line 365 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = gexiv2_metadata_has_tag (_tmp0_, _tmp1_);
-#line 365 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp2_;
+ result = gexiv2_metadata_has_tag (_tmp0_, tag);
#line 365 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 3005 "PhotoMetadata.c"
+#line 3345 "PhotoMetadata.c"
}
-static GeeSet* photo_metadata_create_string_set (PhotoMetadata* self, GCompareDataFunc compare_func, void* compare_func_target, GDestroyNotify compare_func_target_destroy_notify) {
+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_;
- void* _tmp0__target;
#line 368 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
#line 370 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = compare_func;
-#line 370 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0__target = compare_func_target;
-#line 370 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp0_ == NULL) {
-#line 3021 "PhotoMetadata.c"
- GeeHashSet* _tmp1_;
+ if (compare_func == NULL) {
+#line 3360 "PhotoMetadata.c"
+ GeeHashSet* _tmp0_;
#line 371 "/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);
+ _tmp0_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL);
#line 371 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_SET, GeeSet);
+ result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_SET, GeeSet);
#line 371 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
(compare_func_target_destroy_notify == NULL) ? NULL : (compare_func_target_destroy_notify (compare_func_target), NULL);
#line 371 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -3033,18 +3372,18 @@ static GeeSet* photo_metadata_create_string_set (PhotoMetadata* self, GCompareDa
compare_func_target_destroy_notify = NULL;
#line 371 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 3037 "PhotoMetadata.c"
+#line 3376 "PhotoMetadata.c"
} else {
- GCompareDataFunc _tmp2_;
- void* _tmp2__target;
- GDestroyNotify _tmp2__target_destroy_notify;
- GeeTreeSet* _tmp3_;
+ GCompareDataFunc _tmp1_;
+ void* _tmp1__target;
+ GDestroyNotify _tmp1__target_destroy_notify;
+ GeeTreeSet* _tmp2_;
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = compare_func;
+ _tmp1_ = compare_func;
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2__target = compare_func_target;
+ _tmp1__target = compare_func_target;
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2__target_destroy_notify = compare_func_target_destroy_notify;
+ _tmp1__target_destroy_notify = compare_func_target_destroy_notify;
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
compare_func = NULL;
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -3052,9 +3391,9 @@ static GeeSet* photo_metadata_create_string_set (PhotoMetadata* self, GCompareDa
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
compare_func_target_destroy_notify = NULL;
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = gee_tree_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, _tmp2_, _tmp2__target, _tmp2__target_destroy_notify);
+ _tmp2_ = gee_tree_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, _tmp1_, _tmp1__target, _tmp1__target_destroy_notify);
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_SET, GeeSet);
+ result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_SET, GeeSet);
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
(compare_func_target_destroy_notify == NULL) ? NULL : (compare_func_target_destroy_notify (compare_func_target), NULL);
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -3065,7 +3404,7 @@ static GeeSet* photo_metadata_create_string_set (PhotoMetadata* self, GCompareDa
compare_func_target_destroy_notify = NULL;
#line 373 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 3069 "PhotoMetadata.c"
+#line 3408 "PhotoMetadata.c"
}
#line 368 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
(compare_func_target_destroy_notify == NULL) ? NULL : (compare_func_target_destroy_notify (compare_func_target), NULL);
@@ -3075,26 +3414,31 @@ static GeeSet* photo_metadata_create_string_set (PhotoMetadata* self, GCompareDa
compare_func_target = NULL;
#line 368 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
compare_func_target_destroy_notify = NULL;
-#line 3079 "PhotoMetadata.c"
+#line 3418 "PhotoMetadata.c"
}
-GeeCollection* photo_metadata_get_tags (PhotoMetadata* self, MetadataDomain domain, GCompareDataFunc compare_func, void* compare_func_target, GDestroyNotify compare_func_target_destroy_notify) {
+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;
gint _tags_size_;
- MetadataDomain _tmp0_;
- gboolean _tmp10_ = FALSE;
- gchar** _tmp11_;
- gint _tmp11__length1;
+ gboolean _tmp9_ = FALSE;
+ gchar** _tmp10_;
+ gint _tmp10__length1;
GeeCollection* collection = NULL;
- GCompareDataFunc _tmp13_;
- void* _tmp13__target;
- GDestroyNotify _tmp13__target_destroy_notify;
- GeeSet* _tmp14_;
- gchar** _tmp15_;
- gint _tmp15__length1;
+ GCompareDataFunc _tmp12_;
+ void* _tmp12__target;
+ GDestroyNotify _tmp12__target_destroy_notify;
+ GeeSet* _tmp13_;
+ gchar** _tmp14_;
+ gint _tmp14__length1;
#line 376 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
#line 378 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -3104,105 +3448,103 @@ GeeCollection* photo_metadata_get_tags (PhotoMetadata* self, MetadataDomain doma
#line 378 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tags_size_ = tags_length1;
#line 379 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = domain;
-#line 379 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- switch (_tmp0_) {
+ switch (domain) {
#line 379 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
case METADATA_DOMAIN_EXIF:
-#line 3113 "PhotoMetadata.c"
+#line 3455 "PhotoMetadata.c"
{
- GExiv2Metadata* _tmp1_;
+ GExiv2Metadata* _tmp0_;
+ gchar** _tmp1_;
gchar** _tmp2_;
- gchar** _tmp3_;
#line 381 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = self->priv->exiv2;
+ _tmp0_ = self->priv->exiv2;
#line 381 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = _tmp2_ = gexiv2_metadata_get_exif_tags (_tmp1_);
+ _tmp2_ = _tmp1_ = gexiv2_metadata_get_exif_tags (_tmp0_);
#line 381 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
tags = (_vala_array_free (tags, tags_length1, (GDestroyNotify) g_free), NULL);
#line 381 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tags = _tmp3_;
+ tags = _tmp2_;
#line 381 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tags_length1 = _vala_array_length (_tmp2_);
+ tags_length1 = _vala_array_length (_tmp1_);
#line 381 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tags_size_ = tags_length1;
#line 382 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
break;
-#line 3132 "PhotoMetadata.c"
+#line 3474 "PhotoMetadata.c"
}
#line 379 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
case METADATA_DOMAIN_XMP:
-#line 3136 "PhotoMetadata.c"
+#line 3478 "PhotoMetadata.c"
{
- GExiv2Metadata* _tmp4_;
+ GExiv2Metadata* _tmp3_;
+ gchar** _tmp4_;
gchar** _tmp5_;
- gchar** _tmp6_;
#line 385 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = self->priv->exiv2;
+ _tmp3_ = self->priv->exiv2;
#line 385 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = _tmp5_ = gexiv2_metadata_get_xmp_tags (_tmp4_);
+ _tmp5_ = _tmp4_ = gexiv2_metadata_get_xmp_tags (_tmp3_);
#line 385 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
tags = (_vala_array_free (tags, tags_length1, (GDestroyNotify) g_free), NULL);
#line 385 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tags = _tmp6_;
+ tags = _tmp5_;
#line 385 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tags_length1 = _vala_array_length (_tmp5_);
+ tags_length1 = _vala_array_length (_tmp4_);
#line 385 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tags_size_ = tags_length1;
#line 386 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
break;
-#line 3155 "PhotoMetadata.c"
+#line 3497 "PhotoMetadata.c"
}
#line 379 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
case METADATA_DOMAIN_IPTC:
-#line 3159 "PhotoMetadata.c"
+#line 3501 "PhotoMetadata.c"
{
- GExiv2Metadata* _tmp7_;
+ GExiv2Metadata* _tmp6_;
+ gchar** _tmp7_;
gchar** _tmp8_;
- gchar** _tmp9_;
#line 389 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_ = self->priv->exiv2;
+ _tmp6_ = self->priv->exiv2;
#line 389 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp9_ = _tmp8_ = gexiv2_metadata_get_iptc_tags (_tmp7_);
+ _tmp8_ = _tmp7_ = gexiv2_metadata_get_iptc_tags (_tmp6_);
#line 389 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
tags = (_vala_array_free (tags, tags_length1, (GDestroyNotify) g_free), NULL);
#line 389 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tags = _tmp9_;
+ tags = _tmp8_;
#line 389 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tags_length1 = _vala_array_length (_tmp8_);
+ tags_length1 = _vala_array_length (_tmp7_);
#line 389 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tags_size_ = tags_length1;
#line 390 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
break;
-#line 3178 "PhotoMetadata.c"
+#line 3520 "PhotoMetadata.c"
}
default:
#line 379 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
break;
-#line 3183 "PhotoMetadata.c"
+#line 3525 "PhotoMetadata.c"
}
#line 393 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp11_ = tags;
+ _tmp10_ = tags;
#line 393 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp11__length1 = tags_length1;
+ _tmp10__length1 = tags_length1;
#line 393 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp11_ == NULL) {
+ if (_tmp10_ == NULL) {
#line 393 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp10_ = TRUE;
-#line 3193 "PhotoMetadata.c"
+ _tmp9_ = TRUE;
+#line 3535 "PhotoMetadata.c"
} else {
- gchar** _tmp12_;
- gint _tmp12__length1;
+ gchar** _tmp11_;
+ gint _tmp11__length1;
#line 393 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp12_ = tags;
+ _tmp11_ = tags;
#line 393 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp12__length1 = tags_length1;
+ _tmp11__length1 = tags_length1;
#line 393 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp10_ = _tmp12__length1 == 0;
-#line 3203 "PhotoMetadata.c"
+ _tmp9_ = _tmp11__length1 == 0;
+#line 3545 "PhotoMetadata.c"
}
#line 393 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp10_) {
+ if (_tmp9_) {
#line 394 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
result = NULL;
#line 394 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -3217,14 +3559,14 @@ GeeCollection* photo_metadata_get_tags (PhotoMetadata* self, MetadataDomain doma
compare_func_target_destroy_notify = NULL;
#line 394 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 3221 "PhotoMetadata.c"
+#line 3563 "PhotoMetadata.c"
}
#line 396 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp13_ = compare_func;
+ _tmp12_ = compare_func;
#line 396 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp13__target = compare_func_target;
+ _tmp12__target = compare_func_target;
#line 396 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp13__target_destroy_notify = compare_func_target_destroy_notify;
+ _tmp12__target_destroy_notify = compare_func_target_destroy_notify;
#line 396 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
compare_func = NULL;
#line 396 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -3232,45 +3574,45 @@ GeeCollection* photo_metadata_get_tags (PhotoMetadata* self, MetadataDomain doma
#line 396 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
compare_func_target_destroy_notify = NULL;
#line 396 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp14_ = photo_metadata_create_string_set (self, _tmp13_, _tmp13__target, _tmp13__target_destroy_notify);
+ _tmp13_ = photo_metadata_create_string_set (self, _tmp12_, _tmp12__target, _tmp12__target_destroy_notify);
#line 396 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- collection = G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_COLLECTION, GeeCollection);
+ collection = G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_COLLECTION, GeeCollection);
#line 397 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp15_ = tags;
+ _tmp14_ = tags;
#line 397 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp15__length1 = tags_length1;
-#line 3243 "PhotoMetadata.c"
+ _tmp14__length1 = tags_length1;
+#line 3585 "PhotoMetadata.c"
{
gchar** tag_collection = NULL;
gint tag_collection_length1 = 0;
gint _tag_collection_size_ = 0;
gint tag_it = 0;
#line 397 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tag_collection = _tmp15_;
+ tag_collection = _tmp14_;
#line 397 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tag_collection_length1 = _tmp15__length1;
+ tag_collection_length1 = _tmp14__length1;
#line 397 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- for (tag_it = 0; tag_it < _tmp15__length1; tag_it = tag_it + 1) {
-#line 3255 "PhotoMetadata.c"
- gchar* _tmp16_;
+ for (tag_it = 0; tag_it < _tmp14__length1; tag_it = tag_it + 1) {
+#line 3597 "PhotoMetadata.c"
+ gchar* _tmp15_;
gchar* tag = NULL;
#line 397 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp16_ = g_strdup (tag_collection[tag_it]);
+ _tmp15_ = g_strdup (tag_collection[tag_it]);
#line 397 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tag = _tmp16_;
-#line 3262 "PhotoMetadata.c"
+ tag = _tmp15_;
+#line 3604 "PhotoMetadata.c"
{
- GeeCollection* _tmp17_;
- const gchar* _tmp18_;
+ GeeCollection* _tmp16_;
+ const gchar* _tmp17_;
#line 398 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp17_ = collection;
+ _tmp16_ = collection;
#line 398 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp18_ = tag;
+ _tmp17_ = tag;
#line 398 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- gee_collection_add (_tmp17_, _tmp18_);
+ gee_collection_add (_tmp16_, _tmp17_);
#line 397 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (tag);
-#line 3274 "PhotoMetadata.c"
+#line 3616 "PhotoMetadata.c"
}
}
}
@@ -3288,11 +3630,16 @@ GeeCollection* photo_metadata_get_tags (PhotoMetadata* self, MetadataDomain doma
compare_func_target_destroy_notify = NULL;
#line 400 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 3292 "PhotoMetadata.c"
+#line 3634 "PhotoMetadata.c"
}
-GeeCollection* photo_metadata_get_all_tags (PhotoMetadata* self, GCompareDataFunc compare_func, void* compare_func_target, GDestroyNotify compare_func_target_destroy_notify) {
+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_;
@@ -3342,7 +3689,7 @@ GeeCollection* photo_metadata_get_all_tags (PhotoMetadata* self, GCompareDataFun
_tmp4_ = exif_tags;
#line 408 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp4_ != NULL) {
-#line 3346 "PhotoMetadata.c"
+#line 3693 "PhotoMetadata.c"
GeeCollection* _tmp5_;
gint _tmp6_;
gint _tmp7_;
@@ -3354,15 +3701,15 @@ GeeCollection* photo_metadata_get_all_tags (PhotoMetadata* self, GCompareDataFun
_tmp7_ = _tmp6_;
#line 408 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp3_ = _tmp7_ > 0;
-#line 3358 "PhotoMetadata.c"
+#line 3705 "PhotoMetadata.c"
} else {
#line 408 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp3_ = FALSE;
-#line 3362 "PhotoMetadata.c"
+#line 3709 "PhotoMetadata.c"
}
#line 408 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp3_) {
-#line 3366 "PhotoMetadata.c"
+#line 3713 "PhotoMetadata.c"
GeeCollection* _tmp8_;
GeeCollection* _tmp9_;
#line 409 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -3371,7 +3718,7 @@ GeeCollection* photo_metadata_get_all_tags (PhotoMetadata* self, GCompareDataFun
_tmp9_ = exif_tags;
#line 409 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
gee_collection_add_all (_tmp8_, _tmp9_);
-#line 3375 "PhotoMetadata.c"
+#line 3722 "PhotoMetadata.c"
}
#line 411 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp10_ = photo_metadata_get_tags (self, METADATA_DOMAIN_XMP, NULL, NULL, NULL);
@@ -3381,7 +3728,7 @@ GeeCollection* photo_metadata_get_all_tags (PhotoMetadata* self, GCompareDataFun
_tmp12_ = xmp_tags;
#line 412 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp12_ != NULL) {
-#line 3385 "PhotoMetadata.c"
+#line 3732 "PhotoMetadata.c"
GeeCollection* _tmp13_;
gint _tmp14_;
gint _tmp15_;
@@ -3393,15 +3740,15 @@ GeeCollection* photo_metadata_get_all_tags (PhotoMetadata* self, GCompareDataFun
_tmp15_ = _tmp14_;
#line 412 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp11_ = _tmp15_ > 0;
-#line 3397 "PhotoMetadata.c"
+#line 3744 "PhotoMetadata.c"
} else {
#line 412 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp11_ = FALSE;
-#line 3401 "PhotoMetadata.c"
+#line 3748 "PhotoMetadata.c"
}
#line 412 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp11_) {
-#line 3405 "PhotoMetadata.c"
+#line 3752 "PhotoMetadata.c"
GeeCollection* _tmp16_;
GeeCollection* _tmp17_;
#line 413 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -3410,7 +3757,7 @@ GeeCollection* photo_metadata_get_all_tags (PhotoMetadata* self, GCompareDataFun
_tmp17_ = xmp_tags;
#line 413 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
gee_collection_add_all (_tmp16_, _tmp17_);
-#line 3414 "PhotoMetadata.c"
+#line 3761 "PhotoMetadata.c"
}
#line 415 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp18_ = photo_metadata_get_tags (self, METADATA_DOMAIN_IPTC, NULL, NULL, NULL);
@@ -3420,7 +3767,7 @@ GeeCollection* photo_metadata_get_all_tags (PhotoMetadata* self, GCompareDataFun
_tmp20_ = iptc_tags;
#line 416 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp20_ != NULL) {
-#line 3424 "PhotoMetadata.c"
+#line 3771 "PhotoMetadata.c"
GeeCollection* _tmp21_;
gint _tmp22_;
gint _tmp23_;
@@ -3432,15 +3779,15 @@ GeeCollection* photo_metadata_get_all_tags (PhotoMetadata* self, GCompareDataFun
_tmp23_ = _tmp22_;
#line 416 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp19_ = _tmp23_ > 0;
-#line 3436 "PhotoMetadata.c"
+#line 3783 "PhotoMetadata.c"
} else {
#line 416 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp19_ = FALSE;
-#line 3440 "PhotoMetadata.c"
+#line 3787 "PhotoMetadata.c"
}
#line 416 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp19_) {
-#line 3444 "PhotoMetadata.c"
+#line 3791 "PhotoMetadata.c"
GeeCollection* _tmp24_;
GeeCollection* _tmp25_;
#line 417 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -3449,7 +3796,7 @@ GeeCollection* photo_metadata_get_all_tags (PhotoMetadata* self, GCompareDataFun
_tmp25_ = iptc_tags;
#line 417 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
gee_collection_add_all (_tmp24_, _tmp25_);
-#line 3453 "PhotoMetadata.c"
+#line 3800 "PhotoMetadata.c"
}
#line 419 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp27_ = all_tags;
@@ -3459,17 +3806,17 @@ GeeCollection* photo_metadata_get_all_tags (PhotoMetadata* self, GCompareDataFun
_tmp29_ = _tmp28_;
#line 419 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp29_ > 0) {
-#line 3463 "PhotoMetadata.c"
+#line 3810 "PhotoMetadata.c"
GeeCollection* _tmp30_;
#line 419 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp30_ = all_tags;
#line 419 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp26_ = _tmp30_;
-#line 3469 "PhotoMetadata.c"
+#line 3816 "PhotoMetadata.c"
} else {
#line 419 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp26_ = NULL;
-#line 3473 "PhotoMetadata.c"
+#line 3820 "PhotoMetadata.c"
}
#line 419 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp31_ = _g_object_ref0 (_tmp26_);
@@ -3493,65 +3840,67 @@ GeeCollection* photo_metadata_get_all_tags (PhotoMetadata* self, GCompareDataFun
compare_func_target_destroy_notify = NULL;
#line 419 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 3497 "PhotoMetadata.c"
+#line 3844 "PhotoMetadata.c"
}
-gchar* photo_metadata_get_tag_label (PhotoMetadata* self, const gchar* tag) {
+gchar*
+photo_metadata_get_tag_label (PhotoMetadata* self,
+ const gchar* tag)
+{
gchar* result = NULL;
const gchar* _tmp0_;
- const gchar* _tmp1_;
- gchar* _tmp2_;
+ gchar* _tmp1_;
#line 422 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
#line 422 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (tag != NULL, NULL);
#line 423 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = tag;
+ _tmp0_ = gexiv2_metadata_get_tag_label (tag);
#line 423 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = gexiv2_metadata_get_tag_label (_tmp0_);
-#line 423 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = g_strdup (_tmp1_);
+ _tmp1_ = g_strdup (_tmp0_);
#line 423 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp2_;
+ result = _tmp1_;
#line 423 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 3520 "PhotoMetadata.c"
+#line 3867 "PhotoMetadata.c"
}
-gchar* photo_metadata_get_tag_description (PhotoMetadata* self, const gchar* tag) {
+gchar*
+photo_metadata_get_tag_description (PhotoMetadata* self,
+ const gchar* tag)
+{
gchar* result = NULL;
const gchar* _tmp0_;
- const gchar* _tmp1_;
- gchar* _tmp2_;
+ gchar* _tmp1_;
#line 426 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
#line 426 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (tag != NULL, NULL);
#line 427 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = tag;
-#line 427 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = gexiv2_metadata_get_tag_description (_tmp0_);
+ _tmp0_ = gexiv2_metadata_get_tag_description (tag);
#line 427 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = g_strdup (_tmp1_);
+ _tmp1_ = g_strdup (_tmp0_);
#line 427 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp2_;
+ result = _tmp1_;
#line 427 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 3543 "PhotoMetadata.c"
+#line 3890 "PhotoMetadata.c"
}
-gchar* photo_metadata_get_string (PhotoMetadata* self, const gchar* tag, PrepareInputTextOptions options) {
+gchar*
+photo_metadata_get_string (PhotoMetadata* self,
+ const gchar* tag,
+ PrepareInputTextOptions options)
+{
gchar* result = NULL;
GExiv2Metadata* _tmp0_;
- const gchar* _tmp1_;
+ gchar* _tmp1_;
gchar* _tmp2_;
gchar* _tmp3_;
- PrepareInputTextOptions _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
+ gchar* _tmp4_;
#line 430 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
#line 430 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -3559,36 +3908,34 @@ gchar* photo_metadata_get_string (PhotoMetadata* self, const gchar* tag, Prepare
#line 431 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp0_ = self->priv->exiv2;
#line 431 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = tag;
+ _tmp1_ = gexiv2_metadata_get_tag_string (_tmp0_, tag);
#line 431 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = gexiv2_metadata_get_tag_string (_tmp0_, _tmp1_);
+ _tmp2_ = _tmp1_;
#line 431 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = _tmp2_;
-#line 431 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = options;
+ _tmp3_ = prepare_input_text (_tmp2_, options, DEFAULT_USER_TEXT_INPUT_LENGTH);
#line 431 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = prepare_input_text (_tmp3_, _tmp4_, DEFAULT_USER_TEXT_INPUT_LENGTH);
-#line 431 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = _tmp5_;
+ _tmp4_ = _tmp3_;
#line 431 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (_tmp3_);
+ _g_free0 (_tmp2_);
#line 431 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp6_;
+ result = _tmp4_;
#line 431 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 3580 "PhotoMetadata.c"
+#line 3925 "PhotoMetadata.c"
}
-gchar* photo_metadata_get_string_interpreted (PhotoMetadata* self, const gchar* tag, PrepareInputTextOptions options) {
+gchar*
+photo_metadata_get_string_interpreted (PhotoMetadata* self,
+ const gchar* tag,
+ PrepareInputTextOptions options)
+{
gchar* result = NULL;
GExiv2Metadata* _tmp0_;
- const gchar* _tmp1_;
+ gchar* _tmp1_;
gchar* _tmp2_;
gchar* _tmp3_;
- PrepareInputTextOptions _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
+ gchar* _tmp4_;
#line 434 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
#line 434 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -3596,85 +3943,79 @@ gchar* photo_metadata_get_string_interpreted (PhotoMetadata* self, const gchar*
#line 435 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp0_ = self->priv->exiv2;
#line 435 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = tag;
-#line 435 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = gexiv2_metadata_get_tag_interpreted_string (_tmp0_, _tmp1_);
-#line 435 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = _tmp2_;
+ _tmp1_ = gexiv2_metadata_get_tag_interpreted_string (_tmp0_, tag);
#line 435 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = options;
+ _tmp2_ = _tmp1_;
#line 435 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = prepare_input_text (_tmp3_, _tmp4_, DEFAULT_USER_TEXT_INPUT_LENGTH);
+ _tmp3_ = prepare_input_text (_tmp2_, options, DEFAULT_USER_TEXT_INPUT_LENGTH);
#line 435 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = _tmp5_;
+ _tmp4_ = _tmp3_;
#line 435 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (_tmp3_);
+ _g_free0 (_tmp2_);
#line 435 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp6_;
+ result = _tmp4_;
#line 435 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 3617 "PhotoMetadata.c"
+#line 3960 "PhotoMetadata.c"
}
-gchar* photo_metadata_get_first_string (PhotoMetadata* self, gchar** tags, int tags_length1) {
+gchar*
+photo_metadata_get_first_string (PhotoMetadata* self,
+ gchar** tags,
+ int tags_length1)
+{
gchar* result = NULL;
- gchar** _tmp0_;
- gint _tmp0__length1;
#line 438 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
-#line 439 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = tags;
-#line 439 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0__length1 = tags_length1;
-#line 3631 "PhotoMetadata.c"
+#line 3972 "PhotoMetadata.c"
{
gchar** tag_collection = NULL;
gint tag_collection_length1 = 0;
gint _tag_collection_size_ = 0;
gint tag_it = 0;
#line 439 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tag_collection = _tmp0_;
+ tag_collection = tags;
#line 439 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tag_collection_length1 = _tmp0__length1;
+ tag_collection_length1 = tags_length1;
#line 439 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- for (tag_it = 0; tag_it < _tmp0__length1; tag_it = tag_it + 1) {
-#line 3643 "PhotoMetadata.c"
- gchar* _tmp1_;
+ for (tag_it = 0; tag_it < tags_length1; tag_it = tag_it + 1) {
+#line 3984 "PhotoMetadata.c"
+ gchar* _tmp0_;
gchar* tag = NULL;
#line 439 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = g_strdup (tag_collection[tag_it]);
+ _tmp0_ = g_strdup (tag_collection[tag_it]);
#line 439 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tag = _tmp1_;
-#line 3650 "PhotoMetadata.c"
+ tag = _tmp0_;
+#line 3991 "PhotoMetadata.c"
{
gchar* value = NULL;
- const gchar* _tmp2_;
- gchar* _tmp3_;
- const gchar* _tmp4_;
+ const gchar* _tmp1_;
+ gchar* _tmp2_;
+ const gchar* _tmp3_;
#line 440 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = tag;
+ _tmp1_ = tag;
#line 440 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = photo_metadata_get_string (self, _tmp2_, PHOTO_METADATA_PREPARE_STRING_OPTIONS);
+ _tmp2_ = photo_metadata_get_string (self, _tmp1_, PHOTO_METADATA_PREPARE_STRING_OPTIONS);
#line 440 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- value = _tmp3_;
+ value = _tmp2_;
#line 441 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = value;
+ _tmp3_ = value;
#line 441 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp4_ != NULL) {
+ if (_tmp3_ != NULL) {
#line 442 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
result = value;
#line 442 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (tag);
#line 442 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 3672 "PhotoMetadata.c"
+#line 4013 "PhotoMetadata.c"
}
#line 439 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (value);
#line 439 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (tag);
-#line 3678 "PhotoMetadata.c"
+#line 4019 "PhotoMetadata.c"
}
}
}
@@ -3682,68 +4023,66 @@ gchar* photo_metadata_get_first_string (PhotoMetadata* self, gchar** tags, int t
result = NULL;
#line 445 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 3686 "PhotoMetadata.c"
+#line 4027 "PhotoMetadata.c"
}
-gchar* photo_metadata_get_first_string_interpreted (PhotoMetadata* self, gchar** tags, int tags_length1) {
+gchar*
+photo_metadata_get_first_string_interpreted (PhotoMetadata* self,
+ gchar** tags,
+ int tags_length1)
+{
gchar* result = NULL;
- gchar** _tmp0_;
- gint _tmp0__length1;
#line 448 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
-#line 449 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = tags;
-#line 449 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0__length1 = tags_length1;
-#line 3700 "PhotoMetadata.c"
+#line 4039 "PhotoMetadata.c"
{
gchar** tag_collection = NULL;
gint tag_collection_length1 = 0;
gint _tag_collection_size_ = 0;
gint tag_it = 0;
#line 449 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tag_collection = _tmp0_;
+ tag_collection = tags;
#line 449 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tag_collection_length1 = _tmp0__length1;
+ tag_collection_length1 = tags_length1;
#line 449 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- for (tag_it = 0; tag_it < _tmp0__length1; tag_it = tag_it + 1) {
-#line 3712 "PhotoMetadata.c"
- gchar* _tmp1_;
+ for (tag_it = 0; tag_it < tags_length1; tag_it = tag_it + 1) {
+#line 4051 "PhotoMetadata.c"
+ gchar* _tmp0_;
gchar* tag = NULL;
#line 449 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = g_strdup (tag_collection[tag_it]);
+ _tmp0_ = g_strdup (tag_collection[tag_it]);
#line 449 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tag = _tmp1_;
-#line 3719 "PhotoMetadata.c"
+ tag = _tmp0_;
+#line 4058 "PhotoMetadata.c"
{
gchar* value = NULL;
- const gchar* _tmp2_;
- gchar* _tmp3_;
- const gchar* _tmp4_;
+ const gchar* _tmp1_;
+ gchar* _tmp2_;
+ const gchar* _tmp3_;
#line 450 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = tag;
+ _tmp1_ = tag;
#line 450 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = photo_metadata_get_string_interpreted (self, _tmp2_, PHOTO_METADATA_PREPARE_STRING_OPTIONS);
+ _tmp2_ = photo_metadata_get_string_interpreted (self, _tmp1_, PHOTO_METADATA_PREPARE_STRING_OPTIONS);
#line 450 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- value = _tmp3_;
+ value = _tmp2_;
#line 451 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = value;
+ _tmp3_ = value;
#line 451 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp4_ != NULL) {
+ if (_tmp3_ != NULL) {
#line 452 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
result = value;
#line 452 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (tag);
#line 452 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 3741 "PhotoMetadata.c"
+#line 4080 "PhotoMetadata.c"
}
#line 449 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (value);
#line 449 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (tag);
-#line 3747 "PhotoMetadata.c"
+#line 4086 "PhotoMetadata.c"
}
}
}
@@ -3751,33 +4090,35 @@ gchar* photo_metadata_get_first_string_interpreted (PhotoMetadata* self, gchar**
result = NULL;
#line 455 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 3755 "PhotoMetadata.c"
+#line 4094 "PhotoMetadata.c"
}
-GeeList* photo_metadata_get_string_multiple (PhotoMetadata* self, const gchar* tag) {
+GeeList*
+photo_metadata_get_string_multiple (PhotoMetadata* self,
+ const gchar* tag)
+{
GeeList* result = NULL;
gchar** values = NULL;
GExiv2Metadata* _tmp0_;
- const gchar* _tmp1_;
+ gchar** _tmp1_;
gchar** _tmp2_;
- gchar** _tmp3_;
gint values_length1;
gint _values_size_;
- gboolean _tmp4_ = FALSE;
- gchar** _tmp5_;
- gint _tmp5__length1;
+ gboolean _tmp3_ = FALSE;
+ gchar** _tmp4_;
+ gint _tmp4__length1;
GeeList* list = NULL;
- GeeArrayList* _tmp7_;
+ GeeArrayList* _tmp6_;
GeeHashSet* collection = NULL;
- GeeHashSet* _tmp8_;
- gchar** _tmp9_;
- gint _tmp9__length1;
- GeeList* _tmp22_ = NULL;
- GeeList* _tmp23_;
- gint _tmp24_;
- gint _tmp25_;
- GeeList* _tmp27_;
+ GeeHashSet* _tmp7_;
+ gchar** _tmp8_;
+ gint _tmp8__length1;
+ GeeList* _tmp20_ = NULL;
+ GeeList* _tmp21_;
+ gint _tmp22_;
+ gint _tmp23_;
+ GeeList* _tmp25_;
#line 464 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
#line 464 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -3785,164 +4126,159 @@ GeeList* photo_metadata_get_string_multiple (PhotoMetadata* self, const gchar* t
#line 465 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp0_ = self->priv->exiv2;
#line 465 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = tag;
+ _tmp2_ = _tmp1_ = gexiv2_metadata_get_tag_multiple (_tmp0_, tag);
#line 465 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = _tmp2_ = gexiv2_metadata_get_tag_multiple (_tmp0_, _tmp1_);
+ values = _tmp2_;
#line 465 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- values = _tmp3_;
-#line 465 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- values_length1 = _vala_array_length (_tmp2_);
+ values_length1 = _vala_array_length (_tmp1_);
#line 465 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_values_size_ = values_length1;
#line 466 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = values;
+ _tmp4_ = values;
#line 466 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5__length1 = values_length1;
+ _tmp4__length1 = values_length1;
#line 466 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp5_ == NULL) {
+ if (_tmp4_ == NULL) {
#line 466 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = TRUE;
-#line 3806 "PhotoMetadata.c"
+ _tmp3_ = TRUE;
+#line 4145 "PhotoMetadata.c"
} else {
- gchar** _tmp6_;
- gint _tmp6__length1;
+ gchar** _tmp5_;
+ gint _tmp5__length1;
#line 466 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = values;
+ _tmp5_ = values;
#line 466 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6__length1 = values_length1;
+ _tmp5__length1 = values_length1;
#line 466 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = _tmp6__length1 == 0;
-#line 3816 "PhotoMetadata.c"
+ _tmp3_ = _tmp5__length1 == 0;
+#line 4155 "PhotoMetadata.c"
}
#line 466 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp4_) {
+ if (_tmp3_) {
#line 467 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
result = NULL;
#line 467 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
values = (_vala_array_free (values, values_length1, (GDestroyNotify) g_free), NULL);
#line 467 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 3826 "PhotoMetadata.c"
+#line 4165 "PhotoMetadata.c"
}
#line 469 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL);
+ _tmp6_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL);
#line 469 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- list = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_LIST, GeeList);
+ list = G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_LIST, GeeList);
#line 471 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp8_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL);
+ _tmp7_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL);
#line 471 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- collection = _tmp8_;
+ collection = _tmp7_;
#line 472 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp9_ = values;
+ _tmp8_ = values;
#line 472 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp9__length1 = values_length1;
-#line 3840 "PhotoMetadata.c"
+ _tmp8__length1 = values_length1;
+#line 4179 "PhotoMetadata.c"
{
gchar** value_collection = NULL;
gint value_collection_length1 = 0;
gint _value_collection_size_ = 0;
gint value_it = 0;
#line 472 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- value_collection = _tmp9_;
+ value_collection = _tmp8_;
#line 472 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- value_collection_length1 = _tmp9__length1;
+ value_collection_length1 = _tmp8__length1;
#line 472 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- for (value_it = 0; value_it < _tmp9__length1; value_it = value_it + 1) {
-#line 3852 "PhotoMetadata.c"
- gchar* _tmp10_;
+ for (value_it = 0; value_it < _tmp8__length1; value_it = value_it + 1) {
+#line 4191 "PhotoMetadata.c"
+ gchar* _tmp9_;
gchar* value = NULL;
#line 472 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp10_ = g_strdup (value_collection[value_it]);
+ _tmp9_ = g_strdup (value_collection[value_it]);
#line 472 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- value = _tmp10_;
-#line 3859 "PhotoMetadata.c"
+ value = _tmp9_;
+#line 4198 "PhotoMetadata.c"
{
gchar* prepped = NULL;
- const gchar* _tmp11_;
- gchar* _tmp12_;
- gboolean _tmp13_ = FALSE;
- const gchar* _tmp14_;
+ const gchar* _tmp10_;
+ gchar* _tmp11_;
+ gboolean _tmp12_ = FALSE;
+ const gchar* _tmp13_;
#line 473 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp11_ = value;
+ _tmp10_ = value;
#line 473 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp12_ = prepare_input_text (_tmp11_, PHOTO_METADATA_PREPARE_STRING_OPTIONS, DEFAULT_USER_TEXT_INPUT_LENGTH);
+ _tmp11_ = prepare_input_text (_tmp10_, PHOTO_METADATA_PREPARE_STRING_OPTIONS, DEFAULT_USER_TEXT_INPUT_LENGTH);
#line 473 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- prepped = _tmp12_;
-#line 476 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp14_ = prepped;
+ prepped = _tmp11_;
#line 476 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp14_ != NULL) {
-#line 3876 "PhotoMetadata.c"
- GeeHashSet* _tmp15_;
- const gchar* _tmp16_;
- gboolean _tmp17_;
+ _tmp13_ = prepped;
#line 476 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp15_ = collection;
+ if (_tmp13_ != NULL) {
+#line 4215 "PhotoMetadata.c"
+ GeeHashSet* _tmp14_;
+ const gchar* _tmp15_;
#line 476 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp16_ = prepped;
+ _tmp14_ = collection;
#line 476 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp17_ = gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp16_);
+ _tmp15_ = prepped;
#line 476 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp13_ = !_tmp17_;
-#line 3888 "PhotoMetadata.c"
+ _tmp12_ = !gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp15_);
+#line 4224 "PhotoMetadata.c"
} else {
#line 476 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp13_ = FALSE;
-#line 3892 "PhotoMetadata.c"
+ _tmp12_ = FALSE;
+#line 4228 "PhotoMetadata.c"
}
#line 476 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp13_) {
-#line 3896 "PhotoMetadata.c"
- GeeList* _tmp18_;
+ if (_tmp12_) {
+#line 4232 "PhotoMetadata.c"
+ GeeList* _tmp16_;
+ const gchar* _tmp17_;
+ GeeHashSet* _tmp18_;
const gchar* _tmp19_;
- GeeHashSet* _tmp20_;
- const gchar* _tmp21_;
#line 477 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp18_ = list;
+ _tmp16_ = list;
#line 477 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp19_ = prepped;
+ _tmp17_ = prepped;
#line 477 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_COLLECTION, GeeCollection), _tmp19_);
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_COLLECTION, GeeCollection), _tmp17_);
#line 478 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp20_ = collection;
+ _tmp18_ = collection;
#line 478 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp21_ = prepped;
+ _tmp19_ = prepped;
#line 478 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp21_);
-#line 3913 "PhotoMetadata.c"
+ gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp19_);
+#line 4249 "PhotoMetadata.c"
}
#line 472 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (prepped);
#line 472 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (value);
-#line 3919 "PhotoMetadata.c"
+#line 4255 "PhotoMetadata.c"
}
}
}
#line 482 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp23_ = list;
+ _tmp21_ = list;
#line 482 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp24_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_COLLECTION, GeeCollection));
+ _tmp22_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_COLLECTION, GeeCollection));
#line 482 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp25_ = _tmp24_;
+ _tmp23_ = _tmp22_;
#line 482 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp25_ > 0) {
-#line 3931 "PhotoMetadata.c"
- GeeList* _tmp26_;
+ if (_tmp23_ > 0) {
+#line 4267 "PhotoMetadata.c"
+ GeeList* _tmp24_;
#line 482 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp26_ = list;
+ _tmp24_ = list;
#line 482 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp22_ = _tmp26_;
-#line 3937 "PhotoMetadata.c"
+ _tmp20_ = _tmp24_;
+#line 4273 "PhotoMetadata.c"
} else {
#line 482 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp22_ = NULL;
-#line 3941 "PhotoMetadata.c"
+ _tmp20_ = NULL;
+#line 4277 "PhotoMetadata.c"
}
#line 482 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp27_ = _g_object_ref0 (_tmp22_);
+ _tmp25_ = _g_object_ref0 (_tmp20_);
#line 482 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp27_;
+ result = _tmp25_;
#line 482 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_object_unref0 (collection);
#line 482 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -3951,89 +4287,87 @@ GeeList* photo_metadata_get_string_multiple (PhotoMetadata* self, const gchar* t
values = (_vala_array_free (values, values_length1, (GDestroyNotify) g_free), NULL);
#line 482 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 3955 "PhotoMetadata.c"
+#line 4291 "PhotoMetadata.c"
}
-GeeList* photo_metadata_get_first_string_multiple (PhotoMetadata* self, gchar** tags, int tags_length1) {
+GeeList*
+photo_metadata_get_first_string_multiple (PhotoMetadata* self,
+ gchar** tags,
+ int tags_length1)
+{
GeeList* result = NULL;
- gchar** _tmp0_;
- gint _tmp0__length1;
#line 491 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
-#line 492 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = tags;
-#line 492 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0__length1 = tags_length1;
-#line 3969 "PhotoMetadata.c"
+#line 4303 "PhotoMetadata.c"
{
gchar** tag_collection = NULL;
gint tag_collection_length1 = 0;
gint _tag_collection_size_ = 0;
gint tag_it = 0;
#line 492 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tag_collection = _tmp0_;
+ tag_collection = tags;
#line 492 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tag_collection_length1 = _tmp0__length1;
+ tag_collection_length1 = tags_length1;
#line 492 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- for (tag_it = 0; tag_it < _tmp0__length1; tag_it = tag_it + 1) {
-#line 3981 "PhotoMetadata.c"
- gchar* _tmp1_;
+ for (tag_it = 0; tag_it < tags_length1; tag_it = tag_it + 1) {
+#line 4315 "PhotoMetadata.c"
+ gchar* _tmp0_;
gchar* tag = NULL;
#line 492 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = g_strdup (tag_collection[tag_it]);
+ _tmp0_ = g_strdup (tag_collection[tag_it]);
#line 492 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tag = _tmp1_;
-#line 3988 "PhotoMetadata.c"
+ tag = _tmp0_;
+#line 4322 "PhotoMetadata.c"
{
GeeList* values = NULL;
- const gchar* _tmp2_;
- GeeList* _tmp3_;
- gboolean _tmp4_ = FALSE;
- GeeList* _tmp5_;
+ const gchar* _tmp1_;
+ GeeList* _tmp2_;
+ gboolean _tmp3_ = FALSE;
+ GeeList* _tmp4_;
#line 493 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = tag;
+ _tmp1_ = tag;
#line 493 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = photo_metadata_get_string_multiple (self, _tmp2_);
+ _tmp2_ = photo_metadata_get_string_multiple (self, _tmp1_);
#line 493 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- values = _tmp3_;
+ values = _tmp2_;
#line 494 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = values;
+ _tmp4_ = values;
#line 494 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp5_ != NULL) {
-#line 4005 "PhotoMetadata.c"
- GeeList* _tmp6_;
+ if (_tmp4_ != NULL) {
+#line 4339 "PhotoMetadata.c"
+ GeeList* _tmp5_;
+ gint _tmp6_;
gint _tmp7_;
- gint _tmp8_;
#line 494 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = values;
+ _tmp5_ = values;
#line 494 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection));
+ _tmp6_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection));
#line 494 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp8_ = _tmp7_;
+ _tmp7_ = _tmp6_;
#line 494 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = _tmp8_ > 0;
-#line 4017 "PhotoMetadata.c"
+ _tmp3_ = _tmp7_ > 0;
+#line 4351 "PhotoMetadata.c"
} else {
#line 494 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = FALSE;
-#line 4021 "PhotoMetadata.c"
+ _tmp3_ = FALSE;
+#line 4355 "PhotoMetadata.c"
}
#line 494 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp4_) {
+ if (_tmp3_) {
#line 495 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
result = values;
#line 495 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (tag);
#line 495 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 4031 "PhotoMetadata.c"
+#line 4365 "PhotoMetadata.c"
}
#line 492 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_object_unref0 (values);
#line 492 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (tag);
-#line 4037 "PhotoMetadata.c"
+#line 4371 "PhotoMetadata.c"
}
}
}
@@ -4041,20 +4375,21 @@ GeeList* photo_metadata_get_first_string_multiple (PhotoMetadata* self, gchar**
result = NULL;
#line 498 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 4045 "PhotoMetadata.c"
+#line 4379 "PhotoMetadata.c"
}
-void photo_metadata_set_string (PhotoMetadata* self, const gchar* tag, const gchar* value, PrepareInputTextOptions options) {
+void
+photo_metadata_set_string (PhotoMetadata* self,
+ const gchar* tag,
+ const gchar* value,
+ PrepareInputTextOptions options)
+{
gchar* prepped = NULL;
- const gchar* _tmp0_;
- PrepareInputTextOptions _tmp1_;
- gchar* _tmp2_;
+ gchar* _tmp0_;
+ const gchar* _tmp1_;
+ GExiv2Metadata* _tmp2_;
const gchar* _tmp3_;
- GExiv2Metadata* _tmp6_;
- const gchar* _tmp7_;
- const gchar* _tmp8_;
- gboolean _tmp9_;
#line 501 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
#line 501 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -4062,296 +4397,203 @@ void photo_metadata_set_string (PhotoMetadata* self, const gchar* tag, const gch
#line 501 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (value != NULL);
#line 502 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = value;
-#line 502 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = options;
-#line 502 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = prepare_input_text (_tmp0_, _tmp1_, DEFAULT_USER_TEXT_INPUT_LENGTH);
+ _tmp0_ = prepare_input_text (value, options, DEFAULT_USER_TEXT_INPUT_LENGTH);
#line 502 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- prepped = _tmp2_;
+ prepped = _tmp0_;
#line 503 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = prepped;
+ _tmp1_ = prepped;
#line 503 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp3_ == NULL) {
-#line 4077 "PhotoMetadata.c"
- const gchar* _tmp4_;
- const gchar* _tmp5_;
-#line 504 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = tag;
-#line 504 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = value;
+ if (_tmp1_ == NULL) {
#line 504 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_warning ("PhotoMetadata.vala:504: Not setting tag %s to string %s: invalid UTF-8", _tmp4_, _tmp5_);
+ g_warning ("PhotoMetadata.vala:504: Not setting tag %s to string %s: invalid UTF-8", tag, value);
#line 506 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (prepped);
#line 506 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return;
-#line 4090 "PhotoMetadata.c"
+#line 4414 "PhotoMetadata.c"
}
#line 509 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = self->priv->exiv2;
-#line 509 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_ = tag;
-#line 509 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp8_ = prepped;
+ _tmp2_ = self->priv->exiv2;
#line 509 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp9_ = gexiv2_metadata_set_tag_string (_tmp6_, _tmp7_, _tmp8_);
+ _tmp3_ = prepped;
#line 509 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!_tmp9_) {
-#line 4102 "PhotoMetadata.c"
- const gchar* _tmp10_;
- const gchar* _tmp11_;
- const gchar* _tmp12_;
-#line 510 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp10_ = tag;
-#line 510 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp11_ = value;
+ if (!gexiv2_metadata_set_tag_string (_tmp2_, tag, _tmp3_)) {
+#line 4422 "PhotoMetadata.c"
+ const gchar* _tmp4_;
#line 510 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp12_ = self->priv->source_name;
+ _tmp4_ = self->priv->source_name;
#line 510 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_warning ("PhotoMetadata.vala:510: Unable to set tag %s to string %s from source " \
-"%s", _tmp10_, _tmp11_, _tmp12_);
-#line 4114 "PhotoMetadata.c"
+"%s", tag, value, _tmp4_);
+#line 4428 "PhotoMetadata.c"
}
#line 501 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (prepped);
-#line 4118 "PhotoMetadata.c"
+#line 4432 "PhotoMetadata.c"
}
-static void photo_metadata_set_all_generic (PhotoMetadata* self, gchar** tags, int tags_length1, PhotoMetadataSetOption option, PhotoMetadataSetGenericValue setter, void* setter_target) {
+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_;
- gint _tmp0__length1;
- gboolean _tmp9_ = FALSE;
- gboolean _tmp10_ = FALSE;
- PhotoMetadataSetOption _tmp11_;
+ gboolean _tmp4_ = FALSE;
+ gboolean _tmp5_ = FALSE;
#line 515 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
#line 516 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
written = FALSE;
-#line 517 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = tags;
-#line 517 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0__length1 = tags_length1;
-#line 4137 "PhotoMetadata.c"
+#line 4451 "PhotoMetadata.c"
{
gchar** tag_collection = NULL;
gint tag_collection_length1 = 0;
gint _tag_collection_size_ = 0;
gint tag_it = 0;
#line 517 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tag_collection = _tmp0_;
+ tag_collection = tags;
#line 517 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tag_collection_length1 = _tmp0__length1;
+ tag_collection_length1 = tags_length1;
#line 517 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- for (tag_it = 0; tag_it < _tmp0__length1; tag_it = tag_it + 1) {
-#line 4149 "PhotoMetadata.c"
- gchar* _tmp1_;
+ for (tag_it = 0; tag_it < tags_length1; tag_it = tag_it + 1) {
+#line 4463 "PhotoMetadata.c"
+ gchar* _tmp0_;
gchar* tag = NULL;
#line 517 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = g_strdup (tag_collection[tag_it]);
+ _tmp0_ = g_strdup (tag_collection[tag_it]);
#line 517 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tag = _tmp1_;
-#line 4156 "PhotoMetadata.c"
+ tag = _tmp0_;
+#line 4470 "PhotoMetadata.c"
{
- gboolean _tmp2_ = FALSE;
- PhotoMetadataSetOption _tmp3_;
-#line 518 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = option;
+ gboolean _tmp1_ = FALSE;
#line 518 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp3_ == PHOTO_METADATA_SET_OPTION_ALL_DOMAINS) {
+ if (option == PHOTO_METADATA_SET_OPTION_ALL_DOMAINS) {
#line 518 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = TRUE;
-#line 4166 "PhotoMetadata.c"
+ _tmp1_ = TRUE;
+#line 4477 "PhotoMetadata.c"
} else {
- const gchar* _tmp4_;
- MetadataDomain _tmp5_;
- gboolean _tmp6_;
-#line 518 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = tag;
-#line 518 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = photo_metadata_get_tag_domain (_tmp4_);
+ const gchar* _tmp2_;
#line 518 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = photo_metadata_has_domain (self, _tmp5_);
+ _tmp2_ = tag;
#line 518 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = _tmp6_;
-#line 4179 "PhotoMetadata.c"
+ _tmp1_ = photo_metadata_has_domain (self, photo_metadata_get_tag_domain (_tmp2_));
+#line 4484 "PhotoMetadata.c"
}
#line 518 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp2_) {
-#line 4183 "PhotoMetadata.c"
- PhotoMetadataSetGenericValue _tmp7_;
- void* _tmp7__target;
- const gchar* _tmp8_;
-#line 519 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_ = setter;
-#line 519 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7__target = setter_target;
+ if (_tmp1_) {
+#line 4488 "PhotoMetadata.c"
+ const gchar* _tmp3_;
#line 519 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp8_ = tag;
+ _tmp3_ = tag;
#line 519 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_ (_tmp8_, _tmp7__target);
+ setter (_tmp3_, setter_target);
#line 520 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
written = TRUE;
-#line 4197 "PhotoMetadata.c"
+#line 4496 "PhotoMetadata.c"
}
#line 517 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (tag);
-#line 4201 "PhotoMetadata.c"
+#line 4500 "PhotoMetadata.c"
}
}
}
#line 524 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp11_ = option;
+ if (option == PHOTO_METADATA_SET_OPTION_AT_LEAST_DEFAULT_DOMAIN) {
+#line 4506 "PhotoMetadata.c"
+ gboolean _tmp6_;
#line 524 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp11_ == PHOTO_METADATA_SET_OPTION_AT_LEAST_DEFAULT_DOMAIN) {
-#line 4209 "PhotoMetadata.c"
- gboolean _tmp12_;
+ _tmp6_ = written;
#line 524 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp12_ = written;
-#line 524 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp10_ = !_tmp12_;
-#line 4215 "PhotoMetadata.c"
+ _tmp5_ = !_tmp6_;
+#line 4512 "PhotoMetadata.c"
} else {
#line 524 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp10_ = FALSE;
-#line 4219 "PhotoMetadata.c"
+ _tmp5_ = FALSE;
+#line 4516 "PhotoMetadata.c"
}
#line 524 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp10_) {
-#line 4223 "PhotoMetadata.c"
- gchar** _tmp13_;
- gint _tmp13__length1;
-#line 524 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp13_ = tags;
-#line 524 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp13__length1 = tags_length1;
+ if (_tmp5_) {
#line 524 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp9_ = _tmp13__length1 > 0;
-#line 4232 "PhotoMetadata.c"
+ _tmp4_ = tags_length1 > 0;
+#line 4522 "PhotoMetadata.c"
} else {
#line 524 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp9_ = FALSE;
-#line 4236 "PhotoMetadata.c"
+ _tmp4_ = FALSE;
+#line 4526 "PhotoMetadata.c"
}
#line 524 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp9_) {
-#line 4240 "PhotoMetadata.c"
+ if (_tmp4_) {
+#line 4530 "PhotoMetadata.c"
MetadataDomain default_domain = 0;
- gchar** _tmp14_;
- gint _tmp14__length1;
- const gchar* _tmp15_;
- MetadataDomain _tmp16_;
- PhotoMetadataSetGenericValue _tmp17_;
- void* _tmp17__target;
- gchar** _tmp18_;
- gint _tmp18__length1;
- const gchar* _tmp19_;
-#line 525 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp14_ = tags;
-#line 525 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp14__length1 = tags_length1;
-#line 525 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp15_ = _tmp14_[0];
+ const gchar* _tmp7_;
+ const gchar* _tmp8_;
#line 525 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp16_ = photo_metadata_get_tag_domain (_tmp15_);
+ _tmp7_ = tags[0];
#line 525 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- default_domain = _tmp16_;
-#line 528 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp17_ = setter;
-#line 528 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp17__target = setter_target;
-#line 528 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp18_ = tags;
+ default_domain = photo_metadata_get_tag_domain (_tmp7_);
#line 528 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp18__length1 = tags_length1;
+ _tmp8_ = tags[0];
#line 528 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp19_ = _tmp18_[0];
-#line 528 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp17_ (_tmp19_, _tmp17__target);
-#line 4273 "PhotoMetadata.c"
+ setter (_tmp8_, setter_target);
+#line 4542 "PhotoMetadata.c"
{
gint ctr = 0;
#line 531 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
ctr = 1;
-#line 4278 "PhotoMetadata.c"
+#line 4547 "PhotoMetadata.c"
{
- gboolean _tmp20_ = FALSE;
+ gboolean _tmp9_ = FALSE;
#line 531 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp20_ = TRUE;
+ _tmp9_ = TRUE;
#line 531 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
while (TRUE) {
-#line 4285 "PhotoMetadata.c"
- gint _tmp22_;
- gchar** _tmp23_;
- gint _tmp23__length1;
- gchar** _tmp24_;
- gint _tmp24__length1;
- gint _tmp25_;
- const gchar* _tmp26_;
- MetadataDomain _tmp27_;
- MetadataDomain _tmp28_;
+#line 4554 "PhotoMetadata.c"
+ gint _tmp11_;
+ gint _tmp12_;
+ const gchar* _tmp13_;
+ MetadataDomain _tmp14_;
#line 531 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!_tmp20_) {
-#line 4297 "PhotoMetadata.c"
- gint _tmp21_;
+ if (!_tmp9_) {
+#line 4561 "PhotoMetadata.c"
+ gint _tmp10_;
#line 531 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp21_ = ctr;
+ _tmp10_ = ctr;
#line 531 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- ctr = _tmp21_ + 1;
-#line 4303 "PhotoMetadata.c"
+ ctr = _tmp10_ + 1;
+#line 4567 "PhotoMetadata.c"
}
#line 531 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp20_ = FALSE;
+ _tmp9_ = FALSE;
#line 531 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp22_ = ctr;
+ _tmp11_ = ctr;
#line 531 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp23_ = tags;
-#line 531 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp23__length1 = tags_length1;
-#line 531 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!(_tmp22_ < _tmp23__length1)) {
+ if (!(_tmp11_ < tags_length1)) {
#line 531 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
break;
-#line 4317 "PhotoMetadata.c"
+#line 4577 "PhotoMetadata.c"
}
#line 532 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp24_ = tags;
-#line 532 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp24__length1 = tags_length1;
-#line 532 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp25_ = ctr;
+ _tmp12_ = ctr;
#line 532 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp26_ = _tmp24_[_tmp25_];
+ _tmp13_ = tags[_tmp12_];
#line 532 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp27_ = photo_metadata_get_tag_domain (_tmp26_);
+ _tmp14_ = default_domain;
#line 532 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp28_ = default_domain;
-#line 532 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp27_ == _tmp28_) {
-#line 4333 "PhotoMetadata.c"
- PhotoMetadataSetGenericValue _tmp29_;
- void* _tmp29__target;
- gchar** _tmp30_;
- gint _tmp30__length1;
- gint _tmp31_;
- const gchar* _tmp32_;
-#line 533 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp29_ = setter;
-#line 533 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp29__target = setter_target;
+ if (photo_metadata_get_tag_domain (_tmp13_) == _tmp14_) {
+#line 4587 "PhotoMetadata.c"
+ gint _tmp15_;
+ const gchar* _tmp16_;
#line 533 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp30_ = tags;
+ _tmp15_ = ctr;
#line 533 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp30__length1 = tags_length1;
+ _tmp16_ = tags[_tmp15_];
#line 533 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp31_ = ctr;
-#line 533 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp32_ = _tmp30_[_tmp31_];
-#line 533 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp29_ (_tmp32_, _tmp29__target);
-#line 4354 "PhotoMetadata.c"
+ setter (_tmp16_, setter_target);
+#line 4596 "PhotoMetadata.c"
}
}
}
@@ -4360,21 +4602,25 @@ static void photo_metadata_set_all_generic (PhotoMetadata* self, gchar** tags, i
}
-static Block1Data* block1_data_ref (Block1Data* _data1_) {
+static Block1Data*
+block1_data_ref (Block1Data* _data1_)
+{
#line 538 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_atomic_int_inc (&_data1_->_ref_count_);
#line 538 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return _data1_;
-#line 4368 "PhotoMetadata.c"
+#line 4612 "PhotoMetadata.c"
}
-static void block1_data_unref (void * _userdata_) {
+static void
+block1_data_unref (void * _userdata_)
+{
Block1Data* _data1_;
_data1_ = (Block1Data*) _userdata_;
#line 538 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (g_atomic_int_dec_and_test (&_data1_->_ref_count_)) {
-#line 4377 "PhotoMetadata.c"
+#line 4623 "PhotoMetadata.c"
PhotoMetadata* self;
#line 538 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
self = _data1_->self;
@@ -4384,43 +4630,45 @@ static void block1_data_unref (void * _userdata_) {
_media_metadata_unref0 (self);
#line 538 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_slice_free (Block1Data, _data1_);
-#line 4387 "PhotoMetadata.c"
+#line 4633 "PhotoMetadata.c"
}
}
-static void __lambda5_ (Block1Data* _data1_, const gchar* tag) {
+static void
+__lambda5_ (Block1Data* _data1_,
+ const gchar* tag)
+{
PhotoMetadata* self;
- const gchar* _tmp0_;
- const gchar* _tmp1_;
#line 539 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
self = _data1_->self;
#line 539 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (tag != NULL);
#line 539 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = tag;
-#line 539 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = _data1_->value;
-#line 539 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_set_string (self, _tmp0_, _tmp1_, PHOTO_METADATA_PREPARE_STRING_OPTIONS);
-#line 4406 "PhotoMetadata.c"
+ photo_metadata_set_string (self, tag, _data1_->value, PHOTO_METADATA_PREPARE_STRING_OPTIONS);
+#line 4649 "PhotoMetadata.c"
}
-static void ___lambda5__photo_metadata_set_generic_value (const gchar* tag, gpointer self) {
+static void
+___lambda5__photo_metadata_set_generic_value (const gchar* tag,
+ gpointer self)
+{
#line 539 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
__lambda5_ (self, tag);
-#line 4413 "PhotoMetadata.c"
+#line 4659 "PhotoMetadata.c"
}
-void photo_metadata_set_all_string (PhotoMetadata* self, gchar** tags, int tags_length1, const gchar* value, PhotoMetadataSetOption option) {
+void
+photo_metadata_set_all_string (PhotoMetadata* self,
+ gchar** tags,
+ int tags_length1,
+ const gchar* value,
+ PhotoMetadataSetOption option)
+{
Block1Data* _data1_;
- const gchar* _tmp0_;
- gchar* _tmp1_;
- gchar** _tmp2_;
- gint _tmp2__length1;
- PhotoMetadataSetOption _tmp3_;
+ gchar* _tmp0_;
#line 538 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
#line 538 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -4432,77 +4680,81 @@ void photo_metadata_set_all_string (PhotoMetadata* self, gchar** tags, int tags_
#line 538 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_data1_->self = media_metadata_ref (self);
#line 538 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = value;
-#line 538 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = g_strdup (_tmp0_);
+ _tmp0_ = g_strdup (value);
#line 538 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (_data1_->value);
#line 538 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _data1_->value = _tmp1_;
-#line 539 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = tags;
+ _data1_->value = _tmp0_;
#line 539 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2__length1 = tags_length1;
-#line 539 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = option;
-#line 539 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_set_all_generic (self, _tmp2_, _tmp2__length1, _tmp3_, ___lambda5__photo_metadata_set_generic_value, _data1_);
+ photo_metadata_set_all_generic (self, tags, tags_length1, option, ___lambda5__photo_metadata_set_generic_value, _data1_);
#line 538 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
block1_data_unref (_data1_);
#line 538 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_data1_ = NULL;
-#line 4454 "PhotoMetadata.c"
+#line 4694 "PhotoMetadata.c"
}
-static void _vala_array_add48 (gchar** * array, int* length, int* size, gchar* value) {
+static void
+_vala_array_add48 (gchar** * array,
+ int* length,
+ int* size,
+ gchar* value)
+{
#line 547 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if ((*length) == (*size)) {
#line 547 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
*size = (*size) ? (2 * (*size)) : 4;
#line 547 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
*array = g_renew (gchar*, *array, (*size) + 1);
-#line 4465 "PhotoMetadata.c"
+#line 4710 "PhotoMetadata.c"
}
#line 547 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
(*array)[(*length)++] = value;
#line 547 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
(*array)[*length] = NULL;
-#line 4471 "PhotoMetadata.c"
+#line 4716 "PhotoMetadata.c"
}
-static void _vala_array_add49 (gchar** * array, int* length, int* size, gchar* value) {
+static void
+_vala_array_add49 (gchar** * array,
+ int* length,
+ int* size,
+ gchar* value)
+{
#line 559 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if ((*length) == (*size)) {
#line 559 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
*size = (*size) ? (2 * (*size)) : 4;
#line 559 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
*array = g_renew (gchar*, *array, (*size) + 1);
-#line 4482 "PhotoMetadata.c"
+#line 4732 "PhotoMetadata.c"
}
#line 559 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
(*array)[(*length)++] = value;
#line 559 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
(*array)[*length] = NULL;
-#line 4488 "PhotoMetadata.c"
+#line 4738 "PhotoMetadata.c"
}
-void photo_metadata_set_string_multiple (PhotoMetadata* self, const gchar* tag, GeeCollection* collection) {
+void
+photo_metadata_set_string_multiple (PhotoMetadata* self,
+ const gchar* tag,
+ GeeCollection* collection)
+{
gchar** values = NULL;
gchar** _tmp0_;
gint values_length1;
gint _values_size_;
+ gchar** _tmp12_;
+ gint _tmp12__length1;
+ gchar** _tmp13_;
+ gint _tmp13__length1;
+ GExiv2Metadata* _tmp14_;
gchar** _tmp15_;
gint _tmp15__length1;
- gchar** _tmp16_;
- gint _tmp16__length1;
- GExiv2Metadata* _tmp17_;
- const gchar* _tmp18_;
- gchar** _tmp19_;
- gint _tmp19__length1;
- gboolean _tmp20_;
#line 542 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
#line 542 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -4517,161 +4769,149 @@ void photo_metadata_set_string_multiple (PhotoMetadata* self, const gchar* tag,
values_length1 = 0;
#line 543 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_values_size_ = values_length1;
-#line 4520 "PhotoMetadata.c"
+#line 4772 "PhotoMetadata.c"
{
GeeIterator* _value_it = NULL;
- GeeCollection* _tmp1_;
- GeeIterator* _tmp2_;
+ GeeIterator* _tmp1_;
#line 544 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = collection;
+ _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (collection, GEE_TYPE_ITERABLE, GeeIterable));
#line 544 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 544 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _value_it = _tmp2_;
+ _value_it = _tmp1_;
#line 544 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
while (TRUE) {
-#line 4533 "PhotoMetadata.c"
- GeeIterator* _tmp3_;
- gboolean _tmp4_;
+#line 4782 "PhotoMetadata.c"
+ GeeIterator* _tmp2_;
gchar* value = NULL;
- GeeIterator* _tmp5_;
- gpointer _tmp6_;
+ GeeIterator* _tmp3_;
+ gpointer _tmp4_;
gchar* prepped = NULL;
+ const gchar* _tmp5_;
+ gchar* _tmp6_;
const gchar* _tmp7_;
- gchar* _tmp8_;
- const gchar* _tmp9_;
#line 544 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = _value_it;
-#line 544 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = gee_iterator_next (_tmp3_);
+ _tmp2_ = _value_it;
#line 544 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!_tmp4_) {
+ if (!gee_iterator_next (_tmp2_)) {
#line 544 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
break;
-#line 4551 "PhotoMetadata.c"
+#line 4797 "PhotoMetadata.c"
}
#line 544 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = _value_it;
+ _tmp3_ = _value_it;
#line 544 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = gee_iterator_get (_tmp5_);
+ _tmp4_ = gee_iterator_get (_tmp3_);
#line 544 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- value = (gchar*) _tmp6_;
+ value = (gchar*) _tmp4_;
#line 545 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_ = value;
+ _tmp5_ = value;
#line 545 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp8_ = prepare_input_text (_tmp7_, PHOTO_METADATA_PREPARE_STRING_OPTIONS, -1);
+ _tmp6_ = prepare_input_text (_tmp5_, PHOTO_METADATA_PREPARE_STRING_OPTIONS, -1);
#line 545 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- prepped = _tmp8_;
+ prepped = _tmp6_;
#line 546 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp9_ = prepped;
+ _tmp7_ = prepped;
#line 546 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp9_ != NULL) {
-#line 4569 "PhotoMetadata.c"
- gchar** _tmp10_;
- gint _tmp10__length1;
- const gchar* _tmp11_;
- gchar* _tmp12_;
+ if (_tmp7_ != NULL) {
+#line 4815 "PhotoMetadata.c"
+ gchar** _tmp8_;
+ gint _tmp8__length1;
+ const gchar* _tmp9_;
+ gchar* _tmp10_;
#line 547 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp10_ = values;
+ _tmp8_ = values;
#line 547 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp10__length1 = values_length1;
+ _tmp8__length1 = values_length1;
#line 547 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp11_ = prepped;
+ _tmp9_ = prepped;
#line 547 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp12_ = g_strdup (_tmp11_);
+ _tmp10_ = g_strdup (_tmp9_);
#line 547 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _vala_array_add48 (&values, &values_length1, &_values_size_, _tmp12_);
-#line 4584 "PhotoMetadata.c"
+ _vala_array_add48 (&values, &values_length1, &_values_size_, _tmp10_);
+#line 4830 "PhotoMetadata.c"
} else {
- const gchar* _tmp13_;
- const gchar* _tmp14_;
-#line 549 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp13_ = value;
+ const gchar* _tmp11_;
#line 549 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp14_ = tag;
+ _tmp11_ = value;
#line 549 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_warning ("PhotoMetadata.vala:549: Unable to set string %s to %s: invalid UTF-8", _tmp13_, _tmp14_);
-#line 4594 "PhotoMetadata.c"
+ g_warning ("PhotoMetadata.vala:549: Unable to set string %s to %s: invalid UTF-8", _tmp11_, tag);
+#line 4837 "PhotoMetadata.c"
}
#line 544 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (prepped);
#line 544 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (value);
-#line 4600 "PhotoMetadata.c"
+#line 4843 "PhotoMetadata.c"
}
#line 544 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_object_unref0 (_value_it);
-#line 4604 "PhotoMetadata.c"
+#line 4847 "PhotoMetadata.c"
}
#line 552 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp15_ = values;
+ _tmp12_ = values;
#line 552 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp15__length1 = values_length1;
+ _tmp12__length1 = values_length1;
#line 552 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp15__length1 == 0) {
+ if (_tmp12__length1 == 0) {
#line 553 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
values = (_vala_array_free (values, values_length1, (GDestroyNotify) g_free), NULL);
#line 553 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return;
-#line 4616 "PhotoMetadata.c"
+#line 4859 "PhotoMetadata.c"
}
#line 559 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp16_ = values;
+ _tmp13_ = values;
#line 559 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp16__length1 = values_length1;
+ _tmp13__length1 = values_length1;
#line 559 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_vala_array_add49 (&values, &values_length1, &_values_size_, NULL);
#line 561 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp17_ = self->priv->exiv2;
-#line 561 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp18_ = tag;
+ _tmp14_ = self->priv->exiv2;
#line 561 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp19_ = values;
-#line 561 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp19__length1 = values_length1;
+ _tmp15_ = values;
#line 561 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp20_ = gexiv2_metadata_set_tag_multiple (_tmp17_, _tmp18_, _tmp19_);
+ _tmp15__length1 = values_length1;
#line 561 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!_tmp20_) {
-#line 4636 "PhotoMetadata.c"
- gchar** _tmp21_;
- gint _tmp21__length1;
- const gchar* _tmp22_;
- const gchar* _tmp23_;
-#line 562 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp21_ = values;
+ if (!gexiv2_metadata_set_tag_multiple (_tmp14_, tag, _tmp15_)) {
+#line 4875 "PhotoMetadata.c"
+ gchar** _tmp16_;
+ gint _tmp16__length1;
+ const gchar* _tmp17_;
#line 562 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp21__length1 = values_length1;
+ _tmp16_ = values;
#line 562 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp22_ = tag;
+ _tmp16__length1 = values_length1;
#line 562 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp23_ = self->priv->source_name;
+ _tmp17_ = self->priv->source_name;
#line 562 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_warning ("PhotoMetadata.vala:562: Unable to set %d strings to tag %s from source" \
-" %s", _tmp21__length1, _tmp22_, _tmp23_);
-#line 4651 "PhotoMetadata.c"
+" %s", _tmp16__length1, tag, _tmp17_);
+#line 4887 "PhotoMetadata.c"
}
#line 542 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
values = (_vala_array_free (values, values_length1, (GDestroyNotify) g_free), NULL);
-#line 4655 "PhotoMetadata.c"
+#line 4891 "PhotoMetadata.c"
}
-static Block2Data* block2_data_ref (Block2Data* _data2_) {
+static Block2Data*
+block2_data_ref (Block2Data* _data2_)
+{
#line 565 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_atomic_int_inc (&_data2_->_ref_count_);
#line 565 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return _data2_;
-#line 4664 "PhotoMetadata.c"
+#line 4902 "PhotoMetadata.c"
}
-static void block2_data_unref (void * _userdata_) {
+static void
+block2_data_unref (void * _userdata_)
+{
Block2Data* _data2_;
_data2_ = (Block2Data*) _userdata_;
#line 565 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (g_atomic_int_dec_and_test (&_data2_->_ref_count_)) {
-#line 4673 "PhotoMetadata.c"
+#line 4913 "PhotoMetadata.c"
PhotoMetadata* self;
#line 565 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
self = _data2_->self;
@@ -4681,43 +4921,45 @@ static void block2_data_unref (void * _userdata_) {
_media_metadata_unref0 (self);
#line 565 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_slice_free (Block2Data, _data2_);
-#line 4683 "PhotoMetadata.c"
+#line 4923 "PhotoMetadata.c"
}
}
-static void __lambda6_ (Block2Data* _data2_, const gchar* tag) {
+static void
+__lambda6_ (Block2Data* _data2_,
+ const gchar* tag)
+{
PhotoMetadata* self;
- const gchar* _tmp0_;
- GeeCollection* _tmp1_;
#line 566 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
self = _data2_->self;
#line 566 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (tag != NULL);
#line 566 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = tag;
-#line 566 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = _data2_->values;
-#line 566 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_set_string_multiple (self, _tmp0_, _tmp1_);
-#line 4702 "PhotoMetadata.c"
+ photo_metadata_set_string_multiple (self, tag, _data2_->values);
+#line 4939 "PhotoMetadata.c"
}
-static void ___lambda6__photo_metadata_set_generic_value (const gchar* tag, gpointer self) {
+static void
+___lambda6__photo_metadata_set_generic_value (const gchar* tag,
+ gpointer self)
+{
#line 566 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
__lambda6_ (self, tag);
-#line 4709 "PhotoMetadata.c"
+#line 4949 "PhotoMetadata.c"
}
-void photo_metadata_set_all_string_multiple (PhotoMetadata* self, gchar** tags, int tags_length1, GeeCollection* values, PhotoMetadataSetOption option) {
+void
+photo_metadata_set_all_string_multiple (PhotoMetadata* self,
+ gchar** tags,
+ int tags_length1,
+ GeeCollection* values,
+ PhotoMetadataSetOption option)
+{
Block2Data* _data2_;
GeeCollection* _tmp0_;
- GeeCollection* _tmp1_;
- gchar** _tmp2_;
- gint _tmp2__length1;
- PhotoMetadataSetOption _tmp3_;
#line 565 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
#line 565 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -4729,47 +4971,35 @@ void photo_metadata_set_all_string_multiple (PhotoMetadata* self, gchar** tags,
#line 565 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_data2_->self = media_metadata_ref (self);
#line 565 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = values;
-#line 565 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
+ _tmp0_ = _g_object_ref0 (values);
#line 565 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_object_unref0 (_data2_->values);
#line 565 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _data2_->values = _tmp1_;
+ _data2_->values = _tmp0_;
#line 566 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = tags;
-#line 566 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2__length1 = tags_length1;
-#line 566 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = option;
-#line 566 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_set_all_generic (self, _tmp2_, _tmp2__length1, _tmp3_, ___lambda6__photo_metadata_set_generic_value, _data2_);
+ photo_metadata_set_all_generic (self, tags, tags_length1, option, ___lambda6__photo_metadata_set_generic_value, _data2_);
#line 565 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
block2_data_unref (_data2_);
#line 565 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_data2_ = NULL;
-#line 4750 "PhotoMetadata.c"
+#line 4984 "PhotoMetadata.c"
}
-gboolean photo_metadata_get_long (PhotoMetadata* self, const gchar* tag, glong* value) {
+gboolean
+photo_metadata_get_long (PhotoMetadata* self,
+ const gchar* tag,
+ glong* value)
+{
glong _vala_value = 0L;
gboolean result = FALSE;
- const gchar* _tmp0_;
- gboolean _tmp1_;
- GExiv2Metadata* _tmp2_;
- const gchar* _tmp3_;
- glong _tmp4_;
+ GExiv2Metadata* _tmp0_;
#line 569 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE);
#line 569 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (tag != NULL, FALSE);
#line 570 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = tag;
-#line 570 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = photo_metadata_has_tag (self, _tmp0_);
-#line 570 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!_tmp1_) {
+ if (!photo_metadata_has_tag (self, tag)) {
#line 571 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_vala_value = (glong) 0;
#line 573 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -4778,77 +5008,72 @@ gboolean photo_metadata_get_long (PhotoMetadata* self, const gchar* tag, glong*
if (value) {
#line 573 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
*value = _vala_value;
-#line 4780 "PhotoMetadata.c"
+#line 5010 "PhotoMetadata.c"
}
#line 573 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 4784 "PhotoMetadata.c"
+#line 5014 "PhotoMetadata.c"
}
#line 576 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = self->priv->exiv2;
-#line 576 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = tag;
-#line 576 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = gexiv2_metadata_get_tag_long (_tmp2_, _tmp3_);
+ _tmp0_ = self->priv->exiv2;
#line 576 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _vala_value = _tmp4_;
+ _vala_value = gexiv2_metadata_get_tag_long (_tmp0_, tag);
#line 578 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
result = TRUE;
#line 578 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (value) {
#line 578 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
*value = _vala_value;
-#line 4800 "PhotoMetadata.c"
+#line 5026 "PhotoMetadata.c"
}
#line 578 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 4804 "PhotoMetadata.c"
+#line 5030 "PhotoMetadata.c"
}
-gboolean photo_metadata_get_first_long (PhotoMetadata* self, gchar** tags, int tags_length1, glong* value) {
+gboolean
+photo_metadata_get_first_long (PhotoMetadata* self,
+ gchar** tags,
+ int tags_length1,
+ glong* value)
+{
glong _vala_value = 0L;
gboolean result = FALSE;
- gchar** _tmp0_;
- gint _tmp0__length1;
#line 581 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE);
-#line 582 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = tags;
-#line 582 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0__length1 = tags_length1;
-#line 4819 "PhotoMetadata.c"
+#line 5044 "PhotoMetadata.c"
{
gchar** tag_collection = NULL;
gint tag_collection_length1 = 0;
gint _tag_collection_size_ = 0;
gint tag_it = 0;
#line 582 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tag_collection = _tmp0_;
+ tag_collection = tags;
#line 582 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tag_collection_length1 = _tmp0__length1;
+ tag_collection_length1 = tags_length1;
#line 582 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- for (tag_it = 0; tag_it < _tmp0__length1; tag_it = tag_it + 1) {
-#line 4831 "PhotoMetadata.c"
- gchar* _tmp1_;
+ for (tag_it = 0; tag_it < tags_length1; tag_it = tag_it + 1) {
+#line 5056 "PhotoMetadata.c"
+ gchar* _tmp0_;
gchar* tag = NULL;
#line 582 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = g_strdup (tag_collection[tag_it]);
+ _tmp0_ = g_strdup (tag_collection[tag_it]);
#line 582 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tag = _tmp1_;
-#line 4838 "PhotoMetadata.c"
+ tag = _tmp0_;
+#line 5063 "PhotoMetadata.c"
{
- const gchar* _tmp2_;
- glong _tmp3_ = 0L;
- gboolean _tmp4_;
+ const gchar* _tmp1_;
+ glong _tmp2_ = 0L;
+ gboolean _tmp3_;
#line 583 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = tag;
+ _tmp1_ = tag;
#line 583 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = photo_metadata_get_long (self, _tmp2_, &_tmp3_);
+ _tmp3_ = photo_metadata_get_long (self, _tmp1_, &_tmp2_);
#line 583 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _vala_value = _tmp3_;
+ _vala_value = _tmp2_;
#line 583 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp4_) {
+ if (_tmp3_) {
#line 584 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
result = TRUE;
#line 584 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -4857,15 +5082,15 @@ gboolean photo_metadata_get_first_long (PhotoMetadata* self, gchar** tags, int t
if (value) {
#line 584 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
*value = _vala_value;
-#line 4859 "PhotoMetadata.c"
+#line 5084 "PhotoMetadata.c"
}
#line 584 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 4863 "PhotoMetadata.c"
+#line 5088 "PhotoMetadata.c"
}
#line 582 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (tag);
-#line 4867 "PhotoMetadata.c"
+#line 5092 "PhotoMetadata.c"
}
}
}
@@ -4877,19 +5102,20 @@ gboolean photo_metadata_get_first_long (PhotoMetadata* self, gchar** tags, int t
if (value) {
#line 589 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
*value = _vala_value;
-#line 4879 "PhotoMetadata.c"
+#line 5104 "PhotoMetadata.c"
}
#line 589 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 4883 "PhotoMetadata.c"
+#line 5108 "PhotoMetadata.c"
}
-void photo_metadata_set_long (PhotoMetadata* self, const gchar* tag, glong value) {
+void
+photo_metadata_set_long (PhotoMetadata* self,
+ const gchar* tag,
+ glong value)
+{
GExiv2Metadata* _tmp0_;
- const gchar* _tmp1_;
- glong _tmp2_;
- gboolean _tmp3_;
#line 592 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
#line 592 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -4897,46 +5123,38 @@ void photo_metadata_set_long (PhotoMetadata* self, const gchar* tag, glong value
#line 593 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp0_ = self->priv->exiv2;
#line 593 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = tag;
-#line 593 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = value;
-#line 593 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = gexiv2_metadata_set_tag_long (_tmp0_, _tmp1_, _tmp2_);
-#line 593 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!_tmp3_) {
-#line 4906 "PhotoMetadata.c"
- const gchar* _tmp4_;
- glong _tmp5_;
- const gchar* _tmp6_;
-#line 594 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = tag;
-#line 594 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = value;
+ if (!gexiv2_metadata_set_tag_long (_tmp0_, tag, value)) {
+#line 5126 "PhotoMetadata.c"
+ const gchar* _tmp1_;
#line 594 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = self->priv->source_name;
+ _tmp1_ = self->priv->source_name;
#line 594 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_warning ("PhotoMetadata.vala:594: Unable to set tag %s to long %ld from source %" \
-"s", _tmp4_, _tmp5_, _tmp6_);
-#line 4918 "PhotoMetadata.c"
+"s", tag, value, _tmp1_);
+#line 5132 "PhotoMetadata.c"
}
}
-static Block3Data* block3_data_ref (Block3Data* _data3_) {
+static Block3Data*
+block3_data_ref (Block3Data* _data3_)
+{
#line 597 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_atomic_int_inc (&_data3_->_ref_count_);
#line 597 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return _data3_;
-#line 4928 "PhotoMetadata.c"
+#line 5144 "PhotoMetadata.c"
}
-static void block3_data_unref (void * _userdata_) {
+static void
+block3_data_unref (void * _userdata_)
+{
Block3Data* _data3_;
_data3_ = (Block3Data*) _userdata_;
#line 597 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (g_atomic_int_dec_and_test (&_data3_->_ref_count_)) {
-#line 4937 "PhotoMetadata.c"
+#line 5155 "PhotoMetadata.c"
PhotoMetadata* self;
#line 597 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
self = _data3_->self;
@@ -4944,42 +5162,44 @@ static void block3_data_unref (void * _userdata_) {
_media_metadata_unref0 (self);
#line 597 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_slice_free (Block3Data, _data3_);
-#line 4945 "PhotoMetadata.c"
+#line 5163 "PhotoMetadata.c"
}
}
-static void __lambda7_ (Block3Data* _data3_, const gchar* tag) {
+static void
+__lambda7_ (Block3Data* _data3_,
+ const gchar* tag)
+{
PhotoMetadata* self;
- const gchar* _tmp0_;
- glong _tmp1_;
#line 598 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
self = _data3_->self;
#line 598 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (tag != NULL);
#line 598 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = tag;
-#line 598 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = _data3_->value;
-#line 598 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_set_long (self, _tmp0_, _tmp1_);
-#line 4964 "PhotoMetadata.c"
+ photo_metadata_set_long (self, tag, _data3_->value);
+#line 5179 "PhotoMetadata.c"
}
-static void ___lambda7__photo_metadata_set_generic_value (const gchar* tag, gpointer self) {
+static void
+___lambda7__photo_metadata_set_generic_value (const gchar* tag,
+ gpointer self)
+{
#line 598 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
__lambda7_ (self, tag);
-#line 4971 "PhotoMetadata.c"
+#line 5189 "PhotoMetadata.c"
}
-void photo_metadata_set_all_long (PhotoMetadata* self, gchar** tags, int tags_length1, glong value, PhotoMetadataSetOption option) {
+void
+photo_metadata_set_all_long (PhotoMetadata* self,
+ gchar** tags,
+ int tags_length1,
+ glong value,
+ PhotoMetadataSetOption option)
+{
Block3Data* _data3_;
- glong _tmp0_;
- gchar** _tmp1_;
- gint _tmp1__length1;
- PhotoMetadataSetOption _tmp2_;
#line 597 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
#line 597 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -4989,36 +5209,31 @@ void photo_metadata_set_all_long (PhotoMetadata* self, gchar** tags, int tags_le
#line 597 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_data3_->self = media_metadata_ref (self);
#line 597 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = value;
-#line 597 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _data3_->value = _tmp0_;
-#line 598 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = tags;
+ _data3_->value = value;
#line 598 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1__length1 = tags_length1;
-#line 598 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = option;
-#line 598 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_set_all_generic (self, _tmp1_, _tmp1__length1, _tmp2_, ___lambda7__photo_metadata_set_generic_value, _data3_);
+ photo_metadata_set_all_generic (self, tags, tags_length1, option, ___lambda7__photo_metadata_set_generic_value, _data3_);
#line 597 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
block3_data_unref (_data3_);
#line 597 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_data3_ = NULL;
-#line 5005 "PhotoMetadata.c"
+#line 5217 "PhotoMetadata.c"
}
-gboolean photo_metadata_get_rational (PhotoMetadata* self, const gchar* tag, MetadataRational* rational) {
+gboolean
+photo_metadata_get_rational (PhotoMetadata* self,
+ const gchar* tag,
+ MetadataRational* rational)
+{
MetadataRational _vala_rational = {0};
gboolean result = FALSE;
gint numerator = 0;
gint denominator = 0;
gboolean _result_ = FALSE;
GExiv2Metadata* _tmp0_;
- const gchar* _tmp1_;
+ gint _tmp1_ = 0;
gint _tmp2_ = 0;
- gint _tmp3_ = 0;
- gboolean _tmp4_;
+ gboolean _tmp3_;
#line 601 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE);
#line 601 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -5026,15 +5241,13 @@ gboolean photo_metadata_get_rational (PhotoMetadata* self, const gchar* tag, Met
#line 603 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp0_ = self->priv->exiv2;
#line 603 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = tag;
+ _tmp3_ = gexiv2_metadata_get_exif_tag_rational (_tmp0_, tag, &_tmp1_, &_tmp2_);
#line 603 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = gexiv2_metadata_get_exif_tag_rational (_tmp0_, _tmp1_, &_tmp2_, &_tmp3_);
+ numerator = _tmp1_;
#line 603 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- numerator = _tmp2_;
+ denominator = _tmp2_;
#line 603 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- denominator = _tmp3_;
-#line 603 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _result_ = _tmp4_;
+ _result_ = _tmp3_;
#line 605 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
metadata_rational_init (&_vala_rational, numerator, denominator);
#line 607 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -5043,57 +5256,56 @@ gboolean photo_metadata_get_rational (PhotoMetadata* self, const gchar* tag, Met
if (rational) {
#line 607 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
*rational = _vala_rational;
-#line 5044 "PhotoMetadata.c"
+#line 5257 "PhotoMetadata.c"
}
#line 607 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 5048 "PhotoMetadata.c"
+#line 5261 "PhotoMetadata.c"
}
-gboolean photo_metadata_get_first_rational (PhotoMetadata* self, gchar** tags, int tags_length1, MetadataRational* rational) {
+gboolean
+photo_metadata_get_first_rational (PhotoMetadata* self,
+ gchar** tags,
+ int tags_length1,
+ MetadataRational* rational)
+{
MetadataRational _vala_rational = {0};
gboolean result = FALSE;
- gchar** _tmp0_;
- gint _tmp0__length1;
#line 610 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE);
-#line 611 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = tags;
-#line 611 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0__length1 = tags_length1;
-#line 5063 "PhotoMetadata.c"
+#line 5275 "PhotoMetadata.c"
{
gchar** tag_collection = NULL;
gint tag_collection_length1 = 0;
gint _tag_collection_size_ = 0;
gint tag_it = 0;
#line 611 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tag_collection = _tmp0_;
+ tag_collection = tags;
#line 611 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tag_collection_length1 = _tmp0__length1;
+ tag_collection_length1 = tags_length1;
#line 611 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- for (tag_it = 0; tag_it < _tmp0__length1; tag_it = tag_it + 1) {
-#line 5075 "PhotoMetadata.c"
- gchar* _tmp1_;
+ for (tag_it = 0; tag_it < tags_length1; tag_it = tag_it + 1) {
+#line 5287 "PhotoMetadata.c"
+ gchar* _tmp0_;
gchar* tag = NULL;
#line 611 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = g_strdup (tag_collection[tag_it]);
+ _tmp0_ = g_strdup (tag_collection[tag_it]);
#line 611 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tag = _tmp1_;
-#line 5082 "PhotoMetadata.c"
+ tag = _tmp0_;
+#line 5294 "PhotoMetadata.c"
{
- const gchar* _tmp2_;
- MetadataRational _tmp3_ = {0};
- gboolean _tmp4_;
+ const gchar* _tmp1_;
+ MetadataRational _tmp2_ = {0};
+ gboolean _tmp3_;
#line 612 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = tag;
+ _tmp1_ = tag;
#line 612 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = photo_metadata_get_rational (self, _tmp2_, &_tmp3_);
+ _tmp3_ = photo_metadata_get_rational (self, _tmp1_, &_tmp2_);
#line 612 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _vala_rational = _tmp3_;
+ _vala_rational = _tmp2_;
#line 612 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp4_) {
+ if (_tmp3_) {
#line 613 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
result = TRUE;
#line 613 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -5102,15 +5314,15 @@ gboolean photo_metadata_get_first_rational (PhotoMetadata* self, gchar** tags, i
if (rational) {
#line 613 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
*rational = _vala_rational;
-#line 5103 "PhotoMetadata.c"
+#line 5315 "PhotoMetadata.c"
}
#line 613 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 5107 "PhotoMetadata.c"
+#line 5319 "PhotoMetadata.c"
}
#line 611 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (tag);
-#line 5111 "PhotoMetadata.c"
+#line 5323 "PhotoMetadata.c"
}
}
}
@@ -5122,22 +5334,24 @@ gboolean photo_metadata_get_first_rational (PhotoMetadata* self, gchar** tags, i
if (rational) {
#line 618 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
*rational = _vala_rational;
-#line 5123 "PhotoMetadata.c"
+#line 5335 "PhotoMetadata.c"
}
#line 618 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 5127 "PhotoMetadata.c"
+#line 5339 "PhotoMetadata.c"
}
-void photo_metadata_set_rational (PhotoMetadata* self, const gchar* tag, MetadataRational* rational) {
+void
+photo_metadata_set_rational (PhotoMetadata* self,
+ const gchar* tag,
+ MetadataRational* rational)
+{
GExiv2Metadata* _tmp0_;
- const gchar* _tmp1_;
- MetadataRational _tmp2_;
- gint _tmp3_;
- MetadataRational _tmp4_;
- gint _tmp5_;
- gboolean _tmp6_;
+ MetadataRational _tmp1_;
+ gint _tmp2_;
+ MetadataRational _tmp3_;
+ gint _tmp4_;
#line 621 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
#line 621 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -5147,57 +5361,54 @@ void photo_metadata_set_rational (PhotoMetadata* self, const gchar* tag, Metadat
#line 622 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp0_ = self->priv->exiv2;
#line 622 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = tag;
-#line 622 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = *rational;
-#line 622 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = _tmp2_.numerator;
+ _tmp1_ = *rational;
#line 622 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = *rational;
+ _tmp2_ = _tmp1_.numerator;
#line 622 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = _tmp4_.denominator;
+ _tmp3_ = *rational;
#line 622 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = gexiv2_metadata_set_exif_tag_rational (_tmp0_, _tmp1_, _tmp3_, _tmp5_);
+ _tmp4_ = _tmp3_.denominator;
#line 622 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!_tmp6_) {
-#line 5161 "PhotoMetadata.c"
+ if (!gexiv2_metadata_set_exif_tag_rational (_tmp0_, tag, _tmp2_, _tmp4_)) {
+#line 5371 "PhotoMetadata.c"
+ gchar* _tmp5_;
+ gchar* _tmp6_;
const gchar* _tmp7_;
- gchar* _tmp8_;
- gchar* _tmp9_;
- const gchar* _tmp10_;
-#line 623 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_ = tag;
#line 623 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp8_ = metadata_rational_to_string (rational);
+ _tmp5_ = metadata_rational_to_string (rational);
#line 623 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp9_ = _tmp8_;
+ _tmp6_ = _tmp5_;
#line 623 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp10_ = self->priv->source_name;
+ _tmp7_ = self->priv->source_name;
#line 623 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_warning ("PhotoMetadata.vala:623: Unable to set tag %s to rational %s from sourc" \
-"e %s", _tmp7_, _tmp9_, _tmp10_);
+"e %s", tag, _tmp6_, _tmp7_);
#line 623 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (_tmp9_);
-#line 5178 "PhotoMetadata.c"
+ _g_free0 (_tmp6_);
+#line 5385 "PhotoMetadata.c"
}
}
-static Block4Data* block4_data_ref (Block4Data* _data4_) {
+static Block4Data*
+block4_data_ref (Block4Data* _data4_)
+{
#line 628 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_atomic_int_inc (&_data4_->_ref_count_);
#line 628 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return _data4_;
-#line 5188 "PhotoMetadata.c"
+#line 5397 "PhotoMetadata.c"
}
-static void block4_data_unref (void * _userdata_) {
+static void
+block4_data_unref (void * _userdata_)
+{
Block4Data* _data4_;
_data4_ = (Block4Data*) _userdata_;
#line 628 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (g_atomic_int_dec_and_test (&_data4_->_ref_count_)) {
-#line 5197 "PhotoMetadata.c"
+#line 5408 "PhotoMetadata.c"
PhotoMetadata* self;
#line 628 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
self = _data4_->self;
@@ -5205,42 +5416,48 @@ static void block4_data_unref (void * _userdata_) {
_media_metadata_unref0 (self);
#line 628 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_slice_free (Block4Data, _data4_);
-#line 5205 "PhotoMetadata.c"
+#line 5416 "PhotoMetadata.c"
}
}
-static void __lambda8_ (Block4Data* _data4_, const gchar* tag) {
+static void
+__lambda8_ (Block4Data* _data4_,
+ const gchar* tag)
+{
PhotoMetadata* self;
- const gchar* _tmp0_;
- MetadataRational _tmp1_;
+ MetadataRational _tmp0_;
#line 629 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
self = _data4_->self;
#line 629 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (tag != NULL);
#line 629 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = tag;
-#line 629 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = _data4_->rational;
+ _tmp0_ = _data4_->rational;
#line 629 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_set_rational (self, _tmp0_, &_tmp1_);
-#line 5224 "PhotoMetadata.c"
+ photo_metadata_set_rational (self, tag, &_tmp0_);
+#line 5435 "PhotoMetadata.c"
}
-static void ___lambda8__photo_metadata_set_generic_value (const gchar* tag, gpointer self) {
+static void
+___lambda8__photo_metadata_set_generic_value (const gchar* tag,
+ gpointer self)
+{
#line 629 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
__lambda8_ (self, tag);
-#line 5231 "PhotoMetadata.c"
+#line 5445 "PhotoMetadata.c"
}
-void photo_metadata_set_all_rational (PhotoMetadata* self, gchar** tags, int tags_length1, MetadataRational* rational, PhotoMetadataSetOption option) {
+void
+photo_metadata_set_all_rational (PhotoMetadata* self,
+ gchar** tags,
+ int tags_length1,
+ MetadataRational* rational,
+ PhotoMetadataSetOption option)
+{
Block4Data* _data4_;
MetadataRational _tmp0_;
- gchar** _tmp1_;
- gint _tmp1__length1;
- PhotoMetadataSetOption _tmp2_;
#line 628 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
#line 628 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -5256,95 +5473,83 @@ void photo_metadata_set_all_rational (PhotoMetadata* self, gchar** tags, int tag
#line 628 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_data4_->rational = _tmp0_;
#line 629 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = tags;
-#line 629 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1__length1 = tags_length1;
-#line 629 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = option;
-#line 629 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_set_all_generic (self, _tmp1_, _tmp1__length1, _tmp2_, ___lambda8__photo_metadata_set_generic_value, _data4_);
+ photo_metadata_set_all_generic (self, tags, tags_length1, option, ___lambda8__photo_metadata_set_generic_value, _data4_);
#line 628 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
block4_data_unref (_data4_);
#line 628 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_data4_ = NULL;
-#line 5267 "PhotoMetadata.c"
+#line 5478 "PhotoMetadata.c"
}
-MetadataDateTime* photo_metadata_get_date_time (PhotoMetadata* self, const gchar* tag) {
+MetadataDateTime*
+photo_metadata_get_date_time (PhotoMetadata* self,
+ const gchar* tag)
+{
MetadataDateTime* result = NULL;
gchar* value = NULL;
- const gchar* _tmp0_;
- gchar* _tmp1_;
- const gchar* _tmp2_;
+ gchar* _tmp0_;
+ const gchar* _tmp1_;
GError * _inner_error_ = NULL;
#line 632 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
#line 632 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (tag != NULL, NULL);
#line 633 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = tag;
+ _tmp0_ = photo_metadata_get_string (self, tag, PHOTO_METADATA_PREPARE_STRING_OPTIONS);
#line 633 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = photo_metadata_get_string (self, _tmp0_, PHOTO_METADATA_PREPARE_STRING_OPTIONS);
-#line 633 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- value = _tmp1_;
+ value = _tmp0_;
#line 634 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = value;
+ _tmp1_ = value;
#line 634 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp2_ == NULL) {
+ if (_tmp1_ == NULL) {
#line 635 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
result = NULL;
#line 635 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (value);
#line 635 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 5298 "PhotoMetadata.c"
+#line 5509 "PhotoMetadata.c"
}
{
- const gchar* _tmp3_;
- MetadataDomain _tmp4_;
-#line 638 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = tag;
#line 638 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = photo_metadata_get_tag_domain (_tmp3_);
-#line 638 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- switch (_tmp4_) {
+ switch (photo_metadata_get_tag_domain (tag)) {
#line 638 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
case METADATA_DOMAIN_XMP:
-#line 5311 "PhotoMetadata.c"
+#line 5516 "PhotoMetadata.c"
{
- MetadataDateTime* _tmp5_ = NULL;
- const gchar* _tmp6_;
- MetadataDateTime* _tmp7_;
- MetadataDateTime* _tmp8_;
+ MetadataDateTime* _tmp2_ = NULL;
+ const gchar* _tmp3_;
+ MetadataDateTime* _tmp4_;
+ MetadataDateTime* _tmp5_;
#line 640 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = value;
+ _tmp3_ = value;
#line 640 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_ = metadata_date_time_new_from_xmp (_tmp6_, &_inner_error_);
+ _tmp4_ = metadata_date_time_new_from_xmp (_tmp3_, &_inner_error_);
#line 640 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = _tmp7_;
+ _tmp2_ = _tmp4_;
#line 640 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 5325 "PhotoMetadata.c"
+#line 5530 "PhotoMetadata.c"
goto __catch30_g_error;
}
#line 640 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp8_ = _tmp5_;
+ _tmp5_ = _tmp2_;
#line 640 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = NULL;
+ _tmp2_ = NULL;
#line 640 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp8_;
+ result = _tmp5_;
#line 640 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _metadata_date_time_unref0 (_tmp5_);
+ _metadata_date_time_unref0 (_tmp2_);
#line 640 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (value);
#line 640 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 5340 "PhotoMetadata.c"
+#line 5545 "PhotoMetadata.c"
}
#line 638 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
case METADATA_DOMAIN_IPTC:
-#line 5344 "PhotoMetadata.c"
+#line 5549 "PhotoMetadata.c"
{
#line 645 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
result = NULL;
@@ -5352,41 +5557,41 @@ MetadataDateTime* photo_metadata_get_date_time (PhotoMetadata* self, const gchar
_g_free0 (value);
#line 645 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 5352 "PhotoMetadata.c"
+#line 5557 "PhotoMetadata.c"
}
default:
#line 638 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
case METADATA_DOMAIN_EXIF:
-#line 5357 "PhotoMetadata.c"
+#line 5562 "PhotoMetadata.c"
{
- MetadataDateTime* _tmp9_ = NULL;
- const gchar* _tmp10_;
- MetadataDateTime* _tmp11_;
- MetadataDateTime* _tmp12_;
+ MetadataDateTime* _tmp6_ = NULL;
+ const gchar* _tmp7_;
+ MetadataDateTime* _tmp8_;
+ MetadataDateTime* _tmp9_;
#line 649 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp10_ = value;
+ _tmp7_ = value;
#line 649 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp11_ = metadata_date_time_new_from_exif (_tmp10_, &_inner_error_);
+ _tmp8_ = metadata_date_time_new_from_exif (_tmp7_, &_inner_error_);
#line 649 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp9_ = _tmp11_;
+ _tmp6_ = _tmp8_;
#line 649 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 5371 "PhotoMetadata.c"
+#line 5576 "PhotoMetadata.c"
goto __catch30_g_error;
}
#line 649 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp12_ = _tmp9_;
+ _tmp9_ = _tmp6_;
#line 649 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp9_ = NULL;
+ _tmp6_ = NULL;
#line 649 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp12_;
+ result = _tmp9_;
#line 649 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _metadata_date_time_unref0 (_tmp9_);
+ _metadata_date_time_unref0 (_tmp6_);
#line 649 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (value);
#line 649 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 5386 "PhotoMetadata.c"
+#line 5591 "PhotoMetadata.c"
}
}
}
@@ -5394,24 +5599,21 @@ MetadataDateTime* photo_metadata_get_date_time (PhotoMetadata* self, const gchar
__catch30_g_error:
{
GError* err = NULL;
- const gchar* _tmp13_;
- const gchar* _tmp14_;
- GError* _tmp15_;
- const gchar* _tmp16_;
+ const gchar* _tmp10_;
+ GError* _tmp11_;
+ const gchar* _tmp12_;
#line 637 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
err = _inner_error_;
#line 637 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_inner_error_ = NULL;
#line 652 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp13_ = tag;
-#line 652 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp14_ = self->priv->source_name;
+ _tmp10_ = self->priv->source_name;
#line 652 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp15_ = err;
+ _tmp11_ = err;
#line 652 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp16_ = _tmp15_->message;
+ _tmp12_ = _tmp11_->message;
#line 652 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_warning ("PhotoMetadata.vala:652: Unable to read date/time %s from source %s: %s", _tmp13_, _tmp14_, _tmp16_);
+ g_warning ("PhotoMetadata.vala:652: Unable to read date/time %s from source %s: %s", tag, _tmp10_, _tmp12_);
#line 654 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
result = NULL;
#line 654 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -5420,7 +5622,7 @@ MetadataDateTime* photo_metadata_get_date_time (PhotoMetadata* self, const gchar
_g_free0 (value);
#line 654 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 5420 "PhotoMetadata.c"
+#line 5622 "PhotoMetadata.c"
}
__finally30:
#line 637 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -5431,68 +5633,66 @@ MetadataDateTime* photo_metadata_get_date_time (PhotoMetadata* self, const gchar
g_clear_error (&_inner_error_);
#line 637 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return NULL;
-#line 5431 "PhotoMetadata.c"
+#line 5633 "PhotoMetadata.c"
}
-MetadataDateTime* photo_metadata_get_first_date_time (PhotoMetadata* self, gchar** tags, int tags_length1) {
+MetadataDateTime*
+photo_metadata_get_first_date_time (PhotoMetadata* self,
+ gchar** tags,
+ int tags_length1)
+{
MetadataDateTime* result = NULL;
- gchar** _tmp0_;
- gint _tmp0__length1;
#line 658 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
-#line 659 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = tags;
-#line 659 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0__length1 = tags_length1;
-#line 5445 "PhotoMetadata.c"
+#line 5645 "PhotoMetadata.c"
{
gchar** tag_collection = NULL;
gint tag_collection_length1 = 0;
gint _tag_collection_size_ = 0;
gint tag_it = 0;
#line 659 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tag_collection = _tmp0_;
+ tag_collection = tags;
#line 659 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tag_collection_length1 = _tmp0__length1;
+ tag_collection_length1 = tags_length1;
#line 659 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- for (tag_it = 0; tag_it < _tmp0__length1; tag_it = tag_it + 1) {
-#line 5457 "PhotoMetadata.c"
- gchar* _tmp1_;
+ for (tag_it = 0; tag_it < tags_length1; tag_it = tag_it + 1) {
+#line 5657 "PhotoMetadata.c"
+ gchar* _tmp0_;
gchar* tag = NULL;
#line 659 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = g_strdup (tag_collection[tag_it]);
+ _tmp0_ = g_strdup (tag_collection[tag_it]);
#line 659 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tag = _tmp1_;
-#line 5464 "PhotoMetadata.c"
+ tag = _tmp0_;
+#line 5664 "PhotoMetadata.c"
{
MetadataDateTime* date_time = NULL;
- const gchar* _tmp2_;
+ const gchar* _tmp1_;
+ MetadataDateTime* _tmp2_;
MetadataDateTime* _tmp3_;
- MetadataDateTime* _tmp4_;
#line 660 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = tag;
+ _tmp1_ = tag;
#line 660 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = photo_metadata_get_date_time (self, _tmp2_);
+ _tmp2_ = photo_metadata_get_date_time (self, _tmp1_);
#line 660 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- date_time = _tmp3_;
+ date_time = _tmp2_;
#line 661 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = date_time;
+ _tmp3_ = date_time;
#line 661 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp4_ != NULL) {
+ if (_tmp3_ != NULL) {
#line 662 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
result = date_time;
#line 662 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (tag);
#line 662 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 5486 "PhotoMetadata.c"
+#line 5686 "PhotoMetadata.c"
}
#line 659 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_metadata_date_time_unref0 (date_time);
#line 659 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (tag);
-#line 5492 "PhotoMetadata.c"
+#line 5692 "PhotoMetadata.c"
}
}
}
@@ -5500,13 +5700,15 @@ MetadataDateTime* photo_metadata_get_first_date_time (PhotoMetadata* self, gchar
result = NULL;
#line 665 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 5500 "PhotoMetadata.c"
+#line 5700 "PhotoMetadata.c"
}
-void photo_metadata_set_date_time (PhotoMetadata* self, const gchar* tag, MetadataDateTime* date_time) {
- const gchar* _tmp0_;
- MetadataDomain _tmp1_;
+void
+photo_metadata_set_date_time (PhotoMetadata* self,
+ const gchar* tag,
+ MetadataDateTime* date_time)
+{
#line 668 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
#line 668 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -5514,112 +5716,93 @@ void photo_metadata_set_date_time (PhotoMetadata* self, const gchar* tag, Metada
#line 668 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_METADATA_DATE_TIME (date_time));
#line 669 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = tag;
-#line 669 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = photo_metadata_get_tag_domain (_tmp0_);
-#line 669 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- switch (_tmp1_) {
+ switch (photo_metadata_get_tag_domain (tag)) {
#line 669 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
case METADATA_DOMAIN_EXIF:
-#line 5521 "PhotoMetadata.c"
+#line 5719 "PhotoMetadata.c"
{
- const gchar* _tmp2_;
- MetadataDateTime* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
-#line 671 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = tag;
-#line 671 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = date_time;
+ gchar* _tmp0_;
+ gchar* _tmp1_;
#line 671 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = metadata_date_time_get_exif_label (_tmp3_);
+ _tmp0_ = metadata_date_time_get_exif_label (date_time);
#line 671 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = _tmp4_;
+ _tmp1_ = _tmp0_;
#line 671 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_set_string (self, _tmp2_, _tmp5_, PHOTO_METADATA_PREPARE_STRING_OPTIONS);
+ photo_metadata_set_string (self, tag, _tmp1_, PHOTO_METADATA_PREPARE_STRING_OPTIONS);
#line 671 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (_tmp5_);
+ _g_free0 (_tmp1_);
#line 672 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
break;
-#line 5541 "PhotoMetadata.c"
+#line 5733 "PhotoMetadata.c"
}
#line 669 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
case METADATA_DOMAIN_XMP:
-#line 5545 "PhotoMetadata.c"
+#line 5737 "PhotoMetadata.c"
{
- const gchar* _tmp6_;
- MetadataDateTime* _tmp7_;
- gchar* _tmp8_;
- gchar* _tmp9_;
-#line 675 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = tag;
+ gchar* _tmp2_;
+ gchar* _tmp3_;
#line 675 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_ = date_time;
+ _tmp2_ = metadata_date_time_get_xmp_label (date_time);
#line 675 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp8_ = metadata_date_time_get_xmp_label (_tmp7_);
+ _tmp3_ = _tmp2_;
#line 675 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp9_ = _tmp8_;
+ photo_metadata_set_string (self, tag, _tmp3_, PHOTO_METADATA_PREPARE_STRING_OPTIONS);
#line 675 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_set_string (self, _tmp6_, _tmp9_, PHOTO_METADATA_PREPARE_STRING_OPTIONS);
-#line 675 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (_tmp9_);
+ _g_free0 (_tmp3_);
#line 676 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
break;
-#line 5565 "PhotoMetadata.c"
+#line 5751 "PhotoMetadata.c"
}
default:
#line 669 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
case METADATA_DOMAIN_IPTC:
-#line 5570 "PhotoMetadata.c"
+#line 5756 "PhotoMetadata.c"
{
- const gchar* _tmp10_;
- const gchar* _tmp11_;
- const gchar* _tmp12_;
- MetadataDomain _tmp13_;
- GEnumValue* _tmp14_;
-#line 681 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp10_ = tag;
-#line 681 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp11_ = self->priv->source_name;
-#line 681 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp12_ = tag;
+ const gchar* _tmp4_;
+ GEnumValue* _tmp5_;
#line 681 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp13_ = photo_metadata_get_tag_domain (_tmp12_);
+ _tmp4_ = self->priv->source_name;
#line 682 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp14_ = g_enum_get_value (g_type_class_ref (TYPE_METADATA_DOMAIN), _tmp13_);
+ _tmp5_ = g_enum_get_value (g_type_class_ref (TYPE_METADATA_DOMAIN), photo_metadata_get_tag_domain (tag));
#line 681 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_warning ("PhotoMetadata.vala:681: Cannot set date/time for %s from source %s: un" \
-"supported metadata domain %s", _tmp10_, _tmp11_, (_tmp14_ != NULL) ? _tmp14_->value_name : NULL);
+"supported metadata domain %s", tag, _tmp4_, (_tmp5_ != NULL) ? _tmp5_->value_name : NULL);
#line 683 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
break;
-#line 5591 "PhotoMetadata.c"
+#line 5768 "PhotoMetadata.c"
}
}
}
-static gpointer _metadata_date_time_ref0 (gpointer self) {
+static gpointer
+_metadata_date_time_ref0 (gpointer self)
+{
#line 687 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return self ? metadata_date_time_ref (self) : NULL;
-#line 5600 "PhotoMetadata.c"
+#line 5779 "PhotoMetadata.c"
}
-static Block5Data* block5_data_ref (Block5Data* _data5_) {
+static Block5Data*
+block5_data_ref (Block5Data* _data5_)
+{
#line 687 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_atomic_int_inc (&_data5_->_ref_count_);
#line 687 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return _data5_;
-#line 5609 "PhotoMetadata.c"
+#line 5790 "PhotoMetadata.c"
}
-static void block5_data_unref (void * _userdata_) {
+static void
+block5_data_unref (void * _userdata_)
+{
Block5Data* _data5_;
_data5_ = (Block5Data*) _userdata_;
#line 687 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (g_atomic_int_dec_and_test (&_data5_->_ref_count_)) {
-#line 5618 "PhotoMetadata.c"
+#line 5801 "PhotoMetadata.c"
PhotoMetadata* self;
#line 687 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
self = _data5_->self;
@@ -5629,43 +5812,45 @@ static void block5_data_unref (void * _userdata_) {
_media_metadata_unref0 (self);
#line 687 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_slice_free (Block5Data, _data5_);
-#line 5628 "PhotoMetadata.c"
+#line 5811 "PhotoMetadata.c"
}
}
-static void __lambda9_ (Block5Data* _data5_, const gchar* tag) {
+static void
+__lambda9_ (Block5Data* _data5_,
+ const gchar* tag)
+{
PhotoMetadata* self;
- const gchar* _tmp0_;
- MetadataDateTime* _tmp1_;
#line 688 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
self = _data5_->self;
#line 688 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (tag != NULL);
#line 688 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = tag;
-#line 688 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = _data5_->date_time;
-#line 688 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_set_date_time (self, _tmp0_, _tmp1_);
-#line 5647 "PhotoMetadata.c"
+ photo_metadata_set_date_time (self, tag, _data5_->date_time);
+#line 5827 "PhotoMetadata.c"
}
-static void ___lambda9__photo_metadata_set_generic_value (const gchar* tag, gpointer self) {
+static void
+___lambda9__photo_metadata_set_generic_value (const gchar* tag,
+ gpointer self)
+{
#line 688 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
__lambda9_ (self, tag);
-#line 5654 "PhotoMetadata.c"
+#line 5837 "PhotoMetadata.c"
}
-void photo_metadata_set_all_date_time (PhotoMetadata* self, gchar** tags, int tags_length1, MetadataDateTime* date_time, PhotoMetadataSetOption option) {
+void
+photo_metadata_set_all_date_time (PhotoMetadata* self,
+ gchar** tags,
+ int tags_length1,
+ MetadataDateTime* date_time,
+ PhotoMetadataSetOption option)
+{
Block5Data* _data5_;
MetadataDateTime* _tmp0_;
- MetadataDateTime* _tmp1_;
- gchar** _tmp2_;
- gint _tmp2__length1;
- PhotoMetadataSetOption _tmp3_;
#line 687 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
#line 687 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -5677,30 +5862,24 @@ void photo_metadata_set_all_date_time (PhotoMetadata* self, gchar** tags, int ta
#line 687 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_data5_->self = media_metadata_ref (self);
#line 687 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = date_time;
-#line 687 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = _metadata_date_time_ref0 (_tmp0_);
+ _tmp0_ = _metadata_date_time_ref0 (date_time);
#line 687 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_metadata_date_time_unref0 (_data5_->date_time);
#line 687 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _data5_->date_time = _tmp1_;
-#line 688 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = tags;
+ _data5_->date_time = _tmp0_;
#line 688 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2__length1 = tags_length1;
-#line 688 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = option;
-#line 688 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_set_all_generic (self, _tmp2_, _tmp2__length1, _tmp3_, ___lambda9__photo_metadata_set_generic_value, _data5_);
+ photo_metadata_set_all_generic (self, tags, tags_length1, option, ___lambda9__photo_metadata_set_generic_value, _data5_);
#line 687 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
block5_data_unref (_data5_);
#line 687 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_data5_ = NULL;
-#line 5695 "PhotoMetadata.c"
+#line 5872 "PhotoMetadata.c"
}
-gchar* photo_metadata_exif_hash (PhotoMetadata* self) {
+gchar*
+photo_metadata_exif_hash (PhotoMetadata* self)
+{
gchar* result = NULL;
ExifData* _tmp0_;
const gchar* _tmp1_;
@@ -5732,13 +5911,13 @@ gchar* photo_metadata_exif_hash (PhotoMetadata* self) {
result = NULL;
#line 694 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 5731 "PhotoMetadata.c"
+#line 5910 "PhotoMetadata.c"
}
#line 696 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp1_ = self->priv->metadata_hash;
#line 696 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp1_ != NULL) {
-#line 5737 "PhotoMetadata.c"
+#line 5916 "PhotoMetadata.c"
const gchar* _tmp2_;
gchar* _tmp3_;
#line 697 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -5749,7 +5928,7 @@ gchar* photo_metadata_exif_hash (PhotoMetadata* self) {
result = _tmp3_;
#line 697 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 5748 "PhotoMetadata.c"
+#line 5927 "PhotoMetadata.c"
}
#line 700 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
hash = NULL;
@@ -5797,21 +5976,21 @@ gchar* photo_metadata_exif_hash (PhotoMetadata* self) {
_tmp16_ = saved_size;
#line 717 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp16_ > ((guint) 0)) {
-#line 5796 "PhotoMetadata.c"
+#line 5975 "PhotoMetadata.c"
guchar* _tmp17_;
#line 717 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp17_ = saved_data;
#line 717 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp15_ = _tmp17_ != NULL;
-#line 5802 "PhotoMetadata.c"
+#line 5981 "PhotoMetadata.c"
} else {
#line 717 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp15_ = FALSE;
-#line 5806 "PhotoMetadata.c"
+#line 5985 "PhotoMetadata.c"
}
#line 717 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp15_) {
-#line 5810 "PhotoMetadata.c"
+#line 5989 "PhotoMetadata.c"
GChecksum* md5 = NULL;
GChecksum* _tmp18_;
GChecksum* _tmp19_;
@@ -5857,17 +6036,19 @@ gchar* photo_metadata_exif_hash (PhotoMetadata* self) {
self->priv->metadata_hash = _tmp27_;
#line 717 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_checksum_free0 (md5);
-#line 5856 "PhotoMetadata.c"
+#line 6035 "PhotoMetadata.c"
}
#line 725 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
result = hash;
#line 725 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 5862 "PhotoMetadata.c"
+#line 6041 "PhotoMetadata.c"
}
-gchar* photo_metadata_thumbnail_hash (PhotoMetadata* self) {
+gchar*
+photo_metadata_thumbnail_hash (PhotoMetadata* self)
+{
gchar* result = NULL;
const gchar* _tmp0_;
guchar* buffer = NULL;
@@ -5883,7 +6064,7 @@ gchar* photo_metadata_thumbnail_hash (PhotoMetadata* self) {
_tmp0_ = self->priv->thumbnail_md5;
#line 730 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp0_ != NULL) {
-#line 5882 "PhotoMetadata.c"
+#line 6063 "PhotoMetadata.c"
const gchar* _tmp1_;
gchar* _tmp2_;
#line 731 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -5894,7 +6075,7 @@ gchar* photo_metadata_thumbnail_hash (PhotoMetadata* self) {
result = _tmp2_;
#line 731 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 5893 "PhotoMetadata.c"
+#line 6074 "PhotoMetadata.c"
}
#line 735 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp3_ = self->priv->exiv2;
@@ -5910,7 +6091,7 @@ gchar* photo_metadata_thumbnail_hash (PhotoMetadata* self) {
_buffer_size_ = buffer_length1;
#line 735 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp6_) {
-#line 5909 "PhotoMetadata.c"
+#line 6090 "PhotoMetadata.c"
GChecksum* md5 = NULL;
GChecksum* _tmp7_;
GChecksum* _tmp8_;
@@ -5961,7 +6142,7 @@ gchar* photo_metadata_thumbnail_hash (PhotoMetadata* self) {
buffer = (g_free (buffer), NULL);
#line 741 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 5960 "PhotoMetadata.c"
+#line 6141 "PhotoMetadata.c"
}
#line 744 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
result = NULL;
@@ -5969,11 +6150,13 @@ gchar* photo_metadata_thumbnail_hash (PhotoMetadata* self) {
buffer = (g_free (buffer), NULL);
#line 744 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 5968 "PhotoMetadata.c"
+#line 6149 "PhotoMetadata.c"
}
-guint photo_metadata_get_preview_count (PhotoMetadata* self) {
+guint
+photo_metadata_get_preview_count (PhotoMetadata* self)
+{
guint result = 0U;
GExiv2PreviewProperties** props = NULL;
GExiv2Metadata* _tmp0_;
@@ -6002,7 +6185,7 @@ guint photo_metadata_get_preview_count (PhotoMetadata* self) {
_tmp4__length1 = props_length1;
#line 750 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp4_ != NULL) {
-#line 6001 "PhotoMetadata.c"
+#line 6184 "PhotoMetadata.c"
GExiv2PreviewProperties** _tmp5_;
gint _tmp5__length1;
#line 750 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -6011,21 +6194,24 @@ guint photo_metadata_get_preview_count (PhotoMetadata* self) {
_tmp5__length1 = props_length1;
#line 750 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp3_ = _tmp5__length1;
-#line 6010 "PhotoMetadata.c"
+#line 6193 "PhotoMetadata.c"
} else {
#line 750 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp3_ = 0;
-#line 6014 "PhotoMetadata.c"
+#line 6197 "PhotoMetadata.c"
}
#line 750 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
result = (guint) _tmp3_;
#line 750 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 6020 "PhotoMetadata.c"
+#line 6203 "PhotoMetadata.c"
}
-PhotoPreview* photo_metadata_get_preview (PhotoMetadata* self, guint number) {
+PhotoPreview*
+photo_metadata_get_preview (PhotoMetadata* self,
+ guint number)
+{
PhotoPreview* result = NULL;
GExiv2PreviewProperties** props = NULL;
GExiv2Metadata* _tmp0_;
@@ -6036,13 +6222,11 @@ PhotoPreview* photo_metadata_get_preview (PhotoMetadata* self, guint number) {
gboolean _tmp3_ = FALSE;
GExiv2PreviewProperties** _tmp4_;
gint _tmp4__length1;
- const gchar* _tmp7_;
- guint _tmp8_;
- GExiv2PreviewProperties** _tmp9_;
- gint _tmp9__length1;
- guint _tmp10_;
- GExiv2PreviewProperties* _tmp11_;
- PhotoMetadataInternalPhotoPreview* _tmp12_;
+ const gchar* _tmp6_;
+ GExiv2PreviewProperties** _tmp7_;
+ gint _tmp7__length1;
+ GExiv2PreviewProperties* _tmp8_;
+ PhotoMetadataInternalPhotoPreview* _tmp9_;
#line 754 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
#line 755 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -6063,20 +6247,17 @@ PhotoPreview* photo_metadata_get_preview (PhotoMetadata* self, guint number) {
if (_tmp4_ == NULL) {
#line 756 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp3_ = TRUE;
-#line 6062 "PhotoMetadata.c"
+#line 6246 "PhotoMetadata.c"
} else {
GExiv2PreviewProperties** _tmp5_;
gint _tmp5__length1;
- guint _tmp6_;
#line 756 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp5_ = props;
#line 756 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp5__length1 = props_length1;
#line 756 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = number;
-#line 756 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = ((guint) _tmp5__length1) <= _tmp6_;
-#line 6075 "PhotoMetadata.c"
+ _tmp3_ = ((guint) _tmp5__length1) <= number;
+#line 6256 "PhotoMetadata.c"
}
#line 756 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp3_) {
@@ -6084,31 +6265,29 @@ PhotoPreview* photo_metadata_get_preview (PhotoMetadata* self, guint number) {
result = NULL;
#line 757 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 6083 "PhotoMetadata.c"
+#line 6264 "PhotoMetadata.c"
}
#line 759 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_ = self->priv->source_name;
-#line 759 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp8_ = number;
+ _tmp6_ = self->priv->source_name;
#line 759 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp9_ = props;
+ _tmp7_ = props;
#line 759 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp9__length1 = props_length1;
+ _tmp7__length1 = props_length1;
#line 759 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp10_ = number;
+ _tmp8_ = _tmp7_[number];
#line 759 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp11_ = _tmp9_[_tmp10_];
+ _tmp9_ = photo_metadata_internal_photo_preview_new (self, _tmp6_, number, _tmp8_);
#line 759 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp12_ = photo_metadata_internal_photo_preview_new (self, _tmp7_, _tmp8_, _tmp11_);
-#line 759 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_PHOTO_PREVIEW, PhotoPreview);
+ result = G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_PHOTO_PREVIEW, PhotoPreview);
#line 759 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 6103 "PhotoMetadata.c"
+#line 6280 "PhotoMetadata.c"
}
-void photo_metadata_remove_exif_thumbnail (PhotoMetadata* self) {
+void
+photo_metadata_remove_exif_thumbnail (PhotoMetadata* self)
+{
GExiv2Metadata* _tmp0_;
ExifData* _tmp1_;
#line 762 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -6121,7 +6300,7 @@ void photo_metadata_remove_exif_thumbnail (PhotoMetadata* self) {
_tmp1_ = self->priv->exif;
#line 764 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp1_ != NULL) {
-#line 6120 "PhotoMetadata.c"
+#line 6299 "PhotoMetadata.c"
ExifMem* _tmp2_;
ExifMem* _tmp3_;
ExifData* _tmp4_;
@@ -6148,14 +6327,16 @@ void photo_metadata_remove_exif_thumbnail (PhotoMetadata* self) {
_tmp7_ = self->priv->exif;
#line 767 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp7_->size = (guint) 0;
-#line 6147 "PhotoMetadata.c"
+#line 6326 "PhotoMetadata.c"
}
}
-void photo_metadata_remove_tag (PhotoMetadata* self, const gchar* tag) {
+void
+photo_metadata_remove_tag (PhotoMetadata* self,
+ const gchar* tag)
+{
GExiv2Metadata* _tmp0_;
- const gchar* _tmp1_;
#line 771 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
#line 771 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -6163,113 +6344,111 @@ void photo_metadata_remove_tag (PhotoMetadata* self, const gchar* tag) {
#line 772 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp0_ = self->priv->exiv2;
#line 772 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = tag;
-#line 772 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- gexiv2_metadata_clear_tag (_tmp0_, _tmp1_);
-#line 6165 "PhotoMetadata.c"
+ gexiv2_metadata_clear_tag (_tmp0_, tag);
+#line 6344 "PhotoMetadata.c"
}
-void photo_metadata_remove_tags (PhotoMetadata* self, gchar** tags, int tags_length1) {
- gchar** _tmp0_;
- gint _tmp0__length1;
+void
+photo_metadata_remove_tags (PhotoMetadata* self,
+ gchar** tags,
+ int tags_length1)
+{
#line 775 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
-#line 776 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = tags;
-#line 776 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0__length1 = tags_length1;
-#line 6178 "PhotoMetadata.c"
+#line 6355 "PhotoMetadata.c"
{
gchar** tag_collection = NULL;
gint tag_collection_length1 = 0;
gint _tag_collection_size_ = 0;
gint tag_it = 0;
#line 776 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tag_collection = _tmp0_;
+ tag_collection = tags;
#line 776 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tag_collection_length1 = _tmp0__length1;
+ tag_collection_length1 = tags_length1;
#line 776 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- for (tag_it = 0; tag_it < _tmp0__length1; tag_it = tag_it + 1) {
-#line 6190 "PhotoMetadata.c"
- gchar* _tmp1_;
+ for (tag_it = 0; tag_it < tags_length1; tag_it = tag_it + 1) {
+#line 6367 "PhotoMetadata.c"
+ gchar* _tmp0_;
gchar* tag = NULL;
#line 776 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = g_strdup (tag_collection[tag_it]);
+ _tmp0_ = g_strdup (tag_collection[tag_it]);
#line 776 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- tag = _tmp1_;
-#line 6197 "PhotoMetadata.c"
+ tag = _tmp0_;
+#line 6374 "PhotoMetadata.c"
{
- const gchar* _tmp2_;
+ const gchar* _tmp1_;
#line 777 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = tag;
+ _tmp1_ = tag;
#line 777 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_remove_tag (self, _tmp2_);
+ photo_metadata_remove_tag (self, _tmp1_);
#line 776 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (tag);
-#line 6206 "PhotoMetadata.c"
+#line 6383 "PhotoMetadata.c"
}
}
}
}
-void photo_metadata_clear_domain (PhotoMetadata* self, MetadataDomain domain) {
- MetadataDomain _tmp0_;
+void
+photo_metadata_clear_domain (PhotoMetadata* self,
+ MetadataDomain domain)
+{
#line 780 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
#line 781 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = domain;
-#line 781 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- switch (_tmp0_) {
+ switch (domain) {
#line 781 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
case METADATA_DOMAIN_EXIF:
-#line 6223 "PhotoMetadata.c"
+#line 6400 "PhotoMetadata.c"
{
- GExiv2Metadata* _tmp1_;
+ GExiv2Metadata* _tmp0_;
#line 783 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = self->priv->exiv2;
+ _tmp0_ = self->priv->exiv2;
#line 783 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- gexiv2_metadata_clear_exif (_tmp1_);
+ gexiv2_metadata_clear_exif (_tmp0_);
#line 784 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
break;
-#line 6232 "PhotoMetadata.c"
+#line 6409 "PhotoMetadata.c"
}
#line 781 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
case METADATA_DOMAIN_XMP:
-#line 6236 "PhotoMetadata.c"
+#line 6413 "PhotoMetadata.c"
{
- GExiv2Metadata* _tmp2_;
+ GExiv2Metadata* _tmp1_;
#line 787 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = self->priv->exiv2;
+ _tmp1_ = self->priv->exiv2;
#line 787 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- gexiv2_metadata_clear_xmp (_tmp2_);
+ gexiv2_metadata_clear_xmp (_tmp1_);
#line 788 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
break;
-#line 6245 "PhotoMetadata.c"
+#line 6422 "PhotoMetadata.c"
}
#line 781 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
case METADATA_DOMAIN_IPTC:
-#line 6249 "PhotoMetadata.c"
+#line 6426 "PhotoMetadata.c"
{
- GExiv2Metadata* _tmp3_;
+ GExiv2Metadata* _tmp2_;
#line 791 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = self->priv->exiv2;
+ _tmp2_ = self->priv->exiv2;
#line 791 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- gexiv2_metadata_clear_iptc (_tmp3_);
+ gexiv2_metadata_clear_iptc (_tmp2_);
#line 792 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
break;
-#line 6258 "PhotoMetadata.c"
+#line 6435 "PhotoMetadata.c"
}
default:
#line 781 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
break;
-#line 6263 "PhotoMetadata.c"
+#line 6440 "PhotoMetadata.c"
}
}
-void photo_metadata_clear (PhotoMetadata* self) {
+void
+photo_metadata_clear (PhotoMetadata* self)
+{
GExiv2Metadata* _tmp0_;
#line 796 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
@@ -6277,11 +6456,13 @@ void photo_metadata_clear (PhotoMetadata* self) {
_tmp0_ = self->priv->exiv2;
#line 797 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
gexiv2_metadata_clear (_tmp0_);
-#line 6276 "PhotoMetadata.c"
+#line 6455 "PhotoMetadata.c"
}
-MetadataDateTime* photo_metadata_get_modification_date_time (PhotoMetadata* self) {
+MetadataDateTime*
+photo_metadata_get_modification_date_time (PhotoMetadata* self)
+{
MetadataDateTime* result = NULL;
gchar** _tmp0_;
gint _tmp0__length1;
@@ -6298,51 +6479,48 @@ MetadataDateTime* photo_metadata_get_modification_date_time (PhotoMetadata* self
result = _tmp1_;
#line 808 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 6297 "PhotoMetadata.c"
+#line 6478 "PhotoMetadata.c"
}
-void photo_metadata_set_modification_date_time (PhotoMetadata* self, MetadataDateTime* date_time, PhotoMetadataSetOption option) {
- MetadataDateTime* _tmp0_;
+void
+photo_metadata_set_modification_date_time (PhotoMetadata* self,
+ MetadataDateTime* date_time,
+ PhotoMetadataSetOption option)
+{
#line 811 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
#line 811 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail ((date_time == NULL) || IS_METADATA_DATE_TIME (date_time));
#line 813 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = date_time;
-#line 813 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp0_ != NULL) {
-#line 6311 "PhotoMetadata.c"
- gchar** _tmp1_;
- gint _tmp1__length1;
- MetadataDateTime* _tmp2_;
- PhotoMetadataSetOption _tmp3_;
-#line 814 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = photo_metadata_DATE_TIME_TAGS;
-#line 814 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1__length1 = photo_metadata_DATE_TIME_TAGS_length1;
+ if (date_time != NULL) {
+#line 6493 "PhotoMetadata.c"
+ gchar** _tmp0_;
+ gint _tmp0__length1;
#line 814 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = date_time;
+ _tmp0_ = photo_metadata_DATE_TIME_TAGS;
#line 814 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = option;
+ _tmp0__length1 = photo_metadata_DATE_TIME_TAGS_length1;
#line 814 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_set_all_date_time (self, _tmp1_, _tmp1__length1, _tmp2_, _tmp3_);
-#line 6326 "PhotoMetadata.c"
+ photo_metadata_set_all_date_time (self, _tmp0_, _tmp0__length1, date_time, option);
+#line 6502 "PhotoMetadata.c"
} else {
- gchar** _tmp4_;
- gint _tmp4__length1;
+ gchar** _tmp1_;
+ gint _tmp1__length1;
#line 816 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = photo_metadata_DATE_TIME_TAGS;
+ _tmp1_ = photo_metadata_DATE_TIME_TAGS;
#line 816 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4__length1 = photo_metadata_DATE_TIME_TAGS_length1;
+ _tmp1__length1 = photo_metadata_DATE_TIME_TAGS_length1;
#line 816 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_remove_tags (self, _tmp4_, _tmp4__length1);
-#line 6336 "PhotoMetadata.c"
+ photo_metadata_remove_tags (self, _tmp1_, _tmp1__length1);
+#line 6512 "PhotoMetadata.c"
}
}
-MetadataDateTime* photo_metadata_get_exposure_date_time (PhotoMetadata* self) {
+MetadataDateTime*
+photo_metadata_get_exposure_date_time (PhotoMetadata* self)
+{
MetadataDateTime* result = NULL;
gchar** _tmp0_;
gint _tmp0__length1;
@@ -6359,51 +6537,48 @@ MetadataDateTime* photo_metadata_get_exposure_date_time (PhotoMetadata* self) {
result = _tmp1_;
#line 829 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 6358 "PhotoMetadata.c"
+#line 6536 "PhotoMetadata.c"
}
-void photo_metadata_set_exposure_date_time (PhotoMetadata* self, MetadataDateTime* date_time, PhotoMetadataSetOption option) {
- MetadataDateTime* _tmp0_;
+void
+photo_metadata_set_exposure_date_time (PhotoMetadata* self,
+ MetadataDateTime* date_time,
+ PhotoMetadataSetOption option)
+{
#line 832 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
#line 832 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail ((date_time == NULL) || IS_METADATA_DATE_TIME (date_time));
#line 834 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = date_time;
-#line 834 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp0_ != NULL) {
-#line 6372 "PhotoMetadata.c"
- gchar** _tmp1_;
- gint _tmp1__length1;
- MetadataDateTime* _tmp2_;
- PhotoMetadataSetOption _tmp3_;
+ if (date_time != NULL) {
+#line 6551 "PhotoMetadata.c"
+ gchar** _tmp0_;
+ gint _tmp0__length1;
#line 835 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = photo_metadata_EXPOSURE_DATE_TIME_TAGS;
-#line 835 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1__length1 = photo_metadata_EXPOSURE_DATE_TIME_TAGS_length1;
+ _tmp0_ = photo_metadata_EXPOSURE_DATE_TIME_TAGS;
#line 835 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = date_time;
+ _tmp0__length1 = photo_metadata_EXPOSURE_DATE_TIME_TAGS_length1;
#line 835 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = option;
-#line 835 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_set_all_date_time (self, _tmp1_, _tmp1__length1, _tmp2_, _tmp3_);
-#line 6387 "PhotoMetadata.c"
+ photo_metadata_set_all_date_time (self, _tmp0_, _tmp0__length1, date_time, option);
+#line 6560 "PhotoMetadata.c"
} else {
- gchar** _tmp4_;
- gint _tmp4__length1;
+ gchar** _tmp1_;
+ gint _tmp1__length1;
#line 837 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = photo_metadata_EXPOSURE_DATE_TIME_TAGS;
+ _tmp1_ = photo_metadata_EXPOSURE_DATE_TIME_TAGS;
#line 837 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4__length1 = photo_metadata_EXPOSURE_DATE_TIME_TAGS_length1;
+ _tmp1__length1 = photo_metadata_EXPOSURE_DATE_TIME_TAGS_length1;
#line 837 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_remove_tags (self, _tmp4_, _tmp4__length1);
-#line 6397 "PhotoMetadata.c"
+ photo_metadata_remove_tags (self, _tmp1_, _tmp1__length1);
+#line 6570 "PhotoMetadata.c"
}
}
-MetadataDateTime* photo_metadata_get_digitized_date_time (PhotoMetadata* self) {
+MetadataDateTime*
+photo_metadata_get_digitized_date_time (PhotoMetadata* self)
+{
MetadataDateTime* result = NULL;
gchar** _tmp0_;
gint _tmp0__length1;
@@ -6420,51 +6595,48 @@ MetadataDateTime* photo_metadata_get_digitized_date_time (PhotoMetadata* self) {
result = _tmp1_;
#line 846 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 6419 "PhotoMetadata.c"
+#line 6594 "PhotoMetadata.c"
}
-void photo_metadata_set_digitized_date_time (PhotoMetadata* self, MetadataDateTime* date_time, PhotoMetadataSetOption option) {
- MetadataDateTime* _tmp0_;
+void
+photo_metadata_set_digitized_date_time (PhotoMetadata* self,
+ MetadataDateTime* date_time,
+ PhotoMetadataSetOption option)
+{
#line 849 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
#line 849 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail ((date_time == NULL) || IS_METADATA_DATE_TIME (date_time));
#line 851 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = date_time;
-#line 851 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp0_ != NULL) {
-#line 6433 "PhotoMetadata.c"
- gchar** _tmp1_;
- gint _tmp1__length1;
- MetadataDateTime* _tmp2_;
- PhotoMetadataSetOption _tmp3_;
+ if (date_time != NULL) {
+#line 6609 "PhotoMetadata.c"
+ gchar** _tmp0_;
+ gint _tmp0__length1;
#line 852 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = photo_metadata_DIGITIZED_DATE_TIME_TAGS;
-#line 852 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1__length1 = photo_metadata_DIGITIZED_DATE_TIME_TAGS_length1;
-#line 852 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = date_time;
+ _tmp0_ = photo_metadata_DIGITIZED_DATE_TIME_TAGS;
#line 852 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = option;
+ _tmp0__length1 = photo_metadata_DIGITIZED_DATE_TIME_TAGS_length1;
#line 852 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_set_all_date_time (self, _tmp1_, _tmp1__length1, _tmp2_, _tmp3_);
-#line 6448 "PhotoMetadata.c"
+ photo_metadata_set_all_date_time (self, _tmp0_, _tmp0__length1, date_time, option);
+#line 6618 "PhotoMetadata.c"
} else {
- gchar** _tmp4_;
- gint _tmp4__length1;
+ gchar** _tmp1_;
+ gint _tmp1__length1;
#line 854 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = photo_metadata_DIGITIZED_DATE_TIME_TAGS;
+ _tmp1_ = photo_metadata_DIGITIZED_DATE_TIME_TAGS;
#line 854 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4__length1 = photo_metadata_DIGITIZED_DATE_TIME_TAGS_length1;
+ _tmp1__length1 = photo_metadata_DIGITIZED_DATE_TIME_TAGS_length1;
#line 854 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_remove_tags (self, _tmp4_, _tmp4__length1);
-#line 6458 "PhotoMetadata.c"
+ photo_metadata_remove_tags (self, _tmp1_, _tmp1__length1);
+#line 6628 "PhotoMetadata.c"
}
}
-static MetadataDateTime* photo_metadata_real_get_creation_date_time (MediaMetadata* base) {
+static MetadataDateTime*
+photo_metadata_real_get_creation_date_time (MediaMetadata* base)
+{
PhotoMetadata * self;
MetadataDateTime* result = NULL;
MetadataDateTime* creation = NULL;
@@ -6480,7 +6652,7 @@ static MetadataDateTime* photo_metadata_real_get_creation_date_time (MediaMetada
_tmp1_ = creation;
#line 859 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp1_ == NULL) {
-#line 6479 "PhotoMetadata.c"
+#line 6651 "PhotoMetadata.c"
MetadataDateTime* _tmp2_;
#line 860 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp2_ = photo_metadata_get_digitized_date_time (self);
@@ -6488,24 +6660,28 @@ static MetadataDateTime* photo_metadata_real_get_creation_date_time (MediaMetada
_metadata_date_time_unref0 (creation);
#line 860 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
creation = _tmp2_;
-#line 6487 "PhotoMetadata.c"
+#line 6659 "PhotoMetadata.c"
}
#line 862 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
result = creation;
#line 862 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 6493 "PhotoMetadata.c"
+#line 6665 "PhotoMetadata.c"
}
-static gpointer _dimensions_dup0 (gpointer self) {
+static gpointer
+_dimensions_dup0 (gpointer self)
+{
#line 893 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return self ? dimensions_dup (self) : NULL;
-#line 6500 "PhotoMetadata.c"
+#line 6674 "PhotoMetadata.c"
}
-Dimensions* photo_metadata_get_pixel_dimensions (PhotoMetadata* self) {
+Dimensions*
+photo_metadata_get_pixel_dimensions (PhotoMetadata* self)
+{
Dimensions* result = NULL;
gchar** _tmp0_;
gint _tmp0__length1;
@@ -6523,19 +6699,19 @@ Dimensions* photo_metadata_get_pixel_dimensions (PhotoMetadata* self) {
_tmp1__length1 = photo_metadata_HEIGHT_TAGS_length1;
#line 881 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_vala_assert (_tmp0__length1 == _tmp1__length1, "WIDTH_TAGS.length == HEIGHT_TAGS.length");
-#line 6522 "PhotoMetadata.c"
+#line 6698 "PhotoMetadata.c"
{
gint ctr = 0;
#line 882 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
ctr = 0;
-#line 6527 "PhotoMetadata.c"
+#line 6703 "PhotoMetadata.c"
{
gboolean _tmp2_ = FALSE;
#line 882 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp2_ = TRUE;
#line 882 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
while (TRUE) {
-#line 6534 "PhotoMetadata.c"
+#line 6710 "PhotoMetadata.c"
gint _tmp4_;
gchar** _tmp5_;
gint _tmp5__length1;
@@ -6559,13 +6735,13 @@ Dimensions* photo_metadata_get_pixel_dimensions (PhotoMetadata* self) {
Dimensions* _tmp19_;
#line 882 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (!_tmp2_) {
-#line 6558 "PhotoMetadata.c"
+#line 6734 "PhotoMetadata.c"
gint _tmp3_;
#line 882 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp3_ = ctr;
#line 882 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
ctr = _tmp3_ + 1;
-#line 6564 "PhotoMetadata.c"
+#line 6740 "PhotoMetadata.c"
}
#line 882 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp2_ = FALSE;
@@ -6579,7 +6755,7 @@ Dimensions* photo_metadata_get_pixel_dimensions (PhotoMetadata* self) {
if (!(_tmp4_ < _tmp5__length1)) {
#line 882 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
break;
-#line 6578 "PhotoMetadata.c"
+#line 6754 "PhotoMetadata.c"
}
#line 886 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp6_ = photo_metadata_WIDTH_TAGS;
@@ -6597,7 +6773,7 @@ Dimensions* photo_metadata_get_pixel_dimensions (PhotoMetadata* self) {
if (!_tmp10_) {
#line 887 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
continue;
-#line 6596 "PhotoMetadata.c"
+#line 6772 "PhotoMetadata.c"
}
#line 890 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp11_ = photo_metadata_HEIGHT_TAGS;
@@ -6615,7 +6791,7 @@ Dimensions* photo_metadata_get_pixel_dimensions (PhotoMetadata* self) {
if (!_tmp15_) {
#line 891 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
continue;
-#line 6614 "PhotoMetadata.c"
+#line 6790 "PhotoMetadata.c"
}
#line 893 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp16_ = width;
@@ -6629,7 +6805,7 @@ Dimensions* photo_metadata_get_pixel_dimensions (PhotoMetadata* self) {
result = _tmp19_;
#line 893 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 6628 "PhotoMetadata.c"
+#line 6804 "PhotoMetadata.c"
}
}
}
@@ -6637,363 +6813,330 @@ Dimensions* photo_metadata_get_pixel_dimensions (PhotoMetadata* self) {
result = NULL;
#line 896 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 6636 "PhotoMetadata.c"
+#line 6812 "PhotoMetadata.c"
}
-void photo_metadata_set_pixel_dimensions (PhotoMetadata* self, Dimensions* dim, PhotoMetadataSetOption option) {
- Dimensions* _tmp0_;
+void
+photo_metadata_set_pixel_dimensions (PhotoMetadata* self,
+ Dimensions* dim,
+ PhotoMetadataSetOption option)
+{
#line 899 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
#line 900 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = dim;
-#line 900 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp0_ != NULL) {
-#line 6648 "PhotoMetadata.c"
- gchar** _tmp1_;
- gint _tmp1__length1;
- Dimensions* _tmp2_;
+ if (dim != NULL) {
+#line 6825 "PhotoMetadata.c"
+ gchar** _tmp0_;
+ gint _tmp0__length1;
+ gint _tmp1_;
+ gchar** _tmp2_;
+ gint _tmp2__length1;
gint _tmp3_;
- PhotoMetadataSetOption _tmp4_;
- gchar** _tmp5_;
- gint _tmp5__length1;
- Dimensions* _tmp6_;
- gint _tmp7_;
- PhotoMetadataSetOption _tmp8_;
#line 901 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = photo_metadata_WIDTH_TAGS;
+ _tmp0_ = photo_metadata_WIDTH_TAGS;
#line 901 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1__length1 = photo_metadata_WIDTH_TAGS_length1;
+ _tmp0__length1 = photo_metadata_WIDTH_TAGS_length1;
#line 901 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = dim;
+ _tmp1_ = (*dim).width;
#line 901 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = (*_tmp2_).width;
-#line 901 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = option;
-#line 901 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_set_all_long (self, _tmp1_, _tmp1__length1, (glong) _tmp3_, _tmp4_);
+ photo_metadata_set_all_long (self, _tmp0_, _tmp0__length1, (glong) _tmp1_, option);
#line 902 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = photo_metadata_HEIGHT_TAGS;
+ _tmp2_ = photo_metadata_HEIGHT_TAGS;
#line 902 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5__length1 = photo_metadata_HEIGHT_TAGS_length1;
+ _tmp2__length1 = photo_metadata_HEIGHT_TAGS_length1;
#line 902 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = dim;
+ _tmp3_ = (*dim).height;
#line 902 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_ = (*_tmp6_).height;
-#line 902 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp8_ = option;
-#line 902 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_set_all_long (self, _tmp5_, _tmp5__length1, (glong) _tmp7_, _tmp8_);
-#line 6683 "PhotoMetadata.c"
+ photo_metadata_set_all_long (self, _tmp2_, _tmp2__length1, (glong) _tmp3_, option);
+#line 6848 "PhotoMetadata.c"
} else {
- gchar** _tmp9_;
- gint _tmp9__length1;
- gchar** _tmp10_;
- gint _tmp10__length1;
+ gchar** _tmp4_;
+ gint _tmp4__length1;
+ gchar** _tmp5_;
+ gint _tmp5__length1;
#line 904 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp9_ = photo_metadata_WIDTH_TAGS;
+ _tmp4_ = photo_metadata_WIDTH_TAGS;
#line 904 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp9__length1 = photo_metadata_WIDTH_TAGS_length1;
+ _tmp4__length1 = photo_metadata_WIDTH_TAGS_length1;
#line 904 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_remove_tags (self, _tmp9_, _tmp9__length1);
+ photo_metadata_remove_tags (self, _tmp4_, _tmp4__length1);
#line 905 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp10_ = photo_metadata_HEIGHT_TAGS;
+ _tmp5_ = photo_metadata_HEIGHT_TAGS;
#line 905 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp10__length1 = photo_metadata_HEIGHT_TAGS_length1;
+ _tmp5__length1 = photo_metadata_HEIGHT_TAGS_length1;
#line 905 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_remove_tags (self, _tmp10_, _tmp10__length1);
-#line 6701 "PhotoMetadata.c"
+ photo_metadata_remove_tags (self, _tmp5_, _tmp5__length1);
+#line 6866 "PhotoMetadata.c"
}
}
-static gchar* string_strip (const gchar* self) {
+static gchar*
+string_strip (const gchar* self)
+{
gchar* result = NULL;
gchar* _result_ = NULL;
gchar* _tmp0_;
const gchar* _tmp1_;
-#line 1234 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1248 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
g_return_val_if_fail (self != NULL, NULL);
-#line 1235 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1249 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
_tmp0_ = g_strdup (self);
-#line 1235 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1249 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
_result_ = _tmp0_;
-#line 1236 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1250 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
_tmp1_ = _result_;
-#line 1236 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1250 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
g_strstrip (_tmp1_);
-#line 1237 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1251 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
result = _result_;
-#line 1237 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1251 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
return result;
-#line 6725 "PhotoMetadata.c"
+#line 6892 "PhotoMetadata.c"
}
-static gboolean string_contains (const gchar* self, const gchar* needle) {
+static gboolean
+string_contains (const gchar* self,
+ const gchar* needle)
+{
gboolean result = FALSE;
- const gchar* _tmp0_;
- gchar* _tmp1_;
-#line 1403 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ gchar* _tmp0_;
+#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
g_return_val_if_fail (self != NULL, FALSE);
-#line 1403 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
g_return_val_if_fail (needle != NULL, FALSE);
-#line 1404 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp0_ = needle;
-#line 1404 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp1_ = strstr ((gchar*) self, (gchar*) _tmp0_);
-#line 1404 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- result = _tmp1_ != NULL;
-#line 1404 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _tmp0_ = strstr ((gchar*) self, (gchar*) needle);
+#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ result = _tmp0_ != NULL;
+#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
return result;
-#line 6745 "PhotoMetadata.c"
+#line 6912 "PhotoMetadata.c"
}
-static gchar* photo_metadata_real_get_title (MediaMetadata* base) {
+static gchar*
+photo_metadata_real_get_title (MediaMetadata* base)
+{
PhotoMetadata * self;
gchar* result = NULL;
GeeList* _tmp0_ = NULL;
- gboolean _tmp1_;
GeeList* titles = NULL;
- GeeList* _tmp5_;
- gchar* _tmp6_ = NULL;
- gboolean _tmp7_ = FALSE;
- GeeList* _tmp8_;
+ GeeList* _tmp4_;
+ gchar* _tmp5_ = NULL;
+ gboolean _tmp6_ = FALSE;
+ GeeList* _tmp7_;
gchar* title = NULL;
- gchar* _tmp14_;
- const gchar* _tmp15_;
- const gchar* _tmp18_ = NULL;
+ gchar* _tmp13_;
+ const gchar* _tmp14_;
+ const gchar* _tmp17_ = NULL;
+ gboolean _tmp18_ = FALSE;
gboolean _tmp19_ = FALSE;
- gboolean _tmp20_ = FALSE;
- const gchar* _tmp21_;
- gboolean _tmp22_;
- gchar* _tmp28_;
+ const gchar* _tmp20_;
+ gchar* _tmp24_;
#line 939 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_METADATA, PhotoMetadata);
#line 947 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = photo_metadata_has_tag (self, PHOTO_METADATA_IPHOTO_TITLE_TAG);
-#line 947 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp1_) {
-#line 6774 "PhotoMetadata.c"
- GeeList* _tmp2_;
+ if (photo_metadata_has_tag (self, PHOTO_METADATA_IPHOTO_TITLE_TAG)) {
+#line 6939 "PhotoMetadata.c"
+ GeeList* _tmp1_;
#line 948 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = photo_metadata_get_string_multiple (self, PHOTO_METADATA_IPHOTO_TITLE_TAG);
+ _tmp1_ = photo_metadata_get_string_multiple (self, PHOTO_METADATA_IPHOTO_TITLE_TAG);
#line 948 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_object_unref0 (_tmp0_);
#line 948 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = _tmp2_;
-#line 6782 "PhotoMetadata.c"
+ _tmp0_ = _tmp1_;
+#line 6947 "PhotoMetadata.c"
} else {
- gchar** _tmp3_;
- gint _tmp3__length1;
- GeeList* _tmp4_;
+ gchar** _tmp2_;
+ gint _tmp2__length1;
+ GeeList* _tmp3_;
#line 949 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = photo_metadata_STANDARD_TITLE_TAGS;
+ _tmp2_ = photo_metadata_STANDARD_TITLE_TAGS;
#line 949 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3__length1 = photo_metadata_STANDARD_TITLE_TAGS_length1;
+ _tmp2__length1 = photo_metadata_STANDARD_TITLE_TAGS_length1;
#line 949 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = photo_metadata_get_first_string_multiple (self, _tmp3_, _tmp3__length1);
+ _tmp3_ = photo_metadata_get_first_string_multiple (self, _tmp2_, _tmp2__length1);
#line 949 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_object_unref0 (_tmp0_);
#line 949 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = _tmp4_;
-#line 6797 "PhotoMetadata.c"
+ _tmp0_ = _tmp3_;
+#line 6962 "PhotoMetadata.c"
}
#line 947 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = _g_object_ref0 (_tmp0_);
+ _tmp4_ = _g_object_ref0 (_tmp0_);
#line 947 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- titles = _tmp5_;
+ titles = _tmp4_;
#line 954 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp8_ = titles;
+ _tmp7_ = titles;
#line 954 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp8_ != NULL) {
-#line 6807 "PhotoMetadata.c"
- GeeList* _tmp9_;
+ if (_tmp7_ != NULL) {
+#line 6972 "PhotoMetadata.c"
+ GeeList* _tmp8_;
+ gint _tmp9_;
gint _tmp10_;
- gint _tmp11_;
#line 954 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp9_ = titles;
+ _tmp8_ = titles;
#line 954 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp10_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_COLLECTION, GeeCollection));
+ _tmp9_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_COLLECTION, GeeCollection));
#line 954 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp11_ = _tmp10_;
+ _tmp10_ = _tmp9_;
#line 954 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_ = _tmp11_ > 0;
-#line 6819 "PhotoMetadata.c"
+ _tmp6_ = _tmp10_ > 0;
+#line 6984 "PhotoMetadata.c"
} else {
#line 954 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_ = FALSE;
-#line 6823 "PhotoMetadata.c"
+ _tmp6_ = FALSE;
+#line 6988 "PhotoMetadata.c"
}
#line 954 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp7_) {
-#line 6827 "PhotoMetadata.c"
- GeeList* _tmp12_;
- gpointer _tmp13_;
+ if (_tmp6_) {
+#line 6992 "PhotoMetadata.c"
+ GeeList* _tmp11_;
+ gpointer _tmp12_;
#line 954 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp12_ = titles;
+ _tmp11_ = titles;
#line 954 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp13_ = gee_list_get (_tmp12_, 0);
+ _tmp12_ = gee_list_get (_tmp11_, 0);
#line 954 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (_tmp6_);
+ _g_free0 (_tmp5_);
#line 954 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = (gchar*) _tmp13_;
-#line 6838 "PhotoMetadata.c"
+ _tmp5_ = (gchar*) _tmp12_;
+#line 7003 "PhotoMetadata.c"
} else {
#line 954 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (_tmp6_);
+ _g_free0 (_tmp5_);
#line 954 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = NULL;
-#line 6844 "PhotoMetadata.c"
+ _tmp5_ = NULL;
+#line 7009 "PhotoMetadata.c"
}
#line 954 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp14_ = g_strdup (_tmp6_);
+ _tmp13_ = g_strdup (_tmp5_);
#line 954 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- title = _tmp14_;
+ title = _tmp13_;
#line 957 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp15_ = title;
+ _tmp14_ = title;
#line 957 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp15_ != NULL) {
-#line 6854 "PhotoMetadata.c"
- const gchar* _tmp16_;
- gchar* _tmp17_;
+ if (_tmp14_ != NULL) {
+#line 7019 "PhotoMetadata.c"
+ const gchar* _tmp15_;
+ gchar* _tmp16_;
#line 958 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp16_ = title;
+ _tmp15_ = title;
#line 958 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp17_ = string_strip (_tmp16_);
+ _tmp16_ = string_strip (_tmp15_);
#line 958 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (title);
#line 958 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- title = _tmp17_;
-#line 6865 "PhotoMetadata.c"
+ title = _tmp16_;
+#line 7030 "PhotoMetadata.c"
}
#line 961 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp21_ = title;
-#line 961 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp22_ = is_string_empty (_tmp21_);
+ _tmp20_ = title;
#line 961 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!_tmp22_) {
-#line 6873 "PhotoMetadata.c"
- const gchar* _tmp23_;
- gboolean _tmp24_;
+ if (!is_string_empty (_tmp20_)) {
+#line 7036 "PhotoMetadata.c"
+ const gchar* _tmp21_;
#line 961 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp23_ = title;
+ _tmp21_ = title;
#line 961 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp24_ = string_contains (_tmp23_, "\n");
-#line 961 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp20_ = !_tmp24_;
-#line 6882 "PhotoMetadata.c"
+ _tmp19_ = !string_contains (_tmp21_, "\n");
+#line 7042 "PhotoMetadata.c"
} else {
#line 961 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp20_ = FALSE;
-#line 6886 "PhotoMetadata.c"
+ _tmp19_ = FALSE;
+#line 7046 "PhotoMetadata.c"
}
#line 961 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp20_) {
-#line 6890 "PhotoMetadata.c"
- const gchar* _tmp25_;
- gboolean _tmp26_;
-#line 961 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp25_ = title;
+ if (_tmp19_) {
+#line 7050 "PhotoMetadata.c"
+ const gchar* _tmp22_;
#line 961 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp26_ = string_contains (_tmp25_, "\r");
+ _tmp22_ = title;
#line 961 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp19_ = !_tmp26_;
-#line 6899 "PhotoMetadata.c"
+ _tmp18_ = !string_contains (_tmp22_, "\r");
+#line 7056 "PhotoMetadata.c"
} else {
#line 961 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp19_ = FALSE;
-#line 6903 "PhotoMetadata.c"
+ _tmp18_ = FALSE;
+#line 7060 "PhotoMetadata.c"
}
#line 961 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp19_) {
-#line 6907 "PhotoMetadata.c"
- const gchar* _tmp27_;
+ if (_tmp18_) {
+#line 7064 "PhotoMetadata.c"
+ const gchar* _tmp23_;
#line 962 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp27_ = title;
+ _tmp23_ = title;
#line 962 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp18_ = _tmp27_;
-#line 6913 "PhotoMetadata.c"
+ _tmp17_ = _tmp23_;
+#line 7070 "PhotoMetadata.c"
} else {
#line 962 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp18_ = NULL;
-#line 6917 "PhotoMetadata.c"
+ _tmp17_ = NULL;
+#line 7074 "PhotoMetadata.c"
}
#line 961 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp28_ = g_strdup (_tmp18_);
+ _tmp24_ = g_strdup (_tmp17_);
#line 961 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp28_;
+ result = _tmp24_;
#line 961 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (title);
#line 961 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (_tmp6_);
+ _g_free0 (_tmp5_);
#line 961 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_object_unref0 (titles);
#line 961 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_object_unref0 (_tmp0_);
#line 961 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 6933 "PhotoMetadata.c"
+#line 7090 "PhotoMetadata.c"
}
-void photo_metadata_set_title (PhotoMetadata* self, const gchar* title, PhotoMetadataSetOption option) {
- const gchar* _tmp0_;
- gboolean _tmp1_;
+void
+photo_metadata_set_title (PhotoMetadata* self,
+ const gchar* title,
+ PhotoMetadataSetOption option)
+{
#line 965 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
#line 966 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = title;
-#line 966 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = is_string_empty (_tmp0_);
-#line 966 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!_tmp1_) {
-#line 6948 "PhotoMetadata.c"
- gboolean _tmp2_;
+ if (!is_string_empty (title)) {
#line 967 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = photo_metadata_has_tag (self, PHOTO_METADATA_IPHOTO_TITLE_TAG);
-#line 967 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp2_) {
-#line 6954 "PhotoMetadata.c"
- const gchar* _tmp3_;
-#line 968 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = title;
+ if (photo_metadata_has_tag (self, PHOTO_METADATA_IPHOTO_TITLE_TAG)) {
#line 968 "/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 6960 "PhotoMetadata.c"
+ photo_metadata_set_string (self, PHOTO_METADATA_IPHOTO_TITLE_TAG, title, PHOTO_METADATA_PREPARE_STRING_OPTIONS);
+#line 7107 "PhotoMetadata.c"
} else {
- gchar** _tmp4_;
- gint _tmp4__length1;
- const gchar* _tmp5_;
- PhotoMetadataSetOption _tmp6_;
+ gchar** _tmp0_;
+ gint _tmp0__length1;
#line 970 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = photo_metadata_STANDARD_TITLE_TAGS;
+ _tmp0_ = photo_metadata_STANDARD_TITLE_TAGS;
#line 970 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4__length1 = photo_metadata_STANDARD_TITLE_TAGS_length1;
+ _tmp0__length1 = photo_metadata_STANDARD_TITLE_TAGS_length1;
#line 970 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = title;
-#line 970 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = option;
-#line 970 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_set_all_string (self, _tmp4_, _tmp4__length1, _tmp5_, _tmp6_);
-#line 6976 "PhotoMetadata.c"
+ photo_metadata_set_all_string (self, _tmp0_, _tmp0__length1, title, option);
+#line 7117 "PhotoMetadata.c"
}
} else {
- gchar** _tmp7_;
- gint _tmp7__length1;
+ gchar** _tmp1_;
+ gint _tmp1__length1;
#line 972 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_ = photo_metadata_STANDARD_TITLE_TAGS;
+ _tmp1_ = photo_metadata_STANDARD_TITLE_TAGS;
#line 972 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7__length1 = photo_metadata_STANDARD_TITLE_TAGS_length1;
+ _tmp1__length1 = photo_metadata_STANDARD_TITLE_TAGS_length1;
#line 972 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_remove_tags (self, _tmp7_, _tmp7__length1);
-#line 6987 "PhotoMetadata.c"
+ photo_metadata_remove_tags (self, _tmp1_, _tmp1__length1);
+#line 7128 "PhotoMetadata.c"
}
}
-static gchar* photo_metadata_real_get_comment (MediaMetadata* base) {
+static gchar*
+photo_metadata_real_get_comment (MediaMetadata* base)
+{
PhotoMetadata * self;
gchar* result = NULL;
gchar** _tmp0_;
@@ -7011,25 +7154,29 @@ static gchar* photo_metadata_real_get_comment (MediaMetadata* base) {
result = _tmp1_;
#line 982 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 7010 "PhotoMetadata.c"
+#line 7153 "PhotoMetadata.c"
}
-static Block6Data* block6_data_ref (Block6Data* _data6_) {
+static Block6Data*
+block6_data_ref (Block6Data* _data6_)
+{
#line 985 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_atomic_int_inc (&_data6_->_ref_count_);
#line 985 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return _data6_;
-#line 7019 "PhotoMetadata.c"
+#line 7164 "PhotoMetadata.c"
}
-static void block6_data_unref (void * _userdata_) {
+static void
+block6_data_unref (void * _userdata_)
+{
Block6Data* _data6_;
_data6_ = (Block6Data*) _userdata_;
#line 985 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (g_atomic_int_dec_and_test (&_data6_->_ref_count_)) {
-#line 7028 "PhotoMetadata.c"
+#line 7175 "PhotoMetadata.c"
PhotoMetadata* self;
#line 985 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
self = _data6_->self;
@@ -7039,42 +7186,43 @@ static void block6_data_unref (void * _userdata_) {
_media_metadata_unref0 (self);
#line 985 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_slice_free (Block6Data, _data6_);
-#line 7038 "PhotoMetadata.c"
+#line 7185 "PhotoMetadata.c"
}
}
-static void ___lambda10_ (Block6Data* _data6_, const gchar* tag) {
+static void
+___lambda10_ (Block6Data* _data6_,
+ const gchar* tag)
+{
PhotoMetadata* self;
- const gchar* _tmp0_;
- const gchar* _tmp1_;
#line 990 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
self = _data6_->self;
#line 990 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (tag != NULL);
#line 991 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = tag;
-#line 991 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = _data6_->comment;
-#line 991 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_set_string (self, _tmp0_, _tmp1_, PHOTO_METADATA_PREPARE_STRING_OPTIONS & (~PREPARE_INPUT_TEXT_OPTIONS_STRIP_CRLF));
-#line 7057 "PhotoMetadata.c"
+ photo_metadata_set_string (self, tag, _data6_->comment, PHOTO_METADATA_PREPARE_STRING_OPTIONS & (~PREPARE_INPUT_TEXT_OPTIONS_STRIP_CRLF));
+#line 7201 "PhotoMetadata.c"
}
-static void ____lambda10__photo_metadata_set_generic_value (const gchar* tag, gpointer self) {
+static void
+____lambda10__photo_metadata_set_generic_value (const gchar* tag,
+ gpointer self)
+{
#line 990 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
___lambda10_ (self, tag);
-#line 7064 "PhotoMetadata.c"
+#line 7211 "PhotoMetadata.c"
}
-void photo_metadata_set_comment (PhotoMetadata* self, const gchar* comment, PhotoMetadataSetOption option) {
+void
+photo_metadata_set_comment (PhotoMetadata* self,
+ const gchar* comment,
+ PhotoMetadataSetOption option)
+{
Block6Data* _data6_;
- const gchar* _tmp0_;
- gchar* _tmp1_;
- const gchar* _tmp2_;
- gboolean _tmp3_;
+ gchar* _tmp0_;
#line 985 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
#line 985 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -7084,60 +7232,56 @@ void photo_metadata_set_comment (PhotoMetadata* self, const gchar* comment, Phot
#line 985 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_data6_->self = media_metadata_ref (self);
#line 985 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = comment;
-#line 985 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = g_strdup (_tmp0_);
+ _tmp0_ = g_strdup (comment);
#line 985 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (_data6_->comment);
#line 985 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _data6_->comment = _tmp1_;
-#line 989 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = _data6_->comment;
-#line 989 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = is_string_empty (_tmp2_);
+ _data6_->comment = _tmp0_;
#line 989 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!_tmp3_) {
-#line 7096 "PhotoMetadata.c"
- gchar** _tmp4_;
- gint _tmp4__length1;
- PhotoMetadataSetOption _tmp5_;
-#line 990 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = photo_metadata_COMMENT_TAGS;
+ if (!is_string_empty (_data6_->comment)) {
+#line 7238 "PhotoMetadata.c"
+ gchar** _tmp1_;
+ gint _tmp1__length1;
#line 990 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4__length1 = photo_metadata_COMMENT_TAGS_length1;
+ _tmp1_ = photo_metadata_COMMENT_TAGS;
#line 990 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = option;
+ _tmp1__length1 = photo_metadata_COMMENT_TAGS_length1;
#line 990 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_set_all_generic (self, _tmp4_, _tmp4__length1, _tmp5_, ____lambda10__photo_metadata_set_generic_value, _data6_);
-#line 7108 "PhotoMetadata.c"
+ photo_metadata_set_all_generic (self, _tmp1_, _tmp1__length1, option, ____lambda10__photo_metadata_set_generic_value, _data6_);
+#line 7247 "PhotoMetadata.c"
} else {
- gchar** _tmp6_;
- gint _tmp6__length1;
+ gchar** _tmp2_;
+ gint _tmp2__length1;
#line 995 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = photo_metadata_COMMENT_TAGS;
+ _tmp2_ = photo_metadata_COMMENT_TAGS;
#line 995 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6__length1 = photo_metadata_COMMENT_TAGS_length1;
+ _tmp2__length1 = photo_metadata_COMMENT_TAGS_length1;
#line 995 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_remove_tags (self, _tmp6_, _tmp6__length1);
-#line 7118 "PhotoMetadata.c"
+ photo_metadata_remove_tags (self, _tmp2_, _tmp2__length1);
+#line 7257 "PhotoMetadata.c"
}
#line 985 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
block6_data_unref (_data6_);
#line 985 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_data6_ = NULL;
-#line 7124 "PhotoMetadata.c"
+#line 7263 "PhotoMetadata.c"
}
-GeeSet* photo_metadata_get_keywords (PhotoMetadata* self, GCompareDataFunc compare_func, void* compare_func_target, GDestroyNotify compare_func_target_destroy_notify) {
+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_;
gint _tmp0__length1;
- GeeSet* _tmp22_ = NULL;
- gboolean _tmp23_ = FALSE;
- GeeSet* _tmp24_;
- GeeSet* _tmp29_;
+ GeeSet* _tmp21_ = NULL;
+ gboolean _tmp22_ = FALSE;
+ GeeSet* _tmp23_;
+ GeeSet* _tmp28_;
#line 1015 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
#line 1016 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -7146,7 +7290,7 @@ GeeSet* photo_metadata_get_keywords (PhotoMetadata* self, GCompareDataFunc compa
_tmp0_ = photo_metadata_KEYWORD_TAGS;
#line 1017 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp0__length1 = photo_metadata_KEYWORD_TAGS_length1;
-#line 7145 "PhotoMetadata.c"
+#line 7289 "PhotoMetadata.c"
{
gchar** tag_collection = NULL;
gint tag_collection_length1 = 0;
@@ -7158,14 +7302,14 @@ GeeSet* photo_metadata_get_keywords (PhotoMetadata* self, GCompareDataFunc compa
tag_collection_length1 = _tmp0__length1;
#line 1017 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
for (tag_it = 0; tag_it < _tmp0__length1; tag_it = tag_it + 1) {
-#line 7157 "PhotoMetadata.c"
+#line 7301 "PhotoMetadata.c"
gchar* _tmp1_;
gchar* tag = NULL;
#line 1017 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp1_ = g_strdup (tag_collection[tag_it]);
#line 1017 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
tag = _tmp1_;
-#line 7164 "PhotoMetadata.c"
+#line 7308 "PhotoMetadata.c"
{
GeeCollection* values = NULL;
const gchar* _tmp2_;
@@ -7182,7 +7326,7 @@ GeeSet* photo_metadata_get_keywords (PhotoMetadata* self, GCompareDataFunc compa
_tmp5_ = values;
#line 1019 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp5_ != NULL) {
-#line 7181 "PhotoMetadata.c"
+#line 7325 "PhotoMetadata.c"
GeeCollection* _tmp6_;
gint _tmp7_;
gint _tmp8_;
@@ -7194,21 +7338,21 @@ GeeSet* photo_metadata_get_keywords (PhotoMetadata* self, GCompareDataFunc compa
_tmp8_ = _tmp7_;
#line 1019 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp4_ = _tmp8_ > 0;
-#line 7193 "PhotoMetadata.c"
+#line 7337 "PhotoMetadata.c"
} else {
#line 1019 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp4_ = FALSE;
-#line 7197 "PhotoMetadata.c"
+#line 7341 "PhotoMetadata.c"
}
#line 1019 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp4_) {
-#line 7201 "PhotoMetadata.c"
+#line 7345 "PhotoMetadata.c"
GeeSet* _tmp9_;
#line 1020 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp9_ = keywords;
#line 1020 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp9_ == NULL) {
-#line 7207 "PhotoMetadata.c"
+#line 7351 "PhotoMetadata.c"
GCompareDataFunc _tmp10_;
void* _tmp10__target;
GDestroyNotify _tmp10__target_destroy_notify;
@@ -7231,7 +7375,7 @@ GeeSet* photo_metadata_get_keywords (PhotoMetadata* self, GCompareDataFunc compa
_g_object_unref0 (keywords);
#line 1021 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
keywords = _tmp11_;
-#line 7230 "PhotoMetadata.c"
+#line 7374 "PhotoMetadata.c"
}
{
GeeIterator* _current_value_it = NULL;
@@ -7245,101 +7389,98 @@ GeeSet* photo_metadata_get_keywords (PhotoMetadata* self, GCompareDataFunc compa
_current_value_it = _tmp13_;
#line 1023 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
while (TRUE) {
-#line 7244 "PhotoMetadata.c"
+#line 7388 "PhotoMetadata.c"
GeeIterator* _tmp14_;
- gboolean _tmp15_;
gchar* current_value = NULL;
- GeeIterator* _tmp16_;
- gpointer _tmp17_;
- GeeSet* _tmp18_;
- const gchar* _tmp19_;
+ GeeIterator* _tmp15_;
+ gpointer _tmp16_;
+ GeeSet* _tmp17_;
+ const gchar* _tmp18_;
+ gchar* _tmp19_;
gchar* _tmp20_;
- gchar* _tmp21_;
#line 1023 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp14_ = _current_value_it;
#line 1023 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp15_ = gee_iterator_next (_tmp14_);
-#line 1023 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!_tmp15_) {
+ if (!gee_iterator_next (_tmp14_)) {
#line 1023 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
break;
-#line 7262 "PhotoMetadata.c"
+#line 7403 "PhotoMetadata.c"
}
#line 1023 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp16_ = _current_value_it;
+ _tmp15_ = _current_value_it;
#line 1023 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp17_ = gee_iterator_get (_tmp16_);
+ _tmp16_ = gee_iterator_get (_tmp15_);
#line 1023 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- current_value = (gchar*) _tmp17_;
+ current_value = (gchar*) _tmp16_;
#line 1024 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp18_ = keywords;
+ _tmp17_ = keywords;
#line 1024 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp19_ = current_value;
+ _tmp18_ = current_value;
#line 1024 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp20_ = hierarchical_tag_utilities_make_flat_tag_safe (_tmp19_);
+ _tmp19_ = hierarchical_tag_utilities_make_flat_tag_safe (_tmp18_);
#line 1024 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp21_ = _tmp20_;
+ _tmp20_ = _tmp19_;
#line 1024 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_COLLECTION, GeeCollection), _tmp21_);
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_COLLECTION, GeeCollection), _tmp20_);
#line 1024 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (_tmp21_);
+ _g_free0 (_tmp20_);
#line 1023 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (current_value);
-#line 7284 "PhotoMetadata.c"
+#line 7425 "PhotoMetadata.c"
}
#line 1023 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_object_unref0 (_current_value_it);
-#line 7288 "PhotoMetadata.c"
+#line 7429 "PhotoMetadata.c"
}
}
#line 1017 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_object_unref0 (values);
#line 1017 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (tag);
-#line 7295 "PhotoMetadata.c"
+#line 7436 "PhotoMetadata.c"
}
}
}
#line 1028 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp24_ = keywords;
+ _tmp23_ = keywords;
#line 1028 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp24_ != NULL) {
-#line 7303 "PhotoMetadata.c"
- GeeSet* _tmp25_;
+ if (_tmp23_ != NULL) {
+#line 7444 "PhotoMetadata.c"
+ GeeSet* _tmp24_;
+ gint _tmp25_;
gint _tmp26_;
- gint _tmp27_;
#line 1028 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp25_ = keywords;
+ _tmp24_ = keywords;
#line 1028 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp26_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, GEE_TYPE_COLLECTION, GeeCollection));
+ _tmp25_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, GEE_TYPE_COLLECTION, GeeCollection));
#line 1028 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp27_ = _tmp26_;
+ _tmp26_ = _tmp25_;
#line 1028 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp23_ = _tmp27_ > 0;
-#line 7315 "PhotoMetadata.c"
+ _tmp22_ = _tmp26_ > 0;
+#line 7456 "PhotoMetadata.c"
} else {
#line 1028 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp23_ = FALSE;
-#line 7319 "PhotoMetadata.c"
+ _tmp22_ = FALSE;
+#line 7460 "PhotoMetadata.c"
}
#line 1028 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp23_) {
-#line 7323 "PhotoMetadata.c"
- GeeSet* _tmp28_;
+ if (_tmp22_) {
+#line 7464 "PhotoMetadata.c"
+ GeeSet* _tmp27_;
#line 1028 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp28_ = keywords;
+ _tmp27_ = keywords;
#line 1028 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp22_ = _tmp28_;
-#line 7329 "PhotoMetadata.c"
+ _tmp21_ = _tmp27_;
+#line 7470 "PhotoMetadata.c"
} else {
#line 1028 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp22_ = NULL;
-#line 7333 "PhotoMetadata.c"
+ _tmp21_ = NULL;
+#line 7474 "PhotoMetadata.c"
}
#line 1028 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp29_ = _g_object_ref0 (_tmp22_);
+ _tmp28_ = _g_object_ref0 (_tmp21_);
#line 1028 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp29_;
+ result = _tmp28_;
#line 1028 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_object_unref0 (keywords);
#line 1028 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -7352,353 +7493,293 @@ GeeSet* photo_metadata_get_keywords (PhotoMetadata* self, GCompareDataFunc compa
compare_func_target_destroy_notify = NULL;
#line 1028 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 7351 "PhotoMetadata.c"
+#line 7492 "PhotoMetadata.c"
}
-static gpointer _hierarchical_keyword_field_ref0 (gpointer self) {
+static gpointer
+_hierarchical_keyword_field_ref0 (gpointer self)
+{
#line 1032 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return self ? hierarchical_keyword_field_ref (self) : NULL;
-#line 7358 "PhotoMetadata.c"
+#line 7501 "PhotoMetadata.c"
}
-static gchar* string_replace (const gchar* self, const gchar* old, const gchar* replacement) {
+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 1407 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
g_return_val_if_fail (self != NULL, NULL);
-#line 1407 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
g_return_val_if_fail (old != NULL, NULL);
-#line 1407 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
g_return_val_if_fail (replacement != NULL, NULL);
-#line 1408 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
if ((*((gchar*) self)) == '\0') {
-#line 1408 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
_tmp1_ = TRUE;
-#line 7377 "PhotoMetadata.c"
+#line 7524 "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 7384 "PhotoMetadata.c"
+#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _tmp1_ = (*((gchar*) old)) == '\0';
+#line 7528 "PhotoMetadata.c"
}
-#line 1408 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
if (_tmp1_) {
-#line 1408 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
_tmp0_ = TRUE;
-#line 7390 "PhotoMetadata.c"
+#line 7534 "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 7400 "PhotoMetadata.c"
- }
-#line 1408 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _tmp0_ = g_strcmp0 (old, replacement) == 0;
+#line 7538 "PhotoMetadata.c"
+ }
+#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
if (_tmp0_) {
-#line 7404 "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"
+#line 7542 "PhotoMetadata.c"
+ gchar* _tmp2_;
+#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _tmp2_ = g_strdup (self);
+#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ result = _tmp2_;
+#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
return result;
-#line 7412 "PhotoMetadata.c"
+#line 7550 "PhotoMetadata.c"
}
{
GRegex* regex = NULL;
- 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"
+ gchar* _tmp3_;
+ gchar* _tmp4_;
+ GRegex* _tmp5_;
+ GRegex* _tmp6_;
+ gchar* _tmp7_ = NULL;
+ GRegex* _tmp8_;
+ gchar* _tmp9_;
+ gchar* _tmp10_;
+#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _tmp3_ = g_regex_escape_string (old, -1);
+#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _tmp4_ = _tmp3_;
+#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _tmp5_ = g_regex_new (_tmp4_, 0, 0, &_inner_error_);
+#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _tmp6_ = _tmp5_;
+#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _g_free0 (_tmp4_);
+#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ regex = _tmp6_;
+#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
if (_inner_error_->domain == G_REGEX_ERROR) {
-#line 7444 "PhotoMetadata.c"
+#line 7578 "PhotoMetadata.c"
goto __catch31_g_regex_error;
}
-#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1426 "/usr/share/vala-0.40/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 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
g_clear_error (&_inner_error_);
-#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
return NULL;
-#line 7453 "PhotoMetadata.c"
+#line 7587 "PhotoMetadata.c"
}
-#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"
+#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _tmp8_ = regex;
+#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _tmp9_ = g_regex_replace_literal (_tmp8_, self, (gssize) -1, 0, replacement, 0, &_inner_error_);
+#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _tmp7_ = _tmp9_;
+#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
_g_regex_unref0 (regex);
-#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
if (_inner_error_->domain == G_REGEX_ERROR) {
-#line 7469 "PhotoMetadata.c"
+#line 7601 "PhotoMetadata.c"
goto __catch31_g_regex_error;
}
-#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
_g_regex_unref0 (regex);
-#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1427 "/usr/share/vala-0.40/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 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
g_clear_error (&_inner_error_);
-#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
return NULL;
-#line 7480 "PhotoMetadata.c"
+#line 7612 "PhotoMetadata.c"
}
-#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"
+#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _tmp10_ = _tmp7_;
+#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _tmp7_ = NULL;
+#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ result = _tmp10_;
+#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _g_free0 (_tmp7_);
+#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
_g_regex_unref0 (regex);
-#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
return result;
-#line 7494 "PhotoMetadata.c"
+#line 7626 "PhotoMetadata.c"
}
goto __finally31;
__catch31_g_regex_error:
{
GError* e = NULL;
-#line 1411 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
e = _inner_error_;
-#line 1411 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
_inner_error_ = NULL;
-#line 1415 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1429 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
g_assert_not_reached ();
-#line 1411 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
_g_error_free0 (e);
-#line 7508 "PhotoMetadata.c"
+#line 7640 "PhotoMetadata.c"
}
__finally31:
-#line 1411 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1411 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1425 "/usr/share/vala-0.40/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 1411 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
g_clear_error (&_inner_error_);
-#line 1411 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
return NULL;
-#line 7519 "PhotoMetadata.c"
+#line 7651 "PhotoMetadata.c"
}
}
-static glong string_strnlen (gchar* str, glong maxlen) {
+static glong
+string_strnlen (gchar* str,
+ glong maxlen)
+{
glong result = 0L;
gchar* end = NULL;
gchar* _tmp0_;
- glong _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
-#line 1322 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp0_ = str;
-#line 1322 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp1_ = maxlen;
-#line 1322 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp2_ = memchr (_tmp0_, 0, (gsize) _tmp1_);
-#line 1322 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- end = _tmp2_;
-#line 1323 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp3_ = end;
-#line 1323 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- if (_tmp3_ == NULL) {
-#line 7543 "PhotoMetadata.c"
- glong _tmp4_;
-#line 1324 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp4_ = maxlen;
-#line 1324 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- result = _tmp4_;
-#line 1324 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ gchar* _tmp1_;
+#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _tmp0_ = memchr (str, 0, (gsize) maxlen);
+#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ end = _tmp0_;
+#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _tmp1_ = end;
+#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ if (_tmp1_ == NULL) {
+#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ result = maxlen;
+#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
return result;
-#line 7551 "PhotoMetadata.c"
+#line 7676 "PhotoMetadata.c"
} else {
- gchar* _tmp5_;
- gchar* _tmp6_;
-#line 1326 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp5_ = end;
-#line 1326 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp6_ = str;
-#line 1326 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- result = (glong) (_tmp5_ - _tmp6_);
-#line 1326 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ gchar* _tmp2_;
+#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _tmp2_ = end;
+#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ result = (glong) (_tmp2_ - str);
+#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
return result;
-#line 7563 "PhotoMetadata.c"
+#line 7685 "PhotoMetadata.c"
}
}
-static gchar* string_substring (const gchar* self, glong offset, glong len) {
+static gchar*
+string_substring (const gchar* self,
+ glong offset,
+ glong len)
+{
gchar* result = NULL;
glong string_length = 0L;
gboolean _tmp0_ = FALSE;
- 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"
+ glong _tmp6_;
+ gchar* _tmp7_;
+#line 1347 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
g_return_val_if_fail (self != NULL, NULL);
-#line 1335 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp1_ = offset;
-#line 1335 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- if (_tmp1_ >= ((glong) 0)) {
-#line 7587 "PhotoMetadata.c"
- glong _tmp2_;
-#line 1335 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp2_ = len;
-#line 1335 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp0_ = _tmp2_ >= ((glong) 0);
-#line 7593 "PhotoMetadata.c"
+#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ if (offset >= ((glong) 0)) {
+#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _tmp0_ = len >= ((glong) 0);
+#line 7706 "PhotoMetadata.c"
} else {
-#line 1335 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
_tmp0_ = FALSE;
-#line 7597 "PhotoMetadata.c"
+#line 7710 "PhotoMetadata.c"
}
-#line 1335 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
if (_tmp0_) {
-#line 7601 "PhotoMetadata.c"
+#line 1351 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ string_length = string_strnlen ((gchar*) self, offset + len);
+#line 7716 "PhotoMetadata.c"
+ } else {
+ gint _tmp1_;
+ gint _tmp2_;
+#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _tmp1_ = strlen (self);
+#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _tmp2_ = _tmp1_;
+#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ string_length = (glong) _tmp2_;
+#line 7726 "PhotoMetadata.c"
+ }
+#line 1356 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ if (offset < ((glong) 0)) {
+#line 7730 "PhotoMetadata.c"
glong _tmp3_;
+#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _tmp3_ = string_length;
+#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ offset = _tmp3_ + offset;
+#line 1358 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ g_return_val_if_fail (offset >= ((glong) 0), NULL);
+#line 7738 "PhotoMetadata.c"
+ } else {
glong _tmp4_;
+#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _tmp4_ = string_length;
+#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ g_return_val_if_fail (offset <= _tmp4_, NULL);
+#line 7745 "PhotoMetadata.c"
+ }
+#line 1362 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ if (len < ((glong) 0)) {
+#line 7749 "PhotoMetadata.c"
glong _tmp5_;
-#line 1337 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp3_ = offset;
-#line 1337 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp4_ = len;
-#line 1337 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp5_ = string_strnlen ((gchar*) self, _tmp3_ + _tmp4_);
-#line 1337 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- string_length = _tmp5_;
-#line 7613 "PhotoMetadata.c"
- } else {
- gint _tmp6_;
- gint _tmp7_;
-#line 1339 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp6_ = strlen (self);
-#line 1339 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp7_ = _tmp6_;
-#line 1339 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- string_length = (glong) _tmp7_;
-#line 7623 "PhotoMetadata.c"
- }
-#line 1342 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp8_ = offset;
-#line 1342 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- if (_tmp8_ < ((glong) 0)) {
-#line 7629 "PhotoMetadata.c"
- glong _tmp9_;
- glong _tmp10_;
- glong _tmp11_;
-#line 1343 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp9_ = string_length;
-#line 1343 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp10_ = offset;
-#line 1343 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- offset = _tmp9_ + _tmp10_;
-#line 1344 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp11_ = offset;
-#line 1344 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- g_return_val_if_fail (_tmp11_ >= ((glong) 0), NULL);
-#line 7643 "PhotoMetadata.c"
- } else {
- glong _tmp12_;
- glong _tmp13_;
-#line 1346 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp12_ = offset;
-#line 1346 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp13_ = string_length;
-#line 1346 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- g_return_val_if_fail (_tmp12_ <= _tmp13_, NULL);
-#line 7653 "PhotoMetadata.c"
- }
-#line 1348 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp14_ = len;
-#line 1348 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- if (_tmp14_ < ((glong) 0)) {
-#line 7659 "PhotoMetadata.c"
- glong _tmp15_;
- glong _tmp16_;
-#line 1349 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp15_ = string_length;
-#line 1349 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp16_ = offset;
-#line 1349 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- len = _tmp15_ - _tmp16_;
-#line 7668 "PhotoMetadata.c"
- }
-#line 1351 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp17_ = offset;
-#line 1351 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp18_ = len;
-#line 1351 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp19_ = string_length;
-#line 1351 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- g_return_val_if_fail ((_tmp17_ + _tmp18_) <= _tmp19_, NULL);
-#line 1352 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp20_ = offset;
-#line 1352 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp21_ = len;
-#line 1352 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp22_ = g_strndup (((gchar*) self) + _tmp20_, (gsize) _tmp21_);
-#line 1352 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- result = _tmp22_;
-#line 1352 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _tmp5_ = string_length;
+#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ len = _tmp5_ - offset;
+#line 7755 "PhotoMetadata.c"
+ }
+#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _tmp6_ = string_length;
+#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ g_return_val_if_fail ((offset + len) <= _tmp6_, NULL);
+#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _tmp7_ = g_strndup (((gchar*) self) + offset, (gsize) len);
+#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ result = _tmp7_;
+#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
return result;
-#line 7688 "PhotoMetadata.c"
+#line 7767 "PhotoMetadata.c"
}
-static void photo_metadata_internal_set_hierarchical_keywords (PhotoMetadata* self, HierarchicalTagIndex* index) {
+static void
+photo_metadata_internal_set_hierarchical_keywords (PhotoMetadata* self,
+ HierarchicalTagIndex* index)
+{
HierarchicalKeywordField** _tmp0_;
gint _tmp0__length1;
- HierarchicalTagIndex* _tmp4_;
- HierarchicalKeywordField** _tmp5_;
- gint _tmp5__length1;
+ HierarchicalKeywordField** _tmp4_;
+ gint _tmp4__length1;
#line 1031 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
#line 1031 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -7707,7 +7788,7 @@ static void photo_metadata_internal_set_hierarchical_keywords (PhotoMetadata* se
_tmp0_ = photo_metadata_HIERARCHICAL_KEYWORD_TAGS;
#line 1032 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp0__length1 = photo_metadata_HIERARCHICAL_KEYWORD_TAGS_length1;
-#line 7706 "PhotoMetadata.c"
+#line 7787 "PhotoMetadata.c"
{
HierarchicalKeywordField** current_field_collection = NULL;
gint current_field_collection_length1 = 0;
@@ -7719,14 +7800,14 @@ static void photo_metadata_internal_set_hierarchical_keywords (PhotoMetadata* se
current_field_collection_length1 = _tmp0__length1;
#line 1032 "/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 7718 "PhotoMetadata.c"
+#line 7799 "PhotoMetadata.c"
HierarchicalKeywordField* _tmp1_;
HierarchicalKeywordField* current_field = NULL;
#line 1032 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp1_ = _hierarchical_keyword_field_ref0 (current_field_collection[current_field_it]);
#line 1032 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
current_field = _tmp1_;
-#line 7725 "PhotoMetadata.c"
+#line 7806 "PhotoMetadata.c"
{
HierarchicalKeywordField* _tmp2_;
const gchar* _tmp3_;
@@ -7738,192 +7819,186 @@ static void photo_metadata_internal_set_hierarchical_keywords (PhotoMetadata* se
photo_metadata_remove_tag (self, _tmp3_);
#line 1032 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_hierarchical_keyword_field_unref0 (current_field);
-#line 7737 "PhotoMetadata.c"
+#line 7818 "PhotoMetadata.c"
}
}
}
#line 1035 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = index;
-#line 1035 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp4_ == NULL) {
+ if (index == NULL) {
#line 1036 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return;
-#line 7747 "PhotoMetadata.c"
+#line 7826 "PhotoMetadata.c"
}
#line 1038 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = photo_metadata_HIERARCHICAL_KEYWORD_TAGS;
+ _tmp4_ = photo_metadata_HIERARCHICAL_KEYWORD_TAGS;
#line 1038 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5__length1 = photo_metadata_HIERARCHICAL_KEYWORD_TAGS_length1;
-#line 7753 "PhotoMetadata.c"
+ _tmp4__length1 = photo_metadata_HIERARCHICAL_KEYWORD_TAGS_length1;
+#line 7832 "PhotoMetadata.c"
{
HierarchicalKeywordField** current_field_collection = NULL;
gint current_field_collection_length1 = 0;
gint _current_field_collection_size_ = 0;
gint current_field_it = 0;
#line 1038 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- current_field_collection = _tmp5_;
+ current_field_collection = _tmp4_;
#line 1038 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- current_field_collection_length1 = _tmp5__length1;
+ current_field_collection_length1 = _tmp4__length1;
#line 1038 "/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 7765 "PhotoMetadata.c"
- HierarchicalKeywordField* _tmp6_;
+ for (current_field_it = 0; current_field_it < _tmp4__length1; current_field_it = current_field_it + 1) {
+#line 7844 "PhotoMetadata.c"
+ HierarchicalKeywordField* _tmp5_;
HierarchicalKeywordField* current_field = NULL;
#line 1038 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = _hierarchical_keyword_field_ref0 (current_field_collection[current_field_it]);
+ _tmp5_ = _hierarchical_keyword_field_ref0 (current_field_collection[current_field_it]);
#line 1038 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- current_field = _tmp6_;
-#line 7772 "PhotoMetadata.c"
+ current_field = _tmp5_;
+#line 7851 "PhotoMetadata.c"
{
- HierarchicalKeywordField* _tmp7_;
- gboolean _tmp8_;
+ HierarchicalKeywordField* _tmp6_;
+ gboolean _tmp7_;
GeeSet* writeable_set = NULL;
- GeeTreeSet* _tmp9_;
- HierarchicalKeywordField* _tmp29_;
- const gchar* _tmp30_;
- GeeSet* _tmp31_;
+ GeeTreeSet* _tmp8_;
+ HierarchicalKeywordField* _tmp26_;
+ const gchar* _tmp27_;
+ GeeSet* _tmp28_;
#line 1039 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_ = current_field;
+ _tmp6_ = current_field;
#line 1039 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp8_ = _tmp7_->is_writeable;
+ _tmp7_ = _tmp6_->is_writeable;
#line 1039 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!_tmp8_) {
+ if (!_tmp7_) {
#line 1040 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_hierarchical_keyword_field_unref0 (current_field);
#line 1040 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
continue;
-#line 7791 "PhotoMetadata.c"
+#line 7870 "PhotoMetadata.c"
}
#line 1042 "/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);
+ _tmp8_ = gee_tree_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL);
#line 1042 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- writeable_set = G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_SET, GeeSet);
-#line 7797 "PhotoMetadata.c"
+ writeable_set = G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_SET, GeeSet);
+#line 7876 "PhotoMetadata.c"
{
GeeIterator* _current_path_it = NULL;
- HierarchicalTagIndex* _tmp10_;
- GeeCollection* _tmp11_;
- GeeCollection* _tmp12_;
- GeeIterator* _tmp13_;
- GeeIterator* _tmp14_;
-#line 1044 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp10_ = index;
+ GeeCollection* _tmp9_;
+ GeeCollection* _tmp10_;
+ GeeIterator* _tmp11_;
+ GeeIterator* _tmp12_;
#line 1044 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp11_ = hierarchical_tag_index_get_all_paths (_tmp10_);
+ _tmp9_ = hierarchical_tag_index_get_all_paths (index);
#line 1044 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp12_ = _tmp11_;
+ _tmp10_ = _tmp9_;
#line 1044 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp13_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ITERABLE, GeeIterable));
+ _tmp11_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ITERABLE, GeeIterable));
#line 1044 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp14_ = _tmp13_;
+ _tmp12_ = _tmp11_;
#line 1044 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_object_unref0 (_tmp12_);
+ _g_object_unref0 (_tmp10_);
#line 1044 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _current_path_it = _tmp14_;
+ _current_path_it = _tmp12_;
#line 1044 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
while (TRUE) {
-#line 7821 "PhotoMetadata.c"
- GeeIterator* _tmp15_;
- gboolean _tmp16_;
+#line 7897 "PhotoMetadata.c"
+ GeeIterator* _tmp13_;
gchar* current_path = NULL;
- GeeIterator* _tmp17_;
- gpointer _tmp18_;
+ GeeIterator* _tmp14_;
+ gpointer _tmp15_;
gchar* writeable_path = NULL;
- const gchar* _tmp19_;
+ const gchar* _tmp16_;
+ HierarchicalKeywordField* _tmp17_;
+ const gchar* _tmp18_;
+ gchar* _tmp19_;
HierarchicalKeywordField* _tmp20_;
- const gchar* _tmp21_;
- gchar* _tmp22_;
- HierarchicalKeywordField* _tmp23_;
- gboolean _tmp24_;
- GeeSet* _tmp27_;
- const gchar* _tmp28_;
-#line 1044 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp15_ = _current_path_it;
+ gboolean _tmp21_;
+ GeeSet* _tmp24_;
+ const gchar* _tmp25_;
#line 1044 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp16_ = gee_iterator_next (_tmp15_);
+ _tmp13_ = _current_path_it;
#line 1044 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!_tmp16_) {
+ if (!gee_iterator_next (_tmp13_)) {
#line 1044 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
break;
-#line 7844 "PhotoMetadata.c"
+#line 7917 "PhotoMetadata.c"
}
#line 1044 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp17_ = _current_path_it;
+ _tmp14_ = _current_path_it;
#line 1044 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp18_ = gee_iterator_get (_tmp17_);
+ _tmp15_ = gee_iterator_get (_tmp14_);
#line 1044 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- current_path = (gchar*) _tmp18_;
+ current_path = (gchar*) _tmp15_;
#line 1045 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp19_ = current_path;
+ _tmp16_ = current_path;
#line 1045 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp20_ = current_field;
+ _tmp17_ = current_field;
#line 1045 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp21_ = _tmp20_->path_separator;
+ _tmp18_ = _tmp17_->path_separator;
#line 1045 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp22_ = string_replace (_tmp19_, TAG_PATH_SEPARATOR_STRING, _tmp21_);
+ _tmp19_ = string_replace (_tmp16_, TAG_PATH_SEPARATOR_STRING, _tmp18_);
#line 1045 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- writeable_path = _tmp22_;
+ writeable_path = _tmp19_;
#line 1047 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp23_ = current_field;
+ _tmp20_ = current_field;
#line 1047 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp24_ = _tmp23_->wants_leading_separator;
+ _tmp21_ = _tmp20_->wants_leading_separator;
#line 1047 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!_tmp24_) {
-#line 7868 "PhotoMetadata.c"
- const gchar* _tmp25_;
- gchar* _tmp26_;
+ if (!_tmp21_) {
+#line 7941 "PhotoMetadata.c"
+ const gchar* _tmp22_;
+ gchar* _tmp23_;
#line 1048 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp25_ = writeable_path;
+ _tmp22_ = writeable_path;
#line 1048 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp26_ = string_substring (_tmp25_, (glong) 1, (glong) -1);
+ _tmp23_ = string_substring (_tmp22_, (glong) 1, (glong) -1);
#line 1048 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (writeable_path);
#line 1048 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- writeable_path = _tmp26_;
-#line 7879 "PhotoMetadata.c"
+ writeable_path = _tmp23_;
+#line 7952 "PhotoMetadata.c"
}
#line 1050 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp27_ = writeable_set;
+ _tmp24_ = writeable_set;
#line 1050 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp28_ = writeable_path;
+ _tmp25_ = writeable_path;
#line 1050 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, GEE_TYPE_COLLECTION, GeeCollection), _tmp28_);
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, GEE_TYPE_COLLECTION, GeeCollection), _tmp25_);
#line 1044 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (writeable_path);
#line 1044 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (current_path);
-#line 7891 "PhotoMetadata.c"
+#line 7964 "PhotoMetadata.c"
}
#line 1044 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_object_unref0 (_current_path_it);
-#line 7895 "PhotoMetadata.c"
+#line 7968 "PhotoMetadata.c"
}
#line 1053 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp29_ = current_field;
+ _tmp26_ = current_field;
#line 1053 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp30_ = _tmp29_->field_name;
+ _tmp27_ = _tmp26_->field_name;
#line 1053 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp31_ = writeable_set;
+ _tmp28_ = writeable_set;
#line 1053 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_set_string_multiple (self, _tmp30_, G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, GEE_TYPE_COLLECTION, GeeCollection));
+ photo_metadata_set_string_multiple (self, _tmp27_, G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_COLLECTION, GeeCollection));
#line 1038 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_object_unref0 (writeable_set);
#line 1038 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_hierarchical_keyword_field_unref0 (current_field);
-#line 7909 "PhotoMetadata.c"
+#line 7982 "PhotoMetadata.c"
}
}
}
}
-void photo_metadata_set_keywords (PhotoMetadata* self, GeeCollection* keywords, PhotoMetadataSetOption option) {
+void
+photo_metadata_set_keywords (PhotoMetadata* self,
+ GeeCollection* keywords,
+ PhotoMetadataSetOption option)
+{
HierarchicalTagIndex* htag_index = NULL;
HierarchicalTagIndex* _tmp0_;
GeeSet* flat_keywords = NULL;
GeeTreeSet* _tmp1_;
- GeeCollection* _tmp2_;
- GeeCollection* _tmp28_;
#line 1057 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
#line 1057 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -7937,203 +8012,186 @@ void photo_metadata_set_keywords (PhotoMetadata* self, GeeCollection* keywords,
#line 1059 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
flat_keywords = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_SET, GeeSet);
#line 1061 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = keywords;
-#line 1061 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp2_ != NULL) {
-#line 7939 "PhotoMetadata.c"
- GeeSet* _tmp24_;
- HierarchicalTagIndex* _tmp25_;
- GeeCollection* _tmp26_;
- GeeCollection* _tmp27_;
+ if (keywords != NULL) {
+#line 8012 "PhotoMetadata.c"
+ GeeSet* _tmp19_;
+ HierarchicalTagIndex* _tmp20_;
+ GeeCollection* _tmp21_;
+ GeeCollection* _tmp22_;
{
GeeIterator* _keyword_it = NULL;
- GeeCollection* _tmp3_;
- GeeIterator* _tmp4_;
-#line 1062 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = keywords;
+ GeeIterator* _tmp2_;
#line 1062 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable));
+ _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (keywords, GEE_TYPE_ITERABLE, GeeIterable));
#line 1062 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _keyword_it = _tmp4_;
+ _keyword_it = _tmp2_;
#line 1062 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
while (TRUE) {
-#line 7956 "PhotoMetadata.c"
- GeeIterator* _tmp5_;
- gboolean _tmp6_;
+#line 8026 "PhotoMetadata.c"
+ GeeIterator* _tmp3_;
gchar* keyword = NULL;
- GeeIterator* _tmp7_;
- gpointer _tmp8_;
- const gchar* _tmp9_;
- gboolean _tmp10_;
-#line 1062 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = _keyword_it;
+ GeeIterator* _tmp4_;
+ gpointer _tmp5_;
+ const gchar* _tmp6_;
#line 1062 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = gee_iterator_next (_tmp5_);
+ _tmp3_ = _keyword_it;
#line 1062 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!_tmp6_) {
+ if (!gee_iterator_next (_tmp3_)) {
#line 1062 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
break;
-#line 7972 "PhotoMetadata.c"
+#line 8038 "PhotoMetadata.c"
}
#line 1062 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_ = _keyword_it;
+ _tmp4_ = _keyword_it;
#line 1062 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp8_ = gee_iterator_get (_tmp7_);
+ _tmp5_ = gee_iterator_get (_tmp4_);
#line 1062 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- keyword = (gchar*) _tmp8_;
-#line 1063 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp9_ = keyword;
+ keyword = (gchar*) _tmp5_;
#line 1063 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp10_ = g_str_has_prefix (_tmp9_, TAG_PATH_SEPARATOR_STRING);
+ _tmp6_ = keyword;
#line 1063 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp10_) {
-#line 7986 "PhotoMetadata.c"
+ if (g_str_has_prefix (_tmp6_, TAG_PATH_SEPARATOR_STRING)) {
+#line 8050 "PhotoMetadata.c"
GeeCollection* path_components = NULL;
- const gchar* _tmp11_;
- GeeList* _tmp12_;
+ const gchar* _tmp7_;
+ GeeList* _tmp8_;
#line 1064 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp11_ = keyword;
+ _tmp7_ = keyword;
#line 1064 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp12_ = hierarchical_tag_utilities_enumerate_path_components (_tmp11_);
+ _tmp8_ = hierarchical_tag_utilities_enumerate_path_components (_tmp7_);
#line 1064 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- path_components = G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 7996 "PhotoMetadata.c"
+ path_components = G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_COLLECTION, GeeCollection);
+#line 8060 "PhotoMetadata.c"
{
GeeIterator* _component_it = NULL;
- GeeCollection* _tmp13_;
- GeeIterator* _tmp14_;
+ GeeCollection* _tmp9_;
+ GeeIterator* _tmp10_;
#line 1066 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp13_ = path_components;
+ _tmp9_ = path_components;
#line 1066 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp14_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ITERABLE, GeeIterable));
+ _tmp10_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ITERABLE, GeeIterable));
#line 1066 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _component_it = _tmp14_;
+ _component_it = _tmp10_;
#line 1066 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
while (TRUE) {
-#line 8009 "PhotoMetadata.c"
- GeeIterator* _tmp15_;
- gboolean _tmp16_;
+#line 8073 "PhotoMetadata.c"
+ GeeIterator* _tmp11_;
gchar* component = NULL;
- GeeIterator* _tmp17_;
- gpointer _tmp18_;
- HierarchicalTagIndex* _tmp19_;
- const gchar* _tmp20_;
- const gchar* _tmp21_;
+ GeeIterator* _tmp12_;
+ gpointer _tmp13_;
+ HierarchicalTagIndex* _tmp14_;
+ const gchar* _tmp15_;
+ const gchar* _tmp16_;
#line 1066 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp15_ = _component_it;
+ _tmp11_ = _component_it;
#line 1066 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp16_ = gee_iterator_next (_tmp15_);
-#line 1066 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!_tmp16_) {
+ if (!gee_iterator_next (_tmp11_)) {
#line 1066 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
break;
-#line 8026 "PhotoMetadata.c"
+#line 8087 "PhotoMetadata.c"
}
#line 1066 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp17_ = _component_it;
+ _tmp12_ = _component_it;
#line 1066 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp18_ = gee_iterator_get (_tmp17_);
+ _tmp13_ = gee_iterator_get (_tmp12_);
#line 1066 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- component = (gchar*) _tmp18_;
+ component = (gchar*) _tmp13_;
#line 1067 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp19_ = htag_index;
+ _tmp14_ = htag_index;
#line 1067 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp20_ = component;
+ _tmp15_ = component;
#line 1067 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp21_ = keyword;
+ _tmp16_ = keyword;
#line 1067 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- hierarchical_tag_index_add_path (_tmp19_, _tmp20_, _tmp21_);
+ hierarchical_tag_index_add_path (_tmp14_, _tmp15_, _tmp16_);
#line 1066 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (component);
-#line 8044 "PhotoMetadata.c"
+#line 8105 "PhotoMetadata.c"
}
#line 1066 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_object_unref0 (_component_it);
-#line 8048 "PhotoMetadata.c"
+#line 8109 "PhotoMetadata.c"
}
#line 1063 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_object_unref0 (path_components);
-#line 8052 "PhotoMetadata.c"
+#line 8113 "PhotoMetadata.c"
} else {
- GeeSet* _tmp22_;
- const gchar* _tmp23_;
+ GeeSet* _tmp17_;
+ const gchar* _tmp18_;
#line 1069 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp22_ = flat_keywords;
+ _tmp17_ = flat_keywords;
#line 1069 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp23_ = keyword;
+ _tmp18_ = keyword;
#line 1069 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GEE_TYPE_COLLECTION, GeeCollection), _tmp23_);
-#line 8062 "PhotoMetadata.c"
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_COLLECTION, GeeCollection), _tmp18_);
+#line 8123 "PhotoMetadata.c"
}
#line 1062 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (keyword);
-#line 8066 "PhotoMetadata.c"
+#line 8127 "PhotoMetadata.c"
}
#line 1062 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_object_unref0 (_keyword_it);
-#line 8070 "PhotoMetadata.c"
+#line 8131 "PhotoMetadata.c"
}
#line 1073 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp24_ = flat_keywords;
+ _tmp19_ = flat_keywords;
#line 1073 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp25_ = htag_index;
+ _tmp20_ = htag_index;
#line 1073 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp26_ = hierarchical_tag_index_get_all_tags (_tmp25_);
+ _tmp21_ = hierarchical_tag_index_get_all_tags (_tmp20_);
#line 1073 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp27_ = _tmp26_;
+ _tmp22_ = _tmp21_;
#line 1073 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- gee_collection_add_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, GEE_TYPE_COLLECTION, GeeCollection), _tmp27_);
+ gee_collection_add_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GEE_TYPE_COLLECTION, GeeCollection), _tmp22_);
#line 1073 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_object_unref0 (_tmp27_);
-#line 8084 "PhotoMetadata.c"
+ _g_object_unref0 (_tmp22_);
+#line 8145 "PhotoMetadata.c"
}
#line 1076 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp28_ = keywords;
-#line 1076 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp28_ != NULL) {
-#line 8090 "PhotoMetadata.c"
- gchar** _tmp29_;
- gint _tmp29__length1;
- GeeSet* _tmp30_;
- PhotoMetadataSetOption _tmp31_;
- HierarchicalTagIndex* _tmp32_;
-#line 1077 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp29_ = photo_metadata_KEYWORD_TAGS;
+ if (keywords != NULL) {
+#line 8149 "PhotoMetadata.c"
+ gchar** _tmp23_;
+ gint _tmp23__length1;
+ GeeSet* _tmp24_;
+ HierarchicalTagIndex* _tmp25_;
#line 1077 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp29__length1 = photo_metadata_KEYWORD_TAGS_length1;
+ _tmp23_ = photo_metadata_KEYWORD_TAGS;
#line 1077 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp30_ = flat_keywords;
+ _tmp23__length1 = photo_metadata_KEYWORD_TAGS_length1;
#line 1077 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp31_ = option;
+ _tmp24_ = flat_keywords;
#line 1077 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_set_all_string_multiple (self, _tmp29_, _tmp29__length1, G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, GEE_TYPE_COLLECTION, GeeCollection), _tmp31_);
+ photo_metadata_set_all_string_multiple (self, _tmp23_, _tmp23__length1, G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, GEE_TYPE_COLLECTION, GeeCollection), option);
#line 1078 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp32_ = htag_index;
+ _tmp25_ = htag_index;
#line 1078 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_internal_set_hierarchical_keywords (self, _tmp32_);
-#line 8110 "PhotoMetadata.c"
+ photo_metadata_internal_set_hierarchical_keywords (self, _tmp25_);
+#line 8166 "PhotoMetadata.c"
} else {
- gchar** _tmp33_;
- gint _tmp33__length1;
+ gchar** _tmp26_;
+ gint _tmp26__length1;
#line 1080 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp33_ = photo_metadata_KEYWORD_TAGS;
+ _tmp26_ = photo_metadata_KEYWORD_TAGS;
#line 1080 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp33__length1 = photo_metadata_KEYWORD_TAGS_length1;
+ _tmp26__length1 = photo_metadata_KEYWORD_TAGS_length1;
#line 1080 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_remove_tags (self, _tmp33_, _tmp33__length1);
+ photo_metadata_remove_tags (self, _tmp26_, _tmp26__length1);
#line 1081 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
photo_metadata_internal_set_hierarchical_keywords (self, NULL);
-#line 8122 "PhotoMetadata.c"
+#line 8178 "PhotoMetadata.c"
}
#line 1057 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_object_unref0 (flat_keywords);
#line 1057 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_hierarchical_tag_index_unref0 (htag_index);
-#line 8128 "PhotoMetadata.c"
+#line 8184 "PhotoMetadata.c"
}
-gboolean photo_metadata_has_hierarchical_keywords (PhotoMetadata* self) {
+gboolean
+photo_metadata_has_hierarchical_keywords (PhotoMetadata* self)
+{
gboolean result = FALSE;
HierarchicalKeywordField** _tmp0_;
gint _tmp0__length1;
@@ -8143,7 +8201,7 @@ gboolean photo_metadata_has_hierarchical_keywords (PhotoMetadata* self) {
_tmp0_ = photo_metadata_HIERARCHICAL_KEYWORD_TAGS;
#line 1086 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp0__length1 = photo_metadata_HIERARCHICAL_KEYWORD_TAGS_length1;
-#line 8142 "PhotoMetadata.c"
+#line 8200 "PhotoMetadata.c"
{
HierarchicalKeywordField** field_collection = NULL;
gint field_collection_length1 = 0;
@@ -8155,14 +8213,14 @@ gboolean photo_metadata_has_hierarchical_keywords (PhotoMetadata* self) {
field_collection_length1 = _tmp0__length1;
#line 1086 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
for (field_it = 0; field_it < _tmp0__length1; field_it = field_it + 1) {
-#line 8154 "PhotoMetadata.c"
+#line 8212 "PhotoMetadata.c"
HierarchicalKeywordField* _tmp1_;
HierarchicalKeywordField* field = NULL;
#line 1086 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp1_ = _hierarchical_keyword_field_ref0 (field_collection[field_it]);
#line 1086 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
field = _tmp1_;
-#line 8161 "PhotoMetadata.c"
+#line 8219 "PhotoMetadata.c"
{
GeeCollection* values = NULL;
HierarchicalKeywordField* _tmp2_;
@@ -8182,7 +8240,7 @@ gboolean photo_metadata_has_hierarchical_keywords (PhotoMetadata* self) {
_tmp6_ = values;
#line 1089 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp6_ != NULL) {
-#line 8181 "PhotoMetadata.c"
+#line 8239 "PhotoMetadata.c"
GeeCollection* _tmp7_;
gint _tmp8_;
gint _tmp9_;
@@ -8194,11 +8252,11 @@ gboolean photo_metadata_has_hierarchical_keywords (PhotoMetadata* self) {
_tmp9_ = _tmp8_;
#line 1089 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp5_ = _tmp9_ > 0;
-#line 8193 "PhotoMetadata.c"
+#line 8251 "PhotoMetadata.c"
} else {
#line 1089 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp5_ = FALSE;
-#line 8197 "PhotoMetadata.c"
+#line 8255 "PhotoMetadata.c"
}
#line 1089 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp5_) {
@@ -8210,13 +8268,13 @@ gboolean photo_metadata_has_hierarchical_keywords (PhotoMetadata* self) {
_hierarchical_keyword_field_unref0 (field);
#line 1090 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 8209 "PhotoMetadata.c"
+#line 8267 "PhotoMetadata.c"
}
#line 1086 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_object_unref0 (values);
#line 1086 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_hierarchical_keyword_field_unref0 (field);
-#line 8215 "PhotoMetadata.c"
+#line 8273 "PhotoMetadata.c"
}
}
}
@@ -8224,195 +8282,191 @@ gboolean photo_metadata_has_hierarchical_keywords (PhotoMetadata* self) {
result = FALSE;
#line 1093 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 8223 "PhotoMetadata.c"
+#line 8281 "PhotoMetadata.c"
}
-GeeSet* photo_metadata_get_hierarchical_keywords (PhotoMetadata* self) {
+GeeSet*
+photo_metadata_get_hierarchical_keywords (PhotoMetadata* self)
+{
GeeSet* result = NULL;
- gboolean _tmp0_;
GeeSet* h_keywords = NULL;
- GeeSet* _tmp1_;
- HierarchicalKeywordField** _tmp2_;
- gint _tmp2__length1;
+ GeeSet* _tmp0_;
+ HierarchicalKeywordField** _tmp1_;
+ gint _tmp1__length1;
GError * _inner_error_ = NULL;
#line 1096 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
#line 1097 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = photo_metadata_has_hierarchical_keywords (self);
-#line 1097 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _vala_assert (_tmp0_, "has_hierarchical_keywords()");
+ _vala_assert (photo_metadata_has_hierarchical_keywords (self), "has_hierarchical_keywords()");
#line 1099 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = photo_metadata_create_string_set (self, NULL, NULL, NULL);
+ _tmp0_ = photo_metadata_create_string_set (self, NULL, NULL, NULL);
#line 1099 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- h_keywords = _tmp1_;
+ h_keywords = _tmp0_;
#line 1101 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = photo_metadata_HIERARCHICAL_KEYWORD_TAGS;
+ _tmp1_ = photo_metadata_HIERARCHICAL_KEYWORD_TAGS;
#line 1101 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2__length1 = photo_metadata_HIERARCHICAL_KEYWORD_TAGS_length1;
-#line 8249 "PhotoMetadata.c"
+ _tmp1__length1 = photo_metadata_HIERARCHICAL_KEYWORD_TAGS_length1;
+#line 8306 "PhotoMetadata.c"
{
HierarchicalKeywordField** field_collection = NULL;
gint field_collection_length1 = 0;
gint _field_collection_size_ = 0;
gint field_it = 0;
#line 1101 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- field_collection = _tmp2_;
+ field_collection = _tmp1_;
#line 1101 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- field_collection_length1 = _tmp2__length1;
+ field_collection_length1 = _tmp1__length1;
#line 1101 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- for (field_it = 0; field_it < _tmp2__length1; field_it = field_it + 1) {
-#line 8261 "PhotoMetadata.c"
- HierarchicalKeywordField* _tmp3_;
+ for (field_it = 0; field_it < _tmp1__length1; field_it = field_it + 1) {
+#line 8318 "PhotoMetadata.c"
+ HierarchicalKeywordField* _tmp2_;
HierarchicalKeywordField* field = NULL;
#line 1101 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = _hierarchical_keyword_field_ref0 (field_collection[field_it]);
+ _tmp2_ = _hierarchical_keyword_field_ref0 (field_collection[field_it]);
#line 1101 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- field = _tmp3_;
-#line 8268 "PhotoMetadata.c"
+ field = _tmp2_;
+#line 8325 "PhotoMetadata.c"
{
GeeCollection* values = NULL;
- HierarchicalKeywordField* _tmp4_;
- const gchar* _tmp5_;
- GeeList* _tmp6_;
- gboolean _tmp7_ = FALSE;
- GeeCollection* _tmp8_;
+ HierarchicalKeywordField* _tmp3_;
+ const gchar* _tmp4_;
+ GeeList* _tmp5_;
+ gboolean _tmp6_ = FALSE;
+ GeeCollection* _tmp7_;
GeeArrayList* transformed_values = NULL;
- GeeArrayList* _tmp12_;
+ GeeArrayList* _tmp11_;
#line 1102 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = field;
+ _tmp3_ = field;
#line 1102 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = _tmp4_->field_name;
+ _tmp4_ = _tmp3_->field_name;
#line 1102 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = photo_metadata_get_string_multiple (self, _tmp5_);
+ _tmp5_ = photo_metadata_get_string_multiple (self, _tmp4_);
#line 1102 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- values = G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection);
+ values = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection);
#line 1104 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp8_ = values;
+ _tmp7_ = values;
#line 1104 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp8_ == NULL) {
+ if (_tmp7_ == NULL) {
#line 1104 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_ = TRUE;
-#line 8292 "PhotoMetadata.c"
+ _tmp6_ = TRUE;
+#line 8349 "PhotoMetadata.c"
} else {
- GeeCollection* _tmp9_;
+ GeeCollection* _tmp8_;
+ gint _tmp9_;
gint _tmp10_;
- gint _tmp11_;
#line 1104 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp9_ = values;
+ _tmp8_ = values;
#line 1104 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp10_ = gee_collection_get_size (_tmp9_);
+ _tmp9_ = gee_collection_get_size (_tmp8_);
#line 1104 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp11_ = _tmp10_;
+ _tmp10_ = _tmp9_;
#line 1104 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_ = _tmp11_ < 1;
-#line 8305 "PhotoMetadata.c"
+ _tmp6_ = _tmp10_ < 1;
+#line 8362 "PhotoMetadata.c"
}
#line 1104 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp7_) {
+ if (_tmp6_) {
#line 1105 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_object_unref0 (values);
#line 1105 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_hierarchical_keyword_field_unref0 (field);
#line 1105 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
continue;
-#line 8315 "PhotoMetadata.c"
+#line 8372 "PhotoMetadata.c"
}
#line 1107 "/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);
+ _tmp11_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL);
#line 1107 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- transformed_values = _tmp12_;
-#line 8321 "PhotoMetadata.c"
+ transformed_values = _tmp11_;
+#line 8378 "PhotoMetadata.c"
{
GeeIterator* _current_value_it = NULL;
- GeeCollection* _tmp13_;
- GeeIterator* _tmp14_;
+ GeeCollection* _tmp12_;
+ GeeIterator* _tmp13_;
#line 1108 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp13_ = values;
+ _tmp12_ = values;
#line 1108 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp14_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ITERABLE, GeeIterable));
+ _tmp13_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ITERABLE, GeeIterable));
#line 1108 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _current_value_it = _tmp14_;
+ _current_value_it = _tmp13_;
#line 1108 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
while (TRUE) {
-#line 8334 "PhotoMetadata.c"
- GeeIterator* _tmp15_;
- gboolean _tmp16_;
+#line 8391 "PhotoMetadata.c"
+ GeeIterator* _tmp14_;
gchar* current_value = NULL;
- GeeIterator* _tmp17_;
- gpointer _tmp18_;
-#line 1108 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp15_ = _current_value_it;
+ GeeIterator* _tmp15_;
+ gpointer _tmp16_;
#line 1108 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp16_ = gee_iterator_next (_tmp15_);
+ _tmp14_ = _current_value_it;
#line 1108 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!_tmp16_) {
+ if (!gee_iterator_next (_tmp14_)) {
#line 1108 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
break;
-#line 8348 "PhotoMetadata.c"
+#line 8402 "PhotoMetadata.c"
}
#line 1108 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp17_ = _current_value_it;
+ _tmp15_ = _current_value_it;
#line 1108 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp18_ = gee_iterator_get (_tmp17_);
+ _tmp16_ = gee_iterator_get (_tmp15_);
#line 1108 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- current_value = (gchar*) _tmp18_;
-#line 8356 "PhotoMetadata.c"
+ current_value = (gchar*) _tmp16_;
+#line 8410 "PhotoMetadata.c"
{
GeeList* transformed = NULL;
- HierarchicalKeywordField* _tmp19_;
- KeywordTransformer* _tmp20_;
- const gchar* _tmp21_;
+ HierarchicalKeywordField* _tmp17_;
+ KeywordTransformer* _tmp18_;
+ const gchar* _tmp19_;
+ GeeList* _tmp20_;
+ GeeArrayList* _tmp21_;
GeeList* _tmp22_;
- GeeArrayList* _tmp23_;
- GeeList* _tmp24_;
#line 1110 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp19_ = field;
+ _tmp17_ = field;
#line 1110 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp20_ = _tmp19_->transformer;
+ _tmp18_ = _tmp17_->transformer;
#line 1110 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp21_ = current_value;
+ _tmp19_ = current_value;
#line 1110 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp22_ = keyword_transformer_transform (_tmp20_, _tmp21_, &_inner_error_);
+ _tmp20_ = keyword_transformer_transform (_tmp18_, _tmp19_, &_inner_error_);
#line 1110 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- transformed = _tmp22_;
+ transformed = _tmp20_;
#line 1110 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 8377 "PhotoMetadata.c"
+#line 8431 "PhotoMetadata.c"
goto __catch32_g_error;
}
#line 1111 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp23_ = transformed_values;
+ _tmp21_ = transformed_values;
#line 1111 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp24_ = transformed;
+ _tmp22_ = transformed;
#line 1111 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- gee_array_list_add_all (_tmp23_, G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, GEE_TYPE_COLLECTION, GeeCollection));
+ gee_array_list_add_all (_tmp21_, G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GEE_TYPE_COLLECTION, GeeCollection));
#line 1109 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_object_unref0 (transformed);
-#line 8388 "PhotoMetadata.c"
+#line 8442 "PhotoMetadata.c"
}
goto __finally32;
__catch32_g_error:
{
GError* _error_ = NULL;
+ const gchar* _tmp23_;
+ GError* _tmp24_;
const gchar* _tmp25_;
- GError* _tmp26_;
- const gchar* _tmp27_;
#line 1109 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_error_ = _inner_error_;
#line 1109 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_inner_error_ = NULL;
#line 1113 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp25_ = current_value;
+ _tmp23_ = current_value;
#line 1113 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp26_ = _error_;
+ _tmp24_ = _error_;
#line 1113 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp27_ = _tmp26_->message;
+ _tmp25_ = _tmp24_->message;
#line 1113 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- g_critical ("PhotoMetadata.vala:1113: Failed to transform tag value %s: %s", _tmp25_, _tmp27_);
+ g_critical ("PhotoMetadata.vala:1113: Failed to transform tag value %s: %s", _tmp23_, _tmp25_);
#line 1109 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_error_free0 (_error_);
-#line 8411 "PhotoMetadata.c"
+#line 8465 "PhotoMetadata.c"
}
__finally32:
#line 1109 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -8435,113 +8489,113 @@ GeeSet* photo_metadata_get_hierarchical_keywords (PhotoMetadata* self) {
g_clear_error (&_inner_error_);
#line 1109 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return NULL;
-#line 8434 "PhotoMetadata.c"
+#line 8488 "PhotoMetadata.c"
}
#line 1108 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (current_value);
-#line 8438 "PhotoMetadata.c"
+#line 8492 "PhotoMetadata.c"
}
#line 1108 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_object_unref0 (_current_value_it);
-#line 8442 "PhotoMetadata.c"
+#line 8496 "PhotoMetadata.c"
}
{
GeeArrayList* _current_value_list = NULL;
- GeeArrayList* _tmp28_;
- GeeArrayList* _tmp29_;
+ GeeArrayList* _tmp26_;
+ GeeArrayList* _tmp27_;
gint _current_value_size = 0;
- GeeArrayList* _tmp30_;
- gint _tmp31_;
- gint _tmp32_;
+ GeeArrayList* _tmp28_;
+ gint _tmp29_;
+ gint _tmp30_;
gint _current_value_index = 0;
#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp28_ = transformed_values;
+ _tmp26_ = transformed_values;
#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp29_ = _g_object_ref0 (_tmp28_);
+ _tmp27_ = _g_object_ref0 (_tmp26_);
#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _current_value_list = _tmp29_;
+ _current_value_list = _tmp27_;
#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp30_ = _current_value_list;
+ _tmp28_ = _current_value_list;
#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp31_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
+ _tmp29_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp32_ = _tmp31_;
+ _tmp30_ = _tmp29_;
#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _current_value_size = _tmp32_;
+ _current_value_size = _tmp30_;
#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_current_value_index = -1;
#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
while (TRUE) {
-#line 8471 "PhotoMetadata.c"
+#line 8525 "PhotoMetadata.c"
+ gint _tmp31_;
+ gint _tmp32_;
gint _tmp33_;
- gint _tmp34_;
- gint _tmp35_;
gchar* current_value = NULL;
- GeeArrayList* _tmp36_;
- gint _tmp37_;
- gpointer _tmp38_;
+ GeeArrayList* _tmp34_;
+ gint _tmp35_;
+ gpointer _tmp36_;
gchar* canonicalized = NULL;
+ const gchar* _tmp37_;
+ HierarchicalKeywordField* _tmp38_;
const gchar* _tmp39_;
- HierarchicalKeywordField* _tmp40_;
+ gchar* _tmp40_;
const gchar* _tmp41_;
- gchar* _tmp42_;
- const gchar* _tmp43_;
#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp33_ = _current_value_index;
+ _tmp31_ = _current_value_index;
#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _current_value_index = _tmp33_ + 1;
+ _current_value_index = _tmp31_ + 1;
#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp34_ = _current_value_index;
+ _tmp32_ = _current_value_index;
#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp35_ = _current_value_size;
+ _tmp33_ = _current_value_size;
#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!(_tmp34_ < _tmp35_)) {
+ if (!(_tmp32_ < _tmp33_)) {
#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
break;
-#line 8497 "PhotoMetadata.c"
+#line 8551 "PhotoMetadata.c"
}
#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp36_ = _current_value_list;
+ _tmp34_ = _current_value_list;
#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp37_ = _current_value_index;
+ _tmp35_ = _current_value_index;
#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp38_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp37_);
+ _tmp36_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp35_);
#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- current_value = (gchar*) _tmp38_;
+ current_value = (gchar*) _tmp36_;
#line 1120 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp39_ = current_value;
+ _tmp37_ = current_value;
#line 1120 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp40_ = field;
+ _tmp38_ = field;
#line 1120 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp41_ = _tmp40_->path_separator;
+ _tmp39_ = _tmp38_->path_separator;
#line 1120 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp42_ = hierarchical_tag_utilities_canonicalize (_tmp39_, _tmp41_);
+ _tmp40_ = hierarchical_tag_utilities_canonicalize (_tmp37_, _tmp39_);
#line 1120 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- canonicalized = _tmp42_;
+ canonicalized = _tmp40_;
#line 1124 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp43_ = canonicalized;
+ _tmp41_ = canonicalized;
#line 1124 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp43_ != NULL) {
-#line 8521 "PhotoMetadata.c"
- GeeSet* _tmp44_;
- const gchar* _tmp45_;
+ if (_tmp41_ != NULL) {
+#line 8575 "PhotoMetadata.c"
+ GeeSet* _tmp42_;
+ const gchar* _tmp43_;
#line 1125 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp44_ = h_keywords;
+ _tmp42_ = h_keywords;
#line 1125 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp45_ = canonicalized;
+ _tmp43_ = canonicalized;
#line 1125 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, GEE_TYPE_COLLECTION, GeeCollection), _tmp45_);
-#line 8530 "PhotoMetadata.c"
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, GEE_TYPE_COLLECTION, GeeCollection), _tmp43_);
+#line 8584 "PhotoMetadata.c"
}
#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (canonicalized);
#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (current_value);
-#line 8536 "PhotoMetadata.c"
+#line 8590 "PhotoMetadata.c"
}
#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_object_unref0 (_current_value_list);
-#line 8540 "PhotoMetadata.c"
+#line 8594 "PhotoMetadata.c"
}
#line 1101 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_object_unref0 (transformed_values);
@@ -8549,7 +8603,7 @@ GeeSet* photo_metadata_get_hierarchical_keywords (PhotoMetadata* self) {
_g_object_unref0 (values);
#line 1101 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_hierarchical_keyword_field_unref0 (field);
-#line 8548 "PhotoMetadata.c"
+#line 8602 "PhotoMetadata.c"
}
}
}
@@ -8557,108 +8611,113 @@ GeeSet* photo_metadata_get_hierarchical_keywords (PhotoMetadata* self) {
result = h_keywords;
#line 1129 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 8556 "PhotoMetadata.c"
+#line 8610 "PhotoMetadata.c"
}
-gboolean photo_metadata_has_orientation (PhotoMetadata* self) {
+gboolean
+photo_metadata_has_orientation (PhotoMetadata* self)
+{
gboolean result = FALSE;
GExiv2Metadata* _tmp0_;
- GExiv2Orientation _tmp1_;
#line 1132 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE);
#line 1133 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp0_ = self->priv->exiv2;
#line 1133 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = gexiv2_metadata_get_orientation (_tmp0_);
-#line 1133 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp1_ == GEXIV2_ORIENTATION_UNSPECIFIED;
+ result = gexiv2_metadata_get_orientation (_tmp0_) == GEXIV2_ORIENTATION_UNSPECIFIED;
#line 1133 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 8574 "PhotoMetadata.c"
+#line 8627 "PhotoMetadata.c"
}
-Orientation photo_metadata_get_orientation (PhotoMetadata* self) {
+Orientation
+photo_metadata_get_orientation (PhotoMetadata* self)
+{
Orientation result = 0;
GExiv2Orientation orientation = 0;
GExiv2Metadata* _tmp0_;
- GExiv2Orientation _tmp1_;
+ gboolean _tmp1_ = FALSE;
gboolean _tmp2_ = FALSE;
- gboolean _tmp3_ = FALSE;
- GExiv2Orientation _tmp4_;
+ GExiv2Orientation _tmp3_;
#line 1137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), 0);
#line 1140 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp0_ = self->priv->exiv2;
#line 1140 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = gexiv2_metadata_get_orientation (_tmp0_);
-#line 1140 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- orientation = _tmp1_;
+ orientation = gexiv2_metadata_get_orientation (_tmp0_);
#line 1141 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = orientation;
+ _tmp3_ = orientation;
#line 1141 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp4_ == GEXIV2_ORIENTATION_UNSPECIFIED) {
+ if (_tmp3_ == GEXIV2_ORIENTATION_UNSPECIFIED) {
#line 1141 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = TRUE;
-#line 8600 "PhotoMetadata.c"
+ _tmp2_ = TRUE;
+#line 8652 "PhotoMetadata.c"
} else {
- GExiv2Orientation _tmp5_;
+ GExiv2Orientation _tmp4_;
#line 1141 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = orientation;
+ _tmp4_ = orientation;
#line 1141 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = _tmp5_ < ORIENTATION_MIN;
-#line 8607 "PhotoMetadata.c"
+ _tmp2_ = _tmp4_ < ORIENTATION_MIN;
+#line 8659 "PhotoMetadata.c"
}
#line 1141 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp3_) {
+ if (_tmp2_) {
#line 1141 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = TRUE;
-#line 8613 "PhotoMetadata.c"
+ _tmp1_ = TRUE;
+#line 8665 "PhotoMetadata.c"
} else {
- GExiv2Orientation _tmp6_;
+ GExiv2Orientation _tmp5_;
#line 1142 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = orientation;
+ _tmp5_ = orientation;
#line 1142 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = _tmp6_ > ORIENTATION_MAX;
-#line 8620 "PhotoMetadata.c"
+ _tmp1_ = _tmp5_ > ORIENTATION_MAX;
+#line 8672 "PhotoMetadata.c"
}
#line 1141 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp2_) {
+ if (_tmp1_) {
#line 1143 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
result = ORIENTATION_TOP_LEFT;
#line 1143 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 8628 "PhotoMetadata.c"
+#line 8680 "PhotoMetadata.c"
} else {
- GExiv2Orientation _tmp7_;
+ GExiv2Orientation _tmp6_;
#line 1145 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_ = orientation;
+ _tmp6_ = orientation;
#line 1145 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = (Orientation) _tmp7_;
+ result = (Orientation) _tmp6_;
#line 1145 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 8637 "PhotoMetadata.c"
+#line 8689 "PhotoMetadata.c"
}
}
-void photo_metadata_set_orientation (PhotoMetadata* self, Orientation orientation) {
+void
+photo_metadata_set_orientation (PhotoMetadata* self,
+ Orientation orientation)
+{
GExiv2Metadata* _tmp0_;
- Orientation _tmp1_;
#line 1148 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
#line 1150 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp0_ = self->priv->exiv2;
#line 1150 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = orientation;
-#line 1150 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- gexiv2_metadata_set_orientation (_tmp0_, (GExiv2Orientation) _tmp1_);
-#line 8653 "PhotoMetadata.c"
+ gexiv2_metadata_set_orientation (_tmp0_, (GExiv2Orientation) orientation);
+#line 8705 "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;
@@ -8700,43 +8759,43 @@ gboolean photo_metadata_get_gps (PhotoMetadata* self, gdouble* longitude, gchar*
if (longitude) {
#line 1159 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
*longitude = _vala_longitude;
-#line 8699 "PhotoMetadata.c"
+#line 8758 "PhotoMetadata.c"
}
#line 1159 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (long_ref) {
#line 1159 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
*long_ref = _vala_long_ref;
-#line 8705 "PhotoMetadata.c"
+#line 8764 "PhotoMetadata.c"
} else {
#line 1159 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (_vala_long_ref);
-#line 8709 "PhotoMetadata.c"
+#line 8768 "PhotoMetadata.c"
}
#line 1159 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (latitude) {
#line 1159 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
*latitude = _vala_latitude;
-#line 8715 "PhotoMetadata.c"
+#line 8774 "PhotoMetadata.c"
}
#line 1159 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (lat_ref) {
#line 1159 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
*lat_ref = _vala_lat_ref;
-#line 8721 "PhotoMetadata.c"
+#line 8780 "PhotoMetadata.c"
} else {
#line 1159 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (_vala_lat_ref);
-#line 8725 "PhotoMetadata.c"
+#line 8784 "PhotoMetadata.c"
}
#line 1159 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (altitude) {
#line 1159 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
*altitude = _vala_altitude;
-#line 8731 "PhotoMetadata.c"
+#line 8790 "PhotoMetadata.c"
}
#line 1159 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 8735 "PhotoMetadata.c"
+#line 8794 "PhotoMetadata.c"
}
#line 1162 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp5_ = photo_metadata_get_string (self, "Exif.GPSInfo.GPSLongitudeRef", PHOTO_METADATA_PREPARE_STRING_OPTIONS);
@@ -8756,47 +8815,50 @@ gboolean photo_metadata_get_gps (PhotoMetadata* self, gdouble* longitude, gchar*
if (longitude) {
#line 1165 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
*longitude = _vala_longitude;
-#line 8755 "PhotoMetadata.c"
+#line 8814 "PhotoMetadata.c"
}
#line 1165 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (long_ref) {
#line 1165 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
*long_ref = _vala_long_ref;
-#line 8761 "PhotoMetadata.c"
+#line 8820 "PhotoMetadata.c"
} else {
#line 1165 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (_vala_long_ref);
-#line 8765 "PhotoMetadata.c"
+#line 8824 "PhotoMetadata.c"
}
#line 1165 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (latitude) {
#line 1165 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
*latitude = _vala_latitude;
-#line 8771 "PhotoMetadata.c"
+#line 8830 "PhotoMetadata.c"
}
#line 1165 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (lat_ref) {
#line 1165 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
*lat_ref = _vala_lat_ref;
-#line 8777 "PhotoMetadata.c"
+#line 8836 "PhotoMetadata.c"
} else {
#line 1165 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (_vala_lat_ref);
-#line 8781 "PhotoMetadata.c"
+#line 8840 "PhotoMetadata.c"
}
#line 1165 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (altitude) {
#line 1165 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
*altitude = _vala_altitude;
-#line 8787 "PhotoMetadata.c"
+#line 8846 "PhotoMetadata.c"
}
#line 1165 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 8791 "PhotoMetadata.c"
+#line 8850 "PhotoMetadata.c"
}
-gboolean photo_metadata_get_exposure (PhotoMetadata* self, MetadataRational* exposure) {
+gboolean
+photo_metadata_get_exposure (PhotoMetadata* self,
+ MetadataRational* exposure)
+{
MetadataRational _vala_exposure = {0};
gboolean result = FALSE;
MetadataRational _tmp0_ = {0};
@@ -8813,21 +8875,22 @@ gboolean photo_metadata_get_exposure (PhotoMetadata* self, MetadataRational* exp
if (exposure) {
#line 1169 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
*exposure = _vala_exposure;
-#line 8812 "PhotoMetadata.c"
+#line 8874 "PhotoMetadata.c"
}
#line 1169 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 8816 "PhotoMetadata.c"
+#line 8878 "PhotoMetadata.c"
}
-gchar* photo_metadata_get_exposure_string (PhotoMetadata* self) {
+gchar*
+photo_metadata_get_exposure_string (PhotoMetadata* self)
+{
gchar* result = NULL;
MetadataRational exposure_time = {0};
MetadataRational _tmp0_ = {0};
gboolean _tmp1_;
- gboolean _tmp2_;
- gchar* _tmp3_;
+ gchar* _tmp2_;
#line 1172 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
#line 1174 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -8840,29 +8903,30 @@ gchar* photo_metadata_get_exposure_string (PhotoMetadata* self) {
result = NULL;
#line 1175 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 8839 "PhotoMetadata.c"
+#line 8902 "PhotoMetadata.c"
}
#line 1177 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = metadata_rational_is_valid (&exposure_time);
-#line 1177 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!_tmp2_) {
+ if (!metadata_rational_is_valid (&exposure_time)) {
#line 1178 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
result = NULL;
#line 1178 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 8849 "PhotoMetadata.c"
+#line 8910 "PhotoMetadata.c"
}
#line 1180 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = photo_metadata_get_string_interpreted (self, "Exif.Photo.ExposureTime", PHOTO_METADATA_PREPARE_STRING_OPTIONS);
+ _tmp2_ = photo_metadata_get_string_interpreted (self, "Exif.Photo.ExposureTime", PHOTO_METADATA_PREPARE_STRING_OPTIONS);
#line 1180 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp3_;
+ result = _tmp2_;
#line 1180 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 8857 "PhotoMetadata.c"
+#line 8918 "PhotoMetadata.c"
}
-gboolean photo_metadata_get_iso (PhotoMetadata* self, glong* iso) {
+gboolean
+photo_metadata_get_iso (PhotoMetadata* self,
+ glong* iso)
+{
glong _vala_iso = 0L;
gboolean result = FALSE;
gboolean fetched_ok = FALSE;
@@ -8889,11 +8953,11 @@ gboolean photo_metadata_get_iso (PhotoMetadata* self, glong* iso) {
if (iso) {
#line 1187 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
*iso = _vala_iso;
-#line 8888 "PhotoMetadata.c"
+#line 8952 "PhotoMetadata.c"
}
#line 1187 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 8892 "PhotoMetadata.c"
+#line 8956 "PhotoMetadata.c"
}
#line 1191 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp4_ = _vala_iso;
@@ -8901,14 +8965,14 @@ gboolean photo_metadata_get_iso (PhotoMetadata* self, glong* iso) {
if (_tmp4_ < ((glong) 6)) {
#line 1191 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp3_ = TRUE;
-#line 8900 "PhotoMetadata.c"
+#line 8964 "PhotoMetadata.c"
} else {
glong _tmp5_;
#line 1191 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp5_ = _vala_iso;
#line 1191 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp3_ = _tmp5_ > ((glong) 409600);
-#line 8907 "PhotoMetadata.c"
+#line 8971 "PhotoMetadata.c"
}
#line 1191 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp3_) {
@@ -8918,11 +8982,11 @@ gboolean photo_metadata_get_iso (PhotoMetadata* self, glong* iso) {
if (iso) {
#line 1192 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
*iso = _vala_iso;
-#line 8917 "PhotoMetadata.c"
+#line 8981 "PhotoMetadata.c"
}
#line 1192 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 8921 "PhotoMetadata.c"
+#line 8985 "PhotoMetadata.c"
}
#line 1194 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
result = TRUE;
@@ -8930,15 +8994,17 @@ gboolean photo_metadata_get_iso (PhotoMetadata* self, glong* iso) {
if (iso) {
#line 1194 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
*iso = _vala_iso;
-#line 8929 "PhotoMetadata.c"
+#line 8993 "PhotoMetadata.c"
}
#line 1194 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 8933 "PhotoMetadata.c"
+#line 8997 "PhotoMetadata.c"
}
-gchar* photo_metadata_get_iso_string (PhotoMetadata* self) {
+gchar*
+photo_metadata_get_iso_string (PhotoMetadata* self)
+{
gchar* result = NULL;
glong iso = 0L;
glong _tmp0_ = 0L;
@@ -8956,7 +9022,7 @@ gchar* photo_metadata_get_iso_string (PhotoMetadata* self) {
result = NULL;
#line 1200 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 8955 "PhotoMetadata.c"
+#line 9021 "PhotoMetadata.c"
}
#line 1202 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp2_ = photo_metadata_get_string_interpreted (self, "Exif.Photo.ISOSpeedRatings", PHOTO_METADATA_PREPARE_STRING_OPTIONS);
@@ -8964,11 +9030,14 @@ gchar* photo_metadata_get_iso_string (PhotoMetadata* self) {
result = _tmp2_;
#line 1202 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 8963 "PhotoMetadata.c"
+#line 9029 "PhotoMetadata.c"
}
-gboolean photo_metadata_get_aperture (PhotoMetadata* self, MetadataRational* aperture) {
+gboolean
+photo_metadata_get_aperture (PhotoMetadata* self,
+ MetadataRational* aperture)
+{
MetadataRational _vala_aperture = {0};
gboolean result = FALSE;
MetadataRational _tmp0_ = {0};
@@ -8985,15 +9054,18 @@ gboolean photo_metadata_get_aperture (PhotoMetadata* self, MetadataRational* ape
if (aperture) {
#line 1206 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
*aperture = _vala_aperture;
-#line 8984 "PhotoMetadata.c"
+#line 9053 "PhotoMetadata.c"
}
#line 1206 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 8988 "PhotoMetadata.c"
+#line 9057 "PhotoMetadata.c"
}
-gchar* photo_metadata_get_aperture_string (PhotoMetadata* self, gboolean pango_formatted) {
+gchar*
+photo_metadata_get_aperture_string (PhotoMetadata* self,
+ gboolean pango_formatted)
+{
gchar* result = NULL;
MetadataRational aperture = {0};
MetadataRational _tmp0_ = {0};
@@ -9005,14 +9077,13 @@ gchar* photo_metadata_get_aperture_string (PhotoMetadata* self, gboolean pango_f
gint _tmp5_;
gdouble _tmp6_;
const gchar* _tmp7_ = NULL;
- gboolean _tmp8_;
- const gchar* _tmp9_ = NULL;
+ const gchar* _tmp8_ = NULL;
+ gdouble _tmp9_;
gdouble _tmp10_;
- gdouble _tmp11_;
+ gchar* _tmp11_;
gchar* _tmp12_;
gchar* _tmp13_;
gchar* _tmp14_;
- gchar* _tmp15_;
#line 1209 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL);
#line 1211 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -9025,7 +9096,7 @@ gchar* photo_metadata_get_aperture_string (PhotoMetadata* self, gboolean pango_f
result = NULL;
#line 1212 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 9024 "PhotoMetadata.c"
+#line 9095 "PhotoMetadata.c"
}
#line 1214 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp2_ = aperture;
@@ -9042,50 +9113,50 @@ gchar* photo_metadata_get_aperture_string (PhotoMetadata* self, gboolean pango_f
#line 1215 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
aperture_value = ((gint) (_tmp6_ * 10.0)) / 10.0;
#line 1217 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp8_ = pango_formatted;
-#line 1217 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp8_) {
+ if (pango_formatted) {
#line 1217 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp7_ = "<i>f</i>/";
-#line 9046 "PhotoMetadata.c"
+#line 9115 "PhotoMetadata.c"
} else {
#line 1217 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp7_ = "f/";
-#line 9050 "PhotoMetadata.c"
+#line 9119 "PhotoMetadata.c"
}
#line 1218 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp10_ = aperture_value;
+ _tmp9_ = aperture_value;
#line 1218 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (fmod (_tmp10_, 1) == ((gdouble) 0)) {
+ if (fmod (_tmp9_, 1) == ((gdouble) 0)) {
#line 1218 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp9_ = "%.0f";
-#line 9058 "PhotoMetadata.c"
+ _tmp8_ = "%.0f";
+#line 9127 "PhotoMetadata.c"
} else {
#line 1218 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp9_ = "%.1f";
-#line 9062 "PhotoMetadata.c"
+ _tmp8_ = "%.1f";
+#line 9131 "PhotoMetadata.c"
}
#line 1217 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp11_ = aperture_value;
+ _tmp10_ = aperture_value;
#line 1217 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp12_ = g_strdup_printf (_tmp9_, _tmp11_);
+ _tmp11_ = g_strdup_printf (_tmp8_, _tmp10_);
#line 1217 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp13_ = _tmp12_;
+ _tmp12_ = _tmp11_;
#line 1217 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp14_ = g_strconcat (_tmp7_, _tmp13_, NULL);
+ _tmp13_ = g_strconcat (_tmp7_, _tmp12_, NULL);
#line 1217 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp15_ = _tmp14_;
+ _tmp14_ = _tmp13_;
#line 1217 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (_tmp13_);
+ _g_free0 (_tmp12_);
#line 1217 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp15_;
+ result = _tmp14_;
#line 1217 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 9080 "PhotoMetadata.c"
+#line 9149 "PhotoMetadata.c"
}
-gchar* photo_metadata_get_camera_make (PhotoMetadata* self) {
+gchar*
+photo_metadata_get_camera_make (PhotoMetadata* self)
+{
gchar* result = NULL;
gchar* _tmp0_;
#line 1221 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -9096,11 +9167,13 @@ gchar* photo_metadata_get_camera_make (PhotoMetadata* self) {
result = _tmp0_;
#line 1222 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 9095 "PhotoMetadata.c"
+#line 9166 "PhotoMetadata.c"
}
-gchar* photo_metadata_get_camera_model (PhotoMetadata* self) {
+gchar*
+photo_metadata_get_camera_model (PhotoMetadata* self)
+{
gchar* result = NULL;
gchar* _tmp0_;
#line 1225 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -9111,11 +9184,14 @@ gchar* photo_metadata_get_camera_model (PhotoMetadata* self) {
result = _tmp0_;
#line 1226 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 9110 "PhotoMetadata.c"
+#line 9183 "PhotoMetadata.c"
}
-gboolean photo_metadata_get_flash (PhotoMetadata* self, glong* flash) {
+gboolean
+photo_metadata_get_flash (PhotoMetadata* self,
+ glong* flash)
+{
glong _vala_flash = 0L;
gboolean result = FALSE;
glong _tmp0_ = 0L;
@@ -9132,15 +9208,17 @@ gboolean photo_metadata_get_flash (PhotoMetadata* self, glong* flash) {
if (flash) {
#line 1231 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
*flash = _vala_flash;
-#line 9131 "PhotoMetadata.c"
+#line 9207 "PhotoMetadata.c"
}
#line 1231 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 9135 "PhotoMetadata.c"
+#line 9211 "PhotoMetadata.c"
}
-gchar* photo_metadata_get_flash_string (PhotoMetadata* self) {
+gchar*
+photo_metadata_get_flash_string (PhotoMetadata* self)
+{
gchar* result = NULL;
gchar* _tmp0_;
#line 1234 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -9151,11 +9229,14 @@ gchar* photo_metadata_get_flash_string (PhotoMetadata* self) {
result = _tmp0_;
#line 1236 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 9150 "PhotoMetadata.c"
+#line 9228 "PhotoMetadata.c"
}
-gboolean photo_metadata_get_focal_length (PhotoMetadata* self, MetadataRational* focal_length) {
+gboolean
+photo_metadata_get_focal_length (PhotoMetadata* self,
+ MetadataRational* focal_length)
+{
MetadataRational _vala_focal_length = {0};
gboolean result = FALSE;
MetadataRational _tmp0_ = {0};
@@ -9172,15 +9253,17 @@ gboolean photo_metadata_get_focal_length (PhotoMetadata* self, MetadataRational*
if (focal_length) {
#line 1240 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
*focal_length = _vala_focal_length;
-#line 9171 "PhotoMetadata.c"
+#line 9252 "PhotoMetadata.c"
}
#line 1240 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 9175 "PhotoMetadata.c"
+#line 9256 "PhotoMetadata.c"
}
-gchar* photo_metadata_get_focal_length_string (PhotoMetadata* self) {
+gchar*
+photo_metadata_get_focal_length_string (PhotoMetadata* self)
+{
gchar* result = NULL;
gchar* _tmp0_;
#line 1243 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -9191,11 +9274,13 @@ gchar* photo_metadata_get_focal_length_string (PhotoMetadata* self) {
result = _tmp0_;
#line 1244 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 9190 "PhotoMetadata.c"
+#line 9273 "PhotoMetadata.c"
}
-gchar* photo_metadata_get_artist (PhotoMetadata* self) {
+gchar*
+photo_metadata_get_artist (PhotoMetadata* self)
+{
gchar* result = NULL;
gchar** _tmp0_;
gint _tmp0__length1;
@@ -9212,11 +9297,13 @@ gchar* photo_metadata_get_artist (PhotoMetadata* self) {
result = _tmp1_;
#line 1254 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 9211 "PhotoMetadata.c"
+#line 9296 "PhotoMetadata.c"
}
-gchar* photo_metadata_get_copyright (PhotoMetadata* self) {
+gchar*
+photo_metadata_get_copyright (PhotoMetadata* self)
+{
gchar* result = NULL;
gchar* _tmp0_;
#line 1257 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -9227,11 +9314,13 @@ gchar* photo_metadata_get_copyright (PhotoMetadata* self) {
result = _tmp0_;
#line 1258 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 9226 "PhotoMetadata.c"
+#line 9313 "PhotoMetadata.c"
}
-gchar* photo_metadata_get_software (PhotoMetadata* self) {
+gchar*
+photo_metadata_get_software (PhotoMetadata* self)
+{
gchar* result = NULL;
gchar* _tmp0_;
#line 1261 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -9242,16 +9331,17 @@ gchar* photo_metadata_get_software (PhotoMetadata* self) {
result = _tmp0_;
#line 1262 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 9241 "PhotoMetadata.c"
+#line 9330 "PhotoMetadata.c"
}
-void photo_metadata_set_software (PhotoMetadata* self, const gchar* software, const gchar* version) {
- const gchar* _tmp0_;
- const gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gboolean _tmp4_;
+void
+photo_metadata_set_software (PhotoMetadata* self,
+ const gchar* software,
+ const gchar* version)
+{
+ gchar* _tmp0_;
+ gchar* _tmp1_;
#line 1265 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
#line 1265 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -9259,38 +9349,27 @@ void photo_metadata_set_software (PhotoMetadata* self, const gchar* software, co
#line 1265 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (version != NULL);
#line 1267 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = software;
-#line 1267 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = version;
+ _tmp0_ = g_strdup_printf ("%s %s", software, version);
#line 1267 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = g_strdup_printf ("%s %s", _tmp0_, _tmp1_);
+ _tmp1_ = _tmp0_;
#line 1267 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = _tmp2_;
-#line 1267 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_set_string (self, "Exif.Image.Software", _tmp3_, PHOTO_METADATA_PREPARE_STRING_OPTIONS);
+ photo_metadata_set_string (self, "Exif.Image.Software", _tmp1_, PHOTO_METADATA_PREPARE_STRING_OPTIONS);
#line 1267 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (_tmp3_);
-#line 1269 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = photo_metadata_has_iptc (self);
+ _g_free0 (_tmp1_);
#line 1269 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp4_) {
-#line 9273 "PhotoMetadata.c"
- const gchar* _tmp5_;
- const gchar* _tmp6_;
-#line 1270 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = software;
+ if (photo_metadata_has_iptc (self)) {
#line 1270 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_set_string (self, "Iptc.Application2.Program", _tmp5_, PHOTO_METADATA_PREPARE_STRING_OPTIONS);
+ photo_metadata_set_string (self, "Iptc.Application2.Program", software, PHOTO_METADATA_PREPARE_STRING_OPTIONS);
#line 1271 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = version;
-#line 1271 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_set_string (self, "Iptc.Application2.ProgramVersion", _tmp6_, PHOTO_METADATA_PREPARE_STRING_OPTIONS);
-#line 9284 "PhotoMetadata.c"
+ photo_metadata_set_string (self, "Iptc.Application2.ProgramVersion", version, PHOTO_METADATA_PREPARE_STRING_OPTIONS);
+#line 9361 "PhotoMetadata.c"
}
}
-void photo_metadata_remove_software (PhotoMetadata* self) {
+void
+photo_metadata_remove_software (PhotoMetadata* self)
+{
#line 1275 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
#line 1276 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -9299,11 +9378,13 @@ void photo_metadata_remove_software (PhotoMetadata* self) {
photo_metadata_remove_tag (self, "Iptc.Application2.Program");
#line 1278 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
photo_metadata_remove_tag (self, "Iptc.Application2.ProgramVersion");
-#line 9298 "PhotoMetadata.c"
+#line 9377 "PhotoMetadata.c"
}
-gchar* photo_metadata_get_exposure_bias (PhotoMetadata* self) {
+gchar*
+photo_metadata_get_exposure_bias (PhotoMetadata* self)
+{
gchar* result = NULL;
gchar* _tmp0_;
#line 1281 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -9314,23 +9395,23 @@ gchar* photo_metadata_get_exposure_bias (PhotoMetadata* self) {
result = _tmp0_;
#line 1282 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 9313 "PhotoMetadata.c"
+#line 9394 "PhotoMetadata.c"
}
-Rating photo_metadata_get_rating (PhotoMetadata* self) {
+Rating
+photo_metadata_get_rating (PhotoMetadata* self)
+{
Rating result = 0;
gchar* rating_string = NULL;
gchar** _tmp0_;
gint _tmp0__length1;
gchar* _tmp1_;
const gchar* _tmp2_;
- gchar* _tmp6_;
- const gchar* _tmp7_;
+ gchar* _tmp4_;
+ const gchar* _tmp5_;
gint int_percent_rating = 0;
- const gchar* _tmp8_;
- gint _tmp9_;
- Rating _tmp18_;
+ const gchar* _tmp6_;
#line 1293 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (self), 0);
#line 1294 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -9345,227 +9426,208 @@ Rating photo_metadata_get_rating (PhotoMetadata* self) {
_tmp2_ = rating_string;
#line 1295 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
if (_tmp2_ != NULL) {
-#line 9344 "PhotoMetadata.c"
+#line 9425 "PhotoMetadata.c"
const gchar* _tmp3_;
- gint _tmp4_;
- Rating _tmp5_;
#line 1296 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp3_ = rating_string;
#line 1296 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = atoi (_tmp3_);
-#line 1296 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = rating_unserialize (_tmp4_);
-#line 1296 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp5_;
+ result = rating_unserialize (atoi (_tmp3_));
#line 1296 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (rating_string);
#line 1296 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 9360 "PhotoMetadata.c"
+#line 9435 "PhotoMetadata.c"
}
#line 1298 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = photo_metadata_get_string (self, "Exif.Image.RatingPercent", PHOTO_METADATA_PREPARE_STRING_OPTIONS);
+ _tmp4_ = photo_metadata_get_string (self, "Exif.Image.RatingPercent", PHOTO_METADATA_PREPARE_STRING_OPTIONS);
#line 1298 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (rating_string);
#line 1298 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- rating_string = _tmp6_;
+ rating_string = _tmp4_;
#line 1299 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_ = rating_string;
+ _tmp5_ = rating_string;
#line 1299 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp7_ == NULL) {
+ if (_tmp5_ == NULL) {
#line 1300 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
result = RATING_UNRATED;
#line 1300 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (rating_string);
#line 1300 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 9378 "PhotoMetadata.c"
+#line 9453 "PhotoMetadata.c"
}
#line 1303 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp8_ = rating_string;
+ _tmp6_ = rating_string;
#line 1303 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp9_ = atoi (_tmp8_);
-#line 1303 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- int_percent_rating = _tmp9_;
-#line 9386 "PhotoMetadata.c"
+ int_percent_rating = atoi (_tmp6_);
+#line 9459 "PhotoMetadata.c"
{
gint i = 0;
#line 1304 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
i = 5;
-#line 9391 "PhotoMetadata.c"
+#line 9464 "PhotoMetadata.c"
{
- gboolean _tmp10_ = FALSE;
+ gboolean _tmp7_ = FALSE;
#line 1304 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp10_ = TRUE;
+ _tmp7_ = TRUE;
#line 1304 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
while (TRUE) {
-#line 9398 "PhotoMetadata.c"
+#line 9471 "PhotoMetadata.c"
+ gint _tmp9_;
+ gint _tmp10_;
+ gint _tmp11_;
gint _tmp12_;
- gint _tmp13_;
- gint _tmp14_;
- gint _tmp15_;
#line 1304 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!_tmp10_) {
-#line 9405 "PhotoMetadata.c"
- gint _tmp11_;
+ if (!_tmp7_) {
+#line 9478 "PhotoMetadata.c"
+ gint _tmp8_;
#line 1304 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp11_ = i;
+ _tmp8_ = i;
#line 1304 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- i = _tmp11_ - 1;
-#line 9411 "PhotoMetadata.c"
+ i = _tmp8_ - 1;
+#line 9484 "PhotoMetadata.c"
}
#line 1304 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp10_ = FALSE;
+ _tmp7_ = FALSE;
#line 1304 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp12_ = i;
+ _tmp9_ = i;
#line 1304 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (!(_tmp12_ >= 0)) {
+ if (!(_tmp9_ >= 0)) {
#line 1304 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
break;
-#line 9421 "PhotoMetadata.c"
+#line 9494 "PhotoMetadata.c"
}
#line 1305 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp13_ = int_percent_rating;
+ _tmp10_ = int_percent_rating;
#line 1305 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp14_ = i;
+ _tmp11_ = i;
#line 1305 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp15_ = RESOURCES_rating_thresholds[_tmp14_];
+ _tmp12_ = RESOURCES_rating_thresholds[_tmp11_];
#line 1305 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (_tmp13_ >= _tmp15_) {
-#line 9431 "PhotoMetadata.c"
- gint _tmp16_;
- Rating _tmp17_;
-#line 1306 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp16_ = i;
+ if (_tmp10_ >= _tmp12_) {
+#line 9504 "PhotoMetadata.c"
+ gint _tmp13_;
#line 1306 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp17_ = rating_unserialize (_tmp16_);
+ _tmp13_ = i;
#line 1306 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp17_;
+ result = rating_unserialize (_tmp13_);
#line 1306 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (rating_string);
#line 1306 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 9444 "PhotoMetadata.c"
+#line 9514 "PhotoMetadata.c"
}
}
}
}
#line 1308 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp18_ = rating_unserialize (-1);
-#line 1308 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- result = _tmp18_;
+ result = rating_unserialize (-1);
#line 1308 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_g_free0 (rating_string);
#line 1308 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 9457 "PhotoMetadata.c"
+#line 9525 "PhotoMetadata.c"
}
-void photo_metadata_set_rating (PhotoMetadata* self, Rating rating) {
+void
+photo_metadata_set_rating (PhotoMetadata* self,
+ Rating rating)
+{
gint int_rating = 0;
- Rating _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
- gchar* _tmp3_;
+ gint _tmp0_;
+ gchar* _tmp1_;
+ gchar* _tmp2_;
+ gint _tmp3_;
gchar* _tmp4_;
- gint _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
- gint _tmp8_;
+ gchar* _tmp5_;
+ gint _tmp6_;
#line 1316 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_if_fail (IS_PHOTO_METADATA (self));
#line 1317 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = rating;
-#line 1317 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = rating_serialize (_tmp0_);
-#line 1317 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- int_rating = _tmp1_;
+ int_rating = rating_serialize (rating);
#line 1318 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = int_rating;
+ _tmp0_ = int_rating;
#line 1318 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = g_strdup_printf ("%i", _tmp2_);
+ _tmp1_ = g_strdup_printf ("%i", _tmp0_);
#line 1318 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = _tmp3_;
+ _tmp2_ = _tmp1_;
#line 1318 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_set_string (self, "Xmp.xmp.Rating", _tmp4_, PHOTO_METADATA_PREPARE_STRING_OPTIONS);
+ photo_metadata_set_string (self, "Xmp.xmp.Rating", _tmp2_, PHOTO_METADATA_PREPARE_STRING_OPTIONS);
#line 1318 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (_tmp4_);
+ _g_free0 (_tmp2_);
#line 1319 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp5_ = int_rating;
+ _tmp3_ = int_rating;
#line 1319 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = g_strdup_printf ("%i", _tmp5_);
+ _tmp4_ = g_strdup_printf ("%i", _tmp3_);
#line 1319 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_ = _tmp6_;
+ _tmp5_ = _tmp4_;
#line 1319 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_set_string (self, "Exif.Image.Rating", _tmp7_, PHOTO_METADATA_PREPARE_STRING_OPTIONS);
+ photo_metadata_set_string (self, "Exif.Image.Rating", _tmp5_, PHOTO_METADATA_PREPARE_STRING_OPTIONS);
#line 1319 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (_tmp7_);
+ _g_free0 (_tmp5_);
#line 1321 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp8_ = int_rating;
+ _tmp6_ = int_rating;
#line 1321 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- if (0 <= _tmp8_) {
-#line 9504 "PhotoMetadata.c"
- gint _tmp9_;
- gint _tmp10_;
- gchar* _tmp11_;
- gchar* _tmp12_;
+ if (0 <= _tmp6_) {
+#line 9569 "PhotoMetadata.c"
+ gint _tmp7_;
+ gint _tmp8_;
+ gchar* _tmp9_;
+ gchar* _tmp10_;
#line 1322 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp9_ = int_rating;
+ _tmp7_ = int_rating;
#line 1322 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp10_ = RESOURCES_rating_thresholds[_tmp9_];
+ _tmp8_ = RESOURCES_rating_thresholds[_tmp7_];
#line 1322 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp11_ = g_strdup_printf ("%i", _tmp10_);
+ _tmp9_ = g_strdup_printf ("%i", _tmp8_);
#line 1322 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp12_ = _tmp11_;
+ _tmp10_ = _tmp9_;
#line 1322 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_set_string (self, "Exif.Image.RatingPercent", _tmp12_, PHOTO_METADATA_PREPARE_STRING_OPTIONS);
+ photo_metadata_set_string (self, "Exif.Image.RatingPercent", _tmp10_, PHOTO_METADATA_PREPARE_STRING_OPTIONS);
#line 1322 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (_tmp12_);
-#line 9521 "PhotoMetadata.c"
+ _g_free0 (_tmp10_);
+#line 9586 "PhotoMetadata.c"
} else {
- gint _tmp13_;
- gchar* _tmp14_;
- gchar* _tmp15_;
+ gint _tmp11_;
+ gchar* _tmp12_;
+ gchar* _tmp13_;
#line 1324 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp13_ = int_rating;
+ _tmp11_ = int_rating;
#line 1324 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp14_ = g_strdup_printf ("%i", _tmp13_);
+ _tmp12_ = g_strdup_printf ("%i", _tmp11_);
#line 1324 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp15_ = _tmp14_;
+ _tmp13_ = _tmp12_;
#line 1324 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- photo_metadata_set_string (self, "Exif.Image.RatingPercent", _tmp15_, PHOTO_METADATA_PREPARE_STRING_OPTIONS);
+ photo_metadata_set_string (self, "Exif.Image.RatingPercent", _tmp13_, PHOTO_METADATA_PREPARE_STRING_OPTIONS);
#line 1324 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _g_free0 (_tmp15_);
-#line 9536 "PhotoMetadata.c"
+ _g_free0 (_tmp13_);
+#line 9601 "PhotoMetadata.c"
}
}
-static gpointer _media_metadata_ref0 (gpointer self) {
+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 9544 "PhotoMetadata.c"
+#line 9611 "PhotoMetadata.c"
}
-static PhotoMetadataInternalPhotoPreview* photo_metadata_internal_photo_preview_construct (GType object_type, PhotoMetadata* owner, const gchar* name, guint number, GExiv2PreviewProperties* props) {
+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_;
- GExiv2PreviewProperties* _tmp1_;
- guint32 _tmp2_;
- GExiv2PreviewProperties* _tmp3_;
- guint32 _tmp4_;
- Dimensions _tmp5_ = {0};
- GExiv2PreviewProperties* _tmp6_;
- guint32 _tmp7_;
- GExiv2PreviewProperties* _tmp8_;
- const gchar* _tmp9_;
- GExiv2PreviewProperties* _tmp10_;
- const gchar* _tmp11_;
- PhotoMetadata* _tmp12_;
- PhotoMetadata* _tmp13_;
- guint _tmp14_;
+ Dimensions _tmp0_ = {0};
+ const gchar* _tmp1_;
+ const gchar* _tmp2_;
+ PhotoMetadata* _tmp3_;
#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"
@@ -9573,57 +9635,43 @@ static PhotoMetadataInternalPhotoPreview* photo_metadata_internal_photo_preview_
#line 230 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
g_return_val_if_fail (GEXIV2_IS_PREVIEW_PROPERTIES (props), NULL);
#line 232 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp0_ = name;
-#line 232 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp1_ = props;
-#line 232 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp2_ = gexiv2_preview_properties_get_width (_tmp1_);
-#line 232 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp3_ = props;
-#line 232 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp4_ = gexiv2_preview_properties_get_height (_tmp3_);
-#line 232 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- dimensions_init (&_tmp5_, (gint) _tmp2_, (gint) _tmp4_);
-#line 232 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp6_ = props;
-#line 232 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp7_ = gexiv2_preview_properties_get_size (_tmp6_);
+ dimensions_init (&_tmp0_, (gint) gexiv2_preview_properties_get_width (props), (gint) gexiv2_preview_properties_get_height (props));
#line 232 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp8_ = props;
+ _tmp1_ = gexiv2_preview_properties_get_mime_type (props);
#line 232 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp9_ = gexiv2_preview_properties_get_mime_type (_tmp8_);
+ _tmp2_ = gexiv2_preview_properties_get_extension (props);
#line 232 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp10_ = props;
-#line 232 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp11_ = gexiv2_preview_properties_get_extension (_tmp10_);
-#line 232 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self = (PhotoMetadataInternalPhotoPreview*) photo_preview_construct (object_type, _tmp0_, &_tmp5_, _tmp7_, _tmp9_, _tmp11_);
-#line 235 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp12_ = owner;
+ self = (PhotoMetadataInternalPhotoPreview*) photo_preview_construct (object_type, name, &_tmp0_, gexiv2_preview_properties_get_size (props), _tmp1_, _tmp2_);
#line 235 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp13_ = _media_metadata_ref0 (_tmp12_);
+ _tmp3_ = _media_metadata_ref0 (owner);
#line 235 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_media_metadata_unref0 (self->owner);
#line 235 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->owner = _tmp13_;
+ self->owner = _tmp3_;
#line 236 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- _tmp14_ = number;
-#line 236 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
- self->number = _tmp14_;
+ self->number = number;
#line 230 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return self;
-#line 9611 "PhotoMetadata.c"
+#line 9651 "PhotoMetadata.c"
}
-static PhotoMetadataInternalPhotoPreview* photo_metadata_internal_photo_preview_new (PhotoMetadata* owner, const gchar* name, guint number, GExiv2PreviewProperties* props) {
+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 9618 "PhotoMetadata.c"
+#line 9663 "PhotoMetadata.c"
}
-static GBytes* photo_metadata_internal_photo_preview_real_flatten (PhotoPreview* base, GError** error) {
+static GBytes*
+photo_metadata_internal_photo_preview_real_flatten (PhotoPreview* base,
+ GError** error)
+{
PhotoMetadataInternalPhotoPreview * self;
GBytes* result = NULL;
GExiv2PreviewProperties** props = NULL;
@@ -9668,7 +9716,7 @@ static GBytes* 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 9667 "PhotoMetadata.c"
+#line 9715 "PhotoMetadata.c"
GExiv2PreviewProperties** _tmp6_;
gint _tmp6__length1;
guint _tmp7_;
@@ -9680,11 +9728,11 @@ static GBytes* 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 9679 "PhotoMetadata.c"
+#line 9727 "PhotoMetadata.c"
} else {
#line 241 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_tmp4_ = FALSE;
-#line 9683 "PhotoMetadata.c"
+#line 9731 "PhotoMetadata.c"
}
#line 241 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
_vala_assert (_tmp4_, "props != null && props.length > number");
@@ -9716,26 +9764,32 @@ static GBytes* photo_metadata_internal_photo_preview_real_flatten (PhotoPreview*
result = _tmp18_;
#line 243 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
return result;
-#line 9715 "PhotoMetadata.c"
+#line 9763 "PhotoMetadata.c"
}
-static void photo_metadata_internal_photo_preview_class_init (PhotoMetadataInternalPhotoPreviewClass * klass) {
+static void
+photo_metadata_internal_photo_preview_class_init (PhotoMetadataInternalPhotoPreviewClass * klass)
+{
#line 226 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
photo_metadata_internal_photo_preview_parent_class = g_type_class_peek_parent (klass);
#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 = (GBytes* (*) (PhotoPreview *, GError**)) photo_metadata_internal_photo_preview_real_flatten;
-#line 9726 "PhotoMetadata.c"
+#line 9776 "PhotoMetadata.c"
}
-static void photo_metadata_internal_photo_preview_instance_init (PhotoMetadataInternalPhotoPreview * self) {
+static void
+photo_metadata_internal_photo_preview_instance_init (PhotoMetadataInternalPhotoPreview * self)
+{
}
-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);
@@ -9743,11 +9797,13 @@ 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 9742 "PhotoMetadata.c"
+#line 9796 "PhotoMetadata.c"
}
-static GType photo_metadata_internal_photo_preview_get_type (void) {
+static GType
+photo_metadata_internal_photo_preview_get_type (void)
+{
static volatile gsize photo_metadata_internal_photo_preview_type_id__volatile = 0;
if (g_once_init_enter (&photo_metadata_internal_photo_preview_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (PhotoMetadataInternalPhotoPreviewClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_metadata_internal_photo_preview_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoMetadataInternalPhotoPreview), 0, (GInstanceInitFunc) photo_metadata_internal_photo_preview_instance_init, NULL };
@@ -9759,7 +9815,9 @@ static GType photo_metadata_internal_photo_preview_get_type (void) {
}
-static void photo_metadata_class_init (PhotoMetadataClass * klass) {
+static void
+photo_metadata_class_init (PhotoMetadataClass * klass)
+{
gchar* _tmp0_;
gchar* _tmp1_;
gchar* _tmp2_;
@@ -10096,11 +10154,13 @@ static void photo_metadata_class_init (PhotoMetadataClass * klass) {
photo_metadata_RATING_TAGS = _tmp63_;
#line 1285 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
photo_metadata_RATING_TAGS_length1 = 5;
-#line 10095 "PhotoMetadata.c"
+#line 10153 "PhotoMetadata.c"
}
-static void photo_metadata_instance_init (PhotoMetadata * self) {
+static void
+photo_metadata_instance_init (PhotoMetadata * self)
+{
GExiv2Metadata* _tmp0_;
gchar* _tmp1_;
#line 211 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
@@ -10119,11 +10179,13 @@ static void photo_metadata_instance_init (PhotoMetadata * self) {
self->priv->metadata_hash = NULL;
#line 252 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
self->priv->thumbnail_md5 = NULL;
-#line 10118 "PhotoMetadata.c"
+#line 10178 "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);
@@ -10139,11 +10201,13 @@ static void photo_metadata_finalize (MediaMetadata * obj) {
_g_free0 (self->priv->thumbnail_md5);
#line 211 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala"
MEDIA_METADATA_CLASS (photo_metadata_parent_class)->finalize (obj);
-#line 10138 "PhotoMetadata.c"
+#line 10200 "PhotoMetadata.c"
}
-GType photo_metadata_get_type (void) {
+GType
+photo_metadata_get_type (void)
+{
static volatile gsize photo_metadata_type_id__volatile = 0;
if (g_once_init_enter (&photo_metadata_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (PhotoMetadataClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_metadata_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoMetadata), 0, (GInstanceInitFunc) photo_metadata_instance_init, NULL };
@@ -10155,7 +10219,11 @@ GType photo_metadata_get_type (void) {
}
-static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) {
+static void
+_vala_array_destroy (gpointer array,
+ gint array_length,
+ GDestroyNotify destroy_func)
+{
if ((array != NULL) && (destroy_func != NULL)) {
int i;
for (i = 0; i < array_length; i = i + 1) {
@@ -10167,13 +10235,19 @@ static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNoti
}
-static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) {
+static void
+_vala_array_free (gpointer array,
+ gint array_length,
+ GDestroyNotify destroy_func)
+{
_vala_array_destroy (array, array_length, destroy_func);
g_free (array);
}
-static gint _vala_array_length (gpointer array) {
+static gint
+_vala_array_length (gpointer array)
+{
int length;
length = 0;
if (array) {