summaryrefslogtreecommitdiff
path: root/src/Event.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2017-11-12 15:53:58 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2017-11-12 15:53:58 +0100
commit2492891f112caac6076ce49721d9d5d78a152c3a (patch)
tree36dd11a60bd963e6bd44e2e312b6e4b57d1849ea /src/Event.c
parent3c829c50a8f705402bdc759946d49ae7caebd003 (diff)
New upstream version 0.26.4upstream/0.26.4
Diffstat (limited to 'src/Event.c')
-rw-r--r--src/Event.c3012
1 files changed, 1507 insertions, 1505 deletions
diff --git a/src/Event.c b/src/Event.c
index 9f49ff5..c427644 100644
--- a/src/Event.c
+++ b/src/Event.c
@@ -1,4 +1,4 @@
-/* Event.c generated by valac 0.34.7, the Vala compiler
+/* Event.c generated by valac 0.36.6, the Vala compiler
* generated from Event.vala, do not modify */
/* Copyright 2016 Software Freedom Conservancy Inc.
@@ -268,6 +268,11 @@ typedef struct _EventSourceCollectionNoEventViewManagerPrivate EventSourceCollec
typedef struct _ThumbnailView ThumbnailView;
typedef struct _ThumbnailViewClass ThumbnailViewClass;
+enum {
+ EVENT_SOURCE_COLLECTION_NO_EVENT_COLLECTION_ALTERED_SIGNAL,
+ EVENT_SOURCE_COLLECTION_LAST_SIGNAL
+};
+static guint event_source_collection_signals[EVENT_SOURCE_COLLECTION_LAST_SIGNAL] = {0};
typedef struct _DataObjectPrivate DataObjectPrivate;
typedef struct _DataSourcePrivate DataSourcePrivate;
@@ -904,9 +909,9 @@ static EventTable* event_event_table;
static EventTable* event_event_table = NULL;
static gpointer event_event_snapshot_parent_class = NULL;
static gpointer event_event_proxy_parent_class = NULL;
-static ContainerSourceIface* event_container_source_parent_iface = NULL;
-static ProxyableIface* event_proxyable_parent_iface = NULL;
-static IndexableIface* event_indexable_parent_iface = NULL;
+static ContainerSourceIface * event_container_source_parent_iface = NULL;
+static ProxyableIface * event_proxyable_parent_iface = NULL;
+static IndexableIface * event_indexable_parent_iface = NULL;
gpointer data_collection_ref (gpointer instance);
void data_collection_unref (gpointer instance);
@@ -1009,7 +1014,7 @@ ThumbnailView* thumbnail_view_new (ThumbnailSource* source);
ThumbnailView* thumbnail_view_construct (GType object_type, ThumbnailSource* source);
GType thumbnail_view_get_type (void) G_GNUC_CONST;
ViewManager* view_manager_construct (GType object_type);
-static void event_source_collection_finalize (DataCollection* obj);
+static void event_source_collection_finalize (DataCollection * obj);
gpointer source_holding_tank_ref (gpointer instance);
void source_holding_tank_unref (gpointer instance);
GParamSpec* param_spec_source_holding_tank (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
@@ -1260,13 +1265,13 @@ static void event_event_snapshot_real_notify_broken (SourceSnapshot* base);
EventRow* event_row_new (void);
EventRow* event_row_construct (GType object_type);
void source_snapshot_notify_broken (SourceSnapshot* self);
-static void event_event_snapshot_finalize (SourceSnapshot* obj);
+static void event_event_snapshot_finalize (SourceSnapshot * obj);
enum {
EVENT_EVENT_PROXY_DUMMY_PROPERTY
};
SourceProxy* source_proxy_construct (GType object_type, DataSource* source);
static DataSource* event_event_proxy_real_reconstitute (SourceProxy* base, gint64 object_id, SourceSnapshot* snapshot);
-static void event_finalize (GObject* obj);
+static void event_finalize (GObject * obj);
static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);
@@ -1276,14 +1281,14 @@ static gint64 _event_source_collection_get_event_key_get_source_database_key (Da
result = event_source_collection_get_event_key (source);
#line 25 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 1280 "Event.c"
+#line 1285 "Event.c"
}
EventSourceCollection* event_source_collection_construct (GType object_type) {
EventSourceCollection* self = NULL;
- LibraryPhotoSourceCollection* _tmp0_ = NULL;
- VideoSourceCollection* _tmp1_ = NULL;
+ LibraryPhotoSourceCollection* _tmp0_;
+ VideoSourceCollection* _tmp1_;
#line 25 "/home/jens/Source/shotwell/src/Event.vala"
self = (EventSourceCollection*) container_source_collection_construct (object_type, EVENT_TYPENAME, "EventSourceCollection", _event_source_collection_get_event_key_get_source_database_key, NULL);
#line 27 "/home/jens/Source/shotwell/src/Event.vala"
@@ -1296,39 +1301,39 @@ EventSourceCollection* event_source_collection_construct (GType object_type) {
container_source_collection_attach_collection (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_SOURCE_COLLECTION, SourceCollection));
#line 24 "/home/jens/Source/shotwell/src/Event.vala"
return self;
-#line 1300 "Event.c"
+#line 1305 "Event.c"
}
EventSourceCollection* event_source_collection_new (void) {
#line 24 "/home/jens/Source/shotwell/src/Event.vala"
return event_source_collection_construct (TYPE_EVENT_SOURCE_COLLECTION);
-#line 1307 "Event.c"
+#line 1312 "Event.c"
}
static void _event_source_collection_on_no_event_collection_altered_data_collection_contents_altered (DataCollection* _sender, GeeIterable* added, GeeIterable* removed, gpointer self) {
#line 40 "/home/jens/Source/shotwell/src/Event.vala"
event_source_collection_on_no_event_collection_altered ((EventSourceCollection*) self, added, removed);
-#line 1314 "Event.c"
+#line 1319 "Event.c"
}
void event_source_collection_init (EventSourceCollection* self) {
- ViewCollection* _tmp0_ = NULL;
+ ViewCollection* _tmp0_;
EventSourceCollectionNoEventViewManager* view_manager = NULL;
- EventSourceCollectionNoEventViewManager* _tmp1_ = NULL;
+ EventSourceCollectionNoEventViewManager* _tmp1_;
Alteration* filter_alteration = NULL;
- Alteration* _tmp2_ = NULL;
- ViewCollection* _tmp3_ = NULL;
- LibraryPhotoSourceCollection* _tmp4_ = NULL;
- ViewCollectionMonitor* _tmp5_ = NULL;
- ViewCollectionMonitor* _tmp6_ = NULL;
- ViewCollection* _tmp7_ = NULL;
- VideoSourceCollection* _tmp8_ = NULL;
- ViewCollectionMonitor* _tmp9_ = NULL;
- ViewCollectionMonitor* _tmp10_ = NULL;
- ViewCollection* _tmp11_ = NULL;
+ Alteration* _tmp2_;
+ ViewCollection* _tmp3_;
+ LibraryPhotoSourceCollection* _tmp4_;
+ ViewCollectionMonitor* _tmp5_;
+ ViewCollectionMonitor* _tmp6_;
+ ViewCollection* _tmp7_;
+ VideoSourceCollection* _tmp8_;
+ ViewCollectionMonitor* _tmp9_;
+ ViewCollectionMonitor* _tmp10_;
+ ViewCollection* _tmp11_;
#line 31 "/home/jens/Source/shotwell/src/Event.vala"
g_return_if_fail (IS_EVENT_SOURCE_COLLECTION (self));
#line 32 "/home/jens/Source/shotwell/src/Event.vala"
@@ -1373,14 +1378,14 @@ void event_source_collection_init (EventSourceCollection* self) {
_alteration_unref0 (filter_alteration);
#line 31 "/home/jens/Source/shotwell/src/Event.vala"
_view_manager_unref0 (view_manager);
-#line 1377 "Event.c"
+#line 1382 "Event.c"
}
static gboolean event_source_collection_real_holds_type_of_source (SourceCollection* base, DataSource* source) {
EventSourceCollection * self;
gboolean result = FALSE;
- DataSource* _tmp0_ = NULL;
+ DataSource* _tmp0_;
#line 43 "/home/jens/Source/shotwell/src/Event.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollection);
#line 43 "/home/jens/Source/shotwell/src/Event.vala"
@@ -1391,26 +1396,26 @@ static gboolean event_source_collection_real_holds_type_of_source (SourceCollect
result = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_EVENT);
#line 44 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 1395 "Event.c"
+#line 1400 "Event.c"
}
static gpointer _g_object_ref0 (gpointer self) {
#line 48 "/home/jens/Source/shotwell/src/Event.vala"
return self ? g_object_ref (self) : NULL;
-#line 1402 "Event.c"
+#line 1407 "Event.c"
}
static gint64 event_source_collection_get_event_key (DataSource* source) {
gint64 result = 0LL;
Event* event = NULL;
- DataSource* _tmp0_ = NULL;
- Event* _tmp1_ = NULL;
+ DataSource* _tmp0_;
+ Event* _tmp1_;
EventID event_id = {0};
EventID _tmp2_ = {0};
- EventID _tmp3_ = {0};
- gint64 _tmp4_ = 0LL;
+ EventID _tmp3_;
+ gint64 _tmp4_;
#line 47 "/home/jens/Source/shotwell/src/Event.vala"
g_return_val_if_fail (IS_DATA_SOURCE (source), 0LL);
#line 48 "/home/jens/Source/shotwell/src/Event.vala"
@@ -1433,15 +1438,15 @@ static gint64 event_source_collection_get_event_key (DataSource* source) {
_g_object_unref0 (event);
#line 51 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 1437 "Event.c"
+#line 1442 "Event.c"
}
Event* event_source_collection_fetch (EventSourceCollection* self, EventID* event_id) {
Event* result = NULL;
- EventID _tmp0_ = {0};
- gint64 _tmp1_ = 0LL;
- DataSource* _tmp2_ = NULL;
+ EventID _tmp0_;
+ gint64 _tmp1_;
+ DataSource* _tmp2_;
#line 54 "/home/jens/Source/shotwell/src/Event.vala"
g_return_val_if_fail (IS_EVENT_SOURCE_COLLECTION (self), NULL);
#line 54 "/home/jens/Source/shotwell/src/Event.vala"
@@ -1456,7 +1461,7 @@ Event* event_source_collection_fetch (EventSourceCollection* self, EventID* even
result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_EVENT, Event);
#line 55 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 1460 "Event.c"
+#line 1465 "Event.c"
}
@@ -1464,13 +1469,13 @@ static GeeCollection* event_source_collection_real_get_containers_holding_source
EventSourceCollection * self;
GeeCollection* result = NULL;
Event* event = NULL;
- DataSource* _tmp0_ = NULL;
- Event* _tmp1_ = NULL;
- Event* _tmp2_ = NULL;
+ DataSource* _tmp0_;
+ Event* _tmp1_;
+ Event* _tmp2_;
GeeArrayList* list = NULL;
- GeeArrayList* _tmp3_ = NULL;
- GeeArrayList* _tmp4_ = NULL;
- Event* _tmp5_ = NULL;
+ GeeArrayList* _tmp3_;
+ GeeArrayList* _tmp4_;
+ Event* _tmp5_;
#line 58 "/home/jens/Source/shotwell/src/Event.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollection);
#line 58 "/home/jens/Source/shotwell/src/Event.vala"
@@ -1491,7 +1496,7 @@ static GeeCollection* event_source_collection_real_get_containers_holding_source
_g_object_unref0 (event);
#line 61 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 1495 "Event.c"
+#line 1500 "Event.c"
}
#line 63 "/home/jens/Source/shotwell/src/Event.vala"
_tmp3_ = gee_array_list_new (TYPE_CONTAINER_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
@@ -1509,7 +1514,7 @@ static GeeCollection* event_source_collection_real_get_containers_holding_source
_g_object_unref0 (event);
#line 66 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 1513 "Event.c"
+#line 1518 "Event.c"
}
@@ -1517,13 +1522,13 @@ static ContainerSource* event_source_collection_real_convert_backlink_to_contain
EventSourceCollection * self;
ContainerSource* result = NULL;
EventID event_id = {0};
- SourceBacklink* _tmp0_ = NULL;
- gint64 _tmp1_ = 0LL;
- gint64 _tmp2_ = 0LL;
+ SourceBacklink* _tmp0_;
+ gint64 _tmp1_;
+ gint64 _tmp2_;
Event* event = NULL;
- EventID _tmp3_ = {0};
- Event* _tmp4_ = NULL;
- Event* _tmp5_ = NULL;
+ EventID _tmp3_;
+ Event* _tmp4_;
+ Event* _tmp5_;
#line 69 "/home/jens/Source/shotwell/src/Event.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollection);
#line 69 "/home/jens/Source/shotwell/src/Event.vala"
@@ -1550,14 +1555,14 @@ static ContainerSource* event_source_collection_real_convert_backlink_to_contain
result = G_TYPE_CHECK_INSTANCE_CAST (event, TYPE_CONTAINER_SOURCE, ContainerSource);
#line 74 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 1554 "Event.c"
+#line 1559 "Event.c"
}
{
GeeIterator* _container_it = NULL;
- GeeCollection* _tmp6_ = NULL;
- GeeCollection* _tmp7_ = NULL;
- GeeIterator* _tmp8_ = NULL;
- GeeIterator* _tmp9_ = NULL;
+ GeeCollection* _tmp6_;
+ GeeCollection* _tmp7_;
+ GeeIterator* _tmp8_;
+ GeeIterator* _tmp9_;
#line 76 "/home/jens/Source/shotwell/src/Event.vala"
_tmp6_ = container_source_collection_get_holding_tank (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection));
#line 76 "/home/jens/Source/shotwell/src/Event.vala"
@@ -1572,17 +1577,17 @@ static ContainerSource* event_source_collection_real_convert_backlink_to_contain
_container_it = _tmp9_;
#line 76 "/home/jens/Source/shotwell/src/Event.vala"
while (TRUE) {
-#line 1576 "Event.c"
- GeeIterator* _tmp10_ = NULL;
- gboolean _tmp11_ = FALSE;
+#line 1581 "Event.c"
+ GeeIterator* _tmp10_;
+ gboolean _tmp11_;
ContainerSource* container = NULL;
- GeeIterator* _tmp12_ = NULL;
- gpointer _tmp13_ = NULL;
- ContainerSource* _tmp14_ = NULL;
+ GeeIterator* _tmp12_;
+ gpointer _tmp13_;
+ ContainerSource* _tmp14_;
EventID _tmp15_ = {0};
- gint64 _tmp16_ = 0LL;
- EventID _tmp17_ = {0};
- gint64 _tmp18_ = 0LL;
+ gint64 _tmp16_;
+ EventID _tmp17_;
+ gint64 _tmp18_;
#line 76 "/home/jens/Source/shotwell/src/Event.vala"
_tmp10_ = _container_it;
#line 76 "/home/jens/Source/shotwell/src/Event.vala"
@@ -1591,7 +1596,7 @@ static ContainerSource* event_source_collection_real_convert_backlink_to_contain
if (!_tmp11_) {
#line 76 "/home/jens/Source/shotwell/src/Event.vala"
break;
-#line 1595 "Event.c"
+#line 1600 "Event.c"
}
#line 76 "/home/jens/Source/shotwell/src/Event.vala"
_tmp12_ = _container_it;
@@ -1619,15 +1624,15 @@ static ContainerSource* event_source_collection_real_convert_backlink_to_contain
_g_object_unref0 (event);
#line 78 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 1623 "Event.c"
+#line 1628 "Event.c"
}
#line 76 "/home/jens/Source/shotwell/src/Event.vala"
_g_object_unref0 (container);
-#line 1627 "Event.c"
+#line 1632 "Event.c"
}
#line 76 "/home/jens/Source/shotwell/src/Event.vala"
_g_object_unref0 (_container_it);
-#line 1631 "Event.c"
+#line 1636 "Event.c"
}
#line 81 "/home/jens/Source/shotwell/src/Event.vala"
result = NULL;
@@ -1635,14 +1640,14 @@ static ContainerSource* event_source_collection_real_convert_backlink_to_contain
_g_object_unref0 (event);
#line 81 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 1639 "Event.c"
+#line 1644 "Event.c"
}
GeeCollection* event_source_collection_get_no_event_objects (EventSourceCollection* self) {
GeeCollection* result = NULL;
- ViewCollection* _tmp0_ = NULL;
- GeeCollection* _tmp1_ = NULL;
+ ViewCollection* _tmp0_;
+ GeeCollection* _tmp1_;
#line 84 "/home/jens/Source/shotwell/src/Event.vala"
g_return_val_if_fail (IS_EVENT_SOURCE_COLLECTION (self), NULL);
#line 85 "/home/jens/Source/shotwell/src/Event.vala"
@@ -1653,7 +1658,7 @@ GeeCollection* event_source_collection_get_no_event_objects (EventSourceCollecti
result = _tmp1_;
#line 85 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 1657 "Event.c"
+#line 1662 "Event.c"
}
@@ -1665,8 +1670,8 @@ static void event_source_collection_on_no_event_collection_altered (EventSourceC
#line 88 "/home/jens/Source/shotwell/src/Event.vala"
g_return_if_fail ((removed == NULL) || GEE_IS_ITERABLE (removed));
#line 90 "/home/jens/Source/shotwell/src/Event.vala"
- g_signal_emit_by_name (self, "no-event-collection-altered");
-#line 1670 "Event.c"
+ g_signal_emit (self, event_source_collection_signals[EVENT_SOURCE_COLLECTION_NO_EVENT_COLLECTION_ALTERED_SIGNAL], 0);
+#line 1675 "Event.c"
}
@@ -1674,9 +1679,9 @@ static gboolean event_source_collection_no_event_view_manager_real_include_in_vi
EventSourceCollectionNoEventViewManager * self;
gboolean result = FALSE;
gboolean _tmp0_ = FALSE;
- DataSource* _tmp1_ = NULL;
+ DataSource* _tmp1_;
EventID _tmp2_ = {0};
- gint64 _tmp3_ = 0LL;
+ gint64 _tmp3_;
#line 13 "/home/jens/Source/shotwell/src/Event.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENT_SOURCE_COLLECTION_TYPE_NO_EVENT_VIEW_MANAGER, EventSourceCollectionNoEventViewManager);
#line 13 "/home/jens/Source/shotwell/src/Event.vala"
@@ -1691,31 +1696,31 @@ static gboolean event_source_collection_no_event_view_manager_real_include_in_vi
if (_tmp3_ != EVENT_ID_INVALID) {
#line 15 "/home/jens/Source/shotwell/src/Event.vala"
_tmp0_ = FALSE;
-#line 1695 "Event.c"
+#line 1700 "Event.c"
} else {
- DataSource* _tmp4_ = NULL;
- gboolean _tmp5_ = FALSE;
+ DataSource* _tmp4_;
+ gboolean _tmp5_;
#line 16 "/home/jens/Source/shotwell/src/Event.vala"
_tmp4_ = source;
#line 16 "/home/jens/Source/shotwell/src/Event.vala"
_tmp5_ = VIEW_MANAGER_CLASS (event_source_collection_no_event_view_manager_parent_class)->include_in_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_VIEW_MANAGER, ViewManager), _tmp4_);
#line 16 "/home/jens/Source/shotwell/src/Event.vala"
_tmp0_ = _tmp5_;
-#line 1705 "Event.c"
+#line 1710 "Event.c"
}
#line 15 "/home/jens/Source/shotwell/src/Event.vala"
result = _tmp0_;
#line 15 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 1711 "Event.c"
+#line 1716 "Event.c"
}
static DataView* event_source_collection_no_event_view_manager_real_create_view (ViewManager* base, DataSource* source) {
EventSourceCollectionNoEventViewManager * self;
DataView* result = NULL;
- DataSource* _tmp0_ = NULL;
- ThumbnailView* _tmp1_ = NULL;
+ DataSource* _tmp0_;
+ ThumbnailView* _tmp1_;
#line 19 "/home/jens/Source/shotwell/src/Event.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENT_SOURCE_COLLECTION_TYPE_NO_EVENT_VIEW_MANAGER, EventSourceCollectionNoEventViewManager);
#line 19 "/home/jens/Source/shotwell/src/Event.vala"
@@ -1728,7 +1733,7 @@ static DataView* event_source_collection_no_event_view_manager_real_create_view
result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_VIEW, DataView);
#line 20 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 1732 "Event.c"
+#line 1737 "Event.c"
}
@@ -1738,14 +1743,14 @@ static EventSourceCollectionNoEventViewManager* event_source_collection_no_event
self = (EventSourceCollectionNoEventViewManager*) view_manager_construct (object_type);
#line 12 "/home/jens/Source/shotwell/src/Event.vala"
return self;
-#line 1742 "Event.c"
+#line 1747 "Event.c"
}
static EventSourceCollectionNoEventViewManager* event_source_collection_no_event_view_manager_new (void) {
#line 12 "/home/jens/Source/shotwell/src/Event.vala"
return event_source_collection_no_event_view_manager_construct (EVENT_SOURCE_COLLECTION_TYPE_NO_EVENT_VIEW_MANAGER);
-#line 1749 "Event.c"
+#line 1754 "Event.c"
}
@@ -1753,10 +1758,10 @@ static void event_source_collection_no_event_view_manager_class_init (EventSourc
#line 12 "/home/jens/Source/shotwell/src/Event.vala"
event_source_collection_no_event_view_manager_parent_class = g_type_class_peek_parent (klass);
#line 12 "/home/jens/Source/shotwell/src/Event.vala"
- ((ViewManagerClass *) klass)->include_in_view = (gboolean (*)(ViewManager*, DataSource*)) event_source_collection_no_event_view_manager_real_include_in_view;
+ ((ViewManagerClass *) klass)->include_in_view = (gboolean (*) (ViewManager *, DataSource*)) event_source_collection_no_event_view_manager_real_include_in_view;
#line 12 "/home/jens/Source/shotwell/src/Event.vala"
- ((ViewManagerClass *) klass)->create_view = (DataView* (*)(ViewManager*, DataSource*)) event_source_collection_no_event_view_manager_real_create_view;
-#line 1760 "Event.c"
+ ((ViewManagerClass *) klass)->create_view = (DataView* (*) (ViewManager *, DataSource*)) event_source_collection_no_event_view_manager_real_create_view;
+#line 1765 "Event.c"
}
@@ -1784,25 +1789,25 @@ static void event_source_collection_class_init (EventSourceCollectionClass * kla
#line 7 "/home/jens/Source/shotwell/src/Event.vala"
g_type_class_add_private (klass, sizeof (EventSourceCollectionPrivate));
#line 7 "/home/jens/Source/shotwell/src/Event.vala"
- ((SourceCollectionClass *) klass)->holds_type_of_source = (gboolean (*)(SourceCollection*, DataSource*)) event_source_collection_real_holds_type_of_source;
+ ((SourceCollectionClass *) klass)->holds_type_of_source = (gboolean (*) (SourceCollection *, DataSource*)) event_source_collection_real_holds_type_of_source;
#line 7 "/home/jens/Source/shotwell/src/Event.vala"
- ((ContainerSourceCollectionClass *) klass)->get_containers_holding_source = (GeeCollection* (*)(ContainerSourceCollection*, DataSource*)) event_source_collection_real_get_containers_holding_source;
+ ((ContainerSourceCollectionClass *) klass)->get_containers_holding_source = (GeeCollection* (*) (ContainerSourceCollection *, DataSource*)) event_source_collection_real_get_containers_holding_source;
#line 7 "/home/jens/Source/shotwell/src/Event.vala"
- ((ContainerSourceCollectionClass *) klass)->convert_backlink_to_container = (ContainerSource* (*)(ContainerSourceCollection*, SourceBacklink*)) event_source_collection_real_convert_backlink_to_container;
+ ((ContainerSourceCollectionClass *) klass)->convert_backlink_to_container = (ContainerSource* (*) (ContainerSourceCollection *, SourceBacklink*)) event_source_collection_real_convert_backlink_to_container;
#line 7 "/home/jens/Source/shotwell/src/Event.vala"
- g_signal_new ("no_event_collection_altered", TYPE_EVENT_SOURCE_COLLECTION, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
-#line 1795 "Event.c"
+ event_source_collection_signals[EVENT_SOURCE_COLLECTION_NO_EVENT_COLLECTION_ALTERED_SIGNAL] = g_signal_new ("no-event-collection-altered", TYPE_EVENT_SOURCE_COLLECTION, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
+#line 1800 "Event.c"
}
static void event_source_collection_instance_init (EventSourceCollection * self) {
#line 7 "/home/jens/Source/shotwell/src/Event.vala"
self->priv = EVENT_SOURCE_COLLECTION_GET_PRIVATE (self);
-#line 1802 "Event.c"
+#line 1807 "Event.c"
}
-static void event_source_collection_finalize (DataCollection* obj) {
+static void event_source_collection_finalize (DataCollection * obj) {
EventSourceCollection * self;
#line 7 "/home/jens/Source/shotwell/src/Event.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollection);
@@ -1810,7 +1815,7 @@ static void event_source_collection_finalize (DataCollection* obj) {
_data_collection_unref0 (self->priv->no_event);
#line 7 "/home/jens/Source/shotwell/src/Event.vala"
DATA_COLLECTION_CLASS (event_source_collection_parent_class)->finalize (obj);
-#line 1814 "Event.c"
+#line 1819 "Event.c"
}
@@ -1829,35 +1834,35 @@ GType event_source_collection_get_type (void) {
static void _event_on_primary_thumbnail_altered_thumbnail_source_thumbnail_altered (ThumbnailSource* _sender, gpointer self) {
#line 238 "/home/jens/Source/shotwell/src/Event.vala"
event_on_primary_thumbnail_altered ((Event*) self);
-#line 1833 "Event.c"
+#line 1838 "Event.c"
}
static void _event_on_media_altered_data_collection_items_altered (DataCollection* _sender, GeeMap* items, gpointer self) {
#line 240 "/home/jens/Source/shotwell/src/Event.vala"
event_on_media_altered ((Event*) self, items);
-#line 1840 "Event.c"
+#line 1845 "Event.c"
}
static void _event_on_media_removed_data_collection_items_removed (DataCollection* _sender, GeeIterable* removed, gpointer self) {
#line 241 "/home/jens/Source/shotwell/src/Event.vala"
event_on_media_removed ((Event*) self, removed);
-#line 1847 "Event.c"
+#line 1852 "Event.c"
}
static void _event_on_media_added_data_collection_items_added (DataCollection* _sender, GeeIterable* added, gpointer self) {
#line 242 "/home/jens/Source/shotwell/src/Event.vala"
event_on_media_added ((Event*) self, added);
-#line 1854 "Event.c"
+#line 1859 "Event.c"
}
static void _event_on_media_destroyed_source_collection_item_destroyed (SourceCollection* _sender, DataSource* source, gpointer self) {
#line 244 "/home/jens/Source/shotwell/src/Event.vala"
event_on_media_destroyed ((Event*) self, source);
-#line 1861 "Event.c"
+#line 1866 "Event.c"
}
@@ -1866,7 +1871,7 @@ static gint64 _event_view_comparator_comparator (void* a, void* b, gpointer self
result = event_view_comparator (a, b);
#line 201 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 1870 "Event.c"
+#line 1875 "Event.c"
}
@@ -1875,61 +1880,61 @@ static gboolean _event_view_comparator_predicate_comparator_predicate (DataObjec
result = event_view_comparator_predicate (object, alteration);
#line 201 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 1879 "Event.c"
+#line 1884 "Event.c"
}
static Event* event_construct (GType object_type, EventRow* event_row, gint64 object_id) {
Event * self = NULL;
- gint64 _tmp0_ = 0LL;
- EventRow* _tmp1_ = NULL;
- EventRow* _tmp2_ = NULL;
- const gchar* _tmp3_ = NULL;
- gchar* _tmp4_ = NULL;
- EventRow* _tmp5_ = NULL;
- EventID _tmp6_ = {0};
- EventRow* _tmp7_ = NULL;
- const gchar* _tmp8_ = NULL;
- gchar* _tmp9_ = NULL;
- EventRow* _tmp10_ = NULL;
- const gchar* _tmp11_ = NULL;
- gchar* _tmp12_ = NULL;
+ gint64 _tmp0_;
+ EventRow* _tmp1_;
+ EventRow* _tmp2_;
+ const gchar* _tmp3_;
+ gchar* _tmp4_;
+ EventRow* _tmp5_;
+ EventID _tmp6_;
+ EventRow* _tmp7_;
+ const gchar* _tmp8_;
+ gchar* _tmp9_;
+ EventRow* _tmp10_;
+ const gchar* _tmp11_;
+ gchar* _tmp12_;
GeeCollection* event_source_ids = NULL;
- MediaCollectionRegistry* _tmp13_ = NULL;
- MediaCollectionRegistry* _tmp14_ = NULL;
- EventID _tmp15_ = {0};
- GeeCollection* _tmp16_ = NULL;
- GeeCollection* _tmp17_ = NULL;
+ MediaCollectionRegistry* _tmp13_;
+ MediaCollectionRegistry* _tmp14_;
+ EventID _tmp15_;
+ GeeCollection* _tmp16_;
+ GeeCollection* _tmp17_;
GeeArrayList* event_thumbs = NULL;
- GeeArrayList* _tmp18_ = NULL;
- EventID _tmp35_ = {0};
- gint64 _tmp36_ = 0LL;
- gchar* _tmp37_ = NULL;
- gchar* _tmp38_ = NULL;
- gchar* _tmp39_ = NULL;
- gchar* _tmp40_ = NULL;
- ViewCollection* _tmp41_ = NULL;
- ViewCollection* _tmp42_ = NULL;
- ViewCollection* _tmp43_ = NULL;
- GeeArrayList* _tmp44_ = NULL;
- GeeCollection* _tmp45_ = NULL;
- GeeCollection* _tmp46_ = NULL;
- GeeArrayList* _tmp47_ = NULL;
- gint _tmp48_ = 0;
- gint _tmp49_ = 0;
- MediaCollectionRegistry* _tmp54_ = NULL;
- MediaCollectionRegistry* _tmp55_ = NULL;
- EventRow* _tmp56_ = NULL;
- const gchar* _tmp57_ = NULL;
- MediaSource* _tmp58_ = NULL;
+ GeeArrayList* _tmp18_;
+ EventID _tmp35_;
+ gint64 _tmp36_;
+ gchar* _tmp37_;
+ gchar* _tmp38_;
+ gchar* _tmp39_;
+ gchar* _tmp40_;
+ ViewCollection* _tmp41_;
+ ViewCollection* _tmp42_;
+ ViewCollection* _tmp43_;
+ GeeArrayList* _tmp44_;
+ GeeCollection* _tmp45_;
+ GeeCollection* _tmp46_;
+ GeeArrayList* _tmp47_;
+ gint _tmp48_;
+ gint _tmp49_;
+ MediaCollectionRegistry* _tmp54_;
+ MediaCollectionRegistry* _tmp55_;
+ EventRow* _tmp56_;
+ const gchar* _tmp57_;
+ MediaSource* _tmp58_;
gboolean _tmp59_ = FALSE;
- MediaSource* _tmp60_ = NULL;
- MediaSource* _tmp72_ = NULL;
- ViewCollection* _tmp74_ = NULL;
- ViewCollection* _tmp75_ = NULL;
- ViewCollection* _tmp76_ = NULL;
- LibraryPhotoSourceCollection* _tmp77_ = NULL;
- VideoSourceCollection* _tmp78_ = NULL;
+ MediaSource* _tmp60_;
+ MediaSource* _tmp72_;
+ ViewCollection* _tmp74_;
+ ViewCollection* _tmp75_;
+ ViewCollection* _tmp76_;
+ LibraryPhotoSourceCollection* _tmp77_;
+ VideoSourceCollection* _tmp78_;
#line 180 "/home/jens/Source/shotwell/src/Event.vala"
g_return_val_if_fail (IS_EVENT_ROW (event_row), NULL);
#line 181 "/home/jens/Source/shotwell/src/Event.vala"
@@ -1992,11 +1997,11 @@ static Event* event_construct (GType object_type, EventRow* event_row, gint64 ob
_tmp18_ = gee_array_list_new (TYPE_THUMBNAIL_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
#line 192 "/home/jens/Source/shotwell/src/Event.vala"
event_thumbs = _tmp18_;
-#line 1996 "Event.c"
+#line 2001 "Event.c"
{
GeeIterator* _current_source_id_it = NULL;
- GeeCollection* _tmp19_ = NULL;
- GeeIterator* _tmp20_ = NULL;
+ GeeCollection* _tmp19_;
+ GeeIterator* _tmp20_;
#line 193 "/home/jens/Source/shotwell/src/Event.vala"
_tmp19_ = event_source_ids;
#line 193 "/home/jens/Source/shotwell/src/Event.vala"
@@ -2005,19 +2010,19 @@ static Event* event_construct (GType object_type, EventRow* event_row, gint64 ob
_current_source_id_it = _tmp20_;
#line 193 "/home/jens/Source/shotwell/src/Event.vala"
while (TRUE) {
-#line 2009 "Event.c"
- GeeIterator* _tmp21_ = NULL;
- gboolean _tmp22_ = FALSE;
+#line 2014 "Event.c"
+ GeeIterator* _tmp21_;
+ gboolean _tmp22_;
gchar* current_source_id = NULL;
- GeeIterator* _tmp23_ = NULL;
- gpointer _tmp24_ = NULL;
+ GeeIterator* _tmp23_;
+ gpointer _tmp24_;
MediaSource* media = NULL;
- MediaCollectionRegistry* _tmp25_ = NULL;
- MediaCollectionRegistry* _tmp26_ = NULL;
- const gchar* _tmp27_ = NULL;
- MediaSource* _tmp28_ = NULL;
- MediaSource* _tmp29_ = NULL;
- MediaSource* _tmp30_ = NULL;
+ MediaCollectionRegistry* _tmp25_;
+ MediaCollectionRegistry* _tmp26_;
+ const gchar* _tmp27_;
+ MediaSource* _tmp28_;
+ MediaSource* _tmp29_;
+ MediaSource* _tmp30_;
#line 193 "/home/jens/Source/shotwell/src/Event.vala"
_tmp21_ = _current_source_id_it;
#line 193 "/home/jens/Source/shotwell/src/Event.vala"
@@ -2026,7 +2031,7 @@ static Event* event_construct (GType object_type, EventRow* event_row, gint64 ob
if (!_tmp22_) {
#line 193 "/home/jens/Source/shotwell/src/Event.vala"
break;
-#line 2030 "Event.c"
+#line 2035 "Event.c"
}
#line 193 "/home/jens/Source/shotwell/src/Event.vala"
_tmp23_ = _current_source_id_it;
@@ -2052,11 +2057,11 @@ static Event* event_construct (GType object_type, EventRow* event_row, gint64 ob
_tmp30_ = media;
#line 196 "/home/jens/Source/shotwell/src/Event.vala"
if (_tmp30_ != NULL) {
-#line 2056 "Event.c"
- GeeArrayList* _tmp31_ = NULL;
- MediaSource* _tmp32_ = NULL;
- ThumbnailView* _tmp33_ = NULL;
- ThumbnailView* _tmp34_ = NULL;
+#line 2061 "Event.c"
+ GeeArrayList* _tmp31_;
+ MediaSource* _tmp32_;
+ ThumbnailView* _tmp33_;
+ ThumbnailView* _tmp34_;
#line 197 "/home/jens/Source/shotwell/src/Event.vala"
_tmp31_ = event_thumbs;
#line 197 "/home/jens/Source/shotwell/src/Event.vala"
@@ -2069,17 +2074,17 @@ static Event* event_construct (GType object_type, EventRow* event_row, gint64 ob
gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp34_);
#line 197 "/home/jens/Source/shotwell/src/Event.vala"
_g_object_unref0 (_tmp34_);
-#line 2073 "Event.c"
+#line 2078 "Event.c"
}
#line 193 "/home/jens/Source/shotwell/src/Event.vala"
_g_object_unref0 (media);
#line 193 "/home/jens/Source/shotwell/src/Event.vala"
_g_free0 (current_source_id);
-#line 2079 "Event.c"
+#line 2084 "Event.c"
}
#line 193 "/home/jens/Source/shotwell/src/Event.vala"
_g_object_unref0 (_current_source_id_it);
-#line 2083 "Event.c"
+#line 2088 "Event.c"
}
#line 200 "/home/jens/Source/shotwell/src/Event.vala"
_tmp35_ = self->priv->event_id;
@@ -2125,11 +2130,11 @@ static Event* event_construct (GType object_type, EventRow* event_row, gint64 ob
_tmp49_ = _tmp48_;
#line 206 "/home/jens/Source/shotwell/src/Event.vala"
if (_tmp49_ > 0) {
-#line 2129 "Event.c"
- EventSourceCollection* _tmp50_ = NULL;
- GeeArrayList* _tmp51_ = NULL;
- EventSourceCollection* _tmp52_ = NULL;
- GeeArrayList* _tmp53_ = NULL;
+#line 2134 "Event.c"
+ EventSourceCollection* _tmp50_;
+ GeeArrayList* _tmp51_;
+ EventSourceCollection* _tmp52_;
+ GeeArrayList* _tmp53_;
#line 207 "/home/jens/Source/shotwell/src/Event.vala"
_tmp50_ = event_global;
#line 207 "/home/jens/Source/shotwell/src/Event.vala"
@@ -2142,7 +2147,7 @@ static Event* event_construct (GType object_type, EventRow* event_row, gint64 ob
_tmp53_ = event_thumbs;
#line 208 "/home/jens/Source/shotwell/src/Event.vala"
container_source_collection_notify_container_contents_altered (G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE, ContainerSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, GEE_TYPE_COLLECTION, GeeCollection), FALSE, NULL, FALSE);
-#line 2146 "Event.c"
+#line 2151 "Event.c"
}
#line 213 "/home/jens/Source/shotwell/src/Event.vala"
_tmp54_ = media_collection_registry_get_instance ();
@@ -2164,33 +2169,33 @@ static Event* event_construct (GType object_type, EventRow* event_row, gint64 ob
_tmp60_ = self->priv->primary_source;
#line 214 "/home/jens/Source/shotwell/src/Event.vala"
if (_tmp60_ == NULL) {
-#line 2168 "Event.c"
- ViewCollection* _tmp61_ = NULL;
- gint _tmp62_ = 0;
+#line 2173 "Event.c"
+ ViewCollection* _tmp61_;
+ gint _tmp62_;
#line 214 "/home/jens/Source/shotwell/src/Event.vala"
_tmp61_ = self->priv->view;
#line 214 "/home/jens/Source/shotwell/src/Event.vala"
_tmp62_ = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp61_, TYPE_DATA_COLLECTION, DataCollection));
#line 214 "/home/jens/Source/shotwell/src/Event.vala"
_tmp59_ = _tmp62_ > 0;
-#line 2177 "Event.c"
+#line 2182 "Event.c"
} else {
#line 214 "/home/jens/Source/shotwell/src/Event.vala"
_tmp59_ = FALSE;
-#line 2181 "Event.c"
+#line 2186 "Event.c"
}
#line 214 "/home/jens/Source/shotwell/src/Event.vala"
if (_tmp59_) {
-#line 2185 "Event.c"
- ViewCollection* _tmp63_ = NULL;
- DataView* _tmp64_ = NULL;
- DataView* _tmp65_ = NULL;
- DataSource* _tmp66_ = NULL;
- EventTable* _tmp67_ = NULL;
- EventID _tmp68_ = {0};
- MediaSource* _tmp69_ = NULL;
- gchar* _tmp70_ = NULL;
- gchar* _tmp71_ = NULL;
+#line 2190 "Event.c"
+ ViewCollection* _tmp63_;
+ DataView* _tmp64_;
+ DataView* _tmp65_;
+ DataSource* _tmp66_;
+ EventTable* _tmp67_;
+ EventID _tmp68_;
+ MediaSource* _tmp69_;
+ gchar* _tmp70_;
+ gchar* _tmp71_;
#line 215 "/home/jens/Source/shotwell/src/Event.vala"
_tmp63_ = self->priv->view;
#line 215 "/home/jens/Source/shotwell/src/Event.vala"
@@ -2219,19 +2224,19 @@ static Event* event_construct (GType object_type, EventRow* event_row, gint64 ob
event_table_set_primary_source_id (_tmp67_, &_tmp68_, _tmp71_);
#line 216 "/home/jens/Source/shotwell/src/Event.vala"
_g_free0 (_tmp71_);
-#line 2223 "Event.c"
+#line 2228 "Event.c"
}
#line 220 "/home/jens/Source/shotwell/src/Event.vala"
_tmp72_ = self->priv->primary_source;
#line 220 "/home/jens/Source/shotwell/src/Event.vala"
if (_tmp72_ != NULL) {
-#line 2229 "Event.c"
- MediaSource* _tmp73_ = NULL;
+#line 2234 "Event.c"
+ MediaSource* _tmp73_;
#line 221 "/home/jens/Source/shotwell/src/Event.vala"
_tmp73_ = self->priv->primary_source;
#line 221 "/home/jens/Source/shotwell/src/Event.vala"
g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp73_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), "thumbnail-altered", (GCallback) _event_on_primary_thumbnail_altered_thumbnail_source_thumbnail_altered, self, 0);
-#line 2235 "Event.c"
+#line 2240 "Event.c"
}
#line 224 "/home/jens/Source/shotwell/src/Event.vala"
_tmp74_ = self->priv->view;
@@ -2261,21 +2266,21 @@ static Event* event_construct (GType object_type, EventRow* event_row, gint64 ob
_g_object_unref0 (event_source_ids);
#line 180 "/home/jens/Source/shotwell/src/Event.vala"
return self;
-#line 2265 "Event.c"
+#line 2270 "Event.c"
}
static Event* event_new (EventRow* event_row, gint64 object_id) {
#line 180 "/home/jens/Source/shotwell/src/Event.vala"
return event_construct (TYPE_EVENT, event_row, object_id);
-#line 2272 "Event.c"
+#line 2277 "Event.c"
}
static gchar* event_real_get_typename (DataSource* base) {
Event * self;
gchar* result = NULL;
- gchar* _tmp0_ = NULL;
+ gchar* _tmp0_;
#line 248 "/home/jens/Source/shotwell/src/Event.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event);
#line 249 "/home/jens/Source/shotwell/src/Event.vala"
@@ -2284,7 +2289,7 @@ static gchar* event_real_get_typename (DataSource* base) {
result = _tmp0_;
#line 249 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 2288 "Event.c"
+#line 2293 "Event.c"
}
@@ -2292,7 +2297,7 @@ static gint64 event_real_get_instance_id (DataSource* base) {
Event * self;
gint64 result = 0LL;
EventID _tmp0_ = {0};
- gint64 _tmp1_ = 0LL;
+ gint64 _tmp1_;
#line 252 "/home/jens/Source/shotwell/src/Event.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event);
#line 253 "/home/jens/Source/shotwell/src/Event.vala"
@@ -2303,7 +2308,7 @@ static gint64 event_real_get_instance_id (DataSource* base) {
result = _tmp1_;
#line 253 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 2307 "Event.c"
+#line 2312 "Event.c"
}
@@ -2311,16 +2316,16 @@ static gchar* event_real_get_representative_id (ThumbnailSource* base) {
Event * self;
gchar* result = NULL;
gchar* _tmp0_ = NULL;
- MediaSource* _tmp1_ = NULL;
+ MediaSource* _tmp1_;
#line 256 "/home/jens/Source/shotwell/src/Event.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event);
#line 257 "/home/jens/Source/shotwell/src/Event.vala"
_tmp1_ = self->priv->primary_source;
#line 257 "/home/jens/Source/shotwell/src/Event.vala"
if (_tmp1_ != NULL) {
-#line 2322 "Event.c"
- MediaSource* _tmp2_ = NULL;
- gchar* _tmp3_ = NULL;
+#line 2327 "Event.c"
+ MediaSource* _tmp2_;
+ gchar* _tmp3_;
#line 257 "/home/jens/Source/shotwell/src/Event.vala"
_tmp2_ = self->priv->primary_source;
#line 257 "/home/jens/Source/shotwell/src/Event.vala"
@@ -2329,22 +2334,22 @@ static gchar* event_real_get_representative_id (ThumbnailSource* base) {
_g_free0 (_tmp0_);
#line 257 "/home/jens/Source/shotwell/src/Event.vala"
_tmp0_ = _tmp3_;
-#line 2333 "Event.c"
+#line 2338 "Event.c"
} else {
- gchar* _tmp4_ = NULL;
+ gchar* _tmp4_;
#line 257 "/home/jens/Source/shotwell/src/Event.vala"
_tmp4_ = data_source_get_source_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_SOURCE, DataSource));
#line 257 "/home/jens/Source/shotwell/src/Event.vala"
_g_free0 (_tmp0_);
#line 257 "/home/jens/Source/shotwell/src/Event.vala"
_tmp0_ = _tmp4_;
-#line 2342 "Event.c"
+#line 2347 "Event.c"
}
#line 257 "/home/jens/Source/shotwell/src/Event.vala"
result = _tmp0_;
#line 257 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 2348 "Event.c"
+#line 2353 "Event.c"
}
@@ -2352,36 +2357,36 @@ static PhotoFileFormat event_real_get_preferred_thumbnail_format (ThumbnailSourc
Event * self;
PhotoFileFormat result = 0;
PhotoFileFormat _tmp0_ = 0;
- MediaSource* _tmp1_ = NULL;
+ MediaSource* _tmp1_;
#line 260 "/home/jens/Source/shotwell/src/Event.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event);
#line 261 "/home/jens/Source/shotwell/src/Event.vala"
_tmp1_ = self->priv->primary_source;
#line 261 "/home/jens/Source/shotwell/src/Event.vala"
if (_tmp1_ != NULL) {
-#line 2363 "Event.c"
- MediaSource* _tmp2_ = NULL;
- PhotoFileFormat _tmp3_ = 0;
+#line 2368 "Event.c"
+ MediaSource* _tmp2_;
+ PhotoFileFormat _tmp3_;
#line 261 "/home/jens/Source/shotwell/src/Event.vala"
_tmp2_ = self->priv->primary_source;
#line 261 "/home/jens/Source/shotwell/src/Event.vala"
_tmp3_ = thumbnail_source_get_preferred_thumbnail_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource));
#line 261 "/home/jens/Source/shotwell/src/Event.vala"
_tmp0_ = _tmp3_;
-#line 2372 "Event.c"
+#line 2377 "Event.c"
} else {
- PhotoFileFormat _tmp4_ = 0;
+ PhotoFileFormat _tmp4_;
#line 262 "/home/jens/Source/shotwell/src/Event.vala"
_tmp4_ = photo_file_format_get_system_default_format ();
#line 262 "/home/jens/Source/shotwell/src/Event.vala"
_tmp0_ = _tmp4_;
-#line 2379 "Event.c"
+#line 2384 "Event.c"
}
#line 261 "/home/jens/Source/shotwell/src/Event.vala"
result = _tmp0_;
#line 261 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 2385 "Event.c"
+#line 2390 "Event.c"
}
@@ -2389,7 +2394,7 @@ static GdkPixbuf* event_real_create_thumbnail (ThumbnailSource* base, gint scale
Event * self;
GdkPixbuf* result = NULL;
GdkPixbuf* _tmp0_ = NULL;
- MediaSource* _tmp1_ = NULL;
+ MediaSource* _tmp1_;
GError * _inner_error_ = NULL;
#line 265 "/home/jens/Source/shotwell/src/Event.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event);
@@ -2397,10 +2402,10 @@ static GdkPixbuf* event_real_create_thumbnail (ThumbnailSource* base, gint scale
_tmp1_ = self->priv->primary_source;
#line 266 "/home/jens/Source/shotwell/src/Event.vala"
if (_tmp1_ != NULL) {
-#line 2401 "Event.c"
- MediaSource* _tmp2_ = NULL;
- gint _tmp3_ = 0;
- GdkPixbuf* _tmp4_ = NULL;
+#line 2406 "Event.c"
+ MediaSource* _tmp2_;
+ gint _tmp3_;
+ GdkPixbuf* _tmp4_;
#line 266 "/home/jens/Source/shotwell/src/Event.vala"
_tmp2_ = self->priv->primary_source;
#line 266 "/home/jens/Source/shotwell/src/Event.vala"
@@ -2419,44 +2424,44 @@ static GdkPixbuf* event_real_create_thumbnail (ThumbnailSource* base, gint scale
_g_object_unref0 (_tmp0_);
#line 266 "/home/jens/Source/shotwell/src/Event.vala"
return NULL;
-#line 2423 "Event.c"
+#line 2428 "Event.c"
}
} else {
#line 266 "/home/jens/Source/shotwell/src/Event.vala"
_g_object_unref0 (_tmp0_);
#line 266 "/home/jens/Source/shotwell/src/Event.vala"
_tmp0_ = NULL;
-#line 2430 "Event.c"
+#line 2435 "Event.c"
}
#line 266 "/home/jens/Source/shotwell/src/Event.vala"
result = _tmp0_;
#line 266 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 2436 "Event.c"
+#line 2441 "Event.c"
}
void event_init (ProgressMonitor monitor, void* monitor_target) {
- EventTable* _tmp0_ = NULL;
- EventSourceCollection* _tmp1_ = NULL;
- EventSourceCollection* _tmp2_ = NULL;
+ EventTable* _tmp0_;
+ EventSourceCollection* _tmp1_;
+ EventSourceCollection* _tmp2_;
GeeArrayList* events = NULL;
- GeeArrayList* _tmp3_ = NULL;
+ GeeArrayList* _tmp3_;
GeeArrayList* unlinked = NULL;
- GeeArrayList* _tmp4_ = NULL;
+ GeeArrayList* _tmp4_;
GeeArrayList* event_rows = NULL;
- EventTable* _tmp5_ = NULL;
- GeeArrayList* _tmp6_ = NULL;
+ EventTable* _tmp5_;
+ GeeArrayList* _tmp6_;
gint count = 0;
- GeeArrayList* _tmp7_ = NULL;
- gint _tmp8_ = 0;
- gint _tmp9_ = 0;
- EventSourceCollection* _tmp32_ = NULL;
- GeeArrayList* _tmp33_ = NULL;
- GeeCollection* _tmp34_ = NULL;
- GeeCollection* _tmp35_ = NULL;
- EventSourceCollection* _tmp36_ = NULL;
- GeeArrayList* _tmp37_ = NULL;
+ GeeArrayList* _tmp7_;
+ gint _tmp8_;
+ gint _tmp9_;
+ EventSourceCollection* _tmp32_;
+ GeeArrayList* _tmp33_;
+ GeeCollection* _tmp34_;
+ GeeCollection* _tmp35_;
+ EventSourceCollection* _tmp36_;
+ GeeArrayList* _tmp37_;
#line 270 "/home/jens/Source/shotwell/src/Event.vala"
_tmp0_ = event_table_get_instance ();
#line 270 "/home/jens/Source/shotwell/src/Event.vala"
@@ -2495,45 +2500,45 @@ void event_init (ProgressMonitor monitor, void* monitor_target) {
_tmp9_ = _tmp8_;
#line 279 "/home/jens/Source/shotwell/src/Event.vala"
count = _tmp9_;
-#line 2499 "Event.c"
+#line 2504 "Event.c"
{
gint ctr = 0;
#line 280 "/home/jens/Source/shotwell/src/Event.vala"
ctr = 0;
-#line 2504 "Event.c"
+#line 2509 "Event.c"
{
gboolean _tmp10_ = FALSE;
#line 280 "/home/jens/Source/shotwell/src/Event.vala"
_tmp10_ = TRUE;
#line 280 "/home/jens/Source/shotwell/src/Event.vala"
while (TRUE) {
-#line 2511 "Event.c"
- gint _tmp12_ = 0;
- gint _tmp13_ = 0;
+#line 2516 "Event.c"
+ gint _tmp12_;
+ gint _tmp13_;
Event* event = NULL;
- GeeArrayList* _tmp14_ = NULL;
- gint _tmp15_ = 0;
- gpointer _tmp16_ = NULL;
- EventRow* _tmp17_ = NULL;
- Event* _tmp18_ = NULL;
- Event* _tmp19_ = NULL;
- ProgressMonitor _tmp20_ = NULL;
- void* _tmp20__target = NULL;
- Event* _tmp24_ = NULL;
- gint _tmp25_ = 0;
- Event* _tmp28_ = NULL;
- EventSourceCollection* _tmp29_ = NULL;
- GeeArrayList* _tmp30_ = NULL;
- Event* _tmp31_ = NULL;
+ GeeArrayList* _tmp14_;
+ gint _tmp15_;
+ gpointer _tmp16_;
+ EventRow* _tmp17_;
+ Event* _tmp18_;
+ Event* _tmp19_;
+ ProgressMonitor _tmp20_;
+ void* _tmp20__target;
+ Event* _tmp24_;
+ gint _tmp25_;
+ Event* _tmp28_;
+ EventSourceCollection* _tmp29_;
+ GeeArrayList* _tmp30_;
+ Event* _tmp31_;
#line 280 "/home/jens/Source/shotwell/src/Event.vala"
if (!_tmp10_) {
-#line 2531 "Event.c"
- gint _tmp11_ = 0;
+#line 2536 "Event.c"
+ gint _tmp11_;
#line 280 "/home/jens/Source/shotwell/src/Event.vala"
_tmp11_ = ctr;
#line 280 "/home/jens/Source/shotwell/src/Event.vala"
ctr = _tmp11_ + 1;
-#line 2537 "Event.c"
+#line 2542 "Event.c"
}
#line 280 "/home/jens/Source/shotwell/src/Event.vala"
_tmp10_ = FALSE;
@@ -2545,7 +2550,7 @@ void event_init (ProgressMonitor monitor, void* monitor_target) {
if (!(_tmp12_ < _tmp13_)) {
#line 280 "/home/jens/Source/shotwell/src/Event.vala"
break;
-#line 2549 "Event.c"
+#line 2554 "Event.c"
}
#line 281 "/home/jens/Source/shotwell/src/Event.vala"
_tmp14_ = event_rows;
@@ -2569,11 +2574,11 @@ void event_init (ProgressMonitor monitor, void* monitor_target) {
_tmp20__target = monitor_target;
#line 282 "/home/jens/Source/shotwell/src/Event.vala"
if (_tmp20_ != NULL) {
-#line 2573 "Event.c"
- ProgressMonitor _tmp21_ = NULL;
- void* _tmp21__target = NULL;
- gint _tmp22_ = 0;
- gint _tmp23_ = 0;
+#line 2578 "Event.c"
+ ProgressMonitor _tmp21_;
+ void* _tmp21__target;
+ gint _tmp22_;
+ gint _tmp23_;
#line 283 "/home/jens/Source/shotwell/src/Event.vala"
_tmp21_ = monitor;
#line 283 "/home/jens/Source/shotwell/src/Event.vala"
@@ -2584,7 +2589,7 @@ void event_init (ProgressMonitor monitor, void* monitor_target) {
_tmp23_ = count;
#line 283 "/home/jens/Source/shotwell/src/Event.vala"
_tmp21_ ((guint64) _tmp22_, (guint64) _tmp23_, TRUE, _tmp21__target);
-#line 2588 "Event.c"
+#line 2593 "Event.c"
}
#line 285 "/home/jens/Source/shotwell/src/Event.vala"
_tmp24_ = event;
@@ -2592,9 +2597,9 @@ void event_init (ProgressMonitor monitor, void* monitor_target) {
_tmp25_ = event_source_get_media_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_EVENT_SOURCE, EventSource));
#line 285 "/home/jens/Source/shotwell/src/Event.vala"
if (_tmp25_ != 0) {
-#line 2596 "Event.c"
- GeeArrayList* _tmp26_ = NULL;
- Event* _tmp27_ = NULL;
+#line 2601 "Event.c"
+ GeeArrayList* _tmp26_;
+ Event* _tmp27_;
#line 286 "/home/jens/Source/shotwell/src/Event.vala"
_tmp26_ = events;
#line 286 "/home/jens/Source/shotwell/src/Event.vala"
@@ -2605,7 +2610,7 @@ void event_init (ProgressMonitor monitor, void* monitor_target) {
_g_object_unref0 (event);
#line 288 "/home/jens/Source/shotwell/src/Event.vala"
continue;
-#line 2609 "Event.c"
+#line 2614 "Event.c"
}
#line 294 "/home/jens/Source/shotwell/src/Event.vala"
_tmp28_ = event;
@@ -2621,7 +2626,7 @@ void event_init (ProgressMonitor monitor, void* monitor_target) {
gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp31_);
#line 280 "/home/jens/Source/shotwell/src/Event.vala"
_g_object_unref0 (event);
-#line 2625 "Event.c"
+#line 2630 "Event.c"
}
}
}
@@ -2647,7 +2652,7 @@ void event_init (ProgressMonitor monitor, void* monitor_target) {
_g_object_unref0 (unlinked);
#line 269 "/home/jens/Source/shotwell/src/Event.vala"
_g_object_unref0 (events);
-#line 2651 "Event.c"
+#line 2656 "Event.c"
}
@@ -2657,15 +2662,15 @@ void event_terminate (void) {
static gint64 event_view_comparator (void* a, void* b) {
gint64 result = 0LL;
- void* _tmp0_ = NULL;
- DataSource* _tmp1_ = NULL;
- MediaSource* _tmp2_ = NULL;
- time_t _tmp3_ = 0;
- void* _tmp4_ = NULL;
- DataSource* _tmp5_ = NULL;
- MediaSource* _tmp6_ = NULL;
- time_t _tmp7_ = 0;
- gint64 _tmp8_ = 0LL;
+ void* _tmp0_;
+ DataSource* _tmp1_;
+ MediaSource* _tmp2_;
+ time_t _tmp3_;
+ void* _tmp4_;
+ DataSource* _tmp5_;
+ MediaSource* _tmp6_;
+ time_t _tmp7_;
+ gint64 _tmp8_;
#line 306 "/home/jens/Source/shotwell/src/Event.vala"
_tmp0_ = a;
#line 306 "/home/jens/Source/shotwell/src/Event.vala"
@@ -2692,14 +2697,14 @@ static gint64 event_view_comparator (void* a, void* b) {
result = _tmp8_;
#line 306 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 2696 "Event.c"
+#line 2701 "Event.c"
}
static gboolean event_view_comparator_predicate (DataObject* object, Alteration* alteration) {
gboolean result = FALSE;
- Alteration* _tmp0_ = NULL;
- gboolean _tmp1_ = FALSE;
+ Alteration* _tmp0_;
+ gboolean _tmp1_;
#line 310 "/home/jens/Source/shotwell/src/Event.vala"
g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE);
#line 310 "/home/jens/Source/shotwell/src/Event.vala"
@@ -2712,14 +2717,14 @@ static gboolean event_view_comparator_predicate (DataObject* object, Alteration*
result = _tmp1_;
#line 311 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 2716 "Event.c"
+#line 2721 "Event.c"
}
gchar* event_prep_event_name (const gchar* name) {
gchar* result = NULL;
- const gchar* _tmp0_ = NULL;
- gchar* _tmp1_ = NULL;
+ const gchar* _tmp0_;
+ gchar* _tmp1_;
#line 319 "/home/jens/Source/shotwell/src/Event.vala"
_tmp0_ = name;
#line 319 "/home/jens/Source/shotwell/src/Event.vala"
@@ -2728,15 +2733,15 @@ gchar* event_prep_event_name (const gchar* name) {
result = _tmp1_;
#line 319 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 2732 "Event.c"
+#line 2737 "Event.c"
}
void event_attach (Event* self, MediaSource* source) {
- ViewCollection* _tmp0_ = NULL;
- MediaSource* _tmp1_ = NULL;
- ThumbnailView* _tmp2_ = NULL;
- ThumbnailView* _tmp3_ = NULL;
+ ViewCollection* _tmp0_;
+ MediaSource* _tmp1_;
+ ThumbnailView* _tmp2_;
+ ThumbnailView* _tmp3_;
#line 327 "/home/jens/Source/shotwell/src/Event.vala"
g_return_if_fail (IS_EVENT (self));
#line 327 "/home/jens/Source/shotwell/src/Event.vala"
@@ -2753,17 +2758,17 @@ void event_attach (Event* self, MediaSource* source) {
data_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_OBJECT, DataObject));
#line 328 "/home/jens/Source/shotwell/src/Event.vala"
_g_object_unref0 (_tmp3_);
-#line 2757 "Event.c"
+#line 2762 "Event.c"
}
void event_attach_many (Event* self, GeeCollection* media) {
GeeArrayList* views = NULL;
- GeeArrayList* _tmp0_ = NULL;
- ViewCollection* _tmp11_ = NULL;
- GeeArrayList* _tmp12_ = NULL;
- GeeCollection* _tmp13_ = NULL;
- GeeCollection* _tmp14_ = NULL;
+ GeeArrayList* _tmp0_;
+ ViewCollection* _tmp11_;
+ GeeArrayList* _tmp12_;
+ GeeCollection* _tmp13_;
+ GeeCollection* _tmp14_;
#line 331 "/home/jens/Source/shotwell/src/Event.vala"
g_return_if_fail (IS_EVENT (self));
#line 331 "/home/jens/Source/shotwell/src/Event.vala"
@@ -2772,11 +2777,11 @@ void event_attach_many (Event* self, GeeCollection* media) {
_tmp0_ = gee_array_list_new (TYPE_THUMBNAIL_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
#line 332 "/home/jens/Source/shotwell/src/Event.vala"
views = _tmp0_;
-#line 2776 "Event.c"
+#line 2781 "Event.c"
{
GeeIterator* _current_source_it = NULL;
- GeeCollection* _tmp1_ = NULL;
- GeeIterator* _tmp2_ = NULL;
+ GeeCollection* _tmp1_;
+ GeeIterator* _tmp2_;
#line 333 "/home/jens/Source/shotwell/src/Event.vala"
_tmp1_ = media;
#line 333 "/home/jens/Source/shotwell/src/Event.vala"
@@ -2785,16 +2790,16 @@ void event_attach_many (Event* self, GeeCollection* media) {
_current_source_it = _tmp2_;
#line 333 "/home/jens/Source/shotwell/src/Event.vala"
while (TRUE) {
-#line 2789 "Event.c"
- GeeIterator* _tmp3_ = NULL;
- gboolean _tmp4_ = FALSE;
+#line 2794 "Event.c"
+ GeeIterator* _tmp3_;
+ gboolean _tmp4_;
MediaSource* current_source = NULL;
- GeeIterator* _tmp5_ = NULL;
- gpointer _tmp6_ = NULL;
- GeeArrayList* _tmp7_ = NULL;
- MediaSource* _tmp8_ = NULL;
- ThumbnailView* _tmp9_ = NULL;
- ThumbnailView* _tmp10_ = NULL;
+ GeeIterator* _tmp5_;
+ gpointer _tmp6_;
+ GeeArrayList* _tmp7_;
+ MediaSource* _tmp8_;
+ ThumbnailView* _tmp9_;
+ ThumbnailView* _tmp10_;
#line 333 "/home/jens/Source/shotwell/src/Event.vala"
_tmp3_ = _current_source_it;
#line 333 "/home/jens/Source/shotwell/src/Event.vala"
@@ -2803,7 +2808,7 @@ void event_attach_many (Event* self, GeeCollection* media) {
if (!_tmp4_) {
#line 333 "/home/jens/Source/shotwell/src/Event.vala"
break;
-#line 2807 "Event.c"
+#line 2812 "Event.c"
}
#line 333 "/home/jens/Source/shotwell/src/Event.vala"
_tmp5_ = _current_source_it;
@@ -2825,11 +2830,11 @@ void event_attach_many (Event* self, GeeCollection* media) {
_g_object_unref0 (_tmp10_);
#line 333 "/home/jens/Source/shotwell/src/Event.vala"
_g_object_unref0 (current_source);
-#line 2829 "Event.c"
+#line 2834 "Event.c"
}
#line 333 "/home/jens/Source/shotwell/src/Event.vala"
_g_object_unref0 (_current_source_it);
-#line 2833 "Event.c"
+#line 2838 "Event.c"
}
#line 336 "/home/jens/Source/shotwell/src/Event.vala"
_tmp11_ = self->priv->view;
@@ -2843,19 +2848,19 @@ void event_attach_many (Event* self, GeeCollection* media) {
_g_object_unref0 (_tmp14_);
#line 331 "/home/jens/Source/shotwell/src/Event.vala"
_g_object_unref0 (views);
-#line 2847 "Event.c"
+#line 2852 "Event.c"
}
void event_detach (Event* self, MediaSource* source) {
- ViewCollection* _tmp0_ = NULL;
- ViewCollection* _tmp1_ = NULL;
- ViewCollection* _tmp2_ = NULL;
- MediaSource* _tmp3_ = NULL;
- DataView* _tmp4_ = NULL;
- DataView* _tmp5_ = NULL;
- Marker* _tmp6_ = NULL;
- Marker* _tmp7_ = NULL;
+ ViewCollection* _tmp0_;
+ ViewCollection* _tmp1_;
+ ViewCollection* _tmp2_;
+ MediaSource* _tmp3_;
+ DataView* _tmp4_;
+ DataView* _tmp5_;
+ Marker* _tmp6_;
+ Marker* _tmp7_;
#line 342 "/home/jens/Source/shotwell/src/Event.vala"
g_return_if_fail (IS_EVENT (self));
#line 342 "/home/jens/Source/shotwell/src/Event.vala"
@@ -2882,18 +2887,18 @@ void event_detach (Event* self, MediaSource* source) {
_g_object_unref0 (_tmp7_);
#line 343 "/home/jens/Source/shotwell/src/Event.vala"
_g_object_unref0 (_tmp5_);
-#line 2886 "Event.c"
+#line 2891 "Event.c"
}
void event_detach_many (Event* self, GeeCollection* media) {
GeeArrayList* views = NULL;
- GeeArrayList* _tmp0_ = NULL;
- ViewCollection* _tmp13_ = NULL;
- ViewCollection* _tmp14_ = NULL;
- GeeArrayList* _tmp15_ = NULL;
- Marker* _tmp16_ = NULL;
- Marker* _tmp17_ = NULL;
+ GeeArrayList* _tmp0_;
+ ViewCollection* _tmp13_;
+ ViewCollection* _tmp14_;
+ GeeArrayList* _tmp15_;
+ Marker* _tmp16_;
+ Marker* _tmp17_;
#line 346 "/home/jens/Source/shotwell/src/Event.vala"
g_return_if_fail (IS_EVENT (self));
#line 346 "/home/jens/Source/shotwell/src/Event.vala"
@@ -2902,11 +2907,11 @@ void event_detach_many (Event* self, GeeCollection* media) {
_tmp0_ = gee_array_list_new (TYPE_THUMBNAIL_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
#line 347 "/home/jens/Source/shotwell/src/Event.vala"
views = _tmp0_;
-#line 2906 "Event.c"
+#line 2911 "Event.c"
{
GeeIterator* _current_source_it = NULL;
- GeeCollection* _tmp1_ = NULL;
- GeeIterator* _tmp2_ = NULL;
+ GeeCollection* _tmp1_;
+ GeeIterator* _tmp2_;
#line 348 "/home/jens/Source/shotwell/src/Event.vala"
_tmp1_ = media;
#line 348 "/home/jens/Source/shotwell/src/Event.vala"
@@ -2915,17 +2920,17 @@ void event_detach_many (Event* self, GeeCollection* media) {
_current_source_it = _tmp2_;
#line 348 "/home/jens/Source/shotwell/src/Event.vala"
while (TRUE) {
-#line 2919 "Event.c"
- GeeIterator* _tmp3_ = NULL;
- gboolean _tmp4_ = FALSE;
+#line 2924 "Event.c"
+ GeeIterator* _tmp3_;
+ gboolean _tmp4_;
MediaSource* current_source = NULL;
- GeeIterator* _tmp5_ = NULL;
- gpointer _tmp6_ = NULL;
+ GeeIterator* _tmp5_;
+ gpointer _tmp6_;
ThumbnailView* view = NULL;
- ViewCollection* _tmp7_ = NULL;
- MediaSource* _tmp8_ = NULL;
- DataView* _tmp9_ = NULL;
- ThumbnailView* _tmp10_ = NULL;
+ ViewCollection* _tmp7_;
+ MediaSource* _tmp8_;
+ DataView* _tmp9_;
+ ThumbnailView* _tmp10_;
#line 348 "/home/jens/Source/shotwell/src/Event.vala"
_tmp3_ = _current_source_it;
#line 348 "/home/jens/Source/shotwell/src/Event.vala"
@@ -2934,7 +2939,7 @@ void event_detach_many (Event* self, GeeCollection* media) {
if (!_tmp4_) {
#line 348 "/home/jens/Source/shotwell/src/Event.vala"
break;
-#line 2938 "Event.c"
+#line 2943 "Event.c"
}
#line 348 "/home/jens/Source/shotwell/src/Event.vala"
_tmp5_ = _current_source_it;
@@ -2954,26 +2959,26 @@ void event_detach_many (Event* self, GeeCollection* media) {
_tmp10_ = view;
#line 350 "/home/jens/Source/shotwell/src/Event.vala"
if (_tmp10_ != NULL) {
-#line 2958 "Event.c"
- GeeArrayList* _tmp11_ = NULL;
- ThumbnailView* _tmp12_ = NULL;
+#line 2963 "Event.c"
+ GeeArrayList* _tmp11_;
+ ThumbnailView* _tmp12_;
#line 351 "/home/jens/Source/shotwell/src/Event.vala"
_tmp11_ = views;
#line 351 "/home/jens/Source/shotwell/src/Event.vala"
_tmp12_ = view;
#line 351 "/home/jens/Source/shotwell/src/Event.vala"
gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp12_);
-#line 2967 "Event.c"
+#line 2972 "Event.c"
}
#line 348 "/home/jens/Source/shotwell/src/Event.vala"
_g_object_unref0 (view);
#line 348 "/home/jens/Source/shotwell/src/Event.vala"
_g_object_unref0 (current_source);
-#line 2973 "Event.c"
+#line 2978 "Event.c"
}
#line 348 "/home/jens/Source/shotwell/src/Event.vala"
_g_object_unref0 (_current_source_it);
-#line 2977 "Event.c"
+#line 2982 "Event.c"
}
#line 354 "/home/jens/Source/shotwell/src/Event.vala"
_tmp13_ = self->priv->view;
@@ -2991,7 +2996,7 @@ void event_detach_many (Event* self, GeeCollection* media) {
_g_object_unref0 (_tmp17_);
#line 346 "/home/jens/Source/shotwell/src/Event.vala"
_g_object_unref0 (views);
-#line 2995 "Event.c"
+#line 3000 "Event.c"
}
@@ -3001,13 +3006,13 @@ gboolean event_contains_media_type (Event* self, const gchar* media_type) {
g_return_val_if_fail (IS_EVENT (self), FALSE);
#line 360 "/home/jens/Source/shotwell/src/Event.vala"
g_return_val_if_fail (media_type != NULL, FALSE);
-#line 3005 "Event.c"
+#line 3010 "Event.c"
{
GeeIterator* _media_it = NULL;
- GeeCollection* _tmp0_ = NULL;
- GeeCollection* _tmp1_ = NULL;
- GeeIterator* _tmp2_ = NULL;
- GeeIterator* _tmp3_ = NULL;
+ GeeCollection* _tmp0_;
+ GeeCollection* _tmp1_;
+ GeeIterator* _tmp2_;
+ GeeIterator* _tmp3_;
#line 361 "/home/jens/Source/shotwell/src/Event.vala"
_tmp0_ = event_source_get_media (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EVENT_SOURCE, EventSource));
#line 361 "/home/jens/Source/shotwell/src/Event.vala"
@@ -3022,17 +3027,17 @@ gboolean event_contains_media_type (Event* self, const gchar* media_type) {
_media_it = _tmp3_;
#line 361 "/home/jens/Source/shotwell/src/Event.vala"
while (TRUE) {
-#line 3026 "Event.c"
- GeeIterator* _tmp4_ = NULL;
- gboolean _tmp5_ = FALSE;
+#line 3031 "Event.c"
+ GeeIterator* _tmp4_;
+ gboolean _tmp5_;
MediaSource* media = NULL;
- GeeIterator* _tmp6_ = NULL;
- gpointer _tmp7_ = NULL;
- MediaSource* _tmp8_ = NULL;
- gchar* _tmp9_ = NULL;
- gchar* _tmp10_ = NULL;
- const gchar* _tmp11_ = NULL;
- gboolean _tmp12_ = FALSE;
+ GeeIterator* _tmp6_;
+ gpointer _tmp7_;
+ MediaSource* _tmp8_;
+ gchar* _tmp9_;
+ gchar* _tmp10_;
+ const gchar* _tmp11_;
+ gboolean _tmp12_;
#line 361 "/home/jens/Source/shotwell/src/Event.vala"
_tmp4_ = _media_it;
#line 361 "/home/jens/Source/shotwell/src/Event.vala"
@@ -3041,7 +3046,7 @@ gboolean event_contains_media_type (Event* self, const gchar* media_type) {
if (!_tmp5_) {
#line 361 "/home/jens/Source/shotwell/src/Event.vala"
break;
-#line 3045 "Event.c"
+#line 3050 "Event.c"
}
#line 361 "/home/jens/Source/shotwell/src/Event.vala"
_tmp6_ = _media_it;
@@ -3071,28 +3076,28 @@ gboolean event_contains_media_type (Event* self, const gchar* media_type) {
_g_object_unref0 (_media_it);
#line 363 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 3075 "Event.c"
+#line 3080 "Event.c"
}
#line 361 "/home/jens/Source/shotwell/src/Event.vala"
_g_object_unref0 (media);
-#line 3079 "Event.c"
+#line 3084 "Event.c"
}
#line 361 "/home/jens/Source/shotwell/src/Event.vala"
_g_object_unref0 (_media_it);
-#line 3083 "Event.c"
+#line 3088 "Event.c"
}
#line 366 "/home/jens/Source/shotwell/src/Event.vala"
result = FALSE;
#line 366 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 3089 "Event.c"
+#line 3094 "Event.c"
}
static GeeArrayList* event_views_to_media (Event* self, GeeIterable* views) {
GeeArrayList* result = NULL;
GeeArrayList* media = NULL;
- GeeArrayList* _tmp0_ = NULL;
+ GeeArrayList* _tmp0_;
#line 369 "/home/jens/Source/shotwell/src/Event.vala"
g_return_val_if_fail (IS_EVENT (self), NULL);
#line 369 "/home/jens/Source/shotwell/src/Event.vala"
@@ -3101,11 +3106,11 @@ static GeeArrayList* event_views_to_media (Event* self, GeeIterable* views) {
_tmp0_ = gee_array_list_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
#line 370 "/home/jens/Source/shotwell/src/Event.vala"
media = _tmp0_;
-#line 3105 "Event.c"
+#line 3110 "Event.c"
{
GeeIterator* _object_it = NULL;
- GeeIterable* _tmp1_ = NULL;
- GeeIterator* _tmp2_ = NULL;
+ GeeIterable* _tmp1_;
+ GeeIterator* _tmp2_;
#line 371 "/home/jens/Source/shotwell/src/Event.vala"
_tmp1_ = views;
#line 371 "/home/jens/Source/shotwell/src/Event.vala"
@@ -3114,16 +3119,16 @@ static GeeArrayList* event_views_to_media (Event* self, GeeIterable* views) {
_object_it = _tmp2_;
#line 371 "/home/jens/Source/shotwell/src/Event.vala"
while (TRUE) {
-#line 3118 "Event.c"
- GeeIterator* _tmp3_ = NULL;
- gboolean _tmp4_ = FALSE;
+#line 3123 "Event.c"
+ GeeIterator* _tmp3_;
+ gboolean _tmp4_;
DataObject* object = NULL;
- GeeIterator* _tmp5_ = NULL;
- gpointer _tmp6_ = NULL;
- GeeArrayList* _tmp7_ = NULL;
- DataObject* _tmp8_ = NULL;
- DataSource* _tmp9_ = NULL;
- MediaSource* _tmp10_ = NULL;
+ GeeIterator* _tmp5_;
+ gpointer _tmp6_;
+ GeeArrayList* _tmp7_;
+ DataObject* _tmp8_;
+ DataSource* _tmp9_;
+ MediaSource* _tmp10_;
#line 371 "/home/jens/Source/shotwell/src/Event.vala"
_tmp3_ = _object_it;
#line 371 "/home/jens/Source/shotwell/src/Event.vala"
@@ -3132,7 +3137,7 @@ static GeeArrayList* event_views_to_media (Event* self, GeeIterable* views) {
if (!_tmp4_) {
#line 371 "/home/jens/Source/shotwell/src/Event.vala"
break;
-#line 3136 "Event.c"
+#line 3141 "Event.c"
}
#line 371 "/home/jens/Source/shotwell/src/Event.vala"
_tmp5_ = _object_it;
@@ -3154,30 +3159,30 @@ static GeeArrayList* event_views_to_media (Event* self, GeeIterable* views) {
_g_object_unref0 (_tmp10_);
#line 371 "/home/jens/Source/shotwell/src/Event.vala"
_g_object_unref0 (object);
-#line 3158 "Event.c"
+#line 3163 "Event.c"
}
#line 371 "/home/jens/Source/shotwell/src/Event.vala"
_g_object_unref0 (_object_it);
-#line 3162 "Event.c"
+#line 3167 "Event.c"
}
#line 374 "/home/jens/Source/shotwell/src/Event.vala"
result = media;
#line 374 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 3168 "Event.c"
+#line 3173 "Event.c"
}
static void event_on_media_added (Event* self, GeeIterable* added) {
GeeCollection* media = NULL;
- GeeIterable* _tmp0_ = NULL;
- GeeArrayList* _tmp1_ = NULL;
- EventSourceCollection* _tmp2_ = NULL;
- gboolean _tmp3_ = FALSE;
- EventSourceCollection* _tmp4_ = NULL;
- gboolean _tmp5_ = FALSE;
- Alteration* _tmp6_ = NULL;
- Alteration* _tmp7_ = NULL;
+ GeeIterable* _tmp0_;
+ GeeArrayList* _tmp1_;
+ EventSourceCollection* _tmp2_;
+ gboolean _tmp3_;
+ EventSourceCollection* _tmp4_;
+ gboolean _tmp5_;
+ Alteration* _tmp6_;
+ Alteration* _tmp7_;
#line 377 "/home/jens/Source/shotwell/src/Event.vala"
g_return_if_fail (IS_EVENT (self));
#line 377 "/home/jens/Source/shotwell/src/Event.vala"
@@ -3210,23 +3215,23 @@ static void event_on_media_added (Event* self, GeeIterable* added) {
_alteration_unref0 (_tmp7_);
#line 377 "/home/jens/Source/shotwell/src/Event.vala"
_g_object_unref0 (media);
-#line 3214 "Event.c"
+#line 3219 "Event.c"
}
static void event_on_media_removed (Event* self, GeeIterable* removed) {
GeeArrayList* media = NULL;
- GeeIterable* _tmp0_ = NULL;
- GeeArrayList* _tmp1_ = NULL;
- EventSourceCollection* _tmp2_ = NULL;
- GeeArrayList* _tmp3_ = NULL;
- gboolean _tmp4_ = FALSE;
- EventSourceCollection* _tmp5_ = NULL;
- GeeArrayList* _tmp6_ = NULL;
- gboolean _tmp7_ = FALSE;
- gint _tmp27_ = 0;
- Alteration* _tmp29_ = NULL;
- Alteration* _tmp30_ = NULL;
+ GeeIterable* _tmp0_;
+ GeeArrayList* _tmp1_;
+ EventSourceCollection* _tmp2_;
+ GeeArrayList* _tmp3_;
+ gboolean _tmp4_;
+ EventSourceCollection* _tmp5_;
+ GeeArrayList* _tmp6_;
+ gboolean _tmp7_;
+ gint _tmp27_;
+ Alteration* _tmp29_;
+ Alteration* _tmp30_;
#line 386 "/home/jens/Source/shotwell/src/Event.vala"
g_return_if_fail (IS_EVENT (self));
#line 386 "/home/jens/Source/shotwell/src/Event.vala"
@@ -3253,15 +3258,15 @@ static void event_on_media_removed (Event* self, GeeIterable* removed) {
_tmp7_ = self->priv->unlinking;
#line 390 "/home/jens/Source/shotwell/src/Event.vala"
container_source_collection_notify_container_contents_altered (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE, ContainerSource), NULL, FALSE, G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection), _tmp7_);
-#line 3257 "Event.c"
+#line 3262 "Event.c"
{
GeeArrayList* _current_source_list = NULL;
- GeeArrayList* _tmp8_ = NULL;
- GeeArrayList* _tmp9_ = NULL;
+ GeeArrayList* _tmp8_;
+ GeeArrayList* _tmp9_;
gint _current_source_size = 0;
- GeeArrayList* _tmp10_ = NULL;
- gint _tmp11_ = 0;
- gint _tmp12_ = 0;
+ GeeArrayList* _tmp10_;
+ gint _tmp11_;
+ gint _tmp12_;
gint _current_source_index = 0;
#line 393 "/home/jens/Source/shotwell/src/Event.vala"
_tmp8_ = media;
@@ -3281,16 +3286,16 @@ static void event_on_media_removed (Event* self, GeeIterable* removed) {
_current_source_index = -1;
#line 393 "/home/jens/Source/shotwell/src/Event.vala"
while (TRUE) {
-#line 3285 "Event.c"
- gint _tmp13_ = 0;
- gint _tmp14_ = 0;
- gint _tmp15_ = 0;
+#line 3290 "Event.c"
+ gint _tmp13_;
+ gint _tmp14_;
+ gint _tmp15_;
MediaSource* current_source = NULL;
- GeeArrayList* _tmp16_ = NULL;
- gint _tmp17_ = 0;
- gpointer _tmp18_ = NULL;
- MediaSource* _tmp19_ = NULL;
- MediaSource* _tmp20_ = NULL;
+ GeeArrayList* _tmp16_;
+ gint _tmp17_;
+ gpointer _tmp18_;
+ MediaSource* _tmp19_;
+ MediaSource* _tmp20_;
#line 393 "/home/jens/Source/shotwell/src/Event.vala"
_tmp13_ = _current_source_index;
#line 393 "/home/jens/Source/shotwell/src/Event.vala"
@@ -3303,7 +3308,7 @@ static void event_on_media_removed (Event* self, GeeIterable* removed) {
if (!(_tmp14_ < _tmp15_)) {
#line 393 "/home/jens/Source/shotwell/src/Event.vala"
break;
-#line 3307 "Event.c"
+#line 3312 "Event.c"
}
#line 393 "/home/jens/Source/shotwell/src/Event.vala"
_tmp16_ = _current_source_list;
@@ -3319,18 +3324,18 @@ static void event_on_media_removed (Event* self, GeeIterable* removed) {
_tmp20_ = self->priv->primary_source;
#line 394 "/home/jens/Source/shotwell/src/Event.vala"
if (_tmp19_ == _tmp20_) {
-#line 3323 "Event.c"
- gint _tmp21_ = 0;
+#line 3328 "Event.c"
+ gint _tmp21_;
#line 395 "/home/jens/Source/shotwell/src/Event.vala"
_tmp21_ = event_source_get_media_count (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EVENT_SOURCE, EventSource));
#line 395 "/home/jens/Source/shotwell/src/Event.vala"
if (_tmp21_ > 0) {
-#line 3329 "Event.c"
- ViewCollection* _tmp22_ = NULL;
- DataView* _tmp23_ = NULL;
- DataView* _tmp24_ = NULL;
- DataSource* _tmp25_ = NULL;
- MediaSource* _tmp26_ = NULL;
+#line 3334 "Event.c"
+ ViewCollection* _tmp22_;
+ DataView* _tmp23_;
+ DataView* _tmp24_;
+ DataSource* _tmp25_;
+ MediaSource* _tmp26_;
#line 396 "/home/jens/Source/shotwell/src/Event.vala"
_tmp22_ = self->priv->view;
#line 396 "/home/jens/Source/shotwell/src/Event.vala"
@@ -3347,32 +3352,32 @@ static void event_on_media_removed (Event* self, GeeIterable* removed) {
_g_object_unref0 (_tmp26_);
#line 396 "/home/jens/Source/shotwell/src/Event.vala"
_g_object_unref0 (_tmp24_);
-#line 3351 "Event.c"
+#line 3356 "Event.c"
} else {
#line 398 "/home/jens/Source/shotwell/src/Event.vala"
event_release_primary_source (self);
-#line 3355 "Event.c"
+#line 3360 "Event.c"
}
#line 400 "/home/jens/Source/shotwell/src/Event.vala"
_g_object_unref0 (current_source);
#line 400 "/home/jens/Source/shotwell/src/Event.vala"
break;
-#line 3361 "Event.c"
+#line 3366 "Event.c"
}
#line 393 "/home/jens/Source/shotwell/src/Event.vala"
_g_object_unref0 (current_source);
-#line 3365 "Event.c"
+#line 3370 "Event.c"
}
#line 393 "/home/jens/Source/shotwell/src/Event.vala"
_g_object_unref0 (_current_source_list);
-#line 3369 "Event.c"
+#line 3374 "Event.c"
}
#line 405 "/home/jens/Source/shotwell/src/Event.vala"
_tmp27_ = event_source_get_media_count (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EVENT_SOURCE, EventSource));
#line 405 "/home/jens/Source/shotwell/src/Event.vala"
if (_tmp27_ == 0) {
-#line 3375 "Event.c"
- EventSourceCollection* _tmp28_ = NULL;
+#line 3380 "Event.c"
+ EventSourceCollection* _tmp28_;
#line 406 "/home/jens/Source/shotwell/src/Event.vala"
_tmp28_ = event_global;
#line 406 "/home/jens/Source/shotwell/src/Event.vala"
@@ -3381,7 +3386,7 @@ static void event_on_media_removed (Event* self, GeeIterable* removed) {
_g_object_unref0 (media);
#line 410 "/home/jens/Source/shotwell/src/Event.vala"
return;
-#line 3385 "Event.c"
+#line 3390 "Event.c"
}
#line 413 "/home/jens/Source/shotwell/src/Event.vala"
_tmp29_ = alteration_new_from_list ("contents:removed, metadata:time");
@@ -3393,16 +3398,16 @@ static void event_on_media_removed (Event* self, GeeIterable* removed) {
_alteration_unref0 (_tmp30_);
#line 386 "/home/jens/Source/shotwell/src/Event.vala"
_g_object_unref0 (media);
-#line 3397 "Event.c"
+#line 3402 "Event.c"
}
static void event_on_media_destroyed (Event* self, DataSource* source) {
ThumbnailView* thumbnail_view = NULL;
- ViewCollection* _tmp0_ = NULL;
- DataSource* _tmp1_ = NULL;
- DataView* _tmp2_ = NULL;
- ThumbnailView* _tmp3_ = NULL;
+ ViewCollection* _tmp0_;
+ DataSource* _tmp1_;
+ DataView* _tmp2_;
+ ThumbnailView* _tmp3_;
#line 416 "/home/jens/Source/shotwell/src/Event.vala"
g_return_if_fail (IS_EVENT (self));
#line 416 "/home/jens/Source/shotwell/src/Event.vala"
@@ -3419,12 +3424,12 @@ static void event_on_media_destroyed (Event* self, DataSource* source) {
_tmp3_ = thumbnail_view;
#line 418 "/home/jens/Source/shotwell/src/Event.vala"
if (_tmp3_ != NULL) {
-#line 3423 "Event.c"
- ViewCollection* _tmp4_ = NULL;
- ViewCollection* _tmp5_ = NULL;
- ThumbnailView* _tmp6_ = NULL;
- Marker* _tmp7_ = NULL;
- Marker* _tmp8_ = NULL;
+#line 3428 "Event.c"
+ ViewCollection* _tmp4_;
+ ViewCollection* _tmp5_;
+ ThumbnailView* _tmp6_;
+ Marker* _tmp7_;
+ Marker* _tmp8_;
#line 419 "/home/jens/Source/shotwell/src/Event.vala"
_tmp4_ = self->priv->view;
#line 419 "/home/jens/Source/shotwell/src/Event.vala"
@@ -3439,19 +3444,19 @@ static void event_on_media_destroyed (Event* self, DataSource* source) {
data_collection_remove_marked (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_COLLECTION, DataCollection), _tmp8_);
#line 419 "/home/jens/Source/shotwell/src/Event.vala"
_g_object_unref0 (_tmp8_);
-#line 3443 "Event.c"
+#line 3448 "Event.c"
}
#line 416 "/home/jens/Source/shotwell/src/Event.vala"
_g_object_unref0 (thumbnail_view);
-#line 3447 "Event.c"
+#line 3452 "Event.c"
}
static void event_real_notify_relinking (DataSource* base, SourceCollection* sources) {
Event * self;
- gint _tmp0_ = 0;
- MediaSource* _tmp1_ = NULL;
- SourceCollection* _tmp7_ = NULL;
+ gint _tmp0_;
+ MediaSource* _tmp1_;
+ SourceCollection* _tmp7_;
#line 422 "/home/jens/Source/shotwell/src/Event.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event);
#line 422 "/home/jens/Source/shotwell/src/Event.vala"
@@ -3464,12 +3469,12 @@ static void event_real_notify_relinking (DataSource* base, SourceCollection* sou
_tmp1_ = self->priv->primary_source;
#line 426 "/home/jens/Source/shotwell/src/Event.vala"
if (_tmp1_ == NULL) {
-#line 3468 "Event.c"
- ViewCollection* _tmp2_ = NULL;
- DataView* _tmp3_ = NULL;
- DataView* _tmp4_ = NULL;
- DataSource* _tmp5_ = NULL;
- MediaSource* _tmp6_ = NULL;
+#line 3473 "Event.c"
+ ViewCollection* _tmp2_;
+ DataView* _tmp3_;
+ DataView* _tmp4_;
+ DataSource* _tmp5_;
+ MediaSource* _tmp6_;
#line 427 "/home/jens/Source/shotwell/src/Event.vala"
_tmp2_ = self->priv->view;
#line 427 "/home/jens/Source/shotwell/src/Event.vala"
@@ -3486,13 +3491,13 @@ static void event_real_notify_relinking (DataSource* base, SourceCollection* sou
_g_object_unref0 (_tmp6_);
#line 427 "/home/jens/Source/shotwell/src/Event.vala"
_g_object_unref0 (_tmp4_);
-#line 3490 "Event.c"
+#line 3495 "Event.c"
}
#line 429 "/home/jens/Source/shotwell/src/Event.vala"
_tmp7_ = sources;
#line 429 "/home/jens/Source/shotwell/src/Event.vala"
DATA_SOURCE_CLASS (event_parent_class)->notify_relinking (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EVENT_SOURCE, EventSource), TYPE_DATA_SOURCE, DataSource), _tmp7_);
-#line 3496 "Event.c"
+#line 3501 "Event.c"
}
@@ -3507,22 +3512,22 @@ static void event_real_notify_relinking (DataSource* base, SourceCollection* sou
*/
static void event_on_media_altered (Event* self, GeeMap* items) {
gboolean should_remake_thumb = FALSE;
- gboolean _tmp21_ = FALSE;
+ gboolean _tmp21_;
#line 441 "/home/jens/Source/shotwell/src/Event.vala"
g_return_if_fail (IS_EVENT (self));
#line 441 "/home/jens/Source/shotwell/src/Event.vala"
g_return_if_fail (GEE_IS_MAP (items));
#line 442 "/home/jens/Source/shotwell/src/Event.vala"
should_remake_thumb = FALSE;
-#line 3518 "Event.c"
+#line 3523 "Event.c"
{
GeeIterator* _alteration_it = NULL;
- GeeMap* _tmp0_ = NULL;
- GeeCollection* _tmp1_ = NULL;
- GeeCollection* _tmp2_ = NULL;
- GeeCollection* _tmp3_ = NULL;
- GeeIterator* _tmp4_ = NULL;
- GeeIterator* _tmp5_ = NULL;
+ GeeMap* _tmp0_;
+ GeeCollection* _tmp1_;
+ GeeCollection* _tmp2_;
+ GeeCollection* _tmp3_;
+ GeeIterator* _tmp4_;
+ GeeIterator* _tmp5_;
#line 444 "/home/jens/Source/shotwell/src/Event.vala"
_tmp0_ = items;
#line 444 "/home/jens/Source/shotwell/src/Event.vala"
@@ -3541,16 +3546,16 @@ static void event_on_media_altered (Event* self, GeeMap* items) {
_alteration_it = _tmp5_;
#line 444 "/home/jens/Source/shotwell/src/Event.vala"
while (TRUE) {
-#line 3545 "Event.c"
- GeeIterator* _tmp6_ = NULL;
- gboolean _tmp7_ = FALSE;
+#line 3550 "Event.c"
+ GeeIterator* _tmp6_;
+ gboolean _tmp7_;
Alteration* alteration = NULL;
- GeeIterator* _tmp8_ = NULL;
- gpointer _tmp9_ = NULL;
- Alteration* _tmp10_ = NULL;
- gboolean _tmp11_ = FALSE;
- Alteration* _tmp19_ = NULL;
- gboolean _tmp20_ = FALSE;
+ GeeIterator* _tmp8_;
+ gpointer _tmp9_;
+ Alteration* _tmp10_;
+ gboolean _tmp11_;
+ Alteration* _tmp19_;
+ gboolean _tmp20_;
#line 444 "/home/jens/Source/shotwell/src/Event.vala"
_tmp6_ = _alteration_it;
#line 444 "/home/jens/Source/shotwell/src/Event.vala"
@@ -3559,7 +3564,7 @@ static void event_on_media_altered (Event* self, GeeMap* items) {
if (!_tmp7_) {
#line 444 "/home/jens/Source/shotwell/src/Event.vala"
break;
-#line 3563 "Event.c"
+#line 3568 "Event.c"
}
#line 444 "/home/jens/Source/shotwell/src/Event.vala"
_tmp8_ = _alteration_it;
@@ -3573,13 +3578,13 @@ static void event_on_media_altered (Event* self, GeeMap* items) {
_tmp11_ = alteration_has_detail (_tmp10_, "metadata", "exposure-time");
#line 445 "/home/jens/Source/shotwell/src/Event.vala"
if (_tmp11_) {
-#line 3577 "Event.c"
+#line 3582 "Event.c"
gchar* alt_list = NULL;
- gchar* _tmp12_ = NULL;
- gboolean _tmp13_ = FALSE;
- const gchar* _tmp16_ = NULL;
- Alteration* _tmp17_ = NULL;
- Alteration* _tmp18_ = NULL;
+ gchar* _tmp12_;
+ gboolean _tmp13_;
+ const gchar* _tmp16_;
+ Alteration* _tmp17_;
+ Alteration* _tmp18_;
#line 447 "/home/jens/Source/shotwell/src/Event.vala"
_tmp12_ = g_strdup ("metadata:time");
#line 447 "/home/jens/Source/shotwell/src/Event.vala"
@@ -3588,9 +3593,9 @@ static void event_on_media_altered (Event* self, GeeMap* items) {
_tmp13_ = event_has_name (self);
#line 449 "/home/jens/Source/shotwell/src/Event.vala"
if (!_tmp13_) {
-#line 3592 "Event.c"
- const gchar* _tmp14_ = NULL;
- gchar* _tmp15_ = NULL;
+#line 3597 "Event.c"
+ const gchar* _tmp14_;
+ gchar* _tmp15_;
#line 450 "/home/jens/Source/shotwell/src/Event.vala"
_tmp14_ = alt_list;
#line 450 "/home/jens/Source/shotwell/src/Event.vala"
@@ -3599,7 +3604,7 @@ static void event_on_media_altered (Event* self, GeeMap* items) {
_g_free0 (alt_list);
#line 450 "/home/jens/Source/shotwell/src/Event.vala"
alt_list = _tmp15_;
-#line 3603 "Event.c"
+#line 3608 "Event.c"
}
#line 452 "/home/jens/Source/shotwell/src/Event.vala"
_tmp16_ = alt_list;
@@ -3617,7 +3622,7 @@ static void event_on_media_altered (Event* self, GeeMap* items) {
_alteration_unref0 (alteration);
#line 454 "/home/jens/Source/shotwell/src/Event.vala"
break;
-#line 3621 "Event.c"
+#line 3626 "Event.c"
}
#line 457 "/home/jens/Source/shotwell/src/Event.vala"
_tmp19_ = alteration;
@@ -3627,25 +3632,25 @@ static void event_on_media_altered (Event* self, GeeMap* items) {
if (_tmp20_) {
#line 458 "/home/jens/Source/shotwell/src/Event.vala"
should_remake_thumb = TRUE;
-#line 3631 "Event.c"
+#line 3636 "Event.c"
}
#line 444 "/home/jens/Source/shotwell/src/Event.vala"
_alteration_unref0 (alteration);
-#line 3635 "Event.c"
+#line 3640 "Event.c"
}
#line 444 "/home/jens/Source/shotwell/src/Event.vala"
_g_object_unref0 (_alteration_it);
-#line 3639 "Event.c"
+#line 3644 "Event.c"
}
#line 461 "/home/jens/Source/shotwell/src/Event.vala"
_tmp21_ = should_remake_thumb;
#line 461 "/home/jens/Source/shotwell/src/Event.vala"
if (_tmp21_) {
-#line 3645 "Event.c"
+#line 3650 "Event.c"
gboolean _tmp22_ = FALSE;
- MediaSource* _tmp23_ = NULL;
- MediaSource* _tmp24_ = NULL;
- gboolean _tmp25_ = FALSE;
+ MediaSource* _tmp23_;
+ MediaSource* _tmp24_;
+ gboolean _tmp25_;
#line 463 "/home/jens/Source/shotwell/src/Event.vala"
_tmp23_ = event_get_primary_source (self);
#line 463 "/home/jens/Source/shotwell/src/Event.vala"
@@ -3658,11 +3663,11 @@ static void event_on_media_altered (Event* self, GeeMap* items) {
if (_tmp25_) {
#line 463 "/home/jens/Source/shotwell/src/Event.vala"
_tmp22_ = TRUE;
-#line 3662 "Event.c"
+#line 3667 "Event.c"
} else {
- MediaSource* _tmp26_ = NULL;
- MediaSource* _tmp27_ = NULL;
- Rating _tmp28_ = 0;
+ MediaSource* _tmp26_;
+ MediaSource* _tmp27_;
+ Rating _tmp28_;
#line 463 "/home/jens/Source/shotwell/src/Event.vala"
_tmp26_ = event_get_primary_source (self);
#line 463 "/home/jens/Source/shotwell/src/Event.vala"
@@ -3673,16 +3678,16 @@ static void event_on_media_altered (Event* self, GeeMap* items) {
_tmp22_ = _tmp28_ == RATING_REJECTED;
#line 463 "/home/jens/Source/shotwell/src/Event.vala"
_g_object_unref0 (_tmp27_);
-#line 3677 "Event.c"
+#line 3682 "Event.c"
}
#line 463 "/home/jens/Source/shotwell/src/Event.vala"
if (_tmp22_) {
-#line 3681 "Event.c"
- ViewCollection* _tmp29_ = NULL;
- DataView* _tmp30_ = NULL;
- DataView* _tmp31_ = NULL;
- DataSource* _tmp32_ = NULL;
- MediaSource* _tmp33_ = NULL;
+#line 3686 "Event.c"
+ ViewCollection* _tmp29_;
+ DataView* _tmp30_;
+ DataView* _tmp31_;
+ DataSource* _tmp32_;
+ MediaSource* _tmp33_;
#line 465 "/home/jens/Source/shotwell/src/Event.vala"
_tmp29_ = self->priv->view;
#line 465 "/home/jens/Source/shotwell/src/Event.vala"
@@ -3699,7 +3704,7 @@ static void event_on_media_altered (Event* self, GeeMap* items) {
_g_object_unref0 (_tmp33_);
#line 465 "/home/jens/Source/shotwell/src/Event.vala"
_g_object_unref0 (_tmp31_);
-#line 3703 "Event.c"
+#line 3708 "Event.c"
}
}
}
@@ -3710,23 +3715,23 @@ Event* event_create_empty_event (MediaSource* source) {
GError * _inner_error_ = NULL;
#line 474 "/home/jens/Source/shotwell/src/Event.vala"
g_return_val_if_fail (IS_MEDIA_SOURCE (source), NULL);
-#line 3714 "Event.c"
+#line 3719 "Event.c"
{
EventRow* _tmp0_ = NULL;
- EventTable* _tmp1_ = NULL;
- EventTable* _tmp2_ = NULL;
- MediaSource* _tmp3_ = NULL;
- gchar* _tmp4_ = NULL;
- gchar* _tmp5_ = NULL;
- EventRow* _tmp6_ = NULL;
- EventRow* _tmp7_ = NULL;
+ EventTable* _tmp1_;
+ EventTable* _tmp2_;
+ MediaSource* _tmp3_;
+ gchar* _tmp4_;
+ gchar* _tmp5_;
+ EventRow* _tmp6_;
+ EventRow* _tmp7_;
Event* event = NULL;
- Event* _tmp8_ = NULL;
- EventSourceCollection* _tmp9_ = NULL;
- Event* _tmp10_ = NULL;
- Event* _tmp11_ = NULL;
- gchar* _tmp12_ = NULL;
- gchar* _tmp13_ = NULL;
+ Event* _tmp8_;
+ EventSourceCollection* _tmp9_;
+ Event* _tmp10_;
+ Event* _tmp11_;
+ gchar* _tmp12_;
+ gchar* _tmp13_;
#line 476 "/home/jens/Source/shotwell/src/Event.vala"
_tmp1_ = event_table_get_instance ();
#line 476 "/home/jens/Source/shotwell/src/Event.vala"
@@ -3751,8 +3756,8 @@ Event* event_create_empty_event (MediaSource* source) {
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 476 "/home/jens/Source/shotwell/src/Event.vala"
if (_inner_error_->domain == DATABASE_ERROR) {
-#line 3755 "Event.c"
- goto __catch435_database_error;
+#line 3760 "Event.c"
+ goto __catch436_database_error;
}
#line 476 "/home/jens/Source/shotwell/src/Event.vala"
g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
@@ -3760,7 +3765,7 @@ Event* event_create_empty_event (MediaSource* source) {
g_clear_error (&_inner_error_);
#line 476 "/home/jens/Source/shotwell/src/Event.vala"
return NULL;
-#line 3764 "Event.c"
+#line 3769 "Event.c"
}
#line 476 "/home/jens/Source/shotwell/src/Event.vala"
_tmp8_ = event_new (_tmp0_, DATA_OBJECT_INVALID_OBJECT_ID);
@@ -3788,13 +3793,13 @@ Event* event_create_empty_event (MediaSource* source) {
_event_row_unref0 (_tmp0_);
#line 481 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 3792 "Event.c"
+#line 3797 "Event.c"
}
- goto __finally435;
- __catch435_database_error:
+ goto __finally436;
+ __catch436_database_error:
{
GError* err = NULL;
- GError* _tmp14_ = NULL;
+ GError* _tmp14_;
#line 475 "/home/jens/Source/shotwell/src/Event.vala"
err = _inner_error_;
#line 475 "/home/jens/Source/shotwell/src/Event.vala"
@@ -3809,35 +3814,35 @@ Event* event_create_empty_event (MediaSource* source) {
_g_error_free0 (err);
#line 485 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 3813 "Event.c"
+#line 3818 "Event.c"
}
- __finally435:
+ __finally436:
#line 475 "/home/jens/Source/shotwell/src/Event.vala"
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 475 "/home/jens/Source/shotwell/src/Event.vala"
g_clear_error (&_inner_error_);
#line 475 "/home/jens/Source/shotwell/src/Event.vala"
return NULL;
-#line 3822 "Event.c"
+#line 3827 "Event.c"
}
static Event* event_reconstitute (gint64 object_id, EventRow* row) {
Event* result = NULL;
- EventRow* _tmp0_ = NULL;
- EventTable* _tmp1_ = NULL;
- EventTable* _tmp2_ = NULL;
- EventRow* _tmp3_ = NULL;
+ EventRow* _tmp0_;
+ EventTable* _tmp1_;
+ EventTable* _tmp2_;
+ EventRow* _tmp3_;
EventID _tmp4_ = {0};
Event* event = NULL;
- EventRow* _tmp5_ = NULL;
- gint64 _tmp6_ = 0LL;
- Event* _tmp7_ = NULL;
- EventSourceCollection* _tmp8_ = NULL;
- EventSourceCollection* _tmp9_ = NULL;
- gboolean _tmp10_ = FALSE;
- gchar* _tmp11_ = NULL;
- gchar* _tmp12_ = NULL;
+ EventRow* _tmp5_;
+ gint64 _tmp6_;
+ Event* _tmp7_;
+ EventSourceCollection* _tmp8_;
+ EventSourceCollection* _tmp9_;
+ gboolean _tmp10_;
+ gchar* _tmp11_;
+ gchar* _tmp12_;
#line 490 "/home/jens/Source/shotwell/src/Event.vala"
g_return_val_if_fail (IS_EVENT_ROW (row), NULL);
#line 491 "/home/jens/Source/shotwell/src/Event.vala"
@@ -3884,7 +3889,7 @@ static Event* event_reconstitute (gint64 object_id, EventRow* row) {
result = event;
#line 498 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 3888 "Event.c"
+#line 3893 "Event.c"
}
@@ -3892,11 +3897,11 @@ static gboolean event_real_has_links (ContainerSource* base) {
Event * self;
gboolean result = FALSE;
gboolean _tmp0_ = FALSE;
- LibraryPhotoSourceCollection* _tmp1_ = NULL;
- SourceBacklink* _tmp2_ = NULL;
- SourceBacklink* _tmp3_ = NULL;
- gboolean _tmp4_ = FALSE;
- gboolean _tmp5_ = FALSE;
+ LibraryPhotoSourceCollection* _tmp1_;
+ SourceBacklink* _tmp2_;
+ SourceBacklink* _tmp3_;
+ gboolean _tmp4_;
+ gboolean _tmp5_;
#line 501 "/home/jens/Source/shotwell/src/Event.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event);
#line 502 "/home/jens/Source/shotwell/src/Event.vala"
@@ -3915,12 +3920,12 @@ static gboolean event_real_has_links (ContainerSource* base) {
if (_tmp5_) {
#line 502 "/home/jens/Source/shotwell/src/Event.vala"
_tmp0_ = TRUE;
-#line 3919 "Event.c"
+#line 3924 "Event.c"
} else {
- VideoSourceCollection* _tmp6_ = NULL;
- SourceBacklink* _tmp7_ = NULL;
- SourceBacklink* _tmp8_ = NULL;
- gboolean _tmp9_ = FALSE;
+ VideoSourceCollection* _tmp6_;
+ SourceBacklink* _tmp7_;
+ SourceBacklink* _tmp8_;
+ gboolean _tmp9_;
#line 503 "/home/jens/Source/shotwell/src/Event.vala"
_tmp6_ = video_global;
#line 503 "/home/jens/Source/shotwell/src/Event.vala"
@@ -3933,20 +3938,20 @@ static gboolean event_real_has_links (ContainerSource* base) {
_tmp0_ = _tmp9_;
#line 503 "/home/jens/Source/shotwell/src/Event.vala"
_source_backlink_unref0 (_tmp8_);
-#line 3937 "Event.c"
+#line 3942 "Event.c"
}
#line 502 "/home/jens/Source/shotwell/src/Event.vala"
result = _tmp0_;
#line 502 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 3943 "Event.c"
+#line 3948 "Event.c"
}
static SourceBacklink* event_real_get_backlink (ContainerSource* base) {
Event * self;
SourceBacklink* result = NULL;
- SourceBacklink* _tmp0_ = NULL;
+ SourceBacklink* _tmp0_;
#line 506 "/home/jens/Source/shotwell/src/Event.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event);
#line 507 "/home/jens/Source/shotwell/src/Event.vala"
@@ -3955,13 +3960,13 @@ static SourceBacklink* event_real_get_backlink (ContainerSource* base) {
result = _tmp0_;
#line 507 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 3959 "Event.c"
+#line 3964 "Event.c"
}
static void event_real_break_link (ContainerSource* base, DataSource* source) {
Event * self;
- DataSource* _tmp0_ = NULL;
+ DataSource* _tmp0_;
#line 510 "/home/jens/Source/shotwell/src/Event.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event);
#line 510 "/home/jens/Source/shotwell/src/Event.vala"
@@ -3974,17 +3979,17 @@ static void event_real_break_link (ContainerSource* base, DataSource* source) {
media_source_set_event (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_SOURCE, MediaSource), NULL);
#line 515 "/home/jens/Source/shotwell/src/Event.vala"
self->priv->unlinking = FALSE;
-#line 3978 "Event.c"
+#line 3983 "Event.c"
}
static void event_real_break_link_many (ContainerSource* base, GeeCollection* sources) {
Event * self;
GeeArrayList* photos = NULL;
- GeeArrayList* _tmp0_ = NULL;
+ GeeArrayList* _tmp0_;
GeeArrayList* videos = NULL;
- GeeArrayList* _tmp1_ = NULL;
- GeeCollection* _tmp2_ = NULL;
+ GeeArrayList* _tmp1_;
+ GeeCollection* _tmp2_;
GError * _inner_error_ = NULL;
#line 518 "/home/jens/Source/shotwell/src/Event.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event);
@@ -4004,11 +4009,11 @@ static void event_real_break_link_many (ContainerSource* base, GeeCollection* so
_tmp2_ = sources;
#line 523 "/home/jens/Source/shotwell/src/Event.vala"
media_source_collection_filter_media (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (photos, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (videos, GEE_TYPE_COLLECTION, GeeCollection));
-#line 4008 "Event.c"
+#line 4013 "Event.c"
{
- LibraryPhotoSourceCollection* _tmp3_ = NULL;
- TransactionController* _tmp4_ = NULL;
- TransactionController* _tmp5_ = NULL;
+ LibraryPhotoSourceCollection* _tmp3_;
+ TransactionController* _tmp4_;
+ TransactionController* _tmp5_;
#line 526 "/home/jens/Source/shotwell/src/Event.vala"
_tmp3_ = library_photo_global;
#line 526 "/home/jens/Source/shotwell/src/Event.vala"
@@ -4019,18 +4024,18 @@ static void event_real_break_link_many (ContainerSource* base, GeeCollection* so
media_source_set_many_to_event (G_TYPE_CHECK_INSTANCE_CAST (photos, GEE_TYPE_COLLECTION, GeeCollection), NULL, _tmp5_, &_inner_error_);
#line 526 "/home/jens/Source/shotwell/src/Event.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4023 "Event.c"
- goto __catch436_g_error;
+#line 4028 "Event.c"
+ goto __catch437_g_error;
}
}
- goto __finally436;
- __catch436_g_error:
+ goto __finally437;
+ __catch437_g_error:
{
GError* err = NULL;
- GError* _tmp6_ = NULL;
- const gchar* _tmp7_ = NULL;
- gchar* _tmp8_ = NULL;
- gchar* _tmp9_ = NULL;
+ GError* _tmp6_;
+ const gchar* _tmp7_;
+ gchar* _tmp8_;
+ gchar* _tmp9_;
#line 525 "/home/jens/Source/shotwell/src/Event.vala"
err = _inner_error_;
#line 525 "/home/jens/Source/shotwell/src/Event.vala"
@@ -4049,9 +4054,9 @@ static void event_real_break_link_many (ContainerSource* base, GeeCollection* so
_g_free0 (_tmp9_);
#line 525 "/home/jens/Source/shotwell/src/Event.vala"
_g_error_free0 (err);
-#line 4053 "Event.c"
+#line 4058 "Event.c"
}
- __finally436:
+ __finally437:
#line 525 "/home/jens/Source/shotwell/src/Event.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 525 "/home/jens/Source/shotwell/src/Event.vala"
@@ -4064,12 +4069,12 @@ static void event_real_break_link_many (ContainerSource* base, GeeCollection* so
g_clear_error (&_inner_error_);
#line 525 "/home/jens/Source/shotwell/src/Event.vala"
return;
-#line 4068 "Event.c"
+#line 4073 "Event.c"
}
{
- VideoSourceCollection* _tmp10_ = NULL;
- TransactionController* _tmp11_ = NULL;
- TransactionController* _tmp12_ = NULL;
+ VideoSourceCollection* _tmp10_;
+ TransactionController* _tmp11_;
+ TransactionController* _tmp12_;
#line 532 "/home/jens/Source/shotwell/src/Event.vala"
_tmp10_ = video_global;
#line 532 "/home/jens/Source/shotwell/src/Event.vala"
@@ -4080,18 +4085,18 @@ static void event_real_break_link_many (ContainerSource* base, GeeCollection* so
media_source_set_many_to_event (G_TYPE_CHECK_INSTANCE_CAST (videos, GEE_TYPE_COLLECTION, GeeCollection), NULL, _tmp12_, &_inner_error_);
#line 532 "/home/jens/Source/shotwell/src/Event.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4084 "Event.c"
- goto __catch437_g_error;
+#line 4089 "Event.c"
+ goto __catch438_g_error;
}
}
- goto __finally437;
- __catch437_g_error:
+ goto __finally438;
+ __catch438_g_error:
{
GError* err = NULL;
- GError* _tmp13_ = NULL;
- const gchar* _tmp14_ = NULL;
- gchar* _tmp15_ = NULL;
- gchar* _tmp16_ = NULL;
+ GError* _tmp13_;
+ const gchar* _tmp14_;
+ gchar* _tmp15_;
+ gchar* _tmp16_;
#line 531 "/home/jens/Source/shotwell/src/Event.vala"
err = _inner_error_;
#line 531 "/home/jens/Source/shotwell/src/Event.vala"
@@ -4110,9 +4115,9 @@ static void event_real_break_link_many (ContainerSource* base, GeeCollection* so
_g_free0 (_tmp16_);
#line 531 "/home/jens/Source/shotwell/src/Event.vala"
_g_error_free0 (err);
-#line 4114 "Event.c"
+#line 4119 "Event.c"
}
- __finally437:
+ __finally438:
#line 531 "/home/jens/Source/shotwell/src/Event.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 531 "/home/jens/Source/shotwell/src/Event.vala"
@@ -4125,7 +4130,7 @@ static void event_real_break_link_many (ContainerSource* base, GeeCollection* so
g_clear_error (&_inner_error_);
#line 531 "/home/jens/Source/shotwell/src/Event.vala"
return;
-#line 4129 "Event.c"
+#line 4134 "Event.c"
}
#line 537 "/home/jens/Source/shotwell/src/Event.vala"
self->priv->unlinking = FALSE;
@@ -4133,13 +4138,13 @@ static void event_real_break_link_many (ContainerSource* base, GeeCollection* so
_g_object_unref0 (videos);
#line 518 "/home/jens/Source/shotwell/src/Event.vala"
_g_object_unref0 (photos);
-#line 4137 "Event.c"
+#line 4142 "Event.c"
}
static void event_real_establish_link (ContainerSource* base, DataSource* source) {
Event * self;
- DataSource* _tmp0_ = NULL;
+ DataSource* _tmp0_;
#line 540 "/home/jens/Source/shotwell/src/Event.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event);
#line 540 "/home/jens/Source/shotwell/src/Event.vala"
@@ -4152,17 +4157,17 @@ static void event_real_establish_link (ContainerSource* base, DataSource* source
media_source_set_event (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_SOURCE, MediaSource), self);
#line 545 "/home/jens/Source/shotwell/src/Event.vala"
self->priv->relinking = FALSE;
-#line 4156 "Event.c"
+#line 4161 "Event.c"
}
static void event_real_establish_link_many (ContainerSource* base, GeeCollection* sources) {
Event * self;
GeeArrayList* photos = NULL;
- GeeArrayList* _tmp0_ = NULL;
+ GeeArrayList* _tmp0_;
GeeArrayList* videos = NULL;
- GeeArrayList* _tmp1_ = NULL;
- GeeCollection* _tmp2_ = NULL;
+ GeeArrayList* _tmp1_;
+ GeeCollection* _tmp2_;
GError * _inner_error_ = NULL;
#line 548 "/home/jens/Source/shotwell/src/Event.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event);
@@ -4182,11 +4187,11 @@ static void event_real_establish_link_many (ContainerSource* base, GeeCollection
_tmp2_ = sources;
#line 553 "/home/jens/Source/shotwell/src/Event.vala"
media_source_collection_filter_media (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (photos, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (videos, GEE_TYPE_COLLECTION, GeeCollection));
-#line 4186 "Event.c"
+#line 4191 "Event.c"
{
- LibraryPhotoSourceCollection* _tmp3_ = NULL;
- TransactionController* _tmp4_ = NULL;
- TransactionController* _tmp5_ = NULL;
+ LibraryPhotoSourceCollection* _tmp3_;
+ TransactionController* _tmp4_;
+ TransactionController* _tmp5_;
#line 556 "/home/jens/Source/shotwell/src/Event.vala"
_tmp3_ = library_photo_global;
#line 556 "/home/jens/Source/shotwell/src/Event.vala"
@@ -4197,18 +4202,18 @@ static void event_real_establish_link_many (ContainerSource* base, GeeCollection
media_source_set_many_to_event (G_TYPE_CHECK_INSTANCE_CAST (photos, GEE_TYPE_COLLECTION, GeeCollection), self, _tmp5_, &_inner_error_);
#line 556 "/home/jens/Source/shotwell/src/Event.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4201 "Event.c"
- goto __catch438_g_error;
+#line 4206 "Event.c"
+ goto __catch439_g_error;
}
}
- goto __finally438;
- __catch438_g_error:
+ goto __finally439;
+ __catch439_g_error:
{
GError* err = NULL;
- GError* _tmp6_ = NULL;
- const gchar* _tmp7_ = NULL;
- gchar* _tmp8_ = NULL;
- gchar* _tmp9_ = NULL;
+ GError* _tmp6_;
+ const gchar* _tmp7_;
+ gchar* _tmp8_;
+ gchar* _tmp9_;
#line 555 "/home/jens/Source/shotwell/src/Event.vala"
err = _inner_error_;
#line 555 "/home/jens/Source/shotwell/src/Event.vala"
@@ -4227,9 +4232,9 @@ static void event_real_establish_link_many (ContainerSource* base, GeeCollection
_g_free0 (_tmp9_);
#line 555 "/home/jens/Source/shotwell/src/Event.vala"
_g_error_free0 (err);
-#line 4231 "Event.c"
+#line 4236 "Event.c"
}
- __finally438:
+ __finally439:
#line 555 "/home/jens/Source/shotwell/src/Event.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 555 "/home/jens/Source/shotwell/src/Event.vala"
@@ -4242,12 +4247,12 @@ static void event_real_establish_link_many (ContainerSource* base, GeeCollection
g_clear_error (&_inner_error_);
#line 555 "/home/jens/Source/shotwell/src/Event.vala"
return;
-#line 4246 "Event.c"
+#line 4251 "Event.c"
}
{
- VideoSourceCollection* _tmp10_ = NULL;
- TransactionController* _tmp11_ = NULL;
- TransactionController* _tmp12_ = NULL;
+ VideoSourceCollection* _tmp10_;
+ TransactionController* _tmp11_;
+ TransactionController* _tmp12_;
#line 562 "/home/jens/Source/shotwell/src/Event.vala"
_tmp10_ = video_global;
#line 562 "/home/jens/Source/shotwell/src/Event.vala"
@@ -4258,18 +4263,18 @@ static void event_real_establish_link_many (ContainerSource* base, GeeCollection
media_source_set_many_to_event (G_TYPE_CHECK_INSTANCE_CAST (videos, GEE_TYPE_COLLECTION, GeeCollection), self, _tmp12_, &_inner_error_);
#line 562 "/home/jens/Source/shotwell/src/Event.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4262 "Event.c"
- goto __catch439_g_error;
+#line 4267 "Event.c"
+ goto __catch440_g_error;
}
}
- goto __finally439;
- __catch439_g_error:
+ goto __finally440;
+ __catch440_g_error:
{
GError* err = NULL;
- GError* _tmp13_ = NULL;
- const gchar* _tmp14_ = NULL;
- gchar* _tmp15_ = NULL;
- gchar* _tmp16_ = NULL;
+ GError* _tmp13_;
+ const gchar* _tmp14_;
+ gchar* _tmp15_;
+ gchar* _tmp16_;
#line 561 "/home/jens/Source/shotwell/src/Event.vala"
err = _inner_error_;
#line 561 "/home/jens/Source/shotwell/src/Event.vala"
@@ -4288,9 +4293,9 @@ static void event_real_establish_link_many (ContainerSource* base, GeeCollection
_g_free0 (_tmp16_);
#line 561 "/home/jens/Source/shotwell/src/Event.vala"
_g_error_free0 (err);
-#line 4292 "Event.c"
+#line 4297 "Event.c"
}
- __finally439:
+ __finally440:
#line 561 "/home/jens/Source/shotwell/src/Event.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 561 "/home/jens/Source/shotwell/src/Event.vala"
@@ -4303,7 +4308,7 @@ static void event_real_establish_link_many (ContainerSource* base, GeeCollection
g_clear_error (&_inner_error_);
#line 561 "/home/jens/Source/shotwell/src/Event.vala"
return;
-#line 4307 "Event.c"
+#line 4312 "Event.c"
}
#line 567 "/home/jens/Source/shotwell/src/Event.vala"
self->priv->relinking = FALSE;
@@ -4311,433 +4316,433 @@ static void event_real_establish_link_many (ContainerSource* base, GeeCollection
_g_object_unref0 (videos);
#line 548 "/home/jens/Source/shotwell/src/Event.vala"
_g_object_unref0 (photos);
-#line 4315 "Event.c"
+#line 4320 "Event.c"
}
static gchar* _vala_g_strjoinv (const gchar* separator, gchar** str_array, int str_array_length1) {
gchar* result = NULL;
- const gchar* _tmp0_ = NULL;
+ const gchar* _tmp0_;
gboolean _tmp1_ = FALSE;
gboolean _tmp2_ = FALSE;
- gchar** _tmp3_ = NULL;
- gint _tmp3__length1 = 0;
-#line 1054 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+ gchar** _tmp3_;
+ gint _tmp3__length1;
+#line 1078 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp0_ = separator;
-#line 1054 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1078 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
if (_tmp0_ == NULL) {
-#line 1055 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1079 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
separator = "";
-#line 4332 "Event.c"
+#line 4337 "Event.c"
}
-#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1081 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp3_ = str_array;
-#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1081 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp3__length1 = str_array_length1;
-#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1081 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
if (_tmp3_ != NULL) {
-#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1081 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp2_ = TRUE;
-#line 4342 "Event.c"
+#line 4347 "Event.c"
} else {
- gchar** _tmp4_ = NULL;
- gint _tmp4__length1 = 0;
-#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+ gchar** _tmp4_;
+ gint _tmp4__length1;
+#line 1081 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp4_ = str_array;
-#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1081 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp4__length1 = str_array_length1;
-#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1081 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp2_ = _tmp4__length1 > 0;
-#line 4352 "Event.c"
+#line 4357 "Event.c"
}
-#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1081 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
if (_tmp2_) {
-#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1081 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp1_ = TRUE;
-#line 4358 "Event.c"
+#line 4363 "Event.c"
} else {
gboolean _tmp5_ = FALSE;
- gchar** _tmp6_ = NULL;
- gint _tmp6__length1 = 0;
-#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+ gchar** _tmp6_;
+ gint _tmp6__length1;
+#line 1081 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp6_ = str_array;
-#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1081 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp6__length1 = str_array_length1;
-#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1081 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
if (_tmp6__length1 == -1) {
-#line 4369 "Event.c"
- gchar** _tmp7_ = NULL;
- gint _tmp7__length1 = 0;
- const gchar* _tmp8_ = NULL;
-#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 4374 "Event.c"
+ gchar** _tmp7_;
+ gint _tmp7__length1;
+ const gchar* _tmp8_;
+#line 1081 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp7_ = str_array;
-#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1081 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp7__length1 = str_array_length1;
-#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1081 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp8_ = _tmp7_[0];
-#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1081 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp5_ = _tmp8_ != NULL;
-#line 4381 "Event.c"
+#line 4386 "Event.c"
} else {
-#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1081 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp5_ = FALSE;
-#line 4385 "Event.c"
+#line 4390 "Event.c"
}
-#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1081 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp1_ = _tmp5_;
-#line 4389 "Event.c"
+#line 4394 "Event.c"
}
-#line 1057 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1081 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
if (_tmp1_) {
-#line 4393 "Event.c"
+#line 4398 "Event.c"
gint i = 0;
gsize len = 0UL;
- gint _tmp31_ = 0;
- gint _tmp33_ = 0;
- gint _tmp34_ = 0;
- gsize _tmp35_ = 0UL;
- const gchar* _tmp36_ = NULL;
- gint _tmp37_ = 0;
- gint _tmp38_ = 0;
- gint _tmp39_ = 0;
+ gint _tmp31_;
+ gint _tmp33_;
+ gint _tmp34_;
+ gsize _tmp35_;
+ const gchar* _tmp36_;
+ gint _tmp37_;
+ gint _tmp38_;
+ gint _tmp39_;
const gchar* res = NULL;
- gsize _tmp40_ = 0UL;
- void* _tmp41_ = NULL;
+ gsize _tmp40_;
+ void* _tmp41_;
void* ptr = NULL;
- const gchar* _tmp42_ = NULL;
- gchar** _tmp43_ = NULL;
- gint _tmp43__length1 = 0;
- const gchar* _tmp44_ = NULL;
- void* _tmp45_ = NULL;
- const gchar* _tmp62_ = NULL;
-#line 1059 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+ const gchar* _tmp42_;
+ gchar** _tmp43_;
+ gint _tmp43__length1;
+ const gchar* _tmp44_;
+ void* _tmp45_;
+ const gchar* _tmp62_;
+#line 1083 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
len = (gsize) 1;
-#line 4416 "Event.c"
+#line 4421 "Event.c"
{
gboolean _tmp9_ = FALSE;
-#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
i = 0;
-#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp9_ = TRUE;
-#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
while (TRUE) {
-#line 4425 "Event.c"
+#line 4430 "Event.c"
gboolean _tmp11_ = FALSE;
gboolean _tmp12_ = FALSE;
- gchar** _tmp13_ = NULL;
- gint _tmp13__length1 = 0;
+ gchar** _tmp13_;
+ gint _tmp13__length1;
gint _tmp21_ = 0;
- gchar** _tmp22_ = NULL;
- gint _tmp22__length1 = 0;
- gint _tmp23_ = 0;
- const gchar* _tmp24_ = NULL;
- gsize _tmp30_ = 0UL;
-#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+ gchar** _tmp22_;
+ gint _tmp22__length1;
+ gint _tmp23_;
+ const gchar* _tmp24_;
+ gsize _tmp30_;
+#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
if (!_tmp9_) {
-#line 4438 "Event.c"
- gint _tmp10_ = 0;
-#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 4443 "Event.c"
+ gint _tmp10_;
+#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp10_ = i;
-#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
i = _tmp10_ + 1;
-#line 4444 "Event.c"
+#line 4449 "Event.c"
}
-#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp9_ = FALSE;
-#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp13_ = str_array;
-#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp13__length1 = str_array_length1;
-#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
if (_tmp13__length1 != -1) {
-#line 4454 "Event.c"
- gint _tmp14_ = 0;
- gchar** _tmp15_ = NULL;
- gint _tmp15__length1 = 0;
-#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 4459 "Event.c"
+ gint _tmp14_;
+ gchar** _tmp15_;
+ gint _tmp15__length1;
+#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp14_ = i;
-#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp15_ = str_array;
-#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp15__length1 = str_array_length1;
-#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp12_ = _tmp14_ < _tmp15__length1;
-#line 4466 "Event.c"
+#line 4471 "Event.c"
} else {
-#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp12_ = FALSE;
-#line 4470 "Event.c"
+#line 4475 "Event.c"
}
-#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
if (_tmp12_) {
-#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp11_ = TRUE;
-#line 4476 "Event.c"
+#line 4481 "Event.c"
} else {
gboolean _tmp16_ = FALSE;
- gchar** _tmp17_ = NULL;
- gint _tmp17__length1 = 0;
-#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+ gchar** _tmp17_;
+ gint _tmp17__length1;
+#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp17_ = str_array;
-#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp17__length1 = str_array_length1;
-#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
if (_tmp17__length1 == -1) {
-#line 4487 "Event.c"
- gchar** _tmp18_ = NULL;
- gint _tmp18__length1 = 0;
- gint _tmp19_ = 0;
- const gchar* _tmp20_ = NULL;
-#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 4492 "Event.c"
+ gchar** _tmp18_;
+ gint _tmp18__length1;
+ gint _tmp19_;
+ const gchar* _tmp20_;
+#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp18_ = str_array;
-#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp18__length1 = str_array_length1;
-#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp19_ = i;
-#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp20_ = _tmp18_[_tmp19_];
-#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp16_ = _tmp20_ != NULL;
-#line 4502 "Event.c"
+#line 4507 "Event.c"
} else {
-#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp16_ = FALSE;
-#line 4506 "Event.c"
+#line 4511 "Event.c"
}
-#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp11_ = _tmp16_;
-#line 4510 "Event.c"
+#line 4515 "Event.c"
}
-#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
if (!_tmp11_) {
-#line 1060 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
break;
-#line 4516 "Event.c"
+#line 4521 "Event.c"
}
-#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1085 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp22_ = str_array;
-#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1085 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp22__length1 = str_array_length1;
-#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1085 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp23_ = i;
-#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1085 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp24_ = _tmp22_[_tmp23_];
-#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1085 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
if (_tmp24_ != NULL) {
-#line 4528 "Event.c"
- gchar** _tmp25_ = NULL;
- gint _tmp25__length1 = 0;
- gint _tmp26_ = 0;
- const gchar* _tmp27_ = NULL;
- gint _tmp28_ = 0;
- gint _tmp29_ = 0;
-#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 4533 "Event.c"
+ gchar** _tmp25_;
+ gint _tmp25__length1;
+ gint _tmp26_;
+ const gchar* _tmp27_;
+ gint _tmp28_;
+ gint _tmp29_;
+#line 1085 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp25_ = str_array;
-#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1085 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp25__length1 = str_array_length1;
-#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1085 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp26_ = i;
-#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1085 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp27_ = _tmp25_[_tmp26_];
-#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1085 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp28_ = strlen ((const gchar*) _tmp27_);
-#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1085 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp29_ = _tmp28_;
-#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1085 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp21_ = _tmp29_;
-#line 4549 "Event.c"
+#line 4554 "Event.c"
} else {
-#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1085 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp21_ = 0;
-#line 4553 "Event.c"
+#line 4558 "Event.c"
}
-#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1085 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp30_ = len;
-#line 1061 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1085 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
len = _tmp30_ + _tmp21_;
-#line 4559 "Event.c"
+#line 4564 "Event.c"
}
}
-#line 1063 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1087 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp31_ = i;
-#line 1063 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1087 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
if (_tmp31_ == 0) {
-#line 4566 "Event.c"
- gchar* _tmp32_ = NULL;
-#line 1064 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 4571 "Event.c"
+ gchar* _tmp32_;
+#line 1088 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp32_ = g_strdup ("");
-#line 1064 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1088 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
result = _tmp32_;
-#line 1064 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1088 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
return result;
-#line 4574 "Event.c"
+#line 4579 "Event.c"
}
-#line 1066 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1090 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp33_ = i;
-#line 1066 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1090 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
str_array_length1 = _tmp33_;
-#line 1066 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1090 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp34_ = str_array_length1;
-#line 1067 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1091 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp35_ = len;
-#line 1067 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1091 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp36_ = separator;
-#line 1067 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1091 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp37_ = strlen ((const gchar*) _tmp36_);
-#line 1067 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1091 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp38_ = _tmp37_;
-#line 1067 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1091 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp39_ = i;
-#line 1067 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1091 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
len = _tmp35_ + (_tmp38_ * (_tmp39_ - 1));
-#line 1069 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1093 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp40_ = len;
-#line 1069 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1093 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp41_ = g_malloc (_tmp40_);
-#line 1069 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1093 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
res = _tmp41_;
-#line 1070 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1094 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp42_ = res;
-#line 1070 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1094 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp43_ = str_array;
-#line 1070 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1094 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp43__length1 = str_array_length1;
-#line 1070 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1094 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp44_ = _tmp43_[0];
-#line 1070 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1094 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp45_ = g_stpcpy ((void*) _tmp42_, (const gchar*) _tmp44_);
-#line 1070 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1094 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
ptr = _tmp45_;
-#line 4612 "Event.c"
+#line 4617 "Event.c"
{
gboolean _tmp46_ = FALSE;
-#line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1095 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
i = 1;
-#line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1095 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp46_ = TRUE;
-#line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1095 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
while (TRUE) {
-#line 4621 "Event.c"
- gint _tmp48_ = 0;
- gchar** _tmp49_ = NULL;
- gint _tmp49__length1 = 0;
- void* _tmp50_ = NULL;
- const gchar* _tmp51_ = NULL;
- void* _tmp52_ = NULL;
+#line 4626 "Event.c"
+ gint _tmp48_;
+ gchar** _tmp49_;
+ gint _tmp49__length1;
+ void* _tmp50_;
+ const gchar* _tmp51_;
+ void* _tmp52_;
const gchar* _tmp53_ = NULL;
- gchar** _tmp54_ = NULL;
- gint _tmp54__length1 = 0;
- gint _tmp55_ = 0;
- const gchar* _tmp56_ = NULL;
- void* _tmp60_ = NULL;
- void* _tmp61_ = NULL;
-#line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+ gchar** _tmp54_;
+ gint _tmp54__length1;
+ gint _tmp55_;
+ const gchar* _tmp56_;
+ void* _tmp60_;
+ void* _tmp61_;
+#line 1095 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
if (!_tmp46_) {
-#line 4637 "Event.c"
- gint _tmp47_ = 0;
-#line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 4642 "Event.c"
+ gint _tmp47_;
+#line 1095 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp47_ = i;
-#line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1095 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
i = _tmp47_ + 1;
-#line 4643 "Event.c"
+#line 4648 "Event.c"
}
-#line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1095 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp46_ = FALSE;
-#line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1095 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp48_ = i;
-#line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1095 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp49_ = str_array;
-#line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1095 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp49__length1 = str_array_length1;
-#line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1095 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
if (!(_tmp48_ < _tmp49__length1)) {
-#line 1071 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1095 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
break;
-#line 4657 "Event.c"
+#line 4662 "Event.c"
}
-#line 1072 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1096 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp50_ = ptr;
-#line 1072 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1096 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp51_ = separator;
-#line 1072 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1096 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp52_ = g_stpcpy (_tmp50_, (const gchar*) _tmp51_);
-#line 1072 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1096 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
ptr = _tmp52_;
-#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1097 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp54_ = str_array;
-#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1097 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp54__length1 = str_array_length1;
-#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1097 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp55_ = i;
-#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1097 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp56_ = _tmp54_[_tmp55_];
-#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1097 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
if (_tmp56_ != NULL) {
-#line 4677 "Event.c"
- gchar** _tmp57_ = NULL;
- gint _tmp57__length1 = 0;
- gint _tmp58_ = 0;
- const gchar* _tmp59_ = NULL;
-#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 4682 "Event.c"
+ gchar** _tmp57_;
+ gint _tmp57__length1;
+ gint _tmp58_;
+ const gchar* _tmp59_;
+#line 1097 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp57_ = str_array;
-#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1097 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp57__length1 = str_array_length1;
-#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1097 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp58_ = i;
-#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1097 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp59_ = _tmp57_[_tmp58_];
-#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1097 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp53_ = (const gchar*) _tmp59_;
-#line 4692 "Event.c"
+#line 4697 "Event.c"
} else {
-#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1097 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp53_ = "";
-#line 4696 "Event.c"
+#line 4701 "Event.c"
}
-#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1097 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp60_ = ptr;
-#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1097 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp61_ = g_stpcpy (_tmp60_, _tmp53_);
-#line 1073 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1097 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
ptr = _tmp61_;
-#line 4704 "Event.c"
+#line 4709 "Event.c"
}
}
-#line 1076 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1100 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp62_ = res;
-#line 1076 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1100 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
res = NULL;
-#line 1076 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1100 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
result = (gchar*) _tmp62_;
-#line 1076 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1100 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
return result;
-#line 4715 "Event.c"
+#line 4720 "Event.c"
} else {
- gchar* _tmp63_ = NULL;
-#line 1078 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+ gchar* _tmp63_;
+#line 1102 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp63_ = g_strdup ("");
-#line 1078 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1102 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
result = _tmp63_;
-#line 1078 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1102 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
return result;
-#line 4724 "Event.c"
+#line 4729 "Event.c"
}
}
static void event_update_indexable_keywords (Event* self) {
gchar** components = NULL;
- gchar** _tmp0_ = NULL;
- gint components_length1 = 0;
- gint _components_size_ = 0;
+ gchar** _tmp0_;
+ gint components_length1;
+ gint _components_size_;
gint i = 0;
gchar* rawname = NULL;
- gchar* _tmp1_ = NULL;
- const gchar* _tmp2_ = NULL;
+ gchar* _tmp1_;
+ const gchar* _tmp2_;
gchar* comment = NULL;
- gchar* _tmp8_ = NULL;
- const gchar* _tmp9_ = NULL;
- gint _tmp15_ = 0;
+ gchar* _tmp8_;
+ const gchar* _tmp9_;
+ gint _tmp15_;
#line 570 "/home/jens/Source/shotwell/src/Event.vala"
g_return_if_fail (IS_EVENT (self));
#line 571 "/home/jens/Source/shotwell/src/Event.vala"
@@ -4758,13 +4763,13 @@ static void event_update_indexable_keywords (Event* self) {
_tmp2_ = rawname;
#line 575 "/home/jens/Source/shotwell/src/Event.vala"
if (_tmp2_ != NULL) {
-#line 4762 "Event.c"
- gchar** _tmp3_ = NULL;
- gint _tmp3__length1 = 0;
- gint _tmp4_ = 0;
- const gchar* _tmp5_ = NULL;
- gchar* _tmp6_ = NULL;
- gchar* _tmp7_ = NULL;
+#line 4767 "Event.c"
+ gchar** _tmp3_;
+ gint _tmp3__length1;
+ gint _tmp4_;
+ const gchar* _tmp5_;
+ gchar* _tmp6_;
+ gchar* _tmp7_;
#line 576 "/home/jens/Source/shotwell/src/Event.vala"
_tmp3_ = components;
#line 576 "/home/jens/Source/shotwell/src/Event.vala"
@@ -4783,7 +4788,7 @@ static void event_update_indexable_keywords (Event* self) {
_tmp3_[_tmp4_] = _tmp6_;
#line 576 "/home/jens/Source/shotwell/src/Event.vala"
_tmp7_ = _tmp3_[_tmp4_];
-#line 4787 "Event.c"
+#line 4792 "Event.c"
}
#line 578 "/home/jens/Source/shotwell/src/Event.vala"
_tmp8_ = event_source_get_comment (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EVENT_SOURCE, EventSource));
@@ -4793,13 +4798,13 @@ static void event_update_indexable_keywords (Event* self) {
_tmp9_ = comment;
#line 579 "/home/jens/Source/shotwell/src/Event.vala"
if (_tmp9_ != NULL) {
-#line 4797 "Event.c"
- gchar** _tmp10_ = NULL;
- gint _tmp10__length1 = 0;
- gint _tmp11_ = 0;
- const gchar* _tmp12_ = NULL;
- gchar* _tmp13_ = NULL;
- gchar* _tmp14_ = NULL;
+#line 4802 "Event.c"
+ gchar** _tmp10_;
+ gint _tmp10__length1;
+ gint _tmp11_;
+ const gchar* _tmp12_;
+ gchar* _tmp13_;
+ gchar* _tmp14_;
#line 580 "/home/jens/Source/shotwell/src/Event.vala"
_tmp10_ = components;
#line 580 "/home/jens/Source/shotwell/src/Event.vala"
@@ -4818,7 +4823,7 @@ static void event_update_indexable_keywords (Event* self) {
_tmp10_[_tmp11_] = _tmp13_;
#line 580 "/home/jens/Source/shotwell/src/Event.vala"
_tmp14_ = _tmp10_[_tmp11_];
-#line 4822 "Event.c"
+#line 4827 "Event.c"
}
#line 582 "/home/jens/Source/shotwell/src/Event.vala"
_tmp15_ = i;
@@ -4828,17 +4833,17 @@ static void event_update_indexable_keywords (Event* self) {
_g_free0 (self->priv->indexable_keywords);
#line 583 "/home/jens/Source/shotwell/src/Event.vala"
self->priv->indexable_keywords = NULL;
-#line 4832 "Event.c"
+#line 4837 "Event.c"
} else {
- gchar** _tmp16_ = NULL;
- gint _tmp16__length1 = 0;
- gint _tmp17_ = 0;
- gchar* _tmp18_ = NULL;
- gchar** _tmp19_ = NULL;
- gint _tmp19__length1 = 0;
- gchar* _tmp20_ = NULL;
- gchar* _tmp21_ = NULL;
- gchar* _tmp22_ = NULL;
+ gchar** _tmp16_;
+ gint _tmp16__length1;
+ gint _tmp17_;
+ gchar* _tmp18_;
+ gchar** _tmp19_;
+ gint _tmp19__length1;
+ gchar* _tmp20_;
+ gchar* _tmp21_;
+ gchar* _tmp22_;
#line 585 "/home/jens/Source/shotwell/src/Event.vala"
_tmp16_ = components;
#line 585 "/home/jens/Source/shotwell/src/Event.vala"
@@ -4867,7 +4872,7 @@ static void event_update_indexable_keywords (Event* self) {
self->priv->indexable_keywords = _tmp22_;
#line 586 "/home/jens/Source/shotwell/src/Event.vala"
_g_free0 (_tmp21_);
-#line 4871 "Event.c"
+#line 4876 "Event.c"
}
#line 570 "/home/jens/Source/shotwell/src/Event.vala"
_g_free0 (comment);
@@ -4875,14 +4880,14 @@ static void event_update_indexable_keywords (Event* self) {
_g_free0 (rawname);
#line 570 "/home/jens/Source/shotwell/src/Event.vala"
components = (_vala_array_free (components, components_length1, (GDestroyNotify) g_free), NULL);
-#line 4879 "Event.c"
+#line 4884 "Event.c"
}
static const gchar* event_real_get_indexable_keywords (Indexable* base) {
Event * self;
const gchar* result = NULL;
- const gchar* _tmp0_ = NULL;
+ const gchar* _tmp0_;
#line 590 "/home/jens/Source/shotwell/src/Event.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event);
#line 591 "/home/jens/Source/shotwell/src/Event.vala"
@@ -4891,55 +4896,55 @@ static const gchar* event_real_get_indexable_keywords (Indexable* base) {
result = _tmp0_;
#line 591 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 4895 "Event.c"
+#line 4900 "Event.c"
}
static void g_time_local (time_t time, struct tm* result) {
struct tm _result_ = {0};
struct tm _tmp0_ = {0};
-#line 2750 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 2846 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
localtime_r (&time, &_tmp0_);
-#line 2750 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 2846 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_result_ = _tmp0_;
-#line 2751 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 2847 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
*result = _result_;
-#line 2751 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 2847 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
return;
-#line 4910 "Event.c"
+#line 4915 "Event.c"
}
gboolean event_is_in_starting_day (Event* self, time_t time) {
gboolean result = FALSE;
- ViewCollection* _tmp0_ = NULL;
- gint _tmp1_ = 0;
+ ViewCollection* _tmp0_;
+ gint _tmp1_;
MediaSource* earliest_media = NULL;
- ViewCollection* _tmp2_ = NULL;
- DataObject* _tmp3_ = NULL;
- DataView* _tmp4_ = NULL;
- DataSource* _tmp5_ = NULL;
- MediaSource* _tmp6_ = NULL;
+ ViewCollection* _tmp2_;
+ DataObject* _tmp3_;
+ DataView* _tmp4_;
+ DataSource* _tmp5_;
+ MediaSource* _tmp6_;
struct tm earliest_tm = {0};
- MediaSource* _tmp7_ = NULL;
- time_t _tmp8_ = 0;
+ MediaSource* _tmp7_;
+ time_t _tmp8_;
struct tm _tmp9_ = {0};
struct tm start_boundary_tm = {0};
- struct tm _tmp10_ = {0};
- gint _tmp11_ = 0;
- struct tm _tmp12_ = {0};
- gint _tmp13_ = 0;
- struct tm _tmp14_ = {0};
- gint _tmp15_ = 0;
+ struct tm _tmp10_;
+ gint _tmp11_;
+ struct tm _tmp12_;
+ gint _tmp13_;
+ struct tm _tmp14_;
+ gint _tmp15_;
time_t start_boundary = 0;
- time_t _tmp16_ = 0;
- struct tm _tmp17_ = {0};
- gint _tmp18_ = 0;
+ time_t _tmp16_;
+ struct tm _tmp17_;
+ gint _tmp18_;
time_t end_boundary = 0;
- time_t _tmp20_ = 0;
+ time_t _tmp20_;
gboolean _tmp21_ = FALSE;
- time_t _tmp22_ = 0;
- time_t _tmp23_ = 0;
+ time_t _tmp22_;
+ time_t _tmp23_;
#line 594 "/home/jens/Source/shotwell/src/Event.vala"
g_return_val_if_fail (IS_EVENT (self), FALSE);
#line 599 "/home/jens/Source/shotwell/src/Event.vala"
@@ -4952,7 +4957,7 @@ gboolean event_is_in_starting_day (Event* self, time_t time) {
result = FALSE;
#line 600 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 4956 "Event.c"
+#line 4961 "Event.c"
}
#line 603 "/home/jens/Source/shotwell/src/Event.vala"
_tmp2_ = self->priv->view;
@@ -5014,15 +5019,15 @@ gboolean event_is_in_starting_day (Event* self, time_t time) {
_tmp18_ = _tmp17_.tm_hour;
#line 620 "/home/jens/Source/shotwell/src/Event.vala"
if (_tmp18_ < EVENT_EVENT_BOUNDARY_HOUR) {
-#line 5018 "Event.c"
- time_t _tmp19_ = 0;
+#line 5023 "Event.c"
+ time_t _tmp19_;
#line 621 "/home/jens/Source/shotwell/src/Event.vala"
g_debug ("Event.vala:621: Hour before boundary, shifting back one day");
#line 622 "/home/jens/Source/shotwell/src/Event.vala"
_tmp19_ = start_boundary;
#line 622 "/home/jens/Source/shotwell/src/Event.vala"
start_boundary = _tmp19_ - EVENT_TIME_T_DAY;
-#line 5026 "Event.c"
+#line 5031 "Event.c"
}
#line 625 "/home/jens/Source/shotwell/src/Event.vala"
_tmp20_ = start_boundary;
@@ -5034,20 +5039,20 @@ gboolean event_is_in_starting_day (Event* self, time_t time) {
_tmp23_ = start_boundary;
#line 627 "/home/jens/Source/shotwell/src/Event.vala"
if (_tmp22_ >= _tmp23_) {
-#line 5038 "Event.c"
- time_t _tmp24_ = 0;
- time_t _tmp25_ = 0;
+#line 5043 "Event.c"
+ time_t _tmp24_;
+ time_t _tmp25_;
#line 627 "/home/jens/Source/shotwell/src/Event.vala"
_tmp24_ = time;
#line 627 "/home/jens/Source/shotwell/src/Event.vala"
_tmp25_ = end_boundary;
#line 627 "/home/jens/Source/shotwell/src/Event.vala"
_tmp21_ = _tmp24_ <= _tmp25_;
-#line 5047 "Event.c"
+#line 5052 "Event.c"
} else {
#line 627 "/home/jens/Source/shotwell/src/Event.vala"
_tmp21_ = FALSE;
-#line 5051 "Event.c"
+#line 5056 "Event.c"
}
#line 627 "/home/jens/Source/shotwell/src/Event.vala"
result = _tmp21_;
@@ -5055,7 +5060,7 @@ gboolean event_is_in_starting_day (Event* self, time_t time) {
_g_object_unref0 (earliest_media);
#line 627 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 5059 "Event.c"
+#line 5064 "Event.c"
}
@@ -5063,13 +5068,13 @@ static Event* event_generate_event (MediaSource* media, ViewCollection* events_s
gboolean _vala_new_event = FALSE;
Event* result = NULL;
time_t exposure_time = 0;
- MediaSource* _tmp0_ = NULL;
- time_t _tmp1_ = 0;
+ MediaSource* _tmp0_;
+ time_t _tmp1_;
gboolean _tmp2_ = FALSE;
- time_t _tmp3_ = 0;
+ time_t _tmp3_;
gint count = 0;
- ViewCollection* _tmp8_ = NULL;
- gint _tmp9_ = 0;
+ ViewCollection* _tmp8_;
+ gint _tmp9_;
GError * _inner_error_ = NULL;
#line 633 "/home/jens/Source/shotwell/src/Event.vala"
g_return_val_if_fail (IS_MEDIA_SOURCE (media), NULL);
@@ -5085,24 +5090,24 @@ static Event* event_generate_event (MediaSource* media, ViewCollection* events_s
_tmp3_ = exposure_time;
#line 637 "/home/jens/Source/shotwell/src/Event.vala"
if (_tmp3_ == ((time_t) 0)) {
-#line 5089 "Event.c"
- const gchar* _tmp4_ = NULL;
+#line 5094 "Event.c"
+ const gchar* _tmp4_;
#line 637 "/home/jens/Source/shotwell/src/Event.vala"
_tmp4_ = event_name;
#line 637 "/home/jens/Source/shotwell/src/Event.vala"
_tmp2_ = _tmp4_ == NULL;
-#line 5095 "Event.c"
+#line 5100 "Event.c"
} else {
#line 637 "/home/jens/Source/shotwell/src/Event.vala"
_tmp2_ = FALSE;
-#line 5099 "Event.c"
+#line 5104 "Event.c"
}
#line 637 "/home/jens/Source/shotwell/src/Event.vala"
if (_tmp2_) {
-#line 5103 "Event.c"
- MediaSource* _tmp5_ = NULL;
- gchar* _tmp6_ = NULL;
- gchar* _tmp7_ = NULL;
+#line 5108 "Event.c"
+ MediaSource* _tmp5_;
+ gchar* _tmp6_;
+ gchar* _tmp7_;
#line 638 "/home/jens/Source/shotwell/src/Event.vala"
_tmp5_ = media;
#line 638 "/home/jens/Source/shotwell/src/Event.vala"
@@ -5122,11 +5127,11 @@ static Event* event_generate_event (MediaSource* media, ViewCollection* events_s
if (new_event) {
#line 641 "/home/jens/Source/shotwell/src/Event.vala"
*new_event = _vala_new_event;
-#line 5125 "Event.c"
+#line 5130 "Event.c"
}
#line 641 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 5129 "Event.c"
+#line 5134 "Event.c"
}
#line 644 "/home/jens/Source/shotwell/src/Event.vala"
_tmp8_ = events_so_far;
@@ -5134,41 +5139,41 @@ static Event* event_generate_event (MediaSource* media, ViewCollection* events_s
_tmp9_ = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_COLLECTION, DataCollection));
#line 644 "/home/jens/Source/shotwell/src/Event.vala"
count = _tmp9_;
-#line 5137 "Event.c"
+#line 5142 "Event.c"
{
gint ctr = 0;
#line 645 "/home/jens/Source/shotwell/src/Event.vala"
ctr = 0;
-#line 5142 "Event.c"
+#line 5147 "Event.c"
{
gboolean _tmp10_ = FALSE;
#line 645 "/home/jens/Source/shotwell/src/Event.vala"
_tmp10_ = TRUE;
#line 645 "/home/jens/Source/shotwell/src/Event.vala"
while (TRUE) {
-#line 5149 "Event.c"
- gint _tmp12_ = 0;
- gint _tmp13_ = 0;
+#line 5154 "Event.c"
+ gint _tmp12_;
+ gint _tmp13_;
Event* event = NULL;
- ViewCollection* _tmp14_ = NULL;
- gint _tmp15_ = 0;
- DataObject* _tmp16_ = NULL;
- EventView* _tmp17_ = NULL;
- DataSource* _tmp18_ = NULL;
- Event* _tmp19_ = NULL;
+ ViewCollection* _tmp14_;
+ gint _tmp15_;
+ DataObject* _tmp16_;
+ EventView* _tmp17_;
+ DataSource* _tmp18_;
+ Event* _tmp19_;
gboolean _tmp20_ = FALSE;
gboolean _tmp21_ = FALSE;
gboolean _tmp22_ = FALSE;
- const gchar* _tmp23_ = NULL;
+ const gchar* _tmp23_;
#line 645 "/home/jens/Source/shotwell/src/Event.vala"
if (!_tmp10_) {
-#line 5165 "Event.c"
- gint _tmp11_ = 0;
+#line 5170 "Event.c"
+ gint _tmp11_;
#line 645 "/home/jens/Source/shotwell/src/Event.vala"
_tmp11_ = ctr;
#line 645 "/home/jens/Source/shotwell/src/Event.vala"
ctr = _tmp11_ + 1;
-#line 5171 "Event.c"
+#line 5176 "Event.c"
}
#line 645 "/home/jens/Source/shotwell/src/Event.vala"
_tmp10_ = FALSE;
@@ -5180,7 +5185,7 @@ static Event* event_generate_event (MediaSource* media, ViewCollection* events_s
if (!(_tmp12_ < _tmp13_)) {
#line 645 "/home/jens/Source/shotwell/src/Event.vala"
break;
-#line 5183 "Event.c"
+#line 5188 "Event.c"
}
#line 646 "/home/jens/Source/shotwell/src/Event.vala"
_tmp14_ = events_so_far;
@@ -5202,28 +5207,28 @@ static Event* event_generate_event (MediaSource* media, ViewCollection* events_s
_tmp23_ = event_name;
#line 648 "/home/jens/Source/shotwell/src/Event.vala"
if (_tmp23_ != NULL) {
-#line 5205 "Event.c"
- Event* _tmp24_ = NULL;
- gboolean _tmp25_ = FALSE;
+#line 5210 "Event.c"
+ Event* _tmp24_;
+ gboolean _tmp25_;
#line 648 "/home/jens/Source/shotwell/src/Event.vala"
_tmp24_ = event;
#line 648 "/home/jens/Source/shotwell/src/Event.vala"
_tmp25_ = event_has_name (_tmp24_);
#line 648 "/home/jens/Source/shotwell/src/Event.vala"
_tmp22_ = _tmp25_;
-#line 5214 "Event.c"
+#line 5219 "Event.c"
} else {
#line 648 "/home/jens/Source/shotwell/src/Event.vala"
_tmp22_ = FALSE;
-#line 5218 "Event.c"
+#line 5223 "Event.c"
}
#line 648 "/home/jens/Source/shotwell/src/Event.vala"
if (_tmp22_) {
-#line 5222 "Event.c"
- const gchar* _tmp26_ = NULL;
- Event* _tmp27_ = NULL;
- gchar* _tmp28_ = NULL;
- gchar* _tmp29_ = NULL;
+#line 5227 "Event.c"
+ const gchar* _tmp26_;
+ Event* _tmp27_;
+ gchar* _tmp28_;
+ gchar* _tmp29_;
#line 648 "/home/jens/Source/shotwell/src/Event.vala"
_tmp26_ = event_name;
#line 648 "/home/jens/Source/shotwell/src/Event.vala"
@@ -5236,21 +5241,21 @@ static Event* event_generate_event (MediaSource* media, ViewCollection* events_s
_tmp21_ = g_strcmp0 (_tmp26_, _tmp29_) == 0;
#line 648 "/home/jens/Source/shotwell/src/Event.vala"
_g_free0 (_tmp29_);
-#line 5239 "Event.c"
+#line 5244 "Event.c"
} else {
#line 648 "/home/jens/Source/shotwell/src/Event.vala"
_tmp21_ = FALSE;
-#line 5243 "Event.c"
+#line 5248 "Event.c"
}
#line 648 "/home/jens/Source/shotwell/src/Event.vala"
if (_tmp21_) {
#line 648 "/home/jens/Source/shotwell/src/Event.vala"
_tmp20_ = TRUE;
-#line 5249 "Event.c"
+#line 5254 "Event.c"
} else {
- Event* _tmp30_ = NULL;
- time_t _tmp31_ = 0;
- gboolean _tmp32_ = FALSE;
+ Event* _tmp30_;
+ time_t _tmp31_;
+ gboolean _tmp32_;
#line 649 "/home/jens/Source/shotwell/src/Event.vala"
_tmp30_ = event;
#line 649 "/home/jens/Source/shotwell/src/Event.vala"
@@ -5259,7 +5264,7 @@ static Event* event_generate_event (MediaSource* media, ViewCollection* events_s
_tmp32_ = event_is_in_starting_day (_tmp30_, _tmp31_);
#line 649 "/home/jens/Source/shotwell/src/Event.vala"
_tmp20_ = _tmp32_;
-#line 5262 "Event.c"
+#line 5267 "Event.c"
}
#line 648 "/home/jens/Source/shotwell/src/Event.vala"
if (_tmp20_) {
@@ -5271,34 +5276,34 @@ static Event* event_generate_event (MediaSource* media, ViewCollection* events_s
if (new_event) {
#line 652 "/home/jens/Source/shotwell/src/Event.vala"
*new_event = _vala_new_event;
-#line 5274 "Event.c"
+#line 5279 "Event.c"
}
#line 652 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 5278 "Event.c"
+#line 5283 "Event.c"
}
#line 645 "/home/jens/Source/shotwell/src/Event.vala"
_g_object_unref0 (event);
-#line 5282 "Event.c"
+#line 5287 "Event.c"
}
}
}
{
EventRow* _tmp33_ = NULL;
- EventTable* _tmp34_ = NULL;
- EventTable* _tmp35_ = NULL;
- MediaSource* _tmp36_ = NULL;
- gchar* _tmp37_ = NULL;
- gchar* _tmp38_ = NULL;
- EventRow* _tmp39_ = NULL;
- EventRow* _tmp40_ = NULL;
+ EventTable* _tmp34_;
+ EventTable* _tmp35_;
+ MediaSource* _tmp36_;
+ gchar* _tmp37_;
+ gchar* _tmp38_;
+ EventRow* _tmp39_;
+ EventRow* _tmp40_;
Event* event = NULL;
- Event* _tmp41_ = NULL;
- const gchar* _tmp42_ = NULL;
- ViewCollection* _tmp45_ = NULL;
- Event* _tmp46_ = NULL;
- EventView* _tmp47_ = NULL;
- EventView* _tmp48_ = NULL;
+ Event* _tmp41_;
+ const gchar* _tmp42_;
+ ViewCollection* _tmp45_;
+ Event* _tmp46_;
+ EventView* _tmp47_;
+ EventView* _tmp48_;
#line 658 "/home/jens/Source/shotwell/src/Event.vala"
_tmp34_ = event_table_get_instance ();
#line 658 "/home/jens/Source/shotwell/src/Event.vala"
@@ -5323,8 +5328,8 @@ static Event* event_generate_event (MediaSource* media, ViewCollection* events_s
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 658 "/home/jens/Source/shotwell/src/Event.vala"
if (_inner_error_->domain == DATABASE_ERROR) {
-#line 5326 "Event.c"
- goto __catch440_database_error;
+#line 5331 "Event.c"
+ goto __catch441_database_error;
}
#line 658 "/home/jens/Source/shotwell/src/Event.vala"
g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
@@ -5332,7 +5337,7 @@ static Event* event_generate_event (MediaSource* media, ViewCollection* events_s
g_clear_error (&_inner_error_);
#line 658 "/home/jens/Source/shotwell/src/Event.vala"
return NULL;
-#line 5335 "Event.c"
+#line 5340 "Event.c"
}
#line 658 "/home/jens/Source/shotwell/src/Event.vala"
_tmp41_ = event_new (_tmp33_, DATA_OBJECT_INVALID_OBJECT_ID);
@@ -5342,16 +5347,16 @@ static Event* event_generate_event (MediaSource* media, ViewCollection* events_s
_tmp42_ = event_name;
#line 659 "/home/jens/Source/shotwell/src/Event.vala"
if (_tmp42_ != NULL) {
-#line 5345 "Event.c"
- Event* _tmp43_ = NULL;
- const gchar* _tmp44_ = NULL;
+#line 5350 "Event.c"
+ Event* _tmp43_;
+ const gchar* _tmp44_;
#line 660 "/home/jens/Source/shotwell/src/Event.vala"
_tmp43_ = event;
#line 660 "/home/jens/Source/shotwell/src/Event.vala"
_tmp44_ = event_name;
#line 660 "/home/jens/Source/shotwell/src/Event.vala"
event_rename (_tmp43_, _tmp44_);
-#line 5354 "Event.c"
+#line 5359 "Event.c"
}
#line 662 "/home/jens/Source/shotwell/src/Event.vala"
_tmp45_ = events_so_far;
@@ -5375,17 +5380,17 @@ static Event* event_generate_event (MediaSource* media, ViewCollection* events_s
if (new_event) {
#line 665 "/home/jens/Source/shotwell/src/Event.vala"
*new_event = _vala_new_event;
-#line 5378 "Event.c"
+#line 5383 "Event.c"
}
#line 665 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 5382 "Event.c"
+#line 5387 "Event.c"
}
- goto __finally440;
- __catch440_database_error:
+ goto __finally441;
+ __catch441_database_error:
{
GError* err = NULL;
- GError* _tmp49_ = NULL;
+ GError* _tmp49_;
#line 657 "/home/jens/Source/shotwell/src/Event.vala"
err = _inner_error_;
#line 657 "/home/jens/Source/shotwell/src/Event.vala"
@@ -5396,9 +5401,9 @@ static Event* event_generate_event (MediaSource* media, ViewCollection* events_s
app_window_database_error (_tmp49_);
#line 657 "/home/jens/Source/shotwell/src/Event.vala"
_g_error_free0 (err);
-#line 5399 "Event.c"
+#line 5404 "Event.c"
}
- __finally440:
+ __finally441:
#line 657 "/home/jens/Source/shotwell/src/Event.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 657 "/home/jens/Source/shotwell/src/Event.vala"
@@ -5407,7 +5412,7 @@ static Event* event_generate_event (MediaSource* media, ViewCollection* events_s
g_clear_error (&_inner_error_);
#line 657 "/home/jens/Source/shotwell/src/Event.vala"
return NULL;
-#line 5410 "Event.c"
+#line 5415 "Event.c"
}
#line 670 "/home/jens/Source/shotwell/src/Event.vala"
_vala_new_event = FALSE;
@@ -5417,30 +5422,30 @@ static Event* event_generate_event (MediaSource* media, ViewCollection* events_s
if (new_event) {
#line 672 "/home/jens/Source/shotwell/src/Event.vala"
*new_event = _vala_new_event;
-#line 5420 "Event.c"
+#line 5425 "Event.c"
}
#line 672 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 5424 "Event.c"
+#line 5429 "Event.c"
}
void event_generate_single_event (MediaSource* media, ViewCollection* events_so_far, const gchar* event_name) {
- MediaSource* _tmp0_ = NULL;
- Event* _tmp1_ = NULL;
- Event* _tmp2_ = NULL;
- gboolean _tmp3_ = FALSE;
+ MediaSource* _tmp0_;
+ Event* _tmp1_;
+ Event* _tmp2_;
+ gboolean _tmp3_;
gboolean new_event = FALSE;
Event* event = NULL;
- MediaSource* _tmp4_ = NULL;
- ViewCollection* _tmp5_ = NULL;
- const gchar* _tmp6_ = NULL;
+ MediaSource* _tmp4_;
+ ViewCollection* _tmp5_;
+ const gchar* _tmp6_;
gboolean _tmp7_ = FALSE;
- Event* _tmp8_ = NULL;
- Event* _tmp9_ = NULL;
- MediaSource* _tmp10_ = NULL;
- Event* _tmp11_ = NULL;
- gboolean _tmp12_ = FALSE;
+ Event* _tmp8_;
+ Event* _tmp9_;
+ MediaSource* _tmp10_;
+ Event* _tmp11_;
+ gboolean _tmp12_;
#line 675 "/home/jens/Source/shotwell/src/Event.vala"
g_return_if_fail (IS_MEDIA_SOURCE (media));
#line 675 "/home/jens/Source/shotwell/src/Event.vala"
@@ -5459,7 +5464,7 @@ void event_generate_single_event (MediaSource* media, ViewCollection* events_so_
if (_tmp3_) {
#line 679 "/home/jens/Source/shotwell/src/Event.vala"
return;
-#line 5462 "Event.c"
+#line 5467 "Event.c"
}
#line 682 "/home/jens/Source/shotwell/src/Event.vala"
_tmp4_ = media;
@@ -5481,7 +5486,7 @@ void event_generate_single_event (MediaSource* media, ViewCollection* events_so_
_g_object_unref0 (event);
#line 684 "/home/jens/Source/shotwell/src/Event.vala"
return;
-#line 5484 "Event.c"
+#line 5489 "Event.c"
}
#line 686 "/home/jens/Source/shotwell/src/Event.vala"
_tmp10_ = media;
@@ -5493,29 +5498,29 @@ void event_generate_single_event (MediaSource* media, ViewCollection* events_so_
_tmp12_ = new_event;
#line 688 "/home/jens/Source/shotwell/src/Event.vala"
if (_tmp12_) {
-#line 5496 "Event.c"
- EventSourceCollection* _tmp13_ = NULL;
- Event* _tmp14_ = NULL;
+#line 5501 "Event.c"
+ EventSourceCollection* _tmp13_;
+ Event* _tmp14_;
#line 689 "/home/jens/Source/shotwell/src/Event.vala"
_tmp13_ = event_global;
#line 689 "/home/jens/Source/shotwell/src/Event.vala"
_tmp14_ = event;
#line 689 "/home/jens/Source/shotwell/src/Event.vala"
data_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_DATA_OBJECT, DataObject));
-#line 5505 "Event.c"
+#line 5510 "Event.c"
}
#line 675 "/home/jens/Source/shotwell/src/Event.vala"
_g_object_unref0 (event);
-#line 5509 "Event.c"
+#line 5514 "Event.c"
}
void event_generate_many_events (GeeCollection* sources, ViewCollection* events_so_far) {
GeeCollection* to_add = NULL;
- GeeArrayList* _tmp0_ = NULL;
- GeeCollection* _tmp21_ = NULL;
- gint _tmp22_ = 0;
- gint _tmp23_ = 0;
+ GeeArrayList* _tmp0_;
+ GeeCollection* _tmp21_;
+ gint _tmp22_;
+ gint _tmp23_;
#line 692 "/home/jens/Source/shotwell/src/Event.vala"
g_return_if_fail (GEE_IS_COLLECTION (sources));
#line 692 "/home/jens/Source/shotwell/src/Event.vala"
@@ -5524,11 +5529,11 @@ void event_generate_many_events (GeeCollection* sources, ViewCollection* events_
_tmp0_ = gee_array_list_new (TYPE_EVENT, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
#line 693 "/home/jens/Source/shotwell/src/Event.vala"
to_add = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection);
-#line 5527 "Event.c"
+#line 5532 "Event.c"
{
GeeIterator* _media_it = NULL;
- GeeCollection* _tmp1_ = NULL;
- GeeIterator* _tmp2_ = NULL;
+ GeeCollection* _tmp1_;
+ GeeIterator* _tmp2_;
#line 694 "/home/jens/Source/shotwell/src/Event.vala"
_tmp1_ = sources;
#line 694 "/home/jens/Source/shotwell/src/Event.vala"
@@ -5537,26 +5542,26 @@ void event_generate_many_events (GeeCollection* sources, ViewCollection* events_
_media_it = _tmp2_;
#line 694 "/home/jens/Source/shotwell/src/Event.vala"
while (TRUE) {
-#line 5540 "Event.c"
- GeeIterator* _tmp3_ = NULL;
- gboolean _tmp4_ = FALSE;
+#line 5545 "Event.c"
+ GeeIterator* _tmp3_;
+ gboolean _tmp4_;
MediaSource* media = NULL;
- GeeIterator* _tmp5_ = NULL;
- gpointer _tmp6_ = NULL;
- MediaSource* _tmp7_ = NULL;
- Event* _tmp8_ = NULL;
- Event* _tmp9_ = NULL;
- gboolean _tmp10_ = FALSE;
+ GeeIterator* _tmp5_;
+ gpointer _tmp6_;
+ MediaSource* _tmp7_;
+ Event* _tmp8_;
+ Event* _tmp9_;
+ gboolean _tmp10_;
gboolean new_event = FALSE;
Event* event = NULL;
- MediaSource* _tmp11_ = NULL;
- ViewCollection* _tmp12_ = NULL;
+ MediaSource* _tmp11_;
+ ViewCollection* _tmp12_;
gboolean _tmp13_ = FALSE;
- Event* _tmp14_ = NULL;
- Event* _tmp15_ = NULL;
- MediaSource* _tmp16_ = NULL;
- Event* _tmp17_ = NULL;
- gboolean _tmp18_ = FALSE;
+ Event* _tmp14_;
+ Event* _tmp15_;
+ MediaSource* _tmp16_;
+ Event* _tmp17_;
+ gboolean _tmp18_;
#line 694 "/home/jens/Source/shotwell/src/Event.vala"
_tmp3_ = _media_it;
#line 694 "/home/jens/Source/shotwell/src/Event.vala"
@@ -5565,7 +5570,7 @@ void event_generate_many_events (GeeCollection* sources, ViewCollection* events_
if (!_tmp4_) {
#line 694 "/home/jens/Source/shotwell/src/Event.vala"
break;
-#line 5568 "Event.c"
+#line 5573 "Event.c"
}
#line 694 "/home/jens/Source/shotwell/src/Event.vala"
_tmp5_ = _media_it;
@@ -5589,7 +5594,7 @@ void event_generate_many_events (GeeCollection* sources, ViewCollection* events_
_g_object_unref0 (media);
#line 697 "/home/jens/Source/shotwell/src/Event.vala"
continue;
-#line 5592 "Event.c"
+#line 5597 "Event.c"
}
#line 700 "/home/jens/Source/shotwell/src/Event.vala"
_tmp11_ = media;
@@ -5611,7 +5616,7 @@ void event_generate_many_events (GeeCollection* sources, ViewCollection* events_
_g_object_unref0 (media);
#line 702 "/home/jens/Source/shotwell/src/Event.vala"
continue;
-#line 5614 "Event.c"
+#line 5619 "Event.c"
}
#line 704 "/home/jens/Source/shotwell/src/Event.vala"
_tmp16_ = media;
@@ -5623,26 +5628,26 @@ void event_generate_many_events (GeeCollection* sources, ViewCollection* events_
_tmp18_ = new_event;
#line 706 "/home/jens/Source/shotwell/src/Event.vala"
if (_tmp18_) {
-#line 5626 "Event.c"
- GeeCollection* _tmp19_ = NULL;
- Event* _tmp20_ = NULL;
+#line 5631 "Event.c"
+ GeeCollection* _tmp19_;
+ Event* _tmp20_;
#line 707 "/home/jens/Source/shotwell/src/Event.vala"
_tmp19_ = to_add;
#line 707 "/home/jens/Source/shotwell/src/Event.vala"
_tmp20_ = event;
#line 707 "/home/jens/Source/shotwell/src/Event.vala"
gee_collection_add (_tmp19_, _tmp20_);
-#line 5635 "Event.c"
+#line 5640 "Event.c"
}
#line 694 "/home/jens/Source/shotwell/src/Event.vala"
_g_object_unref0 (event);
#line 694 "/home/jens/Source/shotwell/src/Event.vala"
_g_object_unref0 (media);
-#line 5641 "Event.c"
+#line 5646 "Event.c"
}
#line 694 "/home/jens/Source/shotwell/src/Event.vala"
_g_object_unref0 (_media_it);
-#line 5645 "Event.c"
+#line 5650 "Event.c"
}
#line 710 "/home/jens/Source/shotwell/src/Event.vala"
_tmp21_ = to_add;
@@ -5652,11 +5657,11 @@ void event_generate_many_events (GeeCollection* sources, ViewCollection* events_
_tmp23_ = _tmp22_;
#line 710 "/home/jens/Source/shotwell/src/Event.vala"
if (_tmp23_ > 0) {
-#line 5655 "Event.c"
- EventSourceCollection* _tmp24_ = NULL;
- GeeCollection* _tmp25_ = NULL;
- GeeCollection* _tmp26_ = NULL;
- GeeCollection* _tmp27_ = NULL;
+#line 5660 "Event.c"
+ EventSourceCollection* _tmp24_;
+ GeeCollection* _tmp25_;
+ GeeCollection* _tmp26_;
+ GeeCollection* _tmp27_;
#line 711 "/home/jens/Source/shotwell/src/Event.vala"
_tmp24_ = event_global;
#line 711 "/home/jens/Source/shotwell/src/Event.vala"
@@ -5667,16 +5672,16 @@ void event_generate_many_events (GeeCollection* sources, ViewCollection* events_
_tmp27_ = _tmp26_;
#line 711 "/home/jens/Source/shotwell/src/Event.vala"
_g_object_unref0 (_tmp27_);
-#line 5670 "Event.c"
+#line 5675 "Event.c"
}
#line 692 "/home/jens/Source/shotwell/src/Event.vala"
_g_object_unref0 (to_add);
-#line 5674 "Event.c"
+#line 5679 "Event.c"
}
void event_get_event_id (Event* self, EventID* result) {
- EventID _tmp0_ = {0};
+ EventID _tmp0_;
#line 714 "/home/jens/Source/shotwell/src/Event.vala"
g_return_if_fail (IS_EVENT (self));
#line 715 "/home/jens/Source/shotwell/src/Event.vala"
@@ -5685,14 +5690,14 @@ void event_get_event_id (Event* self, EventID* result) {
*result = _tmp0_;
#line 715 "/home/jens/Source/shotwell/src/Event.vala"
return;
-#line 5688 "Event.c"
+#line 5693 "Event.c"
}
static SourceSnapshot* event_real_save_snapshot (DataSource* base) {
Event * self;
SourceSnapshot* result = NULL;
- EventEventSnapshot* _tmp0_ = NULL;
+ EventEventSnapshot* _tmp0_;
#line 718 "/home/jens/Source/shotwell/src/Event.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event);
#line 719 "/home/jens/Source/shotwell/src/Event.vala"
@@ -5701,14 +5706,14 @@ static SourceSnapshot* event_real_save_snapshot (DataSource* base) {
result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SOURCE_SNAPSHOT, SourceSnapshot);
#line 719 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 5704 "Event.c"
+#line 5709 "Event.c"
}
static SourceProxy* event_real_get_proxy (Proxyable* base) {
Event * self;
SourceProxy* result = NULL;
- EventEventProxy* _tmp0_ = NULL;
+ EventEventProxy* _tmp0_;
#line 722 "/home/jens/Source/shotwell/src/Event.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event);
#line 723 "/home/jens/Source/shotwell/src/Event.vala"
@@ -5717,7 +5722,7 @@ static SourceProxy* event_real_get_proxy (Proxyable* base) {
result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SOURCE_PROXY, SourceProxy);
#line 723 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 5720 "Event.c"
+#line 5725 "Event.c"
}
@@ -5725,11 +5730,11 @@ static gboolean event_real_equals (DataSource* base, DataSource* source) {
Event * self;
gboolean result = FALSE;
Event* event = NULL;
- DataSource* _tmp0_ = NULL;
- Event* _tmp1_ = NULL;
- Event* _tmp2_ = NULL;
- DataSource* _tmp9_ = NULL;
- gboolean _tmp10_ = FALSE;
+ DataSource* _tmp0_;
+ Event* _tmp1_;
+ Event* _tmp2_;
+ DataSource* _tmp9_;
+ gboolean _tmp10_;
#line 726 "/home/jens/Source/shotwell/src/Event.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event);
#line 726 "/home/jens/Source/shotwell/src/Event.vala"
@@ -5744,18 +5749,18 @@ static gboolean event_real_equals (DataSource* base, DataSource* source) {
_tmp2_ = event;
#line 729 "/home/jens/Source/shotwell/src/Event.vala"
if (_tmp2_ != NULL) {
-#line 5747 "Event.c"
- Event* _tmp3_ = NULL;
+#line 5752 "Event.c"
+ Event* _tmp3_;
#line 730 "/home/jens/Source/shotwell/src/Event.vala"
_tmp3_ = event;
#line 730 "/home/jens/Source/shotwell/src/Event.vala"
if (self != _tmp3_) {
-#line 5753 "Event.c"
- EventID _tmp4_ = {0};
- gint64 _tmp5_ = 0LL;
- Event* _tmp6_ = NULL;
- EventID _tmp7_ = {0};
- gint64 _tmp8_ = 0LL;
+#line 5758 "Event.c"
+ EventID _tmp4_;
+ gint64 _tmp5_;
+ Event* _tmp6_;
+ EventID _tmp7_;
+ gint64 _tmp8_;
#line 731 "/home/jens/Source/shotwell/src/Event.vala"
_tmp4_ = self->priv->event_id;
#line 731 "/home/jens/Source/shotwell/src/Event.vala"
@@ -5768,7 +5773,7 @@ static gboolean event_real_equals (DataSource* base, DataSource* source) {
_tmp8_ = _tmp7_.id;
#line 731 "/home/jens/Source/shotwell/src/Event.vala"
_vala_assert (_tmp5_ != _tmp8_, "event_id.id != event.event_id.id");
-#line 5771 "Event.c"
+#line 5776 "Event.c"
}
}
#line 735 "/home/jens/Source/shotwell/src/Event.vala"
@@ -5781,24 +5786,24 @@ static gboolean event_real_equals (DataSource* base, DataSource* source) {
_g_object_unref0 (event);
#line 735 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 5784 "Event.c"
+#line 5789 "Event.c"
}
static gchar* event_real_to_string (DataObject* base) {
Event * self;
gchar* result = NULL;
- EventID _tmp0_ = {0};
- gint64 _tmp1_ = 0LL;
- gchar* _tmp2_ = NULL;
- gchar* _tmp3_ = NULL;
- gint64 _tmp4_ = 0LL;
- gchar* _tmp5_ = NULL;
- gchar* _tmp6_ = NULL;
- gchar* _tmp7_ = NULL;
- gchar* _tmp8_ = NULL;
- gchar* _tmp9_ = NULL;
- gchar* _tmp10_ = NULL;
+ EventID _tmp0_;
+ gint64 _tmp1_;
+ gchar* _tmp2_;
+ gchar* _tmp3_;
+ gint64 _tmp4_;
+ gchar* _tmp5_;
+ gchar* _tmp6_;
+ gchar* _tmp7_;
+ gchar* _tmp8_;
+ gchar* _tmp9_;
+ gchar* _tmp10_;
#line 738 "/home/jens/Source/shotwell/src/Event.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event);
#line 739 "/home/jens/Source/shotwell/src/Event.vala"
@@ -5833,24 +5838,24 @@ static gchar* event_real_to_string (DataObject* base) {
result = _tmp10_;
#line 739 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 5836 "Event.c"
+#line 5841 "Event.c"
}
gboolean event_has_name (Event* self) {
gboolean result = FALSE;
gboolean _tmp0_ = FALSE;
- const gchar* _tmp1_ = NULL;
+ const gchar* _tmp1_;
#line 742 "/home/jens/Source/shotwell/src/Event.vala"
g_return_val_if_fail (IS_EVENT (self), FALSE);
#line 743 "/home/jens/Source/shotwell/src/Event.vala"
_tmp1_ = self->priv->raw_name;
#line 743 "/home/jens/Source/shotwell/src/Event.vala"
if (_tmp1_ != NULL) {
-#line 5850 "Event.c"
- const gchar* _tmp2_ = NULL;
- gint _tmp3_ = 0;
- gint _tmp4_ = 0;
+#line 5855 "Event.c"
+ const gchar* _tmp2_;
+ gint _tmp3_;
+ gint _tmp4_;
#line 743 "/home/jens/Source/shotwell/src/Event.vala"
_tmp2_ = self->priv->raw_name;
#line 743 "/home/jens/Source/shotwell/src/Event.vala"
@@ -5859,44 +5864,44 @@ gboolean event_has_name (Event* self) {
_tmp4_ = _tmp3_;
#line 743 "/home/jens/Source/shotwell/src/Event.vala"
_tmp0_ = _tmp4_ > 0;
-#line 5862 "Event.c"
+#line 5867 "Event.c"
} else {
#line 743 "/home/jens/Source/shotwell/src/Event.vala"
_tmp0_ = FALSE;
-#line 5866 "Event.c"
+#line 5871 "Event.c"
}
#line 743 "/home/jens/Source/shotwell/src/Event.vala"
result = _tmp0_;
#line 743 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 5872 "Event.c"
+#line 5877 "Event.c"
}
static gchar* event_real_get_name (DataObject* base) {
Event * self;
gchar* result = NULL;
- gboolean _tmp0_ = FALSE;
+ gboolean _tmp0_;
gchar* datestring = NULL;
- gchar* _tmp2_ = NULL;
+ gchar* _tmp2_;
gchar* _tmp3_ = NULL;
- const gchar* _tmp4_ = NULL;
- gboolean _tmp5_ = FALSE;
+ const gchar* _tmp4_;
+ gboolean _tmp5_;
#line 746 "/home/jens/Source/shotwell/src/Event.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event);
#line 747 "/home/jens/Source/shotwell/src/Event.vala"
_tmp0_ = event_has_name (self);
#line 747 "/home/jens/Source/shotwell/src/Event.vala"
if (_tmp0_) {
-#line 5891 "Event.c"
- gchar* _tmp1_ = NULL;
+#line 5896 "Event.c"
+ gchar* _tmp1_;
#line 748 "/home/jens/Source/shotwell/src/Event.vala"
_tmp1_ = event_get_raw_name (self);
#line 748 "/home/jens/Source/shotwell/src/Event.vala"
result = _tmp1_;
#line 748 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 5899 "Event.c"
+#line 5904 "Event.c"
}
#line 751 "/home/jens/Source/shotwell/src/Event.vala"
_tmp2_ = event_get_formatted_daterange (self);
@@ -5908,9 +5913,9 @@ static gchar* event_real_get_name (DataObject* base) {
_tmp5_ = is_string_empty (_tmp4_);
#line 753 "/home/jens/Source/shotwell/src/Event.vala"
if (!_tmp5_) {
-#line 5911 "Event.c"
- const gchar* _tmp6_ = NULL;
- gchar* _tmp7_ = NULL;
+#line 5916 "Event.c"
+ const gchar* _tmp6_;
+ gchar* _tmp7_;
#line 753 "/home/jens/Source/shotwell/src/Event.vala"
_tmp6_ = datestring;
#line 753 "/home/jens/Source/shotwell/src/Event.vala"
@@ -5919,33 +5924,30 @@ static gchar* event_real_get_name (DataObject* base) {
_g_free0 (_tmp3_);
#line 753 "/home/jens/Source/shotwell/src/Event.vala"
_tmp3_ = _tmp7_;
-#line 5922 "Event.c"
+#line 5927 "Event.c"
} else {
- const gchar* _tmp8_ = NULL;
- EventID _tmp9_ = {0};
- gint64 _tmp10_ = 0LL;
- gchar* _tmp11_ = NULL;
- gchar* _tmp12_ = NULL;
- gchar* _tmp13_ = NULL;
-#line 753 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp8_ = _ ("Event %s");
+ EventID _tmp8_;
+ gint64 _tmp9_;
+ gchar* _tmp10_;
+ gchar* _tmp11_;
+ gchar* _tmp12_;
#line 753 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp9_ = self->priv->event_id;
+ _tmp8_ = self->priv->event_id;
#line 753 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp10_ = _tmp9_.id;
+ _tmp9_ = _tmp8_.id;
#line 753 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp11_ = g_strdup_printf ("%" G_GINT64_FORMAT, _tmp10_);
+ _tmp10_ = g_strdup_printf ("%" G_GINT64_FORMAT, _tmp9_);
#line 753 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp12_ = _tmp11_;
+ _tmp11_ = _tmp10_;
#line 753 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp13_ = g_strdup_printf (_tmp8_, _tmp12_);
+ _tmp12_ = g_strdup_printf (_ ("Event %s"), _tmp11_);
#line 753 "/home/jens/Source/shotwell/src/Event.vala"
_g_free0 (_tmp3_);
#line 753 "/home/jens/Source/shotwell/src/Event.vala"
- _tmp3_ = _tmp13_;
+ _tmp3_ = _tmp12_;
#line 753 "/home/jens/Source/shotwell/src/Event.vala"
- _g_free0 (_tmp12_);
-#line 5948 "Event.c"
+ _g_free0 (_tmp11_);
+#line 5950 "Event.c"
}
#line 753 "/home/jens/Source/shotwell/src/Event.vala"
result = _tmp3_;
@@ -5953,35 +5955,35 @@ static gchar* event_real_get_name (DataObject* base) {
_g_free0 (datestring);
#line 753 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 5956 "Event.c"
+#line 5958 "Event.c"
}
gchar* event_get_formatted_daterange (Event* self) {
gchar* result = NULL;
time_t start_time = 0;
- time_t _tmp0_ = 0;
+ time_t _tmp0_;
time_t end_time = 0;
- time_t _tmp1_ = 0;
+ time_t _tmp1_;
gboolean _tmp2_ = FALSE;
- time_t _tmp3_ = 0;
+ time_t _tmp3_;
gboolean _tmp5_ = FALSE;
- time_t _tmp6_ = 0;
+ time_t _tmp6_;
struct tm start = {0};
- time_t _tmp11_ = 0;
+ time_t _tmp11_;
struct tm _tmp12_ = {0};
struct tm end = {0};
- time_t _tmp13_ = 0;
+ time_t _tmp13_;
struct tm _tmp14_ = {0};
gboolean _tmp15_ = FALSE;
gboolean _tmp16_ = FALSE;
- struct tm _tmp17_ = {0};
- gint _tmp18_ = 0;
- struct tm _tmp19_ = {0};
- gint _tmp20_ = 0;
- struct tm _tmp32_ = {0};
- struct tm _tmp33_ = {0};
- gchar* _tmp34_ = NULL;
+ struct tm _tmp17_;
+ gint _tmp18_;
+ struct tm _tmp19_;
+ gint _tmp20_;
+ struct tm _tmp32_;
+ struct tm _tmp33_;
+ gchar* _tmp34_;
#line 756 "/home/jens/Source/shotwell/src/Event.vala"
g_return_val_if_fail (IS_EVENT (self), NULL);
#line 757 "/home/jens/Source/shotwell/src/Event.vala"
@@ -5996,17 +5998,17 @@ gchar* event_get_formatted_daterange (Event* self) {
_tmp3_ = end_time;
#line 760 "/home/jens/Source/shotwell/src/Event.vala"
if (_tmp3_ == ((time_t) 0)) {
-#line 5999 "Event.c"
- time_t _tmp4_ = 0;
+#line 6001 "Event.c"
+ time_t _tmp4_;
#line 760 "/home/jens/Source/shotwell/src/Event.vala"
_tmp4_ = start_time;
#line 760 "/home/jens/Source/shotwell/src/Event.vala"
_tmp2_ = _tmp4_ == ((time_t) 0);
-#line 6005 "Event.c"
+#line 6007 "Event.c"
} else {
#line 760 "/home/jens/Source/shotwell/src/Event.vala"
_tmp2_ = FALSE;
-#line 6009 "Event.c"
+#line 6011 "Event.c"
}
#line 760 "/home/jens/Source/shotwell/src/Event.vala"
if (_tmp2_) {
@@ -6014,30 +6016,30 @@ gchar* event_get_formatted_daterange (Event* self) {
result = NULL;
#line 761 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 6017 "Event.c"
+#line 6019 "Event.c"
}
#line 763 "/home/jens/Source/shotwell/src/Event.vala"
_tmp6_ = end_time;
#line 763 "/home/jens/Source/shotwell/src/Event.vala"
if (_tmp6_ == ((time_t) 0)) {
-#line 6023 "Event.c"
- time_t _tmp7_ = 0;
+#line 6025 "Event.c"
+ time_t _tmp7_;
#line 763 "/home/jens/Source/shotwell/src/Event.vala"
_tmp7_ = start_time;
#line 763 "/home/jens/Source/shotwell/src/Event.vala"
_tmp5_ = _tmp7_ != ((time_t) 0);
-#line 6029 "Event.c"
+#line 6031 "Event.c"
} else {
#line 763 "/home/jens/Source/shotwell/src/Event.vala"
_tmp5_ = FALSE;
-#line 6033 "Event.c"
+#line 6035 "Event.c"
}
#line 763 "/home/jens/Source/shotwell/src/Event.vala"
if (_tmp5_) {
-#line 6037 "Event.c"
- time_t _tmp8_ = 0;
+#line 6039 "Event.c"
+ time_t _tmp8_;
struct tm _tmp9_ = {0};
- gchar* _tmp10_ = NULL;
+ gchar* _tmp10_;
#line 764 "/home/jens/Source/shotwell/src/Event.vala"
_tmp8_ = start_time;
#line 764 "/home/jens/Source/shotwell/src/Event.vala"
@@ -6048,7 +6050,7 @@ gchar* event_get_formatted_daterange (Event* self) {
result = _tmp10_;
#line 764 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 6051 "Event.c"
+#line 6053 "Event.c"
}
#line 766 "/home/jens/Source/shotwell/src/Event.vala"
_tmp11_ = start_time;
@@ -6072,11 +6074,11 @@ gchar* event_get_formatted_daterange (Event* self) {
_tmp20_ = _tmp19_.tm_mday;
#line 769 "/home/jens/Source/shotwell/src/Event.vala"
if (_tmp18_ == _tmp20_) {
-#line 6075 "Event.c"
- struct tm _tmp21_ = {0};
- gint _tmp22_ = 0;
- struct tm _tmp23_ = {0};
- gint _tmp24_ = 0;
+#line 6077 "Event.c"
+ struct tm _tmp21_;
+ gint _tmp22_;
+ struct tm _tmp23_;
+ gint _tmp24_;
#line 769 "/home/jens/Source/shotwell/src/Event.vala"
_tmp21_ = start;
#line 769 "/home/jens/Source/shotwell/src/Event.vala"
@@ -6087,19 +6089,19 @@ gchar* event_get_formatted_daterange (Event* self) {
_tmp24_ = _tmp23_.tm_mon;
#line 769 "/home/jens/Source/shotwell/src/Event.vala"
_tmp16_ = _tmp22_ == _tmp24_;
-#line 6090 "Event.c"
+#line 6092 "Event.c"
} else {
#line 769 "/home/jens/Source/shotwell/src/Event.vala"
_tmp16_ = FALSE;
-#line 6094 "Event.c"
+#line 6096 "Event.c"
}
#line 769 "/home/jens/Source/shotwell/src/Event.vala"
if (_tmp16_) {
-#line 6098 "Event.c"
- struct tm _tmp25_ = {0};
- gint _tmp26_ = 0;
- struct tm _tmp27_ = {0};
- gint _tmp28_ = 0;
+#line 6100 "Event.c"
+ struct tm _tmp25_;
+ gint _tmp26_;
+ struct tm _tmp27_;
+ gint _tmp28_;
#line 769 "/home/jens/Source/shotwell/src/Event.vala"
_tmp25_ = start;
#line 769 "/home/jens/Source/shotwell/src/Event.vala"
@@ -6110,18 +6112,18 @@ gchar* event_get_formatted_daterange (Event* self) {
_tmp28_ = _tmp27_.tm_mday;
#line 769 "/home/jens/Source/shotwell/src/Event.vala"
_tmp15_ = _tmp26_ == _tmp28_;
-#line 6113 "Event.c"
+#line 6115 "Event.c"
} else {
#line 769 "/home/jens/Source/shotwell/src/Event.vala"
_tmp15_ = FALSE;
-#line 6117 "Event.c"
+#line 6119 "Event.c"
}
#line 769 "/home/jens/Source/shotwell/src/Event.vala"
if (_tmp15_) {
-#line 6121 "Event.c"
- time_t _tmp29_ = 0;
+#line 6123 "Event.c"
+ time_t _tmp29_;
struct tm _tmp30_ = {0};
- gchar* _tmp31_ = NULL;
+ gchar* _tmp31_;
#line 770 "/home/jens/Source/shotwell/src/Event.vala"
_tmp29_ = start_time;
#line 770 "/home/jens/Source/shotwell/src/Event.vala"
@@ -6132,7 +6134,7 @@ gchar* event_get_formatted_daterange (Event* self) {
result = _tmp31_;
#line 770 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 6135 "Event.c"
+#line 6137 "Event.c"
}
#line 772 "/home/jens/Source/shotwell/src/Event.vala"
_tmp32_ = start;
@@ -6144,14 +6146,14 @@ gchar* event_get_formatted_daterange (Event* self) {
result = _tmp34_;
#line 772 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 6147 "Event.c"
+#line 6149 "Event.c"
}
gchar* event_get_raw_name (Event* self) {
gchar* result = NULL;
- const gchar* _tmp0_ = NULL;
- gchar* _tmp1_ = NULL;
+ const gchar* _tmp0_;
+ gchar* _tmp1_;
#line 775 "/home/jens/Source/shotwell/src/Event.vala"
g_return_val_if_fail (IS_EVENT (self), NULL);
#line 776 "/home/jens/Source/shotwell/src/Event.vala"
@@ -6162,15 +6164,15 @@ gchar* event_get_raw_name (Event* self) {
result = _tmp1_;
#line 776 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 6165 "Event.c"
+#line 6167 "Event.c"
}
static gchar* event_real_get_comment (EventSource* base) {
Event * self;
gchar* result = NULL;
- const gchar* _tmp0_ = NULL;
- gchar* _tmp1_ = NULL;
+ const gchar* _tmp0_;
+ gchar* _tmp1_;
#line 779 "/home/jens/Source/shotwell/src/Event.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event);
#line 780 "/home/jens/Source/shotwell/src/Event.vala"
@@ -6181,25 +6183,25 @@ static gchar* event_real_get_comment (EventSource* base) {
result = _tmp1_;
#line 780 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 6184 "Event.c"
+#line 6186 "Event.c"
}
gboolean event_rename (Event* self, const gchar* name) {
gboolean result = FALSE;
gchar* new_name = NULL;
- const gchar* _tmp0_ = NULL;
- gchar* _tmp1_ = NULL;
- const gchar* _tmp2_ = NULL;
- gchar* _tmp3_ = NULL;
- gchar* _tmp4_ = NULL;
- gboolean _tmp5_ = FALSE;
+ const gchar* _tmp0_;
+ gchar* _tmp1_;
+ const gchar* _tmp2_;
+ gchar* _tmp3_;
+ gchar* _tmp4_;
+ gboolean _tmp5_;
gboolean renamed = FALSE;
- EventTable* _tmp7_ = NULL;
- EventID _tmp8_ = {0};
- const gchar* _tmp9_ = NULL;
- gboolean _tmp10_ = FALSE;
- gboolean _tmp11_ = FALSE;
+ EventTable* _tmp7_;
+ EventID _tmp8_;
+ const gchar* _tmp9_;
+ gboolean _tmp10_;
+ gboolean _tmp11_;
#line 783 "/home/jens/Source/shotwell/src/Event.vala"
g_return_val_if_fail (IS_EVENT (self), FALSE);
#line 784 "/home/jens/Source/shotwell/src/Event.vala"
@@ -6220,15 +6222,15 @@ gboolean event_rename (Event* self, const gchar* name) {
_g_free0 (_tmp4_);
#line 787 "/home/jens/Source/shotwell/src/Event.vala"
if (_tmp5_) {
-#line 6223 "Event.c"
- gchar* _tmp6_ = NULL;
+#line 6225 "Event.c"
+ gchar* _tmp6_;
#line 788 "/home/jens/Source/shotwell/src/Event.vala"
_tmp6_ = g_strdup ("");
#line 788 "/home/jens/Source/shotwell/src/Event.vala"
_g_free0 (new_name);
#line 788 "/home/jens/Source/shotwell/src/Event.vala"
new_name = _tmp6_;
-#line 6231 "Event.c"
+#line 6233 "Event.c"
}
#line 791 "/home/jens/Source/shotwell/src/Event.vala"
_tmp7_ = event_event_table;
@@ -6244,11 +6246,11 @@ gboolean event_rename (Event* self, const gchar* name) {
_tmp11_ = renamed;
#line 792 "/home/jens/Source/shotwell/src/Event.vala"
if (_tmp11_) {
-#line 6247 "Event.c"
- const gchar* _tmp12_ = NULL;
- gchar* _tmp13_ = NULL;
- Alteration* _tmp14_ = NULL;
- Alteration* _tmp15_ = NULL;
+#line 6249 "Event.c"
+ const gchar* _tmp12_;
+ gchar* _tmp13_;
+ Alteration* _tmp14_;
+ Alteration* _tmp15_;
#line 793 "/home/jens/Source/shotwell/src/Event.vala"
_tmp12_ = new_name;
#line 793 "/home/jens/Source/shotwell/src/Event.vala"
@@ -6267,7 +6269,7 @@ gboolean event_rename (Event* self, const gchar* name) {
data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp15_);
#line 795 "/home/jens/Source/shotwell/src/Event.vala"
_alteration_unref0 (_tmp15_);
-#line 6270 "Event.c"
+#line 6272 "Event.c"
}
#line 798 "/home/jens/Source/shotwell/src/Event.vala"
result = renamed;
@@ -6275,7 +6277,7 @@ gboolean event_rename (Event* self, const gchar* name) {
_g_free0 (new_name);
#line 798 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 6278 "Event.c"
+#line 6280 "Event.c"
}
@@ -6283,14 +6285,14 @@ static gboolean event_real_set_comment (EventSource* base, const gchar* comment)
Event * self;
gboolean result = FALSE;
gchar* new_comment = NULL;
- const gchar* _tmp0_ = NULL;
- gchar* _tmp1_ = NULL;
+ const gchar* _tmp0_;
+ gchar* _tmp1_;
gboolean committed = FALSE;
- EventTable* _tmp2_ = NULL;
- EventID _tmp3_ = {0};
- const gchar* _tmp4_ = NULL;
- gboolean _tmp5_ = FALSE;
- gboolean _tmp6_ = FALSE;
+ EventTable* _tmp2_;
+ EventID _tmp3_;
+ const gchar* _tmp4_;
+ gboolean _tmp5_;
+ gboolean _tmp6_;
#line 801 "/home/jens/Source/shotwell/src/Event.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event);
#line 802 "/home/jens/Source/shotwell/src/Event.vala"
@@ -6313,11 +6315,11 @@ static gboolean event_real_set_comment (EventSource* base, const gchar* comment)
_tmp6_ = committed;
#line 805 "/home/jens/Source/shotwell/src/Event.vala"
if (_tmp6_) {
-#line 6316 "Event.c"
- const gchar* _tmp7_ = NULL;
- gchar* _tmp8_ = NULL;
- Alteration* _tmp9_ = NULL;
- Alteration* _tmp10_ = NULL;
+#line 6318 "Event.c"
+ const gchar* _tmp7_;
+ gchar* _tmp8_;
+ Alteration* _tmp9_;
+ Alteration* _tmp10_;
#line 806 "/home/jens/Source/shotwell/src/Event.vala"
_tmp7_ = new_comment;
#line 806 "/home/jens/Source/shotwell/src/Event.vala"
@@ -6336,7 +6338,7 @@ static gboolean event_real_set_comment (EventSource* base, const gchar* comment)
data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp10_);
#line 808 "/home/jens/Source/shotwell/src/Event.vala"
_alteration_unref0 (_tmp10_);
-#line 6339 "Event.c"
+#line 6341 "Event.c"
}
#line 811 "/home/jens/Source/shotwell/src/Event.vala"
result = committed;
@@ -6344,15 +6346,15 @@ static gboolean event_real_set_comment (EventSource* base, const gchar* comment)
_g_free0 (new_comment);
#line 811 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 6347 "Event.c"
+#line 6349 "Event.c"
}
time_t event_get_creation_time (Event* self) {
time_t result = 0;
- EventTable* _tmp0_ = NULL;
- EventID _tmp1_ = {0};
- time_t _tmp2_ = 0;
+ EventTable* _tmp0_;
+ EventID _tmp1_;
+ time_t _tmp2_;
#line 814 "/home/jens/Source/shotwell/src/Event.vala"
g_return_val_if_fail (IS_EVENT (self), 0);
#line 815 "/home/jens/Source/shotwell/src/Event.vala"
@@ -6365,7 +6367,7 @@ time_t event_get_creation_time (Event* self) {
result = _tmp2_;
#line 815 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 6368 "Event.c"
+#line 6370 "Event.c"
}
@@ -6373,8 +6375,8 @@ static time_t event_real_get_start_time (EventSource* base) {
Event * self;
time_t result = 0;
gint count = 0;
- ViewCollection* _tmp0_ = NULL;
- gint _tmp1_ = 0;
+ ViewCollection* _tmp0_;
+ gint _tmp1_;
#line 818 "/home/jens/Source/shotwell/src/Event.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event);
#line 821 "/home/jens/Source/shotwell/src/Event.vala"
@@ -6383,40 +6385,40 @@ static time_t event_real_get_start_time (EventSource* base) {
_tmp1_ = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_COLLECTION, DataCollection));
#line 821 "/home/jens/Source/shotwell/src/Event.vala"
count = _tmp1_;
-#line 6386 "Event.c"
+#line 6388 "Event.c"
{
gint i = 0;
#line 822 "/home/jens/Source/shotwell/src/Event.vala"
i = 0;
-#line 6391 "Event.c"
+#line 6393 "Event.c"
{
gboolean _tmp2_ = FALSE;
#line 822 "/home/jens/Source/shotwell/src/Event.vala"
_tmp2_ = TRUE;
#line 822 "/home/jens/Source/shotwell/src/Event.vala"
while (TRUE) {
-#line 6398 "Event.c"
- gint _tmp4_ = 0;
- gint _tmp5_ = 0;
+#line 6400 "Event.c"
+ gint _tmp4_;
+ gint _tmp5_;
time_t time = 0;
- ViewCollection* _tmp6_ = NULL;
- gint _tmp7_ = 0;
- DataObject* _tmp8_ = NULL;
- DataView* _tmp9_ = NULL;
- DataSource* _tmp10_ = NULL;
- MediaSource* _tmp11_ = NULL;
- time_t _tmp12_ = 0;
- time_t _tmp13_ = 0;
- time_t _tmp14_ = 0;
+ ViewCollection* _tmp6_;
+ gint _tmp7_;
+ DataObject* _tmp8_;
+ DataView* _tmp9_;
+ DataSource* _tmp10_;
+ MediaSource* _tmp11_;
+ time_t _tmp12_;
+ time_t _tmp13_;
+ time_t _tmp14_;
#line 822 "/home/jens/Source/shotwell/src/Event.vala"
if (!_tmp2_) {
-#line 6413 "Event.c"
- gint _tmp3_ = 0;
+#line 6415 "Event.c"
+ gint _tmp3_;
#line 822 "/home/jens/Source/shotwell/src/Event.vala"
_tmp3_ = i;
#line 822 "/home/jens/Source/shotwell/src/Event.vala"
i = _tmp3_ + 1;
-#line 6419 "Event.c"
+#line 6421 "Event.c"
}
#line 822 "/home/jens/Source/shotwell/src/Event.vala"
_tmp2_ = FALSE;
@@ -6428,7 +6430,7 @@ static time_t event_real_get_start_time (EventSource* base) {
if (!(_tmp4_ < _tmp5_)) {
#line 822 "/home/jens/Source/shotwell/src/Event.vala"
break;
-#line 6431 "Event.c"
+#line 6433 "Event.c"
}
#line 823 "/home/jens/Source/shotwell/src/Event.vala"
_tmp6_ = self->priv->view;
@@ -6460,7 +6462,7 @@ static time_t event_real_get_start_time (EventSource* base) {
result = time;
#line 825 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 6463 "Event.c"
+#line 6465 "Event.c"
}
}
}
@@ -6469,7 +6471,7 @@ static time_t event_real_get_start_time (EventSource* base) {
result = (time_t) 0;
#line 828 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 6472 "Event.c"
+#line 6474 "Event.c"
}
@@ -6477,17 +6479,17 @@ static time_t event_real_get_end_time (EventSource* base) {
Event * self;
time_t result = 0;
gint count = 0;
- ViewCollection* _tmp0_ = NULL;
- gint _tmp1_ = 0;
- gint _tmp2_ = 0;
- ViewCollection* _tmp3_ = NULL;
- gint _tmp4_ = 0;
- DataObject* _tmp5_ = NULL;
- DataView* _tmp6_ = NULL;
- DataSource* _tmp7_ = NULL;
- MediaSource* _tmp8_ = NULL;
- time_t _tmp9_ = 0;
- time_t _tmp10_ = 0;
+ ViewCollection* _tmp0_;
+ gint _tmp1_;
+ gint _tmp2_;
+ ViewCollection* _tmp3_;
+ gint _tmp4_;
+ DataObject* _tmp5_;
+ DataView* _tmp6_;
+ DataSource* _tmp7_;
+ MediaSource* _tmp8_;
+ time_t _tmp9_;
+ time_t _tmp10_;
#line 831 "/home/jens/Source/shotwell/src/Event.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event);
#line 832 "/home/jens/Source/shotwell/src/Event.vala"
@@ -6504,7 +6506,7 @@ static time_t event_real_get_end_time (EventSource* base) {
result = (time_t) 0;
#line 837 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 6507 "Event.c"
+#line 6509 "Event.c"
}
#line 839 "/home/jens/Source/shotwell/src/Event.vala"
_tmp3_ = self->priv->view;
@@ -6530,7 +6532,7 @@ static time_t event_real_get_end_time (EventSource* base) {
result = _tmp10_;
#line 839 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 6533 "Event.c"
+#line 6535 "Event.c"
}
@@ -6542,13 +6544,13 @@ static guint64 event_real_get_total_filesize (EventSource* base) {
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event);
#line 843 "/home/jens/Source/shotwell/src/Event.vala"
total = (guint64) 0;
-#line 6545 "Event.c"
+#line 6547 "Event.c"
{
GeeIterator* _current_source_it = NULL;
- GeeCollection* _tmp0_ = NULL;
- GeeCollection* _tmp1_ = NULL;
- GeeIterator* _tmp2_ = NULL;
- GeeIterator* _tmp3_ = NULL;
+ GeeCollection* _tmp0_;
+ GeeCollection* _tmp1_;
+ GeeIterator* _tmp2_;
+ GeeIterator* _tmp3_;
#line 844 "/home/jens/Source/shotwell/src/Event.vala"
_tmp0_ = event_source_get_media (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EVENT_SOURCE, EventSource));
#line 844 "/home/jens/Source/shotwell/src/Event.vala"
@@ -6563,15 +6565,15 @@ static guint64 event_real_get_total_filesize (EventSource* base) {
_current_source_it = _tmp3_;
#line 844 "/home/jens/Source/shotwell/src/Event.vala"
while (TRUE) {
-#line 6566 "Event.c"
- GeeIterator* _tmp4_ = NULL;
- gboolean _tmp5_ = FALSE;
+#line 6568 "Event.c"
+ GeeIterator* _tmp4_;
+ gboolean _tmp5_;
MediaSource* current_source = NULL;
- GeeIterator* _tmp6_ = NULL;
- gpointer _tmp7_ = NULL;
- guint64 _tmp8_ = 0ULL;
- MediaSource* _tmp9_ = NULL;
- guint64 _tmp10_ = 0ULL;
+ GeeIterator* _tmp6_;
+ gpointer _tmp7_;
+ guint64 _tmp8_;
+ MediaSource* _tmp9_;
+ guint64 _tmp10_;
#line 844 "/home/jens/Source/shotwell/src/Event.vala"
_tmp4_ = _current_source_it;
#line 844 "/home/jens/Source/shotwell/src/Event.vala"
@@ -6580,7 +6582,7 @@ static guint64 event_real_get_total_filesize (EventSource* base) {
if (!_tmp5_) {
#line 844 "/home/jens/Source/shotwell/src/Event.vala"
break;
-#line 6583 "Event.c"
+#line 6585 "Event.c"
}
#line 844 "/home/jens/Source/shotwell/src/Event.vala"
_tmp6_ = _current_source_it;
@@ -6598,25 +6600,25 @@ static guint64 event_real_get_total_filesize (EventSource* base) {
total = _tmp8_ + _tmp10_;
#line 844 "/home/jens/Source/shotwell/src/Event.vala"
_g_object_unref0 (current_source);
-#line 6601 "Event.c"
+#line 6603 "Event.c"
}
#line 844 "/home/jens/Source/shotwell/src/Event.vala"
_g_object_unref0 (_current_source_it);
-#line 6605 "Event.c"
+#line 6607 "Event.c"
}
#line 848 "/home/jens/Source/shotwell/src/Event.vala"
result = total;
#line 848 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 6611 "Event.c"
+#line 6613 "Event.c"
}
static gint event_real_get_media_count (EventSource* base) {
Event * self;
gint result = 0;
- ViewCollection* _tmp0_ = NULL;
- gint _tmp1_ = 0;
+ ViewCollection* _tmp0_;
+ gint _tmp1_;
#line 851 "/home/jens/Source/shotwell/src/Event.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event);
#line 852 "/home/jens/Source/shotwell/src/Event.vala"
@@ -6627,15 +6629,15 @@ static gint event_real_get_media_count (EventSource* base) {
result = _tmp1_;
#line 852 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 6630 "Event.c"
+#line 6632 "Event.c"
}
static GeeCollection* event_real_get_media (EventSource* base) {
Event * self;
GeeCollection* result = NULL;
- ViewCollection* _tmp0_ = NULL;
- GeeCollection* _tmp1_ = NULL;
+ ViewCollection* _tmp0_;
+ GeeCollection* _tmp1_;
#line 855 "/home/jens/Source/shotwell/src/Event.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event);
#line 856 "/home/jens/Source/shotwell/src/Event.vala"
@@ -6646,15 +6648,15 @@ static GeeCollection* event_real_get_media (EventSource* base) {
result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection);
#line 856 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 6649 "Event.c"
+#line 6651 "Event.c"
}
void event_mirror_photos (Event* self, ViewCollection* view, CreateView mirroring_ctor, void* mirroring_ctor_target) {
- ViewCollection* _tmp0_ = NULL;
- ViewCollection* _tmp1_ = NULL;
- CreateView _tmp2_ = NULL;
- void* _tmp2__target = NULL;
+ ViewCollection* _tmp0_;
+ ViewCollection* _tmp1_;
+ CreateView _tmp2_;
+ void* _tmp2__target;
#line 859 "/home/jens/Source/shotwell/src/Event.vala"
g_return_if_fail (IS_EVENT (self));
#line 859 "/home/jens/Source/shotwell/src/Event.vala"
@@ -6669,7 +6671,7 @@ void event_mirror_photos (Event* self, ViewCollection* view, CreateView mirrorin
_tmp2__target = mirroring_ctor_target;
#line 860 "/home/jens/Source/shotwell/src/Event.vala"
view_collection_mirror (_tmp0_, _tmp1_, _tmp2_, _tmp2__target, NULL, NULL);
-#line 6672 "Event.c"
+#line 6674 "Event.c"
}
@@ -6678,14 +6680,14 @@ static void event_on_primary_thumbnail_altered (Event* self) {
g_return_if_fail (IS_EVENT (self));
#line 864 "/home/jens/Source/shotwell/src/Event.vala"
thumbnail_source_notify_thumbnail_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_THUMBNAIL_SOURCE, ThumbnailSource));
-#line 6681 "Event.c"
+#line 6683 "Event.c"
}
MediaSource* event_get_primary_source (Event* self) {
MediaSource* result = NULL;
- MediaSource* _tmp0_ = NULL;
- MediaSource* _tmp1_ = NULL;
+ MediaSource* _tmp0_;
+ MediaSource* _tmp1_;
#line 867 "/home/jens/Source/shotwell/src/Event.vala"
g_return_val_if_fail (IS_EVENT (self), NULL);
#line 868 "/home/jens/Source/shotwell/src/Event.vala"
@@ -6696,24 +6698,24 @@ MediaSource* event_get_primary_source (Event* self) {
result = _tmp1_;
#line 868 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 6699 "Event.c"
+#line 6701 "Event.c"
}
gboolean event_set_primary_source (Event* self, MediaSource* source) {
gboolean result = FALSE;
- ViewCollection* _tmp0_ = NULL;
- MediaSource* _tmp1_ = NULL;
- gboolean _tmp2_ = FALSE;
+ ViewCollection* _tmp0_;
+ MediaSource* _tmp1_;
+ gboolean _tmp2_;
gboolean committed = FALSE;
- EventTable* _tmp3_ = NULL;
- EventID _tmp4_ = {0};
- MediaSource* _tmp5_ = NULL;
- gchar* _tmp6_ = NULL;
- gchar* _tmp7_ = NULL;
- gboolean _tmp8_ = FALSE;
- gboolean _tmp9_ = FALSE;
- gboolean _tmp10_ = FALSE;
+ EventTable* _tmp3_;
+ EventID _tmp4_;
+ MediaSource* _tmp5_;
+ gchar* _tmp6_;
+ gchar* _tmp7_;
+ gboolean _tmp8_;
+ gboolean _tmp9_;
+ gboolean _tmp10_;
#line 871 "/home/jens/Source/shotwell/src/Event.vala"
g_return_val_if_fail (IS_EVENT (self), FALSE);
#line 871 "/home/jens/Source/shotwell/src/Event.vala"
@@ -6748,25 +6750,25 @@ gboolean event_set_primary_source (Event* self, MediaSource* source) {
_tmp10_ = committed;
#line 875 "/home/jens/Source/shotwell/src/Event.vala"
if (_tmp10_) {
-#line 6751 "Event.c"
- MediaSource* _tmp11_ = NULL;
- MediaSource* _tmp14_ = NULL;
- MediaSource* _tmp15_ = NULL;
- MediaSource* _tmp16_ = NULL;
+#line 6753 "Event.c"
+ MediaSource* _tmp11_;
+ MediaSource* _tmp14_;
+ MediaSource* _tmp15_;
+ MediaSource* _tmp16_;
#line 877 "/home/jens/Source/shotwell/src/Event.vala"
_tmp11_ = self->priv->primary_source;
#line 877 "/home/jens/Source/shotwell/src/Event.vala"
if (_tmp11_ != NULL) {
-#line 6760 "Event.c"
- MediaSource* _tmp12_ = NULL;
- guint _tmp13_ = 0U;
+#line 6762 "Event.c"
+ MediaSource* _tmp12_;
+ guint _tmp13_;
#line 878 "/home/jens/Source/shotwell/src/Event.vala"
_tmp12_ = self->priv->primary_source;
#line 878 "/home/jens/Source/shotwell/src/Event.vala"
g_signal_parse_name ("thumbnail-altered", TYPE_THUMBNAIL_SOURCE, &_tmp13_, NULL, FALSE);
#line 878 "/home/jens/Source/shotwell/src/Event.vala"
g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp13_, 0, NULL, (GCallback) _event_on_primary_thumbnail_altered_thumbnail_source_thumbnail_altered, self);
-#line 6769 "Event.c"
+#line 6771 "Event.c"
}
#line 880 "/home/jens/Source/shotwell/src/Event.vala"
_tmp14_ = source;
@@ -6782,20 +6784,20 @@ gboolean event_set_primary_source (Event* self, MediaSource* source) {
g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), "thumbnail-altered", (GCallback) _event_on_primary_thumbnail_altered_thumbnail_source_thumbnail_altered, self, 0);
#line 883 "/home/jens/Source/shotwell/src/Event.vala"
thumbnail_source_notify_thumbnail_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_THUMBNAIL_SOURCE, ThumbnailSource));
-#line 6785 "Event.c"
+#line 6787 "Event.c"
}
#line 886 "/home/jens/Source/shotwell/src/Event.vala"
result = committed;
#line 886 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 6791 "Event.c"
+#line 6793 "Event.c"
}
static void event_release_primary_source (Event* self) {
- MediaSource* _tmp0_ = NULL;
- MediaSource* _tmp1_ = NULL;
- guint _tmp2_ = 0U;
+ MediaSource* _tmp0_;
+ MediaSource* _tmp1_;
+ guint _tmp2_;
#line 889 "/home/jens/Source/shotwell/src/Event.vala"
g_return_if_fail (IS_EVENT (self));
#line 890 "/home/jens/Source/shotwell/src/Event.vala"
@@ -6804,7 +6806,7 @@ static void event_release_primary_source (Event* self) {
if (_tmp0_ == NULL) {
#line 891 "/home/jens/Source/shotwell/src/Event.vala"
return;
-#line 6807 "Event.c"
+#line 6809 "Event.c"
}
#line 893 "/home/jens/Source/shotwell/src/Event.vala"
_tmp1_ = self->priv->primary_source;
@@ -6816,7 +6818,7 @@ static void event_release_primary_source (Event* self) {
_g_object_unref0 (self->priv->primary_source);
#line 894 "/home/jens/Source/shotwell/src/Event.vala"
self->priv->primary_source = NULL;
-#line 6819 "Event.c"
+#line 6821 "Event.c"
}
@@ -6824,7 +6826,7 @@ static GdkPixbuf* event_real_get_thumbnail (ThumbnailSource* base, gint scale, G
Event * self;
GdkPixbuf* result = NULL;
GdkPixbuf* _tmp0_ = NULL;
- MediaSource* _tmp1_ = NULL;
+ MediaSource* _tmp1_;
GError * _inner_error_ = NULL;
#line 897 "/home/jens/Source/shotwell/src/Event.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event);
@@ -6832,10 +6834,10 @@ static GdkPixbuf* event_real_get_thumbnail (ThumbnailSource* base, gint scale, G
_tmp1_ = self->priv->primary_source;
#line 898 "/home/jens/Source/shotwell/src/Event.vala"
if (_tmp1_ != NULL) {
-#line 6835 "Event.c"
- MediaSource* _tmp2_ = NULL;
- gint _tmp3_ = 0;
- GdkPixbuf* _tmp4_ = NULL;
+#line 6837 "Event.c"
+ MediaSource* _tmp2_;
+ gint _tmp3_;
+ GdkPixbuf* _tmp4_;
#line 898 "/home/jens/Source/shotwell/src/Event.vala"
_tmp2_ = self->priv->primary_source;
#line 898 "/home/jens/Source/shotwell/src/Event.vala"
@@ -6854,20 +6856,20 @@ static GdkPixbuf* event_real_get_thumbnail (ThumbnailSource* base, gint scale, G
_g_object_unref0 (_tmp0_);
#line 898 "/home/jens/Source/shotwell/src/Event.vala"
return NULL;
-#line 6857 "Event.c"
+#line 6859 "Event.c"
}
} else {
#line 898 "/home/jens/Source/shotwell/src/Event.vala"
_g_object_unref0 (_tmp0_);
#line 898 "/home/jens/Source/shotwell/src/Event.vala"
_tmp0_ = NULL;
-#line 6864 "Event.c"
+#line 6866 "Event.c"
}
#line 898 "/home/jens/Source/shotwell/src/Event.vala"
result = _tmp0_;
#line 898 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 6870 "Event.c"
+#line 6872 "Event.c"
}
@@ -6878,15 +6880,15 @@ GdkPixbuf* event_get_preview_pixbuf (Event* self, Scaling* scaling) {
g_return_val_if_fail (IS_EVENT (self), NULL);
#line 901 "/home/jens/Source/shotwell/src/Event.vala"
g_return_val_if_fail (scaling != NULL, NULL);
-#line 6881 "Event.c"
+#line 6883 "Event.c"
{
GdkPixbuf* _tmp0_ = NULL;
- MediaSource* _tmp1_ = NULL;
- MediaSource* _tmp2_ = NULL;
- Scaling _tmp3_ = {0};
- GdkPixbuf* _tmp4_ = NULL;
- GdkPixbuf* _tmp5_ = NULL;
- GdkPixbuf* _tmp6_ = NULL;
+ MediaSource* _tmp1_;
+ MediaSource* _tmp2_;
+ Scaling _tmp3_;
+ GdkPixbuf* _tmp4_;
+ GdkPixbuf* _tmp5_;
+ GdkPixbuf* _tmp6_;
#line 903 "/home/jens/Source/shotwell/src/Event.vala"
_tmp1_ = event_get_primary_source (self);
#line 903 "/home/jens/Source/shotwell/src/Event.vala"
@@ -6903,8 +6905,8 @@ GdkPixbuf* event_get_preview_pixbuf (Event* self, Scaling* scaling) {
_tmp0_ = _tmp5_;
#line 903 "/home/jens/Source/shotwell/src/Event.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 6906 "Event.c"
- goto __catch441_g_error;
+#line 6908 "Event.c"
+ goto __catch442_g_error;
}
#line 903 "/home/jens/Source/shotwell/src/Event.vala"
_tmp6_ = _tmp0_;
@@ -6916,10 +6918,10 @@ GdkPixbuf* event_get_preview_pixbuf (Event* self, Scaling* scaling) {
_g_object_unref0 (_tmp0_);
#line 903 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 6919 "Event.c"
+#line 6921 "Event.c"
}
- goto __finally441;
- __catch441_g_error:
+ goto __finally442;
+ __catch442_g_error:
{
GError* err = NULL;
#line 902 "/home/jens/Source/shotwell/src/Event.vala"
@@ -6932,28 +6934,28 @@ GdkPixbuf* event_get_preview_pixbuf (Event* self, Scaling* scaling) {
_g_error_free0 (err);
#line 905 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 6935 "Event.c"
+#line 6937 "Event.c"
}
- __finally441:
+ __finally442:
#line 902 "/home/jens/Source/shotwell/src/Event.vala"
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 902 "/home/jens/Source/shotwell/src/Event.vala"
g_clear_error (&_inner_error_);
#line 902 "/home/jens/Source/shotwell/src/Event.vala"
return NULL;
-#line 6944 "Event.c"
+#line 6946 "Event.c"
}
static void event_real_destroy (DataSource* base) {
Event * self;
- ViewCollection* _tmp0_ = NULL;
- PhotoTable* _tmp4_ = NULL;
- PhotoTable* _tmp5_ = NULL;
- EventID _tmp6_ = {0};
- VideoTable* _tmp7_ = NULL;
- VideoTable* _tmp8_ = NULL;
- EventID _tmp9_ = {0};
+ ViewCollection* _tmp0_;
+ PhotoTable* _tmp4_;
+ PhotoTable* _tmp5_;
+ EventID _tmp6_;
+ VideoTable* _tmp7_;
+ VideoTable* _tmp8_;
+ EventID _tmp9_;
GError * _inner_error_ = NULL;
#line 909 "/home/jens/Source/shotwell/src/Event.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event);
@@ -6961,10 +6963,10 @@ static void event_real_destroy (DataSource* base) {
_tmp0_ = self->priv->view;
#line 911 "/home/jens/Source/shotwell/src/Event.vala"
view_collection_halt_all_monitoring (_tmp0_);
-#line 6964 "Event.c"
+#line 6966 "Event.c"
{
- EventTable* _tmp1_ = NULL;
- EventID _tmp2_ = {0};
+ EventTable* _tmp1_;
+ EventID _tmp2_;
#line 915 "/home/jens/Source/shotwell/src/Event.vala"
_tmp1_ = event_event_table;
#line 915 "/home/jens/Source/shotwell/src/Event.vala"
@@ -6975,8 +6977,8 @@ static void event_real_destroy (DataSource* base) {
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 915 "/home/jens/Source/shotwell/src/Event.vala"
if (_inner_error_->domain == DATABASE_ERROR) {
-#line 6978 "Event.c"
- goto __catch442_database_error;
+#line 6980 "Event.c"
+ goto __catch443_database_error;
}
#line 915 "/home/jens/Source/shotwell/src/Event.vala"
g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
@@ -6984,14 +6986,14 @@ static void event_real_destroy (DataSource* base) {
g_clear_error (&_inner_error_);
#line 915 "/home/jens/Source/shotwell/src/Event.vala"
return;
-#line 6987 "Event.c"
+#line 6989 "Event.c"
}
}
- goto __finally442;
- __catch442_database_error:
+ goto __finally443;
+ __catch443_database_error:
{
GError* err = NULL;
- GError* _tmp3_ = NULL;
+ GError* _tmp3_;
#line 914 "/home/jens/Source/shotwell/src/Event.vala"
err = _inner_error_;
#line 914 "/home/jens/Source/shotwell/src/Event.vala"
@@ -7002,9 +7004,9 @@ static void event_real_destroy (DataSource* base) {
app_window_database_error (_tmp3_);
#line 914 "/home/jens/Source/shotwell/src/Event.vala"
_g_error_free0 (err);
-#line 7005 "Event.c"
+#line 7007 "Event.c"
}
- __finally442:
+ __finally443:
#line 914 "/home/jens/Source/shotwell/src/Event.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 914 "/home/jens/Source/shotwell/src/Event.vala"
@@ -7013,7 +7015,7 @@ static void event_real_destroy (DataSource* base) {
g_clear_error (&_inner_error_);
#line 914 "/home/jens/Source/shotwell/src/Event.vala"
return;
-#line 7016 "Event.c"
+#line 7018 "Event.c"
}
#line 921 "/home/jens/Source/shotwell/src/Event.vala"
_tmp4_ = photo_table_get_instance ();
@@ -7037,28 +7039,28 @@ static void event_real_destroy (DataSource* base) {
_database_table_unref0 (_tmp8_);
#line 924 "/home/jens/Source/shotwell/src/Event.vala"
DATA_SOURCE_CLASS (event_parent_class)->destroy (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EVENT_SOURCE, EventSource), TYPE_DATA_SOURCE, DataSource));
-#line 7040 "Event.c"
+#line 7042 "Event.c"
}
static void _event_event_snapshot_on_attached_source_destroyed_source_collection_item_destroyed (SourceCollection* _sender, DataSource* source, gpointer self) {
#line 126 "/home/jens/Source/shotwell/src/Event.vala"
event_event_snapshot_on_attached_source_destroyed ((EventEventSnapshot*) self, source);
-#line 7047 "Event.c"
+#line 7049 "Event.c"
}
static EventEventSnapshot* event_event_snapshot_construct (GType object_type, Event* event) {
EventEventSnapshot* self = NULL;
- EventTable* _tmp0_ = NULL;
- EventTable* _tmp1_ = NULL;
- Event* _tmp2_ = NULL;
+ EventTable* _tmp0_;
+ EventTable* _tmp1_;
+ Event* _tmp2_;
EventID _tmp3_ = {0};
- EventRow* _tmp4_ = NULL;
- Event* _tmp5_ = NULL;
- MediaSource* _tmp6_ = NULL;
- LibraryPhotoSourceCollection* _tmp18_ = NULL;
- VideoSourceCollection* _tmp19_ = NULL;
+ EventRow* _tmp4_;
+ Event* _tmp5_;
+ MediaSource* _tmp6_;
+ LibraryPhotoSourceCollection* _tmp18_;
+ VideoSourceCollection* _tmp19_;
#line 110 "/home/jens/Source/shotwell/src/Event.vala"
g_return_val_if_fail (IS_EVENT (event), NULL);
#line 110 "/home/jens/Source/shotwell/src/Event.vala"
@@ -7087,14 +7089,14 @@ static EventEventSnapshot* event_event_snapshot_construct (GType object_type, Ev
_g_object_unref0 (self->priv->primary_source);
#line 113 "/home/jens/Source/shotwell/src/Event.vala"
self->priv->primary_source = _tmp6_;
-#line 7090 "Event.c"
+#line 7092 "Event.c"
{
GeeIterator* _source_it = NULL;
- Event* _tmp7_ = NULL;
- GeeCollection* _tmp8_ = NULL;
- GeeCollection* _tmp9_ = NULL;
- GeeIterator* _tmp10_ = NULL;
- GeeIterator* _tmp11_ = NULL;
+ Event* _tmp7_;
+ GeeCollection* _tmp8_;
+ GeeCollection* _tmp9_;
+ GeeIterator* _tmp10_;
+ GeeIterator* _tmp11_;
#line 118 "/home/jens/Source/shotwell/src/Event.vala"
_tmp7_ = event;
#line 118 "/home/jens/Source/shotwell/src/Event.vala"
@@ -7111,14 +7113,14 @@ static EventEventSnapshot* event_event_snapshot_construct (GType object_type, Ev
_source_it = _tmp11_;
#line 118 "/home/jens/Source/shotwell/src/Event.vala"
while (TRUE) {
-#line 7114 "Event.c"
- GeeIterator* _tmp12_ = NULL;
- gboolean _tmp13_ = FALSE;
+#line 7116 "Event.c"
+ GeeIterator* _tmp12_;
+ gboolean _tmp13_;
MediaSource* source = NULL;
- GeeIterator* _tmp14_ = NULL;
- gpointer _tmp15_ = NULL;
- GeeArrayList* _tmp16_ = NULL;
- MediaSource* _tmp17_ = NULL;
+ GeeIterator* _tmp14_;
+ gpointer _tmp15_;
+ GeeArrayList* _tmp16_;
+ MediaSource* _tmp17_;
#line 118 "/home/jens/Source/shotwell/src/Event.vala"
_tmp12_ = _source_it;
#line 118 "/home/jens/Source/shotwell/src/Event.vala"
@@ -7127,7 +7129,7 @@ static EventEventSnapshot* event_event_snapshot_construct (GType object_type, Ev
if (!_tmp13_) {
#line 118 "/home/jens/Source/shotwell/src/Event.vala"
break;
-#line 7130 "Event.c"
+#line 7132 "Event.c"
}
#line 118 "/home/jens/Source/shotwell/src/Event.vala"
_tmp14_ = _source_it;
@@ -7143,11 +7145,11 @@ static EventEventSnapshot* event_event_snapshot_construct (GType object_type, Ev
gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp17_);
#line 118 "/home/jens/Source/shotwell/src/Event.vala"
_g_object_unref0 (source);
-#line 7146 "Event.c"
+#line 7148 "Event.c"
}
#line 118 "/home/jens/Source/shotwell/src/Event.vala"
_g_object_unref0 (_source_it);
-#line 7150 "Event.c"
+#line 7152 "Event.c"
}
#line 121 "/home/jens/Source/shotwell/src/Event.vala"
_tmp18_ = library_photo_global;
@@ -7159,28 +7161,28 @@ static EventEventSnapshot* event_event_snapshot_construct (GType object_type, Ev
g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_SOURCE_COLLECTION, SourceCollection), "item-destroyed", (GCallback) _event_event_snapshot_on_attached_source_destroyed_source_collection_item_destroyed, self);
#line 110 "/home/jens/Source/shotwell/src/Event.vala"
return self;
-#line 7162 "Event.c"
+#line 7164 "Event.c"
}
static EventEventSnapshot* event_event_snapshot_new (Event* event) {
#line 110 "/home/jens/Source/shotwell/src/Event.vala"
return event_event_snapshot_construct (EVENT_TYPE_EVENT_SNAPSHOT, event);
-#line 7169 "Event.c"
+#line 7171 "Event.c"
}
static gpointer _event_row_ref0 (gpointer self) {
#line 131 "/home/jens/Source/shotwell/src/Event.vala"
return self ? event_row_ref (self) : NULL;
-#line 7176 "Event.c"
+#line 7178 "Event.c"
}
static EventRow* event_event_snapshot_get_row (EventEventSnapshot* self) {
EventRow* result = NULL;
- EventRow* _tmp0_ = NULL;
- EventRow* _tmp1_ = NULL;
+ EventRow* _tmp0_;
+ EventRow* _tmp1_;
#line 130 "/home/jens/Source/shotwell/src/Event.vala"
g_return_val_if_fail (EVENT_IS_EVENT_SNAPSHOT (self), NULL);
#line 131 "/home/jens/Source/shotwell/src/Event.vala"
@@ -7191,14 +7193,14 @@ static EventRow* event_event_snapshot_get_row (EventEventSnapshot* self) {
result = _tmp1_;
#line 131 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 7194 "Event.c"
+#line 7196 "Event.c"
}
static void event_event_snapshot_real_notify_broken (SourceSnapshot* base) {
EventEventSnapshot * self;
- EventRow* _tmp0_ = NULL;
- GeeArrayList* _tmp1_ = NULL;
+ EventRow* _tmp0_;
+ GeeArrayList* _tmp1_;
#line 134 "/home/jens/Source/shotwell/src/Event.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENT_TYPE_EVENT_SNAPSHOT, EventEventSnapshot);
#line 135 "/home/jens/Source/shotwell/src/Event.vala"
@@ -7217,16 +7219,16 @@ static void event_event_snapshot_real_notify_broken (SourceSnapshot* base) {
gee_abstract_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
#line 139 "/home/jens/Source/shotwell/src/Event.vala"
SOURCE_SNAPSHOT_CLASS (event_event_snapshot_parent_class)->notify_broken (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SOURCE_SNAPSHOT, SourceSnapshot));
-#line 7220 "Event.c"
+#line 7222 "Event.c"
}
static void event_event_snapshot_on_attached_source_destroyed (EventEventSnapshot* self, DataSource* source) {
MediaSource* media_source = NULL;
- DataSource* _tmp0_ = NULL;
- MediaSource* _tmp1_ = NULL;
+ DataSource* _tmp0_;
+ MediaSource* _tmp1_;
gboolean _tmp2_ = FALSE;
- MediaSource* _tmp3_ = NULL;
+ MediaSource* _tmp3_;
#line 142 "/home/jens/Source/shotwell/src/Event.vala"
g_return_if_fail (EVENT_IS_EVENT_SNAPSHOT (self));
#line 142 "/home/jens/Source/shotwell/src/Event.vala"
@@ -7241,10 +7243,10 @@ static void event_event_snapshot_on_attached_source_destroyed (EventEventSnapsho
_tmp3_ = media_source;
#line 146 "/home/jens/Source/shotwell/src/Event.vala"
if (_tmp3_ != NULL) {
-#line 7244 "Event.c"
- MediaSource* _tmp4_ = NULL;
- MediaSource* _tmp5_ = NULL;
- gboolean _tmp6_ = FALSE;
+#line 7246 "Event.c"
+ MediaSource* _tmp4_;
+ MediaSource* _tmp5_;
+ gboolean _tmp6_;
#line 146 "/home/jens/Source/shotwell/src/Event.vala"
_tmp4_ = self->priv->primary_source;
#line 146 "/home/jens/Source/shotwell/src/Event.vala"
@@ -7253,21 +7255,21 @@ static void event_event_snapshot_on_attached_source_destroyed (EventEventSnapsho
_tmp6_ = data_source_equals (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_SOURCE, DataSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_DATA_SOURCE, DataSource));
#line 146 "/home/jens/Source/shotwell/src/Event.vala"
_tmp2_ = _tmp6_;
-#line 7256 "Event.c"
+#line 7258 "Event.c"
} else {
#line 146 "/home/jens/Source/shotwell/src/Event.vala"
_tmp2_ = FALSE;
-#line 7260 "Event.c"
+#line 7262 "Event.c"
}
#line 146 "/home/jens/Source/shotwell/src/Event.vala"
if (_tmp2_) {
#line 147 "/home/jens/Source/shotwell/src/Event.vala"
source_snapshot_notify_broken (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SOURCE_SNAPSHOT, SourceSnapshot));
-#line 7266 "Event.c"
+#line 7268 "Event.c"
} else {
- GeeArrayList* _tmp7_ = NULL;
- MediaSource* _tmp8_ = NULL;
- gboolean _tmp9_ = FALSE;
+ GeeArrayList* _tmp7_;
+ MediaSource* _tmp8_;
+ gboolean _tmp9_;
#line 148 "/home/jens/Source/shotwell/src/Event.vala"
_tmp7_ = self->priv->attached_sources;
#line 148 "/home/jens/Source/shotwell/src/Event.vala"
@@ -7278,12 +7280,12 @@ static void event_event_snapshot_on_attached_source_destroyed (EventEventSnapsho
if (_tmp9_) {
#line 149 "/home/jens/Source/shotwell/src/Event.vala"
source_snapshot_notify_broken (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SOURCE_SNAPSHOT, SourceSnapshot));
-#line 7281 "Event.c"
+#line 7283 "Event.c"
}
}
#line 142 "/home/jens/Source/shotwell/src/Event.vala"
_g_object_unref0 (media_source);
-#line 7286 "Event.c"
+#line 7288 "Event.c"
}
@@ -7295,29 +7297,29 @@ static void event_event_snapshot_class_init (EventEventSnapshotClass * klass) {
#line 105 "/home/jens/Source/shotwell/src/Event.vala"
g_type_class_add_private (klass, sizeof (EventEventSnapshotPrivate));
#line 105 "/home/jens/Source/shotwell/src/Event.vala"
- ((SourceSnapshotClass *) klass)->notify_broken = (void (*)(SourceSnapshot*)) event_event_snapshot_real_notify_broken;
-#line 7299 "Event.c"
+ ((SourceSnapshotClass *) klass)->notify_broken = (void (*) (SourceSnapshot *)) event_event_snapshot_real_notify_broken;
+#line 7301 "Event.c"
}
static void event_event_snapshot_instance_init (EventEventSnapshot * self) {
- GeeArrayList* _tmp0_ = NULL;
+ GeeArrayList* _tmp0_;
#line 105 "/home/jens/Source/shotwell/src/Event.vala"
self->priv = EVENT_EVENT_SNAPSHOT_GET_PRIVATE (self);
#line 108 "/home/jens/Source/shotwell/src/Event.vala"
_tmp0_ = gee_array_list_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
#line 108 "/home/jens/Source/shotwell/src/Event.vala"
self->priv->attached_sources = _tmp0_;
-#line 7311 "Event.c"
+#line 7313 "Event.c"
}
-static void event_event_snapshot_finalize (SourceSnapshot* obj) {
+static void event_event_snapshot_finalize (SourceSnapshot * obj) {
EventEventSnapshot * self;
- LibraryPhotoSourceCollection* _tmp0_ = NULL;
- guint _tmp1_ = 0U;
- VideoSourceCollection* _tmp2_ = NULL;
- guint _tmp3_ = 0U;
+ LibraryPhotoSourceCollection* _tmp0_;
+ guint _tmp1_;
+ VideoSourceCollection* _tmp2_;
+ guint _tmp3_;
#line 105 "/home/jens/Source/shotwell/src/Event.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, EVENT_TYPE_EVENT_SNAPSHOT, EventEventSnapshot);
#line 126 "/home/jens/Source/shotwell/src/Event.vala"
@@ -7340,7 +7342,7 @@ static void event_event_snapshot_finalize (SourceSnapshot* obj) {
_g_object_unref0 (self->priv->attached_sources);
#line 105 "/home/jens/Source/shotwell/src/Event.vala"
SOURCE_SNAPSHOT_CLASS (event_event_snapshot_parent_class)->finalize (obj);
-#line 7343 "Event.c"
+#line 7345 "Event.c"
}
@@ -7358,7 +7360,7 @@ static GType event_event_snapshot_get_type (void) {
static EventEventProxy* event_event_proxy_construct (GType object_type, Event* event) {
EventEventProxy* self = NULL;
- Event* _tmp0_ = NULL;
+ Event* _tmp0_;
#line 154 "/home/jens/Source/shotwell/src/Event.vala"
g_return_val_if_fail (IS_EVENT (event), NULL);
#line 155 "/home/jens/Source/shotwell/src/Event.vala"
@@ -7367,21 +7369,21 @@ static EventEventProxy* event_event_proxy_construct (GType object_type, Event* e
self = (EventEventProxy*) source_proxy_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_SOURCE, DataSource));
#line 154 "/home/jens/Source/shotwell/src/Event.vala"
return self;
-#line 7370 "Event.c"
+#line 7372 "Event.c"
}
static EventEventProxy* event_event_proxy_new (Event* event) {
#line 154 "/home/jens/Source/shotwell/src/Event.vala"
return event_event_proxy_construct (EVENT_TYPE_EVENT_PROXY, event);
-#line 7377 "Event.c"
+#line 7379 "Event.c"
}
static gpointer _source_snapshot_ref0 (gpointer self) {
#line 159 "/home/jens/Source/shotwell/src/Event.vala"
return self ? source_snapshot_ref (self) : NULL;
-#line 7384 "Event.c"
+#line 7386 "Event.c"
}
@@ -7389,13 +7391,13 @@ static DataSource* event_event_proxy_real_reconstitute (SourceProxy* base, gint6
EventEventProxy * self;
DataSource* result = NULL;
EventEventSnapshot* event_snapshot = NULL;
- SourceSnapshot* _tmp0_ = NULL;
- EventEventSnapshot* _tmp1_ = NULL;
- gint64 _tmp2_ = 0LL;
- EventRow* _tmp3_ = NULL;
- EventRow* _tmp4_ = NULL;
- Event* _tmp5_ = NULL;
- DataSource* _tmp6_ = NULL;
+ SourceSnapshot* _tmp0_;
+ EventEventSnapshot* _tmp1_;
+ gint64 _tmp2_;
+ EventRow* _tmp3_;
+ EventRow* _tmp4_;
+ Event* _tmp5_;
+ DataSource* _tmp6_;
#line 158 "/home/jens/Source/shotwell/src/Event.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENT_TYPE_EVENT_PROXY, EventEventProxy);
#line 158 "/home/jens/Source/shotwell/src/Event.vala"
@@ -7426,7 +7428,7 @@ static DataSource* event_event_proxy_real_reconstitute (SourceProxy* base, gint6
_source_snapshot_unref0 (event_snapshot);
#line 162 "/home/jens/Source/shotwell/src/Event.vala"
return result;
-#line 7429 "Event.c"
+#line 7431 "Event.c"
}
@@ -7434,8 +7436,8 @@ static void event_event_proxy_class_init (EventEventProxyClass * klass) {
#line 153 "/home/jens/Source/shotwell/src/Event.vala"
event_event_proxy_parent_class = g_type_class_peek_parent (klass);
#line 153 "/home/jens/Source/shotwell/src/Event.vala"
- ((SourceProxyClass *) klass)->reconstitute = (DataSource* (*)(SourceProxy*, gint64, SourceSnapshot*)) event_event_proxy_real_reconstitute;
-#line 7438 "Event.c"
+ ((SourceProxyClass *) klass)->reconstitute = (DataSource* (*) (SourceProxy *, gint64, SourceSnapshot*)) event_event_proxy_real_reconstitute;
+#line 7440 "Event.c"
}
@@ -7461,46 +7463,46 @@ static void event_class_init (EventClass * klass) {
#line 94 "/home/jens/Source/shotwell/src/Event.vala"
g_type_class_add_private (klass, sizeof (EventPrivate));
#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- ((DataSourceClass *) klass)->get_typename = (gchar* (*)(DataSource*)) event_real_get_typename;
+ ((DataSourceClass *) klass)->get_typename = (gchar* (*) (DataSource *)) event_real_get_typename;
#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- ((DataSourceClass *) klass)->get_instance_id = (gint64 (*)(DataSource*)) event_real_get_instance_id;
+ ((DataSourceClass *) klass)->get_instance_id = (gint64 (*) (DataSource *)) event_real_get_instance_id;
#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- ((ThumbnailSourceClass *) klass)->get_representative_id = (gchar* (*)(ThumbnailSource*)) event_real_get_representative_id;
+ ((ThumbnailSourceClass *) klass)->get_representative_id = (gchar* (*) (ThumbnailSource *)) event_real_get_representative_id;
#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- ((ThumbnailSourceClass *) klass)->get_preferred_thumbnail_format = (PhotoFileFormat (*)(ThumbnailSource*)) event_real_get_preferred_thumbnail_format;
+ ((ThumbnailSourceClass *) klass)->get_preferred_thumbnail_format = (PhotoFileFormat (*) (ThumbnailSource *)) event_real_get_preferred_thumbnail_format;
#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- ((ThumbnailSourceClass *) klass)->create_thumbnail = (GdkPixbuf* (*)(ThumbnailSource*, gint, GError**)) event_real_create_thumbnail;
+ ((ThumbnailSourceClass *) klass)->create_thumbnail = (GdkPixbuf* (*) (ThumbnailSource *, gint, GError**)) event_real_create_thumbnail;
#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- ((DataSourceClass *) klass)->notify_relinking = (void (*)(DataSource*, SourceCollection*)) event_real_notify_relinking;
+ ((DataSourceClass *) klass)->notify_relinking = (void (*) (DataSource *, SourceCollection*)) event_real_notify_relinking;
#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- ((DataSourceClass *) klass)->save_snapshot = (SourceSnapshot* (*)(DataSource*)) event_real_save_snapshot;
+ ((DataSourceClass *) klass)->save_snapshot = (SourceSnapshot* (*) (DataSource *)) event_real_save_snapshot;
#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- ((DataSourceClass *) klass)->equals = (gboolean (*)(DataSource*, DataSource*)) event_real_equals;
+ ((DataSourceClass *) klass)->equals = (gboolean (*) (DataSource *, DataSource*)) event_real_equals;
#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- ((DataObjectClass *) klass)->to_string = (gchar* (*)(DataObject*)) event_real_to_string;
+ ((DataObjectClass *) klass)->to_string = (gchar* (*) (DataObject *)) event_real_to_string;
#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- ((DataObjectClass *) klass)->get_name = (gchar* (*)(DataObject*)) event_real_get_name;
+ ((DataObjectClass *) klass)->get_name = (gchar* (*) (DataObject *)) event_real_get_name;
#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- ((EventSourceClass *) klass)->get_comment = (gchar* (*)(EventSource*)) event_real_get_comment;
+ ((EventSourceClass *) klass)->get_comment = (gchar* (*) (EventSource *)) event_real_get_comment;
#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- ((EventSourceClass *) klass)->set_comment = (gboolean (*)(EventSource*, const gchar*)) event_real_set_comment;
+ ((EventSourceClass *) klass)->set_comment = (gboolean (*) (EventSource *, const gchar*)) event_real_set_comment;
#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- ((EventSourceClass *) klass)->get_start_time = (time_t (*)(EventSource*)) event_real_get_start_time;
+ ((EventSourceClass *) klass)->get_start_time = (time_t (*) (EventSource *)) event_real_get_start_time;
#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- ((EventSourceClass *) klass)->get_end_time = (time_t (*)(EventSource*)) event_real_get_end_time;
+ ((EventSourceClass *) klass)->get_end_time = (time_t (*) (EventSource *)) event_real_get_end_time;
#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- ((EventSourceClass *) klass)->get_total_filesize = (guint64 (*)(EventSource*)) event_real_get_total_filesize;
+ ((EventSourceClass *) klass)->get_total_filesize = (guint64 (*) (EventSource *)) event_real_get_total_filesize;
#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- ((EventSourceClass *) klass)->get_media_count = (gint (*)(EventSource*)) event_real_get_media_count;
+ ((EventSourceClass *) klass)->get_media_count = (gint (*) (EventSource *)) event_real_get_media_count;
#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- ((EventSourceClass *) klass)->get_media = (GeeCollection* (*)(EventSource*)) event_real_get_media;
+ ((EventSourceClass *) klass)->get_media = (GeeCollection* (*) (EventSource *)) event_real_get_media;
#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- ((ThumbnailSourceClass *) klass)->get_thumbnail = (GdkPixbuf* (*)(ThumbnailSource*, gint, GError**)) event_real_get_thumbnail;
+ ((ThumbnailSourceClass *) klass)->get_thumbnail = (GdkPixbuf* (*) (ThumbnailSource *, gint, GError**)) event_real_get_thumbnail;
#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- ((DataSourceClass *) klass)->destroy = (void (*)(DataSource*)) event_real_destroy;
+ ((DataSourceClass *) klass)->destroy = (void (*) (DataSource *)) event_real_destroy;
#line 94 "/home/jens/Source/shotwell/src/Event.vala"
G_OBJECT_CLASS (klass)->finalize = event_finalize;
-#line 7503 "Event.c"
+#line 7505 "Event.c"
}
@@ -7508,18 +7510,18 @@ static void event_container_source_interface_init (ContainerSourceIface * iface)
#line 94 "/home/jens/Source/shotwell/src/Event.vala"
event_container_source_parent_iface = g_type_interface_peek_parent (iface);
#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- iface->has_links = (gboolean (*)(ContainerSource*)) event_real_has_links;
+ iface->has_links = (gboolean (*) (ContainerSource *)) event_real_has_links;
#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- iface->get_backlink = (SourceBacklink* (*)(ContainerSource*)) event_real_get_backlink;
+ iface->get_backlink = (SourceBacklink* (*) (ContainerSource *)) event_real_get_backlink;
#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- iface->break_link = (void (*)(ContainerSource*, DataSource*)) event_real_break_link;
+ iface->break_link = (void (*) (ContainerSource *, DataSource*)) event_real_break_link;
#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- iface->break_link_many = (void (*)(ContainerSource*, GeeCollection*)) event_real_break_link_many;
+ iface->break_link_many = (void (*) (ContainerSource *, GeeCollection*)) event_real_break_link_many;
#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- iface->establish_link = (void (*)(ContainerSource*, DataSource*)) event_real_establish_link;
+ iface->establish_link = (void (*) (ContainerSource *, DataSource*)) event_real_establish_link;
#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- iface->establish_link_many = (void (*)(ContainerSource*, GeeCollection*)) event_real_establish_link_many;
-#line 7522 "Event.c"
+ iface->establish_link_many = (void (*) (ContainerSource *, GeeCollection*)) event_real_establish_link_many;
+#line 7524 "Event.c"
}
@@ -7527,8 +7529,8 @@ static void event_proxyable_interface_init (ProxyableIface * iface) {
#line 94 "/home/jens/Source/shotwell/src/Event.vala"
event_proxyable_parent_iface = g_type_interface_peek_parent (iface);
#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- iface->get_proxy = (SourceProxy* (*)(Proxyable*)) event_real_get_proxy;
-#line 7531 "Event.c"
+ iface->get_proxy = (SourceProxy* (*) (Proxyable *)) event_real_get_proxy;
+#line 7533 "Event.c"
}
@@ -7536,8 +7538,8 @@ static void event_indexable_interface_init (IndexableIface * iface) {
#line 94 "/home/jens/Source/shotwell/src/Event.vala"
event_indexable_parent_iface = g_type_interface_peek_parent (iface);
#line 94 "/home/jens/Source/shotwell/src/Event.vala"
- iface->get_indexable_keywords = (const gchar* (*)(Indexable*)) event_real_get_indexable_keywords;
-#line 7540 "Event.c"
+ iface->get_indexable_keywords = (const gchar* (*) (Indexable *)) event_real_get_indexable_keywords;
+#line 7542 "Event.c"
}
@@ -7552,39 +7554,39 @@ static void event_instance_init (Event * self) {
self->priv->indexable_keywords = NULL;
#line 178 "/home/jens/Source/shotwell/src/Event.vala"
self->priv->comment = NULL;
-#line 7555 "Event.c"
+#line 7557 "Event.c"
}
-static void event_finalize (GObject* obj) {
+static void event_finalize (GObject * obj) {
Event * self;
- MediaSource* _tmp0_ = NULL;
- ViewCollection* _tmp3_ = NULL;
- guint _tmp4_ = 0U;
- ViewCollection* _tmp5_ = NULL;
- guint _tmp6_ = 0U;
- ViewCollection* _tmp7_ = NULL;
- guint _tmp8_ = 0U;
- LibraryPhotoSourceCollection* _tmp9_ = NULL;
- guint _tmp10_ = 0U;
- VideoSourceCollection* _tmp11_ = NULL;
- guint _tmp12_ = 0U;
+ MediaSource* _tmp0_;
+ ViewCollection* _tmp3_;
+ guint _tmp4_;
+ ViewCollection* _tmp5_;
+ guint _tmp6_;
+ ViewCollection* _tmp7_;
+ guint _tmp8_;
+ LibraryPhotoSourceCollection* _tmp9_;
+ guint _tmp10_;
+ VideoSourceCollection* _tmp11_;
+ guint _tmp12_;
#line 94 "/home/jens/Source/shotwell/src/Event.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_EVENT, Event);
#line 237 "/home/jens/Source/shotwell/src/Event.vala"
_tmp0_ = self->priv->primary_source;
#line 237 "/home/jens/Source/shotwell/src/Event.vala"
if (_tmp0_ != NULL) {
-#line 7578 "Event.c"
- MediaSource* _tmp1_ = NULL;
- guint _tmp2_ = 0U;
+#line 7580 "Event.c"
+ MediaSource* _tmp1_;
+ guint _tmp2_;
#line 238 "/home/jens/Source/shotwell/src/Event.vala"
_tmp1_ = self->priv->primary_source;
#line 238 "/home/jens/Source/shotwell/src/Event.vala"
g_signal_parse_name ("thumbnail-altered", TYPE_THUMBNAIL_SOURCE, &_tmp2_, NULL, FALSE);
#line 238 "/home/jens/Source/shotwell/src/Event.vala"
g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _event_on_primary_thumbnail_altered_thumbnail_source_thumbnail_altered, self);
-#line 7587 "Event.c"
+#line 7589 "Event.c"
}
#line 240 "/home/jens/Source/shotwell/src/Event.vala"
_tmp3_ = self->priv->view;
@@ -7628,7 +7630,7 @@ static void event_finalize (GObject* obj) {
_g_free0 (self->priv->comment);
#line 94 "/home/jens/Source/shotwell/src/Event.vala"
G_OBJECT_CLASS (event_parent_class)->finalize (obj);
-#line 7631 "Event.c"
+#line 7633 "Event.c"
}