summaryrefslogtreecommitdiff
path: root/src/core/ContainerSourceCollection.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/ContainerSourceCollection.c')
-rw-r--r--src/core/ContainerSourceCollection.c1678
1 files changed, 891 insertions, 787 deletions
diff --git a/src/core/ContainerSourceCollection.c b/src/core/ContainerSourceCollection.c
index 7bd5826..f9f30cb 100644
--- a/src/core/ContainerSourceCollection.c
+++ b/src/core/ContainerSourceCollection.c
@@ -1,4 +1,4 @@
-/* ContainerSourceCollection.c generated by valac 0.36.6, the Vala compiler
+/* ContainerSourceCollection.c generated by valac 0.40.4, the Vala compiler
* generated from ContainerSourceCollection.vala, do not modify */
/* Copyright 2016 Software Freedom Conservancy Inc.
@@ -15,6 +15,7 @@
/* when they hold no items), they should use the evaporate() method, which will either destroy*/
/* the DataSource or hold it in the tank (if backlinks are outstanding).*/
+
#include <glib.h>
#include <glib-object.h>
#include <stdlib.h>
@@ -160,9 +161,9 @@ enum {
CONTAINER_SOURCE_COLLECTION_CONTAINER_CONTENTS_REMOVED_SIGNAL,
CONTAINER_SOURCE_COLLECTION_CONTAINER_CONTENTS_ALTERED_SIGNAL,
CONTAINER_SOURCE_COLLECTION_BACKLINK_TO_CONTAINER_REMOVED_SIGNAL,
- CONTAINER_SOURCE_COLLECTION_LAST_SIGNAL
+ CONTAINER_SOURCE_COLLECTION_NUM_SIGNALS
};
-static guint container_source_collection_signals[CONTAINER_SOURCE_COLLECTION_LAST_SIGNAL] = {0};
+static guint container_source_collection_signals[CONTAINER_SOURCE_COLLECTION_NUM_SIGNALS] = {0};
#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; }
@@ -300,17 +301,29 @@ static gpointer container_source_collection_parent_class = 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);
+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);
+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;
@@ -318,124 +331,226 @@ GType source_collection_get_type (void) G_GNUC_CONST;
GType data_source_get_type (void) G_GNUC_CONST;
gpointer source_backlink_ref (gpointer instance);
void source_backlink_unref (gpointer instance);
-GParamSpec* param_spec_source_backlink (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_source_backlink (GValue* value, gpointer v_object);
-void value_take_source_backlink (GValue* value, gpointer v_object);
+GParamSpec* param_spec_source_backlink (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_source_backlink (GValue* value,
+ gpointer v_object);
+void value_take_source_backlink (GValue* value,
+ gpointer v_object);
gpointer value_get_source_backlink (const GValue* value);
GType source_backlink_get_type (void) G_GNUC_CONST;
GType database_source_collection_get_type (void) G_GNUC_CONST;
GType container_source_collection_get_type (void) G_GNUC_CONST;
GType container_source_get_type (void) G_GNUC_CONST;
#define CONTAINER_SOURCE_COLLECTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionPrivate))
-enum {
- CONTAINER_SOURCE_COLLECTION_DUMMY_PROPERTY
-};
void container_source_collection_detach_all_collections (ContainerSourceCollection* self);
-ContainerSourceCollection* container_source_collection_construct (GType object_type, const gchar* backlink_name, const gchar* name, GetSourceDatabaseKey source_key_func, void* source_key_func_target);
-DatabaseSourceCollection* database_source_collection_construct (GType object_type, const gchar* name, GetSourceDatabaseKey source_key_func, void* source_key_func_target);
-static void container_source_collection_real_notify_backlink_removed (SourceCollection* base, SourceBacklink* backlink, GeeCollection* sources);
-void source_collection_notify_backlink_removed (SourceCollection* self, SourceBacklink* backlink, GeeCollection* sources);
-ContainerSource* container_source_collection_convert_backlink_to_container (ContainerSourceCollection* self, SourceBacklink* backlink);
-void container_source_collection_notify_backlink_to_container_removed (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* sources);
-void container_source_collection_notify_container_contents_added (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* added, gboolean relinked);
-static void container_source_collection_real_notify_container_contents_added (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* added, gboolean relinked);
-void source_collection_relink (SourceCollection* self, DataSource* source);
-void container_source_collection_notify_container_contents_removed (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* removed, gboolean unlinked);
-static void container_source_collection_real_notify_container_contents_removed (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* removed, gboolean unlinked);
-void container_source_collection_notify_container_contents_altered (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* added, gboolean relinked, GeeCollection* removed, gboolean unlinked);
-static void container_source_collection_real_notify_container_contents_altered (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* added, gboolean relinked, GeeCollection* removed, gboolean unlinked);
-static void container_source_collection_real_notify_backlink_to_container_removed (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* sources);
-GeeCollection* container_source_collection_get_containers_holding_source (ContainerSourceCollection* self, DataSource* source);
-static GeeCollection* container_source_collection_real_get_containers_holding_source (ContainerSourceCollection* self, DataSource* source);
-static ContainerSource* container_source_collection_real_convert_backlink_to_container (ContainerSourceCollection* self, SourceBacklink* backlink);
+ContainerSourceCollection* container_source_collection_construct (GType object_type,
+ const gchar* backlink_name,
+ const gchar* name,
+ GetSourceDatabaseKey source_key_func,
+ void* source_key_func_target);
+DatabaseSourceCollection* database_source_collection_construct (GType object_type,
+ const gchar* name,
+ GetSourceDatabaseKey source_key_func,
+ void* source_key_func_target);
+static void container_source_collection_real_notify_backlink_removed (SourceCollection* base,
+ SourceBacklink* backlink,
+ GeeCollection* sources);
+void source_collection_notify_backlink_removed (SourceCollection* self,
+ SourceBacklink* backlink,
+ GeeCollection* sources);
+ContainerSource* container_source_collection_convert_backlink_to_container (ContainerSourceCollection* self,
+ SourceBacklink* backlink);
+void container_source_collection_notify_backlink_to_container_removed (ContainerSourceCollection* self,
+ ContainerSource* container,
+ GeeCollection* sources);
+void container_source_collection_notify_container_contents_added (ContainerSourceCollection* self,
+ ContainerSource* container,
+ GeeCollection* added,
+ gboolean relinked);
+static void container_source_collection_real_notify_container_contents_added (ContainerSourceCollection* self,
+ ContainerSource* container,
+ GeeCollection* added,
+ gboolean relinked);
+void source_collection_relink (SourceCollection* self,
+ DataSource* source);
+void container_source_collection_notify_container_contents_removed (ContainerSourceCollection* self,
+ ContainerSource* container,
+ GeeCollection* removed,
+ gboolean unlinked);
+static void container_source_collection_real_notify_container_contents_removed (ContainerSourceCollection* self,
+ ContainerSource* container,
+ GeeCollection* removed,
+ gboolean unlinked);
+void container_source_collection_notify_container_contents_altered (ContainerSourceCollection* self,
+ ContainerSource* container,
+ GeeCollection* added,
+ gboolean relinked,
+ GeeCollection* removed,
+ gboolean unlinked);
+static void container_source_collection_real_notify_container_contents_altered (ContainerSourceCollection* self,
+ ContainerSource* container,
+ GeeCollection* added,
+ gboolean relinked,
+ GeeCollection* removed,
+ gboolean unlinked);
+static void container_source_collection_real_notify_backlink_to_container_removed (ContainerSourceCollection* self,
+ ContainerSource* container,
+ GeeCollection* sources);
+GeeCollection* container_source_collection_get_containers_holding_source (ContainerSourceCollection* self,
+ DataSource* source);
+static GeeCollection* container_source_collection_real_get_containers_holding_source (ContainerSourceCollection* self,
+ DataSource* source);
+static ContainerSource* container_source_collection_real_convert_backlink_to_container (ContainerSourceCollection* self,
+ SourceBacklink* backlink);
void container_source_collection_freeze_attached_notifications (ContainerSourceCollection* self);
void data_collection_freeze_notifications (DataCollection* self);
void container_source_collection_thaw_attached_notifications (ContainerSourceCollection* self);
void data_collection_thaw_notifications (DataCollection* self);
GeeCollection* container_source_collection_get_holding_tank (ContainerSourceCollection* self);
-void container_source_collection_init_add_unlinked (ContainerSourceCollection* self, ContainerSource* unlinked);
-void container_source_collection_init_add_many_unlinked (ContainerSourceCollection* self, GeeCollection* unlinked);
-gboolean container_source_collection_relink_from_holding_tank (ContainerSourceCollection* self, ContainerSource* source);
-static void container_source_collection_on_contained_sources_unlinking (ContainerSourceCollection* self, GeeCollection* unlinking);
-void data_source_set_backlink (DataSource* self, SourceBacklink* backlink);
+void container_source_collection_init_add_unlinked (ContainerSourceCollection* self,
+ ContainerSource* unlinked);
+void container_source_collection_init_add_many_unlinked (ContainerSourceCollection* self,
+ GeeCollection* unlinked);
+gboolean container_source_collection_relink_from_holding_tank (ContainerSourceCollection* self,
+ ContainerSource* source);
+static void container_source_collection_on_contained_sources_unlinking (ContainerSourceCollection* self,
+ GeeCollection* unlinking);
+void data_source_set_backlink (DataSource* self,
+ SourceBacklink* backlink);
SourceBacklink* container_source_get_backlink (ContainerSource* self);
-void container_source_break_link_many (ContainerSource* self, GeeCollection* sources);
-static void container_source_collection_on_contained_sources_relinked (ContainerSourceCollection* self, GeeCollection* relinked);
-GeeList* data_source_get_backlinks (DataSource* self, const gchar* name);
+void container_source_break_link_many (ContainerSource* self,
+ GeeCollection* sources);
+static void container_source_collection_on_contained_sources_relinked (ContainerSourceCollection* self,
+ GeeCollection* relinked);
+GeeList* data_source_get_backlinks (DataSource* self,
+ const gchar* name);
gchar* data_object_to_string (DataObject* self);
gchar* source_backlink_to_string (SourceBacklink* self);
-void container_source_establish_link_many (ContainerSource* self, GeeCollection* sources);
-static void container_source_collection_on_contained_source_destroyed (ContainerSourceCollection* self, DataSource* source);
+void container_source_establish_link_many (ContainerSource* self,
+ GeeCollection* sources);
+static void container_source_collection_on_contained_source_destroyed (ContainerSourceCollection* self,
+ DataSource* source);
gboolean container_source_has_links (ContainerSource* self);
GType tag_get_type (void) G_GNUC_CONST;
-gboolean data_source_destroy_orphan (DataSource* self, gboolean delete_backing);
-static void container_source_collection_real_notify_item_destroyed (SourceCollection* base, DataSource* source);
-void source_collection_remove_backlink (SourceCollection* self, SourceBacklink* backlink);
-void source_collection_notify_item_destroyed (SourceCollection* self, DataSource* source);
-void container_source_collection_evaporate (ContainerSourceCollection* self, ContainerSource* container);
-gboolean source_collection_has_backlink (SourceCollection* self, SourceBacklink* backlink);
-GeeCollection* source_collection_unlink_marked (SourceCollection* self, Marker* marker, ProgressMonitor monitor, void* monitor_target);
-Marker* data_collection_mark (DataCollection* self, DataObject* object);
+gboolean data_source_destroy_orphan (DataSource* self,
+ gboolean delete_backing);
+static void container_source_collection_real_notify_item_destroyed (SourceCollection* base,
+ DataSource* source);
+void source_collection_remove_backlink (SourceCollection* self,
+ SourceBacklink* backlink);
+void source_collection_notify_item_destroyed (SourceCollection* self,
+ DataSource* source);
+void container_source_collection_evaporate (ContainerSourceCollection* self,
+ ContainerSource* container);
+gboolean source_collection_has_backlink (SourceCollection* self,
+ SourceBacklink* backlink);
+GeeCollection* source_collection_unlink_marked (SourceCollection* self,
+ Marker* marker,
+ ProgressMonitor monitor,
+ void* monitor_target);
+Marker* data_collection_mark (DataCollection* self,
+ DataObject* object);
GType thumbnail_source_get_type (void) G_GNUC_CONST;
GType media_source_get_type (void) G_GNUC_CONST;
-gint source_collection_destroy_marked (SourceCollection* self, Marker* marker, gboolean delete_backing, ProgressMonitor monitor, void* monitor_target, GeeList* not_removed);
-void container_source_collection_attach_collection (ContainerSourceCollection* self, SourceCollection* collection);
+gint source_collection_destroy_marked (SourceCollection* self,
+ Marker* marker,
+ gboolean delete_backing,
+ ProgressMonitor monitor,
+ void* monitor_target,
+ GeeList* not_removed);
+void container_source_collection_attach_collection (ContainerSourceCollection* self,
+ SourceCollection* collection);
gchar* data_collection_to_string (DataCollection* self);
-static void _container_source_collection_on_contained_sources_unlinking_source_collection_items_unlinking (SourceCollection* _sender, GeeCollection* unlinking, gpointer self);
-static void _container_source_collection_on_contained_sources_relinked_source_collection_items_relinked (SourceCollection* _sender, GeeCollection* relinked, gpointer self);
-static void _container_source_collection_on_contained_source_destroyed_source_collection_item_destroyed (SourceCollection* _sender, DataSource* source, gpointer self);
-static void _container_source_collection_on_contained_source_destroyed_source_collection_unlinked_destroyed (SourceCollection* _sender, DataSource* source, gpointer self);
-static void container_source_collection_real_container_contents_added (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* added, gboolean relinked);
-static void g_cclosure_user_marshal_VOID__OBJECT_OBJECT_BOOLEAN (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data);
-static void container_source_collection_real_container_contents_removed (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* removed, gboolean unlinked);
-static void container_source_collection_real_container_contents_altered (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* added, gboolean relinked, GeeCollection* removed, gboolean unlinked);
-static void g_cclosure_user_marshal_VOID__OBJECT_OBJECT_BOOLEAN_OBJECT_BOOLEAN (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data);
-static void container_source_collection_real_backlink_to_container_removed (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* sources);
-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 _container_source_collection_on_contained_sources_unlinking_source_collection_items_unlinking (SourceCollection* _sender,
+ GeeCollection* unlinking,
+ gpointer self);
+static void _container_source_collection_on_contained_sources_relinked_source_collection_items_relinked (SourceCollection* _sender,
+ GeeCollection* relinked,
+ gpointer self);
+static void _container_source_collection_on_contained_source_destroyed_source_collection_item_destroyed (SourceCollection* _sender,
+ DataSource* source,
+ gpointer self);
+static void _container_source_collection_on_contained_source_destroyed_source_collection_unlinked_destroyed (SourceCollection* _sender,
+ DataSource* source,
+ gpointer self);
+static void container_source_collection_real_container_contents_added (ContainerSourceCollection* self,
+ ContainerSource* container,
+ GeeCollection* added,
+ gboolean relinked);
+static void g_cclosure_user_marshal_VOID__OBJECT_OBJECT_BOOLEAN (GClosure * closure,
+ GValue * return_value,
+ guint n_param_values,
+ const GValue * param_values,
+ gpointer invocation_hint,
+ gpointer marshal_data);
+static void container_source_collection_real_container_contents_removed (ContainerSourceCollection* self,
+ ContainerSource* container,
+ GeeCollection* removed,
+ gboolean unlinked);
+static void container_source_collection_real_container_contents_altered (ContainerSourceCollection* self,
+ ContainerSource* container,
+ GeeCollection* added,
+ gboolean relinked,
+ GeeCollection* removed,
+ gboolean unlinked);
+static void g_cclosure_user_marshal_VOID__OBJECT_OBJECT_BOOLEAN_OBJECT_BOOLEAN (GClosure * closure,
+ GValue * return_value,
+ guint n_param_values,
+ const GValue * param_values,
+ gpointer invocation_hint,
+ gpointer marshal_data);
+static void container_source_collection_real_backlink_to_container_removed (ContainerSourceCollection* self,
+ ContainerSource* container,
+ GeeCollection* sources);
+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 container_source_collection_finalize (DataCollection * obj);
-ContainerSourceCollection* container_source_collection_construct (GType object_type, const gchar* backlink_name, const gchar* name, GetSourceDatabaseKey source_key_func, void* source_key_func_target) {
+ContainerSourceCollection*
+container_source_collection_construct (GType object_type,
+ const gchar* backlink_name,
+ const gchar* name,
+ GetSourceDatabaseKey source_key_func,
+ void* source_key_func_target)
+{
ContainerSourceCollection* self = NULL;
- const gchar* _tmp0_;
- GetSourceDatabaseKey _tmp1_;
- void* _tmp1__target;
- const gchar* _tmp2_;
- gchar* _tmp3_;
+ gchar* _tmp0_;
#line 38 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
g_return_val_if_fail (backlink_name != NULL, NULL);
#line 38 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
g_return_val_if_fail (name != NULL, NULL);
#line 40 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp0_ = name;
-#line 40 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp1_ = source_key_func;
-#line 40 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp1__target = source_key_func_target;
-#line 40 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- self = (ContainerSourceCollection*) database_source_collection_construct (object_type, _tmp0_, _tmp1_, _tmp1__target);
+ self = (ContainerSourceCollection*) database_source_collection_construct (object_type, name, source_key_func, source_key_func_target);
#line 42 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp2_ = backlink_name;
-#line 42 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp3_ = g_strdup (_tmp2_);
+ _tmp0_ = g_strdup (backlink_name);
#line 42 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
_g_free0 (self->priv->backlink_name);
#line 42 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- self->priv->backlink_name = _tmp3_;
+ self->priv->backlink_name = _tmp0_;
#line 38 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
return self;
-#line 428 "ContainerSourceCollection.c"
+#line 542 "ContainerSourceCollection.c"
}
-static void container_source_collection_real_notify_backlink_removed (SourceCollection* base, SourceBacklink* backlink, GeeCollection* sources) {
+static void
+container_source_collection_real_notify_backlink_removed (SourceCollection* base,
+ SourceBacklink* backlink,
+ GeeCollection* sources)
+{
ContainerSourceCollection * self;
- SourceBacklink* _tmp0_;
- GeeCollection* _tmp1_;
ContainerSource* container = NULL;
- SourceBacklink* _tmp2_;
- ContainerSource* _tmp3_;
- ContainerSource* _tmp4_;
+ ContainerSource* _tmp0_;
+ ContainerSource* _tmp1_;
#line 49 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection);
#line 49 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
@@ -443,45 +558,36 @@ static void container_source_collection_real_notify_backlink_removed (SourceColl
#line 49 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
g_return_if_fail (GEE_IS_COLLECTION (sources));
#line 51 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp0_ = backlink;
-#line 51 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp1_ = sources;
-#line 51 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- SOURCE_COLLECTION_CLASS (container_source_collection_parent_class)->notify_backlink_removed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection), TYPE_SOURCE_COLLECTION, SourceCollection), _tmp0_, _tmp1_);
-#line 53 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp2_ = backlink;
+ SOURCE_COLLECTION_CLASS (container_source_collection_parent_class)->notify_backlink_removed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection), TYPE_SOURCE_COLLECTION, SourceCollection), backlink, sources);
#line 53 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp3_ = container_source_collection_convert_backlink_to_container (self, _tmp2_);
+ _tmp0_ = container_source_collection_convert_backlink_to_container (self, backlink);
#line 53 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- container = _tmp3_;
+ container = _tmp0_;
#line 54 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp4_ = container;
+ _tmp1_ = container;
#line 54 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- if (_tmp4_ != NULL) {
-#line 462 "ContainerSourceCollection.c"
- ContainerSource* _tmp5_;
- GeeCollection* _tmp6_;
-#line 55 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp5_ = container;
+ if (_tmp1_ != NULL) {
+#line 571 "ContainerSourceCollection.c"
+ ContainerSource* _tmp2_;
#line 55 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp6_ = sources;
+ _tmp2_ = container;
#line 55 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- container_source_collection_notify_backlink_to_container_removed (self, _tmp5_, _tmp6_);
-#line 471 "ContainerSourceCollection.c"
+ container_source_collection_notify_backlink_to_container_removed (self, _tmp2_, sources);
+#line 577 "ContainerSourceCollection.c"
}
#line 49 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
_g_object_unref0 (container);
-#line 475 "ContainerSourceCollection.c"
+#line 581 "ContainerSourceCollection.c"
}
-static void container_source_collection_real_notify_container_contents_added (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* added, gboolean relinked) {
+static void
+container_source_collection_real_notify_container_contents_added (ContainerSourceCollection* self,
+ ContainerSource* container,
+ GeeCollection* added,
+ gboolean relinked)
+{
GeeHashSet* _tmp0_;
- ContainerSource* _tmp1_;
- gboolean _tmp2_;
- ContainerSource* _tmp8_;
- GeeCollection* _tmp9_;
- gboolean _tmp10_;
#line 58 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
g_return_if_fail (IS_CONTAINER_SOURCE (container));
#line 58 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
@@ -489,92 +595,81 @@ static void container_source_collection_real_notify_container_contents_added (Co
#line 61 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
_tmp0_ = self->priv->holding_tank;
#line 61 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp1_ = container;
-#line 61 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp2_ = gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp1_);
-#line 61 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- if (_tmp2_) {
-#line 498 "ContainerSourceCollection.c"
+ if (gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), container)) {
+#line 600 "ContainerSourceCollection.c"
gboolean removed = FALSE;
- GeeHashSet* _tmp3_;
- ContainerSource* _tmp4_;
- gboolean _tmp5_;
- gboolean _tmp6_;
- ContainerSource* _tmp7_;
-#line 62 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp3_ = self->priv->holding_tank;
-#line 62 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp4_ = container;
+ GeeHashSet* _tmp1_;
+ gboolean _tmp2_;
#line 62 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp5_ = gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp4_);
+ _tmp1_ = self->priv->holding_tank;
#line 62 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- removed = _tmp5_;
+ removed = gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), container);
#line 63 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp6_ = removed;
+ _tmp2_ = removed;
#line 63 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _vala_assert (_tmp6_, "removed");
+ _vala_assert (_tmp2_, "removed");
#line 65 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp7_ = container;
-#line 65 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- source_collection_relink (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SOURCE_COLLECTION, SourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_SOURCE, DataSource));
-#line 521 "ContainerSourceCollection.c"
+ source_collection_relink (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SOURCE_COLLECTION, SourceCollection), G_TYPE_CHECK_INSTANCE_CAST (container, TYPE_DATA_SOURCE, DataSource));
+#line 614 "ContainerSourceCollection.c"
}
#line 68 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp8_ = container;
-#line 68 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp9_ = added;
-#line 68 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp10_ = relinked;
-#line 68 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_signal_emit (self, container_source_collection_signals[CONTAINER_SOURCE_COLLECTION_CONTAINER_CONTENTS_ADDED_SIGNAL], 0, _tmp8_, _tmp9_, _tmp10_);
-#line 531 "ContainerSourceCollection.c"
+ g_signal_emit (self, container_source_collection_signals[CONTAINER_SOURCE_COLLECTION_CONTAINER_CONTENTS_ADDED_SIGNAL], 0, container, added, relinked);
+#line 618 "ContainerSourceCollection.c"
}
-void container_source_collection_notify_container_contents_added (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* added, gboolean relinked) {
+void
+container_source_collection_notify_container_contents_added (ContainerSourceCollection* self,
+ ContainerSource* container,
+ GeeCollection* added,
+ gboolean relinked)
+{
#line 58 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
g_return_if_fail (IS_CONTAINER_SOURCE_COLLECTION (self));
#line 58 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
CONTAINER_SOURCE_COLLECTION_GET_CLASS (self)->notify_container_contents_added (self, container, added, relinked);
-#line 540 "ContainerSourceCollection.c"
+#line 632 "ContainerSourceCollection.c"
}
-static void container_source_collection_real_notify_container_contents_removed (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* removed, gboolean unlinked) {
- ContainerSource* _tmp0_;
- GeeCollection* _tmp1_;
- gboolean _tmp2_;
+static void
+container_source_collection_real_notify_container_contents_removed (ContainerSourceCollection* self,
+ ContainerSource* container,
+ GeeCollection* removed,
+ gboolean unlinked)
+{
#line 71 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
g_return_if_fail (IS_CONTAINER_SOURCE (container));
#line 71 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
g_return_if_fail (GEE_IS_COLLECTION (removed));
#line 73 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp0_ = container;
-#line 73 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp1_ = removed;
-#line 73 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp2_ = unlinked;
-#line 73 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_signal_emit (self, container_source_collection_signals[CONTAINER_SOURCE_COLLECTION_CONTAINER_CONTENTS_REMOVED_SIGNAL], 0, _tmp0_, _tmp1_, _tmp2_);
-#line 560 "ContainerSourceCollection.c"
+ g_signal_emit (self, container_source_collection_signals[CONTAINER_SOURCE_COLLECTION_CONTAINER_CONTENTS_REMOVED_SIGNAL], 0, container, removed, unlinked);
+#line 648 "ContainerSourceCollection.c"
}
-void container_source_collection_notify_container_contents_removed (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* removed, gboolean unlinked) {
+void
+container_source_collection_notify_container_contents_removed (ContainerSourceCollection* self,
+ ContainerSource* container,
+ GeeCollection* removed,
+ gboolean unlinked)
+{
#line 71 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
g_return_if_fail (IS_CONTAINER_SOURCE_COLLECTION (self));
#line 71 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
CONTAINER_SOURCE_COLLECTION_GET_CLASS (self)->notify_container_contents_removed (self, container, removed, unlinked);
-#line 569 "ContainerSourceCollection.c"
+#line 662 "ContainerSourceCollection.c"
}
-static void container_source_collection_real_notify_container_contents_altered (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* added, gboolean relinked, GeeCollection* removed, gboolean unlinked) {
- ContainerSource* _tmp0_;
- GeeCollection* _tmp1_;
- gboolean _tmp2_;
- GeeCollection* _tmp3_;
- gboolean _tmp4_;
+static void
+container_source_collection_real_notify_container_contents_altered (ContainerSourceCollection* self,
+ ContainerSource* container,
+ GeeCollection* added,
+ gboolean relinked,
+ GeeCollection* removed,
+ gboolean unlinked)
+{
#line 76 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
g_return_if_fail (IS_CONTAINER_SOURCE (container));
#line 76 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
@@ -582,96 +677,109 @@ static void container_source_collection_real_notify_container_contents_altered (
#line 76 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
g_return_if_fail ((removed == NULL) || GEE_IS_COLLECTION (removed));
#line 79 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp0_ = container;
-#line 79 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp1_ = added;
-#line 79 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp2_ = relinked;
-#line 79 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp3_ = removed;
-#line 79 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp4_ = unlinked;
-#line 79 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_signal_emit (self, container_source_collection_signals[CONTAINER_SOURCE_COLLECTION_CONTAINER_CONTENTS_ALTERED_SIGNAL], 0, _tmp0_, _tmp1_, _tmp2_, _tmp3_, _tmp4_);
-#line 597 "ContainerSourceCollection.c"
+ g_signal_emit (self, container_source_collection_signals[CONTAINER_SOURCE_COLLECTION_CONTAINER_CONTENTS_ALTERED_SIGNAL], 0, container, added, relinked, removed, unlinked);
+#line 682 "ContainerSourceCollection.c"
}
-void container_source_collection_notify_container_contents_altered (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* added, gboolean relinked, GeeCollection* removed, gboolean unlinked) {
+void
+container_source_collection_notify_container_contents_altered (ContainerSourceCollection* self,
+ ContainerSource* container,
+ GeeCollection* added,
+ gboolean relinked,
+ GeeCollection* removed,
+ gboolean unlinked)
+{
#line 76 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
g_return_if_fail (IS_CONTAINER_SOURCE_COLLECTION (self));
#line 76 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
CONTAINER_SOURCE_COLLECTION_GET_CLASS (self)->notify_container_contents_altered (self, container, added, relinked, removed, unlinked);
-#line 606 "ContainerSourceCollection.c"
+#line 698 "ContainerSourceCollection.c"
}
-static void container_source_collection_real_notify_backlink_to_container_removed (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* sources) {
- ContainerSource* _tmp0_;
- GeeCollection* _tmp1_;
+static void
+container_source_collection_real_notify_backlink_to_container_removed (ContainerSourceCollection* self,
+ ContainerSource* container,
+ GeeCollection* sources)
+{
#line 82 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
g_return_if_fail (IS_CONTAINER_SOURCE (container));
#line 82 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
g_return_if_fail (GEE_IS_COLLECTION (sources));
#line 84 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp0_ = container;
-#line 84 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp1_ = sources;
-#line 84 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_signal_emit (self, container_source_collection_signals[CONTAINER_SOURCE_COLLECTION_BACKLINK_TO_CONTAINER_REMOVED_SIGNAL], 0, _tmp0_, _tmp1_);
-#line 623 "ContainerSourceCollection.c"
+ g_signal_emit (self, container_source_collection_signals[CONTAINER_SOURCE_COLLECTION_BACKLINK_TO_CONTAINER_REMOVED_SIGNAL], 0, container, sources);
+#line 713 "ContainerSourceCollection.c"
}
-void container_source_collection_notify_backlink_to_container_removed (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* sources) {
+void
+container_source_collection_notify_backlink_to_container_removed (ContainerSourceCollection* self,
+ ContainerSource* container,
+ GeeCollection* sources)
+{
#line 82 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
g_return_if_fail (IS_CONTAINER_SOURCE_COLLECTION (self));
#line 82 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
CONTAINER_SOURCE_COLLECTION_GET_CLASS (self)->notify_backlink_to_container_removed (self, container, sources);
-#line 632 "ContainerSourceCollection.c"
+#line 726 "ContainerSourceCollection.c"
}
-static GeeCollection* container_source_collection_real_get_containers_holding_source (ContainerSourceCollection* self, DataSource* source) {
+static GeeCollection*
+container_source_collection_real_get_containers_holding_source (ContainerSourceCollection* self,
+ DataSource* source)
+{
#line 87 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
g_critical ("Type `%s' does not implement abstract method `container_source_collection_get_containers_holding_source'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
#line 87 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
return NULL;
-#line 641 "ContainerSourceCollection.c"
+#line 738 "ContainerSourceCollection.c"
}
-GeeCollection* container_source_collection_get_containers_holding_source (ContainerSourceCollection* self, DataSource* source) {
+GeeCollection*
+container_source_collection_get_containers_holding_source (ContainerSourceCollection* self,
+ DataSource* source)
+{
#line 87 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
g_return_val_if_fail (IS_CONTAINER_SOURCE_COLLECTION (self), NULL);
#line 87 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
return CONTAINER_SOURCE_COLLECTION_GET_CLASS (self)->get_containers_holding_source (self, source);
-#line 650 "ContainerSourceCollection.c"
+#line 750 "ContainerSourceCollection.c"
}
-static ContainerSource* container_source_collection_real_convert_backlink_to_container (ContainerSourceCollection* self, SourceBacklink* backlink) {
+static ContainerSource*
+container_source_collection_real_convert_backlink_to_container (ContainerSourceCollection* self,
+ SourceBacklink* backlink)
+{
#line 90 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
g_critical ("Type `%s' does not implement abstract method `container_source_collection_convert_backlink_to_container'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
#line 90 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
return NULL;
-#line 659 "ContainerSourceCollection.c"
+#line 762 "ContainerSourceCollection.c"
}
-ContainerSource* container_source_collection_convert_backlink_to_container (ContainerSourceCollection* self, SourceBacklink* backlink) {
+ContainerSource*
+container_source_collection_convert_backlink_to_container (ContainerSourceCollection* self,
+ SourceBacklink* backlink)
+{
#line 90 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
g_return_val_if_fail (IS_CONTAINER_SOURCE_COLLECTION (self), NULL);
#line 90 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
return CONTAINER_SOURCE_COLLECTION_GET_CLASS (self)->convert_backlink_to_container (self, backlink);
-#line 668 "ContainerSourceCollection.c"
+#line 774 "ContainerSourceCollection.c"
}
-void container_source_collection_freeze_attached_notifications (ContainerSourceCollection* self) {
+void
+container_source_collection_freeze_attached_notifications (ContainerSourceCollection* self)
+{
#line 92 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
g_return_if_fail (IS_CONTAINER_SOURCE_COLLECTION (self));
-#line 675 "ContainerSourceCollection.c"
+#line 783 "ContainerSourceCollection.c"
{
GeeIterator* _collection_it = NULL;
GeeHashSet* _tmp0_;
@@ -684,48 +792,47 @@ void container_source_collection_freeze_attached_notifications (ContainerSourceC
_collection_it = _tmp1_;
#line 93 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
while (TRUE) {
-#line 688 "ContainerSourceCollection.c"
+#line 796 "ContainerSourceCollection.c"
GeeIterator* _tmp2_;
- gboolean _tmp3_;
SourceCollection* collection = NULL;
- GeeIterator* _tmp4_;
- gpointer _tmp5_;
- SourceCollection* _tmp6_;
+ GeeIterator* _tmp3_;
+ gpointer _tmp4_;
+ SourceCollection* _tmp5_;
#line 93 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
_tmp2_ = _collection_it;
#line 93 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp3_ = gee_iterator_next (_tmp2_);
-#line 93 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- if (!_tmp3_) {
+ if (!gee_iterator_next (_tmp2_)) {
#line 93 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
break;
-#line 703 "ContainerSourceCollection.c"
+#line 808 "ContainerSourceCollection.c"
}
#line 93 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp4_ = _collection_it;
+ _tmp3_ = _collection_it;
#line 93 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp5_ = gee_iterator_get (_tmp4_);
+ _tmp4_ = gee_iterator_get (_tmp3_);
#line 93 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- collection = (SourceCollection*) _tmp5_;
+ collection = (SourceCollection*) _tmp4_;
#line 94 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp6_ = collection;
+ _tmp5_ = collection;
#line 94 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- data_collection_freeze_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_DATA_COLLECTION, DataCollection));
+ data_collection_freeze_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_DATA_COLLECTION, DataCollection));
#line 93 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
_data_collection_unref0 (collection);
-#line 717 "ContainerSourceCollection.c"
+#line 822 "ContainerSourceCollection.c"
}
#line 93 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
_g_object_unref0 (_collection_it);
-#line 721 "ContainerSourceCollection.c"
+#line 826 "ContainerSourceCollection.c"
}
}
-void container_source_collection_thaw_attached_notifications (ContainerSourceCollection* self) {
+void
+container_source_collection_thaw_attached_notifications (ContainerSourceCollection* self)
+{
#line 97 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
g_return_if_fail (IS_CONTAINER_SOURCE_COLLECTION (self));
-#line 729 "ContainerSourceCollection.c"
+#line 836 "ContainerSourceCollection.c"
{
GeeIterator* _collection_it = NULL;
GeeHashSet* _tmp0_;
@@ -738,45 +845,44 @@ void container_source_collection_thaw_attached_notifications (ContainerSourceCol
_collection_it = _tmp1_;
#line 98 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
while (TRUE) {
-#line 742 "ContainerSourceCollection.c"
+#line 849 "ContainerSourceCollection.c"
GeeIterator* _tmp2_;
- gboolean _tmp3_;
SourceCollection* collection = NULL;
- GeeIterator* _tmp4_;
- gpointer _tmp5_;
- SourceCollection* _tmp6_;
+ GeeIterator* _tmp3_;
+ gpointer _tmp4_;
+ SourceCollection* _tmp5_;
#line 98 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
_tmp2_ = _collection_it;
#line 98 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp3_ = gee_iterator_next (_tmp2_);
-#line 98 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- if (!_tmp3_) {
+ if (!gee_iterator_next (_tmp2_)) {
#line 98 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
break;
-#line 757 "ContainerSourceCollection.c"
+#line 861 "ContainerSourceCollection.c"
}
#line 98 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp4_ = _collection_it;
+ _tmp3_ = _collection_it;
#line 98 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp5_ = gee_iterator_get (_tmp4_);
+ _tmp4_ = gee_iterator_get (_tmp3_);
#line 98 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- collection = (SourceCollection*) _tmp5_;
+ collection = (SourceCollection*) _tmp4_;
#line 99 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp6_ = collection;
+ _tmp5_ = collection;
#line 99 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- data_collection_thaw_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_DATA_COLLECTION, DataCollection));
+ data_collection_thaw_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_DATA_COLLECTION, DataCollection));
#line 98 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
_data_collection_unref0 (collection);
-#line 771 "ContainerSourceCollection.c"
+#line 875 "ContainerSourceCollection.c"
}
#line 98 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
_g_object_unref0 (_collection_it);
-#line 775 "ContainerSourceCollection.c"
+#line 879 "ContainerSourceCollection.c"
}
}
-GeeCollection* container_source_collection_get_holding_tank (ContainerSourceCollection* self) {
+GeeCollection*
+container_source_collection_get_holding_tank (ContainerSourceCollection* self)
+{
GeeCollection* result = NULL;
GeeHashSet* _tmp0_;
GeeSet* _tmp1_;
@@ -793,13 +899,15 @@ GeeCollection* container_source_collection_get_holding_tank (ContainerSourceColl
result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection);
#line 103 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
return result;
-#line 797 "ContainerSourceCollection.c"
+#line 903 "ContainerSourceCollection.c"
}
-void container_source_collection_init_add_unlinked (ContainerSourceCollection* self, ContainerSource* unlinked) {
+void
+container_source_collection_init_add_unlinked (ContainerSourceCollection* self,
+ ContainerSource* unlinked)
+{
GeeHashSet* _tmp0_;
- ContainerSource* _tmp1_;
#line 106 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
g_return_if_fail (IS_CONTAINER_SOURCE_COLLECTION (self));
#line 106 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
@@ -807,16 +915,16 @@ void container_source_collection_init_add_unlinked (ContainerSourceCollection* s
#line 107 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
_tmp0_ = self->priv->holding_tank;
#line 107 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp1_ = unlinked;
-#line 107 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp1_);
-#line 814 "ContainerSourceCollection.c"
+ gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), unlinked);
+#line 920 "ContainerSourceCollection.c"
}
-void container_source_collection_init_add_many_unlinked (ContainerSourceCollection* self, GeeCollection* unlinked) {
+void
+container_source_collection_init_add_many_unlinked (ContainerSourceCollection* self,
+ GeeCollection* unlinked)
+{
GeeHashSet* _tmp0_;
- GeeCollection* _tmp1_;
#line 110 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
g_return_if_fail (IS_CONTAINER_SOURCE_COLLECTION (self));
#line 110 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
@@ -824,19 +932,17 @@ void container_source_collection_init_add_many_unlinked (ContainerSourceCollecti
#line 111 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
_tmp0_ = self->priv->holding_tank;
#line 111 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp1_ = unlinked;
-#line 111 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- gee_collection_add_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection), _tmp1_);
-#line 831 "ContainerSourceCollection.c"
+ gee_collection_add_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection), unlinked);
+#line 937 "ContainerSourceCollection.c"
}
-gboolean container_source_collection_relink_from_holding_tank (ContainerSourceCollection* self, ContainerSource* source) {
+gboolean
+container_source_collection_relink_from_holding_tank (ContainerSourceCollection* self,
+ ContainerSource* source)
+{
gboolean result = FALSE;
GeeHashSet* _tmp0_;
- ContainerSource* _tmp1_;
- gboolean _tmp2_;
- ContainerSource* _tmp3_;
#line 114 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
g_return_val_if_fail (IS_CONTAINER_SOURCE_COLLECTION (self), FALSE);
#line 114 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
@@ -844,30 +950,27 @@ gboolean container_source_collection_relink_from_holding_tank (ContainerSourceCo
#line 115 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
_tmp0_ = self->priv->holding_tank;
#line 115 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp1_ = source;
-#line 115 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp2_ = gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp1_);
-#line 115 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- if (!_tmp2_) {
+ if (!gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), source)) {
#line 116 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
result = FALSE;
#line 116 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
return result;
-#line 857 "ContainerSourceCollection.c"
+#line 959 "ContainerSourceCollection.c"
}
#line 118 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp3_ = source;
-#line 118 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- source_collection_relink (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SOURCE_COLLECTION, SourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_SOURCE, DataSource));
+ source_collection_relink (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SOURCE_COLLECTION, SourceCollection), G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_SOURCE, DataSource));
#line 120 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
result = TRUE;
#line 120 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
return result;
-#line 867 "ContainerSourceCollection.c"
+#line 967 "ContainerSourceCollection.c"
}
-static void container_source_collection_on_contained_sources_unlinking (ContainerSourceCollection* self, GeeCollection* unlinking) {
+static void
+container_source_collection_on_contained_sources_unlinking (ContainerSourceCollection* self,
+ GeeCollection* unlinking)
+{
GeeHashMultiMap* map = NULL;
GeeHashMultiMap* _tmp0_;
#line 123 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
@@ -880,250 +983,243 @@ static void container_source_collection_on_contained_sources_unlinking (Containe
_tmp0_ = gee_hash_multi_map_new (TYPE_CONTAINER_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, TYPE_DATA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
#line 126 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
map = _tmp0_;
-#line 884 "ContainerSourceCollection.c"
+#line 987 "ContainerSourceCollection.c"
{
GeeIterator* _source_it = NULL;
- GeeCollection* _tmp1_;
- GeeIterator* _tmp2_;
-#line 129 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp1_ = unlinking;
+ GeeIterator* _tmp1_;
#line 129 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ITERABLE, GeeIterable));
+ _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (unlinking, GEE_TYPE_ITERABLE, GeeIterable));
#line 129 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _source_it = _tmp2_;
+ _source_it = _tmp1_;
#line 129 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
while (TRUE) {
-#line 897 "ContainerSourceCollection.c"
- GeeIterator* _tmp3_;
- gboolean _tmp4_;
+#line 997 "ContainerSourceCollection.c"
+ GeeIterator* _tmp2_;
DataSource* source = NULL;
- GeeIterator* _tmp5_;
- gpointer _tmp6_;
+ GeeIterator* _tmp3_;
+ gpointer _tmp4_;
GeeCollection* containers = NULL;
- DataSource* _tmp7_;
+ DataSource* _tmp5_;
+ GeeCollection* _tmp6_;
+ gboolean _tmp7_ = FALSE;
GeeCollection* _tmp8_;
- gboolean _tmp9_ = FALSE;
- GeeCollection* _tmp10_;
-#line 129 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp3_ = _source_it;
#line 129 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp4_ = gee_iterator_next (_tmp3_);
+ _tmp2_ = _source_it;
#line 129 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- if (!_tmp4_) {
+ if (!gee_iterator_next (_tmp2_)) {
#line 129 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
break;
-#line 916 "ContainerSourceCollection.c"
+#line 1013 "ContainerSourceCollection.c"
}
#line 129 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp5_ = _source_it;
+ _tmp3_ = _source_it;
#line 129 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp6_ = gee_iterator_get (_tmp5_);
+ _tmp4_ = gee_iterator_get (_tmp3_);
#line 129 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- source = (DataSource*) _tmp6_;
+ source = (DataSource*) _tmp4_;
#line 130 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp7_ = source;
+ _tmp5_ = source;
#line 130 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp8_ = container_source_collection_get_containers_holding_source (self, _tmp7_);
+ _tmp6_ = container_source_collection_get_containers_holding_source (self, _tmp5_);
#line 130 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- containers = _tmp8_;
+ containers = _tmp6_;
#line 131 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp10_ = containers;
+ _tmp8_ = containers;
#line 131 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- if (_tmp10_ == NULL) {
+ if (_tmp8_ == NULL) {
#line 131 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp9_ = TRUE;
-#line 936 "ContainerSourceCollection.c"
+ _tmp7_ = TRUE;
+#line 1033 "ContainerSourceCollection.c"
} else {
- GeeCollection* _tmp11_;
- gint _tmp12_;
- gint _tmp13_;
+ GeeCollection* _tmp9_;
+ gint _tmp10_;
+ gint _tmp11_;
#line 131 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp11_ = containers;
+ _tmp9_ = containers;
#line 131 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp12_ = gee_collection_get_size (_tmp11_);
+ _tmp10_ = gee_collection_get_size (_tmp9_);
#line 131 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp13_ = _tmp12_;
+ _tmp11_ = _tmp10_;
#line 131 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp9_ = _tmp13_ == 0;
-#line 949 "ContainerSourceCollection.c"
+ _tmp7_ = _tmp11_ == 0;
+#line 1046 "ContainerSourceCollection.c"
}
#line 131 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- if (_tmp9_) {
+ if (_tmp7_) {
#line 132 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
_g_object_unref0 (containers);
#line 132 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
_g_object_unref0 (source);
#line 132 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
continue;
-#line 959 "ContainerSourceCollection.c"
+#line 1056 "ContainerSourceCollection.c"
}
{
GeeIterator* _container_it = NULL;
- GeeCollection* _tmp14_;
- GeeIterator* _tmp15_;
+ GeeCollection* _tmp12_;
+ GeeIterator* _tmp13_;
#line 134 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp14_ = containers;
+ _tmp12_ = containers;
#line 134 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp15_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ITERABLE, GeeIterable));
+ _tmp13_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ITERABLE, GeeIterable));
#line 134 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _container_it = _tmp15_;
+ _container_it = _tmp13_;
#line 134 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
while (TRUE) {
-#line 973 "ContainerSourceCollection.c"
- GeeIterator* _tmp16_;
- gboolean _tmp17_;
+#line 1070 "ContainerSourceCollection.c"
+ GeeIterator* _tmp14_;
ContainerSource* container = NULL;
- GeeIterator* _tmp18_;
- gpointer _tmp19_;
- GeeHashMultiMap* _tmp20_;
+ GeeIterator* _tmp15_;
+ gpointer _tmp16_;
+ GeeHashMultiMap* _tmp17_;
+ ContainerSource* _tmp18_;
+ DataSource* _tmp19_;
+ DataSource* _tmp20_;
ContainerSource* _tmp21_;
- DataSource* _tmp22_;
- DataSource* _tmp23_;
- ContainerSource* _tmp24_;
- SourceBacklink* _tmp25_;
- SourceBacklink* _tmp26_;
-#line 134 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp16_ = _container_it;
+ SourceBacklink* _tmp22_;
+ SourceBacklink* _tmp23_;
#line 134 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp17_ = gee_iterator_next (_tmp16_);
+ _tmp14_ = _container_it;
#line 134 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- if (!_tmp17_) {
+ if (!gee_iterator_next (_tmp14_)) {
#line 134 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
break;
-#line 994 "ContainerSourceCollection.c"
+#line 1088 "ContainerSourceCollection.c"
}
#line 134 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp18_ = _container_it;
+ _tmp15_ = _container_it;
#line 134 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp19_ = gee_iterator_get (_tmp18_);
+ _tmp16_ = gee_iterator_get (_tmp15_);
#line 134 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- container = (ContainerSource*) _tmp19_;
+ container = (ContainerSource*) _tmp16_;
#line 135 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp20_ = map;
+ _tmp17_ = map;
#line 135 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp21_ = container;
+ _tmp18_ = container;
#line 135 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp22_ = source;
+ _tmp19_ = source;
#line 135 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- gee_multi_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_MULTI_MAP, GeeMultiMap), _tmp21_, _tmp22_);
+ gee_multi_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_MULTI_MAP, GeeMultiMap), _tmp18_, _tmp19_);
#line 136 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp23_ = source;
+ _tmp20_ = source;
#line 136 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp24_ = container;
+ _tmp21_ = container;
#line 136 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp25_ = container_source_get_backlink (_tmp24_);
+ _tmp22_ = container_source_get_backlink (_tmp21_);
#line 136 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp26_ = _tmp25_;
+ _tmp23_ = _tmp22_;
#line 136 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- data_source_set_backlink (_tmp23_, _tmp26_);
+ data_source_set_backlink (_tmp20_, _tmp23_);
#line 136 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _source_backlink_unref0 (_tmp26_);
+ _source_backlink_unref0 (_tmp23_);
#line 134 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
_g_object_unref0 (container);
-#line 1024 "ContainerSourceCollection.c"
+#line 1118 "ContainerSourceCollection.c"
}
#line 134 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
_g_object_unref0 (_container_it);
-#line 1028 "ContainerSourceCollection.c"
+#line 1122 "ContainerSourceCollection.c"
}
#line 129 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
_g_object_unref0 (containers);
#line 129 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
_g_object_unref0 (source);
-#line 1034 "ContainerSourceCollection.c"
+#line 1128 "ContainerSourceCollection.c"
}
#line 129 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
_g_object_unref0 (_source_it);
-#line 1038 "ContainerSourceCollection.c"
+#line 1132 "ContainerSourceCollection.c"
}
{
GeeIterator* _container_it = NULL;
- GeeHashMultiMap* _tmp27_;
- GeeSet* _tmp28_;
- GeeSet* _tmp29_;
- GeeIterator* _tmp30_;
- GeeIterator* _tmp31_;
+ GeeHashMultiMap* _tmp24_;
+ GeeSet* _tmp25_;
+ GeeSet* _tmp26_;
+ GeeIterator* _tmp27_;
+ GeeIterator* _tmp28_;
#line 140 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp27_ = map;
+ _tmp24_ = map;
#line 140 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp28_ = gee_multi_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, GEE_TYPE_MULTI_MAP, GeeMultiMap));
+ _tmp25_ = gee_multi_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, GEE_TYPE_MULTI_MAP, GeeMultiMap));
#line 140 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp29_ = _tmp28_;
+ _tmp26_ = _tmp25_;
#line 140 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp30_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, GEE_TYPE_ITERABLE, GeeIterable));
+ _tmp27_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_ITERABLE, GeeIterable));
#line 140 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp31_ = _tmp30_;
+ _tmp28_ = _tmp27_;
#line 140 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _g_object_unref0 (_tmp29_);
+ _g_object_unref0 (_tmp26_);
#line 140 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _container_it = _tmp31_;
+ _container_it = _tmp28_;
#line 140 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
while (TRUE) {
-#line 1063 "ContainerSourceCollection.c"
- GeeIterator* _tmp32_;
- gboolean _tmp33_;
+#line 1157 "ContainerSourceCollection.c"
+ GeeIterator* _tmp29_;
ContainerSource* container = NULL;
- GeeIterator* _tmp34_;
- gpointer _tmp35_;
- ContainerSource* _tmp36_;
- GeeHashMultiMap* _tmp37_;
- ContainerSource* _tmp38_;
- GeeCollection* _tmp39_;
- GeeCollection* _tmp40_;
+ GeeIterator* _tmp30_;
+ gpointer _tmp31_;
+ ContainerSource* _tmp32_;
+ GeeHashMultiMap* _tmp33_;
+ ContainerSource* _tmp34_;
+ GeeCollection* _tmp35_;
+ GeeCollection* _tmp36_;
#line 140 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp32_ = _container_it;
+ _tmp29_ = _container_it;
#line 140 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp33_ = gee_iterator_next (_tmp32_);
-#line 140 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- if (!_tmp33_) {
+ if (!gee_iterator_next (_tmp29_)) {
#line 140 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
break;
-#line 1082 "ContainerSourceCollection.c"
+#line 1173 "ContainerSourceCollection.c"
}
#line 140 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp34_ = _container_it;
+ _tmp30_ = _container_it;
#line 140 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp35_ = gee_iterator_get (_tmp34_);
+ _tmp31_ = gee_iterator_get (_tmp30_);
#line 140 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- container = (ContainerSource*) _tmp35_;
+ container = (ContainerSource*) _tmp31_;
#line 141 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp36_ = container;
+ _tmp32_ = container;
#line 141 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp37_ = map;
+ _tmp33_ = map;
#line 141 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp38_ = container;
+ _tmp34_ = container;
#line 141 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp39_ = gee_multi_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, GEE_TYPE_MULTI_MAP, GeeMultiMap), _tmp38_);
+ _tmp35_ = gee_multi_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, GEE_TYPE_MULTI_MAP, GeeMultiMap), _tmp34_);
#line 141 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp40_ = _tmp39_;
+ _tmp36_ = _tmp35_;
#line 141 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- container_source_break_link_many (_tmp36_, _tmp40_);
+ container_source_break_link_many (_tmp32_, _tmp36_);
#line 141 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _g_object_unref0 (_tmp40_);
+ _g_object_unref0 (_tmp36_);
#line 140 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
_g_object_unref0 (container);
-#line 1106 "ContainerSourceCollection.c"
+#line 1197 "ContainerSourceCollection.c"
}
#line 140 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
_g_object_unref0 (_container_it);
-#line 1110 "ContainerSourceCollection.c"
+#line 1201 "ContainerSourceCollection.c"
}
#line 143 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
container_source_collection_thaw_attached_notifications (self);
#line 123 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
_g_object_unref0 (map);
-#line 1116 "ContainerSourceCollection.c"
+#line 1207 "ContainerSourceCollection.c"
}
-static gpointer _g_object_ref0 (gpointer self) {
+static gpointer
+_g_object_ref0 (gpointer self)
+{
#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
return self ? g_object_ref (self) : NULL;
-#line 1123 "ContainerSourceCollection.c"
+#line 1216 "ContainerSourceCollection.c"
}
-static void container_source_collection_on_contained_sources_relinked (ContainerSourceCollection* self, GeeCollection* relinked) {
+static void
+container_source_collection_on_contained_sources_relinked (ContainerSourceCollection* self,
+ GeeCollection* relinked)
+{
GeeHashMultiMap* map = NULL;
GeeHashMultiMap* _tmp0_;
#line 146 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
@@ -1136,299 +1232,293 @@ static void container_source_collection_on_contained_sources_relinked (Container
_tmp0_ = gee_hash_multi_map_new (TYPE_CONTAINER_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, TYPE_DATA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
#line 149 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
map = _tmp0_;
-#line 1140 "ContainerSourceCollection.c"
+#line 1236 "ContainerSourceCollection.c"
{
GeeIterator* _source_it = NULL;
- GeeCollection* _tmp1_;
- GeeIterator* _tmp2_;
-#line 152 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp1_ = relinked;
+ GeeIterator* _tmp1_;
#line 152 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ITERABLE, GeeIterable));
+ _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (relinked, GEE_TYPE_ITERABLE, GeeIterable));
#line 152 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _source_it = _tmp2_;
+ _source_it = _tmp1_;
#line 152 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
while (TRUE) {
-#line 1153 "ContainerSourceCollection.c"
- GeeIterator* _tmp3_;
- gboolean _tmp4_;
+#line 1246 "ContainerSourceCollection.c"
+ GeeIterator* _tmp2_;
DataSource* source = NULL;
- GeeIterator* _tmp5_;
- gpointer _tmp6_;
+ GeeIterator* _tmp3_;
+ gpointer _tmp4_;
GeeList* backlinks = NULL;
- DataSource* _tmp7_;
- const gchar* _tmp8_;
+ DataSource* _tmp5_;
+ const gchar* _tmp6_;
+ GeeList* _tmp7_;
+ gboolean _tmp8_ = FALSE;
GeeList* _tmp9_;
- gboolean _tmp10_ = FALSE;
- GeeList* _tmp11_;
-#line 152 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp3_ = _source_it;
#line 152 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp4_ = gee_iterator_next (_tmp3_);
+ _tmp2_ = _source_it;
#line 152 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- if (!_tmp4_) {
+ if (!gee_iterator_next (_tmp2_)) {
#line 152 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
break;
-#line 1173 "ContainerSourceCollection.c"
+#line 1263 "ContainerSourceCollection.c"
}
#line 152 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp5_ = _source_it;
+ _tmp3_ = _source_it;
#line 152 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp6_ = gee_iterator_get (_tmp5_);
+ _tmp4_ = gee_iterator_get (_tmp3_);
#line 152 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- source = (DataSource*) _tmp6_;
+ source = (DataSource*) _tmp4_;
#line 153 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp7_ = source;
+ _tmp5_ = source;
#line 153 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp8_ = self->priv->backlink_name;
+ _tmp6_ = self->priv->backlink_name;
#line 153 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp9_ = data_source_get_backlinks (_tmp7_, _tmp8_);
+ _tmp7_ = data_source_get_backlinks (_tmp5_, _tmp6_);
#line 153 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- backlinks = _tmp9_;
+ backlinks = _tmp7_;
#line 154 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp11_ = backlinks;
+ _tmp9_ = backlinks;
#line 154 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- if (_tmp11_ == NULL) {
+ if (_tmp9_ == NULL) {
#line 154 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp10_ = TRUE;
-#line 1195 "ContainerSourceCollection.c"
+ _tmp8_ = TRUE;
+#line 1285 "ContainerSourceCollection.c"
} else {
- GeeList* _tmp12_;
- gint _tmp13_;
- gint _tmp14_;
+ GeeList* _tmp10_;
+ gint _tmp11_;
+ gint _tmp12_;
#line 154 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp12_ = backlinks;
+ _tmp10_ = backlinks;
#line 154 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp13_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_COLLECTION, GeeCollection));
+ _tmp11_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_COLLECTION, GeeCollection));
#line 154 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp14_ = _tmp13_;
+ _tmp12_ = _tmp11_;
#line 154 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp10_ = _tmp14_ == 0;
-#line 1208 "ContainerSourceCollection.c"
+ _tmp8_ = _tmp12_ == 0;
+#line 1298 "ContainerSourceCollection.c"
}
#line 154 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- if (_tmp10_) {
+ if (_tmp8_) {
#line 155 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
_g_object_unref0 (backlinks);
#line 155 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
_g_object_unref0 (source);
#line 155 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
continue;
-#line 1218 "ContainerSourceCollection.c"
+#line 1308 "ContainerSourceCollection.c"
}
{
GeeList* _backlink_list = NULL;
- GeeList* _tmp15_;
- GeeList* _tmp16_;
+ GeeList* _tmp13_;
+ GeeList* _tmp14_;
gint _backlink_size = 0;
- GeeList* _tmp17_;
- gint _tmp18_;
- gint _tmp19_;
+ GeeList* _tmp15_;
+ gint _tmp16_;
+ gint _tmp17_;
gint _backlink_index = 0;
#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp15_ = backlinks;
+ _tmp13_ = backlinks;
#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp16_ = _g_object_ref0 (_tmp15_);
+ _tmp14_ = _g_object_ref0 (_tmp13_);
#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _backlink_list = _tmp16_;
+ _backlink_list = _tmp14_;
#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp17_ = _backlink_list;
+ _tmp15_ = _backlink_list;
#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp18_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_COLLECTION, GeeCollection));
+ _tmp16_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_COLLECTION, GeeCollection));
#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp19_ = _tmp18_;
+ _tmp17_ = _tmp16_;
#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _backlink_size = _tmp19_;
+ _backlink_size = _tmp17_;
#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
_backlink_index = -1;
#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
while (TRUE) {
-#line 1247 "ContainerSourceCollection.c"
+#line 1337 "ContainerSourceCollection.c"
+ gint _tmp18_;
+ gint _tmp19_;
gint _tmp20_;
- gint _tmp21_;
- gint _tmp22_;
SourceBacklink* backlink = NULL;
- GeeList* _tmp23_;
- gint _tmp24_;
- gpointer _tmp25_;
+ GeeList* _tmp21_;
+ gint _tmp22_;
+ gpointer _tmp23_;
ContainerSource* container = NULL;
- SourceBacklink* _tmp26_;
- ContainerSource* _tmp27_;
- ContainerSource* _tmp28_;
+ SourceBacklink* _tmp24_;
+ ContainerSource* _tmp25_;
+ ContainerSource* _tmp26_;
#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp20_ = _backlink_index;
+ _tmp18_ = _backlink_index;
#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _backlink_index = _tmp20_ + 1;
+ _backlink_index = _tmp18_ + 1;
#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp21_ = _backlink_index;
+ _tmp19_ = _backlink_index;
#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp22_ = _backlink_size;
+ _tmp20_ = _backlink_size;
#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- if (!(_tmp21_ < _tmp22_)) {
+ if (!(_tmp19_ < _tmp20_)) {
#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
break;
-#line 1271 "ContainerSourceCollection.c"
+#line 1361 "ContainerSourceCollection.c"
}
#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp23_ = _backlink_list;
+ _tmp21_ = _backlink_list;
#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp24_ = _backlink_index;
+ _tmp22_ = _backlink_index;
#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp25_ = gee_list_get (_tmp23_, _tmp24_);
+ _tmp23_ = gee_list_get (_tmp21_, _tmp22_);
#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- backlink = (SourceBacklink*) _tmp25_;
+ backlink = (SourceBacklink*) _tmp23_;
#line 158 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp26_ = backlink;
+ _tmp24_ = backlink;
#line 158 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp27_ = container_source_collection_convert_backlink_to_container (self, _tmp26_);
+ _tmp25_ = container_source_collection_convert_backlink_to_container (self, _tmp24_);
#line 158 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- container = _tmp27_;
+ container = _tmp25_;
#line 159 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp28_ = container;
+ _tmp26_ = container;
#line 159 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- if (_tmp28_ != NULL) {
-#line 1291 "ContainerSourceCollection.c"
- GeeHashMultiMap* _tmp29_;
- ContainerSource* _tmp30_;
- DataSource* _tmp31_;
+ if (_tmp26_ != NULL) {
+#line 1381 "ContainerSourceCollection.c"
+ GeeHashMultiMap* _tmp27_;
+ ContainerSource* _tmp28_;
+ DataSource* _tmp29_;
#line 160 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp29_ = map;
+ _tmp27_ = map;
#line 160 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp30_ = container;
+ _tmp28_ = container;
#line 160 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp31_ = source;
+ _tmp29_ = source;
#line 160 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- gee_multi_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, GEE_TYPE_MULTI_MAP, GeeMultiMap), _tmp30_, _tmp31_);
-#line 1303 "ContainerSourceCollection.c"
+ gee_multi_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, GEE_TYPE_MULTI_MAP, GeeMultiMap), _tmp28_, _tmp29_);
+#line 1393 "ContainerSourceCollection.c"
} else {
- DataSource* _tmp32_;
- gchar* _tmp33_;
+ DataSource* _tmp30_;
+ gchar* _tmp31_;
+ gchar* _tmp32_;
+ SourceBacklink* _tmp33_;
gchar* _tmp34_;
- SourceBacklink* _tmp35_;
- gchar* _tmp36_;
- gchar* _tmp37_;
+ gchar* _tmp35_;
#line 162 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp32_ = source;
+ _tmp30_ = source;
#line 162 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp33_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, TYPE_DATA_OBJECT, DataObject));
+ _tmp31_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, TYPE_DATA_OBJECT, DataObject));
#line 162 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp34_ = _tmp33_;
+ _tmp32_ = _tmp31_;
#line 162 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp35_ = backlink;
+ _tmp33_ = backlink;
#line 162 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp36_ = source_backlink_to_string (_tmp35_);
+ _tmp34_ = source_backlink_to_string (_tmp33_);
#line 162 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp37_ = _tmp36_;
+ _tmp35_ = _tmp34_;
#line 162 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
g_warning ("ContainerSourceCollection.vala:162: Unable to relink %s to container b" \
-"acklink %s", _tmp34_, _tmp37_);
+"acklink %s", _tmp32_, _tmp35_);
#line 162 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _g_free0 (_tmp37_);
+ _g_free0 (_tmp35_);
#line 162 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _g_free0 (_tmp34_);
-#line 1329 "ContainerSourceCollection.c"
+ _g_free0 (_tmp32_);
+#line 1419 "ContainerSourceCollection.c"
}
#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
_g_object_unref0 (container);
#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
_source_backlink_unref0 (backlink);
-#line 1335 "ContainerSourceCollection.c"
+#line 1425 "ContainerSourceCollection.c"
}
#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
_g_object_unref0 (_backlink_list);
-#line 1339 "ContainerSourceCollection.c"
+#line 1429 "ContainerSourceCollection.c"
}
#line 152 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
_g_object_unref0 (backlinks);
#line 152 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
_g_object_unref0 (source);
-#line 1345 "ContainerSourceCollection.c"
+#line 1435 "ContainerSourceCollection.c"
}
#line 152 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
_g_object_unref0 (_source_it);
-#line 1349 "ContainerSourceCollection.c"
+#line 1439 "ContainerSourceCollection.c"
}
{
GeeIterator* _container_it = NULL;
- GeeHashMultiMap* _tmp38_;
- GeeSet* _tmp39_;
- GeeSet* _tmp40_;
- GeeIterator* _tmp41_;
- GeeIterator* _tmp42_;
+ GeeHashMultiMap* _tmp36_;
+ GeeSet* _tmp37_;
+ GeeSet* _tmp38_;
+ GeeIterator* _tmp39_;
+ GeeIterator* _tmp40_;
#line 168 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp38_ = map;
+ _tmp36_ = map;
#line 168 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp39_ = gee_multi_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, GEE_TYPE_MULTI_MAP, GeeMultiMap));
+ _tmp37_ = gee_multi_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, GEE_TYPE_MULTI_MAP, GeeMultiMap));
#line 168 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp40_ = _tmp39_;
+ _tmp38_ = _tmp37_;
#line 168 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp41_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, GEE_TYPE_ITERABLE, GeeIterable));
+ _tmp39_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, GEE_TYPE_ITERABLE, GeeIterable));
#line 168 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp42_ = _tmp41_;
+ _tmp40_ = _tmp39_;
#line 168 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _g_object_unref0 (_tmp40_);
+ _g_object_unref0 (_tmp38_);
#line 168 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _container_it = _tmp42_;
+ _container_it = _tmp40_;
#line 168 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
while (TRUE) {
-#line 1374 "ContainerSourceCollection.c"
- GeeIterator* _tmp43_;
- gboolean _tmp44_;
+#line 1464 "ContainerSourceCollection.c"
+ GeeIterator* _tmp41_;
ContainerSource* container = NULL;
- GeeIterator* _tmp45_;
- gpointer _tmp46_;
- ContainerSource* _tmp47_;
- GeeHashMultiMap* _tmp48_;
- ContainerSource* _tmp49_;
- GeeCollection* _tmp50_;
- GeeCollection* _tmp51_;
-#line 168 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp43_ = _container_it;
+ GeeIterator* _tmp42_;
+ gpointer _tmp43_;
+ ContainerSource* _tmp44_;
+ GeeHashMultiMap* _tmp45_;
+ ContainerSource* _tmp46_;
+ GeeCollection* _tmp47_;
+ GeeCollection* _tmp48_;
#line 168 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp44_ = gee_iterator_next (_tmp43_);
+ _tmp41_ = _container_it;
#line 168 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- if (!_tmp44_) {
+ if (!gee_iterator_next (_tmp41_)) {
#line 168 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
break;
-#line 1393 "ContainerSourceCollection.c"
+#line 1480 "ContainerSourceCollection.c"
}
#line 168 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp45_ = _container_it;
+ _tmp42_ = _container_it;
#line 168 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp46_ = gee_iterator_get (_tmp45_);
+ _tmp43_ = gee_iterator_get (_tmp42_);
#line 168 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- container = (ContainerSource*) _tmp46_;
+ container = (ContainerSource*) _tmp43_;
#line 169 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp47_ = container;
+ _tmp44_ = container;
#line 169 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp48_ = map;
+ _tmp45_ = map;
#line 169 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp49_ = container;
+ _tmp46_ = container;
#line 169 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp50_ = gee_multi_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, GEE_TYPE_MULTI_MAP, GeeMultiMap), _tmp49_);
+ _tmp47_ = gee_multi_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, GEE_TYPE_MULTI_MAP, GeeMultiMap), _tmp46_);
#line 169 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp51_ = _tmp50_;
+ _tmp48_ = _tmp47_;
#line 169 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- container_source_establish_link_many (_tmp47_, _tmp51_);
+ container_source_establish_link_many (_tmp44_, _tmp48_);
#line 169 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _g_object_unref0 (_tmp51_);
+ _g_object_unref0 (_tmp48_);
#line 168 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
_g_object_unref0 (container);
-#line 1417 "ContainerSourceCollection.c"
+#line 1504 "ContainerSourceCollection.c"
}
#line 168 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
_g_object_unref0 (_container_it);
-#line 1421 "ContainerSourceCollection.c"
+#line 1508 "ContainerSourceCollection.c"
}
#line 171 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
container_source_collection_thaw_attached_notifications (self);
#line 146 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
_g_object_unref0 (map);
-#line 1427 "ContainerSourceCollection.c"
+#line 1514 "ContainerSourceCollection.c"
}
-static void container_source_collection_on_contained_source_destroyed (ContainerSourceCollection* self, DataSource* source) {
+static void
+container_source_collection_on_contained_source_destroyed (ContainerSourceCollection* self,
+ DataSource* source)
+{
GeeIterator* iter = NULL;
GeeHashSet* _tmp0_;
GeeIterator* _tmp1_;
@@ -1444,82 +1534,78 @@ static void container_source_collection_on_contained_source_destroyed (Container
iter = _tmp1_;
#line 176 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
while (TRUE) {
-#line 1447 "ContainerSourceCollection.c"
+#line 1537 "ContainerSourceCollection.c"
GeeIterator* _tmp2_;
- gboolean _tmp3_;
ContainerSource* container = NULL;
- GeeIterator* _tmp4_;
- gpointer _tmp5_;
- gboolean _tmp6_ = FALSE;
- ContainerSource* _tmp7_;
- gboolean _tmp8_;
+ GeeIterator* _tmp3_;
+ gpointer _tmp4_;
+ gboolean _tmp5_ = FALSE;
+ ContainerSource* _tmp6_;
#line 176 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
_tmp2_ = iter;
#line 176 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp3_ = gee_iterator_next (_tmp2_);
-#line 176 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- if (!_tmp3_) {
+ if (!gee_iterator_next (_tmp2_)) {
#line 176 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
break;
-#line 1464 "ContainerSourceCollection.c"
+#line 1550 "ContainerSourceCollection.c"
}
#line 177 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp4_ = iter;
+ _tmp3_ = iter;
#line 177 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp5_ = gee_iterator_get (_tmp4_);
+ _tmp4_ = gee_iterator_get (_tmp3_);
#line 177 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- container = (ContainerSource*) _tmp5_;
-#line 181 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp7_ = container;
+ container = (ContainerSource*) _tmp4_;
#line 181 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp8_ = container_source_has_links (_tmp7_);
+ _tmp6_ = container;
#line 181 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- if (!_tmp8_) {
-#line 1478 "ContainerSourceCollection.c"
- ContainerSource* _tmp9_;
+ if (!container_source_has_links (_tmp6_)) {
+#line 1562 "ContainerSourceCollection.c"
+ ContainerSource* _tmp7_;
#line 181 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp9_ = container;
+ _tmp7_ = container;
#line 181 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp6_ = !G_TYPE_CHECK_INSTANCE_TYPE (_tmp9_, TYPE_TAG);
-#line 1484 "ContainerSourceCollection.c"
+ _tmp5_ = !G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, TYPE_TAG);
+#line 1568 "ContainerSourceCollection.c"
} else {
#line 181 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp6_ = FALSE;
-#line 1488 "ContainerSourceCollection.c"
+ _tmp5_ = FALSE;
+#line 1572 "ContainerSourceCollection.c"
}
#line 181 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- if (_tmp6_) {
-#line 1492 "ContainerSourceCollection.c"
- GeeIterator* _tmp10_;
- ContainerSource* _tmp11_;
+ if (_tmp5_) {
+#line 1576 "ContainerSourceCollection.c"
+ GeeIterator* _tmp8_;
+ ContainerSource* _tmp9_;
#line 182 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp10_ = iter;
+ _tmp8_ = iter;
#line 182 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- gee_iterator_remove (_tmp10_);
+ gee_iterator_remove (_tmp8_);
#line 183 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp11_ = container;
+ _tmp9_ = container;
#line 183 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- data_source_destroy_orphan (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_DATA_SOURCE, DataSource), TRUE);
-#line 1503 "ContainerSourceCollection.c"
+ data_source_destroy_orphan (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_DATA_SOURCE, DataSource), TRUE);
+#line 1587 "ContainerSourceCollection.c"
}
#line 176 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
_g_object_unref0 (container);
-#line 1507 "ContainerSourceCollection.c"
+#line 1591 "ContainerSourceCollection.c"
}
#line 174 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
_g_object_unref0 (iter);
-#line 1511 "ContainerSourceCollection.c"
+#line 1595 "ContainerSourceCollection.c"
}
-static void container_source_collection_real_notify_item_destroyed (SourceCollection* base, DataSource* source) {
+static void
+container_source_collection_real_notify_item_destroyed (SourceCollection* base,
+ DataSource* source)
+{
ContainerSourceCollection * self;
- DataSource* _tmp10_;
#line 188 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection);
#line 188 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
g_return_if_fail (IS_DATA_SOURCE (source));
-#line 1522 "ContainerSourceCollection.c"
+#line 1608 "ContainerSourceCollection.c"
{
GeeIterator* _collection_it = NULL;
GeeHashSet* _tmp0_;
@@ -1532,69 +1618,63 @@ static void container_source_collection_real_notify_item_destroyed (SourceCollec
_collection_it = _tmp1_;
#line 189 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
while (TRUE) {
-#line 1535 "ContainerSourceCollection.c"
+#line 1621 "ContainerSourceCollection.c"
GeeIterator* _tmp2_;
- gboolean _tmp3_;
SourceCollection* collection = NULL;
- GeeIterator* _tmp4_;
- gpointer _tmp5_;
- SourceCollection* _tmp6_;
- DataSource* _tmp7_;
- SourceBacklink* _tmp8_;
- SourceBacklink* _tmp9_;
+ GeeIterator* _tmp3_;
+ gpointer _tmp4_;
+ SourceCollection* _tmp5_;
+ SourceBacklink* _tmp6_;
+ SourceBacklink* _tmp7_;
#line 189 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
_tmp2_ = _collection_it;
#line 189 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp3_ = gee_iterator_next (_tmp2_);
-#line 189 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- if (!_tmp3_) {
+ if (!gee_iterator_next (_tmp2_)) {
#line 189 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
break;
-#line 1553 "ContainerSourceCollection.c"
+#line 1635 "ContainerSourceCollection.c"
}
#line 189 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp4_ = _collection_it;
+ _tmp3_ = _collection_it;
#line 189 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp5_ = gee_iterator_get (_tmp4_);
+ _tmp4_ = gee_iterator_get (_tmp3_);
#line 189 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- collection = (SourceCollection*) _tmp5_;
+ collection = (SourceCollection*) _tmp4_;
#line 190 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp6_ = collection;
+ _tmp5_ = collection;
#line 190 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp7_ = source;
+ _tmp6_ = container_source_get_backlink (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_CONTAINER_SOURCE, ContainerSource));
#line 190 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp8_ = container_source_get_backlink (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_CONTAINER_SOURCE, ContainerSource));
+ _tmp7_ = _tmp6_;
#line 190 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp9_ = _tmp8_;
+ source_collection_remove_backlink (_tmp5_, _tmp7_);
#line 190 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- source_collection_remove_backlink (_tmp6_, _tmp9_);
-#line 190 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _source_backlink_unref0 (_tmp9_);
+ _source_backlink_unref0 (_tmp7_);
#line 189 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
_data_collection_unref0 (collection);
-#line 1575 "ContainerSourceCollection.c"
+#line 1655 "ContainerSourceCollection.c"
}
#line 189 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
_g_object_unref0 (_collection_it);
-#line 1579 "ContainerSourceCollection.c"
+#line 1659 "ContainerSourceCollection.c"
}
#line 193 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp10_ = source;
-#line 193 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- SOURCE_COLLECTION_CLASS (container_source_collection_parent_class)->notify_item_destroyed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection), TYPE_SOURCE_COLLECTION, SourceCollection), _tmp10_);
-#line 1585 "ContainerSourceCollection.c"
+ SOURCE_COLLECTION_CLASS (container_source_collection_parent_class)->notify_item_destroyed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection), TYPE_SOURCE_COLLECTION, SourceCollection), source);
+#line 1663 "ContainerSourceCollection.c"
}
-void container_source_collection_evaporate (ContainerSourceCollection* self, ContainerSource* container) {
- ContainerSource* _tmp21_;
- Marker* _tmp22_;
- Marker* _tmp23_;
+void
+container_source_collection_evaporate (ContainerSourceCollection* self,
+ ContainerSource* container)
+{
+ Marker* _tmp15_;
+ Marker* _tmp16_;
#line 200 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
g_return_if_fail (IS_CONTAINER_SOURCE_COLLECTION (self));
#line 200 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
g_return_if_fail (IS_CONTAINER_SOURCE (container));
-#line 1597 "ContainerSourceCollection.c"
+#line 1677 "ContainerSourceCollection.c"
{
GeeIterator* _collection_it = NULL;
GeeHashSet* _tmp0_;
@@ -1607,155 +1687,147 @@ void container_source_collection_evaporate (ContainerSourceCollection* self, Con
_collection_it = _tmp1_;
#line 201 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
while (TRUE) {
-#line 1610 "ContainerSourceCollection.c"
+#line 1690 "ContainerSourceCollection.c"
GeeIterator* _tmp2_;
- gboolean _tmp3_;
SourceCollection* collection = NULL;
- GeeIterator* _tmp4_;
- gpointer _tmp5_;
- SourceCollection* _tmp6_;
- ContainerSource* _tmp7_;
- SourceBacklink* _tmp8_;
- SourceBacklink* _tmp9_;
- gboolean _tmp10_;
- gboolean _tmp11_;
+ GeeIterator* _tmp3_;
+ gpointer _tmp4_;
+ SourceCollection* _tmp5_;
+ SourceBacklink* _tmp6_;
+ SourceBacklink* _tmp7_;
+ gboolean _tmp8_;
#line 201 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
_tmp2_ = _collection_it;
#line 201 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp3_ = gee_iterator_next (_tmp2_);
-#line 201 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- if (!_tmp3_) {
+ if (!gee_iterator_next (_tmp2_)) {
#line 201 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
break;
-#line 1630 "ContainerSourceCollection.c"
+#line 1705 "ContainerSourceCollection.c"
}
#line 201 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp4_ = _collection_it;
+ _tmp3_ = _collection_it;
#line 201 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp5_ = gee_iterator_get (_tmp4_);
+ _tmp4_ = gee_iterator_get (_tmp3_);
#line 201 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- collection = (SourceCollection*) _tmp5_;
-#line 202 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp6_ = collection;
-#line 202 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp7_ = container;
+ collection = (SourceCollection*) _tmp4_;
#line 202 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp8_ = container_source_get_backlink (_tmp7_);
+ _tmp5_ = collection;
#line 202 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp9_ = _tmp8_;
+ _tmp6_ = container_source_get_backlink (container);
#line 202 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp10_ = source_collection_has_backlink (_tmp6_, _tmp9_);
+ _tmp7_ = _tmp6_;
#line 202 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp11_ = _tmp10_;
+ _tmp8_ = source_collection_has_backlink (_tmp5_, _tmp7_);
#line 202 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _source_backlink_unref0 (_tmp9_);
+ _source_backlink_unref0 (_tmp7_);
#line 202 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- if (_tmp11_) {
-#line 1654 "ContainerSourceCollection.c"
- ContainerSource* _tmp12_;
- Marker* _tmp13_;
- Marker* _tmp14_;
- GeeCollection* _tmp15_;
- GeeCollection* _tmp16_;
+ if (_tmp8_) {
+#line 1725 "ContainerSourceCollection.c"
+ Marker* _tmp9_;
+ Marker* _tmp10_;
+ GeeCollection* _tmp11_;
+ GeeCollection* _tmp12_;
gboolean added = FALSE;
- GeeHashSet* _tmp17_;
- ContainerSource* _tmp18_;
- gboolean _tmp19_;
- gboolean _tmp20_;
+ GeeHashSet* _tmp13_;
+ gboolean _tmp14_;
#line 203 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp12_ = container;
+ _tmp9_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (container, TYPE_DATA_OBJECT, DataObject));
#line 203 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp13_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_DATA_OBJECT, DataObject));
+ _tmp10_ = _tmp9_;
#line 203 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp14_ = _tmp13_;
+ _tmp11_ = source_collection_unlink_marked (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp10_, NULL, NULL);
#line 203 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp15_ = source_collection_unlink_marked (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp14_, NULL, NULL);
+ _tmp12_ = _tmp11_;
#line 203 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp16_ = _tmp15_;
+ _g_object_unref0 (_tmp12_);
#line 203 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _g_object_unref0 (_tmp16_);
-#line 203 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _g_object_unref0 (_tmp14_);
-#line 204 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp17_ = self->priv->holding_tank;
+ _g_object_unref0 (_tmp10_);
#line 204 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp18_ = container;
+ _tmp13_ = self->priv->holding_tank;
#line 204 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp19_ = gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp18_);
-#line 204 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- added = _tmp19_;
+ added = gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), container);
#line 205 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp20_ = added;
+ _tmp14_ = added;
#line 205 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _vala_assert (_tmp20_, "added");
+ _vala_assert (_tmp14_, "added");
#line 206 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
_data_collection_unref0 (collection);
#line 206 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
_g_object_unref0 (_collection_it);
#line 206 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
return;
-#line 1697 "ContainerSourceCollection.c"
+#line 1759 "ContainerSourceCollection.c"
}
#line 201 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
_data_collection_unref0 (collection);
-#line 1701 "ContainerSourceCollection.c"
+#line 1763 "ContainerSourceCollection.c"
}
#line 201 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
_g_object_unref0 (_collection_it);
-#line 1705 "ContainerSourceCollection.c"
+#line 1767 "ContainerSourceCollection.c"
}
#line 210 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp21_ = container;
+ _tmp15_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (container, TYPE_DATA_OBJECT, DataObject));
#line 210 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp22_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_DATA_OBJECT, DataObject));
+ _tmp16_ = _tmp15_;
#line 210 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp23_ = _tmp22_;
+ source_collection_destroy_marked (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp16_, TRUE, NULL, NULL, NULL);
#line 210 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- source_collection_destroy_marked (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp23_, TRUE, NULL, NULL, NULL);
-#line 210 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _g_object_unref0 (_tmp23_);
-#line 1717 "ContainerSourceCollection.c"
+ _g_object_unref0 (_tmp16_);
+#line 1777 "ContainerSourceCollection.c"
}
-static void _container_source_collection_on_contained_sources_unlinking_source_collection_items_unlinking (SourceCollection* _sender, GeeCollection* unlinking, gpointer self) {
+static void
+_container_source_collection_on_contained_sources_unlinking_source_collection_items_unlinking (SourceCollection* _sender,
+ GeeCollection* unlinking,
+ gpointer self)
+{
#line 221 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
container_source_collection_on_contained_sources_unlinking ((ContainerSourceCollection*) self, unlinking);
-#line 1724 "ContainerSourceCollection.c"
+#line 1788 "ContainerSourceCollection.c"
}
-static void _container_source_collection_on_contained_sources_relinked_source_collection_items_relinked (SourceCollection* _sender, GeeCollection* relinked, gpointer self) {
+static void
+_container_source_collection_on_contained_sources_relinked_source_collection_items_relinked (SourceCollection* _sender,
+ GeeCollection* relinked,
+ gpointer self)
+{
#line 222 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
container_source_collection_on_contained_sources_relinked ((ContainerSourceCollection*) self, relinked);
-#line 1731 "ContainerSourceCollection.c"
+#line 1799 "ContainerSourceCollection.c"
}
-static void _container_source_collection_on_contained_source_destroyed_source_collection_item_destroyed (SourceCollection* _sender, DataSource* source, gpointer self) {
+static void
+_container_source_collection_on_contained_source_destroyed_source_collection_item_destroyed (SourceCollection* _sender,
+ DataSource* source,
+ gpointer self)
+{
#line 223 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
container_source_collection_on_contained_source_destroyed ((ContainerSourceCollection*) self, source);
-#line 1738 "ContainerSourceCollection.c"
+#line 1810 "ContainerSourceCollection.c"
}
-static void _container_source_collection_on_contained_source_destroyed_source_collection_unlinked_destroyed (SourceCollection* _sender, DataSource* source, gpointer self) {
+static void
+_container_source_collection_on_contained_source_destroyed_source_collection_unlinked_destroyed (SourceCollection* _sender,
+ DataSource* source,
+ gpointer self)
+{
#line 224 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
container_source_collection_on_contained_source_destroyed ((ContainerSourceCollection*) self, source);
-#line 1745 "ContainerSourceCollection.c"
+#line 1821 "ContainerSourceCollection.c"
}
-void container_source_collection_attach_collection (ContainerSourceCollection* self, SourceCollection* collection) {
+void
+container_source_collection_attach_collection (ContainerSourceCollection* self,
+ SourceCollection* collection)
+{
GeeHashSet* _tmp0_;
- SourceCollection* _tmp1_;
- gboolean _tmp2_;
- GeeHashSet* _tmp8_;
- SourceCollection* _tmp9_;
- SourceCollection* _tmp10_;
- SourceCollection* _tmp11_;
- SourceCollection* _tmp12_;
- SourceCollection* _tmp13_;
+ GeeHashSet* _tmp5_;
#line 213 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
g_return_if_fail (IS_CONTAINER_SOURCE_COLLECTION (self));
#line 213 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
@@ -1763,69 +1835,54 @@ void container_source_collection_attach_collection (ContainerSourceCollection* s
#line 214 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
_tmp0_ = self->priv->attached_collections;
#line 214 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp1_ = collection;
-#line 214 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp2_ = gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp1_);
-#line 214 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- if (_tmp2_) {
-#line 1771 "ContainerSourceCollection.c"
- SourceCollection* _tmp3_;
+ if (gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), collection)) {
+#line 1839 "ContainerSourceCollection.c"
+ gchar* _tmp1_;
+ gchar* _tmp2_;
+ gchar* _tmp3_;
gchar* _tmp4_;
- gchar* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
-#line 215 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp3_ = collection;
#line 215 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp4_ = data_collection_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_COLLECTION, DataCollection));
+ _tmp1_ = data_collection_to_string (G_TYPE_CHECK_INSTANCE_CAST (collection, TYPE_DATA_COLLECTION, DataCollection));
#line 215 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp5_ = _tmp4_;
+ _tmp2_ = _tmp1_;
#line 215 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp6_ = data_collection_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection));
+ _tmp3_ = data_collection_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection));
#line 215 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp7_ = _tmp6_;
+ _tmp4_ = _tmp3_;
#line 215 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
g_warning ("ContainerSourceCollection.vala:215: attempted to multiple-attach '%s' " \
-"to '%s'", _tmp5_, _tmp7_);
+"to '%s'", _tmp2_, _tmp4_);
#line 215 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _g_free0 (_tmp7_);
+ _g_free0 (_tmp4_);
#line 215 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _g_free0 (_tmp5_);
+ _g_free0 (_tmp2_);
#line 216 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
return;
-#line 1795 "ContainerSourceCollection.c"
+#line 1860 "ContainerSourceCollection.c"
}
#line 219 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp8_ = self->priv->attached_collections;
+ _tmp5_ = self->priv->attached_collections;
#line 219 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp9_ = collection;
-#line 219 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp9_);
-#line 221 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp10_ = collection;
+ gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), collection);
#line 221 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_signal_connect (_tmp10_, "items-unlinking", (GCallback) _container_source_collection_on_contained_sources_unlinking_source_collection_items_unlinking, self);
+ g_signal_connect (collection, "items-unlinking", (GCallback) _container_source_collection_on_contained_sources_unlinking_source_collection_items_unlinking, self);
#line 222 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp11_ = collection;
-#line 222 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_signal_connect (_tmp11_, "items-relinked", (GCallback) _container_source_collection_on_contained_sources_relinked_source_collection_items_relinked, self);
-#line 223 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp12_ = collection;
+ g_signal_connect (collection, "items-relinked", (GCallback) _container_source_collection_on_contained_sources_relinked_source_collection_items_relinked, self);
#line 223 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_signal_connect (_tmp12_, "item-destroyed", (GCallback) _container_source_collection_on_contained_source_destroyed_source_collection_item_destroyed, self);
+ g_signal_connect (collection, "item-destroyed", (GCallback) _container_source_collection_on_contained_source_destroyed_source_collection_item_destroyed, self);
#line 224 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp13_ = collection;
-#line 224 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_signal_connect (_tmp13_, "unlinked-destroyed", (GCallback) _container_source_collection_on_contained_source_destroyed_source_collection_unlinked_destroyed, self);
-#line 1819 "ContainerSourceCollection.c"
+ g_signal_connect (collection, "unlinked-destroyed", (GCallback) _container_source_collection_on_contained_source_destroyed_source_collection_unlinked_destroyed, self);
+#line 1874 "ContainerSourceCollection.c"
}
-void container_source_collection_detach_all_collections (ContainerSourceCollection* self) {
- GeeHashSet* _tmp14_;
+void
+container_source_collection_detach_all_collections (ContainerSourceCollection* self)
+{
+ GeeHashSet* _tmp13_;
#line 227 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
g_return_if_fail (IS_CONTAINER_SOURCE_COLLECTION (self));
-#line 1827 "ContainerSourceCollection.c"
+#line 1884 "ContainerSourceCollection.c"
{
GeeIterator* _collection_it = NULL;
GeeHashSet* _tmp0_;
@@ -1838,86 +1895,95 @@ void container_source_collection_detach_all_collections (ContainerSourceCollecti
_collection_it = _tmp1_;
#line 228 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
while (TRUE) {
-#line 1840 "ContainerSourceCollection.c"
+#line 1897 "ContainerSourceCollection.c"
GeeIterator* _tmp2_;
- gboolean _tmp3_;
SourceCollection* collection = NULL;
- GeeIterator* _tmp4_;
- gpointer _tmp5_;
- SourceCollection* _tmp6_;
- guint _tmp7_;
- SourceCollection* _tmp8_;
- guint _tmp9_;
- SourceCollection* _tmp10_;
- guint _tmp11_;
- SourceCollection* _tmp12_;
- guint _tmp13_;
+ GeeIterator* _tmp3_;
+ gpointer _tmp4_;
+ SourceCollection* _tmp5_;
+ guint _tmp6_;
+ SourceCollection* _tmp7_;
+ guint _tmp8_;
+ SourceCollection* _tmp9_;
+ guint _tmp10_;
+ SourceCollection* _tmp11_;
+ guint _tmp12_;
#line 228 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
_tmp2_ = _collection_it;
#line 228 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp3_ = gee_iterator_next (_tmp2_);
-#line 228 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- if (!_tmp3_) {
+ if (!gee_iterator_next (_tmp2_)) {
#line 228 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
break;
-#line 1862 "ContainerSourceCollection.c"
+#line 1916 "ContainerSourceCollection.c"
}
#line 228 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp4_ = _collection_it;
+ _tmp3_ = _collection_it;
#line 228 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp5_ = gee_iterator_get (_tmp4_);
+ _tmp4_ = gee_iterator_get (_tmp3_);
#line 228 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- collection = (SourceCollection*) _tmp5_;
+ collection = (SourceCollection*) _tmp4_;
#line 229 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp6_ = collection;
+ _tmp5_ = collection;
#line 229 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_signal_parse_name ("items-unlinking", TYPE_SOURCE_COLLECTION, &_tmp7_, NULL, FALSE);
+ g_signal_parse_name ("items-unlinking", TYPE_SOURCE_COLLECTION, &_tmp6_, NULL, FALSE);
#line 229 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_signal_handlers_disconnect_matched (_tmp6_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp7_, 0, NULL, (GCallback) _container_source_collection_on_contained_sources_unlinking_source_collection_items_unlinking, self);
+ g_signal_handlers_disconnect_matched (_tmp5_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp6_, 0, NULL, (GCallback) _container_source_collection_on_contained_sources_unlinking_source_collection_items_unlinking, self);
#line 230 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp8_ = collection;
+ _tmp7_ = collection;
#line 230 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_signal_parse_name ("items-relinked", TYPE_SOURCE_COLLECTION, &_tmp9_, NULL, FALSE);
+ g_signal_parse_name ("items-relinked", TYPE_SOURCE_COLLECTION, &_tmp8_, NULL, FALSE);
#line 230 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_signal_handlers_disconnect_matched (_tmp8_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp9_, 0, NULL, (GCallback) _container_source_collection_on_contained_sources_relinked_source_collection_items_relinked, self);
+ g_signal_handlers_disconnect_matched (_tmp7_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp8_, 0, NULL, (GCallback) _container_source_collection_on_contained_sources_relinked_source_collection_items_relinked, self);
#line 231 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp10_ = collection;
+ _tmp9_ = collection;
#line 231 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_signal_parse_name ("item-destroyed", TYPE_SOURCE_COLLECTION, &_tmp11_, NULL, FALSE);
+ g_signal_parse_name ("item-destroyed", TYPE_SOURCE_COLLECTION, &_tmp10_, NULL, FALSE);
#line 231 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_signal_handlers_disconnect_matched (_tmp10_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp11_, 0, NULL, (GCallback) _container_source_collection_on_contained_source_destroyed_source_collection_item_destroyed, self);
+ g_signal_handlers_disconnect_matched (_tmp9_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp10_, 0, NULL, (GCallback) _container_source_collection_on_contained_source_destroyed_source_collection_item_destroyed, self);
#line 232 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp12_ = collection;
+ _tmp11_ = collection;
#line 232 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_signal_parse_name ("unlinked-destroyed", TYPE_SOURCE_COLLECTION, &_tmp13_, NULL, FALSE);
+ g_signal_parse_name ("unlinked-destroyed", TYPE_SOURCE_COLLECTION, &_tmp12_, NULL, FALSE);
#line 232 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- g_signal_handlers_disconnect_matched (_tmp12_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp13_, 0, NULL, (GCallback) _container_source_collection_on_contained_source_destroyed_source_collection_unlinked_destroyed, self);
+ g_signal_handlers_disconnect_matched (_tmp11_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp12_, 0, NULL, (GCallback) _container_source_collection_on_contained_source_destroyed_source_collection_unlinked_destroyed, self);
#line 228 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
_data_collection_unref0 (collection);
-#line 1896 "ContainerSourceCollection.c"
+#line 1950 "ContainerSourceCollection.c"
}
#line 228 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
_g_object_unref0 (_collection_it);
-#line 1900 "ContainerSourceCollection.c"
+#line 1954 "ContainerSourceCollection.c"
}
#line 235 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- _tmp14_ = self->priv->attached_collections;
+ _tmp13_ = self->priv->attached_collections;
#line 235 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
- gee_abstract_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
-#line 1906 "ContainerSourceCollection.c"
+ gee_abstract_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
+#line 1960 "ContainerSourceCollection.c"
}
-static void container_source_collection_real_container_contents_added (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* added, gboolean relinked) {
+static void
+container_source_collection_real_container_contents_added (ContainerSourceCollection* self,
+ ContainerSource* container,
+ GeeCollection* added,
+ gboolean relinked)
+{
#line 20 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
g_return_if_fail (IS_CONTAINER_SOURCE (container));
#line 20 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
g_return_if_fail (GEE_IS_COLLECTION (added));
-#line 1915 "ContainerSourceCollection.c"
+#line 1974 "ContainerSourceCollection.c"
}
-static void g_cclosure_user_marshal_VOID__OBJECT_OBJECT_BOOLEAN (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data) {
+static void
+g_cclosure_user_marshal_VOID__OBJECT_OBJECT_BOOLEAN (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_BOOLEAN) (gpointer data1, gpointer arg_1, gpointer arg_2, gboolean arg_3, gpointer data2);
register GMarshalFunc_VOID__OBJECT_OBJECT_BOOLEAN callback;
register GCClosure * cc;
@@ -1932,43 +1998,62 @@ static void g_cclosure_user_marshal_VOID__OBJECT_OBJECT_BOOLEAN (GClosure * clos
data1 = closure->data;
#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
data2 = param_values->data[0].v_pointer;
-#line 1934 "ContainerSourceCollection.c"
+#line 2000 "ContainerSourceCollection.c"
} else {
#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
data1 = param_values->data[0].v_pointer;
#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
data2 = closure->data;
-#line 1940 "ContainerSourceCollection.c"
+#line 2006 "ContainerSourceCollection.c"
}
#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
callback = (GMarshalFunc_VOID__OBJECT_OBJECT_BOOLEAN) (marshal_data ? marshal_data : cc->callback);
#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
callback (data1, g_value_get_object (param_values + 1), g_value_get_object (param_values + 2), g_value_get_boolean (param_values + 3), data2);
-#line 1946 "ContainerSourceCollection.c"
+#line 2012 "ContainerSourceCollection.c"
}
-static void container_source_collection_real_container_contents_removed (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* removed, gboolean unlinked) {
+static void
+container_source_collection_real_container_contents_removed (ContainerSourceCollection* self,
+ ContainerSource* container,
+ GeeCollection* removed,
+ gboolean unlinked)
+{
#line 24 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
g_return_if_fail (IS_CONTAINER_SOURCE (container));
#line 24 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
g_return_if_fail (GEE_IS_COLLECTION (removed));
-#line 1955 "ContainerSourceCollection.c"
+#line 2026 "ContainerSourceCollection.c"
}
-static void container_source_collection_real_container_contents_altered (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* added, gboolean relinked, GeeCollection* removed, gboolean unlinked) {
+static void
+container_source_collection_real_container_contents_altered (ContainerSourceCollection* self,
+ ContainerSource* container,
+ GeeCollection* added,
+ gboolean relinked,
+ GeeCollection* removed,
+ gboolean unlinked)
+{
#line 28 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
g_return_if_fail (IS_CONTAINER_SOURCE (container));
#line 28 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
g_return_if_fail ((added == NULL) || GEE_IS_COLLECTION (added));
#line 28 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
g_return_if_fail ((removed == NULL) || GEE_IS_COLLECTION (removed));
-#line 1966 "ContainerSourceCollection.c"
+#line 2044 "ContainerSourceCollection.c"
}
-static void g_cclosure_user_marshal_VOID__OBJECT_OBJECT_BOOLEAN_OBJECT_BOOLEAN (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data) {
+static void
+g_cclosure_user_marshal_VOID__OBJECT_OBJECT_BOOLEAN_OBJECT_BOOLEAN (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_BOOLEAN_OBJECT_BOOLEAN) (gpointer data1, gpointer arg_1, gpointer arg_2, gboolean arg_3, gpointer arg_4, gboolean arg_5, gpointer data2);
register GMarshalFunc_VOID__OBJECT_OBJECT_BOOLEAN_OBJECT_BOOLEAN callback;
register GCClosure * cc;
@@ -1983,32 +2068,43 @@ static void g_cclosure_user_marshal_VOID__OBJECT_OBJECT_BOOLEAN_OBJECT_BOOLEAN (
data1 = closure->data;
#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
data2 = param_values->data[0].v_pointer;
-#line 1985 "ContainerSourceCollection.c"
+#line 2070 "ContainerSourceCollection.c"
} else {
#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
data1 = param_values->data[0].v_pointer;
#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
data2 = closure->data;
-#line 1991 "ContainerSourceCollection.c"
+#line 2076 "ContainerSourceCollection.c"
}
#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
callback = (GMarshalFunc_VOID__OBJECT_OBJECT_BOOLEAN_OBJECT_BOOLEAN) (marshal_data ? marshal_data : cc->callback);
#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
callback (data1, g_value_get_object (param_values + 1), g_value_get_object (param_values + 2), g_value_get_boolean (param_values + 3), g_value_get_object (param_values + 4), g_value_get_boolean (param_values + 5), data2);
-#line 1997 "ContainerSourceCollection.c"
+#line 2082 "ContainerSourceCollection.c"
}
-static void container_source_collection_real_backlink_to_container_removed (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* sources) {
+static void
+container_source_collection_real_backlink_to_container_removed (ContainerSourceCollection* self,
+ ContainerSource* container,
+ GeeCollection* sources)
+{
#line 34 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
g_return_if_fail (IS_CONTAINER_SOURCE (container));
#line 34 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
g_return_if_fail (GEE_IS_COLLECTION (sources));
-#line 2006 "ContainerSourceCollection.c"
+#line 2095 "ContainerSourceCollection.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) {
+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;
@@ -2023,23 +2119,25 @@ static void g_cclosure_user_marshal_VOID__OBJECT_OBJECT (GClosure * closure, GVa
data1 = closure->data;
#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
data2 = param_values->data[0].v_pointer;
-#line 2025 "ContainerSourceCollection.c"
+#line 2121 "ContainerSourceCollection.c"
} else {
#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
data1 = param_values->data[0].v_pointer;
#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
data2 = closure->data;
-#line 2031 "ContainerSourceCollection.c"
+#line 2127 "ContainerSourceCollection.c"
}
#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
callback = (GMarshalFunc_VOID__OBJECT_OBJECT) (marshal_data ? marshal_data : cc->callback);
#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
callback (data1, g_value_get_object (param_values + 1), g_value_get_object (param_values + 2), data2);
-#line 2037 "ContainerSourceCollection.c"
+#line 2133 "ContainerSourceCollection.c"
}
-static void container_source_collection_class_init (ContainerSourceCollectionClass * klass) {
+static void
+container_source_collection_class_init (ContainerSourceCollectionClass * klass)
+{
#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
container_source_collection_parent_class = g_type_class_peek_parent (klass);
#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
@@ -2078,11 +2176,13 @@ static void container_source_collection_class_init (ContainerSourceCollectionCla
container_source_collection_signals[CONTAINER_SOURCE_COLLECTION_CONTAINER_CONTENTS_ALTERED_SIGNAL] = g_signal_new ("container-contents-altered", TYPE_CONTAINER_SOURCE_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (ContainerSourceCollectionClass, container_contents_altered), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT_BOOLEAN_OBJECT_BOOLEAN, G_TYPE_NONE, 5, TYPE_CONTAINER_SOURCE, GEE_TYPE_COLLECTION, G_TYPE_BOOLEAN, GEE_TYPE_COLLECTION, G_TYPE_BOOLEAN);
#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
container_source_collection_signals[CONTAINER_SOURCE_COLLECTION_BACKLINK_TO_CONTAINER_REMOVED_SIGNAL] = g_signal_new ("backlink-to-container-removed", TYPE_CONTAINER_SOURCE_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (ContainerSourceCollectionClass, backlink_to_container_removed), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT, G_TYPE_NONE, 2, TYPE_CONTAINER_SOURCE, GEE_TYPE_COLLECTION);
-#line 2080 "ContainerSourceCollection.c"
+#line 2178 "ContainerSourceCollection.c"
}
-static void container_source_collection_instance_init (ContainerSourceCollection * self) {
+static void
+container_source_collection_instance_init (ContainerSourceCollection * self)
+{
GeeHashSet* _tmp0_;
GeeHashSet* _tmp1_;
#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
@@ -2095,11 +2195,13 @@ static void container_source_collection_instance_init (ContainerSourceCollection
_tmp1_ = gee_hash_set_new (TYPE_CONTAINER_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL);
#line 18 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
self->priv->holding_tank = _tmp1_;
-#line 2097 "ContainerSourceCollection.c"
+#line 2197 "ContainerSourceCollection.c"
}
-static void container_source_collection_finalize (DataCollection * obj) {
+static void
+container_source_collection_finalize (DataCollection * obj)
+{
ContainerSourceCollection * self;
#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection);
@@ -2113,11 +2215,13 @@ static void container_source_collection_finalize (DataCollection * obj) {
_g_object_unref0 (self->priv->holding_tank);
#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala"
DATA_COLLECTION_CLASS (container_source_collection_parent_class)->finalize (obj);
-#line 2115 "ContainerSourceCollection.c"
+#line 2217 "ContainerSourceCollection.c"
}
-GType container_source_collection_get_type (void) {
+GType
+container_source_collection_get_type (void)
+{
static volatile gsize container_source_collection_type_id__volatile = 0;
if (g_once_init_enter (&container_source_collection_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (ContainerSourceCollectionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) container_source_collection_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ContainerSourceCollection), 0, (GInstanceInitFunc) container_source_collection_instance_init, NULL };