summaryrefslogtreecommitdiff
path: root/src/core/DataCollection.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/DataCollection.c')
-rw-r--r--src/core/DataCollection.c3944
1 files changed, 3944 insertions, 0 deletions
diff --git a/src/core/DataCollection.c b/src/core/DataCollection.c
new file mode 100644
index 0000000..7040412
--- /dev/null
+++ b/src/core/DataCollection.c
@@ -0,0 +1,3944 @@
+/* DataCollection.c generated by valac 0.32.1, the Vala compiler
+ * generated from DataCollection.vala, do not modify */
+
+/* Copyright 2016 Software Freedom Conservancy Inc.
+ *
+ * This software is licensed under the GNU LGPL (version 2.1 or later).
+ * See the COPYING file in this distribution.
+ */
+
+#include <glib.h>
+#include <glib-object.h>
+#include <stdlib.h>
+#include <string.h>
+#include <gee.h>
+#include <gobject/gvaluecollector.h>
+
+
+#define TYPE_DATA_COLLECTION (data_collection_get_type ())
+#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
+#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
+#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
+#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
+#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
+
+typedef struct _DataCollection DataCollection;
+typedef struct _DataCollectionClass DataCollectionClass;
+typedef struct _DataCollectionPrivate DataCollectionPrivate;
+
+#define TYPE_DATA_OBJECT (data_object_get_type ())
+#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject))
+#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass))
+#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
+#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
+#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
+
+typedef struct _DataObject DataObject;
+typedef struct _DataObjectClass DataObjectClass;
+
+#define TYPE_ALTERATION (alteration_get_type ())
+#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration))
+#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass))
+#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION))
+#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION))
+#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass))
+
+typedef struct _Alteration Alteration;
+typedef struct _AlterationClass AlterationClass;
+
+#define TYPE_MARKER (marker_get_type ())
+#define MARKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MARKER, Marker))
+#define IS_MARKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MARKER))
+#define MARKER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MARKER, MarkerIface))
+
+typedef struct _Marker Marker;
+typedef struct _MarkerIface MarkerIface;
+
+#define TYPE_DATA_SET (data_set_get_type ())
+#define DATA_SET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SET, DataSet))
+#define DATA_SET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SET, DataSetClass))
+#define IS_DATA_SET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SET))
+#define IS_DATA_SET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SET))
+#define DATA_SET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SET, DataSetClass))
+
+typedef struct _DataSet DataSet;
+typedef struct _DataSetClass DataSetClass;
+#define _g_free0(var) (var = (g_free (var), NULL))
+#define _data_set_unref0(var) ((var == NULL) ? NULL : (var = (data_set_unref (var), NULL)))
+#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
+
+#define TYPE_SINGLETON_COLLECTION (singleton_collection_get_type ())
+#define SINGLETON_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SINGLETON_COLLECTION, SingletonCollection))
+#define SINGLETON_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SINGLETON_COLLECTION, SingletonCollectionClass))
+#define IS_SINGLETON_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SINGLETON_COLLECTION))
+#define IS_SINGLETON_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SINGLETON_COLLECTION))
+#define SINGLETON_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SINGLETON_COLLECTION, SingletonCollectionClass))
+
+typedef struct _SingletonCollection SingletonCollection;
+typedef struct _SingletonCollectionClass SingletonCollectionClass;
+#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL)))
+
+#define DATA_COLLECTION_TYPE_MARKER_IMPL (data_collection_marker_impl_get_type ())
+#define DATA_COLLECTION_MARKER_IMPL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_COLLECTION_TYPE_MARKER_IMPL, DataCollectionMarkerImpl))
+#define DATA_COLLECTION_MARKER_IMPL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_COLLECTION_TYPE_MARKER_IMPL, DataCollectionMarkerImplClass))
+#define DATA_COLLECTION_IS_MARKER_IMPL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_COLLECTION_TYPE_MARKER_IMPL))
+#define DATA_COLLECTION_IS_MARKER_IMPL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_COLLECTION_TYPE_MARKER_IMPL))
+#define DATA_COLLECTION_MARKER_IMPL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_COLLECTION_TYPE_MARKER_IMPL, DataCollectionMarkerImplClass))
+
+typedef struct _DataCollectionMarkerImpl DataCollectionMarkerImpl;
+typedef struct _DataCollectionMarkerImplClass DataCollectionMarkerImplClass;
+typedef struct _DataCollectionMarkerImplPrivate DataCollectionMarkerImplPrivate;
+#define _alteration_unref0(var) ((var == NULL) ? NULL : (var = (alteration_unref (var), NULL)))
+#define __vala_GValue_free0(var) ((var == NULL) ? NULL : (var = (_vala_GValue_free (var), NULL)))
+typedef struct _ParamSpecDataCollection ParamSpecDataCollection;
+#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
+#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
+#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
+#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
+
+typedef gint64 (*Comparator) (void* a, void* b, void* user_data);
+typedef gboolean (*ComparatorPredicate) (DataObject* object, Alteration* alteration, void* user_data);
+typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data);
+struct _MarkerIface {
+ GTypeInterface parent_iface;
+ void (*mark) (Marker* self, DataObject* object);
+ void (*unmark) (Marker* self, DataObject* object);
+ gboolean (*toggle) (Marker* self, DataObject* object);
+ void (*mark_many) (Marker* self, GeeCollection* list);
+ void (*unmark_many) (Marker* self, GeeCollection* list);
+ void (*mark_all) (Marker* self);
+ gint (*get_count) (Marker* self);
+ GeeCollection* (*get_all) (Marker* self);
+};
+
+struct _DataCollection {
+ GTypeInstance parent_instance;
+ volatile int ref_count;
+ DataCollectionPrivate * priv;
+};
+
+struct _DataCollectionClass {
+ GTypeClass parent_class;
+ void (*finalize) (DataCollection *self);
+ gchar* (*to_string) (DataCollection* self);
+ void (*notify_items_added) (DataCollection* self, GeeIterable* added);
+ void (*notify_items_removed) (DataCollection* self, GeeIterable* removed);
+ void (*notify_contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed);
+ void (*notify_items_altered) (DataCollection* self, GeeMap* items);
+ void (*notify_ordering_changed) (DataCollection* self);
+ void (*notify_property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val);
+ void (*notify_property_cleared) (DataCollection* self, const gchar* name);
+ gboolean (*valid_type) (DataCollection* self, DataObject* object);
+ void (*set_comparator) (DataCollection* self, Comparator comparator, void* comparator_target, ComparatorPredicate predicate, void* predicate_target);
+ void (*reset_comparator) (DataCollection* self);
+ GeeCollection* (*get_all) (DataCollection* self);
+ gint (*get_count) (DataCollection* self);
+ DataObject* (*get_at) (DataCollection* self, gint index);
+ gint (*index_of) (DataCollection* self, DataObject* object);
+ gboolean (*contains) (DataCollection* self, DataObject* object);
+ gboolean (*add) (DataCollection* self, DataObject* object);
+ GeeCollection* (*add_many) (DataCollection* self, GeeCollection* objects, ProgressMonitor monitor, void* monitor_target);
+ void (*remove_marked) (DataCollection* self, Marker* m);
+ void (*clear) (DataCollection* self);
+ void (*close) (DataCollection* self);
+ void (*notify_frozen) (DataCollection* self);
+ void (*notify_thawed) (DataCollection* self);
+ void (*items_added) (DataCollection* self, GeeIterable* added);
+ void (*items_removed) (DataCollection* self, GeeIterable* removed);
+ void (*contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed);
+ void (*items_altered) (DataCollection* self, GeeMap* items);
+ void (*ordering_changed) (DataCollection* self);
+ void (*property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val);
+ void (*property_cleared) (DataCollection* self, const gchar* name);
+ void (*frozen) (DataCollection* self);
+ void (*thawed) (DataCollection* self);
+};
+
+struct _DataCollectionPrivate {
+ gchar* name;
+ DataSet* dataset;
+ GeeHashMap* properties;
+ gint64 object_ordinal_generator;
+ gint notifies_frozen;
+ GeeHashMap* frozen_items_altered;
+ gboolean fire_ordering_changed;
+};
+
+typedef gboolean (*MarkedAction) (DataObject* object, GObject* user, void* user_data);
+struct _DataCollectionMarkerImpl {
+ GObject parent_instance;
+ DataCollectionMarkerImplPrivate * priv;
+ DataCollection* owner;
+ GeeHashSet* marked;
+ gint freeze_count;
+};
+
+struct _DataCollectionMarkerImplClass {
+ GObjectClass parent_class;
+};
+
+typedef gboolean (*ValueEqualFunc) (GValue* a, GValue* b, void* user_data);
+struct _ParamSpecDataCollection {
+ GParamSpec parent_instance;
+};
+
+
+static gpointer data_collection_parent_class = NULL;
+static gpointer data_collection_marker_impl_parent_class = NULL;
+static MarkerIface* data_collection_marker_impl_marker_parent_iface = NULL;
+
+gpointer data_collection_ref (gpointer instance);
+void data_collection_unref (gpointer instance);
+GParamSpec* param_spec_data_collection (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void value_set_data_collection (GValue* value, gpointer v_object);
+void value_take_data_collection (GValue* value, gpointer v_object);
+gpointer value_get_data_collection (const GValue* value);
+GType data_collection_get_type (void) G_GNUC_CONST;
+GType data_object_get_type (void) G_GNUC_CONST;
+gpointer alteration_ref (gpointer instance);
+void alteration_unref (gpointer instance);
+GParamSpec* param_spec_alteration (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void value_set_alteration (GValue* value, gpointer v_object);
+void value_take_alteration (GValue* value, gpointer v_object);
+gpointer value_get_alteration (const GValue* value);
+GType alteration_get_type (void) G_GNUC_CONST;
+GType marker_get_type (void) G_GNUC_CONST;
+gpointer data_set_ref (gpointer instance);
+void data_set_unref (gpointer instance);
+GParamSpec* param_spec_data_set (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void value_set_data_set (GValue* value, gpointer v_object);
+void value_take_data_set (GValue* value, gpointer v_object);
+gpointer value_get_data_set (const GValue* value);
+GType data_set_get_type (void) G_GNUC_CONST;
+#define DATA_COLLECTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_DATA_COLLECTION, DataCollectionPrivate))
+enum {
+ DATA_COLLECTION_DUMMY_PROPERTY
+};
+DataSet* data_set_new (void);
+DataSet* data_set_construct (GType object_type);
+static GValue* _g_value_dup (GValue* self);
+static void _vala_GValue_free (GValue* self);
+#define DATA_COLLECTION_INVALID_OBJECT_ORDINAL ((gint64) -1)
+DataCollection* data_collection_new (const gchar* name);
+DataCollection* data_collection_construct (GType object_type, const gchar* name);
+gchar* data_collection_to_string (DataCollection* self);
+static gchar* data_collection_real_to_string (DataCollection* self);
+gint data_collection_get_count (DataCollection* self);
+void data_collection_notify_items_added (DataCollection* self, GeeIterable* added);
+static void data_collection_real_notify_items_added (DataCollection* self, GeeIterable* added);
+void data_collection_notify_items_removed (DataCollection* self, GeeIterable* removed);
+static void data_collection_real_notify_items_removed (DataCollection* self, GeeIterable* removed);
+void data_collection_notify_contents_altered (DataCollection* self, GeeIterable* added, GeeIterable* removed);
+static void data_collection_real_notify_contents_altered (DataCollection* self, GeeIterable* added, GeeIterable* removed);
+void data_collection_notify_items_altered (DataCollection* self, GeeMap* items);
+static void data_collection_real_notify_items_altered (DataCollection* self, GeeMap* items);
+void data_collection_notify_ordering_changed (DataCollection* self);
+static void data_collection_real_notify_ordering_changed (DataCollection* self);
+void data_collection_notify_property_set (DataCollection* self, const gchar* name, GValue* old, GValue* val);
+static void data_collection_real_notify_property_set (DataCollection* self, const gchar* name, GValue* old, GValue* val);
+void data_collection_notify_property_cleared (DataCollection* self, const gchar* name);
+static void data_collection_real_notify_property_cleared (DataCollection* self, const gchar* name);
+GeeCollection* data_collection_get_singleton (DataObject* object);
+SingletonCollection* singleton_collection_new (GType g_type, GBoxedCopyFunc g_dup_func, GDestroyNotify g_destroy_func, gconstpointer object);
+SingletonCollection* singleton_collection_construct (GType object_type, GType g_type, GBoxedCopyFunc g_dup_func, GDestroyNotify g_destroy_func, gconstpointer object);
+GType singleton_collection_get_type (void) G_GNUC_CONST;
+GeeMap* data_collection_get_alteration_singleton (DataObject* object, Alteration* alteration);
+gboolean data_collection_valid_type (DataCollection* self, DataObject* object);
+static gboolean data_collection_real_valid_type (DataCollection* self, DataObject* object);
+Comparator data_collection_get_comparator (DataCollection* self, void** result_target);
+Comparator data_set_get_comparator (DataSet* self, void** result_target);
+ComparatorPredicate data_collection_get_comparator_predicate (DataCollection* self, void** result_target);
+ComparatorPredicate data_set_get_comparator_predicate (DataSet* self, void** result_target);
+void data_collection_set_comparator (DataCollection* self, Comparator comparator, void* comparator_target, ComparatorPredicate predicate, void* predicate_target);
+static void data_collection_real_set_comparator (DataCollection* self, Comparator comparator, void* comparator_target, ComparatorPredicate predicate, void* predicate_target);
+void data_set_set_comparator (DataSet* self, Comparator user_comparator, void* user_comparator_target, ComparatorPredicate comparator_predicate, void* comparator_predicate_target);
+void data_collection_reset_comparator (DataCollection* self);
+static void data_collection_real_reset_comparator (DataCollection* self);
+void data_set_reset_comparator (DataSet* self);
+GeeCollection* data_collection_get_all (DataCollection* self);
+static GeeCollection* data_collection_real_get_all (DataCollection* self);
+GeeList* data_set_get_all (DataSet* self);
+DataSet* data_collection_get_dataset_copy (DataCollection* self);
+DataSet* data_set_copy (DataSet* self);
+static gint data_collection_real_get_count (DataCollection* self);
+gint data_set_get_count (DataSet* self);
+DataObject* data_collection_get_at (DataCollection* self, gint index);
+static DataObject* data_collection_real_get_at (DataCollection* self, gint index);
+DataObject* data_set_get_at (DataSet* self, gint index);
+gint data_collection_index_of (DataCollection* self, DataObject* object);
+static gint data_collection_real_index_of (DataCollection* self, DataObject* object);
+gint data_set_index_of (DataSet* self, DataObject* object);
+gboolean data_collection_contains (DataCollection* self, DataObject* object);
+static gboolean data_collection_real_contains (DataCollection* self, DataObject* object);
+static gboolean data_collection_internal_contains (DataCollection* self, DataObject* object);
+gboolean data_set_contains (DataSet* self, DataObject* object);
+DataCollection* data_object_get_membership (DataObject* self);
+static void data_collection_internal_add (DataCollection* self, DataObject* object);
+void data_object_internal_set_membership (DataObject* self, DataCollection* collection, gint64 ordinal);
+gboolean data_set_add (DataSet* self, DataObject* object);
+static void data_collection_internal_add_many (DataCollection* self, GeeList* objects, ProgressMonitor monitor, void* monitor_target);
+gboolean data_set_add_many (DataSet* self, GeeCollection* objects);
+static void data_collection_internal_remove (DataCollection* self, DataObject* object);
+gboolean data_set_remove (DataSet* self, DataObject* object);
+void data_object_internal_clear_membership (DataObject* self);
+gboolean data_collection_add (DataCollection* self, DataObject* object);
+static gboolean data_collection_real_add (DataCollection* self, DataObject* object);
+gchar* data_object_to_string (DataObject* self);
+void data_object_notify_membership_changed (DataObject* self, DataCollection* collection);
+GeeCollection* data_collection_add_many (DataCollection* self, GeeCollection* objects, ProgressMonitor monitor, void* monitor_target);
+static GeeCollection* data_collection_real_add_many (DataCollection* self, GeeCollection* objects, ProgressMonitor monitor, void* monitor_target);
+Marker* data_collection_start_marking (DataCollection* self);
+static DataCollectionMarkerImpl* data_collection_marker_impl_new (DataCollection* owner);
+static DataCollectionMarkerImpl* data_collection_marker_impl_construct (GType object_type, DataCollection* owner);
+static GType data_collection_marker_impl_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
+Marker* data_collection_mark (DataCollection* self, DataObject* object);
+void marker_mark (Marker* self, DataObject* object);
+Marker* data_collection_mark_many (DataCollection* self, GeeCollection* objects);
+void marker_mark_many (Marker* self, GeeCollection* list);
+void data_collection_act_on_marked (DataCollection* self, Marker* m, MarkedAction action, void* action_target, ProgressMonitor monitor, void* monitor_target, GObject* user);
+static gboolean data_collection_marker_impl_is_valid (DataCollectionMarkerImpl* self, DataCollection* collection);
+static void data_collection_marker_impl_freeze (DataCollectionMarkerImpl* self);
+static void data_collection_marker_impl_finished (DataCollectionMarkerImpl* self);
+void data_collection_remove_marked (DataCollection* self, Marker* m);
+static void data_collection_real_remove_marked (DataCollection* self, Marker* m);
+void data_collection_clear (DataCollection* self);
+static void data_collection_real_clear (DataCollection* self);
+void data_collection_close (DataCollection* self);
+static void data_collection_real_close (DataCollection* self);
+void data_collection_internal_notify_altered (DataCollection* self, DataObject* object, Alteration* alteration);
+gboolean data_set_resort_object (DataSet* self, DataObject* object, Alteration* alteration);
+gboolean data_collection_are_notifications_frozen (DataCollection* self);
+Alteration* alteration_compress (Alteration* self, Alteration* other);
+GValue* data_collection_get_property (DataCollection* self, const gchar* name);
+void data_collection_set_property (DataCollection* self, const gchar* name, GValue* val, ValueEqualFunc value_equals, void* value_equals_target);
+gboolean bool_value_equals (GValue* a, GValue* b);
+static gboolean _bool_value_equals_value_equal_func (GValue* a, GValue* b, gpointer self);
+gboolean int_value_equals (GValue* a, GValue* b);
+static gboolean _int_value_equals_value_equal_func (GValue* a, GValue* b, gpointer self);
+void data_object_notify_collection_property_set (DataObject* self, const gchar* name, GValue* old, GValue* val);
+void data_collection_clear_property (DataCollection* self, const gchar* name);
+void data_object_notify_collection_property_cleared (DataObject* self, const gchar* name);
+void data_collection_freeze_notifications (DataCollection* self);
+void data_collection_notify_frozen (DataCollection* self);
+void data_collection_thaw_notifications (DataCollection* self);
+void data_collection_notify_thawed (DataCollection* self);
+static void data_collection_real_notify_frozen (DataCollection* self);
+static void data_collection_real_notify_thawed (DataCollection* self);
+static void data_collection_real_items_added (DataCollection* self, GeeIterable* added);
+static void data_collection_real_items_removed (DataCollection* self, GeeIterable* removed);
+static void data_collection_real_contents_altered (DataCollection* self, GeeIterable* added, GeeIterable* removed);
+static void g_cclosure_user_marshal_VOID__OBJECT_OBJECT (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data);
+static void data_collection_real_items_altered (DataCollection* self, GeeMap* items);
+static void data_collection_real_ordering_changed (DataCollection* self);
+static void data_collection_real_property_set (DataCollection* self, const gchar* name, GValue* old, GValue* val);
+static void g_cclosure_user_marshal_VOID__STRING_BOXED_BOXED (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data);
+static void data_collection_real_property_cleared (DataCollection* self, const gchar* name);
+static void data_collection_real_frozen (DataCollection* self);
+static void data_collection_real_thawed (DataCollection* self);
+enum {
+ DATA_COLLECTION_MARKER_IMPL_DUMMY_PROPERTY
+};
+static void data_collection_marker_impl_on_items_removed (DataCollectionMarkerImpl* self, GeeIterable* removed);
+static void _data_collection_marker_impl_on_items_removed_data_collection_items_removed (DataCollection* _sender, GeeIterable* removed, gpointer self);
+static void data_collection_marker_impl_real_mark (Marker* base, DataObject* object);
+static void data_collection_marker_impl_real_unmark (Marker* base, DataObject* object);
+static gboolean data_collection_marker_impl_real_toggle (Marker* base, DataObject* object);
+static void data_collection_marker_impl_real_mark_many (Marker* base, GeeCollection* list);
+static void data_collection_marker_impl_real_unmark_many (Marker* base, GeeCollection* list);
+static void data_collection_marker_impl_real_mark_all (Marker* base);
+static gint data_collection_marker_impl_real_get_count (Marker* base);
+static GeeCollection* data_collection_marker_impl_real_get_all (Marker* base);
+static void data_collection_marker_impl_finalize (GObject* obj);
+static void data_collection_finalize (DataCollection* obj);
+
+
+static GValue* _g_value_dup (GValue* self) {
+#line 109 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ return g_boxed_copy (G_TYPE_VALUE, self);
+#line 359 "DataCollection.c"
+}
+
+
+static void _vala_GValue_free (GValue* self) {
+#line 109 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_value_unset (self);
+#line 109 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_free (self);
+#line 368 "DataCollection.c"
+}
+
+
+DataCollection* data_collection_construct (GType object_type, const gchar* name) {
+ DataCollection* self = NULL;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 157 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_val_if_fail (name != NULL, NULL);
+#line 157 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ self = (DataCollection*) g_type_create_instance (object_type);
+#line 158 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp0_ = name;
+#line 158 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 158 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _g_free0 (self->priv->name);
+#line 158 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ self->priv->name = _tmp1_;
+#line 157 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ return self;
+#line 390 "DataCollection.c"
+}
+
+
+DataCollection* data_collection_new (const gchar* name) {
+#line 157 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ return data_collection_construct (TYPE_DATA_COLLECTION, name);
+#line 397 "DataCollection.c"
+}
+
+
+static gchar* data_collection_real_to_string (DataCollection* self) {
+ gchar* result = NULL;
+ const gchar* _tmp0_ = NULL;
+ gint _tmp1_ = 0;
+ gchar* _tmp2_ = NULL;
+#line 168 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp0_ = self->priv->name;
+#line 168 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp1_ = data_collection_get_count (self);
+#line 168 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp2_ = g_strdup_printf ("%s (%d)", _tmp0_, _tmp1_);
+#line 168 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ result = _tmp2_;
+#line 168 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ return result;
+#line 416 "DataCollection.c"
+}
+
+
+gchar* data_collection_to_string (DataCollection* self) {
+#line 167 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_val_if_fail (IS_DATA_COLLECTION (self), NULL);
+#line 167 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ return DATA_COLLECTION_GET_CLASS (self)->to_string (self);
+#line 425 "DataCollection.c"
+}
+
+
+static void data_collection_real_notify_items_added (DataCollection* self, GeeIterable* added) {
+ GeeIterable* _tmp0_ = NULL;
+#line 172 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (GEE_IS_ITERABLE (added));
+#line 173 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp0_ = added;
+#line 173 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_signal_emit_by_name (self, "items-added", _tmp0_);
+#line 437 "DataCollection.c"
+}
+
+
+void data_collection_notify_items_added (DataCollection* self, GeeIterable* added) {
+#line 172 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (IS_DATA_COLLECTION (self));
+#line 172 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ DATA_COLLECTION_GET_CLASS (self)->notify_items_added (self, added);
+#line 446 "DataCollection.c"
+}
+
+
+static void data_collection_real_notify_items_removed (DataCollection* self, GeeIterable* removed) {
+ GeeIterable* _tmp0_ = NULL;
+#line 176 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (GEE_IS_ITERABLE (removed));
+#line 177 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp0_ = removed;
+#line 177 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_signal_emit_by_name (self, "items-removed", _tmp0_);
+#line 458 "DataCollection.c"
+}
+
+
+void data_collection_notify_items_removed (DataCollection* self, GeeIterable* removed) {
+#line 176 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (IS_DATA_COLLECTION (self));
+#line 176 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ DATA_COLLECTION_GET_CLASS (self)->notify_items_removed (self, removed);
+#line 467 "DataCollection.c"
+}
+
+
+static void data_collection_real_notify_contents_altered (DataCollection* self, GeeIterable* added, GeeIterable* removed) {
+ GeeIterable* _tmp0_ = NULL;
+ GeeIterable* _tmp1_ = NULL;
+#line 180 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail ((added == NULL) || GEE_IS_ITERABLE (added));
+#line 180 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail ((removed == NULL) || GEE_IS_ITERABLE (removed));
+#line 182 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp0_ = added;
+#line 182 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp1_ = removed;
+#line 182 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_signal_emit_by_name (self, "contents-altered", _tmp0_, _tmp1_);
+#line 484 "DataCollection.c"
+}
+
+
+void data_collection_notify_contents_altered (DataCollection* self, GeeIterable* added, GeeIterable* removed) {
+#line 180 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (IS_DATA_COLLECTION (self));
+#line 180 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ DATA_COLLECTION_GET_CLASS (self)->notify_contents_altered (self, added, removed);
+#line 493 "DataCollection.c"
+}
+
+
+static void data_collection_real_notify_items_altered (DataCollection* self, GeeMap* items) {
+ GeeMap* _tmp0_ = NULL;
+#line 185 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (GEE_IS_MAP (items));
+#line 186 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp0_ = items;
+#line 186 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_signal_emit_by_name (self, "items-altered", _tmp0_);
+#line 505 "DataCollection.c"
+}
+
+
+void data_collection_notify_items_altered (DataCollection* self, GeeMap* items) {
+#line 185 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (IS_DATA_COLLECTION (self));
+#line 185 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ DATA_COLLECTION_GET_CLASS (self)->notify_items_altered (self, items);
+#line 514 "DataCollection.c"
+}
+
+
+static void data_collection_real_notify_ordering_changed (DataCollection* self) {
+#line 190 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_signal_emit_by_name (self, "ordering-changed");
+#line 521 "DataCollection.c"
+}
+
+
+void data_collection_notify_ordering_changed (DataCollection* self) {
+#line 189 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (IS_DATA_COLLECTION (self));
+#line 189 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ DATA_COLLECTION_GET_CLASS (self)->notify_ordering_changed (self);
+#line 530 "DataCollection.c"
+}
+
+
+static void data_collection_real_notify_property_set (DataCollection* self, const gchar* name, GValue* old, GValue* val) {
+ const gchar* _tmp0_ = NULL;
+ GValue* _tmp1_ = NULL;
+ GValue _tmp2_ = {0};
+#line 193 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (name != NULL);
+#line 193 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (val != NULL);
+#line 194 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp0_ = name;
+#line 194 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp1_ = old;
+#line 194 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp2_ = *val;
+#line 194 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_signal_emit_by_name (self, "property-set", _tmp0_, _tmp1_, &_tmp2_);
+#line 550 "DataCollection.c"
+}
+
+
+void data_collection_notify_property_set (DataCollection* self, const gchar* name, GValue* old, GValue* val) {
+#line 193 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (IS_DATA_COLLECTION (self));
+#line 193 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ DATA_COLLECTION_GET_CLASS (self)->notify_property_set (self, name, old, val);
+#line 559 "DataCollection.c"
+}
+
+
+static void data_collection_real_notify_property_cleared (DataCollection* self, const gchar* name) {
+ const gchar* _tmp0_ = NULL;
+#line 197 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (name != NULL);
+#line 198 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp0_ = name;
+#line 198 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_signal_emit_by_name (self, "property-cleared", _tmp0_);
+#line 571 "DataCollection.c"
+}
+
+
+void data_collection_notify_property_cleared (DataCollection* self, const gchar* name) {
+#line 197 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (IS_DATA_COLLECTION (self));
+#line 197 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ DATA_COLLECTION_GET_CLASS (self)->notify_property_cleared (self, name);
+#line 580 "DataCollection.c"
+}
+
+
+GeeCollection* data_collection_get_singleton (DataObject* object) {
+ GeeCollection* result = NULL;
+ DataObject* _tmp0_ = NULL;
+ SingletonCollection* _tmp1_ = NULL;
+#line 206 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_val_if_fail (IS_DATA_OBJECT (object), NULL);
+#line 207 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp0_ = object;
+#line 207 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp1_ = singleton_collection_new (TYPE_DATA_OBJECT, (GBoxedCopyFunc) g_object_ref, g_object_unref, _tmp0_);
+#line 207 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection);
+#line 207 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ return result;
+#line 598 "DataCollection.c"
+}
+
+
+GeeMap* data_collection_get_alteration_singleton (DataObject* object, Alteration* alteration) {
+ GeeMap* result = NULL;
+ GeeMap* map = NULL;
+ GeeHashMap* _tmp0_ = NULL;
+ DataObject* _tmp1_ = NULL;
+ Alteration* _tmp2_ = NULL;
+#line 210 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_val_if_fail (IS_DATA_OBJECT (object), NULL);
+#line 210 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_val_if_fail (IS_ALTERATION (alteration), NULL);
+#line 212 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp0_ = gee_hash_map_new (TYPE_DATA_OBJECT, (GBoxedCopyFunc) g_object_ref, g_object_unref, TYPE_ALTERATION, (GBoxedCopyFunc) alteration_ref, alteration_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
+#line 212 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ map = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_MAP, GeeMap);
+#line 213 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp1_ = object;
+#line 213 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp2_ = alteration;
+#line 213 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ gee_map_set (map, _tmp1_, _tmp2_);
+#line 215 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ result = map;
+#line 215 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ return result;
+#line 626 "DataCollection.c"
+}
+
+
+static gboolean data_collection_real_valid_type (DataCollection* self, DataObject* object) {
+ gboolean result = FALSE;
+#line 218 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE);
+#line 219 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ result = TRUE;
+#line 219 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ return result;
+#line 638 "DataCollection.c"
+}
+
+
+gboolean data_collection_valid_type (DataCollection* self, DataObject* object) {
+#line 218 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_val_if_fail (IS_DATA_COLLECTION (self), FALSE);
+#line 218 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ return DATA_COLLECTION_GET_CLASS (self)->valid_type (self, object);
+#line 647 "DataCollection.c"
+}
+
+
+Comparator data_collection_get_comparator (DataCollection* self, void** result_target) {
+ Comparator result = NULL;
+ DataSet* _tmp0_ = NULL;
+ void* _tmp1_ = NULL;
+ Comparator _tmp2_ = NULL;
+ Comparator _tmp3_ = NULL;
+ void* _tmp3__target = NULL;
+#line 222 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_val_if_fail (IS_DATA_COLLECTION (self), NULL);
+#line 223 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp0_ = self->priv->dataset;
+#line 223 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp2_ = data_set_get_comparator (_tmp0_, &_tmp1_);
+#line 223 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp3_ = _tmp2_;
+#line 223 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp3__target = _tmp1_;
+#line 223 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ *result_target = _tmp3__target;
+#line 223 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ result = _tmp3_;
+#line 223 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ return result;
+#line 674 "DataCollection.c"
+}
+
+
+ComparatorPredicate data_collection_get_comparator_predicate (DataCollection* self, void** result_target) {
+ ComparatorPredicate result = NULL;
+ DataSet* _tmp0_ = NULL;
+ void* _tmp1_ = NULL;
+ ComparatorPredicate _tmp2_ = NULL;
+ ComparatorPredicate _tmp3_ = NULL;
+ void* _tmp3__target = NULL;
+#line 226 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_val_if_fail (IS_DATA_COLLECTION (self), NULL);
+#line 227 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp0_ = self->priv->dataset;
+#line 227 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp2_ = data_set_get_comparator_predicate (_tmp0_, &_tmp1_);
+#line 227 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp3_ = _tmp2_;
+#line 227 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp3__target = _tmp1_;
+#line 227 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ *result_target = _tmp3__target;
+#line 227 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ result = _tmp3_;
+#line 227 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ return result;
+#line 701 "DataCollection.c"
+}
+
+
+static void data_collection_real_set_comparator (DataCollection* self, Comparator comparator, void* comparator_target, ComparatorPredicate predicate, void* predicate_target) {
+ DataSet* _tmp0_ = NULL;
+ Comparator _tmp1_ = NULL;
+ void* _tmp1__target = NULL;
+ ComparatorPredicate _tmp2_ = NULL;
+ void* _tmp2__target = NULL;
+#line 231 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp0_ = self->priv->dataset;
+#line 231 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp1_ = comparator;
+#line 231 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp1__target = comparator_target;
+#line 231 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp2_ = predicate;
+#line 231 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp2__target = predicate_target;
+#line 231 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ data_set_set_comparator (_tmp0_, _tmp1_, _tmp1__target, _tmp2_, _tmp2__target);
+#line 232 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ data_collection_notify_ordering_changed (self);
+#line 725 "DataCollection.c"
+}
+
+
+void data_collection_set_comparator (DataCollection* self, Comparator comparator, void* comparator_target, ComparatorPredicate predicate, void* predicate_target) {
+#line 230 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (IS_DATA_COLLECTION (self));
+#line 230 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ DATA_COLLECTION_GET_CLASS (self)->set_comparator (self, comparator, comparator_target, predicate, predicate_target);
+#line 734 "DataCollection.c"
+}
+
+
+static void data_collection_real_reset_comparator (DataCollection* self) {
+ DataSet* _tmp0_ = NULL;
+#line 237 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp0_ = self->priv->dataset;
+#line 237 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ data_set_reset_comparator (_tmp0_);
+#line 238 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ data_collection_notify_ordering_changed (self);
+#line 746 "DataCollection.c"
+}
+
+
+void data_collection_reset_comparator (DataCollection* self) {
+#line 236 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (IS_DATA_COLLECTION (self));
+#line 236 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ DATA_COLLECTION_GET_CLASS (self)->reset_comparator (self);
+#line 755 "DataCollection.c"
+}
+
+
+static GeeCollection* data_collection_real_get_all (DataCollection* self) {
+ GeeCollection* result = NULL;
+ DataSet* _tmp0_ = NULL;
+ GeeList* _tmp1_ = NULL;
+#line 242 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp0_ = self->priv->dataset;
+#line 242 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp1_ = data_set_get_all (_tmp0_);
+#line 242 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection);
+#line 242 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ return result;
+#line 771 "DataCollection.c"
+}
+
+
+GeeCollection* data_collection_get_all (DataCollection* self) {
+#line 241 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_val_if_fail (IS_DATA_COLLECTION (self), NULL);
+#line 241 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ return DATA_COLLECTION_GET_CLASS (self)->get_all (self);
+#line 780 "DataCollection.c"
+}
+
+
+DataSet* data_collection_get_dataset_copy (DataCollection* self) {
+ DataSet* result = NULL;
+ DataSet* _tmp0_ = NULL;
+ DataSet* _tmp1_ = NULL;
+#line 245 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_val_if_fail (IS_DATA_COLLECTION (self), NULL);
+#line 246 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp0_ = self->priv->dataset;
+#line 246 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp1_ = data_set_copy (_tmp0_);
+#line 246 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ result = _tmp1_;
+#line 246 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ return result;
+#line 798 "DataCollection.c"
+}
+
+
+static gint data_collection_real_get_count (DataCollection* self) {
+ gint result = 0;
+ DataSet* _tmp0_ = NULL;
+ gint _tmp1_ = 0;
+#line 250 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp0_ = self->priv->dataset;
+#line 250 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp1_ = data_set_get_count (_tmp0_);
+#line 250 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ result = _tmp1_;
+#line 250 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ return result;
+#line 814 "DataCollection.c"
+}
+
+
+gint data_collection_get_count (DataCollection* self) {
+#line 249 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_val_if_fail (IS_DATA_COLLECTION (self), 0);
+#line 249 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ return DATA_COLLECTION_GET_CLASS (self)->get_count (self);
+#line 823 "DataCollection.c"
+}
+
+
+static DataObject* data_collection_real_get_at (DataCollection* self, gint index) {
+ DataObject* result = NULL;
+ DataSet* _tmp0_ = NULL;
+ gint _tmp1_ = 0;
+ DataObject* _tmp2_ = NULL;
+#line 254 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp0_ = self->priv->dataset;
+#line 254 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp1_ = index;
+#line 254 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp2_ = data_set_get_at (_tmp0_, _tmp1_);
+#line 254 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ result = _tmp2_;
+#line 254 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ return result;
+#line 842 "DataCollection.c"
+}
+
+
+DataObject* data_collection_get_at (DataCollection* self, gint index) {
+#line 253 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_val_if_fail (IS_DATA_COLLECTION (self), NULL);
+#line 253 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ return DATA_COLLECTION_GET_CLASS (self)->get_at (self, index);
+#line 851 "DataCollection.c"
+}
+
+
+static gint data_collection_real_index_of (DataCollection* self, DataObject* object) {
+ gint result = 0;
+ DataSet* _tmp0_ = NULL;
+ DataObject* _tmp1_ = NULL;
+ gint _tmp2_ = 0;
+#line 257 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_val_if_fail (IS_DATA_OBJECT (object), 0);
+#line 258 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp0_ = self->priv->dataset;
+#line 258 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp1_ = object;
+#line 258 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp2_ = data_set_index_of (_tmp0_, _tmp1_);
+#line 258 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ result = _tmp2_;
+#line 258 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ return result;
+#line 872 "DataCollection.c"
+}
+
+
+gint data_collection_index_of (DataCollection* self, DataObject* object) {
+#line 257 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_val_if_fail (IS_DATA_COLLECTION (self), 0);
+#line 257 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ return DATA_COLLECTION_GET_CLASS (self)->index_of (self, object);
+#line 881 "DataCollection.c"
+}
+
+
+static gboolean data_collection_real_contains (DataCollection* self, DataObject* object) {
+ gboolean result = FALSE;
+ DataObject* _tmp0_ = NULL;
+ gboolean _tmp1_ = FALSE;
+#line 261 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE);
+#line 262 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp0_ = object;
+#line 262 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp1_ = data_collection_internal_contains (self, _tmp0_);
+#line 262 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ result = _tmp1_;
+#line 262 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ return result;
+#line 899 "DataCollection.c"
+}
+
+
+gboolean data_collection_contains (DataCollection* self, DataObject* object) {
+#line 261 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_val_if_fail (IS_DATA_COLLECTION (self), FALSE);
+#line 261 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ return DATA_COLLECTION_GET_CLASS (self)->contains (self, object);
+#line 908 "DataCollection.c"
+}
+
+
+static gboolean data_collection_internal_contains (DataCollection* self, DataObject* object) {
+ gboolean result = FALSE;
+ DataSet* _tmp0_ = NULL;
+ DataObject* _tmp1_ = NULL;
+ gboolean _tmp2_ = FALSE;
+ DataObject* _tmp3_ = NULL;
+ DataCollection* _tmp4_ = NULL;
+ DataCollection* _tmp5_ = NULL;
+#line 267 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_val_if_fail (IS_DATA_COLLECTION (self), FALSE);
+#line 267 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE);
+#line 268 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp0_ = self->priv->dataset;
+#line 268 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp1_ = object;
+#line 268 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp2_ = data_set_contains (_tmp0_, _tmp1_);
+#line 268 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (!_tmp2_) {
+#line 269 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ result = FALSE;
+#line 269 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ return result;
+#line 936 "DataCollection.c"
+ }
+#line 271 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp3_ = object;
+#line 271 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp4_ = data_object_get_membership (_tmp3_);
+#line 271 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp5_ = _tmp4_;
+#line 271 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _vala_assert (_tmp5_ == self, "object.get_membership() == this");
+#line 271 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _data_collection_unref0 (_tmp5_);
+#line 273 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ result = TRUE;
+#line 273 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ return result;
+#line 952 "DataCollection.c"
+}
+
+
+static void data_collection_internal_add (DataCollection* self, DataObject* object) {
+ DataObject* _tmp0_ = NULL;
+ gboolean _tmp1_ = FALSE;
+ DataObject* _tmp2_ = NULL;
+ gint64 _tmp3_ = 0LL;
+ gboolean added = FALSE;
+ DataSet* _tmp4_ = NULL;
+ DataObject* _tmp5_ = NULL;
+ gboolean _tmp6_ = FALSE;
+#line 276 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (IS_DATA_COLLECTION (self));
+#line 276 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (IS_DATA_OBJECT (object));
+#line 277 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp0_ = object;
+#line 277 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp1_ = data_collection_valid_type (self, _tmp0_);
+#line 277 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _vala_assert (_tmp1_, "valid_type(object)");
+#line 279 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp2_ = object;
+#line 279 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp3_ = self->priv->object_ordinal_generator;
+#line 279 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ self->priv->object_ordinal_generator = _tmp3_ + 1;
+#line 279 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ data_object_internal_set_membership (_tmp2_, self, _tmp3_);
+#line 281 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp4_ = self->priv->dataset;
+#line 281 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp5_ = object;
+#line 281 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp6_ = data_set_add (_tmp4_, _tmp5_);
+#line 281 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ added = _tmp6_;
+#line 282 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _vala_assert (added, "added");
+#line 993 "DataCollection.c"
+}
+
+
+static void data_collection_internal_add_many (DataCollection* self, GeeList* objects, ProgressMonitor monitor, void* monitor_target) {
+ gint count = 0;
+ GeeList* _tmp0_ = NULL;
+ gint _tmp1_ = 0;
+ gint _tmp2_ = 0;
+ gboolean added = FALSE;
+ DataSet* _tmp18_ = NULL;
+ GeeList* _tmp19_ = NULL;
+ gboolean _tmp20_ = FALSE;
+#line 285 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (IS_DATA_COLLECTION (self));
+#line 285 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (GEE_IS_LIST (objects));
+#line 286 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp0_ = objects;
+#line 286 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp1_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection));
+#line 286 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp2_ = _tmp1_;
+#line 286 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ count = _tmp2_;
+#line 1018 "DataCollection.c"
+ {
+ gint ctr = 0;
+#line 287 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ ctr = 0;
+#line 1023 "DataCollection.c"
+ {
+ gboolean _tmp3_ = FALSE;
+#line 287 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp3_ = TRUE;
+#line 287 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ while (TRUE) {
+#line 1030 "DataCollection.c"
+ gint _tmp5_ = 0;
+ gint _tmp6_ = 0;
+ DataObject* object = NULL;
+ GeeList* _tmp7_ = NULL;
+ gint _tmp8_ = 0;
+ gpointer _tmp9_ = NULL;
+ DataObject* _tmp10_ = NULL;
+ gboolean _tmp11_ = FALSE;
+ DataObject* _tmp12_ = NULL;
+ gint64 _tmp13_ = 0LL;
+ ProgressMonitor _tmp14_ = NULL;
+ void* _tmp14__target = NULL;
+#line 287 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (!_tmp3_) {
+#line 1045 "DataCollection.c"
+ gint _tmp4_ = 0;
+#line 287 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp4_ = ctr;
+#line 287 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ ctr = _tmp4_ + 1;
+#line 1051 "DataCollection.c"
+ }
+#line 287 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp3_ = FALSE;
+#line 287 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp5_ = ctr;
+#line 287 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp6_ = count;
+#line 287 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (!(_tmp5_ < _tmp6_)) {
+#line 287 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ break;
+#line 1063 "DataCollection.c"
+ }
+#line 288 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp7_ = objects;
+#line 288 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp8_ = ctr;
+#line 288 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp9_ = gee_list_get (_tmp7_, _tmp8_);
+#line 288 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ object = (DataObject*) _tmp9_;
+#line 289 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp10_ = object;
+#line 289 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp11_ = data_collection_valid_type (self, _tmp10_);
+#line 289 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _vala_assert (_tmp11_, "valid_type(object)");
+#line 291 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp12_ = object;
+#line 291 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp13_ = self->priv->object_ordinal_generator;
+#line 291 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ self->priv->object_ordinal_generator = _tmp13_ + 1;
+#line 291 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ data_object_internal_set_membership (_tmp12_, self, _tmp13_);
+#line 293 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp14_ = monitor;
+#line 293 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp14__target = monitor_target;
+#line 293 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (_tmp14_ != NULL) {
+#line 1093 "DataCollection.c"
+ ProgressMonitor _tmp15_ = NULL;
+ void* _tmp15__target = NULL;
+ gint _tmp16_ = 0;
+ gint _tmp17_ = 0;
+#line 294 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp15_ = monitor;
+#line 294 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp15__target = monitor_target;
+#line 294 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp16_ = ctr;
+#line 294 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp17_ = count;
+#line 294 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp15_ ((guint64) _tmp16_, (guint64) _tmp17_, TRUE, _tmp15__target);
+#line 1108 "DataCollection.c"
+ }
+#line 287 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _g_object_unref0 (object);
+#line 1112 "DataCollection.c"
+ }
+ }
+ }
+#line 297 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp18_ = self->priv->dataset;
+#line 297 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp19_ = objects;
+#line 297 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp20_ = data_set_add_many (_tmp18_, G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GEE_TYPE_COLLECTION, GeeCollection));
+#line 297 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ added = _tmp20_;
+#line 298 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _vala_assert (added, "added");
+#line 1126 "DataCollection.c"
+}
+
+
+static void data_collection_internal_remove (DataCollection* self, DataObject* object) {
+ gboolean removed = FALSE;
+ DataSet* _tmp0_ = NULL;
+ DataObject* _tmp1_ = NULL;
+ gboolean _tmp2_ = FALSE;
+ DataObject* _tmp3_ = NULL;
+#line 301 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (IS_DATA_COLLECTION (self));
+#line 301 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (IS_DATA_OBJECT (object));
+#line 302 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp0_ = self->priv->dataset;
+#line 302 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp1_ = object;
+#line 302 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp2_ = data_set_remove (_tmp0_, _tmp1_);
+#line 302 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ removed = _tmp2_;
+#line 303 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _vala_assert (removed, "removed");
+#line 305 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp3_ = object;
+#line 305 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ data_object_internal_clear_membership (_tmp3_);
+#line 1154 "DataCollection.c"
+}
+
+
+static gboolean data_collection_real_add (DataCollection* self, DataObject* object) {
+ gboolean result = FALSE;
+ DataObject* _tmp0_ = NULL;
+ gboolean _tmp1_ = FALSE;
+ DataObject* _tmp7_ = NULL;
+ GeeCollection* added = NULL;
+ DataObject* _tmp8_ = NULL;
+ GeeCollection* _tmp9_ = NULL;
+ GeeCollection* _tmp10_ = NULL;
+ GeeCollection* _tmp11_ = NULL;
+ DataObject* _tmp12_ = NULL;
+#line 309 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE);
+#line 310 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp0_ = object;
+#line 310 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp1_ = data_collection_internal_contains (self, _tmp0_);
+#line 310 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (_tmp1_) {
+#line 1177 "DataCollection.c"
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ DataObject* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+#line 311 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp2_ = data_collection_to_string (self);
+#line 311 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp3_ = _tmp2_;
+#line 311 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp4_ = object;
+#line 311 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp5_ = data_object_to_string (_tmp4_);
+#line 311 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp6_ = _tmp5_;
+#line 311 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_debug ("DataCollection.vala:311: %s cannot add %s: already present", _tmp3_, _tmp6_);
+#line 311 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _g_free0 (_tmp6_);
+#line 311 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _g_free0 (_tmp3_);
+#line 313 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ result = FALSE;
+#line 313 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ return result;
+#line 1203 "DataCollection.c"
+ }
+#line 316 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp7_ = object;
+#line 316 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ data_collection_internal_add (self, _tmp7_);
+#line 319 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp8_ = object;
+#line 319 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp9_ = data_collection_get_singleton (_tmp8_);
+#line 319 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ added = _tmp9_;
+#line 320 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp10_ = added;
+#line 320 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ data_collection_notify_items_added (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ITERABLE, GeeIterable));
+#line 321 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp11_ = added;
+#line 321 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ data_collection_notify_contents_altered (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ITERABLE, GeeIterable), NULL);
+#line 324 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp12_ = object;
+#line 324 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ data_object_notify_membership_changed (_tmp12_, self);
+#line 326 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ result = TRUE;
+#line 326 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _g_object_unref0 (added);
+#line 326 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ return result;
+#line 1233 "DataCollection.c"
+}
+
+
+gboolean data_collection_add (DataCollection* self, DataObject* object) {
+#line 309 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_val_if_fail (IS_DATA_COLLECTION (self), FALSE);
+#line 309 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ return DATA_COLLECTION_GET_CLASS (self)->add (self, object);
+#line 1242 "DataCollection.c"
+}
+
+
+static GeeCollection* data_collection_real_add_many (DataCollection* self, GeeCollection* objects, ProgressMonitor monitor, void* monitor_target) {
+ GeeCollection* result = NULL;
+ GeeArrayList* added = NULL;
+ GeeArrayList* _tmp0_ = NULL;
+ gint count = 0;
+ GeeArrayList* _tmp16_ = NULL;
+ gint _tmp17_ = 0;
+ gint _tmp18_ = 0;
+ gint _tmp19_ = 0;
+ GeeArrayList* _tmp20_ = NULL;
+ ProgressMonitor _tmp21_ = NULL;
+ void* _tmp21__target = NULL;
+ GeeArrayList* _tmp22_ = NULL;
+ GeeArrayList* _tmp23_ = NULL;
+#line 330 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_val_if_fail (GEE_IS_COLLECTION (objects), NULL);
+#line 332 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp0_ = gee_array_list_new (TYPE_DATA_OBJECT, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL);
+#line 332 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ added = _tmp0_;
+#line 1266 "DataCollection.c"
+ {
+ GeeIterator* _object_it = NULL;
+ GeeCollection* _tmp1_ = NULL;
+ GeeIterator* _tmp2_ = NULL;
+#line 333 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp1_ = objects;
+#line 333 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ITERABLE, GeeIterable));
+#line 333 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _object_it = _tmp2_;
+#line 333 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ while (TRUE) {
+#line 1279 "DataCollection.c"
+ GeeIterator* _tmp3_ = NULL;
+ gboolean _tmp4_ = FALSE;
+ DataObject* object = NULL;
+ GeeIterator* _tmp5_ = NULL;
+ gpointer _tmp6_ = NULL;
+ DataObject* _tmp7_ = NULL;
+ gboolean _tmp8_ = FALSE;
+ GeeArrayList* _tmp14_ = NULL;
+ DataObject* _tmp15_ = NULL;
+#line 333 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp3_ = _object_it;
+#line 333 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp4_ = gee_iterator_next (_tmp3_);
+#line 333 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (!_tmp4_) {
+#line 333 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ break;
+#line 1297 "DataCollection.c"
+ }
+#line 333 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp5_ = _object_it;
+#line 333 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp6_ = gee_iterator_get (_tmp5_);
+#line 333 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ object = (DataObject*) _tmp6_;
+#line 334 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp7_ = object;
+#line 334 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp8_ = data_collection_internal_contains (self, _tmp7_);
+#line 334 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (_tmp8_) {
+#line 1311 "DataCollection.c"
+ gchar* _tmp9_ = NULL;
+ gchar* _tmp10_ = NULL;
+ DataObject* _tmp11_ = NULL;
+ gchar* _tmp12_ = NULL;
+ gchar* _tmp13_ = NULL;
+#line 335 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp9_ = data_collection_to_string (self);
+#line 335 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp10_ = _tmp9_;
+#line 335 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp11_ = object;
+#line 335 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp12_ = data_object_to_string (_tmp11_);
+#line 335 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp13_ = _tmp12_;
+#line 335 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_debug ("DataCollection.vala:335: %s cannot add %s: already present", _tmp10_, _tmp13_);
+#line 335 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _g_free0 (_tmp13_);
+#line 335 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _g_free0 (_tmp10_);
+#line 337 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _g_object_unref0 (object);
+#line 337 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ continue;
+#line 1337 "DataCollection.c"
+ }
+#line 340 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp14_ = added;
+#line 340 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp15_ = object;
+#line 340 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp15_);
+#line 333 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _g_object_unref0 (object);
+#line 1347 "DataCollection.c"
+ }
+#line 333 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _g_object_unref0 (_object_it);
+#line 1351 "DataCollection.c"
+ }
+#line 343 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp16_ = added;
+#line 343 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp17_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_COLLECTION, GeeCollection));
+#line 343 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp18_ = _tmp17_;
+#line 343 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ count = _tmp18_;
+#line 344 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp19_ = count;
+#line 344 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (_tmp19_ == 0) {
+#line 345 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ result = G_TYPE_CHECK_INSTANCE_CAST (added, GEE_TYPE_COLLECTION, GeeCollection);
+#line 345 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ return result;
+#line 1369 "DataCollection.c"
+ }
+#line 347 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp20_ = added;
+#line 347 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp21_ = monitor;
+#line 347 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp21__target = monitor_target;
+#line 347 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ data_collection_internal_add_many (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_LIST, GeeList), _tmp21_, _tmp21__target);
+#line 350 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp22_ = added;
+#line 350 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ data_collection_notify_items_added (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GEE_TYPE_ITERABLE, GeeIterable));
+#line 351 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp23_ = added;
+#line 351 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ data_collection_notify_contents_altered (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_ITERABLE, GeeIterable), NULL);
+#line 1387 "DataCollection.c"
+ {
+ gint ctr = 0;
+#line 354 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ ctr = 0;
+#line 1392 "DataCollection.c"
+ {
+ gboolean _tmp24_ = FALSE;
+#line 354 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp24_ = TRUE;
+#line 354 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ while (TRUE) {
+#line 1399 "DataCollection.c"
+ gint _tmp26_ = 0;
+ gint _tmp27_ = 0;
+ GeeArrayList* _tmp28_ = NULL;
+ gint _tmp29_ = 0;
+ gpointer _tmp30_ = NULL;
+ DataObject* _tmp31_ = NULL;
+#line 354 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (!_tmp24_) {
+#line 1408 "DataCollection.c"
+ gint _tmp25_ = 0;
+#line 354 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp25_ = ctr;
+#line 354 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ ctr = _tmp25_ + 1;
+#line 1414 "DataCollection.c"
+ }
+#line 354 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp24_ = FALSE;
+#line 354 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp26_ = ctr;
+#line 354 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp27_ = count;
+#line 354 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (!(_tmp26_ < _tmp27_)) {
+#line 354 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ break;
+#line 1426 "DataCollection.c"
+ }
+#line 355 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp28_ = added;
+#line 355 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp29_ = ctr;
+#line 355 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp30_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp29_);
+#line 355 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp31_ = (DataObject*) _tmp30_;
+#line 355 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ data_object_notify_membership_changed (_tmp31_, self);
+#line 355 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _g_object_unref0 (_tmp31_);
+#line 1440 "DataCollection.c"
+ }
+ }
+ }
+#line 357 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ result = G_TYPE_CHECK_INSTANCE_CAST (added, GEE_TYPE_COLLECTION, GeeCollection);
+#line 357 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ return result;
+#line 1448 "DataCollection.c"
+}
+
+
+GeeCollection* data_collection_add_many (DataCollection* self, GeeCollection* objects, ProgressMonitor monitor, void* monitor_target) {
+#line 330 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_val_if_fail (IS_DATA_COLLECTION (self), NULL);
+#line 330 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ return DATA_COLLECTION_GET_CLASS (self)->add_many (self, objects, monitor, monitor_target);
+#line 1457 "DataCollection.c"
+}
+
+
+Marker* data_collection_start_marking (DataCollection* self) {
+ Marker* result = NULL;
+ DataCollectionMarkerImpl* _tmp0_ = NULL;
+#line 361 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_val_if_fail (IS_DATA_COLLECTION (self), NULL);
+#line 362 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp0_ = data_collection_marker_impl_new (self);
+#line 362 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MARKER, Marker);
+#line 362 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ return result;
+#line 1472 "DataCollection.c"
+}
+
+
+Marker* data_collection_mark (DataCollection* self, DataObject* object) {
+ Marker* result = NULL;
+ Marker* marker = NULL;
+ DataCollectionMarkerImpl* _tmp0_ = NULL;
+ DataObject* _tmp1_ = NULL;
+#line 366 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_val_if_fail (IS_DATA_COLLECTION (self), NULL);
+#line 366 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_val_if_fail (IS_DATA_OBJECT (object), NULL);
+#line 367 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp0_ = data_collection_marker_impl_new (self);
+#line 367 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ marker = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MARKER, Marker);
+#line 368 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp1_ = object;
+#line 368 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ marker_mark (marker, _tmp1_);
+#line 370 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ result = marker;
+#line 370 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ return result;
+#line 1497 "DataCollection.c"
+}
+
+
+Marker* data_collection_mark_many (DataCollection* self, GeeCollection* objects) {
+ Marker* result = NULL;
+ Marker* marker = NULL;
+ DataCollectionMarkerImpl* _tmp0_ = NULL;
+ GeeCollection* _tmp1_ = NULL;
+#line 374 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_val_if_fail (IS_DATA_COLLECTION (self), NULL);
+#line 374 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_val_if_fail (GEE_IS_COLLECTION (objects), NULL);
+#line 375 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp0_ = data_collection_marker_impl_new (self);
+#line 375 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ marker = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MARKER, Marker);
+#line 376 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp1_ = objects;
+#line 376 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ marker_mark_many (marker, _tmp1_);
+#line 378 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ result = marker;
+#line 378 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ return result;
+#line 1522 "DataCollection.c"
+}
+
+
+static gpointer _g_object_ref0 (gpointer self) {
+#line 385 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ return self ? g_object_ref (self) : NULL;
+#line 1529 "DataCollection.c"
+}
+
+
+void data_collection_act_on_marked (DataCollection* self, Marker* m, MarkedAction action, void* action_target, ProgressMonitor monitor, void* monitor_target, GObject* user) {
+ DataCollectionMarkerImpl* marker = NULL;
+ Marker* _tmp0_ = NULL;
+ DataCollectionMarkerImpl* _tmp1_ = NULL;
+ DataCollectionMarkerImpl* _tmp2_ = NULL;
+ gboolean _tmp3_ = FALSE;
+ DataCollectionMarkerImpl* _tmp4_ = NULL;
+ guint64 count = 0ULL;
+ guint64 total = 0ULL;
+ DataCollectionMarkerImpl* _tmp5_ = NULL;
+ GeeHashSet* _tmp6_ = NULL;
+ gint _tmp7_ = 0;
+ gint _tmp8_ = 0;
+ DataCollectionMarkerImpl* _tmp31_ = NULL;
+#line 383 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (IS_DATA_COLLECTION (self));
+#line 383 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (IS_MARKER (m));
+#line 383 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail ((user == NULL) || G_IS_OBJECT (user));
+#line 385 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp0_ = m;
+#line 385 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, DATA_COLLECTION_TYPE_MARKER_IMPL, DataCollectionMarkerImpl));
+#line 385 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ marker = _tmp1_;
+#line 387 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp2_ = marker;
+#line 387 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp3_ = data_collection_marker_impl_is_valid (_tmp2_, self);
+#line 387 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _vala_assert (_tmp3_, "marker.is_valid(this)");
+#line 390 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp4_ = marker;
+#line 390 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ data_collection_marker_impl_freeze (_tmp4_);
+#line 392 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ count = (guint64) 0;
+#line 393 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp5_ = marker;
+#line 393 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp6_ = _tmp5_->marked;
+#line 393 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp7_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection));
+#line 393 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp8_ = _tmp7_;
+#line 393 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ total = (guint64) _tmp8_;
+#line 1581 "DataCollection.c"
+ {
+ GeeIterator* _object_it = NULL;
+ DataCollectionMarkerImpl* _tmp9_ = NULL;
+ GeeHashSet* _tmp10_ = NULL;
+ GeeIterator* _tmp11_ = NULL;
+#line 396 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp9_ = marker;
+#line 396 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp10_ = _tmp9_->marked;
+#line 396 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp11_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
+#line 396 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _object_it = _tmp11_;
+#line 396 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ while (TRUE) {
+#line 1597 "DataCollection.c"
+ GeeIterator* _tmp12_ = NULL;
+ gboolean _tmp13_ = FALSE;
+ DataObject* object = NULL;
+ GeeIterator* _tmp14_ = NULL;
+ gpointer _tmp15_ = NULL;
+ DataObject* _tmp16_ = NULL;
+ gboolean _tmp17_ = FALSE;
+ MarkedAction _tmp21_ = NULL;
+ void* _tmp21__target = NULL;
+ DataObject* _tmp22_ = NULL;
+ GObject* _tmp23_ = NULL;
+ gboolean _tmp24_ = FALSE;
+ ProgressMonitor _tmp25_ = NULL;
+ void* _tmp25__target = NULL;
+#line 396 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp12_ = _object_it;
+#line 396 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp13_ = gee_iterator_next (_tmp12_);
+#line 396 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (!_tmp13_) {
+#line 396 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ break;
+#line 1620 "DataCollection.c"
+ }
+#line 396 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp14_ = _object_it;
+#line 396 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp15_ = gee_iterator_get (_tmp14_);
+#line 396 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ object = (DataObject*) _tmp15_;
+#line 398 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp16_ = object;
+#line 398 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp17_ = data_collection_internal_contains (self, _tmp16_);
+#line 398 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (!_tmp17_) {
+#line 1634 "DataCollection.c"
+ DataObject* _tmp18_ = NULL;
+ gchar* _tmp19_ = NULL;
+ gchar* _tmp20_ = NULL;
+#line 399 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp18_ = object;
+#line 399 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp19_ = data_object_to_string (_tmp18_);
+#line 399 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp20_ = _tmp19_;
+#line 399 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_warning ("DataCollection.vala:399: act_on_marked: marker holding ref to unknown " \
+"%s", _tmp20_);
+#line 399 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _g_free0 (_tmp20_);
+#line 401 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _g_object_unref0 (object);
+#line 401 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ continue;
+#line 1652 "DataCollection.c"
+ }
+#line 404 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp21_ = action;
+#line 404 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp21__target = action_target;
+#line 404 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp22_ = object;
+#line 404 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp23_ = user;
+#line 404 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp24_ = _tmp21_ (_tmp22_, _tmp23_, _tmp21__target);
+#line 404 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (!_tmp24_) {
+#line 405 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _g_object_unref0 (object);
+#line 405 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ break;
+#line 1670 "DataCollection.c"
+ }
+#line 407 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp25_ = monitor;
+#line 407 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp25__target = monitor_target;
+#line 407 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (_tmp25_ != NULL) {
+#line 1678 "DataCollection.c"
+ ProgressMonitor _tmp26_ = NULL;
+ void* _tmp26__target = NULL;
+ guint64 _tmp27_ = 0ULL;
+ guint64 _tmp28_ = 0ULL;
+ guint64 _tmp29_ = 0ULL;
+ gboolean _tmp30_ = FALSE;
+#line 408 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp26_ = monitor;
+#line 408 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp26__target = monitor_target;
+#line 408 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp27_ = count;
+#line 408 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ count = _tmp27_ + 1;
+#line 408 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp28_ = count;
+#line 408 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp29_ = total;
+#line 408 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp30_ = _tmp26_ (_tmp28_, _tmp29_, TRUE, _tmp26__target);
+#line 408 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (!_tmp30_) {
+#line 409 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _g_object_unref0 (object);
+#line 409 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ break;
+#line 1705 "DataCollection.c"
+ }
+ }
+#line 396 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _g_object_unref0 (object);
+#line 1710 "DataCollection.c"
+ }
+#line 396 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _g_object_unref0 (_object_it);
+#line 1714 "DataCollection.c"
+ }
+#line 414 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp31_ = marker;
+#line 414 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ data_collection_marker_impl_finished (_tmp31_);
+#line 383 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _g_object_unref0 (marker);
+#line 1722 "DataCollection.c"
+}
+
+
+static void data_collection_real_remove_marked (DataCollection* self, Marker* m) {
+ DataCollectionMarkerImpl* marker = NULL;
+ Marker* _tmp0_ = NULL;
+ DataCollectionMarkerImpl* _tmp1_ = NULL;
+ DataCollectionMarkerImpl* _tmp2_ = NULL;
+ gboolean _tmp3_ = FALSE;
+ DataCollectionMarkerImpl* _tmp4_ = NULL;
+ GeeArrayList* skipped = NULL;
+ GeeArrayList* _tmp22_ = NULL;
+ DataCollectionMarkerImpl* _tmp26_ = NULL;
+ GeeHashSet* _tmp27_ = NULL;
+ gint _tmp28_ = 0;
+ gint _tmp29_ = 0;
+ DataCollectionMarkerImpl* _tmp42_ = NULL;
+#line 419 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (IS_MARKER (m));
+#line 420 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp0_ = m;
+#line 420 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, DATA_COLLECTION_TYPE_MARKER_IMPL, DataCollectionMarkerImpl));
+#line 420 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ marker = _tmp1_;
+#line 422 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp2_ = marker;
+#line 422 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp3_ = data_collection_marker_impl_is_valid (_tmp2_, self);
+#line 422 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _vala_assert (_tmp3_, "marker.is_valid(this)");
+#line 425 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp4_ = marker;
+#line 425 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ data_collection_marker_impl_freeze (_tmp4_);
+#line 428 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ skipped = NULL;
+#line 1760 "DataCollection.c"
+ {
+ GeeIterator* _object_it = NULL;
+ DataCollectionMarkerImpl* _tmp5_ = NULL;
+ GeeHashSet* _tmp6_ = NULL;
+ GeeIterator* _tmp7_ = NULL;
+#line 429 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp5_ = marker;
+#line 429 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp6_ = _tmp5_->marked;
+#line 429 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp7_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
+#line 429 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _object_it = _tmp7_;
+#line 429 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ while (TRUE) {
+#line 1776 "DataCollection.c"
+ GeeIterator* _tmp8_ = NULL;
+ gboolean _tmp9_ = FALSE;
+ DataObject* object = NULL;
+ GeeIterator* _tmp10_ = NULL;
+ gpointer _tmp11_ = NULL;
+ DataObject* _tmp12_ = NULL;
+ gboolean _tmp13_ = FALSE;
+ DataObject* _tmp21_ = NULL;
+#line 429 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp8_ = _object_it;
+#line 429 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp9_ = gee_iterator_next (_tmp8_);
+#line 429 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (!_tmp9_) {
+#line 429 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ break;
+#line 1793 "DataCollection.c"
+ }
+#line 429 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp10_ = _object_it;
+#line 429 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp11_ = gee_iterator_get (_tmp10_);
+#line 429 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ object = (DataObject*) _tmp11_;
+#line 431 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp12_ = object;
+#line 431 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp13_ = data_collection_internal_contains (self, _tmp12_);
+#line 431 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (!_tmp13_) {
+#line 1807 "DataCollection.c"
+ DataObject* _tmp14_ = NULL;
+ gchar* _tmp15_ = NULL;
+ gchar* _tmp16_ = NULL;
+ GeeArrayList* _tmp17_ = NULL;
+ GeeArrayList* _tmp19_ = NULL;
+ DataObject* _tmp20_ = NULL;
+#line 432 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp14_ = object;
+#line 432 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp15_ = data_object_to_string (_tmp14_);
+#line 432 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp16_ = _tmp15_;
+#line 432 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_warning ("DataCollection.vala:432: remove_marked: marker holding ref to unknown " \
+"%s", _tmp16_);
+#line 432 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _g_free0 (_tmp16_);
+#line 434 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp17_ = skipped;
+#line 434 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (_tmp17_ == NULL) {
+#line 1828 "DataCollection.c"
+ GeeArrayList* _tmp18_ = NULL;
+#line 435 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp18_ = gee_array_list_new (TYPE_DATA_OBJECT, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL);
+#line 435 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _g_object_unref0 (skipped);
+#line 435 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ skipped = _tmp18_;
+#line 1836 "DataCollection.c"
+ }
+#line 437 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp19_ = skipped;
+#line 437 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp20_ = object;
+#line 437 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp20_);
+#line 439 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _g_object_unref0 (object);
+#line 439 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ continue;
+#line 1848 "DataCollection.c"
+ }
+#line 442 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp21_ = object;
+#line 442 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ data_collection_internal_remove (self, _tmp21_);
+#line 429 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _g_object_unref0 (object);
+#line 1856 "DataCollection.c"
+ }
+#line 429 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _g_object_unref0 (_object_it);
+#line 1860 "DataCollection.c"
+ }
+#line 445 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp22_ = skipped;
+#line 445 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (_tmp22_ != NULL) {
+#line 1866 "DataCollection.c"
+ DataCollectionMarkerImpl* _tmp23_ = NULL;
+ GeeHashSet* _tmp24_ = NULL;
+ GeeArrayList* _tmp25_ = NULL;
+#line 446 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp23_ = marker;
+#line 446 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp24_ = _tmp23_->marked;
+#line 446 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp25_ = skipped;
+#line 446 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ gee_collection_remove_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, GEE_TYPE_COLLECTION, GeeCollection));
+#line 1878 "DataCollection.c"
+ }
+#line 449 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp26_ = marker;
+#line 449 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp27_ = _tmp26_->marked;
+#line 449 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp28_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, GEE_TYPE_COLLECTION, GeeCollection));
+#line 449 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp29_ = _tmp28_;
+#line 449 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (_tmp29_ > 0) {
+#line 1890 "DataCollection.c"
+ DataCollectionMarkerImpl* _tmp30_ = NULL;
+ GeeHashSet* _tmp31_ = NULL;
+ DataCollectionMarkerImpl* _tmp32_ = NULL;
+ GeeHashSet* _tmp33_ = NULL;
+#line 450 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp30_ = marker;
+#line 450 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp31_ = _tmp30_->marked;
+#line 450 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ data_collection_notify_items_removed (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, GEE_TYPE_ITERABLE, GeeIterable));
+#line 451 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp32_ = marker;
+#line 451 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp33_ = _tmp32_->marked;
+#line 451 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ data_collection_notify_contents_altered (self, NULL, G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, GEE_TYPE_ITERABLE, GeeIterable));
+#line 1907 "DataCollection.c"
+ {
+ GeeIterator* _object_it = NULL;
+ DataCollectionMarkerImpl* _tmp34_ = NULL;
+ GeeHashSet* _tmp35_ = NULL;
+ GeeIterator* _tmp36_ = NULL;
+#line 454 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp34_ = marker;
+#line 454 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp35_ = _tmp34_->marked;
+#line 454 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp36_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
+#line 454 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _object_it = _tmp36_;
+#line 454 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ while (TRUE) {
+#line 1923 "DataCollection.c"
+ GeeIterator* _tmp37_ = NULL;
+ gboolean _tmp38_ = FALSE;
+ DataObject* object = NULL;
+ GeeIterator* _tmp39_ = NULL;
+ gpointer _tmp40_ = NULL;
+ DataObject* _tmp41_ = NULL;
+#line 454 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp37_ = _object_it;
+#line 454 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp38_ = gee_iterator_next (_tmp37_);
+#line 454 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (!_tmp38_) {
+#line 454 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ break;
+#line 1938 "DataCollection.c"
+ }
+#line 454 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp39_ = _object_it;
+#line 454 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp40_ = gee_iterator_get (_tmp39_);
+#line 454 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ object = (DataObject*) _tmp40_;
+#line 455 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp41_ = object;
+#line 455 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ data_object_notify_membership_changed (_tmp41_, NULL);
+#line 454 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _g_object_unref0 (object);
+#line 1952 "DataCollection.c"
+ }
+#line 454 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _g_object_unref0 (_object_it);
+#line 1956 "DataCollection.c"
+ }
+ }
+#line 459 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp42_ = marker;
+#line 459 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ data_collection_marker_impl_finished (_tmp42_);
+#line 419 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _g_object_unref0 (skipped);
+#line 419 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _g_object_unref0 (marker);
+#line 1967 "DataCollection.c"
+}
+
+
+void data_collection_remove_marked (DataCollection* self, Marker* m) {
+#line 419 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (IS_DATA_COLLECTION (self));
+#line 419 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ DATA_COLLECTION_GET_CLASS (self)->remove_marked (self, m);
+#line 1976 "DataCollection.c"
+}
+
+
+static void data_collection_real_clear (DataCollection* self) {
+ DataSet* _tmp0_ = NULL;
+ gint _tmp1_ = 0;
+ GeeArrayList* removed = NULL;
+ GeeArrayList* _tmp2_ = NULL;
+ GeeArrayList* _tmp12_ = NULL;
+ GeeArrayList* _tmp13_ = NULL;
+#line 463 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp0_ = self->priv->dataset;
+#line 463 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp1_ = data_set_get_count (_tmp0_);
+#line 463 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (_tmp1_ == 0) {
+#line 464 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ return;
+#line 1995 "DataCollection.c"
+ }
+#line 468 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp2_ = gee_array_list_new (TYPE_DATA_OBJECT, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL);
+#line 468 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ removed = _tmp2_;
+#line 2001 "DataCollection.c"
+ {
+ gboolean _tmp3_ = FALSE;
+#line 469 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp3_ = TRUE;
+#line 469 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ while (TRUE) {
+#line 2008 "DataCollection.c"
+ DataObject* object = NULL;
+ DataSet* _tmp6_ = NULL;
+ DataObject* _tmp7_ = NULL;
+ DataObject* _tmp8_ = NULL;
+ GeeArrayList* _tmp9_ = NULL;
+ DataObject* _tmp10_ = NULL;
+ DataObject* _tmp11_ = NULL;
+#line 469 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (!_tmp3_) {
+#line 2018 "DataCollection.c"
+ DataSet* _tmp4_ = NULL;
+ gint _tmp5_ = 0;
+#line 475 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp4_ = self->priv->dataset;
+#line 475 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp5_ = data_set_get_count (_tmp4_);
+#line 475 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (!(_tmp5_ > 0)) {
+#line 475 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ break;
+#line 2029 "DataCollection.c"
+ }
+ }
+#line 469 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp3_ = FALSE;
+#line 470 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp6_ = self->priv->dataset;
+#line 470 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp7_ = data_set_get_at (_tmp6_, 0);
+#line 470 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ object = _tmp7_;
+#line 471 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp8_ = object;
+#line 471 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _vala_assert (_tmp8_ != NULL, "object != null");
+#line 473 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp9_ = removed;
+#line 473 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp10_ = object;
+#line 473 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp10_);
+#line 474 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp11_ = object;
+#line 474 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ data_collection_internal_remove (self, _tmp11_);
+#line 469 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _g_object_unref0 (object);
+#line 2056 "DataCollection.c"
+ }
+ }
+#line 478 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp12_ = removed;
+#line 478 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ data_collection_notify_items_removed (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ITERABLE, GeeIterable));
+#line 479 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp13_ = removed;
+#line 479 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ data_collection_notify_contents_altered (self, NULL, G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ITERABLE, GeeIterable));
+#line 2067 "DataCollection.c"
+ {
+ GeeArrayList* _object_list = NULL;
+ GeeArrayList* _tmp14_ = NULL;
+ GeeArrayList* _tmp15_ = NULL;
+ gint _object_size = 0;
+ GeeArrayList* _tmp16_ = NULL;
+ gint _tmp17_ = 0;
+ gint _tmp18_ = 0;
+ gint _object_index = 0;
+#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp14_ = removed;
+#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp15_ = _g_object_ref0 (_tmp14_);
+#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _object_list = _tmp15_;
+#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp16_ = _object_list;
+#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp17_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_COLLECTION, GeeCollection));
+#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp18_ = _tmp17_;
+#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _object_size = _tmp18_;
+#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _object_index = -1;
+#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ while (TRUE) {
+#line 2095 "DataCollection.c"
+ gint _tmp19_ = 0;
+ gint _tmp20_ = 0;
+ gint _tmp21_ = 0;
+ DataObject* object = NULL;
+ GeeArrayList* _tmp22_ = NULL;
+ gint _tmp23_ = 0;
+ gpointer _tmp24_ = NULL;
+ DataObject* _tmp25_ = NULL;
+#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp19_ = _object_index;
+#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _object_index = _tmp19_ + 1;
+#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp20_ = _object_index;
+#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp21_ = _object_size;
+#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (!(_tmp20_ < _tmp21_)) {
+#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ break;
+#line 2116 "DataCollection.c"
+ }
+#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp22_ = _object_list;
+#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp23_ = _object_index;
+#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp24_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp23_);
+#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ object = (DataObject*) _tmp24_;
+#line 483 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp25_ = object;
+#line 483 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ data_object_notify_membership_changed (_tmp25_, NULL);
+#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _g_object_unref0 (object);
+#line 2132 "DataCollection.c"
+ }
+#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _g_object_unref0 (_object_list);
+#line 2136 "DataCollection.c"
+ }
+#line 462 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _g_object_unref0 (removed);
+#line 2140 "DataCollection.c"
+}
+
+
+void data_collection_clear (DataCollection* self) {
+#line 462 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (IS_DATA_COLLECTION (self));
+#line 462 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ DATA_COLLECTION_GET_CLASS (self)->clear (self);
+#line 2149 "DataCollection.c"
+}
+
+
+static void data_collection_real_close (DataCollection* self) {
+#line 493 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ data_collection_clear (self);
+#line 2156 "DataCollection.c"
+}
+
+
+void data_collection_close (DataCollection* self) {
+#line 492 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (IS_DATA_COLLECTION (self));
+#line 492 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ DATA_COLLECTION_GET_CLASS (self)->close (self);
+#line 2165 "DataCollection.c"
+}
+
+
+static gpointer _alteration_ref0 (gpointer self) {
+#line 513 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ return self ? alteration_ref (self) : NULL;
+#line 2172 "DataCollection.c"
+}
+
+
+void data_collection_internal_notify_altered (DataCollection* self, DataObject* object, Alteration* alteration) {
+ DataObject* _tmp0_ = NULL;
+ gboolean _tmp1_ = FALSE;
+ gboolean resort_occurred = FALSE;
+ DataSet* _tmp2_ = NULL;
+ DataObject* _tmp3_ = NULL;
+ Alteration* _tmp4_ = NULL;
+ gboolean _tmp5_ = FALSE;
+ gboolean _tmp6_ = FALSE;
+ gboolean _tmp24_ = FALSE;
+ DataObject* _tmp25_ = NULL;
+ Alteration* _tmp26_ = NULL;
+ GeeMap* _tmp27_ = NULL;
+ GeeMap* _tmp28_ = NULL;
+#line 498 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (IS_DATA_COLLECTION (self));
+#line 498 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (IS_DATA_OBJECT (object));
+#line 498 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (IS_ALTERATION (alteration));
+#line 499 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp0_ = object;
+#line 499 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp1_ = data_collection_internal_contains (self, _tmp0_);
+#line 499 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _vala_assert (_tmp1_, "internal_contains(object)");
+#line 501 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp2_ = self->priv->dataset;
+#line 501 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp3_ = object;
+#line 501 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp4_ = alteration;
+#line 501 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp5_ = data_set_resort_object (_tmp2_, _tmp3_, _tmp4_);
+#line 501 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ resort_occurred = _tmp5_;
+#line 503 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp6_ = data_collection_are_notifications_frozen (self);
+#line 503 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (_tmp6_) {
+#line 2216 "DataCollection.c"
+ GeeHashMap* _tmp7_ = NULL;
+ Alteration* current = NULL;
+ GeeHashMap* _tmp9_ = NULL;
+ DataObject* _tmp10_ = NULL;
+ gpointer _tmp11_ = NULL;
+ Alteration* _tmp12_ = NULL;
+ GeeHashMap* _tmp18_ = NULL;
+ DataObject* _tmp19_ = NULL;
+ Alteration* _tmp20_ = NULL;
+ gboolean _tmp21_ = FALSE;
+ gboolean _tmp22_ = FALSE;
+#line 504 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp7_ = self->priv->frozen_items_altered;
+#line 504 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (_tmp7_ == NULL) {
+#line 2232 "DataCollection.c"
+ GeeHashMap* _tmp8_ = NULL;
+#line 505 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp8_ = gee_hash_map_new (TYPE_DATA_OBJECT, (GBoxedCopyFunc) g_object_ref, g_object_unref, TYPE_ALTERATION, (GBoxedCopyFunc) alteration_ref, alteration_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
+#line 505 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _g_object_unref0 (self->priv->frozen_items_altered);
+#line 505 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ self->priv->frozen_items_altered = _tmp8_;
+#line 2240 "DataCollection.c"
+ }
+#line 509 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp9_ = self->priv->frozen_items_altered;
+#line 509 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp10_ = object;
+#line 509 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp11_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp10_);
+#line 509 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ current = (Alteration*) _tmp11_;
+#line 510 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp12_ = current;
+#line 510 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (_tmp12_ != NULL) {
+#line 2254 "DataCollection.c"
+ Alteration* _tmp13_ = NULL;
+ Alteration* _tmp14_ = NULL;
+ Alteration* _tmp15_ = NULL;
+#line 511 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp13_ = current;
+#line 511 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp14_ = alteration;
+#line 511 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp15_ = alteration_compress (_tmp13_, _tmp14_);
+#line 511 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _alteration_unref0 (current);
+#line 511 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ current = _tmp15_;
+#line 2268 "DataCollection.c"
+ } else {
+ Alteration* _tmp16_ = NULL;
+ Alteration* _tmp17_ = NULL;
+#line 513 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp16_ = alteration;
+#line 513 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp17_ = _alteration_ref0 (_tmp16_);
+#line 513 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _alteration_unref0 (current);
+#line 513 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ current = _tmp17_;
+#line 2280 "DataCollection.c"
+ }
+#line 515 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp18_ = self->priv->frozen_items_altered;
+#line 515 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp19_ = object;
+#line 515 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp20_ = current;
+#line 515 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp19_, _tmp20_);
+#line 517 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp22_ = self->priv->fire_ordering_changed;
+#line 517 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (_tmp22_) {
+#line 517 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp21_ = TRUE;
+#line 2296 "DataCollection.c"
+ } else {
+ gboolean _tmp23_ = FALSE;
+#line 517 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp23_ = resort_occurred;
+#line 517 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp21_ = _tmp23_;
+#line 2303 "DataCollection.c"
+ }
+#line 517 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ self->priv->fire_ordering_changed = _tmp21_;
+#line 519 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _alteration_unref0 (current);
+#line 519 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ return;
+#line 2311 "DataCollection.c"
+ }
+#line 522 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp24_ = resort_occurred;
+#line 522 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (_tmp24_) {
+#line 523 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ data_collection_notify_ordering_changed (self);
+#line 2319 "DataCollection.c"
+ }
+#line 525 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp25_ = object;
+#line 525 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp26_ = alteration;
+#line 525 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp27_ = data_collection_get_alteration_singleton (_tmp25_, _tmp26_);
+#line 525 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp28_ = _tmp27_;
+#line 525 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ data_collection_notify_items_altered (self, _tmp28_);
+#line 525 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _g_object_unref0 (_tmp28_);
+#line 2333 "DataCollection.c"
+}
+
+
+GValue* data_collection_get_property (DataCollection* self, const gchar* name) {
+ GValue* result = NULL;
+ GeeHashMap* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ gpointer _tmp2_ = NULL;
+#line 528 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_val_if_fail (IS_DATA_COLLECTION (self), NULL);
+#line 528 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_val_if_fail (name != NULL, NULL);
+#line 529 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp0_ = self->priv->properties;
+#line 529 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp1_ = name;
+#line 529 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp2_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp1_);
+#line 529 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ result = (GValue*) _tmp2_;
+#line 529 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ return result;
+#line 2356 "DataCollection.c"
+}
+
+
+static gboolean _bool_value_equals_value_equal_func (GValue* a, GValue* b, gpointer self) {
+ gboolean result;
+ result = bool_value_equals (a, b);
+#line 535 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ return result;
+#line 2365 "DataCollection.c"
+}
+
+
+static gboolean _int_value_equals_value_equal_func (GValue* a, GValue* b, gpointer self) {
+ gboolean result;
+ result = int_value_equals (a, b);
+#line 537 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ return result;
+#line 2374 "DataCollection.c"
+}
+
+
+void data_collection_set_property (DataCollection* self, const gchar* name, GValue* val, ValueEqualFunc value_equals, void* value_equals_target) {
+ ValueEqualFunc _tmp0_ = NULL;
+ void* _tmp0__target = NULL;
+ GValue* old = NULL;
+ GeeHashMap* _tmp3_ = NULL;
+ const gchar* _tmp4_ = NULL;
+ gpointer _tmp5_ = NULL;
+ GValue* _tmp6_ = NULL;
+ GeeHashMap* _tmp12_ = NULL;
+ const gchar* _tmp13_ = NULL;
+ GValue _tmp14_ = {0};
+ const gchar* _tmp15_ = NULL;
+ GValue* _tmp16_ = NULL;
+ GValue _tmp17_ = {0};
+ gint count = 0;
+ DataSet* _tmp18_ = NULL;
+ gint _tmp19_ = 0;
+#line 532 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (IS_DATA_COLLECTION (self));
+#line 532 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (name != NULL);
+#line 532 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (val != NULL);
+#line 533 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp0_ = value_equals;
+#line 533 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp0__target = value_equals_target;
+#line 533 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (_tmp0_ == NULL) {
+#line 2407 "DataCollection.c"
+ gboolean _tmp1_ = FALSE;
+#line 534 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp1_ = G_VALUE_HOLDS (val, G_TYPE_BOOLEAN);
+#line 534 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (_tmp1_) {
+#line 535 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ value_equals = _bool_value_equals_value_equal_func;
+#line 535 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ value_equals_target = NULL;
+#line 2417 "DataCollection.c"
+ } else {
+ gboolean _tmp2_ = FALSE;
+#line 536 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp2_ = G_VALUE_HOLDS (val, G_TYPE_INT);
+#line 536 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (_tmp2_) {
+#line 537 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ value_equals = _int_value_equals_value_equal_func;
+#line 537 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ value_equals_target = NULL;
+#line 2428 "DataCollection.c"
+ } else {
+#line 539 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_error ("DataCollection.vala:539: value_equals must be specified for this type");
+#line 2432 "DataCollection.c"
+ }
+ }
+ }
+#line 542 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp3_ = self->priv->properties;
+#line 542 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp4_ = name;
+#line 542 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp5_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp4_);
+#line 542 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ old = (GValue*) _tmp5_;
+#line 543 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp6_ = old;
+#line 543 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (_tmp6_ != NULL) {
+#line 2448 "DataCollection.c"
+ ValueEqualFunc _tmp7_ = NULL;
+ void* _tmp7__target = NULL;
+ GValue* _tmp8_ = NULL;
+ GValue _tmp9_ = {0};
+ GValue _tmp10_ = {0};
+ gboolean _tmp11_ = FALSE;
+#line 544 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp7_ = value_equals;
+#line 544 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp7__target = value_equals_target;
+#line 544 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp8_ = old;
+#line 544 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp9_ = *val;
+#line 544 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp10_ = *_tmp8_;
+#line 544 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp11_ = _tmp7_ (&_tmp10_, &_tmp9_, _tmp7__target);
+#line 544 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (_tmp11_) {
+#line 545 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ __vala_GValue_free0 (old);
+#line 545 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ return;
+#line 2473 "DataCollection.c"
+ }
+ }
+#line 548 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp12_ = self->priv->properties;
+#line 548 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp13_ = name;
+#line 548 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp14_ = *val;
+#line 548 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp13_, &_tmp14_);
+#line 550 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp15_ = name;
+#line 550 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp16_ = old;
+#line 550 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp17_ = *val;
+#line 550 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ data_collection_notify_property_set (self, _tmp15_, _tmp16_, &_tmp17_);
+#line 553 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp18_ = self->priv->dataset;
+#line 553 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp19_ = data_set_get_count (_tmp18_);
+#line 553 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ count = _tmp19_;
+#line 2498 "DataCollection.c"
+ {
+ gint ctr = 0;
+#line 554 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ ctr = 0;
+#line 2503 "DataCollection.c"
+ {
+ gboolean _tmp20_ = FALSE;
+#line 554 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp20_ = TRUE;
+#line 554 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ while (TRUE) {
+#line 2510 "DataCollection.c"
+ gint _tmp22_ = 0;
+ gint _tmp23_ = 0;
+ DataSet* _tmp24_ = NULL;
+ gint _tmp25_ = 0;
+ DataObject* _tmp26_ = NULL;
+ DataObject* _tmp27_ = NULL;
+ const gchar* _tmp28_ = NULL;
+ GValue* _tmp29_ = NULL;
+ GValue _tmp30_ = {0};
+#line 554 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (!_tmp20_) {
+#line 2522 "DataCollection.c"
+ gint _tmp21_ = 0;
+#line 554 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp21_ = ctr;
+#line 554 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ ctr = _tmp21_ + 1;
+#line 2528 "DataCollection.c"
+ }
+#line 554 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp20_ = FALSE;
+#line 554 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp22_ = ctr;
+#line 554 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp23_ = count;
+#line 554 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (!(_tmp22_ < _tmp23_)) {
+#line 554 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ break;
+#line 2540 "DataCollection.c"
+ }
+#line 555 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp24_ = self->priv->dataset;
+#line 555 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp25_ = ctr;
+#line 555 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp26_ = data_set_get_at (_tmp24_, _tmp25_);
+#line 555 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp27_ = _tmp26_;
+#line 555 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp28_ = name;
+#line 555 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp29_ = old;
+#line 555 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp30_ = *val;
+#line 555 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ data_object_notify_collection_property_set (_tmp27_, _tmp28_, _tmp29_, &_tmp30_);
+#line 555 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _g_object_unref0 (_tmp27_);
+#line 2560 "DataCollection.c"
+ }
+ }
+ }
+#line 532 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ __vala_GValue_free0 (old);
+#line 2566 "DataCollection.c"
+}
+
+
+void data_collection_clear_property (DataCollection* self, const gchar* name) {
+ GeeHashMap* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ gboolean _tmp2_ = FALSE;
+ const gchar* _tmp3_ = NULL;
+ gint count = 0;
+ DataSet* _tmp4_ = NULL;
+ gint _tmp5_ = 0;
+#line 558 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (IS_DATA_COLLECTION (self));
+#line 558 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (name != NULL);
+#line 559 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp0_ = self->priv->properties;
+#line 559 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp1_ = name;
+#line 559 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp2_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp1_, NULL);
+#line 559 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (!_tmp2_) {
+#line 560 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ return;
+#line 2592 "DataCollection.c"
+ }
+#line 563 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp3_ = name;
+#line 563 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ data_collection_notify_property_cleared (self, _tmp3_);
+#line 566 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp4_ = self->priv->dataset;
+#line 566 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp5_ = data_set_get_count (_tmp4_);
+#line 566 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ count = _tmp5_;
+#line 2604 "DataCollection.c"
+ {
+ gint ctr = 0;
+#line 567 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ ctr = 0;
+#line 2609 "DataCollection.c"
+ {
+ gboolean _tmp6_ = FALSE;
+#line 567 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp6_ = TRUE;
+#line 567 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ while (TRUE) {
+#line 2616 "DataCollection.c"
+ gint _tmp8_ = 0;
+ gint _tmp9_ = 0;
+ DataSet* _tmp10_ = NULL;
+ gint _tmp11_ = 0;
+ DataObject* _tmp12_ = NULL;
+ DataObject* _tmp13_ = NULL;
+ const gchar* _tmp14_ = NULL;
+#line 567 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (!_tmp6_) {
+#line 2626 "DataCollection.c"
+ gint _tmp7_ = 0;
+#line 567 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp7_ = ctr;
+#line 567 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ ctr = _tmp7_ + 1;
+#line 2632 "DataCollection.c"
+ }
+#line 567 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp6_ = FALSE;
+#line 567 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp8_ = ctr;
+#line 567 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp9_ = count;
+#line 567 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (!(_tmp8_ < _tmp9_)) {
+#line 567 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ break;
+#line 2644 "DataCollection.c"
+ }
+#line 568 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp10_ = self->priv->dataset;
+#line 568 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp11_ = ctr;
+#line 568 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp12_ = data_set_get_at (_tmp10_, _tmp11_);
+#line 568 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp13_ = _tmp12_;
+#line 568 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp14_ = name;
+#line 568 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ data_object_notify_collection_property_cleared (_tmp13_, _tmp14_);
+#line 568 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _g_object_unref0 (_tmp13_);
+#line 2660 "DataCollection.c"
+ }
+ }
+ }
+}
+
+
+void data_collection_freeze_notifications (DataCollection* self) {
+ gint _tmp0_ = 0;
+#line 581 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (IS_DATA_COLLECTION (self));
+#line 582 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp0_ = self->priv->notifies_frozen;
+#line 582 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ self->priv->notifies_frozen = _tmp0_ + 1;
+#line 582 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (_tmp0_ == 0) {
+#line 583 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ data_collection_notify_frozen (self);
+#line 2679 "DataCollection.c"
+ }
+}
+
+
+void data_collection_thaw_notifications (DataCollection* self) {
+ gint _tmp0_ = 0;
+ gint _tmp1_ = 0;
+ gint _tmp2_ = 0;
+#line 586 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (IS_DATA_COLLECTION (self));
+#line 587 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp0_ = self->priv->notifies_frozen;
+#line 587 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (_tmp0_ == 0) {
+#line 588 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ return;
+#line 2696 "DataCollection.c"
+ }
+#line 590 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp1_ = self->priv->notifies_frozen;
+#line 590 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ self->priv->notifies_frozen = _tmp1_ - 1;
+#line 590 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp2_ = self->priv->notifies_frozen;
+#line 590 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (_tmp2_ == 0) {
+#line 591 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ data_collection_notify_thawed (self);
+#line 2708 "DataCollection.c"
+ }
+}
+
+
+gboolean data_collection_are_notifications_frozen (DataCollection* self) {
+ gboolean result = FALSE;
+ gint _tmp0_ = 0;
+#line 594 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_val_if_fail (IS_DATA_COLLECTION (self), FALSE);
+#line 595 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp0_ = self->priv->notifies_frozen;
+#line 595 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ result = _tmp0_ > 0;
+#line 595 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ return result;
+#line 2724 "DataCollection.c"
+}
+
+
+static void data_collection_real_notify_frozen (DataCollection* self) {
+#line 601 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_signal_emit_by_name (self, "frozen");
+#line 2731 "DataCollection.c"
+}
+
+
+void data_collection_notify_frozen (DataCollection* self) {
+#line 600 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (IS_DATA_COLLECTION (self));
+#line 600 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ DATA_COLLECTION_GET_CLASS (self)->notify_frozen (self);
+#line 2740 "DataCollection.c"
+}
+
+
+static void data_collection_real_notify_thawed (DataCollection* self) {
+ GeeHashMap* _tmp0_ = NULL;
+ gboolean _tmp4_ = FALSE;
+#line 607 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp0_ = self->priv->frozen_items_altered;
+#line 607 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (_tmp0_ != NULL) {
+#line 2751 "DataCollection.c"
+ GeeMap* copy = NULL;
+ GeeHashMap* _tmp1_ = NULL;
+ GeeMap* _tmp2_ = NULL;
+ GeeMap* _tmp3_ = NULL;
+#line 609 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp1_ = self->priv->frozen_items_altered;
+#line 609 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_MAP, GeeMap));
+#line 609 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ copy = _tmp2_;
+#line 610 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _g_object_unref0 (self->priv->frozen_items_altered);
+#line 610 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ self->priv->frozen_items_altered = NULL;
+#line 612 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp3_ = copy;
+#line 612 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ data_collection_notify_items_altered (self, _tmp3_);
+#line 607 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _g_object_unref0 (copy);
+#line 2772 "DataCollection.c"
+ }
+#line 615 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp4_ = self->priv->fire_ordering_changed;
+#line 615 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (_tmp4_) {
+#line 616 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ self->priv->fire_ordering_changed = FALSE;
+#line 617 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ data_collection_notify_ordering_changed (self);
+#line 2782 "DataCollection.c"
+ }
+#line 620 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_signal_emit_by_name (self, "thawed");
+#line 2786 "DataCollection.c"
+}
+
+
+void data_collection_notify_thawed (DataCollection* self) {
+#line 606 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (IS_DATA_COLLECTION (self));
+#line 606 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ DATA_COLLECTION_GET_CLASS (self)->notify_thawed (self);
+#line 2795 "DataCollection.c"
+}
+
+
+static void data_collection_real_items_added (DataCollection* self, GeeIterable* added) {
+#line 116 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (GEE_IS_ITERABLE (added));
+#line 2802 "DataCollection.c"
+}
+
+
+static void data_collection_real_items_removed (DataCollection* self, GeeIterable* removed) {
+#line 120 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (GEE_IS_ITERABLE (removed));
+#line 2809 "DataCollection.c"
+}
+
+
+static void data_collection_real_contents_altered (DataCollection* self, GeeIterable* added, GeeIterable* removed) {
+#line 124 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail ((added == NULL) || GEE_IS_ITERABLE (added));
+#line 124 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail ((removed == NULL) || GEE_IS_ITERABLE (removed));
+#line 2818 "DataCollection.c"
+}
+
+
+static void g_cclosure_user_marshal_VOID__OBJECT_OBJECT (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data) {
+ typedef void (*GMarshalFunc_VOID__OBJECT_OBJECT) (gpointer data1, gpointer arg_1, gpointer arg_2, gpointer data2);
+ register GMarshalFunc_VOID__OBJECT_OBJECT callback;
+ register GCClosure * cc;
+ register gpointer data1;
+ register gpointer data2;
+ cc = (GCClosure *) closure;
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (n_param_values == 3);
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (G_CCLOSURE_SWAP_DATA (closure)) {
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ data1 = closure->data;
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ data2 = param_values->data[0].v_pointer;
+#line 2837 "DataCollection.c"
+ } else {
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ data1 = param_values->data[0].v_pointer;
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ data2 = closure->data;
+#line 2843 "DataCollection.c"
+ }
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ callback = (GMarshalFunc_VOID__OBJECT_OBJECT) (marshal_data ? marshal_data : cc->callback);
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ callback (data1, g_value_get_object (param_values + 1), g_value_get_object (param_values + 2), data2);
+#line 2849 "DataCollection.c"
+}
+
+
+static void data_collection_real_items_altered (DataCollection* self, GeeMap* items) {
+#line 130 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (GEE_IS_MAP (items));
+#line 2856 "DataCollection.c"
+}
+
+
+static void data_collection_real_ordering_changed (DataCollection* self) {
+}
+
+
+static void data_collection_real_property_set (DataCollection* self, const gchar* name, GValue* old, GValue* val) {
+#line 140 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (name != NULL);
+#line 140 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (val != NULL);
+#line 2869 "DataCollection.c"
+}
+
+
+static void g_cclosure_user_marshal_VOID__STRING_BOXED_BOXED (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data) {
+ typedef void (*GMarshalFunc_VOID__STRING_BOXED_BOXED) (gpointer data1, const char* arg_1, gpointer arg_2, gpointer arg_3, gpointer data2);
+ register GMarshalFunc_VOID__STRING_BOXED_BOXED callback;
+ register GCClosure * cc;
+ register gpointer data1;
+ register gpointer data2;
+ cc = (GCClosure *) closure;
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (n_param_values == 4);
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (G_CCLOSURE_SWAP_DATA (closure)) {
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ data1 = closure->data;
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ data2 = param_values->data[0].v_pointer;
+#line 2888 "DataCollection.c"
+ } else {
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ data1 = param_values->data[0].v_pointer;
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ data2 = closure->data;
+#line 2894 "DataCollection.c"
+ }
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ callback = (GMarshalFunc_VOID__STRING_BOXED_BOXED) (marshal_data ? marshal_data : cc->callback);
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ callback (data1, g_value_get_string (param_values + 1), g_value_get_boxed (param_values + 2), g_value_get_boxed (param_values + 3), data2);
+#line 2900 "DataCollection.c"
+}
+
+
+static void data_collection_real_property_cleared (DataCollection* self, const gchar* name) {
+#line 144 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (name != NULL);
+#line 2907 "DataCollection.c"
+}
+
+
+static void data_collection_real_frozen (DataCollection* self) {
+}
+
+
+static void data_collection_real_thawed (DataCollection* self) {
+}
+
+
+static void _data_collection_marker_impl_on_items_removed_data_collection_items_removed (DataCollection* _sender, GeeIterable* removed, gpointer self) {
+#line 24 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ data_collection_marker_impl_on_items_removed ((DataCollectionMarkerImpl*) self, removed);
+#line 2922 "DataCollection.c"
+}
+
+
+static gpointer _data_collection_ref0 (gpointer self) {
+#line 16 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ return self ? data_collection_ref (self) : NULL;
+#line 2929 "DataCollection.c"
+}
+
+
+static DataCollectionMarkerImpl* data_collection_marker_impl_construct (GType object_type, DataCollection* owner) {
+ DataCollectionMarkerImpl * self = NULL;
+ DataCollection* _tmp0_ = NULL;
+ DataCollection* _tmp1_ = NULL;
+ DataCollection* _tmp2_ = NULL;
+#line 15 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_val_if_fail (IS_DATA_COLLECTION (owner), NULL);
+#line 15 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ self = (DataCollectionMarkerImpl*) g_object_new (object_type, NULL);
+#line 16 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp0_ = owner;
+#line 16 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp1_ = _data_collection_ref0 (_tmp0_);
+#line 16 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _data_collection_unref0 (self->owner);
+#line 16 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ self->owner = _tmp1_;
+#line 20 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp2_ = owner;
+#line 20 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_signal_connect_object (_tmp2_, "items-removed", (GCallback) _data_collection_marker_impl_on_items_removed_data_collection_items_removed, self, 0);
+#line 15 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ return self;
+#line 2956 "DataCollection.c"
+}
+
+
+static DataCollectionMarkerImpl* data_collection_marker_impl_new (DataCollection* owner) {
+#line 15 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ return data_collection_marker_impl_construct (DATA_COLLECTION_TYPE_MARKER_IMPL, owner);
+#line 2963 "DataCollection.c"
+}
+
+
+static void data_collection_marker_impl_real_mark (Marker* base, DataObject* object) {
+ DataCollectionMarkerImpl * self;
+ DataCollection* _tmp0_ = NULL;
+ DataObject* _tmp1_ = NULL;
+ gboolean _tmp2_ = FALSE;
+ GeeHashSet* _tmp3_ = NULL;
+ DataObject* _tmp4_ = NULL;
+#line 27 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_COLLECTION_TYPE_MARKER_IMPL, DataCollectionMarkerImpl);
+#line 27 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (IS_DATA_OBJECT (object));
+#line 28 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp0_ = self->owner;
+#line 28 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp1_ = object;
+#line 28 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp2_ = data_collection_internal_contains (_tmp0_, _tmp1_);
+#line 28 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _vala_assert (_tmp2_, "owner.internal_contains(object)");
+#line 30 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp3_ = self->marked;
+#line 30 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp4_ = object;
+#line 30 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp4_);
+#line 2992 "DataCollection.c"
+}
+
+
+static void data_collection_marker_impl_real_unmark (Marker* base, DataObject* object) {
+ DataCollectionMarkerImpl * self;
+ DataCollection* _tmp0_ = NULL;
+ DataObject* _tmp1_ = NULL;
+ gboolean _tmp2_ = FALSE;
+ GeeHashSet* _tmp3_ = NULL;
+ DataObject* _tmp4_ = NULL;
+#line 33 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_COLLECTION_TYPE_MARKER_IMPL, DataCollectionMarkerImpl);
+#line 33 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (IS_DATA_OBJECT (object));
+#line 34 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp0_ = self->owner;
+#line 34 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp1_ = object;
+#line 34 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp2_ = data_collection_internal_contains (_tmp0_, _tmp1_);
+#line 34 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _vala_assert (_tmp2_, "owner.internal_contains(object)");
+#line 36 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp3_ = self->marked;
+#line 36 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp4_ = object;
+#line 36 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp4_);
+#line 3021 "DataCollection.c"
+}
+
+
+static gboolean data_collection_marker_impl_real_toggle (Marker* base, DataObject* object) {
+ DataCollectionMarkerImpl * self;
+ gboolean result = FALSE;
+ DataCollection* _tmp0_ = NULL;
+ DataObject* _tmp1_ = NULL;
+ gboolean _tmp2_ = FALSE;
+ GeeHashSet* _tmp3_ = NULL;
+ DataObject* _tmp4_ = NULL;
+ gboolean _tmp5_ = FALSE;
+ GeeHashSet* _tmp10_ = NULL;
+ DataObject* _tmp11_ = NULL;
+ gboolean _tmp12_ = FALSE;
+#line 39 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_COLLECTION_TYPE_MARKER_IMPL, DataCollectionMarkerImpl);
+#line 39 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE);
+#line 40 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp0_ = self->owner;
+#line 40 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp1_ = object;
+#line 40 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp2_ = data_collection_internal_contains (_tmp0_, _tmp1_);
+#line 40 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _vala_assert (_tmp2_, "owner.internal_contains(object)");
+#line 42 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp3_ = self->marked;
+#line 42 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp4_ = object;
+#line 42 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp5_ = gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp4_);
+#line 42 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (_tmp5_) {
+#line 3057 "DataCollection.c"
+ GeeHashSet* _tmp6_ = NULL;
+ DataObject* _tmp7_ = NULL;
+#line 43 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp6_ = self->marked;
+#line 43 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp7_ = object;
+#line 43 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp7_);
+#line 3066 "DataCollection.c"
+ } else {
+ GeeHashSet* _tmp8_ = NULL;
+ DataObject* _tmp9_ = NULL;
+#line 45 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp8_ = self->marked;
+#line 45 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp9_ = object;
+#line 45 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp9_);
+#line 3076 "DataCollection.c"
+ }
+#line 48 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp10_ = self->marked;
+#line 48 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp11_ = object;
+#line 48 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp12_ = gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp11_);
+#line 48 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ result = _tmp12_;
+#line 48 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ return result;
+#line 3088 "DataCollection.c"
+}
+
+
+static void data_collection_marker_impl_real_mark_many (Marker* base, GeeCollection* list) {
+ DataCollectionMarkerImpl * self;
+#line 51 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_COLLECTION_TYPE_MARKER_IMPL, DataCollectionMarkerImpl);
+#line 51 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (GEE_IS_COLLECTION (list));
+#line 3098 "DataCollection.c"
+ {
+ GeeIterator* _object_it = NULL;
+ GeeCollection* _tmp0_ = NULL;
+ GeeIterator* _tmp1_ = NULL;
+#line 52 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp0_ = list;
+#line 52 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ITERABLE, GeeIterable));
+#line 52 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _object_it = _tmp1_;
+#line 52 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ while (TRUE) {
+#line 3111 "DataCollection.c"
+ GeeIterator* _tmp2_ = NULL;
+ gboolean _tmp3_ = FALSE;
+ DataObject* object = NULL;
+ GeeIterator* _tmp4_ = NULL;
+ gpointer _tmp5_ = NULL;
+ DataCollection* _tmp6_ = NULL;
+ DataObject* _tmp7_ = NULL;
+ gboolean _tmp8_ = FALSE;
+ GeeHashSet* _tmp9_ = NULL;
+ DataObject* _tmp10_ = NULL;
+#line 52 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp2_ = _object_it;
+#line 52 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp3_ = gee_iterator_next (_tmp2_);
+#line 52 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (!_tmp3_) {
+#line 52 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ break;
+#line 3130 "DataCollection.c"
+ }
+#line 52 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp4_ = _object_it;
+#line 52 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp5_ = gee_iterator_get (_tmp4_);
+#line 52 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ object = (DataObject*) _tmp5_;
+#line 53 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp6_ = self->owner;
+#line 53 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp7_ = object;
+#line 53 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp8_ = data_collection_internal_contains (_tmp6_, _tmp7_);
+#line 53 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _vala_assert (_tmp8_, "owner.internal_contains(object)");
+#line 55 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp9_ = self->marked;
+#line 55 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp10_ = object;
+#line 55 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp10_);
+#line 52 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _g_object_unref0 (object);
+#line 3154 "DataCollection.c"
+ }
+#line 52 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _g_object_unref0 (_object_it);
+#line 3158 "DataCollection.c"
+ }
+}
+
+
+static void data_collection_marker_impl_real_unmark_many (Marker* base, GeeCollection* list) {
+ DataCollectionMarkerImpl * self;
+#line 59 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_COLLECTION_TYPE_MARKER_IMPL, DataCollectionMarkerImpl);
+#line 59 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (GEE_IS_COLLECTION (list));
+#line 3169 "DataCollection.c"
+ {
+ GeeIterator* _object_it = NULL;
+ GeeCollection* _tmp0_ = NULL;
+ GeeIterator* _tmp1_ = NULL;
+#line 60 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp0_ = list;
+#line 60 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ITERABLE, GeeIterable));
+#line 60 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _object_it = _tmp1_;
+#line 60 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ while (TRUE) {
+#line 3182 "DataCollection.c"
+ GeeIterator* _tmp2_ = NULL;
+ gboolean _tmp3_ = FALSE;
+ DataObject* object = NULL;
+ GeeIterator* _tmp4_ = NULL;
+ gpointer _tmp5_ = NULL;
+ DataCollection* _tmp6_ = NULL;
+ DataObject* _tmp7_ = NULL;
+ gboolean _tmp8_ = FALSE;
+ GeeHashSet* _tmp9_ = NULL;
+ DataObject* _tmp10_ = NULL;
+#line 60 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp2_ = _object_it;
+#line 60 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp3_ = gee_iterator_next (_tmp2_);
+#line 60 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (!_tmp3_) {
+#line 60 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ break;
+#line 3201 "DataCollection.c"
+ }
+#line 60 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp4_ = _object_it;
+#line 60 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp5_ = gee_iterator_get (_tmp4_);
+#line 60 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ object = (DataObject*) _tmp5_;
+#line 61 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp6_ = self->owner;
+#line 61 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp7_ = object;
+#line 61 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp8_ = data_collection_internal_contains (_tmp6_, _tmp7_);
+#line 61 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _vala_assert (_tmp8_, "owner.internal_contains(object)");
+#line 63 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp9_ = self->marked;
+#line 63 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp10_ = object;
+#line 63 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp10_);
+#line 60 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _g_object_unref0 (object);
+#line 3225 "DataCollection.c"
+ }
+#line 60 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _g_object_unref0 (_object_it);
+#line 3229 "DataCollection.c"
+ }
+}
+
+
+static void data_collection_marker_impl_real_mark_all (Marker* base) {
+ DataCollectionMarkerImpl * self;
+#line 67 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_COLLECTION_TYPE_MARKER_IMPL, DataCollectionMarkerImpl);
+#line 3238 "DataCollection.c"
+ {
+ GeeIterator* _object_it = NULL;
+ DataCollection* _tmp0_ = NULL;
+ GeeCollection* _tmp1_ = NULL;
+ GeeCollection* _tmp2_ = NULL;
+ GeeIterator* _tmp3_ = NULL;
+ GeeIterator* _tmp4_ = NULL;
+#line 68 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp0_ = self->owner;
+#line 68 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp1_ = data_collection_get_all (_tmp0_);
+#line 68 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp2_ = _tmp1_;
+#line 68 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable));
+#line 68 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp4_ = _tmp3_;
+#line 68 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _g_object_unref0 (_tmp2_);
+#line 68 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _object_it = _tmp4_;
+#line 68 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ while (TRUE) {
+#line 3262 "DataCollection.c"
+ GeeIterator* _tmp5_ = NULL;
+ gboolean _tmp6_ = FALSE;
+ DataObject* object = NULL;
+ GeeIterator* _tmp7_ = NULL;
+ gpointer _tmp8_ = NULL;
+ GeeHashSet* _tmp9_ = NULL;
+ DataObject* _tmp10_ = NULL;
+#line 68 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp5_ = _object_it;
+#line 68 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp6_ = gee_iterator_next (_tmp5_);
+#line 68 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (!_tmp6_) {
+#line 68 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ break;
+#line 3278 "DataCollection.c"
+ }
+#line 68 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp7_ = _object_it;
+#line 68 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp8_ = gee_iterator_get (_tmp7_);
+#line 68 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ object = (DataObject*) _tmp8_;
+#line 69 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp9_ = self->marked;
+#line 69 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp10_ = object;
+#line 69 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp10_);
+#line 68 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _g_object_unref0 (object);
+#line 3294 "DataCollection.c"
+ }
+#line 68 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _g_object_unref0 (_object_it);
+#line 3298 "DataCollection.c"
+ }
+}
+
+
+static gint data_collection_marker_impl_real_get_count (Marker* base) {
+ DataCollectionMarkerImpl * self;
+ gint result = 0;
+ gint _tmp0_ = 0;
+ GeeHashSet* _tmp1_ = NULL;
+#line 72 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_COLLECTION_TYPE_MARKER_IMPL, DataCollectionMarkerImpl);
+#line 73 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp1_ = self->marked;
+#line 73 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (_tmp1_ != NULL) {
+#line 3314 "DataCollection.c"
+ GeeHashSet* _tmp2_ = NULL;
+ gint _tmp3_ = 0;
+ gint _tmp4_ = 0;
+#line 73 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp2_ = self->marked;
+#line 73 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp3_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection));
+#line 73 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp4_ = _tmp3_;
+#line 73 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp0_ = _tmp4_;
+#line 3326 "DataCollection.c"
+ } else {
+ gint _tmp5_ = 0;
+#line 73 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp5_ = self->freeze_count;
+#line 73 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp0_ = _tmp5_;
+#line 3333 "DataCollection.c"
+ }
+#line 73 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ result = _tmp0_;
+#line 73 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ return result;
+#line 3339 "DataCollection.c"
+}
+
+
+static GeeCollection* data_collection_marker_impl_real_get_all (Marker* base) {
+ DataCollectionMarkerImpl * self;
+ GeeCollection* result = NULL;
+ GeeArrayList* copy = NULL;
+ GeeArrayList* _tmp0_ = NULL;
+ GeeHashSet* _tmp1_ = NULL;
+#line 76 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_COLLECTION_TYPE_MARKER_IMPL, DataCollectionMarkerImpl);
+#line 77 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp0_ = gee_array_list_new (TYPE_DATA_OBJECT, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL);
+#line 77 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ copy = _tmp0_;
+#line 78 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp1_ = self->marked;
+#line 78 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ gee_array_list_add_all (copy, G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection));
+#line 80 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ result = G_TYPE_CHECK_INSTANCE_CAST (copy, GEE_TYPE_COLLECTION, GeeCollection);
+#line 80 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ return result;
+#line 3363 "DataCollection.c"
+}
+
+
+static void data_collection_marker_impl_on_items_removed (DataCollectionMarkerImpl* self, GeeIterable* removed) {
+#line 83 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (DATA_COLLECTION_IS_MARKER_IMPL (self));
+#line 83 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (GEE_IS_ITERABLE (removed));
+#line 3372 "DataCollection.c"
+ {
+ GeeIterator* _object_it = NULL;
+ GeeIterable* _tmp0_ = NULL;
+ GeeIterator* _tmp1_ = NULL;
+#line 84 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp0_ = removed;
+#line 84 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp1_ = gee_iterable_iterator (_tmp0_);
+#line 84 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _object_it = _tmp1_;
+#line 84 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ while (TRUE) {
+#line 3385 "DataCollection.c"
+ GeeIterator* _tmp2_ = NULL;
+ gboolean _tmp3_ = FALSE;
+ DataObject* object = NULL;
+ GeeIterator* _tmp4_ = NULL;
+ gpointer _tmp5_ = NULL;
+ GeeHashSet* _tmp6_ = NULL;
+ DataObject* _tmp7_ = NULL;
+#line 84 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp2_ = _object_it;
+#line 84 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp3_ = gee_iterator_next (_tmp2_);
+#line 84 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (!_tmp3_) {
+#line 84 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ break;
+#line 3401 "DataCollection.c"
+ }
+#line 84 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp4_ = _object_it;
+#line 84 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp5_ = gee_iterator_get (_tmp4_);
+#line 84 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ object = (DataObject*) _tmp5_;
+#line 85 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp6_ = self->marked;
+#line 85 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp7_ = object;
+#line 85 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp7_);
+#line 84 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _g_object_unref0 (object);
+#line 3417 "DataCollection.c"
+ }
+#line 84 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _g_object_unref0 (_object_it);
+#line 3421 "DataCollection.c"
+ }
+}
+
+
+static void data_collection_marker_impl_freeze (DataCollectionMarkerImpl* self) {
+ DataCollection* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+#line 91 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (DATA_COLLECTION_IS_MARKER_IMPL (self));
+#line 92 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp0_ = self->owner;
+#line 92 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_signal_parse_name ("items-removed", TYPE_DATA_COLLECTION, &_tmp1_, NULL, FALSE);
+#line 92 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _data_collection_marker_impl_on_items_removed_data_collection_items_removed, self);
+#line 3437 "DataCollection.c"
+}
+
+
+static void data_collection_marker_impl_finished (DataCollectionMarkerImpl* self) {
+ GeeHashSet* _tmp0_ = NULL;
+#line 95 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (DATA_COLLECTION_IS_MARKER_IMPL (self));
+#line 96 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp0_ = self->marked;
+#line 96 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (_tmp0_ != NULL) {
+#line 3449 "DataCollection.c"
+ GeeHashSet* _tmp1_ = NULL;
+ gint _tmp2_ = 0;
+ gint _tmp3_ = 0;
+#line 97 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp1_ = self->marked;
+#line 97 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp2_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection));
+#line 97 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp3_ = _tmp2_;
+#line 97 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ self->freeze_count = _tmp3_;
+#line 3461 "DataCollection.c"
+ }
+#line 99 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _g_object_unref0 (self->marked);
+#line 99 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ self->marked = NULL;
+#line 3467 "DataCollection.c"
+}
+
+
+static gboolean data_collection_marker_impl_is_valid (DataCollectionMarkerImpl* self, DataCollection* collection) {
+ gboolean result = FALSE;
+ gboolean _tmp0_ = FALSE;
+ DataCollection* _tmp1_ = NULL;
+ DataCollection* _tmp2_ = NULL;
+#line 102 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_val_if_fail (DATA_COLLECTION_IS_MARKER_IMPL (self), FALSE);
+#line 102 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_val_if_fail (IS_DATA_COLLECTION (collection), FALSE);
+#line 103 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp1_ = collection;
+#line 103 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp2_ = self->owner;
+#line 103 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (_tmp1_ == _tmp2_) {
+#line 3486 "DataCollection.c"
+ GeeHashSet* _tmp3_ = NULL;
+#line 103 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp3_ = self->marked;
+#line 103 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp0_ = _tmp3_ != NULL;
+#line 3492 "DataCollection.c"
+ } else {
+#line 103 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp0_ = FALSE;
+#line 3496 "DataCollection.c"
+ }
+#line 103 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ result = _tmp0_;
+#line 103 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ return result;
+#line 3502 "DataCollection.c"
+}
+
+
+static void data_collection_marker_impl_class_init (DataCollectionMarkerImplClass * klass) {
+#line 10 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ data_collection_marker_impl_parent_class = g_type_class_peek_parent (klass);
+#line 10 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ G_OBJECT_CLASS (klass)->finalize = data_collection_marker_impl_finalize;
+#line 3511 "DataCollection.c"
+}
+
+
+static void data_collection_marker_impl_marker_interface_init (MarkerIface * iface) {
+#line 10 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ data_collection_marker_impl_marker_parent_iface = g_type_interface_peek_parent (iface);
+#line 10 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ iface->mark = (void (*)(Marker*, DataObject*)) data_collection_marker_impl_real_mark;
+#line 10 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ iface->unmark = (void (*)(Marker*, DataObject*)) data_collection_marker_impl_real_unmark;
+#line 10 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ iface->toggle = (gboolean (*)(Marker*, DataObject*)) data_collection_marker_impl_real_toggle;
+#line 10 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ iface->mark_many = (void (*)(Marker*, GeeCollection*)) data_collection_marker_impl_real_mark_many;
+#line 10 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ iface->unmark_many = (void (*)(Marker*, GeeCollection*)) data_collection_marker_impl_real_unmark_many;
+#line 10 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ iface->mark_all = (void (*)(Marker*)) data_collection_marker_impl_real_mark_all;
+#line 10 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ iface->get_count = (gint (*)(Marker*)) data_collection_marker_impl_real_get_count;
+#line 10 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ iface->get_all = (GeeCollection* (*)(Marker*)) data_collection_marker_impl_real_get_all;
+#line 3534 "DataCollection.c"
+}
+
+
+static void data_collection_marker_impl_instance_init (DataCollectionMarkerImpl * self) {
+ GeeHashSet* _tmp0_ = NULL;
+#line 12 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp0_ = gee_hash_set_new (TYPE_DATA_OBJECT, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL);
+#line 12 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ self->marked = _tmp0_;
+#line 13 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ self->freeze_count = 0;
+#line 3546 "DataCollection.c"
+}
+
+
+static void data_collection_marker_impl_finalize (GObject* obj) {
+ DataCollectionMarkerImpl * self;
+ DataCollection* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+#line 10 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, DATA_COLLECTION_TYPE_MARKER_IMPL, DataCollectionMarkerImpl);
+#line 24 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp0_ = self->owner;
+#line 24 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_signal_parse_name ("items-removed", TYPE_DATA_COLLECTION, &_tmp1_, NULL, FALSE);
+#line 24 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _data_collection_marker_impl_on_items_removed_data_collection_items_removed, self);
+#line 11 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _data_collection_unref0 (self->owner);
+#line 12 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _g_object_unref0 (self->marked);
+#line 10 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ G_OBJECT_CLASS (data_collection_marker_impl_parent_class)->finalize (obj);
+#line 3568 "DataCollection.c"
+}
+
+
+static GType data_collection_marker_impl_get_type (void) {
+ static volatile gsize data_collection_marker_impl_type_id__volatile = 0;
+ if (g_once_init_enter (&data_collection_marker_impl_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (DataCollectionMarkerImplClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_collection_marker_impl_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataCollectionMarkerImpl), 0, (GInstanceInitFunc) data_collection_marker_impl_instance_init, NULL };
+ static const GInterfaceInfo marker_info = { (GInterfaceInitFunc) data_collection_marker_impl_marker_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType data_collection_marker_impl_type_id;
+ data_collection_marker_impl_type_id = g_type_register_static (G_TYPE_OBJECT, "DataCollectionMarkerImpl", &g_define_type_info, 0);
+ g_type_add_interface_static (data_collection_marker_impl_type_id, TYPE_MARKER, &marker_info);
+ g_once_init_leave (&data_collection_marker_impl_type_id__volatile, data_collection_marker_impl_type_id);
+ }
+ return data_collection_marker_impl_type_id__volatile;
+}
+
+
+static void value_data_collection_init (GValue* value) {
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ value->data[0].v_pointer = NULL;
+#line 3589 "DataCollection.c"
+}
+
+
+static void value_data_collection_free_value (GValue* value) {
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (value->data[0].v_pointer) {
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ data_collection_unref (value->data[0].v_pointer);
+#line 3598 "DataCollection.c"
+ }
+}
+
+
+static void value_data_collection_copy_value (const GValue* src_value, GValue* dest_value) {
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (src_value->data[0].v_pointer) {
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ dest_value->data[0].v_pointer = data_collection_ref (src_value->data[0].v_pointer);
+#line 3608 "DataCollection.c"
+ } else {
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ dest_value->data[0].v_pointer = NULL;
+#line 3612 "DataCollection.c"
+ }
+}
+
+
+static gpointer value_data_collection_peek_pointer (const GValue* value) {
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ return value->data[0].v_pointer;
+#line 3620 "DataCollection.c"
+}
+
+
+static gchar* value_data_collection_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (collect_values[0].v_pointer) {
+#line 3627 "DataCollection.c"
+ DataCollection* object;
+ object = collect_values[0].v_pointer;
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (object->parent_instance.g_class == NULL) {
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 3634 "DataCollection.c"
+ } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.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 3638 "DataCollection.c"
+ }
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ value->data[0].v_pointer = data_collection_ref (object);
+#line 3642 "DataCollection.c"
+ } else {
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ value->data[0].v_pointer = NULL;
+#line 3646 "DataCollection.c"
+ }
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ return NULL;
+#line 3650 "DataCollection.c"
+}
+
+
+static gchar* value_data_collection_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+ DataCollection** object_p;
+ object_p = collect_values[0].v_pointer;
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (!object_p) {
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
+#line 3661 "DataCollection.c"
+ }
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (!value->data[0].v_pointer) {
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ *object_p = NULL;
+#line 3667 "DataCollection.c"
+ } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ *object_p = value->data[0].v_pointer;
+#line 3671 "DataCollection.c"
+ } else {
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ *object_p = data_collection_ref (value->data[0].v_pointer);
+#line 3675 "DataCollection.c"
+ }
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ return NULL;
+#line 3679 "DataCollection.c"
+}
+
+
+GParamSpec* param_spec_data_collection (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+ ParamSpecDataCollection* spec;
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_val_if_fail (g_type_is_a (object_type, TYPE_DATA_COLLECTION), NULL);
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ G_PARAM_SPEC (spec)->value_type = object_type;
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ return G_PARAM_SPEC (spec);
+#line 3693 "DataCollection.c"
+}
+
+
+gpointer value_get_data_collection (const GValue* value) {
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_DATA_COLLECTION), NULL);
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ return value->data[0].v_pointer;
+#line 3702 "DataCollection.c"
+}
+
+
+void value_set_data_collection (GValue* value, gpointer v_object) {
+ DataCollection* old;
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_DATA_COLLECTION));
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ old = value->data[0].v_pointer;
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (v_object) {
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_DATA_COLLECTION));
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ value->data[0].v_pointer = v_object;
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ data_collection_ref (value->data[0].v_pointer);
+#line 3722 "DataCollection.c"
+ } else {
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ value->data[0].v_pointer = NULL;
+#line 3726 "DataCollection.c"
+ }
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (old) {
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ data_collection_unref (old);
+#line 3732 "DataCollection.c"
+ }
+}
+
+
+void value_take_data_collection (GValue* value, gpointer v_object) {
+ DataCollection* old;
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_DATA_COLLECTION));
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ old = value->data[0].v_pointer;
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (v_object) {
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_DATA_COLLECTION));
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ value->data[0].v_pointer = v_object;
+#line 3751 "DataCollection.c"
+ } else {
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ value->data[0].v_pointer = NULL;
+#line 3755 "DataCollection.c"
+ }
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (old) {
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ data_collection_unref (old);
+#line 3761 "DataCollection.c"
+ }
+}
+
+
+static void data_collection_class_init (DataCollectionClass * klass) {
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ data_collection_parent_class = g_type_class_peek_parent (klass);
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ ((DataCollectionClass *) klass)->finalize = data_collection_finalize;
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_type_class_add_private (klass, sizeof (DataCollectionPrivate));
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ ((DataCollectionClass *) klass)->to_string = data_collection_real_to_string;
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ ((DataCollectionClass *) klass)->notify_items_added = data_collection_real_notify_items_added;
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ ((DataCollectionClass *) klass)->notify_items_removed = data_collection_real_notify_items_removed;
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ ((DataCollectionClass *) klass)->notify_contents_altered = data_collection_real_notify_contents_altered;
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ ((DataCollectionClass *) klass)->notify_items_altered = data_collection_real_notify_items_altered;
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ ((DataCollectionClass *) klass)->notify_ordering_changed = data_collection_real_notify_ordering_changed;
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ ((DataCollectionClass *) klass)->notify_property_set = data_collection_real_notify_property_set;
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ ((DataCollectionClass *) klass)->notify_property_cleared = data_collection_real_notify_property_cleared;
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ ((DataCollectionClass *) klass)->valid_type = data_collection_real_valid_type;
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ ((DataCollectionClass *) klass)->set_comparator = data_collection_real_set_comparator;
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ ((DataCollectionClass *) klass)->reset_comparator = data_collection_real_reset_comparator;
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ ((DataCollectionClass *) klass)->get_all = data_collection_real_get_all;
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ ((DataCollectionClass *) klass)->get_count = data_collection_real_get_count;
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ ((DataCollectionClass *) klass)->get_at = data_collection_real_get_at;
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ ((DataCollectionClass *) klass)->index_of = data_collection_real_index_of;
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ ((DataCollectionClass *) klass)->contains = data_collection_real_contains;
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ ((DataCollectionClass *) klass)->add = data_collection_real_add;
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ ((DataCollectionClass *) klass)->add_many = data_collection_real_add_many;
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ ((DataCollectionClass *) klass)->remove_marked = data_collection_real_remove_marked;
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ ((DataCollectionClass *) klass)->clear = data_collection_real_clear;
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ ((DataCollectionClass *) klass)->close = data_collection_real_close;
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ ((DataCollectionClass *) klass)->notify_frozen = data_collection_real_notify_frozen;
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ ((DataCollectionClass *) klass)->notify_thawed = data_collection_real_notify_thawed;
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ ((DataCollectionClass *) klass)->items_added = data_collection_real_items_added;
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ ((DataCollectionClass *) klass)->items_removed = data_collection_real_items_removed;
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ ((DataCollectionClass *) klass)->contents_altered = data_collection_real_contents_altered;
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ ((DataCollectionClass *) klass)->items_altered = data_collection_real_items_altered;
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ ((DataCollectionClass *) klass)->ordering_changed = data_collection_real_ordering_changed;
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ ((DataCollectionClass *) klass)->property_set = data_collection_real_property_set;
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ ((DataCollectionClass *) klass)->property_cleared = data_collection_real_property_cleared;
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ ((DataCollectionClass *) klass)->frozen = data_collection_real_frozen;
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ ((DataCollectionClass *) klass)->thawed = data_collection_real_thawed;
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_signal_new ("items_added", TYPE_DATA_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DataCollectionClass, items_added), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, GEE_TYPE_ITERABLE);
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_signal_new ("items_removed", TYPE_DATA_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DataCollectionClass, items_removed), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, GEE_TYPE_ITERABLE);
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_signal_new ("contents_altered", TYPE_DATA_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DataCollectionClass, contents_altered), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT, G_TYPE_NONE, 2, GEE_TYPE_ITERABLE, GEE_TYPE_ITERABLE);
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_signal_new ("items_altered", TYPE_DATA_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DataCollectionClass, items_altered), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, GEE_TYPE_MAP);
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_signal_new ("ordering_changed", TYPE_DATA_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DataCollectionClass, ordering_changed), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_signal_new ("property_set", TYPE_DATA_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DataCollectionClass, property_set), NULL, NULL, g_cclosure_user_marshal_VOID__STRING_BOXED_BOXED, G_TYPE_NONE, 3, G_TYPE_STRING, G_TYPE_VALUE, G_TYPE_VALUE);
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_signal_new ("property_cleared", TYPE_DATA_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DataCollectionClass, property_cleared), NULL, NULL, g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING);
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_signal_new ("frozen", TYPE_DATA_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DataCollectionClass, frozen), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_signal_new ("thawed", TYPE_DATA_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DataCollectionClass, thawed), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
+#line 3855 "DataCollection.c"
+}
+
+
+static void data_collection_instance_init (DataCollection * self) {
+ DataSet* _tmp0_ = NULL;
+ GeeHashMap* _tmp1_ = NULL;
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ self->priv = DATA_COLLECTION_GET_PRIVATE (self);
+#line 108 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp0_ = data_set_new ();
+#line 108 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ self->priv->dataset = _tmp0_;
+#line 109 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _tmp1_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, G_TYPE_VALUE, (GBoxedCopyFunc) _g_value_dup, _vala_GValue_free, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
+#line 109 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ self->priv->properties = _tmp1_;
+#line 110 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ self->priv->object_ordinal_generator = (gint64) 0;
+#line 111 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ self->priv->notifies_frozen = 0;
+#line 112 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ self->priv->frozen_items_altered = NULL;
+#line 113 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ self->priv->fire_ordering_changed = FALSE;
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ self->ref_count = 1;
+#line 3882 "DataCollection.c"
+}
+
+
+static void data_collection_finalize (DataCollection* obj) {
+ DataCollection * self;
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_DATA_COLLECTION, DataCollection);
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_signal_handlers_destroy (self);
+#line 107 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _g_free0 (self->priv->name);
+#line 108 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _data_set_unref0 (self->priv->dataset);
+#line 109 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _g_object_unref0 (self->priv->properties);
+#line 112 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ _g_object_unref0 (self->priv->frozen_items_altered);
+#line 3900 "DataCollection.c"
+}
+
+
+GType data_collection_get_type (void) {
+ static volatile gsize data_collection_type_id__volatile = 0;
+ if (g_once_init_enter (&data_collection_type_id__volatile)) {
+ static const GTypeValueTable g_define_type_value_table = { value_data_collection_init, value_data_collection_free_value, value_data_collection_copy_value, value_data_collection_peek_pointer, "p", value_data_collection_collect_value, "p", value_data_collection_lcopy_value };
+ static const GTypeInfo g_define_type_info = { sizeof (DataCollectionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_collection_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataCollection), 0, (GInstanceInitFunc) data_collection_instance_init, &g_define_type_value_table };
+ static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
+ GType data_collection_type_id;
+ data_collection_type_id = g_type_register_fundamental (g_type_fundamental_next (), "DataCollection", &g_define_type_info, &g_define_type_fundamental_info, 0);
+ g_once_init_leave (&data_collection_type_id__volatile, data_collection_type_id);
+ }
+ return data_collection_type_id__volatile;
+}
+
+
+gpointer data_collection_ref (gpointer instance) {
+ DataCollection* self;
+ self = instance;
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_atomic_int_inc (&self->ref_count);
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ return instance;
+#line 3925 "DataCollection.c"
+}
+
+
+void data_collection_unref (gpointer instance) {
+ DataCollection* self;
+ self = instance;
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ if (g_atomic_int_dec_and_test (&self->ref_count)) {
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ DATA_COLLECTION_GET_CLASS (self)->finalize (self);
+#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala"
+ g_type_free_instance ((GTypeInstance *) self);
+#line 3938 "DataCollection.c"
+ }
+}
+
+
+