summaryrefslogtreecommitdiff
path: root/src/tags
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2016-08-20 15:09:31 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2016-08-20 15:09:31 +0200
commit143bfc9f801c84428074312d661f8e08803df83b (patch)
tree59a8a447529bd9ce3807aa8bacef861dc5aafd70 /src/tags
parent29a7aef998e975b42401cfa96d1b750d91eadf06 (diff)
Imported Upstream version 0.23.5upstream/0.23.5
Diffstat (limited to 'src/tags')
-rw-r--r--src/tags/Branch.c3253
-rw-r--r--src/tags/HierarchicalTagIndex.c1039
-rw-r--r--src/tags/HierarchicalTagUtilities.c2356
-rw-r--r--src/tags/TagPage.c1635
-rw-r--r--src/tags/Tags.c36
-rw-r--r--src/tags/mk/tags.mk32
6 files changed, 8319 insertions, 32 deletions
diff --git a/src/tags/Branch.c b/src/tags/Branch.c
new file mode 100644
index 0000000..adcbabd
--- /dev/null
+++ b/src/tags/Branch.c
@@ -0,0 +1,3253 @@
+/* Branch.c generated by valac 0.32.1, the Vala compiler
+ * generated from Branch.vala, do not modify */
+
+/* Copyright 2016 Software Freedom Conservancy Inc.
+ *
+ * This software is licensed under the GNU Lesser General Public License
+ * (version 2.1 or later). See the COPYING file in this distribution.
+ */
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gee.h>
+#include <stdlib.h>
+#include <string.h>
+#include <gtk/gtk.h>
+#include <gdk/gdk.h>
+#include <glib/gi18n-lib.h>
+#include <gio/gio.h>
+
+
+#define SIDEBAR_TYPE_BRANCH (sidebar_branch_get_type ())
+#define SIDEBAR_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_BRANCH, SidebarBranch))
+#define SIDEBAR_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_BRANCH, SidebarBranchClass))
+#define SIDEBAR_IS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_BRANCH))
+#define SIDEBAR_IS_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_BRANCH))
+#define SIDEBAR_BRANCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_BRANCH, SidebarBranchClass))
+
+typedef struct _SidebarBranch SidebarBranch;
+typedef struct _SidebarBranchClass SidebarBranchClass;
+typedef struct _SidebarBranchPrivate SidebarBranchPrivate;
+
+#define TAGS_TYPE_BRANCH (tags_branch_get_type ())
+#define TAGS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TAGS_TYPE_BRANCH, TagsBranch))
+#define TAGS_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TAGS_TYPE_BRANCH, TagsBranchClass))
+#define TAGS_IS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TAGS_TYPE_BRANCH))
+#define TAGS_IS_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TAGS_TYPE_BRANCH))
+#define TAGS_BRANCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TAGS_TYPE_BRANCH, TagsBranchClass))
+
+typedef struct _TagsBranch TagsBranch;
+typedef struct _TagsBranchClass TagsBranchClass;
+typedef struct _TagsBranchPrivate TagsBranchPrivate;
+
+#define TYPE_DATA_OBJECT (data_object_get_type ())
+#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject))
+#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass))
+#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
+#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
+#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
+
+typedef struct _DataObject DataObject;
+typedef struct _DataObjectClass DataObjectClass;
+
+#define TYPE_DATA_SOURCE (data_source_get_type ())
+#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
+#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
+#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
+#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
+#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
+
+typedef struct _DataSource DataSource;
+typedef struct _DataSourceClass DataSourceClass;
+
+#define TYPE_TAG (tag_get_type ())
+#define TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG, Tag))
+#define TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG, TagClass))
+#define IS_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG))
+#define IS_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG))
+#define TAG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG, TagClass))
+
+typedef struct _Tag Tag;
+typedef struct _TagClass TagClass;
+
+#define SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY (sidebar_simple_page_entry_get_type ())
+#define SIDEBAR_SIMPLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntry))
+#define SIDEBAR_SIMPLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntryClass))
+#define SIDEBAR_IS_SIMPLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY))
+#define SIDEBAR_IS_SIMPLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY))
+#define SIDEBAR_SIMPLE_PAGE_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntryClass))
+
+typedef struct _SidebarSimplePageEntry SidebarSimplePageEntry;
+typedef struct _SidebarSimplePageEntryClass SidebarSimplePageEntryClass;
+
+#define TAGS_TYPE_SIDEBAR_ENTRY (tags_sidebar_entry_get_type ())
+#define TAGS_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TAGS_TYPE_SIDEBAR_ENTRY, TagsSidebarEntry))
+#define TAGS_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TAGS_TYPE_SIDEBAR_ENTRY, TagsSidebarEntryClass))
+#define TAGS_IS_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TAGS_TYPE_SIDEBAR_ENTRY))
+#define TAGS_IS_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TAGS_TYPE_SIDEBAR_ENTRY))
+#define TAGS_SIDEBAR_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TAGS_TYPE_SIDEBAR_ENTRY, TagsSidebarEntryClass))
+
+typedef struct _TagsSidebarEntry TagsSidebarEntry;
+typedef struct _TagsSidebarEntryClass TagsSidebarEntryClass;
+
+#define TYPE_DATA_COLLECTION (data_collection_get_type ())
+#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
+#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
+#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
+#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
+#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
+
+typedef struct _DataCollection DataCollection;
+typedef struct _DataCollectionClass DataCollectionClass;
+
+#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
+#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
+#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
+#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
+#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
+#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
+
+typedef struct _SourceCollection SourceCollection;
+typedef struct _SourceCollectionClass SourceCollectionClass;
+
+#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ())
+#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection))
+#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
+#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION))
+#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION))
+#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
+
+typedef struct _DatabaseSourceCollection DatabaseSourceCollection;
+typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass;
+
+#define TYPE_CONTAINER_SOURCE_COLLECTION (container_source_collection_get_type ())
+#define CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection))
+#define CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass))
+#define IS_CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE_COLLECTION))
+#define IS_CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONTAINER_SOURCE_COLLECTION))
+#define CONTAINER_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass))
+
+typedef struct _ContainerSourceCollection ContainerSourceCollection;
+typedef struct _ContainerSourceCollectionClass ContainerSourceCollectionClass;
+
+#define TYPE_TAG_SOURCE_COLLECTION (tag_source_collection_get_type ())
+#define TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollection))
+#define TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass))
+#define IS_TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_SOURCE_COLLECTION))
+#define IS_TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_SOURCE_COLLECTION))
+#define TAG_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass))
+
+typedef struct _TagSourceCollection TagSourceCollection;
+typedef struct _TagSourceCollectionClass TagSourceCollectionClass;
+
+#define TYPE_ALTERATION (alteration_get_type ())
+#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration))
+#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass))
+#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION))
+#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION))
+#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass))
+
+typedef struct _Alteration Alteration;
+typedef struct _AlterationClass AlterationClass;
+#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
+
+#define SIDEBAR_TYPE_GROUPING (sidebar_grouping_get_type ())
+#define SIDEBAR_GROUPING(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_GROUPING, SidebarGrouping))
+#define SIDEBAR_GROUPING_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_GROUPING, SidebarGroupingClass))
+#define SIDEBAR_IS_GROUPING(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_GROUPING))
+#define SIDEBAR_IS_GROUPING_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_GROUPING))
+#define SIDEBAR_GROUPING_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_GROUPING, SidebarGroupingClass))
+
+typedef struct _SidebarGrouping SidebarGrouping;
+typedef struct _SidebarGroupingClass SidebarGroupingClass;
+
+#define SIDEBAR_TYPE_HEADER (sidebar_header_get_type ())
+#define SIDEBAR_HEADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_HEADER, SidebarHeader))
+#define SIDEBAR_HEADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_HEADER, SidebarHeaderClass))
+#define SIDEBAR_IS_HEADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_HEADER))
+#define SIDEBAR_IS_HEADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_HEADER))
+#define SIDEBAR_HEADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_HEADER, SidebarHeaderClass))
+
+typedef struct _SidebarHeader SidebarHeader;
+typedef struct _SidebarHeaderClass SidebarHeaderClass;
+
+#define TAGS_TYPE_HEADER (tags_header_get_type ())
+#define TAGS_HEADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TAGS_TYPE_HEADER, TagsHeader))
+#define TAGS_HEADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TAGS_TYPE_HEADER, TagsHeaderClass))
+#define TAGS_IS_HEADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TAGS_TYPE_HEADER))
+#define TAGS_IS_HEADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TAGS_TYPE_HEADER))
+#define TAGS_HEADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TAGS_TYPE_HEADER, TagsHeaderClass))
+
+typedef struct _TagsHeader TagsHeader;
+typedef struct _TagsHeaderClass TagsHeaderClass;
+
+#define SIDEBAR_TYPE_ENTRY (sidebar_entry_get_type ())
+#define SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntry))
+#define SIDEBAR_IS_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_ENTRY))
+#define SIDEBAR_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntryIface))
+
+typedef struct _SidebarEntry SidebarEntry;
+typedef struct _SidebarEntryIface SidebarEntryIface;
+
+#define SIDEBAR_TYPE_TREE (sidebar_tree_get_type ())
+#define SIDEBAR_TREE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_TREE, SidebarTree))
+#define SIDEBAR_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_TREE, SidebarTreeClass))
+#define SIDEBAR_IS_TREE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_TREE))
+#define SIDEBAR_IS_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_TREE))
+#define SIDEBAR_TREE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_TREE, SidebarTreeClass))
+
+typedef struct _SidebarTree SidebarTree;
+typedef struct _SidebarTreeClass SidebarTreeClass;
+
+#define SIDEBAR_BRANCH_TYPE_OPTIONS (sidebar_branch_options_get_type ())
+#define _alteration_unref0(var) ((var == NULL) ? NULL : (var = (alteration_unref (var), NULL)))
+
+#define SIDEBAR_TYPE_RENAMEABLE_ENTRY (sidebar_renameable_entry_get_type ())
+#define SIDEBAR_RENAMEABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_RENAMEABLE_ENTRY, SidebarRenameableEntry))
+#define SIDEBAR_IS_RENAMEABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_RENAMEABLE_ENTRY))
+#define SIDEBAR_RENAMEABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_RENAMEABLE_ENTRY, SidebarRenameableEntryIface))
+
+typedef struct _SidebarRenameableEntry SidebarRenameableEntry;
+typedef struct _SidebarRenameableEntryIface SidebarRenameableEntryIface;
+#define _g_free0(var) (var = (g_free (var), NULL))
+
+#define SIDEBAR_TYPE_EXPANDABLE_ENTRY (sidebar_expandable_entry_get_type ())
+#define SIDEBAR_EXPANDABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_EXPANDABLE_ENTRY, SidebarExpandableEntry))
+#define SIDEBAR_IS_EXPANDABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_EXPANDABLE_ENTRY))
+#define SIDEBAR_EXPANDABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_EXPANDABLE_ENTRY, SidebarExpandableEntryIface))
+
+typedef struct _SidebarExpandableEntry SidebarExpandableEntry;
+typedef struct _SidebarExpandableEntryIface SidebarExpandableEntryIface;
+typedef struct _SidebarGroupingPrivate SidebarGroupingPrivate;
+
+#define SIDEBAR_TYPE_EMPHASIZABLE_ENTRY (sidebar_emphasizable_entry_get_type ())
+#define SIDEBAR_EMPHASIZABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_EMPHASIZABLE_ENTRY, SidebarEmphasizableEntry))
+#define SIDEBAR_IS_EMPHASIZABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_EMPHASIZABLE_ENTRY))
+#define SIDEBAR_EMPHASIZABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_EMPHASIZABLE_ENTRY, SidebarEmphasizableEntryIface))
+
+typedef struct _SidebarEmphasizableEntry SidebarEmphasizableEntry;
+typedef struct _SidebarEmphasizableEntryIface SidebarEmphasizableEntryIface;
+typedef struct _SidebarHeaderPrivate SidebarHeaderPrivate;
+
+#define SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY (sidebar_internal_drop_target_entry_get_type ())
+#define SIDEBAR_INTERNAL_DROP_TARGET_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY, SidebarInternalDropTargetEntry))
+#define SIDEBAR_IS_INTERNAL_DROP_TARGET_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY))
+#define SIDEBAR_INTERNAL_DROP_TARGET_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY, SidebarInternalDropTargetEntryIface))
+
+typedef struct _SidebarInternalDropTargetEntry SidebarInternalDropTargetEntry;
+typedef struct _SidebarInternalDropTargetEntryIface SidebarInternalDropTargetEntryIface;
+
+#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ())
+#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource))
+#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
+#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
+#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
+#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
+
+typedef struct _ThumbnailSource ThumbnailSource;
+typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
+
+#define TYPE_MEDIA_SOURCE (media_source_get_type ())
+#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource))
+#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass))
+#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE))
+#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE))
+#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass))
+
+typedef struct _MediaSource MediaSource;
+typedef struct _MediaSourceClass MediaSourceClass;
+
+#define SIDEBAR_TYPE_INTERNAL_DRAG_SOURCE_ENTRY (sidebar_internal_drag_source_entry_get_type ())
+#define SIDEBAR_INTERNAL_DRAG_SOURCE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_INTERNAL_DRAG_SOURCE_ENTRY, SidebarInternalDragSourceEntry))
+#define SIDEBAR_IS_INTERNAL_DRAG_SOURCE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_INTERNAL_DRAG_SOURCE_ENTRY))
+#define SIDEBAR_INTERNAL_DRAG_SOURCE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_INTERNAL_DRAG_SOURCE_ENTRY, SidebarInternalDragSourceEntryIface))
+
+typedef struct _SidebarInternalDragSourceEntry SidebarInternalDragSourceEntry;
+typedef struct _SidebarInternalDragSourceEntryIface SidebarInternalDragSourceEntryIface;
+
+#define SIDEBAR_TYPE_CONTEXTABLE (sidebar_contextable_get_type ())
+#define SIDEBAR_CONTEXTABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_CONTEXTABLE, SidebarContextable))
+#define SIDEBAR_IS_CONTEXTABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_CONTEXTABLE))
+#define SIDEBAR_CONTEXTABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_CONTEXTABLE, SidebarContextableIface))
+
+typedef struct _SidebarContextable SidebarContextable;
+typedef struct _SidebarContextableIface SidebarContextableIface;
+typedef struct _TagsHeaderPrivate TagsHeaderPrivate;
+
+#define TYPE_APPLICATION (application_get_type ())
+#define APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APPLICATION, Application))
+#define APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APPLICATION, ApplicationClass))
+#define IS_APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APPLICATION))
+#define IS_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APPLICATION))
+#define APPLICATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APPLICATION, ApplicationClass))
+
+typedef struct _Application Application;
+typedef struct _ApplicationClass ApplicationClass;
+#define _application_unref0(var) ((var == NULL) ? NULL : (var = (application_unref (var), NULL)))
+#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
+
+#define TYPE_TEXT_ENTRY_DIALOG_MEDIATOR (text_entry_dialog_mediator_get_type ())
+#define TEXT_ENTRY_DIALOG_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR, TextEntryDialogMediator))
+#define TEXT_ENTRY_DIALOG_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR, TextEntryDialogMediatorClass))
+#define IS_TEXT_ENTRY_DIALOG_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR))
+#define IS_TEXT_ENTRY_DIALOG_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR))
+#define TEXT_ENTRY_DIALOG_MEDIATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR, TextEntryDialogMediatorClass))
+
+typedef struct _TextEntryDialogMediator TextEntryDialogMediator;
+typedef struct _TextEntryDialogMediatorClass TextEntryDialogMediatorClass;
+
+#define TYPE_TAGS_DIALOG (tags_dialog_get_type ())
+#define TAGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAGS_DIALOG, TagsDialog))
+#define TAGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAGS_DIALOG, TagsDialogClass))
+#define IS_TAGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAGS_DIALOG))
+#define IS_TAGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAGS_DIALOG))
+#define TAGS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAGS_DIALOG, TagsDialogClass))
+
+typedef struct _TagsDialog TagsDialog;
+typedef struct _TagsDialogClass TagsDialogClass;
+
+#define TYPE_ADD_TAGS_DIALOG (add_tags_dialog_get_type ())
+#define ADD_TAGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ADD_TAGS_DIALOG, AddTagsDialog))
+#define ADD_TAGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ADD_TAGS_DIALOG, AddTagsDialogClass))
+#define IS_ADD_TAGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ADD_TAGS_DIALOG))
+#define IS_ADD_TAGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ADD_TAGS_DIALOG))
+#define ADD_TAGS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ADD_TAGS_DIALOG, AddTagsDialogClass))
+
+typedef struct _AddTagsDialog AddTagsDialog;
+typedef struct _AddTagsDialogClass AddTagsDialogClass;
+#define _text_entry_dialog_mediator_unref0(var) ((var == NULL) ? NULL : (var = (text_entry_dialog_mediator_unref (var), NULL)))
+
+#define TYPE_COMMAND_MANAGER (command_manager_get_type ())
+#define COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND_MANAGER, CommandManager))
+#define COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COMMAND_MANAGER, CommandManagerClass))
+#define IS_COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND_MANAGER))
+#define IS_COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND_MANAGER))
+#define COMMAND_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND_MANAGER, CommandManagerClass))
+
+typedef struct _CommandManager CommandManager;
+typedef struct _CommandManagerClass CommandManagerClass;
+
+#define TYPE_COMMAND (command_get_type ())
+#define COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND, Command))
+#define COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COMMAND, CommandClass))
+#define IS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND))
+#define IS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND))
+#define COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND, CommandClass))
+
+typedef struct _Command Command;
+typedef struct _CommandClass CommandClass;
+
+#define TYPE_PAGE_COMMAND (page_command_get_type ())
+#define PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_COMMAND, PageCommand))
+#define PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_COMMAND, PageCommandClass))
+#define IS_PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_COMMAND))
+#define IS_PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_COMMAND))
+#define PAGE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_COMMAND, PageCommandClass))
+
+typedef struct _PageCommand PageCommand;
+typedef struct _PageCommandClass PageCommandClass;
+
+#define TYPE_ADD_TAGS_COMMAND (add_tags_command_get_type ())
+#define ADD_TAGS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ADD_TAGS_COMMAND, AddTagsCommand))
+#define ADD_TAGS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ADD_TAGS_COMMAND, AddTagsCommandClass))
+#define IS_ADD_TAGS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ADD_TAGS_COMMAND))
+#define IS_ADD_TAGS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ADD_TAGS_COMMAND))
+#define ADD_TAGS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ADD_TAGS_COMMAND, AddTagsCommandClass))
+
+typedef struct _AddTagsCommand AddTagsCommand;
+typedef struct _AddTagsCommandClass AddTagsCommandClass;
+#define _command_manager_unref0(var) ((var == NULL) ? NULL : (var = (command_manager_unref (var), NULL)))
+
+#define TYPE_REPARENT_TAG_COMMAND (reparent_tag_command_get_type ())
+#define REPARENT_TAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_REPARENT_TAG_COMMAND, ReparentTagCommand))
+#define REPARENT_TAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_REPARENT_TAG_COMMAND, ReparentTagCommandClass))
+#define IS_REPARENT_TAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_REPARENT_TAG_COMMAND))
+#define IS_REPARENT_TAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_REPARENT_TAG_COMMAND))
+#define REPARENT_TAG_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_REPARENT_TAG_COMMAND, ReparentTagCommandClass))
+
+typedef struct _ReparentTagCommand ReparentTagCommand;
+typedef struct _ReparentTagCommandClass ReparentTagCommandClass;
+
+#define TYPE_NEW_ROOT_TAG_COMMAND (new_root_tag_command_get_type ())
+#define NEW_ROOT_TAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_NEW_ROOT_TAG_COMMAND, NewRootTagCommand))
+#define NEW_ROOT_TAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_NEW_ROOT_TAG_COMMAND, NewRootTagCommandClass))
+#define IS_NEW_ROOT_TAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_NEW_ROOT_TAG_COMMAND))
+#define IS_NEW_ROOT_TAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_NEW_ROOT_TAG_COMMAND))
+#define NEW_ROOT_TAG_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_NEW_ROOT_TAG_COMMAND, NewRootTagCommandClass))
+
+typedef struct _NewRootTagCommand NewRootTagCommand;
+typedef struct _NewRootTagCommandClass NewRootTagCommandClass;
+
+#define TYPE_PAGE_WINDOW (page_window_get_type ())
+#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow))
+#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass))
+#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW))
+#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW))
+#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass))
+
+typedef struct _PageWindow PageWindow;
+typedef struct _PageWindowClass PageWindowClass;
+
+#define TYPE_APP_WINDOW (app_window_get_type ())
+#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow))
+#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass))
+#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW))
+#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW))
+#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass))
+
+typedef struct _AppWindow AppWindow;
+typedef struct _AppWindowClass AppWindowClass;
+
+#define TYPE_LIBRARY_WINDOW (library_window_get_type ())
+#define LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_WINDOW, LibraryWindow))
+#define LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_WINDOW, LibraryWindowClass))
+#define IS_LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_WINDOW))
+#define IS_LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_WINDOW))
+#define LIBRARY_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_WINDOW, LibraryWindowClass))
+
+typedef struct _LibraryWindow LibraryWindow;
+typedef struct _LibraryWindowClass LibraryWindowClass;
+
+#define SIDEBAR_TYPE_SELECTABLE_ENTRY (sidebar_selectable_entry_get_type ())
+#define SIDEBAR_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntry))
+#define SIDEBAR_IS_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY))
+#define SIDEBAR_SELECTABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntryIface))
+
+typedef struct _SidebarSelectableEntry SidebarSelectableEntry;
+typedef struct _SidebarSelectableEntryIface SidebarSelectableEntryIface;
+
+#define SIDEBAR_TYPE_PAGE_REPRESENTATIVE (sidebar_page_representative_get_type ())
+#define SIDEBAR_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative))
+#define SIDEBAR_IS_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE))
+#define SIDEBAR_PAGE_REPRESENTATIVE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentativeIface))
+
+typedef struct _SidebarPageRepresentative SidebarPageRepresentative;
+typedef struct _SidebarPageRepresentativeIface SidebarPageRepresentativeIface;
+
+#define TYPE_PAGE (page_get_type ())
+#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page))
+#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass))
+#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE))
+#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE))
+#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass))
+
+typedef struct _Page Page;
+typedef struct _PageClass PageClass;
+typedef struct _SidebarSimplePageEntryPrivate SidebarSimplePageEntryPrivate;
+
+#define SIDEBAR_TYPE_DESTROYABLE_ENTRY (sidebar_destroyable_entry_get_type ())
+#define SIDEBAR_DESTROYABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_DESTROYABLE_ENTRY, SidebarDestroyableEntry))
+#define SIDEBAR_IS_DESTROYABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_DESTROYABLE_ENTRY))
+#define SIDEBAR_DESTROYABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_DESTROYABLE_ENTRY, SidebarDestroyableEntryIface))
+
+typedef struct _SidebarDestroyableEntry SidebarDestroyableEntry;
+typedef struct _SidebarDestroyableEntryIface SidebarDestroyableEntryIface;
+typedef struct _TagsSidebarEntryPrivate TagsSidebarEntryPrivate;
+
+#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ())
+#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage))
+#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
+#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE))
+#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE))
+#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
+
+typedef struct _CheckerboardPage CheckerboardPage;
+typedef struct _CheckerboardPageClass CheckerboardPageClass;
+
+#define TYPE_MEDIA_PAGE (media_page_get_type ())
+#define MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_PAGE, MediaPage))
+#define MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_PAGE, MediaPageClass))
+#define IS_MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_PAGE))
+#define IS_MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_PAGE))
+#define MEDIA_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_PAGE, MediaPageClass))
+
+typedef struct _MediaPage MediaPage;
+typedef struct _MediaPageClass MediaPageClass;
+
+#define TYPE_COLLECTION_PAGE (collection_page_get_type ())
+#define COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COLLECTION_PAGE, CollectionPage))
+#define COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COLLECTION_PAGE, CollectionPageClass))
+#define IS_COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COLLECTION_PAGE))
+#define IS_COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COLLECTION_PAGE))
+#define COLLECTION_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COLLECTION_PAGE, CollectionPageClass))
+
+typedef struct _CollectionPage CollectionPage;
+typedef struct _CollectionPageClass CollectionPageClass;
+
+#define TYPE_TAG_PAGE (tag_page_get_type ())
+#define TAG_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_PAGE, TagPage))
+#define TAG_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_PAGE, TagPageClass))
+#define IS_TAG_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_PAGE))
+#define IS_TAG_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_PAGE))
+#define TAG_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_PAGE, TagPageClass))
+
+typedef struct _TagPage TagPage;
+typedef struct _TagPageClass TagPageClass;
+#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL)))
+
+#define TYPE_SIMPLE_PROXYABLE_COMMAND (simple_proxyable_command_get_type ())
+#define SIMPLE_PROXYABLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SIMPLE_PROXYABLE_COMMAND, SimpleProxyableCommand))
+#define SIMPLE_PROXYABLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SIMPLE_PROXYABLE_COMMAND, SimpleProxyableCommandClass))
+#define IS_SIMPLE_PROXYABLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SIMPLE_PROXYABLE_COMMAND))
+#define IS_SIMPLE_PROXYABLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SIMPLE_PROXYABLE_COMMAND))
+#define SIMPLE_PROXYABLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SIMPLE_PROXYABLE_COMMAND, SimpleProxyableCommandClass))
+
+typedef struct _SimpleProxyableCommand SimpleProxyableCommand;
+typedef struct _SimpleProxyableCommandClass SimpleProxyableCommandClass;
+
+#define TYPE_RENAME_TAG_COMMAND (rename_tag_command_get_type ())
+#define RENAME_TAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_RENAME_TAG_COMMAND, RenameTagCommand))
+#define RENAME_TAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_RENAME_TAG_COMMAND, RenameTagCommandClass))
+#define IS_RENAME_TAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_RENAME_TAG_COMMAND))
+#define IS_RENAME_TAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_RENAME_TAG_COMMAND))
+#define RENAME_TAG_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_RENAME_TAG_COMMAND, RenameTagCommandClass))
+
+typedef struct _RenameTagCommand RenameTagCommand;
+typedef struct _RenameTagCommandClass RenameTagCommandClass;
+
+#define TYPE_DELETE_TAG_COMMAND (delete_tag_command_get_type ())
+#define DELETE_TAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DELETE_TAG_COMMAND, DeleteTagCommand))
+#define DELETE_TAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DELETE_TAG_COMMAND, DeleteTagCommandClass))
+#define IS_DELETE_TAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DELETE_TAG_COMMAND))
+#define IS_DELETE_TAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DELETE_TAG_COMMAND))
+#define DELETE_TAG_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DELETE_TAG_COMMAND, DeleteTagCommandClass))
+
+typedef struct _DeleteTagCommand DeleteTagCommand;
+typedef struct _DeleteTagCommandClass DeleteTagCommandClass;
+
+#define TYPE_TAG_UNTAG_PHOTOS_COMMAND (tag_untag_photos_command_get_type ())
+#define TAG_UNTAG_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_UNTAG_PHOTOS_COMMAND, TagUntagPhotosCommand))
+#define TAG_UNTAG_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_UNTAG_PHOTOS_COMMAND, TagUntagPhotosCommandClass))
+#define IS_TAG_UNTAG_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_UNTAG_PHOTOS_COMMAND))
+#define IS_TAG_UNTAG_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_UNTAG_PHOTOS_COMMAND))
+#define TAG_UNTAG_PHOTOS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_UNTAG_PHOTOS_COMMAND, TagUntagPhotosCommandClass))
+
+typedef struct _TagUntagPhotosCommand TagUntagPhotosCommand;
+typedef struct _TagUntagPhotosCommandClass TagUntagPhotosCommandClass;
+#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
+#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
+#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
+#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
+
+struct _SidebarBranch {
+ GObject parent_instance;
+ SidebarBranchPrivate * priv;
+};
+
+struct _SidebarBranchClass {
+ GObjectClass parent_class;
+};
+
+struct _TagsBranch {
+ SidebarBranch parent_instance;
+ TagsBranchPrivate * priv;
+};
+
+struct _TagsBranchClass {
+ SidebarBranchClass parent_class;
+};
+
+struct _TagsBranchPrivate {
+ GeeHashMap* entry_map;
+};
+
+struct _SidebarEntryIface {
+ GTypeInterface parent_iface;
+ gchar* (*get_sidebar_name) (SidebarEntry* self);
+ gchar* (*get_sidebar_tooltip) (SidebarEntry* self);
+ gchar* (*get_sidebar_icon) (SidebarEntry* self);
+ gchar* (*to_string) (SidebarEntry* self);
+ void (*grafted) (SidebarEntry* self, SidebarTree* tree);
+ void (*pruned) (SidebarEntry* self, SidebarTree* tree);
+};
+
+typedef enum {
+ SIDEBAR_BRANCH_OPTIONS_NONE = 0,
+ SIDEBAR_BRANCH_OPTIONS_HIDE_IF_EMPTY = 1 << 0,
+ SIDEBAR_BRANCH_OPTIONS_AUTO_OPEN_ON_NEW_CHILD = 1 << 1,
+ SIDEBAR_BRANCH_OPTIONS_STARTUP_EXPAND_TO_FIRST_CHILD = 1 << 2,
+ SIDEBAR_BRANCH_OPTIONS_STARTUP_OPEN_GROUPING = 1 << 3
+} SidebarBranchOptions;
+
+struct _SidebarRenameableEntryIface {
+ GTypeInterface parent_iface;
+ void (*rename) (SidebarRenameableEntry* self, const gchar* new_name);
+ gboolean (*is_user_renameable) (SidebarRenameableEntry* self);
+};
+
+struct _SidebarExpandableEntryIface {
+ GTypeInterface parent_iface;
+ gboolean (*expand_on_select) (SidebarExpandableEntry* self);
+};
+
+struct _SidebarGrouping {
+ GObject parent_instance;
+ SidebarGroupingPrivate * priv;
+};
+
+struct _SidebarGroupingClass {
+ GObjectClass parent_class;
+};
+
+struct _SidebarEmphasizableEntryIface {
+ GTypeInterface parent_iface;
+ gboolean (*is_emphasized) (SidebarEmphasizableEntry* self);
+};
+
+struct _SidebarHeader {
+ SidebarGrouping parent_instance;
+ SidebarHeaderPrivate * priv;
+};
+
+struct _SidebarHeaderClass {
+ SidebarGroupingClass parent_class;
+};
+
+struct _SidebarInternalDropTargetEntryIface {
+ GTypeInterface parent_iface;
+ gboolean (*internal_drop_received) (SidebarInternalDropTargetEntry* self, GeeList* sources);
+ gboolean (*internal_drop_received_arbitrary) (SidebarInternalDropTargetEntry* self, GtkSelectionData* data);
+};
+
+struct _SidebarInternalDragSourceEntryIface {
+ GTypeInterface parent_iface;
+ void (*prepare_selection_data) (SidebarInternalDragSourceEntry* self, GtkSelectionData* data);
+};
+
+struct _SidebarContextableIface {
+ GTypeInterface parent_iface;
+ GtkMenu* (*get_sidebar_context_menu) (SidebarContextable* self, GdkEventButton* event);
+};
+
+struct _TagsHeader {
+ SidebarHeader parent_instance;
+ TagsHeaderPrivate * priv;
+};
+
+struct _TagsHeaderClass {
+ SidebarHeaderClass parent_class;
+};
+
+struct _TagsHeaderPrivate {
+ GtkUIManager* ui;
+ GtkMenu* context_menu;
+};
+
+struct _SidebarSelectableEntryIface {
+ GTypeInterface parent_iface;
+};
+
+struct _SidebarPageRepresentativeIface {
+ GTypeInterface parent_iface;
+ gboolean (*has_page) (SidebarPageRepresentative* self);
+ Page* (*get_page) (SidebarPageRepresentative* self);
+};
+
+struct _SidebarSimplePageEntry {
+ GObject parent_instance;
+ SidebarSimplePageEntryPrivate * priv;
+};
+
+struct _SidebarSimplePageEntryClass {
+ GObjectClass parent_class;
+ gchar* (*get_sidebar_name) (SidebarSimplePageEntry* self);
+ gchar* (*get_sidebar_tooltip) (SidebarSimplePageEntry* self);
+ gchar* (*get_sidebar_icon) (SidebarSimplePageEntry* self);
+ gchar* (*to_string) (SidebarSimplePageEntry* self);
+ Page* (*create_page) (SidebarSimplePageEntry* self);
+};
+
+struct _SidebarDestroyableEntryIface {
+ GTypeInterface parent_iface;
+ void (*destroy_source) (SidebarDestroyableEntry* self);
+};
+
+struct _TagsSidebarEntry {
+ SidebarSimplePageEntry parent_instance;
+ TagsSidebarEntryPrivate * priv;
+};
+
+struct _TagsSidebarEntryClass {
+ SidebarSimplePageEntryClass parent_class;
+};
+
+struct _TagsSidebarEntryPrivate {
+ gchar* single_tag_icon;
+ Tag* tag;
+};
+
+
+static gpointer tags_branch_parent_class = NULL;
+extern TagSourceCollection* tag_global;
+static gpointer tags_header_parent_class = NULL;
+static SidebarInternalDropTargetEntryIface* tags_header_sidebar_internal_drop_target_entry_parent_iface = NULL;
+static SidebarInternalDragSourceEntryIface* tags_header_sidebar_internal_drag_source_entry_parent_iface = NULL;
+static SidebarContextableIface* tags_header_sidebar_contextable_parent_iface = NULL;
+static gpointer tags_sidebar_entry_parent_class = NULL;
+static SidebarRenameableEntryIface* tags_sidebar_entry_sidebar_renameable_entry_parent_iface = NULL;
+static SidebarDestroyableEntryIface* tags_sidebar_entry_sidebar_destroyable_entry_parent_iface = NULL;
+static SidebarInternalDropTargetEntryIface* tags_sidebar_entry_sidebar_internal_drop_target_entry_parent_iface = NULL;
+static SidebarExpandableEntryIface* tags_sidebar_entry_sidebar_expandable_entry_parent_iface = NULL;
+static SidebarInternalDragSourceEntryIface* tags_sidebar_entry_sidebar_internal_drag_source_entry_parent_iface = NULL;
+
+GType sidebar_branch_get_type (void) G_GNUC_CONST;
+GType tags_branch_get_type (void) G_GNUC_CONST;
+GType data_object_get_type (void) G_GNUC_CONST;
+GType data_source_get_type (void) G_GNUC_CONST;
+GType tag_get_type (void) G_GNUC_CONST;
+GType sidebar_simple_page_entry_get_type (void) G_GNUC_CONST;
+GType tags_sidebar_entry_get_type (void) G_GNUC_CONST;
+#define TAGS_BRANCH_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TAGS_TYPE_BRANCH, TagsBranchPrivate))
+enum {
+ TAGS_BRANCH_DUMMY_PROPERTY
+};
+gpointer data_collection_ref (gpointer instance);
+void data_collection_unref (gpointer instance);
+GParamSpec* param_spec_data_collection (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void value_set_data_collection (GValue* value, gpointer v_object);
+void value_take_data_collection (GValue* value, gpointer v_object);
+gpointer value_get_data_collection (const GValue* value);
+GType data_collection_get_type (void) G_GNUC_CONST;
+GType source_collection_get_type (void) G_GNUC_CONST;
+GType database_source_collection_get_type (void) G_GNUC_CONST;
+GType container_source_collection_get_type (void) G_GNUC_CONST;
+GType tag_source_collection_get_type (void) G_GNUC_CONST;
+static void tags_branch_on_tags_added_removed (TagsBranch* self, GeeIterable* added_raw, GeeIterable* removed);
+static void _tags_branch_on_tags_added_removed_data_collection_contents_altered (DataCollection* _sender, GeeIterable* added, GeeIterable* removed, gpointer self);
+gpointer alteration_ref (gpointer instance);
+void alteration_unref (gpointer instance);
+GParamSpec* param_spec_alteration (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void value_set_alteration (GValue* value, gpointer v_object);
+void value_take_alteration (GValue* value, gpointer v_object);
+gpointer value_get_alteration (const GValue* value);
+GType alteration_get_type (void) G_GNUC_CONST;
+static void tags_branch_on_tags_altered (TagsBranch* self, GeeMap* altered);
+static void _tags_branch_on_tags_altered_data_collection_items_altered (DataCollection* _sender, GeeMap* items, gpointer self);
+TagsBranch* tags_branch_new (void);
+TagsBranch* tags_branch_construct (GType object_type);
+TagsHeader* tags_header_new (void);
+TagsHeader* tags_header_construct (GType object_type);
+GType sidebar_grouping_get_type (void) G_GNUC_CONST;
+GType sidebar_header_get_type (void) G_GNUC_CONST;
+GType tags_header_get_type (void) G_GNUC_CONST;
+GType sidebar_tree_get_type (void) G_GNUC_CONST;
+GType sidebar_entry_get_type (void) G_GNUC_CONST;
+GType sidebar_branch_options_get_type (void) G_GNUC_CONST;
+static gint tags_branch_comparator (SidebarEntry* a, SidebarEntry* b);
+static gint _tags_branch_comparator_gcompare_func (gconstpointer a, gconstpointer b);
+SidebarBranch* sidebar_branch_new (SidebarEntry* root, SidebarBranchOptions options, GCompareFunc default_comparator, GCompareFunc root_comparator);
+SidebarBranch* sidebar_branch_construct (GType object_type, SidebarEntry* root, SidebarBranchOptions options, GCompareFunc default_comparator, GCompareFunc root_comparator);
+GeeCollection* data_collection_get_all (DataCollection* self);
+TagsSidebarEntry* tags_branch_get_entry_for_tag (TagsBranch* self, Tag* tag);
+gboolean tags_branch_is_user_renameable (TagsBranch* self);
+gint tag_compare_names (Tag* a, Tag* b);
+Tag* tags_sidebar_entry_for_tag (TagsSidebarEntry* self);
+static gint _tag_compare_names_gcompare_data_func (gconstpointer a, gconstpointer b, gpointer self);
+Tag* tag_get_hierarchical_parent (Tag* self);
+TagsSidebarEntry* tags_sidebar_entry_new (Tag* tag);
+TagsSidebarEntry* tags_sidebar_entry_construct (GType object_type, Tag* tag);
+void sidebar_branch_graft (SidebarBranch* self, SidebarEntry* parent, SidebarEntry* entry, GCompareFunc comparator);
+SidebarEntry* sidebar_branch_get_root (SidebarBranch* self);
+void sidebar_branch_prune (SidebarBranch* self, SidebarEntry* entry);
+gboolean alteration_has_detail (Alteration* self, const gchar* subject, const gchar* detail);
+GType sidebar_renameable_entry_get_type (void) G_GNUC_CONST;
+gchar* tag_get_user_visible_name (Tag* self);
+void sidebar_branch_reorder (SidebarBranch* self, SidebarEntry* entry);
+static void tags_branch_finalize (GObject* obj);
+GType sidebar_expandable_entry_get_type (void) G_GNUC_CONST;
+GType sidebar_emphasizable_entry_get_type (void) G_GNUC_CONST;
+GType thumbnail_source_get_type (void) G_GNUC_CONST;
+GType media_source_get_type (void) G_GNUC_CONST;
+GType sidebar_internal_drop_target_entry_get_type (void) G_GNUC_CONST;
+GType sidebar_internal_drag_source_entry_get_type (void) G_GNUC_CONST;
+GType sidebar_contextable_get_type (void) G_GNUC_CONST;
+#define TAGS_HEADER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TAGS_TYPE_HEADER, TagsHeaderPrivate))
+enum {
+ TAGS_HEADER_DUMMY_PROPERTY
+};
+SidebarHeader* sidebar_header_new (const gchar* name, gboolean emphasized);
+SidebarHeader* sidebar_header_construct (GType object_type, const gchar* name, gboolean emphasized);
+static void tags_header_setup_context_menu (TagsHeader* self);
+#define TRANSLATABLE "translatable"
+static void tags_header_on_new_tag (TagsHeader* self);
+static void _tags_header_on_new_tag_gtk_action_callback (GtkAction* action, gpointer self);
+#define RESOURCES_NEW_CHILD_TAG_SIDEBAR_MENU _ ("_New")
+static void _vala_array_add133 (GtkActionEntry** array, int* length, int* size, const GtkActionEntry* value);
+GFile* resources_get_ui (const gchar* filename);
+void app_window_error_message (const gchar* message, GtkWindow* parent);
+gpointer application_ref (gpointer instance);
+void application_unref (gpointer instance);
+GParamSpec* param_spec_application (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void value_set_application (GValue* value, gpointer v_object);
+void value_take_application (GValue* value, gpointer v_object);
+gpointer value_get_application (const GValue* value);
+GType application_get_type (void) G_GNUC_CONST;
+Application* application_get_instance (void);
+void application_panic (Application* self);
+static gboolean tags_header_real_internal_drop_received (SidebarInternalDropTargetEntry* base, GeeList* media);
+gpointer text_entry_dialog_mediator_ref (gpointer instance);
+void text_entry_dialog_mediator_unref (gpointer instance);
+GParamSpec* param_spec_text_entry_dialog_mediator (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void value_set_text_entry_dialog_mediator (GValue* value, gpointer v_object);
+void value_take_text_entry_dialog_mediator (GValue* value, gpointer v_object);
+gpointer value_get_text_entry_dialog_mediator (const GValue* value);
+GType text_entry_dialog_mediator_get_type (void) G_GNUC_CONST;
+GType tags_dialog_get_type (void) G_GNUC_CONST;
+GType add_tags_dialog_get_type (void) G_GNUC_CONST;
+AddTagsDialog* add_tags_dialog_new (void);
+AddTagsDialog* add_tags_dialog_construct (GType object_type);
+gchar** add_tags_dialog_execute (AddTagsDialog* self, int* result_length1);
+gpointer command_manager_ref (gpointer instance);
+void command_manager_unref (gpointer instance);
+GParamSpec* param_spec_command_manager (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void value_set_command_manager (GValue* value, gpointer v_object);
+void value_take_command_manager (GValue* value, gpointer v_object);
+gpointer value_get_command_manager (const GValue* value);
+GType command_manager_get_type (void) G_GNUC_CONST;
+CommandManager* app_window_get_command_manager (void);
+GType command_get_type (void) G_GNUC_CONST;
+void command_manager_execute (CommandManager* self, Command* command);
+AddTagsCommand* add_tags_command_new (gchar** paths, int paths_length1, GeeCollection* sources);
+AddTagsCommand* add_tags_command_construct (GType object_type, gchar** paths, int paths_length1, GeeCollection* sources);
+GType page_command_get_type (void) G_GNUC_CONST;
+GType add_tags_command_get_type (void) G_GNUC_CONST;
+static gboolean tags_header_real_internal_drop_received_arbitrary (SidebarInternalDropTargetEntry* base, GtkSelectionData* data);
+#define LIBRARY_WINDOW_TAG_PATH_MIME_TYPE "shotwell/tag-path"
+gboolean tag_source_collection_exists (TagSourceCollection* self, const gchar* name, gboolean treat_htags_as_root);
+GeeList* hierarchical_tag_utilities_enumerate_path_components (const gchar* in_path);
+Tag* tag_for_path (const gchar* name);
+ReparentTagCommand* reparent_tag_command_new (Tag* tag, const gchar* new_parent_path);
+ReparentTagCommand* reparent_tag_command_construct (GType object_type, Tag* tag, const gchar* new_parent_path);
+GType reparent_tag_command_get_type (void) G_GNUC_CONST;
+static void tags_header_real_prepare_selection_data (SidebarInternalDragSourceEntry* base, GtkSelectionData* data);
+static GtkMenu* tags_header_real_get_sidebar_context_menu (SidebarContextable* base, GdkEventButton* event);
+GType new_root_tag_command_get_type (void) G_GNUC_CONST;
+NewRootTagCommand* new_root_tag_command_new (void);
+NewRootTagCommand* new_root_tag_command_construct (GType object_type);
+GType page_window_get_type (void) G_GNUC_CONST;
+GType app_window_get_type (void) G_GNUC_CONST;
+GType library_window_get_type (void) G_GNUC_CONST;
+LibraryWindow* library_window_get_app (void);
+void library_window_rename_tag_in_sidebar (LibraryWindow* self, Tag* tag);
+Tag* new_root_tag_command_get_created_tag (NewRootTagCommand* self);
+static void tags_header_finalize (GObject* obj);
+GType sidebar_selectable_entry_get_type (void) G_GNUC_CONST;
+GType page_get_type (void) G_GNUC_CONST;
+GType sidebar_page_representative_get_type (void) G_GNUC_CONST;
+GType sidebar_destroyable_entry_get_type (void) G_GNUC_CONST;
+#define TAGS_SIDEBAR_ENTRY_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TAGS_TYPE_SIDEBAR_ENTRY, TagsSidebarEntryPrivate))
+enum {
+ TAGS_SIDEBAR_ENTRY_DUMMY_PROPERTY
+};
+#define RESOURCES_ICON_ONE_TAG "one-tag"
+SidebarSimplePageEntry* sidebar_simple_page_entry_construct (GType object_type);
+void tags_sidebar_entry_init (void);
+void tags_sidebar_entry_terminate (void);
+static gchar* tags_sidebar_entry_real_get_sidebar_name (SidebarSimplePageEntry* base);
+static gchar* tags_sidebar_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base);
+static Page* tags_sidebar_entry_real_create_page (SidebarSimplePageEntry* base);
+TagPage* tag_page_new (Tag* tag);
+TagPage* tag_page_construct (GType object_type, Tag* tag);
+GType checkerboard_page_get_type (void) G_GNUC_CONST;
+GType media_page_get_type (void) G_GNUC_CONST;
+GType collection_page_get_type (void) G_GNUC_CONST;
+GType tag_page_get_type (void) G_GNUC_CONST;
+static gboolean tags_sidebar_entry_real_is_user_renameable (SidebarRenameableEntry* base);
+static void tags_sidebar_entry_real_rename (SidebarRenameableEntry* base, const gchar* new_name);
+gchar* tag_prep_tag_name (const gchar* name);
+RenameTagCommand* rename_tag_command_new (Tag* tag, const gchar* new_name);
+RenameTagCommand* rename_tag_command_construct (GType object_type, Tag* tag, const gchar* new_name);
+GType simple_proxyable_command_get_type (void) G_GNUC_CONST;
+GType rename_tag_command_get_type (void) G_GNUC_CONST;
+static void tags_sidebar_entry_real_destroy_source (SidebarDestroyableEntry* base);
+gboolean dialogs_confirm_delete_tag (Tag* tag);
+DeleteTagCommand* delete_tag_command_new (Tag* tag);
+DeleteTagCommand* delete_tag_command_construct (GType object_type, Tag* tag);
+GType delete_tag_command_get_type (void) G_GNUC_CONST;
+static gboolean tags_sidebar_entry_real_internal_drop_received (SidebarInternalDropTargetEntry* base, GeeList* media);
+TagUntagPhotosCommand* tag_untag_photos_command_new (Tag* tag, GeeCollection* sources, gint count, gboolean attach);
+TagUntagPhotosCommand* tag_untag_photos_command_construct (GType object_type, Tag* tag, GeeCollection* sources, gint count, gboolean attach);
+GType tag_untag_photos_command_get_type (void) G_GNUC_CONST;
+static gboolean tags_sidebar_entry_real_internal_drop_received_arbitrary (SidebarInternalDropTargetEntry* base, GtkSelectionData* data);
+gchar* tag_get_path (Tag* self);
+GeeList* hierarchical_tag_utilities_enumerate_parent_paths (const gchar* in_path);
+static gboolean tags_sidebar_entry_real_expand_on_select (SidebarExpandableEntry* base);
+static void tags_sidebar_entry_real_prepare_selection_data (SidebarInternalDragSourceEntry* base, GtkSelectionData* data);
+static void tags_sidebar_entry_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);
+
+
+static void _tags_branch_on_tags_added_removed_data_collection_contents_altered (DataCollection* _sender, GeeIterable* added, GeeIterable* removed, gpointer self) {
+#line 26 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ tags_branch_on_tags_added_removed ((TagsBranch*) self, added, removed);
+#line 885 "Branch.c"
+}
+
+
+static void _tags_branch_on_tags_altered_data_collection_items_altered (DataCollection* _sender, GeeMap* items, gpointer self) {
+#line 27 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ tags_branch_on_tags_altered ((TagsBranch*) self, items);
+#line 892 "Branch.c"
+}
+
+
+static gint _tags_branch_comparator_gcompare_func (gconstpointer a, gconstpointer b) {
+ gint result;
+ result = tags_branch_comparator ((SidebarEntry*) a, (SidebarEntry*) b);
+#line 11 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ return result;
+#line 901 "Branch.c"
+}
+
+
+TagsBranch* tags_branch_construct (GType object_type) {
+ TagsBranch * self = NULL;
+ TagsHeader* _tmp0_ = NULL;
+ TagsHeader* _tmp1_ = NULL;
+ TagSourceCollection* _tmp2_ = NULL;
+ GeeCollection* _tmp3_ = NULL;
+ GeeCollection* _tmp4_ = NULL;
+ TagSourceCollection* _tmp5_ = NULL;
+ TagSourceCollection* _tmp6_ = NULL;
+#line 11 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp0_ = tags_header_new ();
+#line 11 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp1_ = _tmp0_;
+#line 11 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ self = (TagsBranch*) sidebar_branch_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, SIDEBAR_TYPE_ENTRY, SidebarEntry), (SIDEBAR_BRANCH_OPTIONS_HIDE_IF_EMPTY | SIDEBAR_BRANCH_OPTIONS_AUTO_OPEN_ON_NEW_CHILD) | SIDEBAR_BRANCH_OPTIONS_STARTUP_OPEN_GROUPING, _tags_branch_comparator_gcompare_func, NULL);
+#line 11 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_object_unref0 (_tmp1_);
+#line 18 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp2_ = tag_global;
+#line 18 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp3_ = data_collection_get_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_COLLECTION, DataCollection));
+#line 18 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp4_ = _tmp3_;
+#line 18 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ tags_branch_on_tags_added_removed (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ITERABLE, GeeIterable), NULL);
+#line 18 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_object_unref0 (_tmp4_);
+#line 21 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp5_ = tag_global;
+#line 21 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_DATA_COLLECTION, DataCollection), "contents-altered", (GCallback) _tags_branch_on_tags_added_removed_data_collection_contents_altered, self, 0);
+#line 22 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp6_ = tag_global;
+#line 22 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_DATA_COLLECTION, DataCollection), "items-altered", (GCallback) _tags_branch_on_tags_altered_data_collection_items_altered, self, 0);
+#line 10 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ return self;
+#line 942 "Branch.c"
+}
+
+
+TagsBranch* tags_branch_new (void) {
+#line 10 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ return tags_branch_construct (TAGS_TYPE_BRANCH);
+#line 949 "Branch.c"
+}
+
+
+TagsSidebarEntry* tags_branch_get_entry_for_tag (TagsBranch* self, Tag* tag) {
+ TagsSidebarEntry* result = NULL;
+ GeeHashMap* _tmp0_ = NULL;
+ Tag* _tmp1_ = NULL;
+ gpointer _tmp2_ = NULL;
+#line 30 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ g_return_val_if_fail (TAGS_IS_BRANCH (self), NULL);
+#line 30 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ g_return_val_if_fail (IS_TAG (tag), NULL);
+#line 31 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp0_ = self->priv->entry_map;
+#line 31 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp1_ = tag;
+#line 31 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp2_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp1_);
+#line 31 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ result = (TagsSidebarEntry*) _tmp2_;
+#line 31 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ return result;
+#line 972 "Branch.c"
+}
+
+
+gboolean tags_branch_is_user_renameable (TagsBranch* self) {
+ gboolean result = FALSE;
+#line 34 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ g_return_val_if_fail (TAGS_IS_BRANCH (self), FALSE);
+#line 35 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ result = TRUE;
+#line 35 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ return result;
+#line 984 "Branch.c"
+}
+
+
+static gint tags_branch_comparator (SidebarEntry* a, SidebarEntry* b) {
+ gint result = 0;
+ SidebarEntry* _tmp0_ = NULL;
+ SidebarEntry* _tmp1_ = NULL;
+ SidebarEntry* _tmp2_ = NULL;
+ Tag* _tmp3_ = NULL;
+ Tag* _tmp4_ = NULL;
+ SidebarEntry* _tmp5_ = NULL;
+ Tag* _tmp6_ = NULL;
+ Tag* _tmp7_ = NULL;
+ gint _tmp8_ = 0;
+ gint _tmp9_ = 0;
+#line 38 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ g_return_val_if_fail (SIDEBAR_IS_ENTRY (a), 0);
+#line 38 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ g_return_val_if_fail (SIDEBAR_IS_ENTRY (b), 0);
+#line 39 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp0_ = a;
+#line 39 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp1_ = b;
+#line 39 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ if (_tmp0_ == _tmp1_) {
+#line 40 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ result = 0;
+#line 40 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ return result;
+#line 1014 "Branch.c"
+ }
+#line 42 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp2_ = a;
+#line 42 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp3_ = tags_sidebar_entry_for_tag (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TAGS_TYPE_SIDEBAR_ENTRY, TagsSidebarEntry));
+#line 42 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp4_ = _tmp3_;
+#line 42 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp5_ = b;
+#line 42 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp6_ = tags_sidebar_entry_for_tag (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TAGS_TYPE_SIDEBAR_ENTRY, TagsSidebarEntry));
+#line 42 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp7_ = _tmp6_;
+#line 42 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp8_ = tag_compare_names (_tmp4_, _tmp7_);
+#line 42 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp9_ = _tmp8_;
+#line 42 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_object_unref0 (_tmp7_);
+#line 42 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_object_unref0 (_tmp4_);
+#line 42 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ result = _tmp9_;
+#line 42 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ return result;
+#line 1040 "Branch.c"
+}
+
+
+static gint _tag_compare_names_gcompare_data_func (gconstpointer a, gconstpointer b, gpointer self) {
+ gint result;
+ result = tag_compare_names ((Tag*) a, (Tag*) b);
+#line 57 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ return result;
+#line 1049 "Branch.c"
+}
+
+
+static gpointer _g_object_ref0 (gpointer self) {
+#line 59 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ return self ? g_object_ref (self) : NULL;
+#line 1056 "Branch.c"
+}
+
+
+static void tags_branch_on_tags_added_removed (TagsBranch* self, GeeIterable* added_raw, GeeIterable* removed) {
+ Tag* restore_point = NULL;
+ GeeIterable* _tmp0_ = NULL;
+ GeeIterable* _tmp49_ = NULL;
+#line 46 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ g_return_if_fail (TAGS_IS_BRANCH (self));
+#line 46 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ g_return_if_fail ((added_raw == NULL) || GEE_IS_ITERABLE (added_raw));
+#line 46 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ g_return_if_fail ((removed == NULL) || GEE_IS_ITERABLE (removed));
+#line 51 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ restore_point = NULL;
+#line 53 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp0_ = added_raw;
+#line 53 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ if (_tmp0_ != NULL) {
+#line 1076 "Branch.c"
+ GeeSortedSet* added = NULL;
+ GeeTreeSet* _tmp1_ = NULL;
+#line 57 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp1_ = gee_tree_set_new (TYPE_TAG, (GBoxedCopyFunc) g_object_ref, g_object_unref, _tag_compare_names_gcompare_data_func, NULL, NULL);
+#line 57 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ added = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_SORTED_SET, GeeSortedSet);
+#line 1083 "Branch.c"
+ {
+ GeeIterator* _object_it = NULL;
+ GeeIterable* _tmp2_ = NULL;
+ GeeIterator* _tmp3_ = NULL;
+#line 58 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp2_ = added_raw;
+#line 58 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp3_ = gee_iterable_iterator (_tmp2_);
+#line 58 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _object_it = _tmp3_;
+#line 58 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ while (TRUE) {
+#line 1096 "Branch.c"
+ GeeIterator* _tmp4_ = NULL;
+ gboolean _tmp5_ = FALSE;
+ DataObject* object = NULL;
+ GeeIterator* _tmp6_ = NULL;
+ gpointer _tmp7_ = NULL;
+ Tag* tag = NULL;
+ DataObject* _tmp8_ = NULL;
+ Tag* _tmp9_ = NULL;
+ GeeSortedSet* _tmp10_ = NULL;
+ Tag* _tmp11_ = NULL;
+#line 58 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp4_ = _object_it;
+#line 58 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp5_ = gee_iterator_next (_tmp4_);
+#line 58 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ if (!_tmp5_) {
+#line 58 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ break;
+#line 1115 "Branch.c"
+ }
+#line 58 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp6_ = _object_it;
+#line 58 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp7_ = gee_iterator_get (_tmp6_);
+#line 58 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ object = (DataObject*) _tmp7_;
+#line 59 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp8_ = object;
+#line 59 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp9_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_TAG, Tag));
+#line 59 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ tag = _tmp9_;
+#line 60 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp10_ = added;
+#line 60 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp11_ = tag;
+#line 60 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_COLLECTION, GeeCollection), _tmp11_);
+#line 58 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_object_unref0 (tag);
+#line 58 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_object_unref0 (object);
+#line 1139 "Branch.c"
+ }
+#line 58 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_object_unref0 (_object_it);
+#line 1143 "Branch.c"
+ }
+ {
+ GeeIterator* _tag_it = NULL;
+ GeeSortedSet* _tmp12_ = NULL;
+ GeeIterator* _tmp13_ = NULL;
+#line 63 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp12_ = added;
+#line 63 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp13_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ITERABLE, GeeIterable));
+#line 63 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tag_it = _tmp13_;
+#line 63 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ while (TRUE) {
+#line 1157 "Branch.c"
+ GeeIterator* _tmp14_ = NULL;
+ gboolean _tmp15_ = FALSE;
+ Tag* tag = NULL;
+ GeeIterator* _tmp16_ = NULL;
+ gpointer _tmp17_ = NULL;
+ Tag* parent_tag = NULL;
+ Tag* _tmp18_ = NULL;
+ Tag* _tmp19_ = NULL;
+ TagsSidebarEntry* entry = NULL;
+ Tag* _tmp31_ = NULL;
+ TagsSidebarEntry* _tmp32_ = NULL;
+ GeeHashMap* _tmp33_ = NULL;
+ Tag* _tmp34_ = NULL;
+ TagsSidebarEntry* _tmp35_ = NULL;
+ Tag* _tmp36_ = NULL;
+ Tag* _tmp37_ = NULL;
+ Tag* _tmp38_ = NULL;
+ Tag* _tmp47_ = NULL;
+ Tag* _tmp48_ = NULL;
+#line 63 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp14_ = _tag_it;
+#line 63 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp15_ = gee_iterator_next (_tmp14_);
+#line 63 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ if (!_tmp15_) {
+#line 63 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ break;
+#line 1185 "Branch.c"
+ }
+#line 63 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp16_ = _tag_it;
+#line 63 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp17_ = gee_iterator_get (_tmp16_);
+#line 63 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ tag = (Tag*) _tmp17_;
+#line 66 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp18_ = tag;
+#line 66 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp19_ = tag_get_hierarchical_parent (_tmp18_);
+#line 66 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ parent_tag = _tmp19_;
+#line 67 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ while (TRUE) {
+#line 1201 "Branch.c"
+ Tag* _tmp20_ = NULL;
+ GeeHashMap* _tmp21_ = NULL;
+ Tag* _tmp22_ = NULL;
+ gboolean _tmp23_ = FALSE;
+ Tag* _tmp29_ = NULL;
+ Tag* _tmp30_ = NULL;
+#line 67 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp20_ = parent_tag;
+#line 67 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ if (!(_tmp20_ != NULL)) {
+#line 67 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ break;
+#line 1214 "Branch.c"
+ }
+#line 68 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp21_ = self->priv->entry_map;
+#line 68 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp22_ = parent_tag;
+#line 68 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp23_ = gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp22_);
+#line 68 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ if (!_tmp23_) {
+#line 1224 "Branch.c"
+ TagsSidebarEntry* parent_entry = NULL;
+ Tag* _tmp24_ = NULL;
+ TagsSidebarEntry* _tmp25_ = NULL;
+ GeeHashMap* _tmp26_ = NULL;
+ Tag* _tmp27_ = NULL;
+ TagsSidebarEntry* _tmp28_ = NULL;
+#line 69 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp24_ = parent_tag;
+#line 69 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp25_ = tags_sidebar_entry_new (_tmp24_);
+#line 69 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ parent_entry = _tmp25_;
+#line 70 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp26_ = self->priv->entry_map;
+#line 70 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp27_ = parent_tag;
+#line 70 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp28_ = parent_entry;
+#line 70 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp27_, _tmp28_);
+#line 68 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_object_unref0 (parent_entry);
+#line 1247 "Branch.c"
+ }
+#line 73 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp29_ = parent_tag;
+#line 73 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp30_ = tag_get_hierarchical_parent (_tmp29_);
+#line 73 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_object_unref0 (parent_tag);
+#line 73 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ parent_tag = _tmp30_;
+#line 1257 "Branch.c"
+ }
+#line 77 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp31_ = tag;
+#line 77 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp32_ = tags_sidebar_entry_new (_tmp31_);
+#line 77 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ entry = _tmp32_;
+#line 78 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp33_ = self->priv->entry_map;
+#line 78 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp34_ = tag;
+#line 78 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp35_ = entry;
+#line 78 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp34_, _tmp35_);
+#line 80 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp36_ = tag;
+#line 80 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp37_ = tag_get_hierarchical_parent (_tmp36_);
+#line 80 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_object_unref0 (parent_tag);
+#line 80 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ parent_tag = _tmp37_;
+#line 81 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp38_ = parent_tag;
+#line 81 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ if (_tmp38_ != NULL) {
+#line 1285 "Branch.c"
+ TagsSidebarEntry* parent_entry = NULL;
+ GeeHashMap* _tmp39_ = NULL;
+ Tag* _tmp40_ = NULL;
+ gpointer _tmp41_ = NULL;
+ TagsSidebarEntry* _tmp42_ = NULL;
+ TagsSidebarEntry* _tmp43_ = NULL;
+#line 82 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp39_ = self->priv->entry_map;
+#line 82 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp40_ = parent_tag;
+#line 82 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp41_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp40_);
+#line 82 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ parent_entry = (TagsSidebarEntry*) _tmp41_;
+#line 83 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp42_ = parent_entry;
+#line 83 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp43_ = entry;
+#line 83 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ sidebar_branch_graft (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, SIDEBAR_TYPE_ENTRY, SidebarEntry), G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, SIDEBAR_TYPE_ENTRY, SidebarEntry), NULL);
+#line 81 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_object_unref0 (parent_entry);
+#line 1308 "Branch.c"
+ } else {
+ SidebarEntry* _tmp44_ = NULL;
+ SidebarEntry* _tmp45_ = NULL;
+ TagsSidebarEntry* _tmp46_ = NULL;
+#line 85 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp44_ = sidebar_branch_get_root (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch));
+#line 85 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp45_ = _tmp44_;
+#line 85 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp46_ = entry;
+#line 85 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ sidebar_branch_graft (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), _tmp45_, G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, SIDEBAR_TYPE_ENTRY, SidebarEntry), NULL);
+#line 85 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_object_unref0 (_tmp45_);
+#line 1323 "Branch.c"
+ }
+#line 90 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp47_ = tag;
+#line 90 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp48_ = _g_object_ref0 (_tmp47_);
+#line 90 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_object_unref0 (restore_point);
+#line 90 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ restore_point = _tmp48_;
+#line 63 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_object_unref0 (entry);
+#line 63 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_object_unref0 (parent_tag);
+#line 63 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_object_unref0 (tag);
+#line 1339 "Branch.c"
+ }
+#line 63 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_object_unref0 (_tag_it);
+#line 1343 "Branch.c"
+ }
+#line 53 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_object_unref0 (added);
+#line 1347 "Branch.c"
+ }
+#line 94 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp49_ = removed;
+#line 94 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ if (_tmp49_ != NULL) {
+#line 1353 "Branch.c"
+ {
+ GeeIterator* _object_it = NULL;
+ GeeIterable* _tmp50_ = NULL;
+ GeeIterator* _tmp51_ = NULL;
+#line 95 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp50_ = removed;
+#line 95 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp51_ = gee_iterable_iterator (_tmp50_);
+#line 95 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _object_it = _tmp51_;
+#line 95 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ while (TRUE) {
+#line 1366 "Branch.c"
+ GeeIterator* _tmp52_ = NULL;
+ gboolean _tmp53_ = FALSE;
+ DataObject* object = NULL;
+ GeeIterator* _tmp54_ = NULL;
+ gpointer _tmp55_ = NULL;
+ Tag* tag = NULL;
+ DataObject* _tmp56_ = NULL;
+ Tag* _tmp57_ = NULL;
+ TagsSidebarEntry* entry = NULL;
+ GeeHashMap* _tmp58_ = NULL;
+ Tag* _tmp59_ = NULL;
+ gpointer _tmp60_ = NULL;
+ TagsSidebarEntry* _tmp61_ = NULL;
+ gboolean is_removed = FALSE;
+ GeeHashMap* _tmp62_ = NULL;
+ Tag* _tmp63_ = NULL;
+ gboolean _tmp64_ = FALSE;
+ gboolean _tmp65_ = FALSE;
+ TagsSidebarEntry* _tmp66_ = NULL;
+#line 95 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp52_ = _object_it;
+#line 95 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp53_ = gee_iterator_next (_tmp52_);
+#line 95 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ if (!_tmp53_) {
+#line 95 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ break;
+#line 1394 "Branch.c"
+ }
+#line 95 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp54_ = _object_it;
+#line 95 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp55_ = gee_iterator_get (_tmp54_);
+#line 95 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ object = (DataObject*) _tmp55_;
+#line 96 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp56_ = object;
+#line 96 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp57_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp56_, TYPE_TAG, Tag));
+#line 96 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ tag = _tmp57_;
+#line 98 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp58_ = self->priv->entry_map;
+#line 98 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp59_ = tag;
+#line 98 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp60_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp58_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp59_);
+#line 98 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ entry = (TagsSidebarEntry*) _tmp60_;
+#line 99 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp61_ = entry;
+#line 99 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _vala_assert (_tmp61_ != NULL, "entry != null");
+#line 101 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp62_ = self->priv->entry_map;
+#line 101 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp63_ = tag;
+#line 101 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp64_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp62_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp63_, NULL);
+#line 101 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ is_removed = _tmp64_;
+#line 102 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp65_ = is_removed;
+#line 102 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _vala_assert (_tmp65_, "is_removed");
+#line 104 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp66_ = entry;
+#line 104 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ sidebar_branch_prune (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), G_TYPE_CHECK_INSTANCE_CAST (_tmp66_, SIDEBAR_TYPE_ENTRY, SidebarEntry));
+#line 95 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_object_unref0 (entry);
+#line 95 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_object_unref0 (tag);
+#line 95 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_object_unref0 (object);
+#line 1442 "Branch.c"
+ }
+#line 95 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_object_unref0 (_object_it);
+#line 1446 "Branch.c"
+ }
+ }
+#line 46 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_object_unref0 (restore_point);
+#line 1451 "Branch.c"
+}
+
+
+static void tags_branch_on_tags_altered (TagsBranch* self, GeeMap* altered) {
+#line 109 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ g_return_if_fail (TAGS_IS_BRANCH (self));
+#line 109 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ g_return_if_fail (GEE_IS_MAP (altered));
+#line 1460 "Branch.c"
+ {
+ GeeIterator* _object_it = NULL;
+ GeeMap* _tmp0_ = NULL;
+ GeeSet* _tmp1_ = NULL;
+ GeeSet* _tmp2_ = NULL;
+ GeeSet* _tmp3_ = NULL;
+ GeeIterator* _tmp4_ = NULL;
+ GeeIterator* _tmp5_ = NULL;
+#line 110 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp0_ = altered;
+#line 110 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp1_ = gee_map_get_keys (_tmp0_);
+#line 110 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp2_ = _tmp1_;
+#line 110 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp3_ = _tmp2_;
+#line 110 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable));
+#line 110 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp5_ = _tmp4_;
+#line 110 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_object_unref0 (_tmp3_);
+#line 110 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _object_it = _tmp5_;
+#line 110 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ while (TRUE) {
+#line 1487 "Branch.c"
+ GeeIterator* _tmp6_ = NULL;
+ gboolean _tmp7_ = FALSE;
+ DataObject* object = NULL;
+ GeeIterator* _tmp8_ = NULL;
+ gpointer _tmp9_ = NULL;
+ GeeMap* _tmp10_ = NULL;
+ DataObject* _tmp11_ = NULL;
+ gpointer _tmp12_ = NULL;
+ Alteration* _tmp13_ = NULL;
+ gboolean _tmp14_ = FALSE;
+ gboolean _tmp15_ = FALSE;
+ Tag* tag = NULL;
+ DataObject* _tmp16_ = NULL;
+ Tag* _tmp17_ = NULL;
+ TagsSidebarEntry* entry = NULL;
+ GeeHashMap* _tmp18_ = NULL;
+ Tag* _tmp19_ = NULL;
+ gpointer _tmp20_ = NULL;
+ TagsSidebarEntry* _tmp21_ = NULL;
+ TagsSidebarEntry* _tmp22_ = NULL;
+ Tag* _tmp23_ = NULL;
+ gchar* _tmp24_ = NULL;
+ gchar* _tmp25_ = NULL;
+ TagsSidebarEntry* _tmp26_ = NULL;
+ Tag* _tmp27_ = NULL;
+ gchar* _tmp28_ = NULL;
+ gchar* _tmp29_ = NULL;
+ TagsSidebarEntry* _tmp30_ = NULL;
+#line 110 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp6_ = _object_it;
+#line 110 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp7_ = gee_iterator_next (_tmp6_);
+#line 110 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ if (!_tmp7_) {
+#line 110 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ break;
+#line 1524 "Branch.c"
+ }
+#line 110 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp8_ = _object_it;
+#line 110 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp9_ = gee_iterator_get (_tmp8_);
+#line 110 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ object = (DataObject*) _tmp9_;
+#line 111 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp10_ = altered;
+#line 111 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp11_ = object;
+#line 111 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp12_ = gee_map_get (_tmp10_, _tmp11_);
+#line 111 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp13_ = (Alteration*) _tmp12_;
+#line 111 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp14_ = alteration_has_detail (_tmp13_, "metadata", "name");
+#line 111 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp15_ = !_tmp14_;
+#line 111 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _alteration_unref0 (_tmp13_);
+#line 111 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ if (_tmp15_) {
+#line 112 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_object_unref0 (object);
+#line 112 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ continue;
+#line 1552 "Branch.c"
+ }
+#line 114 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp16_ = object;
+#line 114 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp17_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_TAG, Tag));
+#line 114 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ tag = _tmp17_;
+#line 115 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp18_ = self->priv->entry_map;
+#line 115 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp19_ = tag;
+#line 115 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp20_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp19_);
+#line 115 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ entry = (TagsSidebarEntry*) _tmp20_;
+#line 116 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp21_ = entry;
+#line 116 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _vala_assert (_tmp21_ != NULL, "entry != null");
+#line 118 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp22_ = entry;
+#line 118 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp23_ = tag;
+#line 118 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp24_ = tag_get_user_visible_name (_tmp23_);
+#line 118 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp25_ = _tmp24_;
+#line 118 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, SIDEBAR_TYPE_RENAMEABLE_ENTRY, SidebarRenameableEntry), "sidebar-name-changed", _tmp25_);
+#line 118 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_free0 (_tmp25_);
+#line 119 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp26_ = entry;
+#line 119 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp27_ = tag;
+#line 119 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp28_ = tag_get_user_visible_name (_tmp27_);
+#line 119 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp29_ = _tmp28_;
+#line 119 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, SIDEBAR_TYPE_ENTRY, SidebarEntry), "sidebar-tooltip-changed", _tmp29_);
+#line 119 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_free0 (_tmp29_);
+#line 120 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp30_ = entry;
+#line 120 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ sidebar_branch_reorder (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, SIDEBAR_TYPE_ENTRY, SidebarEntry));
+#line 110 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_object_unref0 (entry);
+#line 110 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_object_unref0 (tag);
+#line 110 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_object_unref0 (object);
+#line 1606 "Branch.c"
+ }
+#line 110 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_object_unref0 (_object_it);
+#line 1610 "Branch.c"
+ }
+}
+
+
+static void tags_branch_class_init (TagsBranchClass * klass) {
+#line 7 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ tags_branch_parent_class = g_type_class_peek_parent (klass);
+#line 7 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ g_type_class_add_private (klass, sizeof (TagsBranchPrivate));
+#line 7 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ G_OBJECT_CLASS (klass)->finalize = tags_branch_finalize;
+#line 1622 "Branch.c"
+}
+
+
+static void tags_branch_instance_init (TagsBranch * self) {
+ GeeHashMap* _tmp0_ = NULL;
+#line 7 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ self->priv = TAGS_BRANCH_GET_PRIVATE (self);
+#line 8 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp0_ = gee_hash_map_new (TYPE_TAG, (GBoxedCopyFunc) g_object_ref, g_object_unref, TAGS_TYPE_SIDEBAR_ENTRY, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
+#line 8 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ self->priv->entry_map = _tmp0_;
+#line 1634 "Branch.c"
+}
+
+
+static void tags_branch_finalize (GObject* obj) {
+ TagsBranch * self;
+ TagSourceCollection* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
+ TagSourceCollection* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+#line 7 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, TAGS_TYPE_BRANCH, TagsBranch);
+#line 26 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp0_ = tag_global;
+#line 26 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ g_signal_parse_name ("contents-altered", TYPE_DATA_COLLECTION, &_tmp1_, NULL, FALSE);
+#line 26 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _tags_branch_on_tags_added_removed_data_collection_contents_altered, self);
+#line 27 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp2_ = tag_global;
+#line 27 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ g_signal_parse_name ("items-altered", TYPE_DATA_COLLECTION, &_tmp3_, NULL, FALSE);
+#line 27 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _tags_branch_on_tags_altered_data_collection_items_altered, self);
+#line 8 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_object_unref0 (self->priv->entry_map);
+#line 7 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ G_OBJECT_CLASS (tags_branch_parent_class)->finalize (obj);
+#line 1662 "Branch.c"
+}
+
+
+GType tags_branch_get_type (void) {
+ static volatile gsize tags_branch_type_id__volatile = 0;
+ if (g_once_init_enter (&tags_branch_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (TagsBranchClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tags_branch_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TagsBranch), 0, (GInstanceInitFunc) tags_branch_instance_init, NULL };
+ GType tags_branch_type_id;
+ tags_branch_type_id = g_type_register_static (SIDEBAR_TYPE_BRANCH, "TagsBranch", &g_define_type_info, 0);
+ g_once_init_leave (&tags_branch_type_id__volatile, tags_branch_type_id);
+ }
+ return tags_branch_type_id__volatile;
+}
+
+
+TagsHeader* tags_header_construct (GType object_type) {
+ TagsHeader * self = NULL;
+ const gchar* _tmp0_ = NULL;
+#line 131 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp0_ = _ ("Tags");
+#line 131 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ self = (TagsHeader*) sidebar_header_construct (object_type, _tmp0_, TRUE);
+#line 132 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ tags_header_setup_context_menu (self);
+#line 130 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ return self;
+#line 1689 "Branch.c"
+}
+
+
+TagsHeader* tags_header_new (void) {
+#line 130 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ return tags_header_construct (TAGS_TYPE_HEADER);
+#line 1696 "Branch.c"
+}
+
+
+static void _tags_header_on_new_tag_gtk_action_callback (GtkAction* action, gpointer self) {
+#line 139 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ tags_header_on_new_tag ((TagsHeader*) self);
+#line 1703 "Branch.c"
+}
+
+
+static void _vala_array_add133 (GtkActionEntry** array, int* length, int* size, const GtkActionEntry* value) {
+#line 141 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ if ((*length) == (*size)) {
+#line 141 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 141 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ *array = g_renew (GtkActionEntry, *array, *size);
+#line 1714 "Branch.c"
+ }
+#line 141 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ (*array)[(*length)++] = *value;
+#line 1718 "Branch.c"
+}
+
+
+static void tags_header_setup_context_menu (TagsHeader* self) {
+ GtkActionGroup* group = NULL;
+ GtkActionGroup* _tmp0_ = NULL;
+ GtkActionEntry* actions = NULL;
+ GtkActionEntry* _tmp1_ = NULL;
+ gint actions_length1 = 0;
+ gint _actions_size_ = 0;
+ GtkActionEntry new_tag = {0};
+ GtkActionEntry _tmp2_ = {0};
+ GtkActionEntry* _tmp3_ = NULL;
+ gint _tmp3__length1 = 0;
+ GtkActionEntry _tmp4_ = {0};
+ GtkActionEntry* _tmp5_ = NULL;
+ gint _tmp5__length1 = 0;
+ GtkUIManager* _tmp6_ = NULL;
+ GFile* ui_file = NULL;
+ GFile* _tmp7_ = NULL;
+ GtkUIManager* _tmp19_ = NULL;
+ GtkWidget* _tmp20_ = NULL;
+ GtkMenu* _tmp21_ = NULL;
+ GtkUIManager* _tmp22_ = NULL;
+ GError * _inner_error_ = NULL;
+#line 135 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ g_return_if_fail (TAGS_IS_HEADER (self));
+#line 136 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp0_ = gtk_action_group_new ("SidebarDefault");
+#line 136 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ group = _tmp0_;
+#line 137 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp1_ = g_new0 (GtkActionEntry, 0);
+#line 137 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ actions = _tmp1_;
+#line 137 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ actions_length1 = 0;
+#line 137 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _actions_size_ = actions_length1;
+#line 139 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp2_.name = "CommonNewTag";
+#line 139 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp2_.stock_id = NULL;
+#line 139 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp2_.label = TRANSLATABLE;
+#line 139 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp2_.accelerator = NULL;
+#line 139 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp2_.tooltip = NULL;
+#line 139 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp2_.callback = (GCallback) _tags_header_on_new_tag_gtk_action_callback;
+#line 139 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ new_tag = _tmp2_;
+#line 140 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ new_tag.label = RESOURCES_NEW_CHILD_TAG_SIDEBAR_MENU;
+#line 141 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp3_ = actions;
+#line 141 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp3__length1 = actions_length1;
+#line 141 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp4_ = new_tag;
+#line 141 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _vala_array_add133 (&actions, &actions_length1, &_actions_size_, &_tmp4_);
+#line 143 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp5_ = actions;
+#line 143 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp5__length1 = actions_length1;
+#line 143 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ gtk_action_group_add_actions (group, _tmp5_, _tmp5__length1, self);
+#line 144 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp6_ = self->priv->ui;
+#line 144 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ gtk_ui_manager_insert_action_group (_tmp6_, group, 0);
+#line 146 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp7_ = resources_get_ui ("tag_sidebar_context.ui");
+#line 146 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ ui_file = _tmp7_;
+#line 1796 "Branch.c"
+ {
+ GtkUIManager* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+ gchar* _tmp10_ = NULL;
+#line 148 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp8_ = self->priv->ui;
+#line 148 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp9_ = g_file_get_path (ui_file);
+#line 148 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp10_ = _tmp9_;
+#line 148 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ gtk_ui_manager_add_ui_from_file (_tmp8_, _tmp10_, &_inner_error_);
+#line 148 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_free0 (_tmp10_);
+#line 148 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 1813 "Branch.c"
+ goto __catch51_g_error;
+ }
+ }
+ goto __finally51;
+ __catch51_g_error:
+ {
+ GError* err = NULL;
+ gchar* _tmp11_ = NULL;
+ gchar* _tmp12_ = NULL;
+ GError* _tmp13_ = NULL;
+ const gchar* _tmp14_ = NULL;
+ gchar* _tmp15_ = NULL;
+ gchar* _tmp16_ = NULL;
+ Application* _tmp17_ = NULL;
+ Application* _tmp18_ = NULL;
+#line 147 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ err = _inner_error_;
+#line 147 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _inner_error_ = NULL;
+#line 150 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp11_ = g_file_get_path (ui_file);
+#line 150 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp12_ = _tmp11_;
+#line 150 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp13_ = err;
+#line 150 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp14_ = _tmp13_->message;
+#line 150 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp15_ = g_strdup_printf ("Error loading UI file %s: %s", _tmp12_, _tmp14_);
+#line 150 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp16_ = _tmp15_;
+#line 150 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ app_window_error_message (_tmp16_, NULL);
+#line 150 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_free0 (_tmp16_);
+#line 150 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_free0 (_tmp12_);
+#line 152 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp17_ = application_get_instance ();
+#line 152 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp18_ = _tmp17_;
+#line 152 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ application_panic (_tmp18_);
+#line 152 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _application_unref0 (_tmp18_);
+#line 147 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_error_free0 (err);
+#line 1861 "Branch.c"
+ }
+ __finally51:
+#line 147 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 147 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_object_unref0 (ui_file);
+#line 147 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ actions = (g_free (actions), NULL);
+#line 147 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_object_unref0 (group);
+#line 147 "/home/jens/Source/shotwell/src/tags/Branch.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 147 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ g_clear_error (&_inner_error_);
+#line 147 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ return;
+#line 1878 "Branch.c"
+ }
+#line 154 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp19_ = self->priv->ui;
+#line 154 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp20_ = gtk_ui_manager_get_widget (_tmp19_, "/SidebarTagContextMenu");
+#line 154 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp21_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, gtk_menu_get_type (), GtkMenu));
+#line 154 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_object_unref0 (self->priv->context_menu);
+#line 154 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ self->priv->context_menu = _tmp21_;
+#line 156 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp22_ = self->priv->ui;
+#line 156 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ gtk_ui_manager_ensure_update (_tmp22_);
+#line 135 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_object_unref0 (ui_file);
+#line 135 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ actions = (g_free (actions), NULL);
+#line 135 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_object_unref0 (group);
+#line 1900 "Branch.c"
+}
+
+
+static gboolean tags_header_real_internal_drop_received (SidebarInternalDropTargetEntry* base, GeeList* media) {
+ TagsHeader * self;
+ gboolean result = FALSE;
+ AddTagsDialog* dialog = NULL;
+ AddTagsDialog* _tmp0_ = NULL;
+ gchar** names = NULL;
+ AddTagsDialog* _tmp1_ = NULL;
+ gint _tmp2_ = 0;
+ gchar** _tmp3_ = NULL;
+ gint names_length1 = 0;
+ gint _names_size_ = 0;
+ gboolean _tmp4_ = FALSE;
+ gchar** _tmp5_ = NULL;
+ gint _tmp5__length1 = 0;
+ CommandManager* _tmp7_ = NULL;
+ CommandManager* _tmp8_ = NULL;
+ gchar** _tmp9_ = NULL;
+ gint _tmp9__length1 = 0;
+ GeeList* _tmp10_ = NULL;
+ AddTagsCommand* _tmp11_ = NULL;
+ AddTagsCommand* _tmp12_ = NULL;
+#line 159 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TAGS_TYPE_HEADER, TagsHeader);
+#line 159 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ g_return_val_if_fail (GEE_IS_LIST (media), FALSE);
+#line 160 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp0_ = add_tags_dialog_new ();
+#line 160 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ dialog = _tmp0_;
+#line 161 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp1_ = dialog;
+#line 161 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp3_ = add_tags_dialog_execute (_tmp1_, &_tmp2_);
+#line 161 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ names = _tmp3_;
+#line 161 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ names_length1 = _tmp2_;
+#line 161 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _names_size_ = names_length1;
+#line 162 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp5_ = names;
+#line 162 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp5__length1 = names_length1;
+#line 162 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ if (_tmp5_ == NULL) {
+#line 162 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp4_ = TRUE;
+#line 1951 "Branch.c"
+ } else {
+ gchar** _tmp6_ = NULL;
+ gint _tmp6__length1 = 0;
+#line 162 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp6_ = names;
+#line 162 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp6__length1 = names_length1;
+#line 162 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp4_ = _tmp6__length1 == 0;
+#line 1961 "Branch.c"
+ }
+#line 162 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ if (_tmp4_) {
+#line 163 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ result = FALSE;
+#line 163 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ names = (_vala_array_free (names, names_length1, (GDestroyNotify) g_free), NULL);
+#line 163 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _text_entry_dialog_mediator_unref0 (dialog);
+#line 163 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ return result;
+#line 1973 "Branch.c"
+ }
+#line 165 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp7_ = app_window_get_command_manager ();
+#line 165 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp8_ = _tmp7_;
+#line 165 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp9_ = names;
+#line 165 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp9__length1 = names_length1;
+#line 165 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp10_ = media;
+#line 165 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp11_ = add_tags_command_new (_tmp9_, _tmp9__length1, G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_COLLECTION, GeeCollection));
+#line 165 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp12_ = _tmp11_;
+#line 165 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ command_manager_execute (_tmp8_, G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_COMMAND, Command));
+#line 165 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_object_unref0 (_tmp12_);
+#line 165 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _command_manager_unref0 (_tmp8_);
+#line 167 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ result = TRUE;
+#line 167 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ names = (_vala_array_free (names, names_length1, (GDestroyNotify) g_free), NULL);
+#line 167 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _text_entry_dialog_mediator_unref0 (dialog);
+#line 167 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ return result;
+#line 2003 "Branch.c"
+}
+
+
+static gboolean tags_header_real_internal_drop_received_arbitrary (SidebarInternalDropTargetEntry* base, GtkSelectionData* data) {
+ TagsHeader * self;
+ gboolean result = FALSE;
+ GtkSelectionData* _tmp0_ = NULL;
+ GdkAtom _tmp1_ = 0U;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ gboolean _tmp4_ = FALSE;
+#line 170 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TAGS_TYPE_HEADER, TagsHeader);
+#line 170 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ g_return_val_if_fail (data != NULL, FALSE);
+#line 171 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp0_ = data;
+#line 171 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp1_ = gtk_selection_data_get_data_type (_tmp0_);
+#line 171 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp2_ = gdk_atom_name (_tmp1_);
+#line 171 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp3_ = _tmp2_;
+#line 171 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp4_ = g_strcmp0 (_tmp3_, LIBRARY_WINDOW_TAG_PATH_MIME_TYPE) == 0;
+#line 171 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_free0 (_tmp3_);
+#line 171 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ if (_tmp4_) {
+#line 2033 "Branch.c"
+ gchar* old_tag_path = NULL;
+ GtkSelectionData* _tmp5_ = NULL;
+ guchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ TagSourceCollection* _tmp8_ = NULL;
+ const gchar* _tmp9_ = NULL;
+ gboolean _tmp10_ = FALSE;
+ const gchar* _tmp11_ = NULL;
+ GeeList* _tmp12_ = NULL;
+ GeeList* _tmp13_ = NULL;
+ gint _tmp14_ = 0;
+ gint _tmp15_ = 0;
+ gboolean _tmp16_ = FALSE;
+ CommandManager* _tmp17_ = NULL;
+ CommandManager* _tmp18_ = NULL;
+ const gchar* _tmp19_ = NULL;
+ Tag* _tmp20_ = NULL;
+ Tag* _tmp21_ = NULL;
+ ReparentTagCommand* _tmp22_ = NULL;
+ ReparentTagCommand* _tmp23_ = NULL;
+#line 172 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp5_ = data;
+#line 172 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp6_ = gtk_selection_data_get_data (_tmp5_);
+#line 172 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp7_ = g_strdup ((const gchar*) _tmp6_);
+#line 172 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ old_tag_path = _tmp7_;
+#line 173 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp8_ = tag_global;
+#line 173 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp9_ = old_tag_path;
+#line 173 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp10_ = tag_source_collection_exists (_tmp8_, _tmp9_, FALSE);
+#line 173 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _vala_assert (_tmp10_, "Tag.global.exists(old_tag_path)");
+#line 176 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp11_ = old_tag_path;
+#line 176 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp12_ = hierarchical_tag_utilities_enumerate_path_components (_tmp11_);
+#line 176 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp13_ = _tmp12_;
+#line 176 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp14_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_COLLECTION, GeeCollection));
+#line 176 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp15_ = _tmp14_;
+#line 176 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp16_ = _tmp15_ < 2;
+#line 176 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_object_unref0 (_tmp13_);
+#line 176 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ if (_tmp16_) {
+#line 177 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ result = TRUE;
+#line 177 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_free0 (old_tag_path);
+#line 177 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ return result;
+#line 2092 "Branch.c"
+ }
+#line 179 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp17_ = app_window_get_command_manager ();
+#line 179 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp18_ = _tmp17_;
+#line 179 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp19_ = old_tag_path;
+#line 179 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp20_ = tag_for_path (_tmp19_);
+#line 179 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp21_ = _tmp20_;
+#line 179 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp22_ = reparent_tag_command_new (_tmp21_, "/");
+#line 179 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp23_ = _tmp22_;
+#line 179 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ command_manager_execute (_tmp18_, G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, TYPE_COMMAND, Command));
+#line 179 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_object_unref0 (_tmp23_);
+#line 179 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_object_unref0 (_tmp21_);
+#line 179 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _command_manager_unref0 (_tmp18_);
+#line 182 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ result = TRUE;
+#line 182 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_free0 (old_tag_path);
+#line 182 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ return result;
+#line 2122 "Branch.c"
+ }
+#line 185 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ result = FALSE;
+#line 185 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ return result;
+#line 2128 "Branch.c"
+}
+
+
+static void tags_header_real_prepare_selection_data (SidebarInternalDragSourceEntry* base, GtkSelectionData* data) {
+ TagsHeader * self;
+#line 188 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TAGS_TYPE_HEADER, TagsHeader);
+#line 188 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ g_return_if_fail (data != NULL);
+#line 2138 "Branch.c"
+}
+
+
+static GtkMenu* tags_header_real_get_sidebar_context_menu (SidebarContextable* base, GdkEventButton* event) {
+ TagsHeader * self;
+ GtkMenu* result = NULL;
+ GtkMenu* _tmp0_ = NULL;
+ GtkMenu* _tmp1_ = NULL;
+#line 192 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TAGS_TYPE_HEADER, TagsHeader);
+#line 193 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp0_ = self->priv->context_menu;
+#line 193 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp1_ = _g_object_ref0 (_tmp0_);
+#line 193 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ result = _tmp1_;
+#line 193 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ return result;
+#line 2157 "Branch.c"
+}
+
+
+static void tags_header_on_new_tag (TagsHeader* self) {
+ NewRootTagCommand* creation_command = NULL;
+ NewRootTagCommand* _tmp0_ = NULL;
+ CommandManager* _tmp1_ = NULL;
+ CommandManager* _tmp2_ = NULL;
+ LibraryWindow* _tmp3_ = NULL;
+ LibraryWindow* _tmp4_ = NULL;
+ Tag* _tmp5_ = NULL;
+ Tag* _tmp6_ = NULL;
+#line 196 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ g_return_if_fail (TAGS_IS_HEADER (self));
+#line 197 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp0_ = new_root_tag_command_new ();
+#line 197 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ creation_command = _tmp0_;
+#line 198 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp1_ = app_window_get_command_manager ();
+#line 198 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp2_ = _tmp1_;
+#line 198 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ command_manager_execute (_tmp2_, G_TYPE_CHECK_INSTANCE_CAST (creation_command, TYPE_COMMAND, Command));
+#line 198 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _command_manager_unref0 (_tmp2_);
+#line 199 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp3_ = library_window_get_app ();
+#line 199 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp4_ = _tmp3_;
+#line 199 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp5_ = new_root_tag_command_get_created_tag (creation_command);
+#line 199 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp6_ = _tmp5_;
+#line 199 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ library_window_rename_tag_in_sidebar (_tmp4_, _tmp6_);
+#line 199 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_object_unref0 (_tmp6_);
+#line 199 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_object_unref0 (_tmp4_);
+#line 196 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_object_unref0 (creation_command);
+#line 2200 "Branch.c"
+}
+
+
+static void tags_header_class_init (TagsHeaderClass * klass) {
+#line 125 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ tags_header_parent_class = g_type_class_peek_parent (klass);
+#line 125 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ g_type_class_add_private (klass, sizeof (TagsHeaderPrivate));
+#line 125 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ G_OBJECT_CLASS (klass)->finalize = tags_header_finalize;
+#line 2211 "Branch.c"
+}
+
+
+static void tags_header_sidebar_internal_drop_target_entry_interface_init (SidebarInternalDropTargetEntryIface * iface) {
+#line 125 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ tags_header_sidebar_internal_drop_target_entry_parent_iface = g_type_interface_peek_parent (iface);
+#line 125 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ iface->internal_drop_received = (gboolean (*)(SidebarInternalDropTargetEntry*, GeeList*)) tags_header_real_internal_drop_received;
+#line 125 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ iface->internal_drop_received_arbitrary = (gboolean (*)(SidebarInternalDropTargetEntry*, GtkSelectionData*)) tags_header_real_internal_drop_received_arbitrary;
+#line 2222 "Branch.c"
+}
+
+
+static void tags_header_sidebar_internal_drag_source_entry_interface_init (SidebarInternalDragSourceEntryIface * iface) {
+#line 125 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ tags_header_sidebar_internal_drag_source_entry_parent_iface = g_type_interface_peek_parent (iface);
+#line 125 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ iface->prepare_selection_data = (void (*)(SidebarInternalDragSourceEntry*, GtkSelectionData*)) tags_header_real_prepare_selection_data;
+#line 2231 "Branch.c"
+}
+
+
+static void tags_header_sidebar_contextable_interface_init (SidebarContextableIface * iface) {
+#line 125 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ tags_header_sidebar_contextable_parent_iface = g_type_interface_peek_parent (iface);
+#line 125 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ iface->get_sidebar_context_menu = (GtkMenu* (*)(SidebarContextable*, GdkEventButton*)) tags_header_real_get_sidebar_context_menu;
+#line 2240 "Branch.c"
+}
+
+
+static void tags_header_instance_init (TagsHeader * self) {
+ GtkUIManager* _tmp0_ = NULL;
+#line 125 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ self->priv = TAGS_HEADER_GET_PRIVATE (self);
+#line 127 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp0_ = gtk_ui_manager_new ();
+#line 127 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ self->priv->ui = _tmp0_;
+#line 128 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ self->priv->context_menu = NULL;
+#line 2254 "Branch.c"
+}
+
+
+static void tags_header_finalize (GObject* obj) {
+ TagsHeader * self;
+#line 125 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, TAGS_TYPE_HEADER, TagsHeader);
+#line 127 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_object_unref0 (self->priv->ui);
+#line 128 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_object_unref0 (self->priv->context_menu);
+#line 125 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ G_OBJECT_CLASS (tags_header_parent_class)->finalize (obj);
+#line 2268 "Branch.c"
+}
+
+
+GType tags_header_get_type (void) {
+ static volatile gsize tags_header_type_id__volatile = 0;
+ if (g_once_init_enter (&tags_header_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (TagsHeaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tags_header_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TagsHeader), 0, (GInstanceInitFunc) tags_header_instance_init, NULL };
+ static const GInterfaceInfo sidebar_internal_drop_target_entry_info = { (GInterfaceInitFunc) tags_header_sidebar_internal_drop_target_entry_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ static const GInterfaceInfo sidebar_internal_drag_source_entry_info = { (GInterfaceInitFunc) tags_header_sidebar_internal_drag_source_entry_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ static const GInterfaceInfo sidebar_contextable_info = { (GInterfaceInitFunc) tags_header_sidebar_contextable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType tags_header_type_id;
+ tags_header_type_id = g_type_register_static (SIDEBAR_TYPE_HEADER, "TagsHeader", &g_define_type_info, 0);
+ g_type_add_interface_static (tags_header_type_id, SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY, &sidebar_internal_drop_target_entry_info);
+ g_type_add_interface_static (tags_header_type_id, SIDEBAR_TYPE_INTERNAL_DRAG_SOURCE_ENTRY, &sidebar_internal_drag_source_entry_info);
+ g_type_add_interface_static (tags_header_type_id, SIDEBAR_TYPE_CONTEXTABLE, &sidebar_contextable_info);
+ g_once_init_leave (&tags_header_type_id__volatile, tags_header_type_id);
+ }
+ return tags_header_type_id__volatile;
+}
+
+
+TagsSidebarEntry* tags_sidebar_entry_construct (GType object_type, Tag* tag) {
+ TagsSidebarEntry * self = NULL;
+ Tag* _tmp0_ = NULL;
+ Tag* _tmp1_ = NULL;
+#line 210 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ g_return_val_if_fail (IS_TAG (tag), NULL);
+#line 210 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ self = (TagsSidebarEntry*) sidebar_simple_page_entry_construct (object_type);
+#line 211 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp0_ = tag;
+#line 211 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp1_ = _g_object_ref0 (_tmp0_);
+#line 211 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_object_unref0 (self->priv->tag);
+#line 211 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ self->priv->tag = _tmp1_;
+#line 210 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ return self;
+#line 2308 "Branch.c"
+}
+
+
+TagsSidebarEntry* tags_sidebar_entry_new (Tag* tag) {
+#line 210 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ return tags_sidebar_entry_construct (TAGS_TYPE_SIDEBAR_ENTRY, tag);
+#line 2315 "Branch.c"
+}
+
+
+void tags_sidebar_entry_init (void) {
+}
+
+
+void tags_sidebar_entry_terminate (void) {
+}
+
+
+Tag* tags_sidebar_entry_for_tag (TagsSidebarEntry* self) {
+ Tag* result = NULL;
+ Tag* _tmp0_ = NULL;
+ Tag* _tmp1_ = NULL;
+#line 220 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ g_return_val_if_fail (TAGS_IS_SIDEBAR_ENTRY (self), NULL);
+#line 221 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp0_ = self->priv->tag;
+#line 221 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp1_ = _g_object_ref0 (_tmp0_);
+#line 221 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ result = _tmp1_;
+#line 221 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ return result;
+#line 2341 "Branch.c"
+}
+
+
+static gchar* tags_sidebar_entry_real_get_sidebar_name (SidebarSimplePageEntry* base) {
+ TagsSidebarEntry * self;
+ gchar* result = NULL;
+ Tag* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 224 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TAGS_TYPE_SIDEBAR_ENTRY, TagsSidebarEntry);
+#line 225 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp0_ = self->priv->tag;
+#line 225 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp1_ = tag_get_user_visible_name (_tmp0_);
+#line 225 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ result = _tmp1_;
+#line 225 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ return result;
+#line 2360 "Branch.c"
+}
+
+
+static gchar* tags_sidebar_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base) {
+ TagsSidebarEntry * self;
+ gchar* result = NULL;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 228 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TAGS_TYPE_SIDEBAR_ENTRY, TagsSidebarEntry);
+#line 229 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp0_ = self->priv->single_tag_icon;
+#line 229 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp1_ = g_strdup (_tmp0_);
+#line 229 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ result = _tmp1_;
+#line 229 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ return result;
+#line 2379 "Branch.c"
+}
+
+
+static Page* tags_sidebar_entry_real_create_page (SidebarSimplePageEntry* base) {
+ TagsSidebarEntry * self;
+ Page* result = NULL;
+ Tag* _tmp0_ = NULL;
+ TagPage* _tmp1_ = NULL;
+#line 232 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TAGS_TYPE_SIDEBAR_ENTRY, TagsSidebarEntry);
+#line 233 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp0_ = self->priv->tag;
+#line 233 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp1_ = tag_page_new (_tmp0_);
+#line 233 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ g_object_ref_sink (_tmp1_);
+#line 233 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PAGE, Page);
+#line 233 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ return result;
+#line 2400 "Branch.c"
+}
+
+
+static gboolean tags_sidebar_entry_real_is_user_renameable (SidebarRenameableEntry* base) {
+ TagsSidebarEntry * self;
+ gboolean result = FALSE;
+#line 236 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TAGS_TYPE_SIDEBAR_ENTRY, TagsSidebarEntry);
+#line 237 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ result = TRUE;
+#line 237 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ return result;
+#line 2413 "Branch.c"
+}
+
+
+static gchar* string_replace (const gchar* self, const gchar* old, const gchar* replacement) {
+ gchar* result = NULL;
+ GError * _inner_error_ = NULL;
+#line 1380 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_return_val_if_fail (self != NULL, NULL);
+#line 1380 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_return_val_if_fail (old != NULL, NULL);
+#line 1380 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_return_val_if_fail (replacement != NULL, NULL);
+#line 2426 "Branch.c"
+ {
+ GRegex* regex = NULL;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ GRegex* _tmp3_ = NULL;
+ GRegex* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ GRegex* _tmp6_ = NULL;
+ const gchar* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp0_ = old;
+#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp1_ = g_regex_escape_string (_tmp0_, -1);
+#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp2_ = _tmp1_;
+#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp3_ = g_regex_new (_tmp2_, 0, 0, &_inner_error_);
+#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp4_ = _tmp3_;
+#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _g_free0 (_tmp2_);
+#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ regex = _tmp4_;
+#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (_inner_error_->domain == G_REGEX_ERROR) {
+#line 2457 "Branch.c"
+ goto __catch52_g_regex_error;
+ }
+#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_clear_error (&_inner_error_);
+#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ return NULL;
+#line 2466 "Branch.c"
+ }
+#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp6_ = regex;
+#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp7_ = replacement;
+#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp8_ = g_regex_replace_literal (_tmp6_, self, (gssize) -1, 0, _tmp7_, 0, &_inner_error_);
+#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp5_ = _tmp8_;
+#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _g_regex_unref0 (regex);
+#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (_inner_error_->domain == G_REGEX_ERROR) {
+#line 2482 "Branch.c"
+ goto __catch52_g_regex_error;
+ }
+#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _g_regex_unref0 (regex);
+#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_clear_error (&_inner_error_);
+#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ return NULL;
+#line 2493 "Branch.c"
+ }
+#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp9_ = _tmp5_;
+#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp5_ = NULL;
+#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ result = _tmp9_;
+#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _g_free0 (_tmp5_);
+#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _g_regex_unref0 (regex);
+#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ return result;
+#line 2507 "Branch.c"
+ }
+ goto __finally52;
+ __catch52_g_regex_error:
+ {
+ GError* e = NULL;
+#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ e = _inner_error_;
+#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _inner_error_ = NULL;
+#line 1385 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_assert_not_reached ();
+#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _g_error_free0 (e);
+#line 2521 "Branch.c"
+ }
+ __finally52:
+#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_clear_error (&_inner_error_);
+#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ return NULL;
+#line 2532 "Branch.c"
+ }
+}
+
+
+static void tags_sidebar_entry_real_rename (SidebarRenameableEntry* base, const gchar* new_name) {
+ TagsSidebarEntry * self;
+ gchar* prepped = NULL;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ const gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ const gchar* _tmp5_ = NULL;
+ Tag* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+ gboolean _tmp9_ = FALSE;
+ const gchar* _tmp10_ = NULL;
+ CommandManager* _tmp11_ = NULL;
+ CommandManager* _tmp12_ = NULL;
+ Tag* _tmp13_ = NULL;
+ const gchar* _tmp14_ = NULL;
+ RenameTagCommand* _tmp15_ = NULL;
+ RenameTagCommand* _tmp16_ = NULL;
+#line 240 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TAGS_TYPE_SIDEBAR_ENTRY, TagsSidebarEntry);
+#line 240 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ g_return_if_fail (new_name != NULL);
+#line 241 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp0_ = new_name;
+#line 241 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp1_ = tag_prep_tag_name (_tmp0_);
+#line 241 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ prepped = _tmp1_;
+#line 242 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp2_ = prepped;
+#line 242 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ if (_tmp2_ == NULL) {
+#line 243 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_free0 (prepped);
+#line 243 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ return;
+#line 2575 "Branch.c"
+ }
+#line 245 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp3_ = prepped;
+#line 245 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp4_ = string_replace (_tmp3_, "/", "");
+#line 245 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_free0 (prepped);
+#line 245 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ prepped = _tmp4_;
+#line 247 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp5_ = prepped;
+#line 247 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp6_ = self->priv->tag;
+#line 247 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp7_ = tag_get_user_visible_name (_tmp6_);
+#line 247 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp8_ = _tmp7_;
+#line 247 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp9_ = g_strcmp0 (_tmp5_, _tmp8_) == 0;
+#line 247 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_free0 (_tmp8_);
+#line 247 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ if (_tmp9_) {
+#line 248 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_free0 (prepped);
+#line 248 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ return;
+#line 2603 "Branch.c"
+ }
+#line 250 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp10_ = prepped;
+#line 250 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ if (g_strcmp0 (_tmp10_, "") == 0) {
+#line 251 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_free0 (prepped);
+#line 251 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ return;
+#line 2613 "Branch.c"
+ }
+#line 253 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp11_ = app_window_get_command_manager ();
+#line 253 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp12_ = _tmp11_;
+#line 253 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp13_ = self->priv->tag;
+#line 253 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp14_ = prepped;
+#line 253 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp15_ = rename_tag_command_new (_tmp13_, _tmp14_);
+#line 253 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp16_ = _tmp15_;
+#line 253 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ command_manager_execute (_tmp12_, G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_COMMAND, Command));
+#line 253 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_object_unref0 (_tmp16_);
+#line 253 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _command_manager_unref0 (_tmp12_);
+#line 240 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_free0 (prepped);
+#line 2635 "Branch.c"
+}
+
+
+static void tags_sidebar_entry_real_destroy_source (SidebarDestroyableEntry* base) {
+ TagsSidebarEntry * self;
+ Tag* _tmp0_ = NULL;
+ gboolean _tmp1_ = FALSE;
+#line 256 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TAGS_TYPE_SIDEBAR_ENTRY, TagsSidebarEntry);
+#line 257 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp0_ = self->priv->tag;
+#line 257 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp1_ = dialogs_confirm_delete_tag (_tmp0_);
+#line 257 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ if (_tmp1_) {
+#line 2651 "Branch.c"
+ CommandManager* _tmp2_ = NULL;
+ CommandManager* _tmp3_ = NULL;
+ Tag* _tmp4_ = NULL;
+ DeleteTagCommand* _tmp5_ = NULL;
+ DeleteTagCommand* _tmp6_ = NULL;
+#line 258 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp2_ = app_window_get_command_manager ();
+#line 258 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp3_ = _tmp2_;
+#line 258 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp4_ = self->priv->tag;
+#line 258 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp5_ = delete_tag_command_new (_tmp4_);
+#line 258 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp6_ = _tmp5_;
+#line 258 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ command_manager_execute (_tmp3_, G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_COMMAND, Command));
+#line 258 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_object_unref0 (_tmp6_);
+#line 258 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _command_manager_unref0 (_tmp3_);
+#line 2673 "Branch.c"
+ }
+}
+
+
+static gboolean tags_sidebar_entry_real_internal_drop_received (SidebarInternalDropTargetEntry* base, GeeList* media) {
+ TagsSidebarEntry * self;
+ gboolean result = FALSE;
+ CommandManager* _tmp0_ = NULL;
+ CommandManager* _tmp1_ = NULL;
+ Tag* _tmp2_ = NULL;
+ GeeList* _tmp3_ = NULL;
+ GeeList* _tmp4_ = NULL;
+ gint _tmp5_ = 0;
+ gint _tmp6_ = 0;
+ TagUntagPhotosCommand* _tmp7_ = NULL;
+ TagUntagPhotosCommand* _tmp8_ = NULL;
+#line 261 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TAGS_TYPE_SIDEBAR_ENTRY, TagsSidebarEntry);
+#line 261 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ g_return_val_if_fail (GEE_IS_LIST (media), FALSE);
+#line 262 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp0_ = app_window_get_command_manager ();
+#line 262 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp1_ = _tmp0_;
+#line 262 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp2_ = self->priv->tag;
+#line 262 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp3_ = media;
+#line 262 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp4_ = media;
+#line 262 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp5_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_COLLECTION, GeeCollection));
+#line 262 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp6_ = _tmp5_;
+#line 262 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp7_ = tag_untag_photos_command_new (_tmp2_, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection), _tmp6_, TRUE);
+#line 262 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp8_ = _tmp7_;
+#line 262 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ command_manager_execute (_tmp1_, G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_COMMAND, Command));
+#line 262 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_object_unref0 (_tmp8_);
+#line 262 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _command_manager_unref0 (_tmp1_);
+#line 265 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ result = TRUE;
+#line 265 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ return result;
+#line 2722 "Branch.c"
+}
+
+
+static gboolean tags_sidebar_entry_real_internal_drop_received_arbitrary (SidebarInternalDropTargetEntry* base, GtkSelectionData* data) {
+ TagsSidebarEntry * self;
+ gboolean result = FALSE;
+ GtkSelectionData* _tmp0_ = NULL;
+ GdkAtom _tmp1_ = 0U;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ gboolean _tmp4_ = FALSE;
+#line 268 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TAGS_TYPE_SIDEBAR_ENTRY, TagsSidebarEntry);
+#line 268 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ g_return_val_if_fail (data != NULL, FALSE);
+#line 269 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp0_ = data;
+#line 269 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp1_ = gtk_selection_data_get_data_type (_tmp0_);
+#line 269 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp2_ = gdk_atom_name (_tmp1_);
+#line 269 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp3_ = _tmp2_;
+#line 269 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp4_ = g_strcmp0 (_tmp3_, LIBRARY_WINDOW_TAG_PATH_MIME_TYPE) == 0;
+#line 269 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_free0 (_tmp3_);
+#line 269 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ if (_tmp4_) {
+#line 2752 "Branch.c"
+ gchar* old_tag_path = NULL;
+ GtkSelectionData* _tmp5_ = NULL;
+ guchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ const gchar* _tmp8_ = NULL;
+ Tag* _tmp9_ = NULL;
+ gchar* _tmp10_ = NULL;
+ gchar* _tmp11_ = NULL;
+ gboolean _tmp12_ = FALSE;
+ TagSourceCollection* _tmp29_ = NULL;
+ const gchar* _tmp30_ = NULL;
+ gboolean _tmp31_ = FALSE;
+ Tag* old_tag = NULL;
+ const gchar* _tmp32_ = NULL;
+ Tag* _tmp33_ = NULL;
+ Tag* old_tag_parent = NULL;
+ Tag* _tmp34_ = NULL;
+ Tag* _tmp35_ = NULL;
+ gboolean _tmp36_ = FALSE;
+ Tag* _tmp37_ = NULL;
+ CommandManager* _tmp44_ = NULL;
+ CommandManager* _tmp45_ = NULL;
+ Tag* _tmp46_ = NULL;
+ Tag* _tmp47_ = NULL;
+ gchar* _tmp48_ = NULL;
+ gchar* _tmp49_ = NULL;
+ ReparentTagCommand* _tmp50_ = NULL;
+ ReparentTagCommand* _tmp51_ = NULL;
+#line 270 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp5_ = data;
+#line 270 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp6_ = gtk_selection_data_get_data (_tmp5_);
+#line 270 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp7_ = g_strdup ((const gchar*) _tmp6_);
+#line 270 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ old_tag_path = _tmp7_;
+#line 273 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp8_ = old_tag_path;
+#line 273 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp9_ = self->priv->tag;
+#line 273 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp10_ = tag_get_path (_tmp9_);
+#line 273 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp11_ = _tmp10_;
+#line 273 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp12_ = g_strcmp0 (_tmp8_, _tmp11_) == 0;
+#line 273 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_free0 (_tmp11_);
+#line 273 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ if (_tmp12_) {
+#line 274 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ result = TRUE;
+#line 274 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_free0 (old_tag_path);
+#line 274 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ return result;
+#line 2809 "Branch.c"
+ }
+ {
+ GeeList* _parent_path_list = NULL;
+ Tag* _tmp13_ = NULL;
+ gchar* _tmp14_ = NULL;
+ gchar* _tmp15_ = NULL;
+ GeeList* _tmp16_ = NULL;
+ GeeList* _tmp17_ = NULL;
+ gint _parent_path_size = 0;
+ GeeList* _tmp18_ = NULL;
+ gint _tmp19_ = 0;
+ gint _tmp20_ = 0;
+ gint _parent_path_index = 0;
+#line 277 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp13_ = self->priv->tag;
+#line 277 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp14_ = tag_get_path (_tmp13_);
+#line 277 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp15_ = _tmp14_;
+#line 277 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp16_ = hierarchical_tag_utilities_enumerate_parent_paths (_tmp15_);
+#line 277 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp17_ = _tmp16_;
+#line 277 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_free0 (_tmp15_);
+#line 277 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _parent_path_list = _tmp17_;
+#line 277 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp18_ = _parent_path_list;
+#line 277 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp19_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_COLLECTION, GeeCollection));
+#line 277 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp20_ = _tmp19_;
+#line 277 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _parent_path_size = _tmp20_;
+#line 277 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _parent_path_index = -1;
+#line 277 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ while (TRUE) {
+#line 2849 "Branch.c"
+ gint _tmp21_ = 0;
+ gint _tmp22_ = 0;
+ gint _tmp23_ = 0;
+ gchar* parent_path = NULL;
+ GeeList* _tmp24_ = NULL;
+ gint _tmp25_ = 0;
+ gpointer _tmp26_ = NULL;
+ const gchar* _tmp27_ = NULL;
+ const gchar* _tmp28_ = NULL;
+#line 277 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp21_ = _parent_path_index;
+#line 277 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _parent_path_index = _tmp21_ + 1;
+#line 277 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp22_ = _parent_path_index;
+#line 277 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp23_ = _parent_path_size;
+#line 277 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ if (!(_tmp22_ < _tmp23_)) {
+#line 277 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ break;
+#line 2871 "Branch.c"
+ }
+#line 277 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp24_ = _parent_path_list;
+#line 277 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp25_ = _parent_path_index;
+#line 277 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp26_ = gee_list_get (_tmp24_, _tmp25_);
+#line 277 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ parent_path = (gchar*) _tmp26_;
+#line 278 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp27_ = parent_path;
+#line 278 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp28_ = old_tag_path;
+#line 278 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ if (g_strcmp0 (_tmp27_, _tmp28_) == 0) {
+#line 279 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ result = TRUE;
+#line 279 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_free0 (parent_path);
+#line 279 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_object_unref0 (_parent_path_list);
+#line 279 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_free0 (old_tag_path);
+#line 279 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ return result;
+#line 2897 "Branch.c"
+ }
+#line 277 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_free0 (parent_path);
+#line 2901 "Branch.c"
+ }
+#line 277 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_object_unref0 (_parent_path_list);
+#line 2905 "Branch.c"
+ }
+#line 282 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp29_ = tag_global;
+#line 282 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp30_ = old_tag_path;
+#line 282 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp31_ = tag_source_collection_exists (_tmp29_, _tmp30_, FALSE);
+#line 282 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _vala_assert (_tmp31_, "Tag.global.exists(old_tag_path)");
+#line 285 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp32_ = old_tag_path;
+#line 285 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp33_ = tag_for_path (_tmp32_);
+#line 285 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ old_tag = _tmp33_;
+#line 286 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp34_ = old_tag;
+#line 286 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp35_ = tag_get_hierarchical_parent (_tmp34_);
+#line 286 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ old_tag_parent = _tmp35_;
+#line 287 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp37_ = old_tag_parent;
+#line 287 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ if (_tmp37_ != NULL) {
+#line 2931 "Branch.c"
+ Tag* _tmp38_ = NULL;
+ gchar* _tmp39_ = NULL;
+ gchar* _tmp40_ = NULL;
+ Tag* _tmp41_ = NULL;
+ gchar* _tmp42_ = NULL;
+ gchar* _tmp43_ = NULL;
+#line 287 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp38_ = old_tag_parent;
+#line 287 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp39_ = tag_get_path (_tmp38_);
+#line 287 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp40_ = _tmp39_;
+#line 287 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp41_ = self->priv->tag;
+#line 287 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp42_ = tag_get_path (_tmp41_);
+#line 287 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp43_ = _tmp42_;
+#line 287 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp36_ = g_strcmp0 (_tmp40_, _tmp43_) == 0;
+#line 287 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_free0 (_tmp43_);
+#line 287 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_free0 (_tmp40_);
+#line 2956 "Branch.c"
+ } else {
+#line 287 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp36_ = FALSE;
+#line 2960 "Branch.c"
+ }
+#line 287 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ if (_tmp36_) {
+#line 288 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ result = TRUE;
+#line 288 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_object_unref0 (old_tag_parent);
+#line 288 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_object_unref0 (old_tag);
+#line 288 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_free0 (old_tag_path);
+#line 288 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ return result;
+#line 2974 "Branch.c"
+ }
+#line 290 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp44_ = app_window_get_command_manager ();
+#line 290 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp45_ = _tmp44_;
+#line 290 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp46_ = old_tag;
+#line 290 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp47_ = self->priv->tag;
+#line 290 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp48_ = tag_get_path (_tmp47_);
+#line 290 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp49_ = _tmp48_;
+#line 290 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp50_ = reparent_tag_command_new (_tmp46_, _tmp49_);
+#line 290 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp51_ = _tmp50_;
+#line 290 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ command_manager_execute (_tmp45_, G_TYPE_CHECK_INSTANCE_CAST (_tmp51_, TYPE_COMMAND, Command));
+#line 290 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_object_unref0 (_tmp51_);
+#line 290 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_free0 (_tmp49_);
+#line 290 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _command_manager_unref0 (_tmp45_);
+#line 293 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ result = TRUE;
+#line 293 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_object_unref0 (old_tag_parent);
+#line 293 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_object_unref0 (old_tag);
+#line 293 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_free0 (old_tag_path);
+#line 293 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ return result;
+#line 3010 "Branch.c"
+ }
+#line 296 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ result = FALSE;
+#line 296 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ return result;
+#line 3016 "Branch.c"
+}
+
+
+static gboolean tags_sidebar_entry_real_expand_on_select (SidebarExpandableEntry* base) {
+ TagsSidebarEntry * self;
+ gboolean result = FALSE;
+#line 299 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TAGS_TYPE_SIDEBAR_ENTRY, TagsSidebarEntry);
+#line 300 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ result = FALSE;
+#line 300 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ return result;
+#line 3029 "Branch.c"
+}
+
+
+static guint8* string_get_data (const gchar* self, int* result_length1) {
+ guint8* result;
+ guint8* res = NULL;
+ gint res_length1 = 0;
+ gint _res_size_ = 0;
+ gint _tmp0_ = 0;
+ gint _tmp1_ = 0;
+ gint _tmp2_ = 0;
+ guint8* _tmp3_ = NULL;
+ gint _tmp3__length1 = 0;
+ guint8* _tmp4_ = NULL;
+ gint _tmp4__length1 = 0;
+#line 1398 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_return_val_if_fail (self != NULL, NULL);
+#line 1399 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ res = (guint8*) self;
+#line 1399 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ res_length1 = -1;
+#line 1399 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _res_size_ = res_length1;
+#line 1400 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp0_ = strlen (self);
+#line 1400 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp1_ = _tmp0_;
+#line 1400 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ res_length1 = (gint) _tmp1_;
+#line 1400 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp2_ = res_length1;
+#line 1401 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp3_ = res;
+#line 1401 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp3__length1 = res_length1;
+#line 1401 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp4_ = _tmp3_;
+#line 1401 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp4__length1 = _tmp3__length1;
+#line 1401 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (result_length1) {
+#line 1401 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ *result_length1 = _tmp4__length1;
+#line 3073 "Branch.c"
+ }
+#line 1401 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ result = _tmp4_;
+#line 1401 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ return result;
+#line 3079 "Branch.c"
+}
+
+
+static void tags_sidebar_entry_real_prepare_selection_data (SidebarInternalDragSourceEntry* base, GtkSelectionData* data) {
+ TagsSidebarEntry * self;
+ GtkSelectionData* _tmp0_ = NULL;
+ GdkAtom _tmp1_ = 0U;
+ Tag* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ guint8* _tmp5_ = NULL;
+ gint _tmp5__length1 = 0;
+ guint8* _tmp6_ = NULL;
+ gint _tmp6__length1 = 0;
+#line 303 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TAGS_TYPE_SIDEBAR_ENTRY, TagsSidebarEntry);
+#line 303 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ g_return_if_fail (data != NULL);
+#line 304 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp0_ = data;
+#line 304 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp1_ = gdk_atom_intern_static_string (LIBRARY_WINDOW_TAG_PATH_MIME_TYPE);
+#line 304 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp2_ = self->priv->tag;
+#line 304 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp3_ = tag_get_path (_tmp2_);
+#line 304 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp4_ = _tmp3_;
+#line 304 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp5_ = string_get_data (_tmp4_, &_tmp5__length1);
+#line 304 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp6_ = _tmp5_;
+#line 304 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp6__length1 = _tmp5__length1;
+#line 304 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ gtk_selection_data_set (_tmp0_, _tmp1_, 0, _tmp6_, _tmp6__length1);
+#line 304 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_free0 (_tmp4_);
+#line 3118 "Branch.c"
+}
+
+
+static void tags_sidebar_entry_class_init (TagsSidebarEntryClass * klass) {
+#line 203 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ tags_sidebar_entry_parent_class = g_type_class_peek_parent (klass);
+#line 203 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ g_type_class_add_private (klass, sizeof (TagsSidebarEntryPrivate));
+#line 203 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ ((SidebarSimplePageEntryClass *) klass)->get_sidebar_name = tags_sidebar_entry_real_get_sidebar_name;
+#line 203 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ ((SidebarSimplePageEntryClass *) klass)->get_sidebar_icon = tags_sidebar_entry_real_get_sidebar_icon;
+#line 203 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ ((SidebarSimplePageEntryClass *) klass)->create_page = tags_sidebar_entry_real_create_page;
+#line 203 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ G_OBJECT_CLASS (klass)->finalize = tags_sidebar_entry_finalize;
+#line 3135 "Branch.c"
+}
+
+
+static void tags_sidebar_entry_sidebar_renameable_entry_interface_init (SidebarRenameableEntryIface * iface) {
+#line 203 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ tags_sidebar_entry_sidebar_renameable_entry_parent_iface = g_type_interface_peek_parent (iface);
+#line 203 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ iface->is_user_renameable = (gboolean (*)(SidebarRenameableEntry*)) tags_sidebar_entry_real_is_user_renameable;
+#line 203 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ iface->rename = (void (*)(SidebarRenameableEntry*, const gchar*)) tags_sidebar_entry_real_rename;
+#line 3146 "Branch.c"
+}
+
+
+static void tags_sidebar_entry_sidebar_destroyable_entry_interface_init (SidebarDestroyableEntryIface * iface) {
+#line 203 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ tags_sidebar_entry_sidebar_destroyable_entry_parent_iface = g_type_interface_peek_parent (iface);
+#line 203 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ iface->destroy_source = (void (*)(SidebarDestroyableEntry*)) tags_sidebar_entry_real_destroy_source;
+#line 3155 "Branch.c"
+}
+
+
+static void tags_sidebar_entry_sidebar_internal_drop_target_entry_interface_init (SidebarInternalDropTargetEntryIface * iface) {
+#line 203 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ tags_sidebar_entry_sidebar_internal_drop_target_entry_parent_iface = g_type_interface_peek_parent (iface);
+#line 203 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ iface->internal_drop_received = (gboolean (*)(SidebarInternalDropTargetEntry*, GeeList*)) tags_sidebar_entry_real_internal_drop_received;
+#line 203 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ iface->internal_drop_received_arbitrary = (gboolean (*)(SidebarInternalDropTargetEntry*, GtkSelectionData*)) tags_sidebar_entry_real_internal_drop_received_arbitrary;
+#line 3166 "Branch.c"
+}
+
+
+static void tags_sidebar_entry_sidebar_expandable_entry_interface_init (SidebarExpandableEntryIface * iface) {
+#line 203 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ tags_sidebar_entry_sidebar_expandable_entry_parent_iface = g_type_interface_peek_parent (iface);
+#line 203 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ iface->expand_on_select = (gboolean (*)(SidebarExpandableEntry*)) tags_sidebar_entry_real_expand_on_select;
+#line 3175 "Branch.c"
+}
+
+
+static void tags_sidebar_entry_sidebar_internal_drag_source_entry_interface_init (SidebarInternalDragSourceEntryIface * iface) {
+#line 203 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ tags_sidebar_entry_sidebar_internal_drag_source_entry_parent_iface = g_type_interface_peek_parent (iface);
+#line 203 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ iface->prepare_selection_data = (void (*)(SidebarInternalDragSourceEntry*, GtkSelectionData*)) tags_sidebar_entry_real_prepare_selection_data;
+#line 3184 "Branch.c"
+}
+
+
+static void tags_sidebar_entry_instance_init (TagsSidebarEntry * self) {
+ gchar* _tmp0_ = NULL;
+#line 203 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ self->priv = TAGS_SIDEBAR_ENTRY_GET_PRIVATE (self);
+#line 206 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _tmp0_ = g_strdup (RESOURCES_ICON_ONE_TAG);
+#line 206 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ self->priv->single_tag_icon = _tmp0_;
+#line 3196 "Branch.c"
+}
+
+
+static void tags_sidebar_entry_finalize (GObject* obj) {
+ TagsSidebarEntry * self;
+#line 203 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, TAGS_TYPE_SIDEBAR_ENTRY, TagsSidebarEntry);
+#line 206 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_free0 (self->priv->single_tag_icon);
+#line 208 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ _g_object_unref0 (self->priv->tag);
+#line 203 "/home/jens/Source/shotwell/src/tags/Branch.vala"
+ G_OBJECT_CLASS (tags_sidebar_entry_parent_class)->finalize (obj);
+#line 3210 "Branch.c"
+}
+
+
+GType tags_sidebar_entry_get_type (void) {
+ static volatile gsize tags_sidebar_entry_type_id__volatile = 0;
+ if (g_once_init_enter (&tags_sidebar_entry_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (TagsSidebarEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tags_sidebar_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TagsSidebarEntry), 0, (GInstanceInitFunc) tags_sidebar_entry_instance_init, NULL };
+ static const GInterfaceInfo sidebar_renameable_entry_info = { (GInterfaceInitFunc) tags_sidebar_entry_sidebar_renameable_entry_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ static const GInterfaceInfo sidebar_destroyable_entry_info = { (GInterfaceInitFunc) tags_sidebar_entry_sidebar_destroyable_entry_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ static const GInterfaceInfo sidebar_internal_drop_target_entry_info = { (GInterfaceInitFunc) tags_sidebar_entry_sidebar_internal_drop_target_entry_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ static const GInterfaceInfo sidebar_expandable_entry_info = { (GInterfaceInitFunc) tags_sidebar_entry_sidebar_expandable_entry_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ static const GInterfaceInfo sidebar_internal_drag_source_entry_info = { (GInterfaceInitFunc) tags_sidebar_entry_sidebar_internal_drag_source_entry_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
+ GType tags_sidebar_entry_type_id;
+ tags_sidebar_entry_type_id = g_type_register_static (SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, "TagsSidebarEntry", &g_define_type_info, 0);
+ g_type_add_interface_static (tags_sidebar_entry_type_id, SIDEBAR_TYPE_RENAMEABLE_ENTRY, &sidebar_renameable_entry_info);
+ g_type_add_interface_static (tags_sidebar_entry_type_id, SIDEBAR_TYPE_DESTROYABLE_ENTRY, &sidebar_destroyable_entry_info);
+ g_type_add_interface_static (tags_sidebar_entry_type_id, SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY, &sidebar_internal_drop_target_entry_info);
+ g_type_add_interface_static (tags_sidebar_entry_type_id, SIDEBAR_TYPE_EXPANDABLE_ENTRY, &sidebar_expandable_entry_info);
+ g_type_add_interface_static (tags_sidebar_entry_type_id, SIDEBAR_TYPE_INTERNAL_DRAG_SOURCE_ENTRY, &sidebar_internal_drag_source_entry_info);
+ g_once_init_leave (&tags_sidebar_entry_type_id__volatile, tags_sidebar_entry_type_id);
+ }
+ return tags_sidebar_entry_type_id__volatile;
+}
+
+
+static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) {
+ if ((array != NULL) && (destroy_func != NULL)) {
+ int i;
+ for (i = 0; i < array_length; i = i + 1) {
+ if (((gpointer*) array)[i] != NULL) {
+ destroy_func (((gpointer*) array)[i]);
+ }
+ }
+ }
+}
+
+
+static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) {
+ _vala_array_destroy (array, array_length, destroy_func);
+ g_free (array);
+}
+
+
+
diff --git a/src/tags/HierarchicalTagIndex.c b/src/tags/HierarchicalTagIndex.c
new file mode 100644
index 0000000..d77738d
--- /dev/null
+++ b/src/tags/HierarchicalTagIndex.c
@@ -0,0 +1,1039 @@
+/* HierarchicalTagIndex.c generated by valac 0.32.1, the Vala compiler
+ * generated from HierarchicalTagIndex.vala, do not modify */
+
+/* Copyright 2016 Software Freedom Conservancy Inc.
+ *
+ * This software is licensed under the GNU LGPL (version 2.1 or later).
+ * See the COPYING file in this distribution.
+ */
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gee.h>
+#include <stdlib.h>
+#include <string.h>
+#include <gobject/gvaluecollector.h>
+
+
+#define TYPE_HIERARCHICAL_TAG_INDEX (hierarchical_tag_index_get_type ())
+#define HIERARCHICAL_TAG_INDEX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndex))
+#define HIERARCHICAL_TAG_INDEX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndexClass))
+#define IS_HIERARCHICAL_TAG_INDEX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_HIERARCHICAL_TAG_INDEX))
+#define IS_HIERARCHICAL_TAG_INDEX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_HIERARCHICAL_TAG_INDEX))
+#define HIERARCHICAL_TAG_INDEX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndexClass))
+
+typedef struct _HierarchicalTagIndex HierarchicalTagIndex;
+typedef struct _HierarchicalTagIndexClass HierarchicalTagIndexClass;
+typedef struct _HierarchicalTagIndexPrivate HierarchicalTagIndexPrivate;
+#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
+#define _g_free0(var) (var = (g_free (var), NULL))
+#define _hierarchical_tag_index_unref0(var) ((var == NULL) ? NULL : (var = (hierarchical_tag_index_unref (var), NULL)))
+
+#define TYPE_DATA_COLLECTION (data_collection_get_type ())
+#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
+#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
+#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
+#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
+#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
+
+typedef struct _DataCollection DataCollection;
+typedef struct _DataCollectionClass DataCollectionClass;
+
+#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
+#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
+#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
+#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
+#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
+#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
+
+typedef struct _SourceCollection SourceCollection;
+typedef struct _SourceCollectionClass SourceCollectionClass;
+
+#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ())
+#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection))
+#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
+#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION))
+#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION))
+#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
+
+typedef struct _DatabaseSourceCollection DatabaseSourceCollection;
+typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass;
+
+#define TYPE_CONTAINER_SOURCE_COLLECTION (container_source_collection_get_type ())
+#define CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection))
+#define CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass))
+#define IS_CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE_COLLECTION))
+#define IS_CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONTAINER_SOURCE_COLLECTION))
+#define CONTAINER_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass))
+
+typedef struct _ContainerSourceCollection ContainerSourceCollection;
+typedef struct _ContainerSourceCollectionClass ContainerSourceCollectionClass;
+
+#define TYPE_TAG_SOURCE_COLLECTION (tag_source_collection_get_type ())
+#define TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollection))
+#define TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass))
+#define IS_TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_SOURCE_COLLECTION))
+#define IS_TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_SOURCE_COLLECTION))
+#define TAG_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass))
+
+typedef struct _TagSourceCollection TagSourceCollection;
+typedef struct _TagSourceCollectionClass TagSourceCollectionClass;
+typedef struct _ParamSpecHierarchicalTagIndex ParamSpecHierarchicalTagIndex;
+
+struct _HierarchicalTagIndex {
+ GTypeInstance parent_instance;
+ volatile int ref_count;
+ HierarchicalTagIndexPrivate * priv;
+};
+
+struct _HierarchicalTagIndexClass {
+ GTypeClass parent_class;
+ void (*finalize) (HierarchicalTagIndex *self);
+};
+
+struct _HierarchicalTagIndexPrivate {
+ GeeMap* tag_table;
+ GeeSortedSet* known_paths;
+};
+
+struct _ParamSpecHierarchicalTagIndex {
+ GParamSpec parent_instance;
+};
+
+
+static gpointer hierarchical_tag_index_parent_class = NULL;
+extern TagSourceCollection* tag_global;
+
+gpointer hierarchical_tag_index_ref (gpointer instance);
+void hierarchical_tag_index_unref (gpointer instance);
+GParamSpec* param_spec_hierarchical_tag_index (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void value_set_hierarchical_tag_index (GValue* value, gpointer v_object);
+void value_take_hierarchical_tag_index (GValue* value, gpointer v_object);
+gpointer value_get_hierarchical_tag_index (const GValue* value);
+GType hierarchical_tag_index_get_type (void) G_GNUC_CONST;
+#define HIERARCHICAL_TAG_INDEX_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndexPrivate))
+enum {
+ HIERARCHICAL_TAG_INDEX_DUMMY_PROPERTY
+};
+HierarchicalTagIndex* hierarchical_tag_index_new (void);
+HierarchicalTagIndex* hierarchical_tag_index_construct (GType object_type);
+HierarchicalTagIndex* hierarchical_tag_index_from_paths (GeeCollection* client_paths);
+#define TAG_PATH_SEPARATOR_STRING "/"
+GeeList* hierarchical_tag_utilities_enumerate_path_components (const gchar* in_path);
+void hierarchical_tag_index_add_path (HierarchicalTagIndex* self, const gchar* tag, const gchar* path);
+HierarchicalTagIndex* hierarchical_tag_index_get_global_index (void);
+gpointer data_collection_ref (gpointer instance);
+void data_collection_unref (gpointer instance);
+GParamSpec* param_spec_data_collection (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void value_set_data_collection (GValue* value, gpointer v_object);
+void value_take_data_collection (GValue* value, gpointer v_object);
+gpointer value_get_data_collection (const GValue* value);
+GType data_collection_get_type (void) G_GNUC_CONST;
+GType source_collection_get_type (void) G_GNUC_CONST;
+GType database_source_collection_get_type (void) G_GNUC_CONST;
+GType container_source_collection_get_type (void) G_GNUC_CONST;
+GType tag_source_collection_get_type (void) G_GNUC_CONST;
+GeeCollection* tag_source_collection_get_all_names (TagSourceCollection* self);
+GeeCollection* hierarchical_tag_index_get_all_paths (HierarchicalTagIndex* self);
+gboolean hierarchical_tag_index_is_tag_in_index (HierarchicalTagIndex* self, const gchar* tag);
+GeeCollection* hierarchical_tag_index_get_all_tags (HierarchicalTagIndex* self);
+gboolean hierarchical_tag_index_is_path_known (HierarchicalTagIndex* self, const gchar* path);
+gchar* hierarchical_tag_index_get_path_for_name (HierarchicalTagIndex* self, const gchar* name);
+gchar** hierarchical_tag_index_get_paths_for_names_array (HierarchicalTagIndex* self, gchar** names, int names_length1, int* result_length1);
+static void _vala_array_add140 (gchar*** array, int* length, int* size, gchar* value);
+static void hierarchical_tag_index_finalize (HierarchicalTagIndex* 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);
+
+
+HierarchicalTagIndex* hierarchical_tag_index_construct (GType object_type) {
+ HierarchicalTagIndex* self = NULL;
+ GeeHashMap* _tmp0_ = NULL;
+ GeeTreeSet* _tmp1_ = NULL;
+#line 11 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ self = (HierarchicalTagIndex*) g_type_create_instance (object_type);
+#line 12 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp0_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, GEE_TYPE_ARRAY_LIST, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
+#line 12 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _g_object_unref0 (self->priv->tag_table);
+#line 12 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ self->priv->tag_table = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_MAP, GeeMap);
+#line 13 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp1_ = gee_tree_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL, NULL, NULL);
+#line 13 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _g_object_unref0 (self->priv->known_paths);
+#line 13 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ self->priv->known_paths = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_SORTED_SET, GeeSortedSet);
+#line 11 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ return self;
+#line 170 "HierarchicalTagIndex.c"
+}
+
+
+HierarchicalTagIndex* hierarchical_tag_index_new (void) {
+#line 11 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ return hierarchical_tag_index_construct (TYPE_HIERARCHICAL_TAG_INDEX);
+#line 177 "HierarchicalTagIndex.c"
+}
+
+
+HierarchicalTagIndex* hierarchical_tag_index_from_paths (GeeCollection* client_paths) {
+ HierarchicalTagIndex* result = NULL;
+ GeeCollection* paths = NULL;
+ GeeCollection* _tmp0_ = NULL;
+ GeeCollection* _tmp1_ = NULL;
+ GeeCollection* _tmp2_ = NULL;
+ HierarchicalTagIndex* _result_ = NULL;
+ HierarchicalTagIndex* _tmp3_ = NULL;
+#line 16 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ g_return_val_if_fail (GEE_IS_COLLECTION (client_paths), NULL);
+#line 17 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp0_ = client_paths;
+#line 17 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp1_ = gee_collection_get_read_only_view (_tmp0_);
+#line 17 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp2_ = _tmp1_;
+#line 17 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ paths = _tmp2_;
+#line 19 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp3_ = hierarchical_tag_index_new ();
+#line 19 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _result_ = _tmp3_;
+#line 203 "HierarchicalTagIndex.c"
+ {
+ GeeIterator* _path_it = NULL;
+ GeeCollection* _tmp4_ = NULL;
+ GeeIterator* _tmp5_ = NULL;
+#line 21 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp4_ = paths;
+#line 21 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp5_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ITERABLE, GeeIterable));
+#line 21 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _path_it = _tmp5_;
+#line 21 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ while (TRUE) {
+#line 216 "HierarchicalTagIndex.c"
+ GeeIterator* _tmp6_ = NULL;
+ gboolean _tmp7_ = FALSE;
+ gchar* path = NULL;
+ GeeIterator* _tmp8_ = NULL;
+ gpointer _tmp9_ = NULL;
+ const gchar* _tmp10_ = NULL;
+ gboolean _tmp11_ = FALSE;
+#line 21 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp6_ = _path_it;
+#line 21 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp7_ = gee_iterator_next (_tmp6_);
+#line 21 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ if (!_tmp7_) {
+#line 21 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ break;
+#line 232 "HierarchicalTagIndex.c"
+ }
+#line 21 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp8_ = _path_it;
+#line 21 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp9_ = gee_iterator_get (_tmp8_);
+#line 21 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ path = (gchar*) _tmp9_;
+#line 22 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp10_ = path;
+#line 22 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp11_ = g_str_has_prefix (_tmp10_, TAG_PATH_SEPARATOR_STRING);
+#line 22 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ if (_tmp11_) {
+#line 246 "HierarchicalTagIndex.c"
+ GeeCollection* components = NULL;
+ const gchar* _tmp12_ = NULL;
+ GeeList* _tmp13_ = NULL;
+#line 23 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp12_ = path;
+#line 23 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp13_ = hierarchical_tag_utilities_enumerate_path_components (_tmp12_);
+#line 23 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ components = G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_COLLECTION, GeeCollection);
+#line 256 "HierarchicalTagIndex.c"
+ {
+ GeeIterator* _component_it = NULL;
+ GeeCollection* _tmp14_ = NULL;
+ GeeIterator* _tmp15_ = NULL;
+#line 26 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp14_ = components;
+#line 26 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp15_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ITERABLE, GeeIterable));
+#line 26 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _component_it = _tmp15_;
+#line 26 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ while (TRUE) {
+#line 269 "HierarchicalTagIndex.c"
+ GeeIterator* _tmp16_ = NULL;
+ gboolean _tmp17_ = FALSE;
+ gchar* component = NULL;
+ GeeIterator* _tmp18_ = NULL;
+ gpointer _tmp19_ = NULL;
+ HierarchicalTagIndex* _tmp20_ = NULL;
+ const gchar* _tmp21_ = NULL;
+ const gchar* _tmp22_ = NULL;
+#line 26 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp16_ = _component_it;
+#line 26 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp17_ = gee_iterator_next (_tmp16_);
+#line 26 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ if (!_tmp17_) {
+#line 26 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ break;
+#line 286 "HierarchicalTagIndex.c"
+ }
+#line 26 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp18_ = _component_it;
+#line 26 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp19_ = gee_iterator_get (_tmp18_);
+#line 26 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ component = (gchar*) _tmp19_;
+#line 27 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp20_ = _result_;
+#line 27 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp21_ = component;
+#line 27 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp22_ = path;
+#line 27 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ hierarchical_tag_index_add_path (_tmp20_, _tmp21_, _tmp22_);
+#line 26 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _g_free0 (component);
+#line 304 "HierarchicalTagIndex.c"
+ }
+#line 26 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _g_object_unref0 (_component_it);
+#line 308 "HierarchicalTagIndex.c"
+ }
+#line 22 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _g_object_unref0 (components);
+#line 312 "HierarchicalTagIndex.c"
+ } else {
+ HierarchicalTagIndex* _tmp23_ = NULL;
+ const gchar* _tmp24_ = NULL;
+ const gchar* _tmp25_ = NULL;
+#line 29 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp23_ = _result_;
+#line 29 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp24_ = path;
+#line 29 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp25_ = path;
+#line 29 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ hierarchical_tag_index_add_path (_tmp23_, _tmp24_, _tmp25_);
+#line 325 "HierarchicalTagIndex.c"
+ }
+#line 21 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _g_free0 (path);
+#line 329 "HierarchicalTagIndex.c"
+ }
+#line 21 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _g_object_unref0 (_path_it);
+#line 333 "HierarchicalTagIndex.c"
+ }
+#line 33 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ result = _result_;
+#line 33 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _g_object_unref0 (paths);
+#line 33 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ return result;
+#line 341 "HierarchicalTagIndex.c"
+}
+
+
+HierarchicalTagIndex* hierarchical_tag_index_get_global_index (void) {
+ HierarchicalTagIndex* result = NULL;
+ TagSourceCollection* _tmp0_ = NULL;
+ GeeCollection* _tmp1_ = NULL;
+ GeeCollection* _tmp2_ = NULL;
+ HierarchicalTagIndex* _tmp3_ = NULL;
+ HierarchicalTagIndex* _tmp4_ = NULL;
+#line 37 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp0_ = tag_global;
+#line 37 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp1_ = tag_source_collection_get_all_names (_tmp0_);
+#line 37 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp2_ = _tmp1_;
+#line 37 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp3_ = hierarchical_tag_index_from_paths (_tmp2_);
+#line 37 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp4_ = _tmp3_;
+#line 37 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _g_object_unref0 (_tmp2_);
+#line 37 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ result = _tmp4_;
+#line 37 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ return result;
+#line 368 "HierarchicalTagIndex.c"
+}
+
+
+void hierarchical_tag_index_add_path (HierarchicalTagIndex* self, const gchar* tag, const gchar* path) {
+ GeeMap* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ gboolean _tmp2_ = FALSE;
+ GeeMap* _tmp7_ = NULL;
+ const gchar* _tmp8_ = NULL;
+ gpointer _tmp9_ = NULL;
+ GeeCollection* _tmp10_ = NULL;
+ const gchar* _tmp11_ = NULL;
+ GeeSortedSet* _tmp12_ = NULL;
+ const gchar* _tmp13_ = NULL;
+#line 40 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ g_return_if_fail (IS_HIERARCHICAL_TAG_INDEX (self));
+#line 40 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ g_return_if_fail (tag != NULL);
+#line 40 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ g_return_if_fail (path != NULL);
+#line 41 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp0_ = self->priv->tag_table;
+#line 41 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp1_ = tag;
+#line 41 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp2_ = gee_map_has_key (_tmp0_, _tmp1_);
+#line 41 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ if (!_tmp2_) {
+#line 397 "HierarchicalTagIndex.c"
+ GeeMap* _tmp3_ = NULL;
+ const gchar* _tmp4_ = NULL;
+ GeeArrayList* _tmp5_ = NULL;
+ GeeArrayList* _tmp6_ = NULL;
+#line 42 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp3_ = self->priv->tag_table;
+#line 42 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp4_ = tag;
+#line 42 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp5_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL, NULL, NULL);
+#line 42 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp6_ = _tmp5_;
+#line 42 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ gee_map_set (_tmp3_, _tmp4_, G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection));
+#line 42 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _g_object_unref0 (_tmp6_);
+#line 414 "HierarchicalTagIndex.c"
+ }
+#line 45 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp7_ = self->priv->tag_table;
+#line 45 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp8_ = tag;
+#line 45 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp9_ = gee_map_get (_tmp7_, _tmp8_);
+#line 45 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp10_ = (GeeCollection*) _tmp9_;
+#line 45 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp11_ = path;
+#line 45 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ gee_collection_add (_tmp10_, _tmp11_);
+#line 45 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _g_object_unref0 (_tmp10_);
+#line 46 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp12_ = self->priv->known_paths;
+#line 46 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp13_ = path;
+#line 46 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_COLLECTION, GeeCollection), _tmp13_);
+#line 436 "HierarchicalTagIndex.c"
+}
+
+
+GeeCollection* hierarchical_tag_index_get_all_paths (HierarchicalTagIndex* self) {
+ GeeCollection* result = NULL;
+ GeeSortedSet* _tmp0_ = NULL;
+ GeeSortedSet* _tmp1_ = NULL;
+ GeeSortedSet* _tmp2_ = NULL;
+#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ g_return_val_if_fail (IS_HIERARCHICAL_TAG_INDEX (self), NULL);
+#line 50 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp0_ = self->priv->known_paths;
+#line 50 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp1_ = gee_sorted_set_get_read_only_view (_tmp0_);
+#line 50 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp2_ = _tmp1_;
+#line 50 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection);
+#line 50 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ return result;
+#line 457 "HierarchicalTagIndex.c"
+}
+
+
+gboolean hierarchical_tag_index_is_tag_in_index (HierarchicalTagIndex* self, const gchar* tag) {
+ gboolean result = FALSE;
+ GeeMap* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ gboolean _tmp2_ = FALSE;
+#line 53 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ g_return_val_if_fail (IS_HIERARCHICAL_TAG_INDEX (self), FALSE);
+#line 53 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ g_return_val_if_fail (tag != NULL, FALSE);
+#line 54 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp0_ = self->priv->tag_table;
+#line 54 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp1_ = tag;
+#line 54 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp2_ = gee_map_has_key (_tmp0_, _tmp1_);
+#line 54 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ result = _tmp2_;
+#line 54 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ return result;
+#line 480 "HierarchicalTagIndex.c"
+}
+
+
+GeeCollection* hierarchical_tag_index_get_all_tags (HierarchicalTagIndex* self) {
+ GeeCollection* result = NULL;
+ GeeMap* _tmp0_ = NULL;
+ GeeSet* _tmp1_ = NULL;
+ GeeSet* _tmp2_ = NULL;
+#line 57 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ g_return_val_if_fail (IS_HIERARCHICAL_TAG_INDEX (self), NULL);
+#line 58 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp0_ = self->priv->tag_table;
+#line 58 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp1_ = gee_map_get_keys (_tmp0_);
+#line 58 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp2_ = _tmp1_;
+#line 58 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection);
+#line 58 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ return result;
+#line 501 "HierarchicalTagIndex.c"
+}
+
+
+gboolean hierarchical_tag_index_is_path_known (HierarchicalTagIndex* self, const gchar* path) {
+ gboolean result = FALSE;
+ GeeSortedSet* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ gboolean _tmp2_ = FALSE;
+#line 61 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ g_return_val_if_fail (IS_HIERARCHICAL_TAG_INDEX (self), FALSE);
+#line 61 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ g_return_val_if_fail (path != NULL, FALSE);
+#line 62 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp0_ = self->priv->known_paths;
+#line 62 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp1_ = path;
+#line 62 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp2_ = gee_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection), _tmp1_);
+#line 62 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ result = _tmp2_;
+#line 62 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ return result;
+#line 524 "HierarchicalTagIndex.c"
+}
+
+
+gchar* hierarchical_tag_index_get_path_for_name (HierarchicalTagIndex* self, const gchar* name) {
+ gchar* result = NULL;
+ const gchar* _tmp0_ = NULL;
+ gboolean _tmp1_ = FALSE;
+ GeeCollection* paths = NULL;
+ GeeMap* _tmp4_ = NULL;
+ const gchar* _tmp5_ = NULL;
+ gpointer _tmp6_ = NULL;
+#line 65 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ g_return_val_if_fail (IS_HIERARCHICAL_TAG_INDEX (self), NULL);
+#line 65 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ g_return_val_if_fail (name != NULL, NULL);
+#line 66 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp0_ = name;
+#line 66 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp1_ = hierarchical_tag_index_is_tag_in_index (self, _tmp0_);
+#line 66 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ if (!_tmp1_) {
+#line 546 "HierarchicalTagIndex.c"
+ const gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+#line 67 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp2_ = name;
+#line 67 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp3_ = g_strdup (_tmp2_);
+#line 67 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ result = _tmp3_;
+#line 67 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ return result;
+#line 557 "HierarchicalTagIndex.c"
+ }
+#line 69 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp4_ = self->priv->tag_table;
+#line 69 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp5_ = name;
+#line 69 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp6_ = gee_map_get (_tmp4_, _tmp5_);
+#line 69 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ paths = (GeeCollection*) _tmp6_;
+#line 567 "HierarchicalTagIndex.c"
+ {
+ GeeIterator* _path_it = NULL;
+ GeeCollection* _tmp7_ = NULL;
+ GeeIterator* _tmp8_ = NULL;
+#line 70 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp7_ = paths;
+#line 70 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp8_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ITERABLE, GeeIterable));
+#line 70 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _path_it = _tmp8_;
+#line 70 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ while (TRUE) {
+#line 580 "HierarchicalTagIndex.c"
+ GeeIterator* _tmp9_ = NULL;
+ gboolean _tmp10_ = FALSE;
+ gchar* path = NULL;
+ GeeIterator* _tmp11_ = NULL;
+ gpointer _tmp12_ = NULL;
+ GeeList* components = NULL;
+ const gchar* _tmp13_ = NULL;
+ GeeList* _tmp14_ = NULL;
+ GeeList* _tmp15_ = NULL;
+ GeeList* _tmp16_ = NULL;
+ gint _tmp17_ = 0;
+ gint _tmp18_ = 0;
+ gpointer _tmp19_ = NULL;
+ gchar* _tmp20_ = NULL;
+ const gchar* _tmp21_ = NULL;
+ gboolean _tmp22_ = FALSE;
+#line 70 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp9_ = _path_it;
+#line 70 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp10_ = gee_iterator_next (_tmp9_);
+#line 70 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ if (!_tmp10_) {
+#line 70 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ break;
+#line 605 "HierarchicalTagIndex.c"
+ }
+#line 70 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp11_ = _path_it;
+#line 70 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp12_ = gee_iterator_get (_tmp11_);
+#line 70 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ path = (gchar*) _tmp12_;
+#line 71 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp13_ = path;
+#line 71 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp14_ = hierarchical_tag_utilities_enumerate_path_components (_tmp13_);
+#line 71 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ components = _tmp14_;
+#line 72 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp15_ = components;
+#line 72 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp16_ = components;
+#line 72 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp17_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_COLLECTION, GeeCollection));
+#line 72 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp18_ = _tmp17_;
+#line 72 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp19_ = gee_list_get (_tmp15_, _tmp18_ - 1);
+#line 72 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp20_ = (gchar*) _tmp19_;
+#line 72 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp21_ = name;
+#line 72 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp22_ = g_strcmp0 (_tmp20_, _tmp21_) == 0;
+#line 72 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _g_free0 (_tmp20_);
+#line 72 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ if (_tmp22_) {
+#line 73 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ result = path;
+#line 73 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _g_object_unref0 (components);
+#line 73 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _g_object_unref0 (_path_it);
+#line 73 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _g_object_unref0 (paths);
+#line 73 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ return result;
+#line 649 "HierarchicalTagIndex.c"
+ }
+#line 70 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _g_object_unref0 (components);
+#line 70 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _g_free0 (path);
+#line 655 "HierarchicalTagIndex.c"
+ }
+#line 70 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _g_object_unref0 (_path_it);
+#line 659 "HierarchicalTagIndex.c"
+ }
+#line 77 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ g_assert_not_reached ();
+#line 65 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _g_object_unref0 (paths);
+#line 665 "HierarchicalTagIndex.c"
+}
+
+
+static void _vala_array_add140 (gchar*** array, int* length, int* size, gchar* value) {
+#line 84 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ if ((*length) == (*size)) {
+#line 84 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 84 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ *array = g_renew (gchar*, *array, (*size) + 1);
+#line 676 "HierarchicalTagIndex.c"
+ }
+#line 84 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ (*array)[(*length)++] = value;
+#line 84 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ (*array)[*length] = NULL;
+#line 682 "HierarchicalTagIndex.c"
+}
+
+
+gchar** hierarchical_tag_index_get_paths_for_names_array (HierarchicalTagIndex* self, gchar** names, int names_length1, int* result_length1) {
+ gchar** result = NULL;
+ gchar** _result_ = NULL;
+ gchar** _tmp0_ = NULL;
+ gint _result__length1 = 0;
+ gint __result__size_ = 0;
+ gchar** _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+ gchar** _tmp6_ = NULL;
+ gint _tmp6__length1 = 0;
+#line 80 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ g_return_val_if_fail (IS_HIERARCHICAL_TAG_INDEX (self), NULL);
+#line 81 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp0_ = g_new0 (gchar*, 0 + 1);
+#line 81 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _result_ = _tmp0_;
+#line 81 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _result__length1 = 0;
+#line 81 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ __result__size_ = _result__length1;
+#line 83 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp1_ = names;
+#line 83 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp1__length1 = names_length1;
+#line 710 "HierarchicalTagIndex.c"
+ {
+ gchar** name_collection = NULL;
+ gint name_collection_length1 = 0;
+ gint _name_collection_size_ = 0;
+ gint name_it = 0;
+#line 83 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ name_collection = _tmp1_;
+#line 83 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ name_collection_length1 = _tmp1__length1;
+#line 83 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ for (name_it = 0; name_it < _tmp1__length1; name_it = name_it + 1) {
+#line 722 "HierarchicalTagIndex.c"
+ gchar* _tmp2_ = NULL;
+ gchar* name = NULL;
+#line 83 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp2_ = g_strdup (name_collection[name_it]);
+#line 83 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ name = _tmp2_;
+#line 729 "HierarchicalTagIndex.c"
+ {
+ gchar** _tmp3_ = NULL;
+ gint _tmp3__length1 = 0;
+ const gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+#line 84 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp3_ = _result_;
+#line 84 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp3__length1 = _result__length1;
+#line 84 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp4_ = name;
+#line 84 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp5_ = hierarchical_tag_index_get_path_for_name (self, _tmp4_);
+#line 84 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _vala_array_add140 (&_result_, &_result__length1, &__result__size_, _tmp5_);
+#line 83 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _g_free0 (name);
+#line 747 "HierarchicalTagIndex.c"
+ }
+ }
+ }
+#line 86 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp6_ = _result_;
+#line 86 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _tmp6__length1 = _result__length1;
+#line 86 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ if (result_length1) {
+#line 86 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ *result_length1 = _tmp6__length1;
+#line 759 "HierarchicalTagIndex.c"
+ }
+#line 86 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ result = _tmp6_;
+#line 86 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ return result;
+#line 765 "HierarchicalTagIndex.c"
+}
+
+
+static void value_hierarchical_tag_index_init (GValue* value) {
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ value->data[0].v_pointer = NULL;
+#line 772 "HierarchicalTagIndex.c"
+}
+
+
+static void value_hierarchical_tag_index_free_value (GValue* value) {
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ if (value->data[0].v_pointer) {
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ hierarchical_tag_index_unref (value->data[0].v_pointer);
+#line 781 "HierarchicalTagIndex.c"
+ }
+}
+
+
+static void value_hierarchical_tag_index_copy_value (const GValue* src_value, GValue* dest_value) {
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ if (src_value->data[0].v_pointer) {
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ dest_value->data[0].v_pointer = hierarchical_tag_index_ref (src_value->data[0].v_pointer);
+#line 791 "HierarchicalTagIndex.c"
+ } else {
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ dest_value->data[0].v_pointer = NULL;
+#line 795 "HierarchicalTagIndex.c"
+ }
+}
+
+
+static gpointer value_hierarchical_tag_index_peek_pointer (const GValue* value) {
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ return value->data[0].v_pointer;
+#line 803 "HierarchicalTagIndex.c"
+}
+
+
+static gchar* value_hierarchical_tag_index_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ if (collect_values[0].v_pointer) {
+#line 810 "HierarchicalTagIndex.c"
+ HierarchicalTagIndex* object;
+ object = collect_values[0].v_pointer;
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ if (object->parent_instance.g_class == NULL) {
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 817 "HierarchicalTagIndex.c"
+ } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 821 "HierarchicalTagIndex.c"
+ }
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ value->data[0].v_pointer = hierarchical_tag_index_ref (object);
+#line 825 "HierarchicalTagIndex.c"
+ } else {
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ value->data[0].v_pointer = NULL;
+#line 829 "HierarchicalTagIndex.c"
+ }
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ return NULL;
+#line 833 "HierarchicalTagIndex.c"
+}
+
+
+static gchar* value_hierarchical_tag_index_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+ HierarchicalTagIndex** object_p;
+ object_p = collect_values[0].v_pointer;
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ if (!object_p) {
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
+#line 844 "HierarchicalTagIndex.c"
+ }
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ if (!value->data[0].v_pointer) {
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ *object_p = NULL;
+#line 850 "HierarchicalTagIndex.c"
+ } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ *object_p = value->data[0].v_pointer;
+#line 854 "HierarchicalTagIndex.c"
+ } else {
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ *object_p = hierarchical_tag_index_ref (value->data[0].v_pointer);
+#line 858 "HierarchicalTagIndex.c"
+ }
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ return NULL;
+#line 862 "HierarchicalTagIndex.c"
+}
+
+
+GParamSpec* param_spec_hierarchical_tag_index (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+ ParamSpecHierarchicalTagIndex* spec;
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ g_return_val_if_fail (g_type_is_a (object_type, TYPE_HIERARCHICAL_TAG_INDEX), NULL);
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ G_PARAM_SPEC (spec)->value_type = object_type;
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ return G_PARAM_SPEC (spec);
+#line 876 "HierarchicalTagIndex.c"
+}
+
+
+gpointer value_get_hierarchical_tag_index (const GValue* value) {
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_HIERARCHICAL_TAG_INDEX), NULL);
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ return value->data[0].v_pointer;
+#line 885 "HierarchicalTagIndex.c"
+}
+
+
+void value_set_hierarchical_tag_index (GValue* value, gpointer v_object) {
+ HierarchicalTagIndex* old;
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_HIERARCHICAL_TAG_INDEX));
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ old = value->data[0].v_pointer;
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ if (v_object) {
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_HIERARCHICAL_TAG_INDEX));
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ value->data[0].v_pointer = v_object;
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ hierarchical_tag_index_ref (value->data[0].v_pointer);
+#line 905 "HierarchicalTagIndex.c"
+ } else {
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ value->data[0].v_pointer = NULL;
+#line 909 "HierarchicalTagIndex.c"
+ }
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ if (old) {
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ hierarchical_tag_index_unref (old);
+#line 915 "HierarchicalTagIndex.c"
+ }
+}
+
+
+void value_take_hierarchical_tag_index (GValue* value, gpointer v_object) {
+ HierarchicalTagIndex* old;
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_HIERARCHICAL_TAG_INDEX));
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ old = value->data[0].v_pointer;
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ if (v_object) {
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_HIERARCHICAL_TAG_INDEX));
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ value->data[0].v_pointer = v_object;
+#line 934 "HierarchicalTagIndex.c"
+ } else {
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ value->data[0].v_pointer = NULL;
+#line 938 "HierarchicalTagIndex.c"
+ }
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ if (old) {
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ hierarchical_tag_index_unref (old);
+#line 944 "HierarchicalTagIndex.c"
+ }
+}
+
+
+static void hierarchical_tag_index_class_init (HierarchicalTagIndexClass * klass) {
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ hierarchical_tag_index_parent_class = g_type_class_peek_parent (klass);
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ ((HierarchicalTagIndexClass *) klass)->finalize = hierarchical_tag_index_finalize;
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ g_type_class_add_private (klass, sizeof (HierarchicalTagIndexPrivate));
+#line 956 "HierarchicalTagIndex.c"
+}
+
+
+static void hierarchical_tag_index_instance_init (HierarchicalTagIndex * self) {
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ self->priv = HIERARCHICAL_TAG_INDEX_GET_PRIVATE (self);
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ self->ref_count = 1;
+#line 965 "HierarchicalTagIndex.c"
+}
+
+
+static void hierarchical_tag_index_finalize (HierarchicalTagIndex* obj) {
+ HierarchicalTagIndex * self;
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndex);
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ g_signal_handlers_destroy (self);
+#line 8 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _g_object_unref0 (self->priv->tag_table);
+#line 9 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ _g_object_unref0 (self->priv->known_paths);
+#line 979 "HierarchicalTagIndex.c"
+}
+
+
+GType hierarchical_tag_index_get_type (void) {
+ static volatile gsize hierarchical_tag_index_type_id__volatile = 0;
+ if (g_once_init_enter (&hierarchical_tag_index_type_id__volatile)) {
+ static const GTypeValueTable g_define_type_value_table = { value_hierarchical_tag_index_init, value_hierarchical_tag_index_free_value, value_hierarchical_tag_index_copy_value, value_hierarchical_tag_index_peek_pointer, "p", value_hierarchical_tag_index_collect_value, "p", value_hierarchical_tag_index_lcopy_value };
+ static const GTypeInfo g_define_type_info = { sizeof (HierarchicalTagIndexClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) hierarchical_tag_index_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (HierarchicalTagIndex), 0, (GInstanceInitFunc) hierarchical_tag_index_instance_init, &g_define_type_value_table };
+ static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
+ GType hierarchical_tag_index_type_id;
+ hierarchical_tag_index_type_id = g_type_register_fundamental (g_type_fundamental_next (), "HierarchicalTagIndex", &g_define_type_info, &g_define_type_fundamental_info, 0);
+ g_once_init_leave (&hierarchical_tag_index_type_id__volatile, hierarchical_tag_index_type_id);
+ }
+ return hierarchical_tag_index_type_id__volatile;
+}
+
+
+gpointer hierarchical_tag_index_ref (gpointer instance) {
+ HierarchicalTagIndex* self;
+ self = instance;
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ g_atomic_int_inc (&self->ref_count);
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ return instance;
+#line 1004 "HierarchicalTagIndex.c"
+}
+
+
+void hierarchical_tag_index_unref (gpointer instance) {
+ HierarchicalTagIndex* self;
+ self = instance;
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ if (g_atomic_int_dec_and_test (&self->ref_count)) {
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ HIERARCHICAL_TAG_INDEX_GET_CLASS (self)->finalize (self);
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala"
+ g_type_free_instance ((GTypeInstance *) self);
+#line 1017 "HierarchicalTagIndex.c"
+ }
+}
+
+
+static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) {
+ if ((array != NULL) && (destroy_func != NULL)) {
+ int i;
+ for (i = 0; i < array_length; i = i + 1) {
+ if (((gpointer*) array)[i] != NULL) {
+ destroy_func (((gpointer*) array)[i]);
+ }
+ }
+ }
+}
+
+
+static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) {
+ _vala_array_destroy (array, array_length, destroy_func);
+ g_free (array);
+}
+
+
+
diff --git a/src/tags/HierarchicalTagUtilities.c b/src/tags/HierarchicalTagUtilities.c
new file mode 100644
index 0000000..827d497
--- /dev/null
+++ b/src/tags/HierarchicalTagUtilities.c
@@ -0,0 +1,2356 @@
+/* HierarchicalTagUtilities.c generated by valac 0.32.1, the Vala compiler
+ * generated from HierarchicalTagUtilities.vala, do not modify */
+
+/* Copyright 2016 Software Freedom Conservancy Inc.
+ *
+ * This software is licensed under the GNU LGPL (version 2.1 or later).
+ * See the COPYING file in this distribution.
+ */
+
+#include <glib.h>
+#include <glib-object.h>
+#include <stdlib.h>
+#include <string.h>
+#include <gee.h>
+#include <gobject/gvaluecollector.h>
+
+
+#define TYPE_HIERARCHICAL_TAG_UTILITIES (hierarchical_tag_utilities_get_type ())
+#define HIERARCHICAL_TAG_UTILITIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_HIERARCHICAL_TAG_UTILITIES, HierarchicalTagUtilities))
+#define HIERARCHICAL_TAG_UTILITIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_HIERARCHICAL_TAG_UTILITIES, HierarchicalTagUtilitiesClass))
+#define IS_HIERARCHICAL_TAG_UTILITIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_HIERARCHICAL_TAG_UTILITIES))
+#define IS_HIERARCHICAL_TAG_UTILITIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_HIERARCHICAL_TAG_UTILITIES))
+#define HIERARCHICAL_TAG_UTILITIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_HIERARCHICAL_TAG_UTILITIES, HierarchicalTagUtilitiesClass))
+
+typedef struct _HierarchicalTagUtilities HierarchicalTagUtilities;
+typedef struct _HierarchicalTagUtilitiesClass HierarchicalTagUtilitiesClass;
+typedef struct _HierarchicalTagUtilitiesPrivate HierarchicalTagUtilitiesPrivate;
+#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
+#define _g_free0(var) (var = (g_free (var), NULL))
+#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL)))
+#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
+
+#define TYPE_HIERARCHICAL_TAG_INDEX (hierarchical_tag_index_get_type ())
+#define HIERARCHICAL_TAG_INDEX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndex))
+#define HIERARCHICAL_TAG_INDEX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndexClass))
+#define IS_HIERARCHICAL_TAG_INDEX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_HIERARCHICAL_TAG_INDEX))
+#define IS_HIERARCHICAL_TAG_INDEX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_HIERARCHICAL_TAG_INDEX))
+#define HIERARCHICAL_TAG_INDEX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndexClass))
+
+typedef struct _HierarchicalTagIndex HierarchicalTagIndex;
+typedef struct _HierarchicalTagIndexClass HierarchicalTagIndexClass;
+#define _hierarchical_tag_index_unref0(var) ((var == NULL) ? NULL : (var = (hierarchical_tag_index_unref (var), NULL)))
+
+#define TYPE_DATA_COLLECTION (data_collection_get_type ())
+#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
+#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
+#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
+#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
+#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
+
+typedef struct _DataCollection DataCollection;
+typedef struct _DataCollectionClass DataCollectionClass;
+
+#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
+#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
+#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
+#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
+#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
+#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
+
+typedef struct _SourceCollection SourceCollection;
+typedef struct _SourceCollectionClass SourceCollectionClass;
+
+#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ())
+#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection))
+#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
+#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION))
+#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION))
+#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
+
+typedef struct _DatabaseSourceCollection DatabaseSourceCollection;
+typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass;
+
+#define TYPE_CONTAINER_SOURCE_COLLECTION (container_source_collection_get_type ())
+#define CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection))
+#define CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass))
+#define IS_CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE_COLLECTION))
+#define IS_CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONTAINER_SOURCE_COLLECTION))
+#define CONTAINER_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass))
+
+typedef struct _ContainerSourceCollection ContainerSourceCollection;
+typedef struct _ContainerSourceCollectionClass ContainerSourceCollectionClass;
+
+#define TYPE_TAG_SOURCE_COLLECTION (tag_source_collection_get_type ())
+#define TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollection))
+#define TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass))
+#define IS_TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_SOURCE_COLLECTION))
+#define IS_TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_SOURCE_COLLECTION))
+#define TAG_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass))
+
+typedef struct _TagSourceCollection TagSourceCollection;
+typedef struct _TagSourceCollectionClass TagSourceCollectionClass;
+
+#define TYPE_DATA_OBJECT (data_object_get_type ())
+#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject))
+#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass))
+#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
+#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
+#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
+
+typedef struct _DataObject DataObject;
+typedef struct _DataObjectClass DataObjectClass;
+
+#define TYPE_DATA_SOURCE (data_source_get_type ())
+#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
+#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
+#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
+#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
+#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
+
+typedef struct _DataSource DataSource;
+typedef struct _DataSourceClass DataSourceClass;
+
+#define TYPE_TAG (tag_get_type ())
+#define TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG, Tag))
+#define TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG, TagClass))
+#define IS_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG))
+#define IS_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG))
+#define TAG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG, TagClass))
+
+typedef struct _Tag Tag;
+typedef struct _TagClass TagClass;
+typedef struct _ParamSpecHierarchicalTagUtilities ParamSpecHierarchicalTagUtilities;
+#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
+#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
+#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
+#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
+
+struct _HierarchicalTagUtilities {
+ GTypeInstance parent_instance;
+ volatile int ref_count;
+ HierarchicalTagUtilitiesPrivate * priv;
+};
+
+struct _HierarchicalTagUtilitiesClass {
+ GTypeClass parent_class;
+ void (*finalize) (HierarchicalTagUtilities *self);
+};
+
+struct _ParamSpecHierarchicalTagUtilities {
+ GParamSpec parent_instance;
+};
+
+
+static gpointer hierarchical_tag_utilities_parent_class = NULL;
+extern TagSourceCollection* tag_global;
+
+gpointer hierarchical_tag_utilities_ref (gpointer instance);
+void hierarchical_tag_utilities_unref (gpointer instance);
+GParamSpec* param_spec_hierarchical_tag_utilities (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void value_set_hierarchical_tag_utilities (GValue* value, gpointer v_object);
+void value_take_hierarchical_tag_utilities (GValue* value, gpointer v_object);
+gpointer value_get_hierarchical_tag_utilities (const GValue* value);
+GType hierarchical_tag_utilities_get_type (void) G_GNUC_CONST;
+enum {
+ HIERARCHICAL_TAG_UTILITIES_DUMMY_PROPERTY
+};
+gchar* hierarchical_tag_utilities_flat_to_hierarchical (const gchar* name);
+#define TAG_PATH_SEPARATOR_STRING "/"
+gchar* hierarchical_tag_utilities_hierarchical_to_flat (const gchar* path);
+GeeList* hierarchical_tag_utilities_enumerate_path_components (const gchar* in_path);
+GeeList* hierarchical_tag_utilities_enumerate_parent_paths (const gchar* in_path);
+gchar* hierarchical_tag_utilities_join_path_components (gchar** path_components, int path_components_length1);
+gchar* hierarchical_tag_utilities_get_basename (const gchar* in_path);
+gchar* hierarchical_tag_utilities_canonicalize (const gchar* in_tag, const gchar* foreign_separator);
+gchar* hierarchical_tag_utilities_make_flat_tag_safe (const gchar* in_tag);
+gpointer hierarchical_tag_index_ref (gpointer instance);
+void hierarchical_tag_index_unref (gpointer instance);
+GParamSpec* param_spec_hierarchical_tag_index (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void value_set_hierarchical_tag_index (GValue* value, gpointer v_object);
+void value_take_hierarchical_tag_index (GValue* value, gpointer v_object);
+gpointer value_get_hierarchical_tag_index (const GValue* value);
+GType hierarchical_tag_index_get_type (void) G_GNUC_CONST;
+HierarchicalTagIndex* hierarchical_tag_utilities_process_hierarchical_import_keywords (GeeCollection* h_keywords);
+HierarchicalTagIndex* hierarchical_tag_index_new (void);
+HierarchicalTagIndex* hierarchical_tag_index_construct (GType object_type);
+gboolean hierarchical_tag_index_is_path_known (HierarchicalTagIndex* self, const gchar* path);
+void hierarchical_tag_index_add_path (HierarchicalTagIndex* self, const gchar* tag, const gchar* path);
+gchar* hierarchical_tag_utilities_get_root_path_form (const gchar* client_path);
+gpointer data_collection_ref (gpointer instance);
+void data_collection_unref (gpointer instance);
+GParamSpec* param_spec_data_collection (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void value_set_data_collection (GValue* value, gpointer v_object);
+void value_take_data_collection (GValue* value, gpointer v_object);
+gpointer value_get_data_collection (const GValue* value);
+GType data_collection_get_type (void) G_GNUC_CONST;
+GType source_collection_get_type (void) G_GNUC_CONST;
+GType database_source_collection_get_type (void) G_GNUC_CONST;
+GType container_source_collection_get_type (void) G_GNUC_CONST;
+GType tag_source_collection_get_type (void) G_GNUC_CONST;
+gboolean tag_source_collection_exists (TagSourceCollection* self, const gchar* name, gboolean treat_htags_as_root);
+void hierarchical_tag_utilities_cleanup_root_path (const gchar* path);
+GType data_object_get_type (void) G_GNUC_CONST;
+GType data_source_get_type (void) G_GNUC_CONST;
+GType tag_get_type (void) G_GNUC_CONST;
+Tag* tag_for_path (const gchar* name);
+GeeList* tag_get_hierarchical_children (Tag* self);
+void tag_flatten (Tag* self);
+HierarchicalTagUtilities* hierarchical_tag_utilities_new (void);
+HierarchicalTagUtilities* hierarchical_tag_utilities_construct (GType object_type);
+static void hierarchical_tag_utilities_finalize (HierarchicalTagUtilities* obj);
+static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
+static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);
+static gint _vala_array_length (gpointer array);
+
+
+/**
+ * converts a flat tag name 'name' (e.g., "Animals") to a tag path compatible with the
+ * hierarchical tag data model (e.g., "/Animals"). if 'name' is already a path compatible with
+ * the hierarchical data model, 'name' is returned untouched
+ */
+gchar* hierarchical_tag_utilities_flat_to_hierarchical (const gchar* name) {
+ gchar* result = NULL;
+ const gchar* _tmp0_ = NULL;
+ gboolean _tmp1_ = FALSE;
+#line 14 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ g_return_val_if_fail (name != NULL, NULL);
+#line 15 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp0_ = name;
+#line 15 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp1_ = g_str_has_prefix (_tmp0_, TAG_PATH_SEPARATOR_STRING);
+#line 15 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ if (!_tmp1_) {
+#line 225 "HierarchicalTagUtilities.c"
+ const gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+#line 16 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp2_ = name;
+#line 16 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp3_ = g_strconcat (TAG_PATH_SEPARATOR_STRING, _tmp2_, NULL);
+#line 16 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ result = _tmp3_;
+#line 16 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ return result;
+#line 236 "HierarchicalTagUtilities.c"
+ } else {
+ const gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+#line 18 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp4_ = name;
+#line 18 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp5_ = g_strdup (_tmp4_);
+#line 18 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ result = _tmp5_;
+#line 18 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ return result;
+#line 248 "HierarchicalTagUtilities.c"
+ }
+}
+
+
+/**
+ * converts a hierarchical tag path 'path' (e.g., "/Animals") to a flat tag name
+ * (e.g., "Animals"); if 'path' is already a flat tag name, 'path' is returned untouched; note
+ * that 'path' must be a top-level path (i.e., "/Animals" not "/Animals/Mammals/...") with
+ * only one path component; invoking this method with a 'path' argument other than a top-level
+ * path will cause an assertion failure.
+ */
+static glong string_strnlen (gchar* str, glong maxlen) {
+ glong result = 0L;
+ gchar* end = NULL;
+ gchar* _tmp0_ = NULL;
+ glong _tmp1_ = 0L;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp0_ = str;
+#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp1_ = maxlen;
+#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp2_ = memchr (_tmp0_, 0, (gsize) _tmp1_);
+#line 1295 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ end = _tmp2_;
+#line 1296 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp3_ = end;
+#line 1296 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (_tmp3_ == NULL) {
+#line 279 "HierarchicalTagUtilities.c"
+ glong _tmp4_ = 0L;
+#line 1297 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp4_ = maxlen;
+#line 1297 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ result = _tmp4_;
+#line 1297 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ return result;
+#line 287 "HierarchicalTagUtilities.c"
+ } else {
+ gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp5_ = end;
+#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp6_ = str;
+#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ result = (glong) (_tmp5_ - _tmp6_);
+#line 1299 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ return result;
+#line 299 "HierarchicalTagUtilities.c"
+ }
+}
+
+
+static gchar* string_substring (const gchar* self, glong offset, glong len) {
+ gchar* result = NULL;
+ glong string_length = 0L;
+ gboolean _tmp0_ = FALSE;
+ glong _tmp1_ = 0L;
+ glong _tmp8_ = 0L;
+ glong _tmp14_ = 0L;
+ glong _tmp17_ = 0L;
+ glong _tmp18_ = 0L;
+ glong _tmp19_ = 0L;
+ glong _tmp20_ = 0L;
+ glong _tmp21_ = 0L;
+ gchar* _tmp22_ = NULL;
+#line 1306 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_return_val_if_fail (self != NULL, NULL);
+#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp1_ = offset;
+#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (_tmp1_ >= ((glong) 0)) {
+#line 323 "HierarchicalTagUtilities.c"
+ glong _tmp2_ = 0L;
+#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp2_ = len;
+#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp0_ = _tmp2_ >= ((glong) 0);
+#line 329 "HierarchicalTagUtilities.c"
+ } else {
+#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp0_ = FALSE;
+#line 333 "HierarchicalTagUtilities.c"
+ }
+#line 1308 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (_tmp0_) {
+#line 337 "HierarchicalTagUtilities.c"
+ glong _tmp3_ = 0L;
+ glong _tmp4_ = 0L;
+ glong _tmp5_ = 0L;
+#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp3_ = offset;
+#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp4_ = len;
+#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp5_ = string_strnlen ((gchar*) self, _tmp3_ + _tmp4_);
+#line 1310 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ string_length = _tmp5_;
+#line 349 "HierarchicalTagUtilities.c"
+ } else {
+ gint _tmp6_ = 0;
+ gint _tmp7_ = 0;
+#line 1312 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp6_ = strlen (self);
+#line 1312 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp7_ = _tmp6_;
+#line 1312 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ string_length = (glong) _tmp7_;
+#line 359 "HierarchicalTagUtilities.c"
+ }
+#line 1315 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp8_ = offset;
+#line 1315 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (_tmp8_ < ((glong) 0)) {
+#line 365 "HierarchicalTagUtilities.c"
+ glong _tmp9_ = 0L;
+ glong _tmp10_ = 0L;
+ glong _tmp11_ = 0L;
+#line 1316 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp9_ = string_length;
+#line 1316 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp10_ = offset;
+#line 1316 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ offset = _tmp9_ + _tmp10_;
+#line 1317 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp11_ = offset;
+#line 1317 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_return_val_if_fail (_tmp11_ >= ((glong) 0), NULL);
+#line 379 "HierarchicalTagUtilities.c"
+ } else {
+ glong _tmp12_ = 0L;
+ glong _tmp13_ = 0L;
+#line 1319 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp12_ = offset;
+#line 1319 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp13_ = string_length;
+#line 1319 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_return_val_if_fail (_tmp12_ <= _tmp13_, NULL);
+#line 389 "HierarchicalTagUtilities.c"
+ }
+#line 1321 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp14_ = len;
+#line 1321 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (_tmp14_ < ((glong) 0)) {
+#line 395 "HierarchicalTagUtilities.c"
+ glong _tmp15_ = 0L;
+ glong _tmp16_ = 0L;
+#line 1322 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp15_ = string_length;
+#line 1322 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp16_ = offset;
+#line 1322 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ len = _tmp15_ - _tmp16_;
+#line 404 "HierarchicalTagUtilities.c"
+ }
+#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp17_ = offset;
+#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp18_ = len;
+#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp19_ = string_length;
+#line 1324 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_return_val_if_fail ((_tmp17_ + _tmp18_) <= _tmp19_, NULL);
+#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp20_ = offset;
+#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp21_ = len;
+#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp22_ = g_strndup (((gchar*) self) + _tmp20_, (gsize) _tmp21_);
+#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ result = _tmp22_;
+#line 1325 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ return result;
+#line 424 "HierarchicalTagUtilities.c"
+}
+
+
+gchar* hierarchical_tag_utilities_hierarchical_to_flat (const gchar* path) {
+ gchar* result = NULL;
+ const gchar* _tmp0_ = NULL;
+ gboolean _tmp1_ = FALSE;
+#line 28 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ g_return_val_if_fail (path != NULL, NULL);
+#line 29 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp0_ = path;
+#line 29 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp1_ = g_str_has_prefix (_tmp0_, TAG_PATH_SEPARATOR_STRING);
+#line 29 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ if (_tmp1_) {
+#line 440 "HierarchicalTagUtilities.c"
+ const gchar* _tmp2_ = NULL;
+ GeeList* _tmp3_ = NULL;
+ GeeList* _tmp4_ = NULL;
+ gint _tmp5_ = 0;
+ gint _tmp6_ = 0;
+ const gchar* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+#line 30 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp2_ = path;
+#line 30 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp3_ = hierarchical_tag_utilities_enumerate_path_components (_tmp2_);
+#line 30 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp4_ = _tmp3_;
+#line 30 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp5_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_COLLECTION, GeeCollection));
+#line 30 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp6_ = _tmp5_;
+#line 30 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _vala_assert (_tmp6_ == 1, "enumerate_path_components(path).size == 1");
+#line 30 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _g_object_unref0 (_tmp4_);
+#line 32 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp7_ = path;
+#line 32 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp8_ = string_substring (_tmp7_, (glong) 1, (glong) -1);
+#line 32 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ result = _tmp8_;
+#line 32 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ return result;
+#line 470 "HierarchicalTagUtilities.c"
+ } else {
+ const gchar* _tmp9_ = NULL;
+ gchar* _tmp10_ = NULL;
+#line 34 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp9_ = path;
+#line 34 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp10_ = g_strdup (_tmp9_);
+#line 34 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ result = _tmp10_;
+#line 34 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ return result;
+#line 482 "HierarchicalTagUtilities.c"
+ }
+}
+
+
+/**
+ * given a path 'path', generate all parent paths of 'path' and return them in sorted order,
+ * from most basic to most derived. For example, if 'path' == "/Animals/Mammals/Elephant",
+ * the list { "/Animals", "/Animals/Mammals" } is returned
+ */
+GeeList* hierarchical_tag_utilities_enumerate_parent_paths (const gchar* in_path) {
+ GeeList* result = NULL;
+ gchar* path = NULL;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ GeeList* _result_ = NULL;
+ GeeArrayList* _tmp2_ = NULL;
+ gchar* accumulator = NULL;
+ gchar* _tmp3_ = NULL;
+#line 43 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ g_return_val_if_fail (in_path != NULL, NULL);
+#line 44 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp0_ = in_path;
+#line 44 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp1_ = hierarchical_tag_utilities_flat_to_hierarchical (_tmp0_);
+#line 44 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ path = _tmp1_;
+#line 46 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp2_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL, NULL, NULL);
+#line 46 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _result_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_LIST, GeeList);
+#line 48 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp3_ = g_strdup ("");
+#line 48 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ accumulator = _tmp3_;
+#line 517 "HierarchicalTagUtilities.c"
+ {
+ GeeList* _component_list = NULL;
+ const gchar* _tmp4_ = NULL;
+ GeeList* _tmp5_ = NULL;
+ gint _component_size = 0;
+ GeeList* _tmp6_ = NULL;
+ gint _tmp7_ = 0;
+ gint _tmp8_ = 0;
+ gint _component_index = 0;
+#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp4_ = path;
+#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp5_ = hierarchical_tag_utilities_enumerate_path_components (_tmp4_);
+#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _component_list = _tmp5_;
+#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp6_ = _component_list;
+#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp7_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection));
+#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp8_ = _tmp7_;
+#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _component_size = _tmp8_;
+#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _component_index = -1;
+#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ while (TRUE) {
+#line 545 "HierarchicalTagUtilities.c"
+ gint _tmp9_ = 0;
+ gint _tmp10_ = 0;
+ gint _tmp11_ = 0;
+ gchar* component = NULL;
+ GeeList* _tmp12_ = NULL;
+ gint _tmp13_ = 0;
+ gpointer _tmp14_ = NULL;
+ const gchar* _tmp15_ = NULL;
+ const gchar* _tmp16_ = NULL;
+ gchar* _tmp17_ = NULL;
+ gchar* _tmp18_ = NULL;
+ gchar* _tmp19_ = NULL;
+ const gchar* _tmp20_ = NULL;
+ const gchar* _tmp21_ = NULL;
+#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp9_ = _component_index;
+#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _component_index = _tmp9_ + 1;
+#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp10_ = _component_index;
+#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp11_ = _component_size;
+#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ if (!(_tmp10_ < _tmp11_)) {
+#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ break;
+#line 572 "HierarchicalTagUtilities.c"
+ }
+#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp12_ = _component_list;
+#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp13_ = _component_index;
+#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp14_ = gee_list_get (_tmp12_, _tmp13_);
+#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ component = (gchar*) _tmp14_;
+#line 50 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp15_ = accumulator;
+#line 50 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp16_ = component;
+#line 50 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp17_ = g_strconcat (TAG_PATH_SEPARATOR_STRING, _tmp16_, NULL);
+#line 50 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp18_ = _tmp17_;
+#line 50 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp19_ = g_strconcat (_tmp15_, _tmp18_, NULL);
+#line 50 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _g_free0 (accumulator);
+#line 50 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ accumulator = _tmp19_;
+#line 50 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _g_free0 (_tmp18_);
+#line 51 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp20_ = accumulator;
+#line 51 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp21_ = path;
+#line 51 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ if (g_strcmp0 (_tmp20_, _tmp21_) != 0) {
+#line 604 "HierarchicalTagUtilities.c"
+ GeeList* _tmp22_ = NULL;
+ const gchar* _tmp23_ = NULL;
+#line 52 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp22_ = _result_;
+#line 52 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp23_ = accumulator;
+#line 52 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GEE_TYPE_COLLECTION, GeeCollection), _tmp23_);
+#line 613 "HierarchicalTagUtilities.c"
+ }
+#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _g_free0 (component);
+#line 617 "HierarchicalTagUtilities.c"
+ }
+#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _g_object_unref0 (_component_list);
+#line 621 "HierarchicalTagUtilities.c"
+ }
+#line 55 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ result = _result_;
+#line 55 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _g_free0 (accumulator);
+#line 55 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _g_free0 (path);
+#line 55 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ return result;
+#line 631 "HierarchicalTagUtilities.c"
+}
+
+
+/**
+ * given a path 'path', enumerate all of the components of 'path' and return them in
+ * order, excluding the path component separator. For example if
+ * 'path' == "/Animals/Mammals/Elephant" the list { "Animals", "Mammals", "Elephant" } will
+ * be returned
+ */
+GeeList* hierarchical_tag_utilities_enumerate_path_components (const gchar* in_path) {
+ GeeList* result = NULL;
+ gchar* path = NULL;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ GeeArrayList* components = NULL;
+ GeeArrayList* _tmp2_ = NULL;
+ gchar** raw_components = NULL;
+ const gchar* _tmp3_ = NULL;
+ gchar** _tmp4_ = NULL;
+ gchar** _tmp5_ = NULL;
+ gint raw_components_length1 = 0;
+ gint _raw_components_size_ = 0;
+ gchar** _tmp6_ = NULL;
+ gint _tmp6__length1 = 0;
+ GeeArrayList* _tmp11_ = NULL;
+ gint _tmp12_ = 0;
+ gint _tmp13_ = 0;
+#line 64 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ g_return_val_if_fail (in_path != NULL, NULL);
+#line 65 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp0_ = in_path;
+#line 65 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp1_ = hierarchical_tag_utilities_flat_to_hierarchical (_tmp0_);
+#line 65 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ path = _tmp1_;
+#line 67 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp2_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL, NULL, NULL);
+#line 67 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ components = _tmp2_;
+#line 69 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp3_ = path;
+#line 69 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp5_ = _tmp4_ = g_strsplit (_tmp3_, TAG_PATH_SEPARATOR_STRING, 0);
+#line 69 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ raw_components = _tmp5_;
+#line 69 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ raw_components_length1 = _vala_array_length (_tmp4_);
+#line 69 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _raw_components_size_ = raw_components_length1;
+#line 71 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp6_ = raw_components;
+#line 71 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp6__length1 = raw_components_length1;
+#line 685 "HierarchicalTagUtilities.c"
+ {
+ gchar** component_collection = NULL;
+ gint component_collection_length1 = 0;
+ gint _component_collection_size_ = 0;
+ gint component_it = 0;
+#line 71 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ component_collection = _tmp6_;
+#line 71 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ component_collection_length1 = _tmp6__length1;
+#line 71 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ for (component_it = 0; component_it < _tmp6__length1; component_it = component_it + 1) {
+#line 697 "HierarchicalTagUtilities.c"
+ gchar* _tmp7_ = NULL;
+ gchar* component = NULL;
+#line 71 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp7_ = g_strdup (component_collection[component_it]);
+#line 71 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ component = _tmp7_;
+#line 704 "HierarchicalTagUtilities.c"
+ {
+ const gchar* _tmp8_ = NULL;
+#line 72 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp8_ = component;
+#line 72 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ if (g_strcmp0 (_tmp8_, "") != 0) {
+#line 711 "HierarchicalTagUtilities.c"
+ GeeArrayList* _tmp9_ = NULL;
+ const gchar* _tmp10_ = NULL;
+#line 73 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp9_ = components;
+#line 73 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp10_ = component;
+#line 73 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp10_);
+#line 720 "HierarchicalTagUtilities.c"
+ }
+#line 71 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _g_free0 (component);
+#line 724 "HierarchicalTagUtilities.c"
+ }
+ }
+ }
+#line 76 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp11_ = components;
+#line 76 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp12_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_COLLECTION, GeeCollection));
+#line 76 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp13_ = _tmp12_;
+#line 76 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _vala_assert (_tmp13_ > 0, "components.size > 0");
+#line 78 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ result = G_TYPE_CHECK_INSTANCE_CAST (components, GEE_TYPE_LIST, GeeList);
+#line 78 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ raw_components = (_vala_array_free (raw_components, raw_components_length1, (GDestroyNotify) g_free), NULL);
+#line 78 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _g_free0 (path);
+#line 78 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ return result;
+#line 744 "HierarchicalTagUtilities.c"
+}
+
+
+/**
+ * given a list of path elements, create a fully qualified path string.
+ * For example if 'path_elements' is the list { "Animals", "Mammals", "Elephant" }
+ * the path "/Animals/Mammals/Elephant" will be returned
+ */
+static gchar* _vala_g_strjoinv (const gchar* separator, gchar** str_array, int str_array_length1) {
+ gchar* result = NULL;
+ const gchar* _tmp0_ = NULL;
+ gboolean _tmp1_ = FALSE;
+ gboolean _tmp2_ = FALSE;
+ gchar** _tmp3_ = NULL;
+ gint _tmp3__length1 = 0;
+#line 1054 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp0_ = separator;
+#line 1054 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (_tmp0_ == NULL) {
+#line 1055 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ separator = "";
+#line 766 "HierarchicalTagUtilities.c"
+ }
+#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp3_ = str_array;
+#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp3__length1 = str_array_length1;
+#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (_tmp3_ != NULL) {
+#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp2_ = TRUE;
+#line 776 "HierarchicalTagUtilities.c"
+ } else {
+ gchar** _tmp4_ = NULL;
+ gint _tmp4__length1 = 0;
+#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp4_ = str_array;
+#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp4__length1 = str_array_length1;
+#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp2_ = _tmp4__length1 > 0;
+#line 786 "HierarchicalTagUtilities.c"
+ }
+#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (_tmp2_) {
+#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp1_ = TRUE;
+#line 792 "HierarchicalTagUtilities.c"
+ } else {
+ gboolean _tmp5_ = FALSE;
+ gchar** _tmp6_ = NULL;
+ gint _tmp6__length1 = 0;
+#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp6_ = str_array;
+#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp6__length1 = str_array_length1;
+#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (_tmp6__length1 == -1) {
+#line 803 "HierarchicalTagUtilities.c"
+ gchar** _tmp7_ = NULL;
+ gint _tmp7__length1 = 0;
+ const gchar* _tmp8_ = NULL;
+#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp7_ = str_array;
+#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp7__length1 = str_array_length1;
+#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp8_ = _tmp7_[0];
+#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp5_ = _tmp8_ != NULL;
+#line 815 "HierarchicalTagUtilities.c"
+ } else {
+#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp5_ = FALSE;
+#line 819 "HierarchicalTagUtilities.c"
+ }
+#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp1_ = _tmp5_;
+#line 823 "HierarchicalTagUtilities.c"
+ }
+#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (_tmp1_) {
+#line 827 "HierarchicalTagUtilities.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;
+ const gchar* res = NULL;
+ gsize _tmp40_ = 0UL;
+ void* _tmp41_ = NULL;
+ 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.32/vapi/glib-2.0.vapi"
+ len = (gsize) 1;
+#line 850 "HierarchicalTagUtilities.c"
+ {
+ gboolean _tmp9_ = FALSE;
+#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ i = 0;
+#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp9_ = TRUE;
+#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ while (TRUE) {
+#line 859 "HierarchicalTagUtilities.c"
+ gboolean _tmp11_ = FALSE;
+ gboolean _tmp12_ = FALSE;
+ gchar** _tmp13_ = NULL;
+ gint _tmp13__length1 = 0;
+ 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.32/vapi/glib-2.0.vapi"
+ if (!_tmp9_) {
+#line 872 "HierarchicalTagUtilities.c"
+ gint _tmp10_ = 0;
+#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp10_ = i;
+#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ i = _tmp10_ + 1;
+#line 878 "HierarchicalTagUtilities.c"
+ }
+#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp9_ = FALSE;
+#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp13_ = str_array;
+#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp13__length1 = str_array_length1;
+#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (_tmp13__length1 != -1) {
+#line 888 "HierarchicalTagUtilities.c"
+ gint _tmp14_ = 0;
+ gchar** _tmp15_ = NULL;
+ gint _tmp15__length1 = 0;
+#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp14_ = i;
+#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp15_ = str_array;
+#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp15__length1 = str_array_length1;
+#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp12_ = _tmp14_ < _tmp15__length1;
+#line 900 "HierarchicalTagUtilities.c"
+ } else {
+#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp12_ = FALSE;
+#line 904 "HierarchicalTagUtilities.c"
+ }
+#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (_tmp12_) {
+#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp11_ = TRUE;
+#line 910 "HierarchicalTagUtilities.c"
+ } else {
+ gboolean _tmp16_ = FALSE;
+ gchar** _tmp17_ = NULL;
+ gint _tmp17__length1 = 0;
+#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp17_ = str_array;
+#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp17__length1 = str_array_length1;
+#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (_tmp17__length1 == -1) {
+#line 921 "HierarchicalTagUtilities.c"
+ gchar** _tmp18_ = NULL;
+ gint _tmp18__length1 = 0;
+ gint _tmp19_ = 0;
+ const gchar* _tmp20_ = NULL;
+#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp18_ = str_array;
+#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp18__length1 = str_array_length1;
+#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp19_ = i;
+#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp20_ = _tmp18_[_tmp19_];
+#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp16_ = _tmp20_ != NULL;
+#line 936 "HierarchicalTagUtilities.c"
+ } else {
+#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp16_ = FALSE;
+#line 940 "HierarchicalTagUtilities.c"
+ }
+#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp11_ = _tmp16_;
+#line 944 "HierarchicalTagUtilities.c"
+ }
+#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (!_tmp11_) {
+#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ break;
+#line 950 "HierarchicalTagUtilities.c"
+ }
+#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp22_ = str_array;
+#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp22__length1 = str_array_length1;
+#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp23_ = i;
+#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp24_ = _tmp22_[_tmp23_];
+#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (_tmp24_ != NULL) {
+#line 962 "HierarchicalTagUtilities.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.32/vapi/glib-2.0.vapi"
+ _tmp25_ = str_array;
+#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp25__length1 = str_array_length1;
+#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp26_ = i;
+#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp27_ = _tmp25_[_tmp26_];
+#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp28_ = strlen ((const gchar*) _tmp27_);
+#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp29_ = _tmp28_;
+#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp21_ = _tmp29_;
+#line 983 "HierarchicalTagUtilities.c"
+ } else {
+#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp21_ = 0;
+#line 987 "HierarchicalTagUtilities.c"
+ }
+#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp30_ = len;
+#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ len = _tmp30_ + _tmp21_;
+#line 993 "HierarchicalTagUtilities.c"
+ }
+ }
+#line 1063 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp31_ = i;
+#line 1063 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (_tmp31_ == 0) {
+#line 1000 "HierarchicalTagUtilities.c"
+ gchar* _tmp32_ = NULL;
+#line 1064 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp32_ = g_strdup ("");
+#line 1064 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ result = _tmp32_;
+#line 1064 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ return result;
+#line 1008 "HierarchicalTagUtilities.c"
+ }
+#line 1066 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp33_ = i;
+#line 1066 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ str_array_length1 = _tmp33_;
+#line 1066 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp34_ = str_array_length1;
+#line 1067 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp35_ = len;
+#line 1067 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp36_ = separator;
+#line 1067 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp37_ = strlen ((const gchar*) _tmp36_);
+#line 1067 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp38_ = _tmp37_;
+#line 1067 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp39_ = i;
+#line 1067 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ len = _tmp35_ + (_tmp38_ * (_tmp39_ - 1));
+#line 1069 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp40_ = len;
+#line 1069 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp41_ = g_malloc (_tmp40_);
+#line 1069 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ res = _tmp41_;
+#line 1070 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp42_ = res;
+#line 1070 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp43_ = str_array;
+#line 1070 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp43__length1 = str_array_length1;
+#line 1070 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp44_ = _tmp43_[0];
+#line 1070 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp45_ = g_stpcpy ((void*) _tmp42_, (const gchar*) _tmp44_);
+#line 1070 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ ptr = _tmp45_;
+#line 1046 "HierarchicalTagUtilities.c"
+ {
+ gboolean _tmp46_ = FALSE;
+#line 1071 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ i = 1;
+#line 1071 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp46_ = TRUE;
+#line 1071 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ while (TRUE) {
+#line 1055 "HierarchicalTagUtilities.c"
+ gint _tmp48_ = 0;
+ gchar** _tmp49_ = NULL;
+ gint _tmp49__length1 = 0;
+ void* _tmp50_ = NULL;
+ const gchar* _tmp51_ = NULL;
+ void* _tmp52_ = NULL;
+ 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.32/vapi/glib-2.0.vapi"
+ if (!_tmp46_) {
+#line 1071 "HierarchicalTagUtilities.c"
+ gint _tmp47_ = 0;
+#line 1071 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp47_ = i;
+#line 1071 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ i = _tmp47_ + 1;
+#line 1077 "HierarchicalTagUtilities.c"
+ }
+#line 1071 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp46_ = FALSE;
+#line 1071 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp48_ = i;
+#line 1071 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp49_ = str_array;
+#line 1071 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp49__length1 = str_array_length1;
+#line 1071 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (!(_tmp48_ < _tmp49__length1)) {
+#line 1071 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ break;
+#line 1091 "HierarchicalTagUtilities.c"
+ }
+#line 1072 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp50_ = ptr;
+#line 1072 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp51_ = separator;
+#line 1072 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp52_ = g_stpcpy (_tmp50_, (const gchar*) _tmp51_);
+#line 1072 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ ptr = _tmp52_;
+#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp54_ = str_array;
+#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp54__length1 = str_array_length1;
+#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp55_ = i;
+#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp56_ = _tmp54_[_tmp55_];
+#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (_tmp56_ != NULL) {
+#line 1111 "HierarchicalTagUtilities.c"
+ gchar** _tmp57_ = NULL;
+ gint _tmp57__length1 = 0;
+ gint _tmp58_ = 0;
+ const gchar* _tmp59_ = NULL;
+#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp57_ = str_array;
+#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp57__length1 = str_array_length1;
+#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp58_ = i;
+#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp59_ = _tmp57_[_tmp58_];
+#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp53_ = (const gchar*) _tmp59_;
+#line 1126 "HierarchicalTagUtilities.c"
+ } else {
+#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp53_ = "";
+#line 1130 "HierarchicalTagUtilities.c"
+ }
+#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp60_ = ptr;
+#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp61_ = g_stpcpy (_tmp60_, _tmp53_);
+#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ ptr = _tmp61_;
+#line 1138 "HierarchicalTagUtilities.c"
+ }
+ }
+#line 1076 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp62_ = res;
+#line 1076 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ res = NULL;
+#line 1076 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ result = (gchar*) _tmp62_;
+#line 1076 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ return result;
+#line 1149 "HierarchicalTagUtilities.c"
+ } else {
+ gchar* _tmp63_ = NULL;
+#line 1078 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp63_ = g_strdup ("");
+#line 1078 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ result = _tmp63_;
+#line 1078 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ return result;
+#line 1158 "HierarchicalTagUtilities.c"
+ }
+}
+
+
+gchar* hierarchical_tag_utilities_join_path_components (gchar** path_components, int path_components_length1) {
+ gchar* result = NULL;
+ gchar** _tmp0_ = NULL;
+ gint _tmp0__length1 = 0;
+ gchar* tmp = NULL;
+ gchar** _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ const gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ gchar** _tmp6_ = NULL;
+ gchar** _tmp7_ = NULL;
+ gint _tmp7__length1 = 0;
+ gchar* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+#line 87 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp0_ = path_components;
+#line 87 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp0__length1 = path_components_length1;
+#line 87 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ if (_tmp0__length1 <= 0) {
+#line 88 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ result = NULL;
+#line 88 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ return result;
+#line 1189 "HierarchicalTagUtilities.c"
+ }
+#line 89 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp1_ = path_components;
+#line 89 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp1__length1 = path_components_length1;
+#line 89 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp2_ = _vala_g_strjoinv (TAG_PATH_SEPARATOR_STRING, _tmp1_, _tmp1__length1);
+#line 89 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ tmp = _tmp2_;
+#line 90 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp3_ = g_strdup ("");
+#line 90 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp4_ = tmp;
+#line 90 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp5_ = g_strdup (_tmp4_);
+#line 90 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp6_ = g_new0 (gchar*, 2 + 1);
+#line 90 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp6_[0] = _tmp3_;
+#line 90 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp6_[1] = _tmp5_;
+#line 90 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp7_ = _tmp6_;
+#line 90 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp7__length1 = 2;
+#line 90 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp8_ = _vala_g_strjoinv (TAG_PATH_SEPARATOR_STRING, _tmp7_, 2);
+#line 90 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp9_ = _tmp8_;
+#line 90 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp7_ = (_vala_array_free (_tmp7_, _tmp7__length1, (GDestroyNotify) g_free), NULL);
+#line 90 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ result = _tmp9_;
+#line 90 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _g_free0 (tmp);
+#line 90 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ return result;
+#line 1227 "HierarchicalTagUtilities.c"
+}
+
+
+gchar* hierarchical_tag_utilities_get_basename (const gchar* in_path) {
+ gchar* result = NULL;
+ gchar* path = NULL;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ GeeList* components = NULL;
+ GeeList* _tmp2_ = NULL;
+ gchar* basename = NULL;
+ gint _tmp3_ = 0;
+ gint _tmp4_ = 0;
+ gpointer _tmp5_ = NULL;
+#line 93 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ g_return_val_if_fail (in_path != NULL, NULL);
+#line 94 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp0_ = in_path;
+#line 94 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp1_ = hierarchical_tag_utilities_flat_to_hierarchical (_tmp0_);
+#line 94 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ path = _tmp1_;
+#line 96 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp2_ = hierarchical_tag_utilities_enumerate_path_components (path);
+#line 96 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ components = _tmp2_;
+#line 98 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp3_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (components, GEE_TYPE_COLLECTION, GeeCollection));
+#line 98 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp4_ = _tmp3_;
+#line 98 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp5_ = gee_list_get (components, _tmp4_ - 1);
+#line 98 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ basename = (gchar*) _tmp5_;
+#line 100 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ result = basename;
+#line 100 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _g_object_unref0 (components);
+#line 100 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _g_free0 (path);
+#line 100 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ return result;
+#line 1270 "HierarchicalTagUtilities.c"
+}
+
+
+static gchar* string_replace (const gchar* self, const gchar* old, const gchar* replacement) {
+ gchar* result = NULL;
+ GError * _inner_error_ = NULL;
+#line 1380 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_return_val_if_fail (self != NULL, NULL);
+#line 1380 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_return_val_if_fail (old != NULL, NULL);
+#line 1380 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_return_val_if_fail (replacement != NULL, NULL);
+#line 1283 "HierarchicalTagUtilities.c"
+ {
+ GRegex* regex = NULL;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ GRegex* _tmp3_ = NULL;
+ GRegex* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ GRegex* _tmp6_ = NULL;
+ const gchar* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp0_ = old;
+#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp1_ = g_regex_escape_string (_tmp0_, -1);
+#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp2_ = _tmp1_;
+#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp3_ = g_regex_new (_tmp2_, 0, 0, &_inner_error_);
+#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp4_ = _tmp3_;
+#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _g_free0 (_tmp2_);
+#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ regex = _tmp4_;
+#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (_inner_error_->domain == G_REGEX_ERROR) {
+#line 1314 "HierarchicalTagUtilities.c"
+ goto __catch53_g_regex_error;
+ }
+#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_clear_error (&_inner_error_);
+#line 1382 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ return NULL;
+#line 1323 "HierarchicalTagUtilities.c"
+ }
+#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp6_ = regex;
+#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp7_ = replacement;
+#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp8_ = g_regex_replace_literal (_tmp6_, self, (gssize) -1, 0, _tmp7_, 0, &_inner_error_);
+#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp5_ = _tmp8_;
+#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _g_regex_unref0 (regex);
+#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (_inner_error_->domain == G_REGEX_ERROR) {
+#line 1339 "HierarchicalTagUtilities.c"
+ goto __catch53_g_regex_error;
+ }
+#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _g_regex_unref0 (regex);
+#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_clear_error (&_inner_error_);
+#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ return NULL;
+#line 1350 "HierarchicalTagUtilities.c"
+ }
+#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp9_ = _tmp5_;
+#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp5_ = NULL;
+#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ result = _tmp9_;
+#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _g_free0 (_tmp5_);
+#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _g_regex_unref0 (regex);
+#line 1383 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ return result;
+#line 1364 "HierarchicalTagUtilities.c"
+ }
+ goto __finally53;
+ __catch53_g_regex_error:
+ {
+ GError* e = NULL;
+#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ e = _inner_error_;
+#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _inner_error_ = NULL;
+#line 1385 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_assert_not_reached ();
+#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _g_error_free0 (e);
+#line 1378 "HierarchicalTagUtilities.c"
+ }
+ __finally53:
+#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_clear_error (&_inner_error_);
+#line 1381 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ return NULL;
+#line 1389 "HierarchicalTagUtilities.c"
+ }
+}
+
+
+static gchar string_get (const gchar* self, glong index) {
+ gchar result = '\0';
+ glong _tmp0_ = 0L;
+ gchar _tmp1_ = '\0';
+#line 1086 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ g_return_val_if_fail (self != NULL, '\0');
+#line 1087 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp0_ = index;
+#line 1087 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ _tmp1_ = ((gchar*) self)[_tmp0_];
+#line 1087 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ result = _tmp1_;
+#line 1087 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
+ return result;
+#line 1408 "HierarchicalTagUtilities.c"
+}
+
+
+gchar* hierarchical_tag_utilities_canonicalize (const gchar* in_tag, const gchar* foreign_separator) {
+ gchar* result = NULL;
+ gchar* _result_ = NULL;
+ const gchar* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ const gchar* _tmp3_ = NULL;
+ gboolean _tmp4_ = FALSE;
+ gboolean is_valid = FALSE;
+ const gchar* _tmp17_ = NULL;
+ gboolean _tmp18_ = FALSE;
+ gchar* _tmp20_ = NULL;
+#line 103 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ g_return_val_if_fail (in_tag != NULL, NULL);
+#line 103 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ g_return_val_if_fail (foreign_separator != NULL, NULL);
+#line 104 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp0_ = in_tag;
+#line 104 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp1_ = foreign_separator;
+#line 104 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp2_ = string_replace (_tmp0_, _tmp1_, TAG_PATH_SEPARATOR_STRING);
+#line 104 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _result_ = _tmp2_;
+#line 106 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp3_ = _result_;
+#line 106 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp4_ = g_str_has_prefix (_tmp3_, TAG_PATH_SEPARATOR_STRING);
+#line 106 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ if (!_tmp4_) {
+#line 1442 "HierarchicalTagUtilities.c"
+ const gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+#line 107 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp5_ = _result_;
+#line 107 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp6_ = g_strconcat (TAG_PATH_SEPARATOR_STRING, _tmp5_, NULL);
+#line 107 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _g_free0 (_result_);
+#line 107 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _result_ = _tmp6_;
+#line 1453 "HierarchicalTagUtilities.c"
+ }
+#line 110 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ is_valid = FALSE;
+#line 1457 "HierarchicalTagUtilities.c"
+ {
+ gint i = 0;
+#line 111 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ i = 0;
+#line 1462 "HierarchicalTagUtilities.c"
+ {
+ gboolean _tmp7_ = FALSE;
+#line 111 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp7_ = TRUE;
+#line 111 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ while (TRUE) {
+#line 1469 "HierarchicalTagUtilities.c"
+ gint _tmp9_ = 0;
+ const gchar* _tmp10_ = NULL;
+ gint _tmp11_ = 0;
+ gint _tmp12_ = 0;
+ const gchar* _tmp13_ = NULL;
+ gint _tmp14_ = 0;
+ gchar _tmp15_ = '\0';
+ gchar _tmp16_ = '\0';
+#line 111 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ if (!_tmp7_) {
+#line 1480 "HierarchicalTagUtilities.c"
+ gint _tmp8_ = 0;
+#line 111 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp8_ = i;
+#line 111 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ i = _tmp8_ + 1;
+#line 1486 "HierarchicalTagUtilities.c"
+ }
+#line 111 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp7_ = FALSE;
+#line 111 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp9_ = i;
+#line 111 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp10_ = _result_;
+#line 111 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp11_ = strlen (_tmp10_);
+#line 111 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp12_ = _tmp11_;
+#line 111 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ if (!(_tmp9_ < _tmp12_)) {
+#line 111 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ break;
+#line 1502 "HierarchicalTagUtilities.c"
+ }
+#line 112 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp13_ = _result_;
+#line 112 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp14_ = i;
+#line 112 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp15_ = string_get (_tmp13_, (glong) _tmp14_);
+#line 112 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp16_ = string_get (TAG_PATH_SEPARATOR_STRING, (glong) 0);
+#line 112 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ if (_tmp15_ != _tmp16_) {
+#line 113 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ is_valid = TRUE;
+#line 114 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ break;
+#line 1518 "HierarchicalTagUtilities.c"
+ }
+ }
+ }
+ }
+#line 118 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp18_ = is_valid;
+#line 118 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ if (_tmp18_) {
+#line 1527 "HierarchicalTagUtilities.c"
+ const gchar* _tmp19_ = NULL;
+#line 118 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp19_ = _result_;
+#line 118 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp17_ = _tmp19_;
+#line 1533 "HierarchicalTagUtilities.c"
+ } else {
+#line 118 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp17_ = NULL;
+#line 1537 "HierarchicalTagUtilities.c"
+ }
+#line 118 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp20_ = g_strdup (_tmp17_);
+#line 118 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ result = _tmp20_;
+#line 118 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _g_free0 (_result_);
+#line 118 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ return result;
+#line 1547 "HierarchicalTagUtilities.c"
+}
+
+
+gchar* hierarchical_tag_utilities_make_flat_tag_safe (const gchar* in_tag) {
+ gchar* result = NULL;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+#line 121 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ g_return_val_if_fail (in_tag != NULL, NULL);
+#line 122 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp0_ = in_tag;
+#line 122 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp1_ = string_replace (_tmp0_, TAG_PATH_SEPARATOR_STRING, "-");
+#line 122 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ result = _tmp1_;
+#line 122 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ return result;
+#line 1565 "HierarchicalTagUtilities.c"
+}
+
+
+HierarchicalTagIndex* hierarchical_tag_utilities_process_hierarchical_import_keywords (GeeCollection* h_keywords) {
+ HierarchicalTagIndex* result = NULL;
+ HierarchicalTagIndex* index = NULL;
+ HierarchicalTagIndex* _tmp0_ = NULL;
+#line 125 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ g_return_val_if_fail (GEE_IS_COLLECTION (h_keywords), NULL);
+#line 126 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp0_ = hierarchical_tag_index_new ();
+#line 126 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ index = _tmp0_;
+#line 1579 "HierarchicalTagUtilities.c"
+ {
+ GeeIterator* _keyword_it = NULL;
+ GeeCollection* _tmp1_ = NULL;
+ GeeIterator* _tmp2_ = NULL;
+#line 128 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp1_ = h_keywords;
+#line 128 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ITERABLE, GeeIterable));
+#line 128 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _keyword_it = _tmp2_;
+#line 128 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ while (TRUE) {
+#line 1592 "HierarchicalTagUtilities.c"
+ GeeIterator* _tmp3_ = NULL;
+ gboolean _tmp4_ = FALSE;
+ gchar* keyword = NULL;
+ GeeIterator* _tmp5_ = NULL;
+ gpointer _tmp6_ = NULL;
+ GeeList* parent_paths = NULL;
+ const gchar* _tmp7_ = NULL;
+ GeeList* _tmp8_ = NULL;
+ GeeList* path_components = NULL;
+ const gchar* _tmp9_ = NULL;
+ GeeList* _tmp10_ = NULL;
+ GeeList* _tmp11_ = NULL;
+ gint _tmp12_ = 0;
+ gint _tmp13_ = 0;
+ GeeList* _tmp14_ = NULL;
+ gint _tmp15_ = 0;
+ gint _tmp16_ = 0;
+ HierarchicalTagIndex* _tmp39_ = NULL;
+ const gchar* _tmp40_ = NULL;
+ gchar* _tmp41_ = NULL;
+ gchar* _tmp42_ = NULL;
+ const gchar* _tmp43_ = NULL;
+#line 128 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp3_ = _keyword_it;
+#line 128 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp4_ = gee_iterator_next (_tmp3_);
+#line 128 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ if (!_tmp4_) {
+#line 128 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ break;
+#line 1623 "HierarchicalTagUtilities.c"
+ }
+#line 128 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp5_ = _keyword_it;
+#line 128 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp6_ = gee_iterator_get (_tmp5_);
+#line 128 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ keyword = (gchar*) _tmp6_;
+#line 129 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp7_ = keyword;
+#line 129 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp8_ = hierarchical_tag_utilities_enumerate_parent_paths (_tmp7_);
+#line 129 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ parent_paths = _tmp8_;
+#line 131 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp9_ = keyword;
+#line 131 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp10_ = hierarchical_tag_utilities_enumerate_path_components (_tmp9_);
+#line 131 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ path_components = _tmp10_;
+#line 134 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp11_ = parent_paths;
+#line 134 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp12_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_COLLECTION, GeeCollection));
+#line 134 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp13_ = _tmp12_;
+#line 134 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp14_ = path_components;
+#line 134 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp15_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_COLLECTION, GeeCollection));
+#line 134 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp16_ = _tmp15_;
+#line 134 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _vala_assert (_tmp13_ <= _tmp16_, "parent_paths.size <= path_components.size");
+#line 1657 "HierarchicalTagUtilities.c"
+ {
+ gint i = 0;
+#line 136 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ i = 0;
+#line 1662 "HierarchicalTagUtilities.c"
+ {
+ gboolean _tmp17_ = FALSE;
+#line 136 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp17_ = TRUE;
+#line 136 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ while (TRUE) {
+#line 1669 "HierarchicalTagUtilities.c"
+ gint _tmp19_ = 0;
+ GeeList* _tmp20_ = NULL;
+ gint _tmp21_ = 0;
+ gint _tmp22_ = 0;
+ HierarchicalTagIndex* _tmp23_ = NULL;
+ GeeList* _tmp24_ = NULL;
+ gint _tmp25_ = 0;
+ gpointer _tmp26_ = NULL;
+ gchar* _tmp27_ = NULL;
+ gboolean _tmp28_ = FALSE;
+ gboolean _tmp29_ = FALSE;
+#line 136 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ if (!_tmp17_) {
+#line 1683 "HierarchicalTagUtilities.c"
+ gint _tmp18_ = 0;
+#line 136 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp18_ = i;
+#line 136 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ i = _tmp18_ + 1;
+#line 1689 "HierarchicalTagUtilities.c"
+ }
+#line 136 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp17_ = FALSE;
+#line 136 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp19_ = i;
+#line 136 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp20_ = parent_paths;
+#line 136 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp21_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_COLLECTION, GeeCollection));
+#line 136 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp22_ = _tmp21_;
+#line 136 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ if (!(_tmp19_ < _tmp22_)) {
+#line 136 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ break;
+#line 1705 "HierarchicalTagUtilities.c"
+ }
+#line 137 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp23_ = index;
+#line 137 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp24_ = path_components;
+#line 137 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp25_ = i;
+#line 137 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp26_ = gee_list_get (_tmp24_, _tmp25_);
+#line 137 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp27_ = (gchar*) _tmp26_;
+#line 137 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp28_ = hierarchical_tag_index_is_path_known (_tmp23_, _tmp27_);
+#line 137 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp29_ = !_tmp28_;
+#line 137 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _g_free0 (_tmp27_);
+#line 137 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ if (_tmp29_) {
+#line 1725 "HierarchicalTagUtilities.c"
+ HierarchicalTagIndex* _tmp30_ = NULL;
+ GeeList* _tmp31_ = NULL;
+ gint _tmp32_ = 0;
+ gpointer _tmp33_ = NULL;
+ gchar* _tmp34_ = NULL;
+ GeeList* _tmp35_ = NULL;
+ gint _tmp36_ = 0;
+ gpointer _tmp37_ = NULL;
+ gchar* _tmp38_ = NULL;
+#line 138 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp30_ = index;
+#line 138 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp31_ = path_components;
+#line 138 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp32_ = i;
+#line 138 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp33_ = gee_list_get (_tmp31_, _tmp32_);
+#line 138 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp34_ = (gchar*) _tmp33_;
+#line 138 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp35_ = parent_paths;
+#line 138 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp36_ = i;
+#line 138 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp37_ = gee_list_get (_tmp35_, _tmp36_);
+#line 138 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp38_ = (gchar*) _tmp37_;
+#line 138 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ hierarchical_tag_index_add_path (_tmp30_, _tmp34_, _tmp38_);
+#line 138 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _g_free0 (_tmp38_);
+#line 138 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _g_free0 (_tmp34_);
+#line 1759 "HierarchicalTagUtilities.c"
+ }
+ }
+ }
+ }
+#line 141 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp39_ = index;
+#line 141 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp40_ = keyword;
+#line 141 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp41_ = hierarchical_tag_utilities_get_basename (_tmp40_);
+#line 141 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp42_ = _tmp41_;
+#line 141 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp43_ = keyword;
+#line 141 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ hierarchical_tag_index_add_path (_tmp39_, _tmp42_, _tmp43_);
+#line 141 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _g_free0 (_tmp42_);
+#line 128 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _g_object_unref0 (path_components);
+#line 128 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _g_object_unref0 (parent_paths);
+#line 128 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _g_free0 (keyword);
+#line 1784 "HierarchicalTagUtilities.c"
+ }
+#line 128 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _g_object_unref0 (_keyword_it);
+#line 1788 "HierarchicalTagUtilities.c"
+ }
+#line 144 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ result = index;
+#line 144 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ return result;
+#line 1794 "HierarchicalTagUtilities.c"
+}
+
+
+gchar* hierarchical_tag_utilities_get_root_path_form (const gchar* client_path) {
+ gchar* result = NULL;
+ const gchar* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ GeeList* _tmp2_ = NULL;
+ GeeList* _tmp3_ = NULL;
+ gint _tmp4_ = 0;
+ gint _tmp5_ = 0;
+ gboolean _tmp6_ = FALSE;
+ gchar* path = NULL;
+ const gchar* _tmp9_ = NULL;
+ gchar* _tmp10_ = NULL;
+ TagSourceCollection* _tmp11_ = NULL;
+ const gchar* _tmp12_ = NULL;
+ gboolean _tmp13_ = FALSE;
+ const gchar* _tmp20_ = NULL;
+ TagSourceCollection* _tmp21_ = NULL;
+ const gchar* _tmp22_ = NULL;
+ gboolean _tmp23_ = FALSE;
+ gchar* _tmp25_ = NULL;
+#line 148 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp0_ = client_path;
+#line 148 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ if (_tmp0_ == NULL) {
+#line 149 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ result = NULL;
+#line 149 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ return result;
+#line 1826 "HierarchicalTagUtilities.c"
+ }
+#line 151 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp1_ = client_path;
+#line 151 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp2_ = hierarchical_tag_utilities_enumerate_parent_paths (_tmp1_);
+#line 151 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp3_ = _tmp2_;
+#line 151 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp4_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection));
+#line 151 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp5_ = _tmp4_;
+#line 151 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp6_ = _tmp5_ != 0;
+#line 151 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _g_object_unref0 (_tmp3_);
+#line 151 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ if (_tmp6_) {
+#line 1844 "HierarchicalTagUtilities.c"
+ const gchar* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+#line 152 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp7_ = client_path;
+#line 152 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp8_ = g_strdup (_tmp7_);
+#line 152 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ result = _tmp8_;
+#line 152 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ return result;
+#line 1855 "HierarchicalTagUtilities.c"
+ }
+#line 154 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp9_ = client_path;
+#line 154 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp10_ = g_strdup (_tmp9_);
+#line 154 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ path = _tmp10_;
+#line 156 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp11_ = tag_global;
+#line 156 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp12_ = path;
+#line 156 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp13_ = tag_source_collection_exists (_tmp11_, _tmp12_, FALSE);
+#line 156 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ if (!_tmp13_) {
+#line 1871 "HierarchicalTagUtilities.c"
+ const gchar* _tmp14_ = NULL;
+ gboolean _tmp15_ = FALSE;
+#line 157 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp14_ = path;
+#line 157 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp15_ = g_str_has_prefix (_tmp14_, TAG_PATH_SEPARATOR_STRING);
+#line 157 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ if (_tmp15_) {
+#line 1880 "HierarchicalTagUtilities.c"
+ const gchar* _tmp16_ = NULL;
+ gchar* _tmp17_ = NULL;
+#line 158 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp16_ = path;
+#line 158 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp17_ = hierarchical_tag_utilities_hierarchical_to_flat (_tmp16_);
+#line 158 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _g_free0 (path);
+#line 158 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ path = _tmp17_;
+#line 1891 "HierarchicalTagUtilities.c"
+ } else {
+ const gchar* _tmp18_ = NULL;
+ gchar* _tmp19_ = NULL;
+#line 160 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp18_ = path;
+#line 160 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp19_ = hierarchical_tag_utilities_flat_to_hierarchical (_tmp18_);
+#line 160 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _g_free0 (path);
+#line 160 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ path = _tmp19_;
+#line 1903 "HierarchicalTagUtilities.c"
+ }
+ }
+#line 163 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp21_ = tag_global;
+#line 163 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp22_ = path;
+#line 163 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp23_ = tag_source_collection_exists (_tmp21_, _tmp22_, FALSE);
+#line 163 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ if (_tmp23_) {
+#line 1914 "HierarchicalTagUtilities.c"
+ const gchar* _tmp24_ = NULL;
+#line 163 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp24_ = path;
+#line 163 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp20_ = _tmp24_;
+#line 1920 "HierarchicalTagUtilities.c"
+ } else {
+#line 163 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp20_ = NULL;
+#line 1924 "HierarchicalTagUtilities.c"
+ }
+#line 163 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp25_ = g_strdup (_tmp20_);
+#line 163 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ result = _tmp25_;
+#line 163 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _g_free0 (path);
+#line 163 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ return result;
+#line 1934 "HierarchicalTagUtilities.c"
+}
+
+
+void hierarchical_tag_utilities_cleanup_root_path (const gchar* path) {
+ GeeList* paths = NULL;
+ const gchar* _tmp0_ = NULL;
+ GeeList* _tmp1_ = NULL;
+ GeeList* _tmp2_ = NULL;
+ gint _tmp3_ = 0;
+ gint _tmp4_ = 0;
+#line 166 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ g_return_if_fail (path != NULL);
+#line 167 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp0_ = path;
+#line 167 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp1_ = hierarchical_tag_utilities_enumerate_parent_paths (_tmp0_);
+#line 167 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ paths = _tmp1_;
+#line 169 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp2_ = paths;
+#line 169 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp3_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection));
+#line 169 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp4_ = _tmp3_;
+#line 169 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ if (_tmp4_ == 0) {
+#line 1961 "HierarchicalTagUtilities.c"
+ gchar* actual_path = NULL;
+ const gchar* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ const gchar* _tmp7_ = NULL;
+ Tag* t = NULL;
+ TagSourceCollection* _tmp8_ = NULL;
+ const gchar* _tmp9_ = NULL;
+ gboolean _tmp10_ = FALSE;
+ gboolean _tmp13_ = FALSE;
+ Tag* _tmp14_ = NULL;
+#line 170 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp5_ = path;
+#line 170 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp6_ = hierarchical_tag_utilities_get_root_path_form (_tmp5_);
+#line 170 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ actual_path = _tmp6_;
+#line 172 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp7_ = actual_path;
+#line 172 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ if (_tmp7_ == NULL) {
+#line 173 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _g_free0 (actual_path);
+#line 173 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _g_object_unref0 (paths);
+#line 173 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ return;
+#line 1988 "HierarchicalTagUtilities.c"
+ }
+#line 175 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ t = NULL;
+#line 176 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp8_ = tag_global;
+#line 176 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp9_ = actual_path;
+#line 176 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp10_ = tag_source_collection_exists (_tmp8_, _tmp9_, FALSE);
+#line 176 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ if (_tmp10_) {
+#line 2000 "HierarchicalTagUtilities.c"
+ const gchar* _tmp11_ = NULL;
+ Tag* _tmp12_ = NULL;
+#line 177 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp11_ = actual_path;
+#line 177 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp12_ = tag_for_path (_tmp11_);
+#line 177 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _g_object_unref0 (t);
+#line 177 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ t = _tmp12_;
+#line 2011 "HierarchicalTagUtilities.c"
+ }
+#line 179 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp14_ = t;
+#line 179 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ if (_tmp14_ != NULL) {
+#line 2017 "HierarchicalTagUtilities.c"
+ Tag* _tmp15_ = NULL;
+ GeeList* _tmp16_ = NULL;
+ GeeList* _tmp17_ = NULL;
+ gint _tmp18_ = 0;
+ gint _tmp19_ = 0;
+#line 179 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp15_ = t;
+#line 179 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp16_ = tag_get_hierarchical_children (_tmp15_);
+#line 179 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp17_ = _tmp16_;
+#line 179 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp18_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_COLLECTION, GeeCollection));
+#line 179 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp19_ = _tmp18_;
+#line 179 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp13_ = _tmp19_ == 0;
+#line 179 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _g_object_unref0 (_tmp17_);
+#line 2037 "HierarchicalTagUtilities.c"
+ } else {
+#line 179 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp13_ = FALSE;
+#line 2041 "HierarchicalTagUtilities.c"
+ }
+#line 179 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ if (_tmp13_) {
+#line 2045 "HierarchicalTagUtilities.c"
+ Tag* _tmp20_ = NULL;
+#line 180 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _tmp20_ = t;
+#line 180 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ tag_flatten (_tmp20_);
+#line 2051 "HierarchicalTagUtilities.c"
+ }
+#line 169 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _g_object_unref0 (t);
+#line 169 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _g_free0 (actual_path);
+#line 2057 "HierarchicalTagUtilities.c"
+ }
+#line 166 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ _g_object_unref0 (paths);
+#line 2061 "HierarchicalTagUtilities.c"
+}
+
+
+HierarchicalTagUtilities* hierarchical_tag_utilities_construct (GType object_type) {
+ HierarchicalTagUtilities* self = NULL;
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ self = (HierarchicalTagUtilities*) g_type_create_instance (object_type);
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ return self;
+#line 2071 "HierarchicalTagUtilities.c"
+}
+
+
+HierarchicalTagUtilities* hierarchical_tag_utilities_new (void) {
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ return hierarchical_tag_utilities_construct (TYPE_HIERARCHICAL_TAG_UTILITIES);
+#line 2078 "HierarchicalTagUtilities.c"
+}
+
+
+static void value_hierarchical_tag_utilities_init (GValue* value) {
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ value->data[0].v_pointer = NULL;
+#line 2085 "HierarchicalTagUtilities.c"
+}
+
+
+static void value_hierarchical_tag_utilities_free_value (GValue* value) {
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ if (value->data[0].v_pointer) {
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ hierarchical_tag_utilities_unref (value->data[0].v_pointer);
+#line 2094 "HierarchicalTagUtilities.c"
+ }
+}
+
+
+static void value_hierarchical_tag_utilities_copy_value (const GValue* src_value, GValue* dest_value) {
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ if (src_value->data[0].v_pointer) {
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ dest_value->data[0].v_pointer = hierarchical_tag_utilities_ref (src_value->data[0].v_pointer);
+#line 2104 "HierarchicalTagUtilities.c"
+ } else {
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ dest_value->data[0].v_pointer = NULL;
+#line 2108 "HierarchicalTagUtilities.c"
+ }
+}
+
+
+static gpointer value_hierarchical_tag_utilities_peek_pointer (const GValue* value) {
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ return value->data[0].v_pointer;
+#line 2116 "HierarchicalTagUtilities.c"
+}
+
+
+static gchar* value_hierarchical_tag_utilities_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ if (collect_values[0].v_pointer) {
+#line 2123 "HierarchicalTagUtilities.c"
+ HierarchicalTagUtilities* object;
+ object = collect_values[0].v_pointer;
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ if (object->parent_instance.g_class == NULL) {
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 2130 "HierarchicalTagUtilities.c"
+ } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
+#line 2134 "HierarchicalTagUtilities.c"
+ }
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ value->data[0].v_pointer = hierarchical_tag_utilities_ref (object);
+#line 2138 "HierarchicalTagUtilities.c"
+ } else {
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ value->data[0].v_pointer = NULL;
+#line 2142 "HierarchicalTagUtilities.c"
+ }
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ return NULL;
+#line 2146 "HierarchicalTagUtilities.c"
+}
+
+
+static gchar* value_hierarchical_tag_utilities_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+ HierarchicalTagUtilities** object_p;
+ object_p = collect_values[0].v_pointer;
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ if (!object_p) {
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
+#line 2157 "HierarchicalTagUtilities.c"
+ }
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ if (!value->data[0].v_pointer) {
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ *object_p = NULL;
+#line 2163 "HierarchicalTagUtilities.c"
+ } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ *object_p = value->data[0].v_pointer;
+#line 2167 "HierarchicalTagUtilities.c"
+ } else {
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ *object_p = hierarchical_tag_utilities_ref (value->data[0].v_pointer);
+#line 2171 "HierarchicalTagUtilities.c"
+ }
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ return NULL;
+#line 2175 "HierarchicalTagUtilities.c"
+}
+
+
+GParamSpec* param_spec_hierarchical_tag_utilities (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+ ParamSpecHierarchicalTagUtilities* spec;
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ g_return_val_if_fail (g_type_is_a (object_type, TYPE_HIERARCHICAL_TAG_UTILITIES), NULL);
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ G_PARAM_SPEC (spec)->value_type = object_type;
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ return G_PARAM_SPEC (spec);
+#line 2189 "HierarchicalTagUtilities.c"
+}
+
+
+gpointer value_get_hierarchical_tag_utilities (const GValue* value) {
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_HIERARCHICAL_TAG_UTILITIES), NULL);
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ return value->data[0].v_pointer;
+#line 2198 "HierarchicalTagUtilities.c"
+}
+
+
+void value_set_hierarchical_tag_utilities (GValue* value, gpointer v_object) {
+ HierarchicalTagUtilities* old;
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_HIERARCHICAL_TAG_UTILITIES));
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ old = value->data[0].v_pointer;
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ if (v_object) {
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_HIERARCHICAL_TAG_UTILITIES));
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ value->data[0].v_pointer = v_object;
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ hierarchical_tag_utilities_ref (value->data[0].v_pointer);
+#line 2218 "HierarchicalTagUtilities.c"
+ } else {
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ value->data[0].v_pointer = NULL;
+#line 2222 "HierarchicalTagUtilities.c"
+ }
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ if (old) {
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ hierarchical_tag_utilities_unref (old);
+#line 2228 "HierarchicalTagUtilities.c"
+ }
+}
+
+
+void value_take_hierarchical_tag_utilities (GValue* value, gpointer v_object) {
+ HierarchicalTagUtilities* old;
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_HIERARCHICAL_TAG_UTILITIES));
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ old = value->data[0].v_pointer;
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ if (v_object) {
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_HIERARCHICAL_TAG_UTILITIES));
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ value->data[0].v_pointer = v_object;
+#line 2247 "HierarchicalTagUtilities.c"
+ } else {
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ value->data[0].v_pointer = NULL;
+#line 2251 "HierarchicalTagUtilities.c"
+ }
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ if (old) {
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ hierarchical_tag_utilities_unref (old);
+#line 2257 "HierarchicalTagUtilities.c"
+ }
+}
+
+
+static void hierarchical_tag_utilities_class_init (HierarchicalTagUtilitiesClass * klass) {
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ hierarchical_tag_utilities_parent_class = g_type_class_peek_parent (klass);
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ ((HierarchicalTagUtilitiesClass *) klass)->finalize = hierarchical_tag_utilities_finalize;
+#line 2267 "HierarchicalTagUtilities.c"
+}
+
+
+static void hierarchical_tag_utilities_instance_init (HierarchicalTagUtilities * self) {
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ self->ref_count = 1;
+#line 2274 "HierarchicalTagUtilities.c"
+}
+
+
+static void hierarchical_tag_utilities_finalize (HierarchicalTagUtilities* obj) {
+ HierarchicalTagUtilities * self;
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_HIERARCHICAL_TAG_UTILITIES, HierarchicalTagUtilities);
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ g_signal_handlers_destroy (self);
+#line 2284 "HierarchicalTagUtilities.c"
+}
+
+
+GType hierarchical_tag_utilities_get_type (void) {
+ static volatile gsize hierarchical_tag_utilities_type_id__volatile = 0;
+ if (g_once_init_enter (&hierarchical_tag_utilities_type_id__volatile)) {
+ static const GTypeValueTable g_define_type_value_table = { value_hierarchical_tag_utilities_init, value_hierarchical_tag_utilities_free_value, value_hierarchical_tag_utilities_copy_value, value_hierarchical_tag_utilities_peek_pointer, "p", value_hierarchical_tag_utilities_collect_value, "p", value_hierarchical_tag_utilities_lcopy_value };
+ static const GTypeInfo g_define_type_info = { sizeof (HierarchicalTagUtilitiesClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) hierarchical_tag_utilities_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (HierarchicalTagUtilities), 0, (GInstanceInitFunc) hierarchical_tag_utilities_instance_init, &g_define_type_value_table };
+ static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
+ GType hierarchical_tag_utilities_type_id;
+ hierarchical_tag_utilities_type_id = g_type_register_fundamental (g_type_fundamental_next (), "HierarchicalTagUtilities", &g_define_type_info, &g_define_type_fundamental_info, 0);
+ g_once_init_leave (&hierarchical_tag_utilities_type_id__volatile, hierarchical_tag_utilities_type_id);
+ }
+ return hierarchical_tag_utilities_type_id__volatile;
+}
+
+
+gpointer hierarchical_tag_utilities_ref (gpointer instance) {
+ HierarchicalTagUtilities* self;
+ self = instance;
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ g_atomic_int_inc (&self->ref_count);
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ return instance;
+#line 2309 "HierarchicalTagUtilities.c"
+}
+
+
+void hierarchical_tag_utilities_unref (gpointer instance) {
+ HierarchicalTagUtilities* self;
+ self = instance;
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ if (g_atomic_int_dec_and_test (&self->ref_count)) {
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ HIERARCHICAL_TAG_UTILITIES_GET_CLASS (self)->finalize (self);
+#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala"
+ g_type_free_instance ((GTypeInstance *) self);
+#line 2322 "HierarchicalTagUtilities.c"
+ }
+}
+
+
+static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) {
+ if ((array != NULL) && (destroy_func != NULL)) {
+ int i;
+ for (i = 0; i < array_length; i = i + 1) {
+ if (((gpointer*) array)[i] != NULL) {
+ destroy_func (((gpointer*) array)[i]);
+ }
+ }
+ }
+}
+
+
+static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) {
+ _vala_array_destroy (array, array_length, destroy_func);
+ g_free (array);
+}
+
+
+static gint _vala_array_length (gpointer array) {
+ int length;
+ length = 0;
+ if (array) {
+ while (((gpointer*) array)[length]) {
+ length++;
+ }
+ }
+ return length;
+}
+
+
+
diff --git a/src/tags/TagPage.c b/src/tags/TagPage.c
new file mode 100644
index 0000000..c85ae23
--- /dev/null
+++ b/src/tags/TagPage.c
@@ -0,0 +1,1635 @@
+/* TagPage.c generated by valac 0.32.1, the Vala compiler
+ * generated from TagPage.vala, do not modify */
+
+/* Copyright 2016 Software Freedom Conservancy Inc.
+ *
+ * This software is licensed under the GNU Lesser General Public License
+ * (version 2.1 or later). See the COPYING file in this distribution.
+ */
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+#include <stdlib.h>
+#include <string.h>
+#include <gee.h>
+#include <gdk/gdk.h>
+#include <glib/gi18n-lib.h>
+
+
+#define TYPE_PAGE (page_get_type ())
+#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page))
+#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass))
+#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE))
+#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE))
+#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass))
+
+typedef struct _Page Page;
+typedef struct _PageClass PageClass;
+typedef struct _PagePrivate PagePrivate;
+
+#define TYPE_PAGE_WINDOW (page_window_get_type ())
+#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow))
+#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass))
+#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW))
+#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW))
+#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass))
+
+typedef struct _PageWindow PageWindow;
+typedef struct _PageWindowClass PageWindowClass;
+
+#define TYPE_FULLSCREEN_WINDOW (fullscreen_window_get_type ())
+#define FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindow))
+#define FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass))
+#define IS_FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FULLSCREEN_WINDOW))
+#define IS_FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FULLSCREEN_WINDOW))
+#define FULLSCREEN_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass))
+
+typedef struct _FullscreenWindow FullscreenWindow;
+typedef struct _FullscreenWindowClass FullscreenWindowClass;
+
+#define TYPE_INJECTION_GROUP (injection_group_get_type ())
+#define INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INJECTION_GROUP, InjectionGroup))
+#define INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_INJECTION_GROUP, InjectionGroupClass))
+#define IS_INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INJECTION_GROUP))
+#define IS_INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_INJECTION_GROUP))
+#define INJECTION_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_INJECTION_GROUP, InjectionGroupClass))
+
+typedef struct _InjectionGroup InjectionGroup;
+typedef struct _InjectionGroupClass InjectionGroupClass;
+
+#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ())
+#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage))
+#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
+#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE))
+#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE))
+#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
+
+typedef struct _CheckerboardPage CheckerboardPage;
+typedef struct _CheckerboardPageClass CheckerboardPageClass;
+typedef struct _CheckerboardPagePrivate CheckerboardPagePrivate;
+
+#define TYPE_DATA_OBJECT (data_object_get_type ())
+#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject))
+#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass))
+#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
+#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
+#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
+
+typedef struct _DataObject DataObject;
+typedef struct _DataObjectClass DataObjectClass;
+
+#define TYPE_DATA_VIEW (data_view_get_type ())
+#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView))
+#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass))
+#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW))
+#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW))
+#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass))
+
+typedef struct _DataView DataView;
+typedef struct _DataViewClass DataViewClass;
+
+#define TYPE_THUMBNAIL_VIEW (thumbnail_view_get_type ())
+#define THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailView))
+#define THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass))
+#define IS_THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_VIEW))
+#define IS_THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_VIEW))
+#define THUMBNAIL_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass))
+
+typedef struct _ThumbnailView ThumbnailView;
+typedef struct _ThumbnailViewClass ThumbnailViewClass;
+
+#define TYPE_CHECKERBOARD_ITEM (checkerboard_item_get_type ())
+#define CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItem))
+#define CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass))
+#define IS_CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_ITEM))
+#define IS_CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_ITEM))
+#define CHECKERBOARD_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass))
+
+typedef struct _CheckerboardItem CheckerboardItem;
+typedef struct _CheckerboardItemClass CheckerboardItemClass;
+
+#define CHECKERBOARD_PAGE_TYPE_ACTIVATOR (checkerboard_page_activator_get_type ())
+
+#define CHECKERBOARD_PAGE_TYPE_KEYBOARD_MODIFIERS (checkerboard_page_keyboard_modifiers_get_type ())
+typedef struct _CheckerboardPageKeyboardModifiers CheckerboardPageKeyboardModifiers;
+
+#define TYPE_VIEW_FILTER (view_filter_get_type ())
+#define VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_FILTER, ViewFilter))
+#define VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_FILTER, ViewFilterClass))
+#define IS_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_FILTER))
+#define IS_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_FILTER))
+#define VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_FILTER, ViewFilterClass))
+
+typedef struct _ViewFilter ViewFilter;
+typedef struct _ViewFilterClass ViewFilterClass;
+
+#define TYPE_SEARCH_VIEW_FILTER (search_view_filter_get_type ())
+#define SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilter))
+#define SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass))
+#define IS_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_VIEW_FILTER))
+#define IS_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_VIEW_FILTER))
+#define SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass))
+
+typedef struct _SearchViewFilter SearchViewFilter;
+typedef struct _SearchViewFilterClass SearchViewFilterClass;
+
+#define CORE_TYPE_TRACKER (core_tracker_get_type ())
+#define CORE_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_TRACKER, CoreTracker))
+#define CORE_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_TRACKER, CoreTrackerClass))
+#define CORE_IS_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_TRACKER))
+#define CORE_IS_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_TRACKER))
+#define CORE_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_TRACKER, CoreTrackerClass))
+
+typedef struct _CoreTracker CoreTracker;
+typedef struct _CoreTrackerClass CoreTrackerClass;
+
+#define CORE_TYPE_VIEW_TRACKER (core_view_tracker_get_type ())
+#define CORE_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTracker))
+#define CORE_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass))
+#define CORE_IS_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_VIEW_TRACKER))
+#define CORE_IS_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_VIEW_TRACKER))
+#define CORE_VIEW_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass))
+
+typedef struct _CoreViewTracker CoreViewTracker;
+typedef struct _CoreViewTrackerClass CoreViewTrackerClass;
+
+#define TYPE_MEDIA_PAGE (media_page_get_type ())
+#define MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_PAGE, MediaPage))
+#define MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_PAGE, MediaPageClass))
+#define IS_MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_PAGE))
+#define IS_MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_PAGE))
+#define MEDIA_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_PAGE, MediaPageClass))
+
+typedef struct _MediaPage MediaPage;
+typedef struct _MediaPageClass MediaPageClass;
+typedef struct _MediaPagePrivate MediaPagePrivate;
+
+#define TYPE_RATING (rating_get_type ())
+
+#define TYPE_RAW_DEVELOPER (raw_developer_get_type ())
+
+#define TYPE_DATA_SOURCE (data_source_get_type ())
+#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
+#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
+#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
+#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
+#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
+
+typedef struct _DataSource DataSource;
+typedef struct _DataSourceClass DataSourceClass;
+
+#define TYPE_COLLECTION_PAGE (collection_page_get_type ())
+#define COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COLLECTION_PAGE, CollectionPage))
+#define COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COLLECTION_PAGE, CollectionPageClass))
+#define IS_COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COLLECTION_PAGE))
+#define IS_COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COLLECTION_PAGE))
+#define COLLECTION_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COLLECTION_PAGE, CollectionPageClass))
+
+typedef struct _CollectionPage CollectionPage;
+typedef struct _CollectionPageClass CollectionPageClass;
+typedef struct _CollectionPagePrivate CollectionPagePrivate;
+
+#define TYPE_TAG_PAGE (tag_page_get_type ())
+#define TAG_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_PAGE, TagPage))
+#define TAG_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_PAGE, TagPageClass))
+#define IS_TAG_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_PAGE))
+#define IS_TAG_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_PAGE))
+#define TAG_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_PAGE, TagPageClass))
+
+typedef struct _TagPage TagPage;
+typedef struct _TagPageClass TagPageClass;
+typedef struct _TagPagePrivate TagPagePrivate;
+
+#define TYPE_TAG (tag_get_type ())
+#define TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG, Tag))
+#define TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG, TagClass))
+#define IS_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG))
+#define IS_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG))
+#define TAG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG, TagClass))
+
+typedef struct _Tag Tag;
+typedef struct _TagClass TagClass;
+
+#define TYPE_DATA_COLLECTION (data_collection_get_type ())
+#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
+#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
+#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
+#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
+#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
+
+typedef struct _DataCollection DataCollection;
+typedef struct _DataCollectionClass DataCollectionClass;
+
+#define TYPE_VIEW_COLLECTION (view_collection_get_type ())
+#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection))
+#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass))
+#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION))
+#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION))
+#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass))
+
+typedef struct _ViewCollection ViewCollection;
+typedef struct _ViewCollectionClass ViewCollectionClass;
+#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL)))
+
+#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
+#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
+#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
+#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
+#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
+#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
+
+typedef struct _SourceCollection SourceCollection;
+typedef struct _SourceCollectionClass SourceCollectionClass;
+
+#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ())
+#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection))
+#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
+#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION))
+#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION))
+#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
+
+typedef struct _DatabaseSourceCollection DatabaseSourceCollection;
+typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass;
+
+#define TYPE_CONTAINER_SOURCE_COLLECTION (container_source_collection_get_type ())
+#define CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection))
+#define CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass))
+#define IS_CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE_COLLECTION))
+#define IS_CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONTAINER_SOURCE_COLLECTION))
+#define CONTAINER_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass))
+
+typedef struct _ContainerSourceCollection ContainerSourceCollection;
+typedef struct _ContainerSourceCollectionClass ContainerSourceCollectionClass;
+
+#define TYPE_TAG_SOURCE_COLLECTION (tag_source_collection_get_type ())
+#define TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollection))
+#define TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass))
+#define IS_TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_SOURCE_COLLECTION))
+#define IS_TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_SOURCE_COLLECTION))
+#define TAG_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass))
+
+typedef struct _TagSourceCollection TagSourceCollection;
+typedef struct _TagSourceCollectionClass TagSourceCollectionClass;
+
+#define TYPE_ALTERATION (alteration_get_type ())
+#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration))
+#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass))
+#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION))
+#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION))
+#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass))
+
+typedef struct _Alteration Alteration;
+typedef struct _AlterationClass AlterationClass;
+#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
+#define _g_free0(var) (var = (g_free (var), NULL))
+
+#define TYPE_CONFIGURATION_FACADE (configuration_facade_get_type ())
+#define CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacade))
+#define CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass))
+#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE))
+#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE))
+#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass))
+
+typedef struct _ConfigurationFacade ConfigurationFacade;
+typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass;
+
+#define CONFIG_TYPE_FACADE (config_facade_get_type ())
+#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade))
+#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass))
+#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE))
+#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE))
+#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass))
+
+typedef struct _ConfigFacade ConfigFacade;
+typedef struct _ConfigFacadeClass ConfigFacadeClass;
+
+#define TYPE_COMMAND (command_get_type ())
+#define COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND, Command))
+#define COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COMMAND, CommandClass))
+#define IS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND))
+#define IS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND))
+#define COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND, CommandClass))
+
+typedef struct _Command Command;
+typedef struct _CommandClass CommandClass;
+
+#define TYPE_PAGE_COMMAND (page_command_get_type ())
+#define PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_COMMAND, PageCommand))
+#define PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_COMMAND, PageCommandClass))
+#define IS_PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_COMMAND))
+#define IS_PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_COMMAND))
+#define PAGE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_COMMAND, PageCommandClass))
+
+typedef struct _PageCommand PageCommand;
+typedef struct _PageCommandClass PageCommandClass;
+
+#define TYPE_SIMPLE_PROXYABLE_COMMAND (simple_proxyable_command_get_type ())
+#define SIMPLE_PROXYABLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SIMPLE_PROXYABLE_COMMAND, SimpleProxyableCommand))
+#define SIMPLE_PROXYABLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SIMPLE_PROXYABLE_COMMAND, SimpleProxyableCommandClass))
+#define IS_SIMPLE_PROXYABLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SIMPLE_PROXYABLE_COMMAND))
+#define IS_SIMPLE_PROXYABLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SIMPLE_PROXYABLE_COMMAND))
+#define SIMPLE_PROXYABLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SIMPLE_PROXYABLE_COMMAND, SimpleProxyableCommandClass))
+
+typedef struct _SimpleProxyableCommand SimpleProxyableCommand;
+typedef struct _SimpleProxyableCommandClass SimpleProxyableCommandClass;
+
+#define TYPE_NEW_CHILD_TAG_COMMAND (new_child_tag_command_get_type ())
+#define NEW_CHILD_TAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_NEW_CHILD_TAG_COMMAND, NewChildTagCommand))
+#define NEW_CHILD_TAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_NEW_CHILD_TAG_COMMAND, NewChildTagCommandClass))
+#define IS_NEW_CHILD_TAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_NEW_CHILD_TAG_COMMAND))
+#define IS_NEW_CHILD_TAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_NEW_CHILD_TAG_COMMAND))
+#define NEW_CHILD_TAG_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_NEW_CHILD_TAG_COMMAND, NewChildTagCommandClass))
+
+typedef struct _NewChildTagCommand NewChildTagCommand;
+typedef struct _NewChildTagCommandClass NewChildTagCommandClass;
+
+#define TYPE_COMMAND_MANAGER (command_manager_get_type ())
+#define COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND_MANAGER, CommandManager))
+#define COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COMMAND_MANAGER, CommandManagerClass))
+#define IS_COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND_MANAGER))
+#define IS_COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND_MANAGER))
+#define COMMAND_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND_MANAGER, CommandManagerClass))
+
+typedef struct _CommandManager CommandManager;
+typedef struct _CommandManagerClass CommandManagerClass;
+#define _command_manager_unref0(var) ((var == NULL) ? NULL : (var = (command_manager_unref (var), NULL)))
+
+#define TYPE_APP_WINDOW (app_window_get_type ())
+#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow))
+#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass))
+#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW))
+#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW))
+#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass))
+
+typedef struct _AppWindow AppWindow;
+typedef struct _AppWindowClass AppWindowClass;
+
+#define TYPE_LIBRARY_WINDOW (library_window_get_type ())
+#define LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_WINDOW, LibraryWindow))
+#define LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_WINDOW, LibraryWindowClass))
+#define IS_LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_WINDOW))
+#define IS_LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_WINDOW))
+#define LIBRARY_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_WINDOW, LibraryWindowClass))
+
+typedef struct _LibraryWindow LibraryWindow;
+typedef struct _LibraryWindowClass LibraryWindowClass;
+
+#define TYPE_DELETE_TAG_COMMAND (delete_tag_command_get_type ())
+#define DELETE_TAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DELETE_TAG_COMMAND, DeleteTagCommand))
+#define DELETE_TAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DELETE_TAG_COMMAND, DeleteTagCommandClass))
+#define IS_DELETE_TAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DELETE_TAG_COMMAND))
+#define IS_DELETE_TAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DELETE_TAG_COMMAND))
+#define DELETE_TAG_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DELETE_TAG_COMMAND, DeleteTagCommandClass))
+
+typedef struct _DeleteTagCommand DeleteTagCommand;
+typedef struct _DeleteTagCommandClass DeleteTagCommandClass;
+
+#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ())
+#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource))
+#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
+#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
+#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
+#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
+
+typedef struct _ThumbnailSource ThumbnailSource;
+typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
+
+#define TYPE_MEDIA_SOURCE (media_source_get_type ())
+#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource))
+#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass))
+#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE))
+#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE))
+#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass))
+
+typedef struct _MediaSource MediaSource;
+typedef struct _MediaSourceClass MediaSourceClass;
+
+#define TYPE_TAG_UNTAG_PHOTOS_COMMAND (tag_untag_photos_command_get_type ())
+#define TAG_UNTAG_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_UNTAG_PHOTOS_COMMAND, TagUntagPhotosCommand))
+#define TAG_UNTAG_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_UNTAG_PHOTOS_COMMAND, TagUntagPhotosCommandClass))
+#define IS_TAG_UNTAG_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_UNTAG_PHOTOS_COMMAND))
+#define IS_TAG_UNTAG_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_UNTAG_PHOTOS_COMMAND))
+#define TAG_UNTAG_PHOTOS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_UNTAG_PHOTOS_COMMAND, TagUntagPhotosCommandClass))
+
+typedef struct _TagUntagPhotosCommand TagUntagPhotosCommand;
+typedef struct _TagUntagPhotosCommandClass TagUntagPhotosCommandClass;
+
+struct _Page {
+ GtkScrolledWindow parent_instance;
+ PagePrivate * priv;
+ GtkUIManager* ui;
+ GtkToolbar* toolbar;
+ gboolean in_view;
+};
+
+struct _PageClass {
+ GtkScrolledWindowClass parent_class;
+ void (*set_page_name) (Page* self, const gchar* page_name);
+ void (*set_container) (Page* self, GtkWindow* container);
+ void (*clear_container) (Page* self);
+ GtkMenuBar* (*get_menubar) (Page* self);
+ GtkWidget* (*get_page_ui_widget) (Page* self, const gchar* path);
+ GtkToolbar* (*get_toolbar) (Page* self);
+ GtkMenu* (*get_page_context_menu) (Page* self);
+ void (*switching_from) (Page* self);
+ void (*switched_to) (Page* self);
+ void (*ready) (Page* self);
+ void (*switching_to_fullscreen) (Page* self, FullscreenWindow* fsw);
+ void (*returning_from_fullscreen) (Page* self, FullscreenWindow* fsw);
+ void (*init_collect_ui_filenames) (Page* self, GeeList* ui_filenames);
+ GtkActionEntry* (*init_collect_action_entries) (Page* self, int* result_length1);
+ GtkToggleActionEntry* (*init_collect_toggle_action_entries) (Page* self, int* result_length1);
+ void (*register_radio_actions) (Page* self, GtkActionGroup* action_group);
+ InjectionGroup** (*init_collect_injection_groups) (Page* self, int* result_length1);
+ void (*init_actions) (Page* self, gint selected_count, gint count);
+ void (*update_actions) (Page* self, gint selected_count, gint count);
+ gboolean (*source_drag_failed) (Page* self, GdkDragContext* context, GtkDragResult drag_result);
+ gboolean (*on_left_click) (Page* self, GdkEventButton* event);
+ gboolean (*on_middle_click) (Page* self, GdkEventButton* event);
+ gboolean (*on_right_click) (Page* self, GdkEventButton* event);
+ gboolean (*on_left_released) (Page* self, GdkEventButton* event);
+ gboolean (*on_middle_released) (Page* self, GdkEventButton* event);
+ gboolean (*on_right_released) (Page* self, GdkEventButton* event);
+ gboolean (*on_ctrl_pressed) (Page* self, GdkEventKey* event);
+ gboolean (*on_ctrl_released) (Page* self, GdkEventKey* event);
+ gboolean (*on_alt_pressed) (Page* self, GdkEventKey* event);
+ gboolean (*on_alt_released) (Page* self, GdkEventKey* event);
+ gboolean (*on_shift_pressed) (Page* self, GdkEventKey* event);
+ gboolean (*on_shift_released) (Page* self, GdkEventKey* event);
+ gboolean (*on_super_pressed) (Page* self, GdkEventKey* event);
+ gboolean (*on_super_released) (Page* self, GdkEventKey* event);
+ gboolean (*on_app_key_pressed) (Page* self, GdkEventKey* event);
+ gboolean (*on_app_key_released) (Page* self, GdkEventKey* event);
+ void (*on_move) (Page* self, GdkRectangle* rect);
+ void (*on_move_start) (Page* self, GdkRectangle* rect);
+ void (*on_move_finished) (Page* self, GdkRectangle* rect);
+ void (*on_resize) (Page* self, GdkRectangle* rect);
+ void (*on_resize_start) (Page* self, GdkRectangle* rect);
+ void (*on_resize_finished) (Page* self, GdkRectangle* rect);
+ gboolean (*on_configure) (Page* self, GdkEventConfigure* event, GdkRectangle* rect);
+ gboolean (*on_motion) (Page* self, GdkEventMotion* event, gint x, gint y, GdkModifierType mask);
+ gboolean (*on_leave_notify_event) (Page* self);
+ gboolean (*on_mousewheel_up) (Page* self, GdkEventScroll* event);
+ gboolean (*on_mousewheel_down) (Page* self, GdkEventScroll* event);
+ gboolean (*on_mousewheel_left) (Page* self, GdkEventScroll* event);
+ gboolean (*on_mousewheel_right) (Page* self, GdkEventScroll* event);
+ gboolean (*on_context_keypress) (Page* self);
+ gboolean (*on_context_buttonpress) (Page* self, GdkEventButton* event);
+ gboolean (*on_context_invoked) (Page* self);
+ void (*set_page_cursor) (Page* self, GdkCursorType cursor_type);
+};
+
+typedef enum {
+ CHECKERBOARD_PAGE_ACTIVATOR_KEYBOARD,
+ CHECKERBOARD_PAGE_ACTIVATOR_MOUSE
+} CheckerboardPageActivator;
+
+struct _CheckerboardPageKeyboardModifiers {
+ gboolean ctrl_pressed;
+ gboolean alt_pressed;
+ gboolean shift_pressed;
+ gboolean super_pressed;
+};
+
+struct _CheckerboardPage {
+ Page parent_instance;
+ CheckerboardPagePrivate * priv;
+ CheckerboardItem* anchor;
+ CheckerboardItem* cursor;
+};
+
+struct _CheckerboardPageClass {
+ PageClass parent_class;
+ GtkMenu* (*get_item_context_menu) (CheckerboardPage* self);
+ gchar* (*get_view_empty_message) (CheckerboardPage* self);
+ gchar* (*get_filter_no_match_message) (CheckerboardPage* self);
+ void (*on_item_activated) (CheckerboardPage* self, CheckerboardItem* item, CheckerboardPageActivator activator, CheckerboardPageKeyboardModifiers* modifiers);
+ SearchViewFilter* (*get_search_view_filter) (CheckerboardPage* self);
+ CoreViewTracker* (*get_view_tracker) (CheckerboardPage* self);
+ gboolean (*on_mouse_over) (CheckerboardPage* self, CheckerboardItem* item, gint x, gint y, GdkModifierType mask);
+ void (*set_display_titles) (CheckerboardPage* self, gboolean display);
+ void (*set_display_comments) (CheckerboardPage* self, gboolean display);
+};
+
+typedef enum {
+ RATING_REJECTED = -1,
+ RATING_UNRATED = 0,
+ RATING_ONE = 1,
+ RATING_TWO = 2,
+ RATING_THREE = 3,
+ RATING_FOUR = 4,
+ RATING_FIVE = 5
+} Rating;
+
+typedef enum {
+ RAW_DEVELOPER_SHOTWELL = 0,
+ RAW_DEVELOPER_CAMERA,
+ RAW_DEVELOPER_EMBEDDED
+} RawDeveloper;
+
+struct _MediaPage {
+ CheckerboardPage parent_instance;
+ MediaPagePrivate * priv;
+};
+
+struct _MediaPageClass {
+ CheckerboardPageClass parent_class;
+ void (*on_zoom_changed) (MediaPage* self);
+ void (*on_export) (MediaPage* self);
+ void (*on_increase_size) (MediaPage* self);
+ void (*on_decrease_size) (MediaPage* self);
+ void (*on_increase_rating) (MediaPage* self);
+ void (*on_decrease_rating) (MediaPage* self);
+ void (*on_set_rating) (MediaPage* self, Rating rating);
+ void (*on_rate_rejected) (MediaPage* self);
+ void (*on_rate_unrated) (MediaPage* self);
+ void (*on_rate_one) (MediaPage* self);
+ void (*on_rate_two) (MediaPage* self);
+ void (*on_rate_three) (MediaPage* self);
+ void (*on_rate_four) (MediaPage* self);
+ void (*on_rate_five) (MediaPage* self);
+ void (*on_move_to_trash) (MediaPage* self);
+ void (*on_edit_title) (MediaPage* self);
+ void (*on_edit_comment) (MediaPage* self);
+ void (*on_display_titles) (MediaPage* self, GtkAction* action);
+ void (*on_display_comments) (MediaPage* self, GtkAction* action);
+ void (*on_display_ratings) (MediaPage* self, GtkAction* action);
+ void (*on_display_tags) (MediaPage* self, GtkAction* action);
+ void (*get_config_photos_sort) (MediaPage* self, gboolean* sort_order, gint* sort_by);
+ void (*set_config_photos_sort) (MediaPage* self, gboolean sort_order, gint sort_by);
+ void (*on_sort_changed) (MediaPage* self);
+ void (*developer_changed) (MediaPage* self, RawDeveloper rd);
+ DataView* (*create_thumbnail) (MediaPage* self, DataSource* source);
+};
+
+struct _CollectionPage {
+ MediaPage parent_instance;
+ CollectionPagePrivate * priv;
+};
+
+struct _CollectionPageClass {
+ MediaPageClass parent_class;
+};
+
+struct _TagPage {
+ CollectionPage parent_instance;
+ TagPagePrivate * priv;
+};
+
+struct _TagPageClass {
+ CollectionPageClass parent_class;
+};
+
+struct _TagPagePrivate {
+ Tag* tag;
+};
+
+typedef DataView* (*CreateView) (DataSource* source, void* user_data);
+
+static gpointer tag_page_parent_class = NULL;
+extern TagSourceCollection* tag_global;
+
+GType page_get_type (void) G_GNUC_CONST;
+GType page_window_get_type (void) G_GNUC_CONST;
+GType fullscreen_window_get_type (void) G_GNUC_CONST;
+gpointer injection_group_ref (gpointer instance);
+void injection_group_unref (gpointer instance);
+GParamSpec* param_spec_injection_group (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void value_set_injection_group (GValue* value, gpointer v_object);
+void value_take_injection_group (GValue* value, gpointer v_object);
+gpointer value_get_injection_group (const GValue* value);
+GType injection_group_get_type (void) G_GNUC_CONST;
+GType checkerboard_page_get_type (void) G_GNUC_CONST;
+GType data_object_get_type (void) G_GNUC_CONST;
+GType data_view_get_type (void) G_GNUC_CONST;
+GType thumbnail_view_get_type (void) G_GNUC_CONST;
+GType checkerboard_item_get_type (void) G_GNUC_CONST;
+GType checkerboard_page_activator_get_type (void) G_GNUC_CONST;
+GType checkerboard_page_keyboard_modifiers_get_type (void) G_GNUC_CONST;
+CheckerboardPageKeyboardModifiers* checkerboard_page_keyboard_modifiers_dup (const CheckerboardPageKeyboardModifiers* self);
+void checkerboard_page_keyboard_modifiers_free (CheckerboardPageKeyboardModifiers* self);
+gpointer view_filter_ref (gpointer instance);
+void view_filter_unref (gpointer instance);
+GParamSpec* param_spec_view_filter (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void value_set_view_filter (GValue* value, gpointer v_object);
+void value_take_view_filter (GValue* value, gpointer v_object);
+gpointer value_get_view_filter (const GValue* value);
+GType view_filter_get_type (void) G_GNUC_CONST;
+GType search_view_filter_get_type (void) G_GNUC_CONST;
+gpointer core_tracker_ref (gpointer instance);
+void core_tracker_unref (gpointer instance);
+GParamSpec* core_param_spec_tracker (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void core_value_set_tracker (GValue* value, gpointer v_object);
+void core_value_take_tracker (GValue* value, gpointer v_object);
+gpointer core_value_get_tracker (const GValue* value);
+GType core_tracker_get_type (void) G_GNUC_CONST;
+GType core_view_tracker_get_type (void) G_GNUC_CONST;
+GType media_page_get_type (void) G_GNUC_CONST;
+GType rating_get_type (void) G_GNUC_CONST;
+GType raw_developer_get_type (void) G_GNUC_CONST;
+GType data_source_get_type (void) G_GNUC_CONST;
+GType collection_page_get_type (void) G_GNUC_CONST;
+GType tag_page_get_type (void) G_GNUC_CONST;
+GType tag_get_type (void) G_GNUC_CONST;
+#define TAG_PAGE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_TAG_PAGE, TagPagePrivate))
+enum {
+ TAG_PAGE_DUMMY_PROPERTY
+};
+gpointer data_collection_ref (gpointer instance);
+void data_collection_unref (gpointer instance);
+GParamSpec* param_spec_data_collection (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void value_set_data_collection (GValue* value, gpointer v_object);
+void value_take_data_collection (GValue* value, gpointer v_object);
+gpointer value_get_data_collection (const GValue* value);
+GType data_collection_get_type (void) G_GNUC_CONST;
+GType view_collection_get_type (void) G_GNUC_CONST;
+ViewCollection* page_get_view (Page* self);
+void view_collection_halt_mirroring (ViewCollection* self);
+GType source_collection_get_type (void) G_GNUC_CONST;
+GType database_source_collection_get_type (void) G_GNUC_CONST;
+GType container_source_collection_get_type (void) G_GNUC_CONST;
+GType tag_source_collection_get_type (void) G_GNUC_CONST;
+gpointer alteration_ref (gpointer instance);
+void alteration_unref (gpointer instance);
+GParamSpec* param_spec_alteration (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void value_set_alteration (GValue* value, gpointer v_object);
+void value_take_alteration (GValue* value, gpointer v_object);
+gpointer value_get_alteration (const GValue* value);
+GType alteration_get_type (void) G_GNUC_CONST;
+static void tag_page_on_tags_altered (TagPage* self, GeeMap* map);
+static void _tag_page_on_tags_altered_data_collection_items_altered (DataCollection* _sender, GeeMap* items, gpointer self);
+TagPage* tag_page_new (Tag* tag);
+TagPage* tag_page_construct (GType object_type, Tag* tag);
+gchar* data_object_get_name (DataObject* self);
+CollectionPage* collection_page_construct (GType object_type, const gchar* page_name);
+void tag_mirror_sources (Tag* self, ViewCollection* view, CreateView mirroring_ctor, void* mirroring_ctor_target);
+DataView* media_page_create_thumbnail (MediaPage* self, DataSource* source);
+static DataView* _media_page_create_thumbnail_create_view (DataSource* source, gpointer self);
+void checkerboard_page_init_page_context_menu (CheckerboardPage* self, const gchar* path);
+static void tag_page_real_init_collect_ui_filenames (Page* base, GeeList* ui_filenames);
+void page_init_collect_ui_filenames (Page* self, GeeList* ui_filenames);
+Tag* tag_page_get_tag (TagPage* self);
+static void tag_page_real_get_config_photos_sort (MediaPage* base, gboolean* sort_order, gint* sort_by);
+GType configuration_facade_get_type (void) G_GNUC_CONST;
+GType config_facade_get_type (void) G_GNUC_CONST;
+ConfigFacade* config_facade_get_instance (void);
+void configuration_facade_get_event_photos_sort (ConfigurationFacade* self, gboolean* sort_order, gint* sort_by);
+static void tag_page_real_set_config_photos_sort (MediaPage* base, gboolean sort_order, gint sort_by);
+void configuration_facade_set_event_photos_sort (ConfigurationFacade* self, gboolean sort_order, gint sort_by);
+static GtkActionEntry* tag_page_real_init_collect_action_entries (Page* base, int* result_length1);
+GtkActionEntry* page_init_collect_action_entries (Page* self, int* result_length1);
+#define TRANSLATABLE "translatable"
+static void tag_page_on_delete_tag (TagPage* self);
+static void _tag_page_on_delete_tag_gtk_action_callback (GtkAction* action, gpointer self);
+static void _vala_array_add134 (GtkActionEntry** array, int* length, int* size, const GtkActionEntry* value);
+static void tag_page_on_rename_tag (TagPage* self);
+static void _tag_page_on_rename_tag_gtk_action_callback (GtkAction* action, gpointer self);
+static void _vala_array_add135 (GtkActionEntry** array, int* length, int* size, const GtkActionEntry* value);
+static void tag_page_on_remove_tag_from_photos (TagPage* self);
+static void _tag_page_on_remove_tag_from_photos_gtk_action_callback (GtkAction* action, gpointer self);
+static void _vala_array_add136 (GtkActionEntry** array, int* length, int* size, const GtkActionEntry* value);
+#define RESOURCES_DELETE_TAG_SIDEBAR_MENU _ ("_Delete")
+static void _vala_array_add137 (GtkActionEntry** array, int* length, int* size, const GtkActionEntry* value);
+#define RESOURCES_RENAME_TAG_SIDEBAR_MENU _ ("_Rename...")
+static void _vala_array_add138 (GtkActionEntry** array, int* length, int* size, const GtkActionEntry* value);
+#define RESOURCES_NEW_CHILD_TAG_SIDEBAR_MENU _ ("_New")
+static void tag_page_on_new_child_tag_sidebar (TagPage* self);
+static void _tag_page_on_new_child_tag_sidebar_gtk_action_callback (GtkAction* action, gpointer self);
+static void _vala_array_add139 (GtkActionEntry** array, int* length, int* size, const GtkActionEntry* value);
+void page_set_page_name (Page* self, const gchar* page_name);
+void page_update_actions (Page* self, gint selected_count, gint count);
+gint view_collection_get_selected_count (ViewCollection* self);
+gint data_collection_get_count (DataCollection* self);
+static void tag_page_real_update_actions (Page* base, gint selected_count, gint count);
+void page_set_action_details (Page* self, const gchar* name, const gchar* label, const gchar* tooltip, gboolean sensitive);
+gchar* resources_delete_tag_menu (const gchar* name);
+gchar* tag_get_user_visible_name (Tag* self);
+gchar* resources_rename_tag_menu (const gchar* name);
+gchar* resources_untag_photos_menu (const gchar* name, gint count);
+GType command_get_type (void) G_GNUC_CONST;
+GType page_command_get_type (void) G_GNUC_CONST;
+GType simple_proxyable_command_get_type (void) G_GNUC_CONST;
+GType new_child_tag_command_get_type (void) G_GNUC_CONST;
+NewChildTagCommand* new_child_tag_command_new (Tag* tag);
+NewChildTagCommand* new_child_tag_command_construct (GType object_type, Tag* tag);
+gpointer command_manager_ref (gpointer instance);
+void command_manager_unref (gpointer instance);
+GParamSpec* param_spec_command_manager (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
+void value_set_command_manager (GValue* value, gpointer v_object);
+void value_take_command_manager (GValue* value, gpointer v_object);
+gpointer value_get_command_manager (const GValue* value);
+GType command_manager_get_type (void) G_GNUC_CONST;
+CommandManager* app_window_get_command_manager (void);
+void command_manager_execute (CommandManager* self, Command* command);
+GType app_window_get_type (void) G_GNUC_CONST;
+GType library_window_get_type (void) G_GNUC_CONST;
+LibraryWindow* library_window_get_app (void);
+void library_window_rename_tag_in_sidebar (LibraryWindow* self, Tag* tag);
+Tag* new_child_tag_command_get_created_child (NewChildTagCommand* self);
+gboolean dialogs_confirm_delete_tag (Tag* tag);
+DeleteTagCommand* delete_tag_command_new (Tag* tag);
+DeleteTagCommand* delete_tag_command_construct (GType object_type, Tag* tag);
+GType delete_tag_command_get_type (void) G_GNUC_CONST;
+CommandManager* page_get_command_manager (Page* self);
+GeeList* view_collection_get_selected_sources (ViewCollection* self);
+GType thumbnail_source_get_type (void) G_GNUC_CONST;
+GType media_source_get_type (void) G_GNUC_CONST;
+TagUntagPhotosCommand* tag_untag_photos_command_new (Tag* tag, GeeCollection* sources, gint count, gboolean attach);
+TagUntagPhotosCommand* tag_untag_photos_command_construct (GType object_type, Tag* tag, GeeCollection* sources, gint count, gboolean attach);
+GType tag_untag_photos_command_get_type (void) G_GNUC_CONST;
+static void tag_page_finalize (GObject* obj);
+
+
+static void _tag_page_on_tags_altered_data_collection_items_altered (DataCollection* _sender, GeeMap* items, gpointer self) {
+#line 23 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ tag_page_on_tags_altered ((TagPage*) self, items);
+#line 748 "TagPage.c"
+}
+
+
+static gpointer _g_object_ref0 (gpointer self) {
+#line 13 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ return self ? g_object_ref (self) : NULL;
+#line 755 "TagPage.c"
+}
+
+
+static DataView* _media_page_create_thumbnail_create_view (DataSource* source, gpointer self) {
+ DataView* result;
+ result = media_page_create_thumbnail ((MediaPage*) self, source);
+#line 16 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ return result;
+#line 764 "TagPage.c"
+}
+
+
+TagPage* tag_page_construct (GType object_type, Tag* tag) {
+ TagPage * self = NULL;
+ Tag* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ Tag* _tmp3_ = NULL;
+ Tag* _tmp4_ = NULL;
+ TagSourceCollection* _tmp5_ = NULL;
+ Tag* _tmp6_ = NULL;
+ ViewCollection* _tmp7_ = NULL;
+ ViewCollection* _tmp8_ = NULL;
+#line 10 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ g_return_val_if_fail (IS_TAG (tag), NULL);
+#line 11 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp0_ = tag;
+#line 11 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp1_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_OBJECT, DataObject));
+#line 11 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp2_ = _tmp1_;
+#line 11 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ self = (TagPage*) collection_page_construct (object_type, _tmp2_);
+#line 11 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _g_free0 (_tmp2_);
+#line 13 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp3_ = tag;
+#line 13 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp4_ = _g_object_ref0 (_tmp3_);
+#line 13 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _g_object_unref0 (self->priv->tag);
+#line 13 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ self->priv->tag = _tmp4_;
+#line 15 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp5_ = tag_global;
+#line 15 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_DATA_COLLECTION, DataCollection), "items-altered", (GCallback) _tag_page_on_tags_altered_data_collection_items_altered, self, 0);
+#line 16 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp6_ = tag;
+#line 16 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp7_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
+#line 16 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp8_ = _tmp7_;
+#line 16 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ tag_mirror_sources (_tmp6_, _tmp8_, _media_page_create_thumbnail_create_view, G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage));
+#line 16 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _data_collection_unref0 (_tmp8_);
+#line 18 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ checkerboard_page_init_page_context_menu (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), "/TagsContextMenu");
+#line 10 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ return self;
+#line 817 "TagPage.c"
+}
+
+
+TagPage* tag_page_new (Tag* tag) {
+#line 10 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ return tag_page_construct (TYPE_TAG_PAGE, tag);
+#line 824 "TagPage.c"
+}
+
+
+static void tag_page_real_init_collect_ui_filenames (Page* base, GeeList* ui_filenames) {
+ TagPage * self;
+ GeeList* _tmp0_ = NULL;
+ GeeList* _tmp1_ = NULL;
+#line 26 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG_PAGE, TagPage);
+#line 26 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ g_return_if_fail (GEE_IS_LIST (ui_filenames));
+#line 27 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp0_ = ui_filenames;
+#line 27 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ PAGE_CLASS (tag_page_parent_class)->init_collect_ui_filenames (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COLLECTION_PAGE, CollectionPage), TYPE_PAGE, Page), _tmp0_);
+#line 28 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp1_ = ui_filenames;
+#line 28 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection), "tags.ui");
+#line 844 "TagPage.c"
+}
+
+
+Tag* tag_page_get_tag (TagPage* self) {
+ Tag* result = NULL;
+ Tag* _tmp0_ = NULL;
+ Tag* _tmp1_ = NULL;
+#line 31 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ g_return_val_if_fail (IS_TAG_PAGE (self), NULL);
+#line 32 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp0_ = self->priv->tag;
+#line 32 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp1_ = _g_object_ref0 (_tmp0_);
+#line 32 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ result = _tmp1_;
+#line 32 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ return result;
+#line 862 "TagPage.c"
+}
+
+
+static void tag_page_real_get_config_photos_sort (MediaPage* base, gboolean* sort_order, gint* sort_by) {
+ TagPage * self;
+ gboolean _vala_sort_order = FALSE;
+ gint _vala_sort_by = 0;
+ ConfigFacade* _tmp0_ = NULL;
+ ConfigFacade* _tmp1_ = NULL;
+ gboolean _tmp2_ = FALSE;
+ gint _tmp3_ = 0;
+#line 35 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG_PAGE, TagPage);
+#line 36 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp0_ = config_facade_get_instance ();
+#line 36 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp1_ = _tmp0_;
+#line 36 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ configuration_facade_get_event_photos_sort (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), &_tmp2_, &_tmp3_);
+#line 36 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _vala_sort_order = _tmp2_;
+#line 36 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _vala_sort_by = _tmp3_;
+#line 36 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _g_object_unref0 (_tmp1_);
+#line 35 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ if (sort_order) {
+#line 35 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ *sort_order = _vala_sort_order;
+#line 892 "TagPage.c"
+ }
+#line 35 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ if (sort_by) {
+#line 35 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ *sort_by = _vala_sort_by;
+#line 898 "TagPage.c"
+ }
+}
+
+
+static void tag_page_real_set_config_photos_sort (MediaPage* base, gboolean sort_order, gint sort_by) {
+ TagPage * self;
+ ConfigFacade* _tmp0_ = NULL;
+ ConfigFacade* _tmp1_ = NULL;
+ gboolean _tmp2_ = FALSE;
+ gint _tmp3_ = 0;
+#line 39 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG_PAGE, TagPage);
+#line 40 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp0_ = config_facade_get_instance ();
+#line 40 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp1_ = _tmp0_;
+#line 40 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp2_ = sort_order;
+#line 40 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp3_ = sort_by;
+#line 40 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ configuration_facade_set_event_photos_sort (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, _tmp3_);
+#line 40 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _g_object_unref0 (_tmp1_);
+#line 923 "TagPage.c"
+}
+
+
+static void _tag_page_on_delete_tag_gtk_action_callback (GtkAction* action, gpointer self) {
+#line 46 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ tag_page_on_delete_tag ((TagPage*) self);
+#line 930 "TagPage.c"
+}
+
+
+static void _vala_array_add134 (GtkActionEntry** array, int* length, int* size, const GtkActionEntry* value) {
+#line 48 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ if ((*length) == (*size)) {
+#line 48 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 48 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ *array = g_renew (GtkActionEntry, *array, *size);
+#line 941 "TagPage.c"
+ }
+#line 48 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ (*array)[(*length)++] = *value;
+#line 945 "TagPage.c"
+}
+
+
+static void _tag_page_on_rename_tag_gtk_action_callback (GtkAction* action, gpointer self) {
+#line 50 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ tag_page_on_rename_tag ((TagPage*) self);
+#line 952 "TagPage.c"
+}
+
+
+static void _vala_array_add135 (GtkActionEntry** array, int* length, int* size, const GtkActionEntry* value) {
+#line 52 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ if ((*length) == (*size)) {
+#line 52 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 52 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ *array = g_renew (GtkActionEntry, *array, *size);
+#line 963 "TagPage.c"
+ }
+#line 52 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ (*array)[(*length)++] = *value;
+#line 967 "TagPage.c"
+}
+
+
+static void _tag_page_on_remove_tag_from_photos_gtk_action_callback (GtkAction* action, gpointer self) {
+#line 54 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ tag_page_on_remove_tag_from_photos ((TagPage*) self);
+#line 974 "TagPage.c"
+}
+
+
+static void _vala_array_add136 (GtkActionEntry** array, int* length, int* size, const GtkActionEntry* value) {
+#line 57 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ if ((*length) == (*size)) {
+#line 57 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 57 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ *array = g_renew (GtkActionEntry, *array, *size);
+#line 985 "TagPage.c"
+ }
+#line 57 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ (*array)[(*length)++] = *value;
+#line 989 "TagPage.c"
+}
+
+
+static void _vala_array_add137 (GtkActionEntry** array, int* length, int* size, const GtkActionEntry* value) {
+#line 61 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ if ((*length) == (*size)) {
+#line 61 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 61 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ *array = g_renew (GtkActionEntry, *array, *size);
+#line 1000 "TagPage.c"
+ }
+#line 61 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ (*array)[(*length)++] = *value;
+#line 1004 "TagPage.c"
+}
+
+
+static void _vala_array_add138 (GtkActionEntry** array, int* length, int* size, const GtkActionEntry* value) {
+#line 65 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ if ((*length) == (*size)) {
+#line 65 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 65 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ *array = g_renew (GtkActionEntry, *array, *size);
+#line 1015 "TagPage.c"
+ }
+#line 65 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ (*array)[(*length)++] = *value;
+#line 1019 "TagPage.c"
+}
+
+
+static void _tag_page_on_new_child_tag_sidebar_gtk_action_callback (GtkAction* action, gpointer self) {
+#line 67 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ tag_page_on_new_child_tag_sidebar ((TagPage*) self);
+#line 1026 "TagPage.c"
+}
+
+
+static void _vala_array_add139 (GtkActionEntry** array, int* length, int* size, const GtkActionEntry* value) {
+#line 69 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ if ((*length) == (*size)) {
+#line 69 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ *size = (*size) ? (2 * (*size)) : 4;
+#line 69 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ *array = g_renew (GtkActionEntry, *array, *size);
+#line 1037 "TagPage.c"
+ }
+#line 69 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ (*array)[(*length)++] = *value;
+#line 1041 "TagPage.c"
+}
+
+
+static GtkActionEntry* tag_page_real_init_collect_action_entries (Page* base, int* result_length1) {
+ TagPage * self;
+ GtkActionEntry* result = NULL;
+ GtkActionEntry* actions = NULL;
+ gint _tmp0_ = 0;
+ GtkActionEntry* _tmp1_ = NULL;
+ gint actions_length1 = 0;
+ gint _actions_size_ = 0;
+ GtkActionEntry delete_tag = {0};
+ GtkActionEntry _tmp2_ = {0};
+ GtkActionEntry* _tmp3_ = NULL;
+ gint _tmp3__length1 = 0;
+ GtkActionEntry _tmp4_ = {0};
+ GtkActionEntry rename_tag = {0};
+ GtkActionEntry _tmp5_ = {0};
+ GtkActionEntry* _tmp6_ = NULL;
+ gint _tmp6__length1 = 0;
+ GtkActionEntry _tmp7_ = {0};
+ GtkActionEntry remove_tag = {0};
+ GtkActionEntry _tmp8_ = {0};
+ GtkActionEntry* _tmp9_ = NULL;
+ gint _tmp9__length1 = 0;
+ GtkActionEntry _tmp10_ = {0};
+ GtkActionEntry delete_tag_sidebar = {0};
+ GtkActionEntry _tmp11_ = {0};
+ GtkActionEntry* _tmp12_ = NULL;
+ gint _tmp12__length1 = 0;
+ GtkActionEntry _tmp13_ = {0};
+ GtkActionEntry rename_tag_sidebar = {0};
+ GtkActionEntry _tmp14_ = {0};
+ GtkActionEntry* _tmp15_ = NULL;
+ gint _tmp15__length1 = 0;
+ GtkActionEntry _tmp16_ = {0};
+ GtkActionEntry new_child_tag_sidebar = {0};
+ GtkActionEntry _tmp17_ = {0};
+ GtkActionEntry* _tmp18_ = NULL;
+ gint _tmp18__length1 = 0;
+ GtkActionEntry _tmp19_ = {0};
+ GtkActionEntry* _tmp20_ = NULL;
+ gint _tmp20__length1 = 0;
+#line 43 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG_PAGE, TagPage);
+#line 44 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp1_ = PAGE_CLASS (tag_page_parent_class)->init_collect_action_entries (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COLLECTION_PAGE, CollectionPage), TYPE_PAGE, Page), &_tmp0_);
+#line 44 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ actions = _tmp1_;
+#line 44 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ actions_length1 = _tmp0_;
+#line 44 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _actions_size_ = actions_length1;
+#line 46 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp2_.name = "DeleteTag";
+#line 46 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp2_.stock_id = NULL;
+#line 46 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp2_.label = TRANSLATABLE;
+#line 46 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp2_.accelerator = NULL;
+#line 46 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp2_.tooltip = NULL;
+#line 46 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp2_.callback = (GCallback) _tag_page_on_delete_tag_gtk_action_callback;
+#line 46 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ delete_tag = _tmp2_;
+#line 48 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp3_ = actions;
+#line 48 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp3__length1 = actions_length1;
+#line 48 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp4_ = delete_tag;
+#line 48 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _vala_array_add134 (&actions, &actions_length1, &_actions_size_, &_tmp4_);
+#line 50 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp5_.name = "RenameTag";
+#line 50 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp5_.stock_id = NULL;
+#line 50 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp5_.label = TRANSLATABLE;
+#line 50 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp5_.accelerator = NULL;
+#line 50 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp5_.tooltip = NULL;
+#line 50 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp5_.callback = (GCallback) _tag_page_on_rename_tag_gtk_action_callback;
+#line 50 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ rename_tag = _tmp5_;
+#line 52 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp6_ = actions;
+#line 52 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp6__length1 = actions_length1;
+#line 52 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp7_ = rename_tag;
+#line 52 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _vala_array_add135 (&actions, &actions_length1, &_actions_size_, &_tmp7_);
+#line 54 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp8_.name = "RemoveTagFromPhotos";
+#line 54 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp8_.stock_id = NULL;
+#line 54 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp8_.label = TRANSLATABLE;
+#line 54 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp8_.accelerator = NULL;
+#line 54 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp8_.tooltip = NULL;
+#line 54 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp8_.callback = (GCallback) _tag_page_on_remove_tag_from_photos_gtk_action_callback;
+#line 54 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ remove_tag = _tmp8_;
+#line 57 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp9_ = actions;
+#line 57 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp9__length1 = actions_length1;
+#line 57 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp10_ = remove_tag;
+#line 57 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _vala_array_add136 (&actions, &actions_length1, &_actions_size_, &_tmp10_);
+#line 59 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp11_.name = "DeleteTagSidebar";
+#line 59 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp11_.stock_id = NULL;
+#line 59 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp11_.label = RESOURCES_DELETE_TAG_SIDEBAR_MENU;
+#line 59 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp11_.accelerator = NULL;
+#line 59 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp11_.tooltip = NULL;
+#line 59 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp11_.callback = (GCallback) _tag_page_on_delete_tag_gtk_action_callback;
+#line 59 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ delete_tag_sidebar = _tmp11_;
+#line 61 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp12_ = actions;
+#line 61 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp12__length1 = actions_length1;
+#line 61 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp13_ = delete_tag_sidebar;
+#line 61 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _vala_array_add137 (&actions, &actions_length1, &_actions_size_, &_tmp13_);
+#line 63 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp14_.name = "RenameTagSidebar";
+#line 63 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp14_.stock_id = NULL;
+#line 63 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp14_.label = RESOURCES_RENAME_TAG_SIDEBAR_MENU;
+#line 63 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp14_.accelerator = NULL;
+#line 63 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp14_.tooltip = NULL;
+#line 63 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp14_.callback = (GCallback) _tag_page_on_rename_tag_gtk_action_callback;
+#line 63 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ rename_tag_sidebar = _tmp14_;
+#line 65 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp15_ = actions;
+#line 65 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp15__length1 = actions_length1;
+#line 65 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp16_ = rename_tag_sidebar;
+#line 65 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _vala_array_add138 (&actions, &actions_length1, &_actions_size_, &_tmp16_);
+#line 67 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp17_.name = "NewChildTagSidebar";
+#line 67 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp17_.stock_id = NULL;
+#line 67 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp17_.label = RESOURCES_NEW_CHILD_TAG_SIDEBAR_MENU;
+#line 67 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp17_.accelerator = NULL;
+#line 67 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp17_.tooltip = NULL;
+#line 67 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp17_.callback = (GCallback) _tag_page_on_new_child_tag_sidebar_gtk_action_callback;
+#line 67 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ new_child_tag_sidebar = _tmp17_;
+#line 69 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp18_ = actions;
+#line 69 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp18__length1 = actions_length1;
+#line 69 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp19_ = new_child_tag_sidebar;
+#line 69 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _vala_array_add139 (&actions, &actions_length1, &_actions_size_, &_tmp19_);
+#line 71 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp20_ = actions;
+#line 71 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp20__length1 = actions_length1;
+#line 71 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ if (result_length1) {
+#line 71 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ *result_length1 = _tmp20__length1;
+#line 1235 "TagPage.c"
+ }
+#line 71 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ result = _tmp20_;
+#line 71 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ return result;
+#line 1241 "TagPage.c"
+}
+
+
+static void tag_page_on_tags_altered (TagPage* self, GeeMap* map) {
+ GeeMap* _tmp0_ = NULL;
+ Tag* _tmp1_ = NULL;
+ gboolean _tmp2_ = FALSE;
+#line 74 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ g_return_if_fail (IS_TAG_PAGE (self));
+#line 74 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ g_return_if_fail (GEE_IS_MAP (map));
+#line 75 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp0_ = map;
+#line 75 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp1_ = self->priv->tag;
+#line 75 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp2_ = gee_map_has_key (_tmp0_, G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_OBJECT, DataObject));
+#line 75 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ if (_tmp2_) {
+#line 1261 "TagPage.c"
+ Tag* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ ViewCollection* _tmp6_ = NULL;
+ ViewCollection* _tmp7_ = NULL;
+ gint _tmp8_ = 0;
+ ViewCollection* _tmp9_ = NULL;
+ ViewCollection* _tmp10_ = NULL;
+ gint _tmp11_ = 0;
+#line 76 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp3_ = self->priv->tag;
+#line 76 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp4_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_OBJECT, DataObject));
+#line 76 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp5_ = _tmp4_;
+#line 76 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ page_set_page_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), _tmp5_);
+#line 76 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _g_free0 (_tmp5_);
+#line 77 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp6_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
+#line 77 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp7_ = _tmp6_;
+#line 77 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp8_ = view_collection_get_selected_count (_tmp7_);
+#line 77 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp9_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
+#line 77 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp10_ = _tmp9_;
+#line 77 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp11_ = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_DATA_COLLECTION, DataCollection));
+#line 77 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ page_update_actions (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), _tmp8_, _tmp11_);
+#line 77 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _data_collection_unref0 (_tmp10_);
+#line 77 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _data_collection_unref0 (_tmp7_);
+#line 1299 "TagPage.c"
+ }
+}
+
+
+static void tag_page_real_update_actions (Page* base, gint selected_count, gint count) {
+ TagPage * self;
+ Tag* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ Tag* _tmp5_ = NULL;
+ gchar* _tmp6_ = NULL;
+ gchar* _tmp7_ = NULL;
+ gchar* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+ Tag* _tmp10_ = NULL;
+ gchar* _tmp11_ = NULL;
+ gchar* _tmp12_ = NULL;
+ gint _tmp13_ = 0;
+ gchar* _tmp14_ = NULL;
+ gchar* _tmp15_ = NULL;
+ gint _tmp16_ = 0;
+ gint _tmp17_ = 0;
+ gint _tmp18_ = 0;
+#line 81 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG_PAGE, TagPage);
+#line 82 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp0_ = self->priv->tag;
+#line 82 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp1_ = tag_get_user_visible_name (_tmp0_);
+#line 82 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp2_ = _tmp1_;
+#line 82 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp3_ = resources_delete_tag_menu (_tmp2_);
+#line 82 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp4_ = _tmp3_;
+#line 82 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ page_set_action_details (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "DeleteTag", _tmp4_, NULL, TRUE);
+#line 82 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _g_free0 (_tmp4_);
+#line 82 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _g_free0 (_tmp2_);
+#line 87 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp5_ = self->priv->tag;
+#line 87 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp6_ = tag_get_user_visible_name (_tmp5_);
+#line 87 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp7_ = _tmp6_;
+#line 87 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp8_ = resources_rename_tag_menu (_tmp7_);
+#line 87 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp9_ = _tmp8_;
+#line 87 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ page_set_action_details (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RenameTag", _tmp9_, NULL, TRUE);
+#line 87 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _g_free0 (_tmp9_);
+#line 87 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _g_free0 (_tmp7_);
+#line 92 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp10_ = self->priv->tag;
+#line 92 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp11_ = tag_get_user_visible_name (_tmp10_);
+#line 92 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp12_ = _tmp11_;
+#line 92 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp13_ = selected_count;
+#line 92 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp14_ = resources_untag_photos_menu (_tmp12_, _tmp13_);
+#line 92 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp15_ = _tmp14_;
+#line 92 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp16_ = selected_count;
+#line 92 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ page_set_action_details (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RemoveTagFromPhotos", _tmp15_, NULL, _tmp16_ > 0);
+#line 92 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _g_free0 (_tmp15_);
+#line 92 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _g_free0 (_tmp12_);
+#line 97 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp17_ = selected_count;
+#line 97 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp18_ = count;
+#line 97 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ PAGE_CLASS (tag_page_parent_class)->update_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COLLECTION_PAGE, CollectionPage), TYPE_PAGE, Page), _tmp17_, _tmp18_);
+#line 1385 "TagPage.c"
+}
+
+
+static void tag_page_on_new_child_tag_sidebar (TagPage* self) {
+ NewChildTagCommand* creation_command = NULL;
+ Tag* _tmp0_ = NULL;
+ NewChildTagCommand* _tmp1_ = NULL;
+ CommandManager* _tmp2_ = NULL;
+ CommandManager* _tmp3_ = NULL;
+ LibraryWindow* _tmp4_ = NULL;
+ LibraryWindow* _tmp5_ = NULL;
+ Tag* _tmp6_ = NULL;
+ Tag* _tmp7_ = NULL;
+#line 100 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ g_return_if_fail (IS_TAG_PAGE (self));
+#line 101 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp0_ = self->priv->tag;
+#line 101 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp1_ = new_child_tag_command_new (_tmp0_);
+#line 101 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ creation_command = _tmp1_;
+#line 103 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp2_ = app_window_get_command_manager ();
+#line 103 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp3_ = _tmp2_;
+#line 103 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ command_manager_execute (_tmp3_, G_TYPE_CHECK_INSTANCE_CAST (creation_command, TYPE_COMMAND, Command));
+#line 103 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _command_manager_unref0 (_tmp3_);
+#line 105 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp4_ = library_window_get_app ();
+#line 105 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp5_ = _tmp4_;
+#line 105 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp6_ = new_child_tag_command_get_created_child (creation_command);
+#line 105 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp7_ = _tmp6_;
+#line 105 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ library_window_rename_tag_in_sidebar (_tmp5_, _tmp7_);
+#line 105 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _g_object_unref0 (_tmp7_);
+#line 105 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _g_object_unref0 (_tmp5_);
+#line 100 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _g_object_unref0 (creation_command);
+#line 1431 "TagPage.c"
+}
+
+
+static void tag_page_on_rename_tag (TagPage* self) {
+ LibraryWindow* _tmp0_ = NULL;
+ LibraryWindow* _tmp1_ = NULL;
+ Tag* _tmp2_ = NULL;
+#line 108 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ g_return_if_fail (IS_TAG_PAGE (self));
+#line 109 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp0_ = library_window_get_app ();
+#line 109 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp1_ = _tmp0_;
+#line 109 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp2_ = self->priv->tag;
+#line 109 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ library_window_rename_tag_in_sidebar (_tmp1_, _tmp2_);
+#line 109 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _g_object_unref0 (_tmp1_);
+#line 1451 "TagPage.c"
+}
+
+
+static void tag_page_on_delete_tag (TagPage* self) {
+ Tag* _tmp0_ = NULL;
+ gboolean _tmp1_ = FALSE;
+#line 112 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ g_return_if_fail (IS_TAG_PAGE (self));
+#line 113 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp0_ = self->priv->tag;
+#line 113 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp1_ = dialogs_confirm_delete_tag (_tmp0_);
+#line 113 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ if (_tmp1_) {
+#line 1466 "TagPage.c"
+ CommandManager* _tmp2_ = NULL;
+ CommandManager* _tmp3_ = NULL;
+ Tag* _tmp4_ = NULL;
+ DeleteTagCommand* _tmp5_ = NULL;
+ DeleteTagCommand* _tmp6_ = NULL;
+#line 114 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp2_ = app_window_get_command_manager ();
+#line 114 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp3_ = _tmp2_;
+#line 114 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp4_ = self->priv->tag;
+#line 114 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp5_ = delete_tag_command_new (_tmp4_);
+#line 114 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp6_ = _tmp5_;
+#line 114 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ command_manager_execute (_tmp3_, G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_COMMAND, Command));
+#line 114 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _g_object_unref0 (_tmp6_);
+#line 114 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _command_manager_unref0 (_tmp3_);
+#line 1488 "TagPage.c"
+ }
+}
+
+
+static void tag_page_on_remove_tag_from_photos (TagPage* self) {
+ ViewCollection* _tmp0_ = NULL;
+ ViewCollection* _tmp1_ = NULL;
+ gint _tmp2_ = 0;
+ gboolean _tmp3_ = FALSE;
+#line 117 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ g_return_if_fail (IS_TAG_PAGE (self));
+#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
+#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp1_ = _tmp0_;
+#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp2_ = view_collection_get_selected_count (_tmp1_);
+#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp3_ = _tmp2_ > 0;
+#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _data_collection_unref0 (_tmp1_);
+#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ if (_tmp3_) {
+#line 1512 "TagPage.c"
+ CommandManager* _tmp4_ = NULL;
+ CommandManager* _tmp5_ = NULL;
+ Tag* _tmp6_ = NULL;
+ ViewCollection* _tmp7_ = NULL;
+ ViewCollection* _tmp8_ = NULL;
+ GeeList* _tmp9_ = NULL;
+ GeeCollection* _tmp10_ = NULL;
+ ViewCollection* _tmp11_ = NULL;
+ ViewCollection* _tmp12_ = NULL;
+ gint _tmp13_ = 0;
+ TagUntagPhotosCommand* _tmp14_ = NULL;
+ TagUntagPhotosCommand* _tmp15_ = NULL;
+#line 119 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp4_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
+#line 119 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp5_ = _tmp4_;
+#line 119 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp6_ = self->priv->tag;
+#line 119 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp7_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
+#line 119 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp8_ = _tmp7_;
+#line 119 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp9_ = view_collection_get_selected_sources (_tmp8_);
+#line 119 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp10_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_COLLECTION, GeeCollection);
+#line 119 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp11_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
+#line 119 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp12_ = _tmp11_;
+#line 119 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp13_ = view_collection_get_selected_count (_tmp12_);
+#line 119 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp14_ = tag_untag_photos_command_new (_tmp6_, _tmp10_, _tmp13_, FALSE);
+#line 119 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp15_ = _tmp14_;
+#line 119 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ command_manager_execute (_tmp5_, G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_COMMAND, Command));
+#line 119 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _g_object_unref0 (_tmp15_);
+#line 119 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _data_collection_unref0 (_tmp12_);
+#line 119 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _g_object_unref0 (_tmp10_);
+#line 119 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _data_collection_unref0 (_tmp8_);
+#line 119 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _command_manager_unref0 (_tmp5_);
+#line 1561 "TagPage.c"
+ }
+}
+
+
+static void tag_page_class_init (TagPageClass * klass) {
+#line 7 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ tag_page_parent_class = g_type_class_peek_parent (klass);
+#line 7 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ g_type_class_add_private (klass, sizeof (TagPagePrivate));
+#line 7 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ ((PageClass *) klass)->init_collect_ui_filenames = tag_page_real_init_collect_ui_filenames;
+#line 7 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ ((MediaPageClass *) klass)->get_config_photos_sort = tag_page_real_get_config_photos_sort;
+#line 7 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ ((MediaPageClass *) klass)->set_config_photos_sort = tag_page_real_set_config_photos_sort;
+#line 7 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ ((PageClass *) klass)->init_collect_action_entries = tag_page_real_init_collect_action_entries;
+#line 7 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ ((PageClass *) klass)->update_actions = tag_page_real_update_actions;
+#line 7 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ G_OBJECT_CLASS (klass)->finalize = tag_page_finalize;
+#line 1583 "TagPage.c"
+}
+
+
+static void tag_page_instance_init (TagPage * self) {
+#line 7 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ self->priv = TAG_PAGE_GET_PRIVATE (self);
+#line 1590 "TagPage.c"
+}
+
+
+static void tag_page_finalize (GObject* obj) {
+ TagPage * self;
+ ViewCollection* _tmp0_ = NULL;
+ ViewCollection* _tmp1_ = NULL;
+ TagSourceCollection* _tmp2_ = NULL;
+ guint _tmp3_ = 0U;
+#line 7 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_TAG_PAGE, TagPage);
+#line 22 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
+#line 22 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp1_ = _tmp0_;
+#line 22 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ view_collection_halt_mirroring (_tmp1_);
+#line 22 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _data_collection_unref0 (_tmp1_);
+#line 23 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _tmp2_ = tag_global;
+#line 23 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ g_signal_parse_name ("items-altered", TYPE_DATA_COLLECTION, &_tmp3_, NULL, FALSE);
+#line 23 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _tag_page_on_tags_altered_data_collection_items_altered, self);
+#line 8 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ _g_object_unref0 (self->priv->tag);
+#line 7 "/home/jens/Source/shotwell/src/tags/TagPage.vala"
+ G_OBJECT_CLASS (tag_page_parent_class)->finalize (obj);
+#line 1620 "TagPage.c"
+}
+
+
+GType tag_page_get_type (void) {
+ static volatile gsize tag_page_type_id__volatile = 0;
+ if (g_once_init_enter (&tag_page_type_id__volatile)) {
+ static const GTypeInfo g_define_type_info = { sizeof (TagPageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tag_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TagPage), 0, (GInstanceInitFunc) tag_page_instance_init, NULL };
+ GType tag_page_type_id;
+ tag_page_type_id = g_type_register_static (TYPE_COLLECTION_PAGE, "TagPage", &g_define_type_info, 0);
+ g_once_init_leave (&tag_page_type_id__volatile, tag_page_type_id);
+ }
+ return tag_page_type_id__volatile;
+}
+
+
+
diff --git a/src/tags/Tags.c b/src/tags/Tags.c
new file mode 100644
index 0000000..0f14960
--- /dev/null
+++ b/src/tags/Tags.c
@@ -0,0 +1,36 @@
+/* Tags.c generated by valac 0.32.1, the Vala compiler
+ * generated from Tags.vala, do not modify */
+
+/* Copyright 2016 Software Freedom Conservancy Inc.
+ *
+ * This software is licensed under the GNU Lesser General Public License
+ * (version 2.1 or later). See the COPYING file in this distribution.
+ */
+
+#include <glib.h>
+#include <glib-object.h>
+
+
+
+
+void tags_init (GError** error);
+void tags_sidebar_entry_init (void);
+void tags_terminate (void);
+void tags_sidebar_entry_terminate (void);
+
+
+void tags_init (GError** error) {
+#line 10 "/home/jens/Source/shotwell/src/tags/Tags.vala"
+ tags_sidebar_entry_init ();
+#line 26 "Tags.c"
+}
+
+
+void tags_terminate (void) {
+#line 14 "/home/jens/Source/shotwell/src/tags/Tags.vala"
+ tags_sidebar_entry_terminate ();
+#line 33 "Tags.c"
+}
+
+
+
diff --git a/src/tags/mk/tags.mk b/src/tags/mk/tags.mk
deleted file mode 100644
index 6b2e193..0000000
--- a/src/tags/mk/tags.mk
+++ /dev/null
@@ -1,32 +0,0 @@
-
-# UNIT_NAME is the Vala namespace. A file named UNIT_NAME.vala must be in this directory with
-# a init() and terminate() function declared in the namespace.
-UNIT_NAME := Tags
-
-# UNIT_DIR should match the subdirectory the files are located in. Generally UNIT_NAME in all
-# lowercase. The name of this file should be UNIT_DIR.mk.
-UNIT_DIR := tags
-
-# All Vala files in the unit should be listed here with no subdirectory prefix.
-#
-# NOTE: Do *not* include the unit's master file, i.e. UNIT_NAME.vala.
-UNIT_FILES := \
- Branch.vala \
- TagPage.vala \
- HierarchicalTagIndex.vala \
- HierarchicalTagUtilities.vala
-
-# Any unit this unit relies upon (and should be initialized before it's initialized) should
-# be listed here using its Vala namespace.
-#
-# NOTE: All units are assumed to rely upon the unit-unit. Do not include that here.
-UNIT_USES := \
- Sidebar
-
-# List any additional files that are used in the build process as a part of this unit that should
-# be packaged in the tarball. File names should be relative to the unit's home directory.
-UNIT_RC :=
-
-# unitize.mk must be called at the end of each UNIT_DIR.mk file.
-include unitize.mk
-